4946a522df885b474d2188a8396f82b78be944a3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
2
3 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
4 (dwarf2_get_dwz_file): Convert 'filename' to a
5 std::string. Use dwz_search_other_debugdirs to search for DWZ
6 files in the debug-file-directories provided by the user as well.
7
8 2020-12-01 Tom Tromey <tom@tromey.com>
9
10 * parse.c (expr_builder::expr_builder): Initialize expout.
11 (expr_builder::release): Use expression::resize.
12 (expression::expression, expression::~expression)
13 (expression::resize): New methods.
14 (write_exp_elt): Use expression::resize.
15 (prefixify_expression): Update.
16 (increase_expout_size): Use expression::resize.
17 * expression.h (struct expression): Add constructor, destructor.
18 <resize>: New method.
19 (expression_up): Change type.
20
21 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
22 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
23 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
24 set region.
25
26 2020-11-30 Tom de Vries <tdevries@suse.de>
27
28 PR symtab/26905
29 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
30 is_reference parameter.
31 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
32
33 2020-11-30 Tom Tromey <tom@tromey.com>
34
35 * rust-lang.c (rust_op_name): Remove.
36 (exp_descriptor_rust): Update.
37 * parser-defs.h (op_name_standard): Don't declare.
38 (struct exp_descriptor) <op_name>: Remove.
39 * parse.c (exp_descriptor_standard): Update.
40 * opencl-lang.c (exp_descriptor_opencl): Update.
41 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
42 * f-lang.c (op_name_f): Remove.
43 (f_language::exp_descriptor_tab): Update.
44 * expression.h (op_name): Update.
45 * expprint.c (op_name): Rewrite.
46 (op_name_standard): Remove.
47 (dump_raw_expression, dump_subexp): Update.
48 * c-lang.c (exp_descriptor_c): Update.
49 * ax-gdb.c (gen_expr): Update.
50 * ada-lang.c (ada_op_name): Remove.
51 (ada_exp_descriptor): Update.
52
53 2020-11-30 Tom Tromey <tom@tromey.com>
54
55 * eval.c (init_array_element): Remove.
56 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
57
58 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
59
60 PR tui/26973
61 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
62 static locator win info.
63
64 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
65
66 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
67 program.
68
69 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
72 is always initialized.
73
74 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
75 * MAINTAINERS (Write After Approval): Add myself.
76
77 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
78
79 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
80 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
81
82 2020-11-25 Tom Tromey <tom@tromey.com>
83
84 * eval.c (evaluate_subexp_standard): Remove unnecessary
85 variables.
86
87 2020-11-25 Tom Tromey <tom@tromey.com>
88
89 * d-lang.c: Include parser-defs.h.
90 * rust-lang.c: Include parser-defs.h.
91 * c-lang.h: Do not include parser-defs.h.
92
93 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * regcache.h (struct cached_reg): Remove typedef.
96
97 2020-11-24 Joel Brobecker <brobecker@adacore.com>
98
99 * README: Fix the URL of the MPFR library.
100
101 2020-11-24 Joel Brobecker <brobecker@adacore.com>
102
103 * README: Document the --with-libgmp-prefix configure option.
104
105 2020-11-24 Joel Brobecker <brobecker@adacore.com>
106
107 * NEWS: Add entry documenting support for DWARF-based fixed
108 point types.
109
110 2020-11-24 Joel Brobecker <brobecker@adacore.com>
111
112 * NEWS: Document that building GDB now requires GMP.
113
114 2020-11-24 Joel Brobecker <brobecker@adacore.com>
115
116 * typeprint.c (print_type_scalar): Add handling of
117 TYPE_CODE_FIXED_POINT.
118
119 2020-11-24 Joel Brobecker <brobecker@adacore.com>
120
121 * valarith.c (fixed_point_binop): Replace the
122 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
123 users accordingly.
124
125 2020-11-24 Joel Brobecker <brobecker@adacore.com>
126
127 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
128 replacing fixed_point_scaling_factor. All callers updated
129 throughout this project.
130 (fixed_point_scaling_factor): Delete declaration.
131 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
132 fixed_point_scaling_factor. Adjust implementation accordingly.
133
134 2020-11-24 Joel Brobecker <brobecker@adacore.com>
135
136 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
137 replacing the fixed_point_type_base_type function. All callers
138 updated throughout this project.
139 (fixed_point_type_base_type): Remove declaration.
140 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
141 fixed_point_type_base_type. Adjust implementation accordingly.
142
143 2020-11-24 Joel Brobecker <brobecker@adacore.com>
144
145 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
146 New methods.
147 (INIT_FIXED_POINT_SPECIFIC): Adjust.
148 (TYPE_FIXED_POINT_INFO): Delete macro.
149 (allocate_fixed_point_type_info): Change return type to void.
150 * gdbtypes.c (copy_type_recursive): Replace the use of
151 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
152 (fixed_point_scaling_factor): Likewise.
153 (allocate_fixed_point_type_info): Change return type to void.
154 Adjust implementation accordingly.
155 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
156 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
157
158 2020-11-24 Joel Brobecker <brobecker@adacore.com>
159
160 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
161 into one single gdb::array_view parameter.
162 (gdb_mpz::write): Likewise.
163 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
164 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
165 into one single gdb::array_view parameter.
166 Adjust implementation accordingly.
167 (gdb_mpz::write): Likewise.
168 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
169 * unittests/gmp-utils-selftests.c: Adapt following changes above.
170 * valarith.c, valops.c, valprint.c, value.c: Likewise.
171
172 2020-11-24 Joel Brobecker <brobecker@adacore.com>
173
174 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
175 Change return type to std::string. Update all callers.
176 * gmp-utils.c (gmp_string_printf): Likewise.
177
178 2020-11-24 Joel Brobecker <brobecker@adacore.com>
179
180 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
181 instead of mpq_set_ui to initialize our GMP rational.
182
183 2020-11-23 Tom de Vries <tdevries@suse.de>
184
185 * debuginfod-support.c (debuginfod_source_query)
186 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
187
188 2020-11-21 Tom Tromey <tom@tromey.com>
189
190 * breakpoint.c (watchpoint_exp_is_const): Return bool.
191
192 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
195 Pass 2.0 to pow.
196 (gdb_mpz_write_all_from_small): Likewise.
197
198 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
201 of abs.
202
203 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
204
205 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
206 ctf_arc_open_by_name.
207
208 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
209
210 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
211 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
212
213 2020-11-20 Pedro Alves <pedro@palves.net>
214
215 * language.c (language_arch_info::lookup_primitive_type): Use
216 gdb::function_view instead of gdb::function.
217 (template language_lookup_primitive_type): Rename to ...
218 (language_lookup_primitive_type_1): ... this, and make static.
219 (language_lookup_primitive_type(const struct language_defn *,
220 struct gdbarch *, const char *): Make non-template.
221 (language_lookup_primitive_type(const struct language_defn *,
222 struct gdbarch *, std::function<bool (struct type *)>): Make
223 non-template and use gdb::function_view.
224 * language.h (language_arch_info::lookup_primitive_type): Use
225 gdb::function_view instead of std::function.
226 (language_lookup_primitive_type): No longer template.
227 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
228 lambda instead of a std::function.
229
230 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
231
232 PR tdep/26916
233 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
234 and STOCFH.
235
236 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
239
240 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
243 in `loop_cb` parameter.
244 * gdbarch.c: Re-generate.
245 * gdbarch.h: Re-generate.
246 * arch-utils.c (default_read_core_file_mappings): Remove `other`
247 parameter.
248 * arch-utils.h (default_read_core_file_mappings): Likewise.
249 * corelow.c (core_target::build_file_mappings): Likewise.
250 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
251 (linux_core_info_proc_mappings): Likewise.
252
253 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
256 * NEWS: Mention new options.
257 * f-array-walker.h: New file.
258 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
259 (repack_array_slices): New static global.
260 (show_repack_array_slices): New function.
261 (fortran_array_slicing_debug): New static global.
262 (show_fortran_array_slicing_debug): New function.
263 (value_f90_subarray): Delete.
264 (skip_undetermined_arglist): Delete.
265 (class fortran_array_repacker_base_impl): New class.
266 (class fortran_lazy_array_repacker_impl): New class.
267 (class fortran_array_repacker_impl): New class.
268 (fortran_value_subarray): Complete rewrite.
269 (set_fortran_list): New static global.
270 (show_fortran_list): Likewise.
271 (_initialize_f_language): Register new commands.
272 (fortran_adjust_dynamic_array_base_address_hack): New function.
273 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
274 Declare.
275 * f-valprint.c: Include 'f-array-walker.h'.
276 (class fortran_array_printer_impl): New class.
277 (f77_print_array_1): Delete.
278 (f77_print_array): Delete.
279 (fortran_print_array): New.
280 (f_value_print_inner): Update to call fortran_print_array.
281 * gdbtypes.c: Include 'f-lang.h'.
282 (resolve_dynamic_type_internal): Call
283 fortran_adjust_dynamic_array_base_address_hack.
284
285 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * breakpoint.c (struct watch_options): New struct.
288 (watch_option_defs): New static global.
289 (make_watch_options_def_group): New function.
290 (watch_maybe_just_location): Convert option parsing.
291 (watch_command_completer): New function.
292 (_initialize_breakpoint): Build help text using options mechanism.
293
294 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
297 (watch_command_1): Update parameter types. Convert locals to
298 bool.
299 (watch_command_wrapper): Change parameter type.
300 (watch_maybe_just_location): Change locals to bool.
301 (rwatch_command_wrapper): Update parameter type.
302 (awatch_command_wrapper): Update parameter type.
303 * breakpoint.h (watch_command_wrapper): Change parameter type.
304 (rwatch_command_wrapper): Update parameter type.
305 (awatch_command_wrapper): Update parameter type.
306 * eval.c (fetch_subexp_value): Change parameter type.
307 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
308 'false' not '0'.
309 * value.h (fetch_subexp_value): Change parameter type in
310 declaration.
311
312 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
315 skip_spaces.
316
317 2020-11-18 Keith Seitz <keiths@redhat.com>
318
319 * linux-tdep.c (dump_note_entry_p): Return true instead of
320 checking `filename'.
321
322 2020-11-18 Tom de Vries <tdevries@suse.de>
323
324 * debuginfod-support.c (debuginfod_source_query)
325 (debuginfod_debuginfo_query): Also do early exit if
326 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
327
328 2020-11-18 Tom de Vries <tdevries@suse.de>
329
330 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
331 warning.
332
333 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * gdbtypes.h (get_array_bounds): Return bool, adjust some
336 callers. Move doc here.
337 * gdbtypes.c (get_array_bounds): Return bool
338
339 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
342 assert.
343 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
344 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
345 case to the default.
346
347 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * printcmd.c: Include 'safe-ctype.c'.
350 (skip_over_slash_fmt): New function.
351 (print_command_completer): Call skip_over_slash_fmt.
352 (display_and_x_command_completer): New function.
353 (_initialize_printcmd): Add command completion for 'x' and
354 'display'.
355
356 2020-11-16 Pedro Alves <pedro@palves.net>
357
358 * frame.c (get_prev_frame): Move get_frame_id call from here ...
359 (get_prev_frame_always_1): ... to here.
360 * inline-frame.c (inline_frame_this_id): Mention
361 get_prev_frame_always_1 in comment.
362
363 2020-11-15 Joel Brobecker <brobecker@adacore.com>
364
365 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
366 handling.
367 (value_less): Add fixed-point handling.
368
369 2020-11-15 Joel Brobecker <brobecker@adacore.com>
370
371 * eval.c (binop_promote): Add fixed-point type handling.
372 * valarith.c (fixed_point_binop): New function.
373 (scalar_binop): Add fixed-point type handling.
374 (value_neg): Add fixed-point type handling.
375 * valops.c (value_cast_to_fixed_point): New function.
376 (value_cast): Add fixed-point type handling.
377
378 2020-11-15 Joel Brobecker <brobecker@adacore.com>
379
380 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
381 range types.
382 * c-typeprint.c (c_type_print_varspec_prefix)
383 (c_type_print_varspec_suffix, c_type_print_base_1): Add
384 TYPE_CODE_FIXED_POINT handling.
385 * p-typeprint.c (pascal_type_print_varspec_prefix)
386 (pascal_type_print_varspec_suffix): Likewise.
387 * typeprint.c (print_type_fixed_point): New function.
388 * typeprint.h (print_type_fixed_point): Add declaration.
389
390 2020-11-15 Joel Brobecker <brobecker@adacore.com>
391
392 * printcmd.c (print_scalar_formatted): Add fixed-point type
393 handling when options->format is set.
394
395 2020-11-15 Joel Brobecker <brobecker@adacore.com>
396
397 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
398 * dwarf2/read.c (get_dwarf2_rational_constant)
399 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
400 (has_zero_over_zero_small_attribute): New functions.
401 read_base_type, set_die_type): Add fixed-point type handling.
402 * gdb-gdb.py.in: Add fixed-point type handling.
403 * gdbtypes.c: #include "gmp-utils.h".
404 (create_range_type, set_type_code): Add fixed-point type handling.
405 (init_fixed_point_type): New function.
406 (is_integral_type, is_scalar_type): Add fixed-point type handling.
407 (print_fixed_point_type_info): New function.
408 (recursive_dump_type, copy_type_recursive): Add fixed-point type
409 handling.
410 (fixed_point_type_storage): New typedef.
411 (fixed_point_objfile_key): New static global.
412 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
413 (fixed_point_type_base_type, fixed_point_scaling_factor): New
414 functions.
415 * gdbtypes.h: #include "gmp-utils.h".
416 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
417 (union type_specific) <fixed_point_info>: New field.
418 (struct fixed_point_type_info): New struct.
419 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
420 (init_fixed_point_type, is_fixed_point_type)
421 (fixed_point_type_base_type, fixed_point_scaling_factor)
422 (allocate_fixed_point_type_info): Add declarations.
423 * valprint.c (generic_val_print_fixed_point): New function.
424 (generic_value_print): Add fixed-point type handling.
425 * value.c (value_as_address, unpack_long): Add fixed-point type
426 handling.
427
428 2020-11-15 Joel Brobecker <brobecker@adacore.com>
429
430 * utils.h (uinteger_pow): Add declaration.
431 * utils.c (uinteger_pow): Moved here (without changes)...
432 * valarith.c (uinteger_pow): ... from here.
433
434 2020-11-15 Joel Brobecker <brobecker@adacore.com>
435
436 * gmp-utils.h, gmp-utils.c: New file.
437 * unittests/gmp-utils-selftests.c: New file.
438 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
439 unittests/gmp-utils-selftests.c.
440 (COMMON_SFILES) Add gmp-utils.c.
441 (HFILES_NO_SRCDIR): Add gmp-utils.h.
442
443 2020-11-15 Joel Brobecker <brobecker@adacore.com>
444
445 * configure.ac: Generate an error if a usable GMP library
446 could not be found.
447 * configure: Regenerate.
448
449 2020-11-15 Joel Brobecker <brobecker@adacore.com>
450
451 * configure.ac: Add support for --with-libgmp-prefix.
452 * Makefile.in (LIBGMP): New variable.
453 (CLIBS): Include $(LIBGMP).
454 * configure, config.in: Regenerate
455
456 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 PR cli/26879
459 * f-exp.y (COMPLETE): New token.
460 (exp): Two new rules for tab-completion.
461 (saw_name_at_eof): New static global.
462 (last_was_structop): Likewise.
463 (yylex): Set new variables, and return COMPLETE token at the end
464 of the input stream in some cases.
465
466 2020-11-14 Tom Tromey <tom@tromey.com>
467
468 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
469
470 2020-11-14 Tom Tromey <tom@tromey.com>
471
472 * opencl-lang.c (opencl_component_ref): Make "comps" const.
473
474 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
477
478 2020-11-13 Tom Tromey <tom@tromey.com>
479
480 * c-lang.c (convert_ucn, convert_octal, convert_hex)
481 (convert_escape, parse_one_string): Constify.
482
483 2020-11-13 Keith Seitz <keiths@redhat.com>
484
485 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
486 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
487 outside of ELF segments" warning for debugin
488
489 2020-11-13 Keith Seitz <keiths@redhat.com>
490
491 PR gdb/23034
492 * elfread.c (elf_symfile_segments): Output a BFD file name
493 for the "Loadable section ... outside of ELF segments" warning.
494
495 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
496
497 PR gdb/26835
498 * arm-tdep.c (class arm_instruction_reader): New.
499 (target_arm_instruction_reader): New.
500 (arm_analyze_prologue): Add instruction reader parameter and use
501 it. Use arm_expand_immediate.
502 (class target_arm_instruction_reader): Adjust.
503 (arm_skip_prologue): Adjust.
504 (arm_expand_immediate): New.
505 (arm_scan_prologue): Adjust.
506 (arm_analyze_prologue_test): New.
507 (class test_arm_instruction_reader): New.
508
509 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * f-lang.c (fortran_argument_convert): Add declaration. Add
512 header comment, taken from f-lang.h. Make static.
513 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
514 (fortran_argument_convert): Delete declaration.
515
516 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * ada-exp.y (find_primitive_type): Make parameter const.
519 * ada-lang.c (enum ada_primitive_types): Delete.
520 (ada_language::language_arch_info): Update.
521 * c-lang.c (enum c_primitive_types): Delete.
522 (c_language_arch_info): Update.
523 (enum cplus_primitive_types): Delete.
524 (cplus_language::language_arch_info): Update.
525 * d-lang.c (enum d_primitive_types): Delete.
526 (d_language::language_arch_info): Update.
527 * f-lang.c (enum f_primitive_types): Delete.
528 (f_language::language_arch_info): Update.
529 * go-lang.c (enum go_primitive_types): Delete.
530 (go_language::language_arch_info): Update.
531 * language.c (auto_or_unknown_language::language_arch_info):
532 Update.
533 (language_gdbarch_post_init): Use obstack_new, use array indexing.
534 (language_string_char_type): Add header comment, call function in
535 language_arch_info.
536 (language_bool_type): Likewise
537 (language_arch_info::bool_type): Define.
538 (language_lookup_primitive_type_1): Delete.
539 (language_lookup_primitive_type): Rewrite as a templated function
540 to call function in language_arch_info, then instantiate twice.
541 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
542 (language_arch_info::lookup_primitive_type_and_symbol): Define.
543 (language_arch_info::lookup_primitive_type): Define twice with
544 different signatures.
545 (language_arch_info::lookup_primitive_type_as_symbol): Define.
546 (language_lookup_primitive_type_as_symbol): Rewrite to call a
547 member function in language_arch_info.
548 * language.h (language_arch_info): Complete rewrite.
549 (language_lookup_primitive_type): Make templated.
550 * m2-lang.c (enum m2_primitive_types): Delete.
551 (m2_language::language_arch_info): Update.
552 * opencl-lang.c (OCL_P_TYPE): Delete.
553 (enum opencl_primitive_types): Delete.
554 (opencl_type_data): Delete.
555 (builtin_opencl_type): Delete.
556 (lookup_opencl_vector_type): Update.
557 (opencl_language::language_arch_info): Update, lots of content
558 moved from...
559 (build_opencl_types): ...here. This function is now deleted.
560 (_initialize_opencl_language): Delete.
561 * p-lang.c (enum pascal_primitive_types): Delete.
562 (pascal_language::language_arch_info): Update.
563 * rust-lang.c (enum rust_primitive_types): Delete.
564 (rust_language::language_arch_info): Update.
565
566 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
569 dwarf2_queue_guard.
570
571 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
574 comment.
575
576 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * dwarf2/read.c (dwarf_read_debug_printf,
579 dwarf_read_debug_printf_v): New macros, use throughout the file.
580
581 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
582
583 * arc-linux-tdep.c (collect_register): Populate "eret" by
584 "pc" value from the regcache when asked for "pc" value.
585
586 2020-11-12 Tom Tromey <tom@tromey.com>
587
588 PR rust/26799:
589 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
590 exist.
591
592 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * features/Makefile (XMLTOC): Add rx.xml.
595 (FEATURE_XMLFILES): Remove rx.xml.
596 (FEATURE_CFILES rule): Pass '-single-feature' flag.
597 * features/rx.c: Regenerate.
598 * features/rx.xml: Wrap in `target` tags, and reindent.
599 * target-descriptions.c (struct maint_print_c_tdesc_options): New
600 structure.
601 (maint_print_c_tdesc_opt_def): New typedef.
602 (maint_print_c_tdesc_opt_defs): New static global.
603 (make_maint_print_c_tdesc_options_def_group): New function.
604 (maint_print_c_tdesc_cmd): Make use of command line flags, only
605 print single feature C file for target descriptions containing a
606 single feature.
607 (maint_print_c_tdesc_cmd_completer): New function.
608 (_initialize_target_descriptions): Update call to register command
609 completer, and include command line flag in help text.
610
611 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
614 numbers.
615 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
616 enum values.
617
618 2020-11-10 Tom Tromey <tom@tromey.com>
619
620 * value.h (internalvar_name): Update.
621 * value.c (internalvar_name): Make return type const.
622
623 2020-11-10 Tom Tromey <tom@tromey.com>
624
625 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
626 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
627 const.
628
629 2020-11-10 Tom Tromey <tom@tromey.com>
630
631 * objc-lang.h (value_nsstring): Update.
632 * objc-lang.c (value_nsstring): Make "ptr" const.
633
634 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * expprint.c (print_subexp_funcall): Increment expression position
637 after reading argument count.
638 * f-lang.c (print_subexp_f): Skip over opcode before calling
639 common function.
640 (dump_subexp_body_f): Likewise.
641
642 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
643
644 PR python/26832
645 * configure: Regenerate.
646 * configure.ac: Check for python modules ctypes instead of
647 itertools.
648
649 2020-11-06 Pedro Alves <pedro@palves.net>
650
651 * macroexp.c (struct macro_buffer): Split in two classes. Add
652 uses adjusted.
653 (struct shared_macro_buffer): New, factored out from struct
654 macro_buffer.
655 (struct growable_macro_buffer): New, factored out from struct
656 macro_buffer.
657 (set_token, get_comment, get_identifier, get_pp_number)
658 (get_character_constant, get_string_literal, get_punctuator)
659 (get_next_token_for_substitution): Constify parameters.
660 (substitute_args): Constify locals.
661
662 2020-11-05 Tom Tromey <tom@tromey.com>
663
664 * dwarf2/read.c (read_cutu_die_from_dwo)
665 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
666 (build_type_psymtabs_1): Update.
667 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
668 parameter.
669 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
670 Don't read section. Add assert.
671
672 2020-11-04 Tom Tromey <tromey@adacore.com>
673
674 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
675
676 2020-11-04 Tom Tromey <tromey@adacore.com>
677
678 * ada-typeprint.c (ada_print_type): Handle __T types.
679
680 2020-11-04 Tom Tromey <tromey@adacore.com>
681
682 * dwarf2/read.c (add_partial_symbol, process_die):
683 Handle DW_TAG_array_type.
684 (is_type_tag_for_partial): Add "lang" parameter.
685 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
686
687 2020-11-04 Tom Tromey <tromey@adacore.com>
688
689 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
690
691 2020-11-04 Tom Tromey <tromey@adacore.com>
692
693 * dwarf2/read.c (read_array_type): Only apply stride to innermost
694 array.
695
696 2020-11-04 Tom Tromey <tromey@adacore.com>
697
698 * gdbtypes.c (update_static_array_size): Handle bit stride.
699
700 2020-11-04 Tom Tromey <tromey@adacore.com>
701
702 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
703
704 2020-11-04 Tom Tromey <tromey@adacore.com>
705
706 * ada-lang.c (ada_is_any_packed_array_type): New function.
707 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
708
709 2020-11-04 Tom Tromey <tromey@adacore.com>
710
711 * dwarf2/read.c (recognize_bound_expression)
712 (quirk_ada_thick_pointer): New functions.
713 (read_array_type): Call quirk_ada_thick_pointer.
714 (set_die_type): Add "skip_data_location" parameter.
715 (quirk_ada_thick_pointer): New function.
716 (process_structure_scope): Call quirk_ada_thick_pointer.
717 * ada-lang.c (ada_is_unconstrained_packed_array_type)
718 (decode_packed_array_bitsize): Handle thick pointers without
719 parallel types.
720 (ada_is_gnat_encoded_packed_array_type): Rename from
721 ada_is_packed_array_type.
722 (ada_is_constrained_packed_array_type): Update.
723 * ada-valprint.c (ada_val_print_gnat_array): Remove.
724 (ada_value_print_1): Use ada_get_decoded_value.
725
726 2020-11-04 Tom Tromey <tromey@adacore.com>
727
728 * ada-lang.c (recursively_update_array_bitsize): New function.
729 (decode_constrained_packed_array_type): Call it.
730
731 2020-11-04 Tom Tromey <tromey@adacore.com>
732
733 * ada-lang.c (to_fixed_array_type): Error if
734 decode_constrained_packed_array_type returns NULL.
735
736 2020-11-04 Tom Tromey <tromey@adacore.com>
737
738 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
739
740 2020-11-02 Tom Tromey <tromey@adacore.com>
741
742 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
743 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
744 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
745 * amd64-ravenscar-thread.c: New file.
746 * amd64-ravenscar-thread.h: New file.
747 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
748 * configure.tgt (amd64_tobjs): Add ravenscar objects.
749
750 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
751
752 * main.c (execute_cmdargs): New function.
753 (captured_main_1): Make use of execute_cmdargs.
754
755 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * NEWS: Mention changes to config file search path.
758 * main.c
759
760 2020-11-02 Tom Tromey <tromey@adacore.com>
761
762 * python/python.c: Consolidate two HAVE_PYTHON blocks.
763 (python_GdbModuleDef): Move earlier. Now static.
764 (do_start_initialization): Consolidate some IS_PY3K blocks.
765
766 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
767
768 * aarch64-linux-tdep.c: Fix indentation.
769 * aarch64-ravenscar-thread.c: Fix indentation.
770 * aarch64-tdep.c: Fix indentation.
771 * aarch64-tdep.h: Fix indentation.
772 * ada-lang.c: Fix indentation.
773 * ada-lang.h: Fix indentation.
774 * ada-tasks.c: Fix indentation.
775 * ada-typeprint.c: Fix indentation.
776 * ada-valprint.c: Fix indentation.
777 * ada-varobj.c: Fix indentation.
778 * addrmap.c: Fix indentation.
779 * addrmap.h: Fix indentation.
780 * agent.c: Fix indentation.
781 * aix-thread.c: Fix indentation.
782 * alpha-bsd-nat.c: Fix indentation.
783 * alpha-linux-tdep.c: Fix indentation.
784 * alpha-mdebug-tdep.c: Fix indentation.
785 * alpha-nbsd-tdep.c: Fix indentation.
786 * alpha-obsd-tdep.c: Fix indentation.
787 * alpha-tdep.c: Fix indentation.
788 * amd64-bsd-nat.c: Fix indentation.
789 * amd64-darwin-tdep.c: Fix indentation.
790 * amd64-linux-nat.c: Fix indentation.
791 * amd64-linux-tdep.c: Fix indentation.
792 * amd64-nat.c: Fix indentation.
793 * amd64-obsd-tdep.c: Fix indentation.
794 * amd64-tdep.c: Fix indentation.
795 * amd64-windows-tdep.c: Fix indentation.
796 * annotate.c: Fix indentation.
797 * arc-tdep.c: Fix indentation.
798 * arch-utils.c: Fix indentation.
799 * arch/arm-get-next-pcs.c: Fix indentation.
800 * arch/arm.c: Fix indentation.
801 * arm-linux-nat.c: Fix indentation.
802 * arm-linux-tdep.c: Fix indentation.
803 * arm-nbsd-tdep.c: Fix indentation.
804 * arm-pikeos-tdep.c: Fix indentation.
805 * arm-tdep.c: Fix indentation.
806 * arm-tdep.h: Fix indentation.
807 * arm-wince-tdep.c: Fix indentation.
808 * auto-load.c: Fix indentation.
809 * auxv.c: Fix indentation.
810 * avr-tdep.c: Fix indentation.
811 * ax-gdb.c: Fix indentation.
812 * ax-general.c: Fix indentation.
813 * bfin-linux-tdep.c: Fix indentation.
814 * block.c: Fix indentation.
815 * block.h: Fix indentation.
816 * blockframe.c: Fix indentation.
817 * bpf-tdep.c: Fix indentation.
818 * break-catch-sig.c: Fix indentation.
819 * break-catch-syscall.c: Fix indentation.
820 * break-catch-throw.c: Fix indentation.
821 * breakpoint.c: Fix indentation.
822 * breakpoint.h: Fix indentation.
823 * bsd-uthread.c: Fix indentation.
824 * btrace.c: Fix indentation.
825 * build-id.c: Fix indentation.
826 * buildsym-legacy.h: Fix indentation.
827 * buildsym.c: Fix indentation.
828 * c-typeprint.c: Fix indentation.
829 * c-valprint.c: Fix indentation.
830 * c-varobj.c: Fix indentation.
831 * charset.c: Fix indentation.
832 * cli/cli-cmds.c: Fix indentation.
833 * cli/cli-decode.c: Fix indentation.
834 * cli/cli-decode.h: Fix indentation.
835 * cli/cli-script.c: Fix indentation.
836 * cli/cli-setshow.c: Fix indentation.
837 * coff-pe-read.c: Fix indentation.
838 * coffread.c: Fix indentation.
839 * compile/compile-cplus-types.c: Fix indentation.
840 * compile/compile-object-load.c: Fix indentation.
841 * compile/compile-object-run.c: Fix indentation.
842 * completer.c: Fix indentation.
843 * corefile.c: Fix indentation.
844 * corelow.c: Fix indentation.
845 * cp-abi.h: Fix indentation.
846 * cp-namespace.c: Fix indentation.
847 * cp-support.c: Fix indentation.
848 * cp-valprint.c: Fix indentation.
849 * cris-linux-tdep.c: Fix indentation.
850 * cris-tdep.c: Fix indentation.
851 * darwin-nat-info.c: Fix indentation.
852 * darwin-nat.c: Fix indentation.
853 * darwin-nat.h: Fix indentation.
854 * dbxread.c: Fix indentation.
855 * dcache.c: Fix indentation.
856 * disasm.c: Fix indentation.
857 * dtrace-probe.c: Fix indentation.
858 * dwarf2/abbrev.c: Fix indentation.
859 * dwarf2/attribute.c: Fix indentation.
860 * dwarf2/expr.c: Fix indentation.
861 * dwarf2/frame.c: Fix indentation.
862 * dwarf2/index-cache.c: Fix indentation.
863 * dwarf2/index-write.c: Fix indentation.
864 * dwarf2/line-header.c: Fix indentation.
865 * dwarf2/loc.c: Fix indentation.
866 * dwarf2/macro.c: Fix indentation.
867 * dwarf2/read.c: Fix indentation.
868 * dwarf2/read.h: Fix indentation.
869 * elfread.c: Fix indentation.
870 * eval.c: Fix indentation.
871 * event-top.c: Fix indentation.
872 * exec.c: Fix indentation.
873 * exec.h: Fix indentation.
874 * expprint.c: Fix indentation.
875 * f-lang.c: Fix indentation.
876 * f-typeprint.c: Fix indentation.
877 * f-valprint.c: Fix indentation.
878 * fbsd-nat.c: Fix indentation.
879 * fbsd-tdep.c: Fix indentation.
880 * findvar.c: Fix indentation.
881 * fork-child.c: Fix indentation.
882 * frame-unwind.c: Fix indentation.
883 * frame-unwind.h: Fix indentation.
884 * frame.c: Fix indentation.
885 * frv-linux-tdep.c: Fix indentation.
886 * frv-tdep.c: Fix indentation.
887 * frv-tdep.h: Fix indentation.
888 * ft32-tdep.c: Fix indentation.
889 * gcore.c: Fix indentation.
890 * gdb_bfd.c: Fix indentation.
891 * gdbarch.sh: Fix indentation.
892 * gdbarch.c: Re-generate
893 * gdbarch.h: Re-generate.
894 * gdbcore.h: Fix indentation.
895 * gdbthread.h: Fix indentation.
896 * gdbtypes.c: Fix indentation.
897 * gdbtypes.h: Fix indentation.
898 * glibc-tdep.c: Fix indentation.
899 * gnu-nat.c: Fix indentation.
900 * gnu-nat.h: Fix indentation.
901 * gnu-v2-abi.c: Fix indentation.
902 * gnu-v3-abi.c: Fix indentation.
903 * go32-nat.c: Fix indentation.
904 * guile/guile-internal.h: Fix indentation.
905 * guile/scm-cmd.c: Fix indentation.
906 * guile/scm-frame.c: Fix indentation.
907 * guile/scm-iterator.c: Fix indentation.
908 * guile/scm-math.c: Fix indentation.
909 * guile/scm-ports.c: Fix indentation.
910 * guile/scm-pretty-print.c: Fix indentation.
911 * guile/scm-value.c: Fix indentation.
912 * h8300-tdep.c: Fix indentation.
913 * hppa-linux-nat.c: Fix indentation.
914 * hppa-linux-tdep.c: Fix indentation.
915 * hppa-nbsd-nat.c: Fix indentation.
916 * hppa-nbsd-tdep.c: Fix indentation.
917 * hppa-obsd-nat.c: Fix indentation.
918 * hppa-tdep.c: Fix indentation.
919 * hppa-tdep.h: Fix indentation.
920 * i386-bsd-nat.c: Fix indentation.
921 * i386-darwin-nat.c: Fix indentation.
922 * i386-darwin-tdep.c: Fix indentation.
923 * i386-dicos-tdep.c: Fix indentation.
924 * i386-gnu-nat.c: Fix indentation.
925 * i386-linux-nat.c: Fix indentation.
926 * i386-linux-tdep.c: Fix indentation.
927 * i386-nto-tdep.c: Fix indentation.
928 * i386-obsd-tdep.c: Fix indentation.
929 * i386-sol2-nat.c: Fix indentation.
930 * i386-tdep.c: Fix indentation.
931 * i386-tdep.h: Fix indentation.
932 * i386-windows-tdep.c: Fix indentation.
933 * i387-tdep.c: Fix indentation.
934 * i387-tdep.h: Fix indentation.
935 * ia64-libunwind-tdep.c: Fix indentation.
936 * ia64-libunwind-tdep.h: Fix indentation.
937 * ia64-linux-nat.c: Fix indentation.
938 * ia64-linux-tdep.c: Fix indentation.
939 * ia64-tdep.c: Fix indentation.
940 * ia64-tdep.h: Fix indentation.
941 * ia64-vms-tdep.c: Fix indentation.
942 * infcall.c: Fix indentation.
943 * infcmd.c: Fix indentation.
944 * inferior.c: Fix indentation.
945 * infrun.c: Fix indentation.
946 * iq2000-tdep.c: Fix indentation.
947 * language.c: Fix indentation.
948 * linespec.c: Fix indentation.
949 * linux-fork.c: Fix indentation.
950 * linux-nat.c: Fix indentation.
951 * linux-tdep.c: Fix indentation.
952 * linux-thread-db.c: Fix indentation.
953 * lm32-tdep.c: Fix indentation.
954 * m2-lang.c: Fix indentation.
955 * m2-typeprint.c: Fix indentation.
956 * m2-valprint.c: Fix indentation.
957 * m32c-tdep.c: Fix indentation.
958 * m32r-linux-tdep.c: Fix indentation.
959 * m32r-tdep.c: Fix indentation.
960 * m68hc11-tdep.c: Fix indentation.
961 * m68k-bsd-nat.c: Fix indentation.
962 * m68k-linux-nat.c: Fix indentation.
963 * m68k-linux-tdep.c: Fix indentation.
964 * m68k-tdep.c: Fix indentation.
965 * machoread.c: Fix indentation.
966 * macrocmd.c: Fix indentation.
967 * macroexp.c: Fix indentation.
968 * macroscope.c: Fix indentation.
969 * macrotab.c: Fix indentation.
970 * macrotab.h: Fix indentation.
971 * main.c: Fix indentation.
972 * mdebugread.c: Fix indentation.
973 * mep-tdep.c: Fix indentation.
974 * mi/mi-cmd-catch.c: Fix indentation.
975 * mi/mi-cmd-disas.c: Fix indentation.
976 * mi/mi-cmd-env.c: Fix indentation.
977 * mi/mi-cmd-stack.c: Fix indentation.
978 * mi/mi-cmd-var.c: Fix indentation.
979 * mi/mi-cmds.c: Fix indentation.
980 * mi/mi-main.c: Fix indentation.
981 * mi/mi-parse.c: Fix indentation.
982 * microblaze-tdep.c: Fix indentation.
983 * minidebug.c: Fix indentation.
984 * minsyms.c: Fix indentation.
985 * mips-linux-nat.c: Fix indentation.
986 * mips-linux-tdep.c: Fix indentation.
987 * mips-nbsd-tdep.c: Fix indentation.
988 * mips-tdep.c: Fix indentation.
989 * mn10300-linux-tdep.c: Fix indentation.
990 * mn10300-tdep.c: Fix indentation.
991 * moxie-tdep.c: Fix indentation.
992 * msp430-tdep.c: Fix indentation.
993 * namespace.h: Fix indentation.
994 * nat/fork-inferior.c: Fix indentation.
995 * nat/gdb_ptrace.h: Fix indentation.
996 * nat/linux-namespaces.c: Fix indentation.
997 * nat/linux-osdata.c: Fix indentation.
998 * nat/netbsd-nat.c: Fix indentation.
999 * nat/x86-dregs.c: Fix indentation.
1000 * nbsd-nat.c: Fix indentation.
1001 * nbsd-tdep.c: Fix indentation.
1002 * nios2-linux-tdep.c: Fix indentation.
1003 * nios2-tdep.c: Fix indentation.
1004 * nto-procfs.c: Fix indentation.
1005 * nto-tdep.c: Fix indentation.
1006 * objfiles.c: Fix indentation.
1007 * objfiles.h: Fix indentation.
1008 * opencl-lang.c: Fix indentation.
1009 * or1k-tdep.c: Fix indentation.
1010 * osabi.c: Fix indentation.
1011 * osabi.h: Fix indentation.
1012 * osdata.c: Fix indentation.
1013 * p-lang.c: Fix indentation.
1014 * p-typeprint.c: Fix indentation.
1015 * p-valprint.c: Fix indentation.
1016 * parse.c: Fix indentation.
1017 * ppc-linux-nat.c: Fix indentation.
1018 * ppc-linux-tdep.c: Fix indentation.
1019 * ppc-nbsd-nat.c: Fix indentation.
1020 * ppc-nbsd-tdep.c: Fix indentation.
1021 * ppc-obsd-nat.c: Fix indentation.
1022 * ppc-ravenscar-thread.c: Fix indentation.
1023 * ppc-sysv-tdep.c: Fix indentation.
1024 * ppc64-tdep.c: Fix indentation.
1025 * printcmd.c: Fix indentation.
1026 * proc-api.c: Fix indentation.
1027 * producer.c: Fix indentation.
1028 * producer.h: Fix indentation.
1029 * prologue-value.c: Fix indentation.
1030 * prologue-value.h: Fix indentation.
1031 * psymtab.c: Fix indentation.
1032 * python/py-arch.c: Fix indentation.
1033 * python/py-bpevent.c: Fix indentation.
1034 * python/py-event.c: Fix indentation.
1035 * python/py-event.h: Fix indentation.
1036 * python/py-finishbreakpoint.c: Fix indentation.
1037 * python/py-frame.c: Fix indentation.
1038 * python/py-framefilter.c: Fix indentation.
1039 * python/py-inferior.c: Fix indentation.
1040 * python/py-infthread.c: Fix indentation.
1041 * python/py-objfile.c: Fix indentation.
1042 * python/py-prettyprint.c: Fix indentation.
1043 * python/py-registers.c: Fix indentation.
1044 * python/py-signalevent.c: Fix indentation.
1045 * python/py-stopevent.c: Fix indentation.
1046 * python/py-stopevent.h: Fix indentation.
1047 * python/py-threadevent.c: Fix indentation.
1048 * python/py-tui.c: Fix indentation.
1049 * python/py-unwind.c: Fix indentation.
1050 * python/py-value.c: Fix indentation.
1051 * python/py-xmethods.c: Fix indentation.
1052 * python/python-internal.h: Fix indentation.
1053 * python/python.c: Fix indentation.
1054 * ravenscar-thread.c: Fix indentation.
1055 * record-btrace.c: Fix indentation.
1056 * record-full.c: Fix indentation.
1057 * record.c: Fix indentation.
1058 * reggroups.c: Fix indentation.
1059 * regset.h: Fix indentation.
1060 * remote-fileio.c: Fix indentation.
1061 * remote.c: Fix indentation.
1062 * reverse.c: Fix indentation.
1063 * riscv-linux-tdep.c: Fix indentation.
1064 * riscv-ravenscar-thread.c: Fix indentation.
1065 * riscv-tdep.c: Fix indentation.
1066 * rl78-tdep.c: Fix indentation.
1067 * rs6000-aix-tdep.c: Fix indentation.
1068 * rs6000-lynx178-tdep.c: Fix indentation.
1069 * rs6000-nat.c: Fix indentation.
1070 * rs6000-tdep.c: Fix indentation.
1071 * rust-lang.c: Fix indentation.
1072 * rx-tdep.c: Fix indentation.
1073 * s12z-tdep.c: Fix indentation.
1074 * s390-linux-tdep.c: Fix indentation.
1075 * score-tdep.c: Fix indentation.
1076 * ser-base.c: Fix indentation.
1077 * ser-mingw.c: Fix indentation.
1078 * ser-uds.c: Fix indentation.
1079 * ser-unix.c: Fix indentation.
1080 * serial.c: Fix indentation.
1081 * sh-linux-tdep.c: Fix indentation.
1082 * sh-nbsd-tdep.c: Fix indentation.
1083 * sh-tdep.c: Fix indentation.
1084 * skip.c: Fix indentation.
1085 * sol-thread.c: Fix indentation.
1086 * solib-aix.c: Fix indentation.
1087 * solib-darwin.c: Fix indentation.
1088 * solib-frv.c: Fix indentation.
1089 * solib-svr4.c: Fix indentation.
1090 * solib.c: Fix indentation.
1091 * source.c: Fix indentation.
1092 * sparc-linux-tdep.c: Fix indentation.
1093 * sparc-nbsd-tdep.c: Fix indentation.
1094 * sparc-obsd-tdep.c: Fix indentation.
1095 * sparc-ravenscar-thread.c: Fix indentation.
1096 * sparc-tdep.c: Fix indentation.
1097 * sparc64-linux-tdep.c: Fix indentation.
1098 * sparc64-nbsd-tdep.c: Fix indentation.
1099 * sparc64-obsd-tdep.c: Fix indentation.
1100 * sparc64-tdep.c: Fix indentation.
1101 * stabsread.c: Fix indentation.
1102 * stack.c: Fix indentation.
1103 * stap-probe.c: Fix indentation.
1104 * stubs/ia64vms-stub.c: Fix indentation.
1105 * stubs/m32r-stub.c: Fix indentation.
1106 * stubs/m68k-stub.c: Fix indentation.
1107 * stubs/sh-stub.c: Fix indentation.
1108 * stubs/sparc-stub.c: Fix indentation.
1109 * symfile-mem.c: Fix indentation.
1110 * symfile.c: Fix indentation.
1111 * symfile.h: Fix indentation.
1112 * symmisc.c: Fix indentation.
1113 * symtab.c: Fix indentation.
1114 * symtab.h: Fix indentation.
1115 * target-float.c: Fix indentation.
1116 * target.c: Fix indentation.
1117 * target.h: Fix indentation.
1118 * tic6x-tdep.c: Fix indentation.
1119 * tilegx-linux-tdep.c: Fix indentation.
1120 * tilegx-tdep.c: Fix indentation.
1121 * top.c: Fix indentation.
1122 * tracefile-tfile.c: Fix indentation.
1123 * tracepoint.c: Fix indentation.
1124 * tui/tui-disasm.c: Fix indentation.
1125 * tui/tui-io.c: Fix indentation.
1126 * tui/tui-regs.c: Fix indentation.
1127 * tui/tui-stack.c: Fix indentation.
1128 * tui/tui-win.c: Fix indentation.
1129 * tui/tui-winsource.c: Fix indentation.
1130 * tui/tui.c: Fix indentation.
1131 * typeprint.c: Fix indentation.
1132 * ui-out.h: Fix indentation.
1133 * unittests/copy_bitwise-selftests.c: Fix indentation.
1134 * unittests/memory-map-selftests.c: Fix indentation.
1135 * utils.c: Fix indentation.
1136 * v850-tdep.c: Fix indentation.
1137 * valarith.c: Fix indentation.
1138 * valops.c: Fix indentation.
1139 * valprint.c: Fix indentation.
1140 * valprint.h: Fix indentation.
1141 * value.c: Fix indentation.
1142 * value.h: Fix indentation.
1143 * varobj.c: Fix indentation.
1144 * vax-tdep.c: Fix indentation.
1145 * windows-nat.c: Fix indentation.
1146 * windows-tdep.c: Fix indentation.
1147 * xcoffread.c: Fix indentation.
1148 * xml-syscall.c: Fix indentation.
1149 * xml-tdesc.c: Fix indentation.
1150 * xstormy16-tdep.c: Fix indentation.
1151 * xtensa-config.c: Fix indentation.
1152 * xtensa-linux-nat.c: Fix indentation.
1153 * xtensa-linux-tdep.c: Fix indentation.
1154 * xtensa-tdep.c: Fix indentation.
1155
1156 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1157 Craig Blackmore <craig.blackmore@embecosm.com>
1158
1159 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1160 as an unsigned value.
1161
1162 2020-11-01 Tom Tromey <tom@tromey.com>
1163
1164 * dbxread.c (dbx_end_psymtab): Update.
1165 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1166 (build_type_psymtabs_reader): Update.
1167 * xcoffread.c (xcoff_end_psymtab): Update.
1168 * ctfread.c (scan_partial_symbols): Update.
1169 * psymtab.c (sort_pst_symbols): Remove.
1170 (partial_symtab::end): Rename from end_psymtab_common. Inline
1171 sort_pst_symbols.
1172 * psympriv.h (struct partial_symtab) <end>: New method.
1173 (end_psymtab_common): Don't declare.
1174
1175 2020-11-01 Tom Tromey <tom@tromey.com>
1176
1177 * symmisc.c (count_psyms): New function.
1178 (print_objfile_statistics): Use it.
1179 * psymtab.c (append_psymbol_to_list): Remove.
1180 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1181 * objfiles.h (struct objstats) <n_psyms>: Remove.
1182
1183 2020-11-01 Tom Tromey <tom@tromey.com>
1184
1185 * dbxread.c (dbx_end_psymtab): Update.
1186 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1187 (build_type_psymtabs_reader): Update.
1188 * xcoffread.c (xcoff_end_psymtab): Update.
1189 * ctfread.c (scan_partial_symbols): Update.
1190 * psympriv.h (end_psymtab_common): Update.
1191 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1192 (sort_pst_symbols): Likewise.
1193
1194 2020-11-01 Tom Tromey <tom@tromey.com>
1195
1196 * dbxread.c (dbx_symfile_read): Update.
1197 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1198 * xcoffread.c (xcoff_initial_scan): Update.
1199 * psympriv.h (init_psymbol_list): Don't declare.
1200 * psymtab.c (init_psymbol_list): Remove.
1201
1202 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1203
1204 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1205 gnat_encoded_fixed_type_info. Update all callers.
1206
1207 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1208
1209 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1210 line too long.
1211
1212 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1213
1214 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1215 cast_from_fixed. Update all callers.
1216 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1217 Update all callers.
1218 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1219 Update all callers.
1220 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1221 ada_scaling_factor.
1222 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1223 to print_gnat_encoded_fixed_point_type.
1224 * ada-valprint.c: Likewise.
1225
1226 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1229 (debug_prefixed_printf): Add check of debug_displaced flag.
1230 * linux-nat.c (linux_nat_debug_printf): Add check of
1231 debug_linux_nat flag.
1232
1233 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * infrun.c (infrun_debug_printf_1): Remove.
1236 (displaced_debug_printf_1): Remove.
1237 (stop_all_threads): Use debug_prefixed_printf.
1238 * infrun.h (infrun_debug_printf_1): Remove.
1239 (infrun_debug_printf): Use debug_prefixed_printf.
1240 (displaced_debug_printf_1): Remove.
1241 (displaced_debug_printf): Use debug_prefixed_printf.
1242 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1243 (linux_nat_debug_printf): Use debug_prefixed_printf.
1244
1245 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * configure: Re-generate.
1248 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1249 AC_LANG_PROGRAM.
1250
1251 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * configure: Re-generate.
1254
1255 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * configure: Re-generate.
1258
1259 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1260
1261 * configure: Re-generate.
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 * acinclude.m4: Modernize.
1270 * configure: Re-generate.
1271
1272 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * configure.ac: Modernize.
1275 * configure: Re-generate.
1276
1277 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1280 * configure: Re-generate.
1281 * configure.ac: Remove AM_PROG_CC_STDC.
1282
1283 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1284
1285 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1286 AC_CANONICAL_SYSTEM.
1287 * configure: Re-generate.
1288
1289 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1290
1291 * infrun.h (displaced_debug_printf): New macro. Replace
1292 displaced debug prints throughout to use it.
1293 (displaced_debug_printf_1): New declaration.
1294 (displaced_step_dump_bytes): Return string, remove ui_file
1295 parameter, update all callers.
1296 * infrun.c (displaced_debug_printf_1): New function.
1297 (displaced_step_dump_bytes): Return string, remove ui_file
1298 parameter
1299
1300 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1301
1302 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1303
1304 2020-10-30 Tom Tromey <tromey@adacore.com>
1305
1306 * Makefile.in (stamp-init): Depend on config.status.
1307
1308 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1309
1310 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1311
1312 2020-10-30 Pedro Alves <pedro@palves.net>
1313
1314 * thread.c (lookup_selected_frame): Move ...
1315 * frame.c (lookup_selected_frame): ... here.
1316
1317 2020-10-30 Pedro Alves <pedro@palves.net>
1318
1319 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1320 * frame.c
1321 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1322 Use save_selected_frame. Save language as well.
1323 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1324 Use restore_selected_frame, and restore language as well.
1325 (selected_frame_id, selected_frame_level): New.
1326 (selected_frame): Update comments.
1327 (save_selected_frame, restore_selected_frame): New.
1328 (get_selected_frame): Use lookup_selected_frame.
1329 (get_selected_frame_if_set): Delete.
1330 (select_frame): Record selected_frame_level and selected_frame_id.
1331 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1332 fields.
1333 (get_selected_frame): Make 'message' parameter optional.
1334 (get_selected_frame_if_set): Delete declaration.
1335 (select_frame): Update comments.
1336 (save_selected_frame, restore_selected_frame)
1337 (lookup_selected_frame): Declare.
1338 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1339 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1340 New field.
1341 (save_infcall_control_state): Use save_selected_frame.
1342 (restore_selected_frame): Delete.
1343 (restore_infcall_control_state): Use restore_selected_frame.
1344 * stack.c (select_frame_command_core, frame_command_core): Use
1345 get_selected_frame.
1346 * thread.c (restore_selected_frame): Rename to ...
1347 (lookup_selected_frame): ... this and make extern. Select the
1348 current frame if the frame level is -1.
1349 (scoped_restore_current_thread::restore): Also restore the
1350 language.
1351 (scoped_restore_current_thread::~scoped_restore_current_thread):
1352 Don't try/catch.
1353 (scoped_restore_current_thread::scoped_restore_current_thread):
1354 Save the language as well. Use save_selected_frame.
1355
1356 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1359 documentation.
1360 * gdbarch.h: Re-generate.
1361
1362 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1365 parameter.
1366 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1367 Likewise.
1368 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1369 Likewise.
1370 * arch-utils.c (default_displaced_step_hw_singlestep):
1371 Likewise.
1372 * arch-utils.h (default_displaced_step_hw_singlestep):
1373 Likewise.
1374 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1375 Likewise.
1376 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1377 Likewise.
1378 * gdbarch.c: Re-generate.
1379 * gdbarch.h: Re-generate.
1380 * infrun.c (resume_1): Adjust.
1381
1382 2020-10-29 Tom Tromey <tom@tromey.com>
1383
1384 * progspace.c (program_space::~program_space): Don't call
1385 exec_close.
1386
1387 2020-10-29 Tom Tromey <tom@tromey.com>
1388
1389 * exec.c (exec_target::close): Don't change current program
1390 space.
1391
1392 2020-10-29 Tom Tromey <tom@tromey.com>
1393
1394 * symfile.c (add_symbol_file_command): Update.
1395 * exec.c (program_space::add_target_sections): Rename.
1396 * symfile-mem.c (symbol_file_add_from_memory): Update.
1397 * progspace.h (struct program_space) <add_target_sections>:
1398 Declare new overload.
1399 * exec.h (add_target_sections_of_objfile): Don't declare.
1400
1401 2020-10-29 Tom Tromey <tom@tromey.com>
1402
1403 * solib.c (solib_map_sections): Update.
1404 * exec.c (program_space::add_target_sections): Now a method.
1405 (exec_file_attach): Update.
1406 * exec.h (add_target_sections): Don't declare.
1407 * progspace.h (struct program_space) <add_target_sections>:
1408 Declare.
1409
1410 2020-10-29 Tom Tromey <tom@tromey.com>
1411
1412 * progspace.h (struct program_space) <remove_target_sections>:
1413 Declare.
1414 * exec.c (program_space::remove_target_sections): Now a method.
1415 * exec.h (remove_target_sections): Don't declare.
1416
1417 2020-10-29 Tom Tromey <tom@tromey.com>
1418
1419 * inferior.c (delete_inferior): Update.
1420 * progspace.c (program_space::empty): Rename from
1421 program_space_empty_p. Return bool.
1422 * progspace.h (struct program_space) <empty>: New method.
1423 (program_space_empty_p): Don't declare.
1424
1425 2020-10-29 Tom Tromey <tom@tromey.com>
1426
1427 * progspace.c (program_space::~program_space): Don't call
1428 clear_program_space_solib_cache.
1429 (program_space::clear_solib_cache): Rename from
1430 clear_solib_cache.
1431 * solib.c (handle_solib_event): Update.
1432 * progspace.h (struct program_space) <clear_solib_cache>: New
1433 method.
1434 (clear_program_space_solib_cache): Don't declare.
1435
1436 2020-10-29 Tom Tromey <tom@tromey.com>
1437
1438 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1439 * target.c (info_target_command): Update.
1440 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1441 (symbol_file_clear, reread_symbols): Update.
1442 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1443 * stabsread.c (scan_file_globals): Update.
1444 * solib.c (update_solib_list): Update.
1445 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1446 (svr4_fetch_objfile_link_map, enable_break)
1447 (svr4_relocate_main_executable)
1448 (svr4_iterate_over_objfiles_in_search_order): Update.
1449 * solib-frv.c (lm_base, enable_break)
1450 (frv_relocate_main_executable): Update.
1451 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1452 (frv_fetch_objfile_link_map): Update.
1453 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1454 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1455 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1456 * remote.c (remote_target::get_offsets): Update.
1457 (remote_target::start_remote)
1458 (extended_remote_target::post_attach): Update.
1459 * objfiles.c (entry_point_address_query): Update.
1460 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1461 * minsyms.c (get_symbol_leading_char): Update.
1462 * frame.c (inside_main_func): Update.
1463 * progspace.h (symfile_objfile): Remove macro.
1464
1465 2020-10-29 Tom Tromey <tom@tromey.com>
1466
1467 * exec.c (exec_file_attach): Update.
1468 * progspace.c (program_space::exec_close): Update.
1469 * progspace.h (struct program_space) <ebfd>: Now a
1470 gdb_bfd_ref_ptr.
1471 <set_exec_bfd>: Change argument type.
1472 <exec_bfd>: Update.
1473
1474 2020-10-29 Tom Tromey <tom@tromey.com>
1475
1476 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1477 * symfile.c (reread_symbols): Update.
1478 * symfile-mem.c (add_symbol_file_from_memory_command)
1479 (add_vsyscall_page): Update.
1480 * source-cache.c (source_cache::get_plain_source_lines): Update.
1481 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1482 (svr4_current_sos_direct, svr4_exec_displacement)
1483 (svr4_relocate_main_executable): Update.
1484 (svr4_iterate_over_objfiles_in_search_order): Update.
1485 * solib-frv.c (enable_break2, enable_break): Update.
1486 * solib-dsbt.c (lm_base, enable_break): Update.
1487 * solib-darwin.c (find_program_interpreter)
1488 (darwin_solib_create_inferior_hook): Update.
1489 * sol-thread.c (rw_common, ps_pdmodel): Update.
1490 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1491 * remote.c (compare_sections_command)
1492 (remote_target::trace_set_readonly_regions): Update.
1493 * remote-sim.c (get_sim_inferior_data)
1494 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1495 (gdbsim_target_open, gdbsim_target::files_info): Update.
1496 * exec.h (exec_bfd): Remove macro.
1497 * progspace.c (initialize_progspace): Update.
1498 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1499 Update.
1500 * nto-procfs.c (nto_procfs_target::post_attach)
1501 (nto_procfs_target::create_inferior): Update.
1502 * maint.c (maintenance_info_sections): Update.
1503 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1504 Update.
1505 * infcmd.c (post_create_inferior): Update.
1506 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1507 (objfile_find_memory_regions): Update.
1508 * exec.c (validate_exec_file, exec_file_attach)
1509 (exec_read_partial_read_only, print_section_info): Update.
1510 * corelow.c (core_target_open): Update.
1511 * corefile.c (reopen_exec_file, validate_files): Update.
1512 * arm-tdep.c (gdb_print_insn_arm): Update.
1513 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1514 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1515 methods.
1516
1517 2020-10-29 Tom Tromey <tom@tromey.com>
1518
1519 * progspace.h (current_target_sections): Remove macro.
1520 * solib-svr4.c (scan_dyntag): Update.
1521 * solib-dsbt.c (scan_dyntag): Update.
1522 * exec.c (exec_target::close): Update.
1523 (add_target_sections, add_target_sections_of_objfile)
1524 (remove_target_sections, exec_target::get_section_table)
1525 (exec_target::files_info, set_section_command)
1526 (exec_set_section_address, exec_target::has_memory)
1527 (exec_target::has_memory): Update.
1528
1529 2020-10-29 Tom Tromey <tom@tromey.com>
1530
1531 * source-cache.c (source_cache::get_plain_source_lines): Use
1532 current_program_space.
1533 * corefile.c (reopen_exec_file): Use current_program_space.
1534 * exec.c (exec_file_attach): Use current_program_space.
1535 * exec.h (exec_bfd_mtime): Remove.
1536
1537 2020-10-29 Tom Tromey <tom@tromey.com>
1538
1539 * gcore.c (default_gcore_mach): Remove.
1540 (create_gcore_bfd): Update.
1541
1542 2020-10-29 Tom Tromey <tom@tromey.com>
1543
1544 * progspace.c (program_space::exec_close): New method, from
1545 exec_close in exec.c.
1546 * exec.c (exec_close): Move to progspace.c.
1547 (exec_target::close, exec_file_attach): Update.
1548 * progspace.h (struct program_space) <exec_close>: Declare
1549 method.
1550
1551 2020-10-29 Tom Tromey <tom@tromey.com>
1552
1553 * progspace.h (struct program_space) <exec_filename>: Rename from
1554 pspace_exec_filename. Now a unique_xmalloc_ptr.
1555 * inferior.c (print_selected_inferior): Update.
1556 (print_inferior): Update.
1557 * mi/mi-main.c (print_one_inferior): Update.
1558 * exec.h (exec_filename): Remove macro.
1559 * corefile.c (get_exec_file): Update.
1560 * exec.c (exec_close): Update.
1561 (exec_file_attach): Update.
1562 * progspace.c (clone_program_space): Update.
1563 (print_program_space): Update.
1564
1565 2020-10-29 Tom Tromey <tom@tromey.com>
1566
1567 * target-section.h (struct target_section): Add constructor.
1568 * exec.c (build_section_table, add_target_sections_of_objfile):
1569 Update.
1570 * corelow.c (core_target::build_file_mappings): Update.
1571
1572 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1573
1574 PR gdb/19318
1575 * inferior.c (detach_inferior_command): Restore the current thread.
1576 (kill_inferior_command): Ditto.
1577
1578 2020-10-28 Tom de Vries <tdevries@suse.de>
1579
1580 PR symtab/26772
1581 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1582 map, check it in the "best match" loop.
1583
1584 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * m32c-tdep.c: Remove unused includes.
1587
1588 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 * xtensa-tdep.c: Remove includes.
1591
1592 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1593
1594 * breakpoint.c (struct condition_command_opts): New struct.
1595 (condition_command_option_defs): New static global.
1596 (make_condition_command_options_def_group): New function.
1597 (condition_completer): Update to consider the '-force' flag.
1598 (condition_command): Use gdb::option for the '-force' flag.
1599
1600 2020-10-27 Tom de Vries <tdevries@suse.de>
1601
1602 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1603 symbols in section check.
1604
1605 2020-10-27 Tom de Vries <tdevries@suse.de>
1606
1607 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1608
1609 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1610
1611 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1612 * breakpoint.c: Update the help text of the 'condition' and 'break'
1613 commands.
1614 (set_breakpoint_condition): Take a new bool parameter
1615 to control whether condition definition should be forced even when
1616 the condition expression is invalid in all of the current locations.
1617 (condition_command): Update the call to 'set_breakpoint_condition'.
1618 (find_condition_and_thread): Take the "-force-condition" flag into
1619 account.
1620 * linespec.c (linespec_keywords): Add "-force-condition" as an
1621 element.
1622 (FORCE_KEYWORD_INDEX): New #define.
1623 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1624 as a keyword.
1625 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1626 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1627 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1628 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1629
1630 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1631
1632 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1633 * breakpoint.c (set_breakpoint_location_condition): New function.
1634 (set_breakpoint_condition): Disable a breakpoint location if parsing
1635 the condition string gives an error.
1636 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1637 (build_target_condition_list): Ditto.
1638 (build_target_command_list): Ditto.
1639 (build_bpstat_chain): Ditto.
1640 (print_one_breakpoint_location): Ditto.
1641 (print_one_breakpoint): Ditto.
1642 (breakpoint_1): Ditto.
1643 (bp_location::bp_location): Ditto.
1644 (locations_are_equal): Ditto.
1645 (update_breakpoint_locations): Ditto.
1646 (enable_disable_bp_num_loc): Ditto.
1647 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1648 (find_condition_and_thread_for_sals): New static function.
1649 (create_breakpoint): Call find_condition_and_thread_for_sals.
1650 (location_to_sals): Call find_condition_and_thread_for_sals instead
1651 of find_condition_and_thread.
1652
1653 2020-10-26 Tom de Vries <tdevries@suse.de>
1654
1655 * dwarf2/read.c (process_full_comp_unit): Call
1656 dwarf2_find_base_address.
1657
1658 2020-10-26 Tom Tromey <tromey@adacore.com>
1659
1660 * gdbtypes.c (create_range_type): Revert previous patch. Add
1661 comment.
1662
1663 2020-10-26 Pedro Alves <pedro@palves.net>
1664
1665 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1666 (my_waitpid): Use gdb::handle_eintr.
1667
1668 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1669
1670 * acinclude.m4: Update ptrace.m4 path.
1671 * ptrace.m4: Moved to gdbsupport.
1672
1673 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1676 instead of target_gdbarch.
1677
1678 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * jit.c (jit_reader_load_command): Pass current inferior.
1681 (jit_inferior_init): Change parameter type to inferior, use it.
1682 (jit_inferior_created): Remove.
1683 (jit_inferior_created_hook): Pass inferior parameter down.
1684 (_initialize_jit): Use jit_inferior_created_hook instead of
1685 jit_inferior_created.
1686 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1687 * infrun.c (follow_exec): Pass inferior to
1688 jit_inferior_created_hook.
1689
1690 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1693 parameter and use it.
1694 (thread_db_inferior_created): Pass inferior argument.
1695
1696 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1697
1698 * aix-thread.c (aix_thread_inferior_created): Add inferior
1699 parameter.
1700 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1701 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1702 * jit.c (jit_inferior_created): Likewise.
1703 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1704 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1705 * observable.h (inferior_created): Likewise.
1706 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1707 * symfile-mem.c (add_vsyscall_page): Likewise.
1708 * infcmd.c (post_create_inferior): Pass inferior argument.
1709
1710 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1711
1712 GDB 10.1 released.
1713
1714 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1715
1716 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1717 to ada_check_typedef.
1718
1719 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * f-exp.y (f_parse): Rename to...
1722 (f_language::parser): ...this.
1723 * f-lang.c (f_get_encoding): Rename to...
1724 (f_language::get_encoding): ...this.
1725 (f_op_print_tab): Rename to...
1726 (f_language::op_print_tab): ...this.
1727 (exp_descriptor_f): Rename to...
1728 (f_language::exp_descriptor_tab): ...this.
1729 (class f_language): Moved to f-lang.h.
1730 (f_language::language_arch_info): New function, moved out of class
1731 declaration.
1732 (f_language::search_name_hash): Likewise.
1733 (f_language::lookup_symbol_nonlocal): Likewise.
1734 (f_language::get_symbol_name_matcher_inner): Likewise.
1735 * f-lang.h: Add 'valprint.h' include.
1736 (class f_language): Moved here from f-lang.c.
1737 * f-typeprint.c (f_type_print_args): Delete commented out
1738 declaration.
1739 (f_print_typedef): Rename to...
1740 (f_language::print_typedef): ...this.
1741 (f_print_type): Rename to...
1742 (f_language::print_type): ...this.
1743 (f_type_print_varspec_prefix): Delete declaration and rename to...
1744 (f_language::f_type_print_varspec_prefix): ...this.
1745 (f_type_print_varspec_suffix): Delete declaration and rename to...
1746 (f_language::f_type_print_varspec_suffix): ...this.
1747 (f_type_print_base): Delete declaration and rename to...
1748 (f_language::f_type_print_base): ...this.
1749 * f-valprint.c (f_value_print_inner): Rename to...
1750 (f_language::value_print_inner): ...this.
1751 * parse.c: Delete 'f-lang.h' include.
1752
1753 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * language.h (language_defn::print_type): Add variable names in
1756 declaration, and update header comment.
1757
1758 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * ada-lang.c (ada_language::demangle): Rename to...
1761 (ada_language::demangle_symbol): ...this.
1762 * c-lang.c (cplus_language::demangle): Rename to...
1763 (cplus_language::demangle_symbol): ...this.
1764 * d-lang.c (d_language::demangle): Rename to...
1765 (d_language::demangle_symbol): ...this.
1766 * f-lang.c (f_language::demangle): Rename to...
1767 (f_language::demangle_symbol): ...this.
1768 * go-lang.c (go_language::demangle): Rename to...
1769 (go_language::demangle_symbol): ...this.
1770 * language.c (language_demangle): Update call to demangle_symbol.
1771 (auto_or_unknown_language::demangle): Rename to...
1772 (auto_or_unknown_language::demangle_symbol): ...this.
1773 * language.h (language_defn::demangle): Rename to...
1774 (language_defn::demangle_symbol): ...this.
1775 * objc-lang.c (objc_language::demangle): Rename to...
1776 (objc_language::demangle_symbol): ...this.
1777 * rust-lang.c (rust_language::demangle): Rename to...
1778 (rust_language::demangle_symbol): ...this.
1779
1780 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1783 (iterate_over_file_blocks): Replace use of macro with the macros
1784 definition.
1785
1786 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1789 * valprint.c (maybe_print_array_index): Replace use of macro with
1790 the macros definition.
1791
1792 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * ada-lang.c (ada_language::print_array_index): Call value_print
1795 directly.
1796 * language.c (language_defn::print_array_index): Likewise.
1797 * language.h (LA_VALUE_PRINT): Delete.
1798 * valprint.c (value_print): Call value_print on the
1799 current_language directly.
1800
1801 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * language.h (LA_PRINT_TYPEDEF): Delete.
1804 * typeprint.c (typedef_print): Call print_typedef directly on the
1805 current_language object.
1806
1807 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * m2-exp.y (m2_parse): Rename to...
1810 (m2_language::parser): ...this. Update function signature.
1811 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1812 (m2_op_print): Rename to...
1813 (m2_language::op_print_tab): ...this, and make const.
1814 (exp_descriptor_modula2): Rename to...
1815 (m2_language::exp_descriptor_modula2): ...this.
1816 (class m2_language): Move to m2-lang.h.
1817 (m2_language::language_arch_info): New function, moved out of
1818 class declaration.
1819 (m2_language::printchar): New function, body from m2_printchar.
1820 (m2_language::printstr): New function, moved out of class
1821 declaration.
1822 (m2_language::emitchar): Likewise.
1823 * m2-lang.h (m2_parse): Delete declaration.
1824 (m2_print_typedef): Delete declaration.
1825 (m2_value_print_inner): Delete declaration.
1826 (class m2_language): Class declaration moved from m2-lang.c,
1827 larger functions are left in m2-lang.c.
1828 * m2-typeprint.c (m2_print_typedef): Rename to...
1829 (m2_language::print_typedef): ...this, and update function
1830 signature.
1831 * m2-valprint.c (m2_value_print_inner): Rename to...
1832 (m2_language::value_print_inner): ...this, replace use of
1833 LA_PRINT_STRING with a direct call to printstr member function,
1834 and update recursive call.
1835
1836 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * language.c (default_is_string_type_p): Delete, implementation
1839 moved into auto_or_unknown_language::is_string_type_p.
1840 (unk_op_print_tab): Moved into
1841 auto_or_unknown_language::opcode_print_table.
1842 (unknown_language_arch_info): Delete, implementation moved into
1843 auto_or_unknown_language::language_arch_info.
1844 (class auto_or_unknown_language): New class, member functions
1845 copied from unknown_language class, with some updates.
1846 (class unknown_language): Most member functions moved into
1847 auto_or_unknown_language class. Inherit from
1848 auto_or_unknown_language class.
1849 (class auto_language): Inherit from auto_or_unknown_language.
1850 Delete most member functions.
1851
1852 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1853
1854 * stabsread.c (read_member_functions): Remove gdb_assert.
1855
1856 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1857
1858 * gdbtypes.c (init_complex_type): Check target type name.
1859
1860 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1861
1862 * target-debug.h (target_debug_print_struct_target_ops_p):
1863 Remove.
1864 (target_debug_print_async_callback_ftype_p): Remove.
1865 (target_debug_print_struct_trace_state_variable_p): Remove.
1866 (target_debug_print_struct_traceframe_info_p): Remove.
1867 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1868 (target_debug_print_enum_btrace_format): Remove.
1869 (target_debug_print_enum_info_proc_what): Remove.
1870 (target_debug_print_thread_info_pp): Remove.
1871
1872 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * target.h (struct target_ops) <make_corefile_notes>:
1875 Change return type to unique pointer.
1876 * target.c (dummy_make_corefile_notes): Likewise.
1877 * exec.c (struct exec_target) <make_corefile_notes>:
1878 Likewise.
1879 (exec_target::make_corefile_notes): Likewise.
1880 * procfs.c (class procfs_target) <make_corefile_notes>:
1881 Likewise.
1882 (procfs_do_thread_registers): Adjust to unique pointer.
1883 (struct procfs_corefile_thread_data): Add constructor.
1884 <note_data>: Change type to unique pointer.
1885 (procfs_corefile_thread_callback): Adjust to unique pointer.
1886 (procfs_target::make_corefile_notes): Change return type to
1887 unique pointer.
1888 * target-delegates.c: Re-generate.
1889 * gcore.c (write_gcore_file_1): Adjust.
1890 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1891 New.
1892
1893 2020-10-22 Tom de Vries <tdevries@suse.de>
1894
1895 * block.c (find_block_in_blockvector): Make sure the returned block
1896 contains pc.
1897
1898 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 PR gdb/26693
1901 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1902 parameter.
1903 (load_cu): Pass existing CU.
1904 (process_imported_unit_die): Likewise.
1905 (follow_die_offset): Likewise.
1906
1907 2020-10-22 Luis Machado <luis.machado@linaro.org>
1908
1909 * corelow.c (core_target::xfer_partial): Also check for an empty
1910 m_core_unavailable_mappings vector.
1911
1912 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1915 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1916 * f-exp.y (arglist): Allow for a series of subranges.
1917 (subrange): Add cases for subranges with strides.
1918 * f-lang.c (value_f90_subarray): Catch use of array strides and
1919 throw an error.
1920 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1921
1922 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * expprint.c (print_subexp_standard): Change enum range_type to
1925 range_flag and rename variables to match.
1926 (dump_subexp_body_standard): Likewise.
1927 * expression.h (enum range_type): Rename to...
1928 (enum range_flag): ...this.
1929 (range_types): Rename to...
1930 (range_flags): ...this.
1931 * f-lang.c (value_f90_subarray): Change enum range_type to
1932 range_flag and rename variables to match.
1933 * parse.c (operator_length_standard): Likewise.
1934 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1935 range_type to range_flag.
1936 * rust-lang.c (rust_evaluate_funcall): Likewise.
1937 (rust_range): Likewise.
1938 (rust_compute_range): Likewise.
1939 (rust_subscript): Likewise.
1940
1941 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * expprint.c (print_subexp_standard): Update to reflect changes to
1944 enum range_type.
1945 (dump_subexp_body_standard): Likewise.
1946 * expression.h (enum range_type): Convert to a bit field enum, and
1947 make the enum unsigned.
1948 * f-exp.y (subrange): Update to reflect changes to enum
1949 range_type.
1950 * f-lang.c (value_f90_subarray): Likewise.
1951 * parse.c (operator_length_standard): Likewise.
1952 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1953 * rust-lang.c (rust_range): Likewise.
1954 (rust_compute_range): Likewise.
1955 (rust_subscript): Likewise.
1956
1957 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1958
1959 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1960 (displaced_step_in_progress): Fix comment.
1961
1962 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1963
1964 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1965 * gdbarch.c: Re-generate.
1966 * gdbarch.h: Re-generate.
1967 * gcore.c (write_gcore_file_1): Adjust.
1968 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1969 constructor.
1970 <note_data>: Change type to unique pointer.
1971 <abort_iteration>: Change type to bool.
1972 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1973 (fbsd_collect_thread_registers): Return void, adjust.
1974 (struct fbsd_corefile_thread_data): Add construtor.
1975 <note_data>: Change type to unique pointer.
1976 (fbsd_corefile_thread): Adjust.
1977 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1978 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1979 to unique pointer, adjust.
1980 (struct linux_collect_regset_section_cb_data): Add constructor.
1981 <note_data>: Change type to unique pointer.
1982 <abort_iteration>: Change type to bool.
1983 (linux_collect_thread_registers): Return void, adjust.
1984 (struct linux_corefile_thread_data): Add constructor.
1985 <note_data>: Change type to unique pointer.
1986 (linux_corefile_thread): Adjust.
1987 (linux_make_corefile_notes): Return unique pointer, adjust.
1988
1989 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1992 * gdbarch.c: Re-generate.
1993 * gdbarch.h: Re-generate.
1994 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1995 bool.
1996 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1997 Likewise.
1998 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1999 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2000 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2001 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2002
2003 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2004
2005 * gdbarch.sh: Make generated predicates return bool.
2006 * gdbarch.c: Re-generate.
2007 * gdbarch.h: Re-generate.
2008
2009 2020-10-20 Tom Tromey <tom@tromey.com>
2010
2011 * varobj-iter.h (struct varobj_item): Remove typedef.
2012
2013 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * infrun.c (currently_stepping): Change int to bool
2016 (maybe_software_singlestep): Likewise.
2017 (show_stop_on_solib_events): Likewise.
2018 (stepping_past_nonsteppable_watchpoint): Likewise.
2019 (displaced_step_in_progress_any_inferior): Likewise.
2020 (displaced_step_in_progress_thread): Likewise.
2021 (keep_going_stepped_thread): Likewise.
2022 (thread_still_needs_step_over): Likewise.
2023 (start_step_over): Likewise.
2024 (do_target_resume): Likewise.
2025 (resume_1): Likewise.
2026 (clear_proceed_status): Likewise.
2027 (thread_still_needs_step_over_bp): Likewise.
2028 (proceed): Likewise.
2029 (switch_back_to_stepped_thread): Likewise.
2030 (adjust_pc_after_break): Likewise.
2031 (stepped_in_from): Likewise.
2032 (handle_stop_requested): Likewise.
2033 (handle_syscall_event): Likewise.
2034 (handle_no_resumed): Likewise.
2035 (handle_inferior_event): Likewise.
2036 (finish_step_over): Likewise.
2037 (handle_signal_stop): Likewise.
2038 (process_event_stop_test): Likewise.
2039
2040 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * infrun.c (get_displaced_stepping_state): Fix comment.
2043
2044 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2045
2046 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2047
2048 2020-10-19 Tom Tromey <tromey@adacore.com>
2049
2050 PR tui/26719
2051 * tui/tui-winsource.h (struct tui_source_window_base)
2052 <refresh_window>: Rename from refresh_pad.
2053 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2054 Rename from refresh_pad.
2055 (tui_source_window_base::show_source_content)
2056 (tui_source_window_base::do_scroll_horizontal): Update.
2057
2058 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2059
2060 * thread.c (_initialize_thread): Fine-tune the help text of
2061 'info threads'.
2062
2063 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064
2065 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2066
2067 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2068
2069 * breakpoint.c (handle_jit_event): Add an argument, change how
2070 `jit_event_handler` is called.
2071
2072 2020-10-17 Tom Tromey <tom@tromey.com>
2073
2074 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2075 (scan_xcoff_symtab): Update.
2076 * psymtab.h (class psymtab_storage) <global_psymbols,
2077 static_psymbols, current_global_psymbols,
2078 current_static_psymbols>: Remove.
2079 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2080 (match_partial_symbol, lookup_partial_symbol): Update.
2081 (print_partial_symbols): Change parameters.
2082 (dump_psymtab, recursively_search_psymtabs)
2083 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2084 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2085 (concat): Remove.
2086 (end_psymtab_common): Simplify.
2087 (append_psymbol_to_list): Change parameters.
2088 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2089 (init_psymbol_list): Simplify.
2090 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2091 * psympriv.h (struct partial_symtab) <empty>: New method.
2092 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2093 Remove.
2094 <global_psymbols, static_psymbols>: New members.
2095 <add_psymbol>: New methods.
2096 (add_psymbol_to_list): Don't declare.
2097 (psymbol_placement): Move earlier.
2098 * mdebugread.c (parse_partial_symbols): Update.
2099 (handle_psymbol_enumerators): Change parameters.
2100 (mdebug_expand_psymtab): Update.
2101 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2102 (add_partial_symbol): Update.
2103 * dwarf2/index-write.c (write_psymbols): Change parameters.
2104 (write_one_signatured_type): Update.
2105 (recursively_count_psymbols): Update.
2106 (recursively_write_psymbols): Update.
2107 (class debug_names) <recursively_write_psymbols>: Update.
2108 <write_psymbols>: Change parameters.
2109 <write_one_signatured_type>: Update.
2110 * dbxread.c (read_dbx_symtab): Update.
2111 (dbx_end_psymtab): Use partial_symtab::empty.
2112 * ctfread.c (struct ctf_context) <pst>: New member.
2113 (create_partial_symtab): Set it.
2114 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2115 (scan_partial_symbols): Use the psymtab's context. Update.
2116
2117 2020-10-17 Tom Tromey <tom@tromey.com>
2118
2119 * valprint.c (generic_value_print): Remove comment.
2120 * m2-valprint.c (m2_value_print_inner): Remove comment.
2121 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2122 type.
2123
2124 2020-10-17 Tom de Vries <tdevries@suse.de>
2125
2126 PR symtab/26317
2127 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2128 symbol main.
2129
2130 2020-10-14 Tom de Vries <tdevries@suse.de>
2131
2132 PR gdb/26733
2133 * solib.c (solib_contains_address_p): Handle
2134 'solib->sections == nullptr'.
2135
2136 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 PR gdb/26642
2139 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2140 target can't do async.
2141 * target.c (target_wait): Assert that we don't pass
2142 TARGET_WNOHANG to a target that can't async.
2143
2144 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2145
2146 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2147 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2148 * alpha-bsd-nat.c: Adjust include.
2149 * alpha-bsd-tdep.h: Adjust comment.
2150 * alpha-nbsd-tdep.c: Rename to ...
2151 * alpha-netbsd-tdep.c: ... this, adjust include.
2152 * amd64-nbsd-nat.c: Rename to ...
2153 * amd64-netbsd-nat.c: ... this, adjust include.
2154 * amd64-nbsd-tdep.c: Rename to ...
2155 * amd64-netbsd-tdep.c: ... this, adjust include.
2156 * amd64-tdep.h: Adjust include.
2157 * arm-nbsd-nat.c: Rename to ...
2158 * arm-netbsd-nat.c: ... this, adjust include.
2159 * arm-nbsd-tdep.c: Rename to ...
2160 * arm-netbsd-tdep.c: ... this, adjust include.
2161 * arm-nbsd-tdep.h: Rename to ...
2162 * arm-netbsd-tdep.h: ... this, adjust include.
2163 * configure.nat: Adjust file lists.
2164 * configure.tgt: Likewise.
2165 * hppa-nbsd-nat.c: Rename to ...
2166 * hppa-netbsd-nat.c: ... this, adjust include.
2167 * hppa-nbsd-tdep.c: Rename to ...
2168 * hppa-netbsd-tdep.c: ... this, adjust include.
2169 * i386-nbsd-nat.c: Rename to ...
2170 * i386-netbsd-nat.c: ... this, adjust include.
2171 * i386-nbsd-tdep.c: Rename to ...
2172 * i386-netbsd-tdep.c: ... this, adjust include.
2173 * m68k-bsd-nat.c: Adjust include.
2174 * mips-nbsd-nat.c: Rename to ...
2175 * mips-netbsd-nat.c: ... this, adjust include.
2176 * mips-nbsd-tdep.c: Rename to ...
2177 * mips-netbsd-tdep.c: ... this, adjust include.
2178 * mips-nbsd-tdep.h: Rename to ...
2179 * mips-netbsd-tdep.h: ... this.
2180 * nbsd-nat.c: Rename to ...
2181 * netbsd-nat.c: ... this, adjust include.
2182 * nbsd-nat.h: Rename to ...
2183 * netbsd-nat.h: ... this, adjust include.
2184 * nbsd-tdep.c: Rename to ...
2185 * netbsd-tdep.c: ... this, adjust include.
2186 * nbsd-tdep.h: Rename to ...
2187 * netbsd-tdep.h: ... this.
2188 * ppc-nbsd-nat.c: Rename to ...
2189 * ppc-netbsd-nat.c: ... this, adjust include.
2190 * ppc-nbsd-tdep.c: Rename to ...
2191 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2192 * ppc-nbsd-tdep.h: Rename to ...
2193 * ppc-netbsd-tdep.h: ... this.
2194 * sh-nbsd-nat.c: Rename to ...
2195 * sh-netbsd-nat.c: ... this, adjust include.
2196 * sh-nbsd-tdep.c: Rename to ...
2197 * sh-netbsd-tdep.c: ... this, adjust include.
2198 * sparc-nbsd-nat.c: Rename to ...
2199 * sparc-netbsd-nat.c: ... this.
2200 * sparc-nbsd-tdep.c: Rename to ...
2201 * sparc-netbsd-tdep.c: ... this, adjust include.
2202 * sparc64-nbsd-nat.c: Rename to ...
2203 * sparc64-netbsd-nat.c: ... this.
2204 * sparc64-nbsd-tdep.c: Rename to ...
2205 * sparc64-netbsd-tdep.c: ... this, adjust include.
2206 * sparc64-tdep.h: Adjust comment.
2207 * vax-bsd-nat.c: Adjust include.
2208 * vax-nbsd-tdep.c: Rename to ...
2209 * vax-netbsd-tdep.c: ... this, adjust include.
2210
2211 2020-10-12 Tom Tromey <tom@tromey.com>
2212
2213 * target.h (struct target_ops) <get_section_table>: Update.
2214 (target_get_section_table): Update.
2215 * target.c (target_get_section_table, target_section_by_addr)
2216 (memory_xfer_partial_1): Update.
2217 * target-section.h (target_section_table): Now an alias.
2218 * target-delegates.c: Rebuild.
2219 * target-debug.h (target_debug_print_target_section_table_p):
2220 Rename from target_debug_print_struct_target_section_table_p.
2221 * symfile.c (build_section_addr_info_from_section_table): Update.
2222 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2223 * solib-svr4.c (scan_dyntag): Update.
2224 * solib-dsbt.c (scan_dyntag): Update.
2225 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2226 Update.
2227 * record-full.c (record_full_core_target::xfer_partial): Update.
2228 * progspace.h (struct program_space) <target_sections>: Update.
2229 * exec.h (print_section_info): Update.
2230 * exec.c (exec_target::close, build_section_table)
2231 (add_target_sections, add_target_sections_of_objfile)
2232 (remove_target_sections, exec_on_vfork)
2233 (section_table_available_memory)
2234 (section_table_xfer_memory_partial)
2235 (exec_target::get_section_table, exec_target::xfer_partial)
2236 (print_section_info, set_section_command)
2237 (exec_set_section_address, exec_target::has_memory): Update.
2238 * corelow.c (core_target::build_file_mappings)
2239 (core_target::xfer_partial, core_target::info_proc_mappings)
2240 (core_target::info_proc_mappings): Update.
2241 * bfd-target.c (class target_bfd): Update
2242
2243 2020-10-12 Tom Tromey <tom@tromey.com>
2244
2245 * progspace.c (program_space::~program_space): Don't call
2246 clear_section_table.
2247 * exec.h (clear_section_table): Don't declare.
2248 * exec.c (exec_target::close): Update.
2249 (clear_section_table): Remove.
2250
2251 2020-10-12 Tom Tromey <tom@tromey.com>
2252
2253 * exec.c (add_target_sections_of_objfile): Simplify.
2254
2255 2020-10-12 Tom Tromey <tom@tromey.com>
2256
2257 * solib.c (solib_map_sections): Update.
2258 * record-full.c (record_full_core_open_1): Update.
2259 * exec.h (build_section_table): Return a target_section_table.
2260 * exec.c (exec_file_attach): Update.
2261 (build_section_table): Return a target_section_table.
2262 * corelow.c (core_target::core_target): Update.
2263 * bfd-target.c (target_bfd::target_bfd): Update.
2264
2265 2020-10-12 Tom Tromey <tom@tromey.com>
2266
2267 * target.c (target_section_by_addr, memory_xfer_partial_1):
2268 Update.
2269 * target-section.h (struct target_section_table): Use
2270 std::vector.
2271 * symfile.h (build_section_addr_info_from_section_table): Take a
2272 target_section_table.
2273 * symfile.c (build_section_addr_info_from_section_table): Take a
2274 target_section_table.
2275 * solist.h (struct so_list) <sections>: Change type.
2276 <sections_end>: Remove.
2277 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2278 (solib_contains_address_p): Update.
2279 * solib-svr4.c (scan_dyntag): Update.
2280 * solib-dsbt.c (scan_dyntag): Update.
2281 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2282 Update.
2283 * record-full.c (record_full_core_start, record_full_core_end):
2284 Remove.
2285 (record_full_core_sections): New global.
2286 (record_full_core_open_1, record_full_core_target::xfer_partial):
2287 Update.
2288 * exec.h (build_section_table, section_table_xfer_memory_partial)
2289 (add_target_sections): Take a target_section_table.
2290 * exec.c (exec_file_attach, clear_section_table): Update.
2291 (resize_section_table): Remove.
2292 (build_section_table, add_target_sections): Take a
2293 target_section_table.
2294 (add_target_sections_of_objfile, remove_target_sections)
2295 (exec_on_vfork): Update.
2296 (section_table_available_memory): Take a target_section_table.
2297 (section_table_read_available_memory): Update.
2298 (section_table_xfer_memory_partial): Take a target_section_table.
2299 (print_section_info, set_section_command)
2300 (exec_set_section_address, exec_target::has_memory): Update.
2301 * corelow.c (class core_target) <m_core_section_table,
2302 m_core_file_mappings>: Remove braces.
2303 <~core_target>: Remove.
2304 (core_target::core_target): Update.
2305 (core_target::~core_target): Remove.
2306 (core_target::build_file_mappings)
2307 (core_target::xfer_memory_via_mappings)
2308 (core_target::xfer_partial, core_target::info_proc_mappings):
2309 Update.
2310 * bfd-target.c (target_bfd::xfer_partial): Update.
2311 (target_bfd::target_bfd): Update.
2312 (target_bfd::~target_bfd): Remove.
2313
2314 2020-10-12 Tom Tromey <tom@tromey.com>
2315
2316 * target.h (struct target_section, struct target_section_table):
2317 Move to target-section.h.
2318 * target-section.h: New file.
2319
2320 2020-10-12 Pedro Alves <pedro@palves.net>
2321
2322 PR exp/26602
2323 * valops.c (struct struct_field_searcher): New.
2324 (update_search_result): Rename to ...
2325 (struct_field_searcher::update_result): ... this. Simplify
2326 prototype. Record all found fields.
2327 (do_search_struct_field): Rename to ...
2328 (struct_field_searcher::search): ... this. Simplify prototype.
2329 Maintain stack of visited baseclass path. Call update_result for
2330 fields too. Keep searching fields in baseclasses instead of
2331 stopping at the first found field.
2332 (search_struct_field): Use struct_field_searcher. When looking
2333 for fields, report ambiguous access attempts.
2334
2335 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * frame.c (inside_main_func): Check full symbols as well as
2338 minimal symbols.
2339
2340 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2341
2342 * ada-lang.c (advance_wild_match): Rewrite the function's
2343 description. Change the type of target0, t0 and t1 to char.
2344
2345 2020-10-09 Tom Tromey <tromey@adacore.com>
2346
2347 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2348
2349 2020-10-09 Tom Tromey <tromey@adacore.com>
2350
2351 * ada-lang.h (ada_encode): Return std::string.
2352 * ada-lang.c (ada_encode_1): Return std::string.
2353 (ada_encode): Likewise.
2354 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2355 Update.
2356 * ada-exp.y (block_lookup, write_var_or_type): Update.
2357
2358 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2359
2360 PR exp/26714
2361 * printcmd.c (print_formatted): Handle void results as
2362 unformatted prints.
2363
2364 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * arch/aarch32.c (aarch32_create_target_description): Release the
2367 target_desc_up as late as possible.
2368 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2369 * arch/amd64.c (amd64_create_target_description): Likewise.
2370 * arch/arc.c (arc_create_target_description): Return a
2371 target_desc_up, don't release it.
2372 * arch/arc.h (arc_create_target_description): Update declaration.
2373 (arc_lookup_target_description): Move target_desc_up into the
2374 cache, and return a borrowed pointer.
2375 * arch/arm.c (arm_create_target_description): Release the
2376 target_desc_up as late as possible.
2377 * arch/i386.c (i386_create_target_description): Likewise.
2378 * arch/riscv.h (riscv_create_target_description): Update
2379 declaration to match definition.
2380 * arch/tic6x.c (tic6x_create_target_description): Release the
2381 target_desc_up as late as possible.
2382
2383 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2386 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2387
2388 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2389
2390 * source.c (directory_command): Notify observers that "directories"
2391 parameter has changed.
2392
2393 2020-10-08 Tom Tromey <tom@tromey.com>
2394
2395 * cli/cli-cmds.c (print_disassembly): Style function name and
2396 addresses. Add _() wrappers.
2397
2398 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2399
2400 * NEWS: Mention ARC support in GDBserver.
2401
2402 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * arch/aarch32.c (aarch32_create_target_description): Release
2405 unique_ptr returned from allocate_target_description.
2406 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2407 * arch/amd64.c (amd64_create_target_description): Likewise.
2408 * arch/arc.c (arc_create_target_description): Likewise.
2409 * arch/arm.c (arm_create_target_description): Likewise.
2410 * arch/i386.c (i386_create_target_description): Likewise.
2411 * arch/riscv.c (riscv_create_target_description): Update return
2412 type. Handle allocate_target_description returning a unique_ptr.
2413 (riscv_lookup_target_description): Update to handle unique_ptr.
2414 * arch/tic6x.c (tic6x_create_target_description): Release
2415 unique_ptr returned from allocate_target_description.
2416 * features/microblaze-with-stack-protect.c: Regenerate.
2417 * features/microblaze.c: Regenerate.
2418 * features/mips-dsp-linux.c: Regenerate.
2419 * features/mips-linux.c: Regenerate.
2420 * features/mips64-dsp-linux.c: Regenerate.
2421 * features/mips64-linux.c: Regenerate.
2422 * features/nds32.c: Regenerate.
2423 * features/nios2.c: Regenerate.
2424 * features/or1k.c: Regenerate.
2425 * features/rs6000/powerpc-32.c: Regenerate.
2426 * features/rs6000/powerpc-32l.c: Regenerate.
2427 * features/rs6000/powerpc-403.c: Regenerate.
2428 * features/rs6000/powerpc-403gc.c: Regenerate.
2429 * features/rs6000/powerpc-405.c: Regenerate.
2430 * features/rs6000/powerpc-505.c: Regenerate.
2431 * features/rs6000/powerpc-601.c: Regenerate.
2432 * features/rs6000/powerpc-602.c: Regenerate.
2433 * features/rs6000/powerpc-603.c: Regenerate.
2434 * features/rs6000/powerpc-604.c: Regenerate.
2435 * features/rs6000/powerpc-64.c: Regenerate.
2436 * features/rs6000/powerpc-64l.c: Regenerate.
2437 * features/rs6000/powerpc-7400.c: Regenerate.
2438 * features/rs6000/powerpc-750.c: Regenerate.
2439 * features/rs6000/powerpc-860.c: Regenerate.
2440 * features/rs6000/powerpc-altivec32.c: Regenerate.
2441 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2442 * features/rs6000/powerpc-altivec64.c: Regenerate.
2443 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2444 * features/rs6000/powerpc-e500.c: Regenerate.
2445 * features/rs6000/powerpc-e500l.c: Regenerate.
2446 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2447 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2448 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2449 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2450 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2451 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2452 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2453 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2454 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2455 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2456 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2457 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2458 * features/rs6000/powerpc-vsx32.c: Regenerate.
2459 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2460 * features/rs6000/powerpc-vsx64.c: Regenerate.
2461 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2462 * features/rs6000/rs6000.c: Regenerate.
2463 * features/rx.c: Regenerate.
2464 * features/s390-gs-linux64.c: Regenerate.
2465 * features/s390-linux32.c: Regenerate.
2466 * features/s390-linux32v1.c: Regenerate.
2467 * features/s390-linux32v2.c: Regenerate.
2468 * features/s390-linux64.c: Regenerate.
2469 * features/s390-linux64v1.c: Regenerate.
2470 * features/s390-linux64v2.c: Regenerate.
2471 * features/s390-te-linux64.c: Regenerate.
2472 * features/s390-tevx-linux64.c: Regenerate.
2473 * features/s390-vx-linux64.c: Regenerate.
2474 * features/s390x-gs-linux64.c: Regenerate.
2475 * features/s390x-linux64.c: Regenerate.
2476 * features/s390x-linux64v1.c: Regenerate.
2477 * features/s390x-linux64v2.c: Regenerate.
2478 * features/s390x-te-linux64.c: Regenerate.
2479 * features/s390x-tevx-linux64.c: Regenerate.
2480 * features/s390x-vx-linux64.c: Regenerate.
2481 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2482 from allocate_target_description.
2483 * target-descriptions.c (allocate_target_description): Update
2484 return type.
2485 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2486 allocate_target_description.
2487
2488 2020-10-07 Tom Tromey <tromey@adacore.com>
2489
2490 * unittests/search-memory-selftests.c: New file.
2491 * Makefile.in (SELFTESTS_SRCS): Add
2492 unittests/search-memory-selftests.c.
2493
2494 2020-10-07 Tom Tromey <tromey@adacore.com>
2495
2496 PR gdb/16930:
2497 * findcmd.c (_initialize_mem_search): Mention that the range is
2498 inclusive.
2499
2500 2020-10-07 Tom Tromey <tromey@adacore.com>
2501
2502 * target.h (simple_search_memory): Don't declare.
2503 * target.c (simple_search_memory): Move to gdbsupport.
2504 (default_search_memory): Update.
2505 * remote.c (remote_target::search_memory): Update.
2506
2507 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * Makefile.in (COMPILE): Add CXXFLAGS.
2510 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2511 (check-headers): Add CXXFLAGS.
2512
2513 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2514
2515 * arc-linux-tdep.h: New file.
2516 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2517 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2518 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2519 arc_linux_gregset, arc_linux_v2_regset,
2520 arc_linux_iterate_over_regset_sections,
2521 arc_linux_core_read_description): Implement.
2522 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2523 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2524 (arc_gdbarch_features_create): Add.
2525 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2526
2527 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2528
2529 * arch/arc.h: Rename "arc_gdbarch_features" to
2530 "arc_arch_features".
2531 * arc-tdep.h: Likewise.
2532 * arc-tdep.c: Likewise.
2533
2534 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2535
2536 * infcmd.c (attach_command): Remove the redundant call to
2537 `clear_proceed_status`.
2538
2539 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2540
2541 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2542
2543 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2544
2545 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2546 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2547 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2548
2549 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2552 (_initialize_break_catch_sig): Don't allocate array.
2553
2554 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * symtab.c (find_pc_line): Return unmapped addresses when the
2557 requested address is also unmapped.
2558
2559 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2560
2561 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2562 tui/tui-out.h.
2563
2564 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2567 type::is_vector instead of TYPE_VECTOR.
2568
2569 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * auto-load.c (auto_load_objfile_script_1): Don't use
2572 debugfile_holder as temporary variable when stripping drive
2573 letter.
2574
2575 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2576
2577 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2578 Add TYPE_CODE_COMPLEX.
2579 (amd64_windows_return_value): Fix types returned via XMM0.
2580
2581 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2582
2583 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2584 AArch64/ARM maintainers.
2585
2586 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * NEWS: Mention set/show debug event-loop.
2589
2590 2020-10-02 Tom Tromey <tromey@adacore.com>
2591
2592 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2593 REG_EXTENDED.
2594
2595 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2596
2597 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2598 * procfs.c (procfs_inferior_created): Remove.
2599 (_initialize_procfs): Don't register procfs_inferior_created.
2600
2601 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * async-event.c (invoke_async_signal_handlers): Add debug
2604 print.
2605 (check_async_event_handlers): Likewise.
2606 * event-top.c (show_debug_event_loop): New function.
2607 (_initialize_event_top): Register "set debug event-loop"
2608 setting.
2609
2610 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2613 * debug.h: Remove.
2614 * infrun.c: Include gdbsupport/common-debug.h.
2615 * linux-nat.c: Likewise.
2616
2617 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * async-event.h (create_async_signal_handler): Add name
2620 parameter.
2621 (create_async_event_handler): Likewise.
2622 * async-event.c (struct async_signal_handler) <name>: New field.
2623 (struct async_event_handler) <name>: New field.
2624 (create_async_signal_handler): Assign name.
2625 (create_async_event_handler): Assign name.
2626 * event-top.c (async_init_signals): Pass name when creating
2627 handler.
2628 * infrun.c (_initialize_infrun): Likewise.
2629 * record-btrace.c (record_btrace_push_target): Likewise.
2630 * record-full.c (record_full_open): Likewise.
2631 * remote-notif.c (remote_notif_state_allocate): Likewise.
2632 * remote.c (remote_target::open_1): Likewise.
2633 * tui/tui-win.c (tui_initialize_win): Likewise.
2634
2635 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2636
2637 * async-event.c (initialize_async_signal_handlers): Pass name to
2638 add_file_handler
2639 * event-top.c (ui_register_input_event_handler): Likewise.
2640 * linux-nat.c (linux_nat_target::async): Likewise.
2641 * run-on-main-thread.c (_initialize_run_on_main_thread):
2642 Likewise
2643 * ser-base.c (reschedule): Likewise.
2644 (ser_base_async): Likewise.
2645 * tui/tui-io.c: Likewise.
2646 * top.h (struct ui) <num>: New field.
2647 * top.c (highest_ui_num): New variable.
2648 (ui::ui): Initialize num.
2649
2650 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2651
2652 * observable.h <inferior_created>: Remove parameters. Update all
2653 listeners.
2654 * inferior.h (post_create_inferior): Remove target parameter.
2655 Update all callers.
2656
2657 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2658
2659 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2660 and DW_MACRO_undef_strx.
2661 (dwarf_decode_macros): Likewise
2662 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2663 which is the value of DW_AT_str_offsets_base.
2664 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2665 str_offsets_base.
2666
2667 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2668
2669 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2670
2671 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2672
2673 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2674 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2675
2676 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2677
2678 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2679
2680 2020-09-30 Tom de Vries <tdevries@suse.de>
2681
2682 PR symtab/26683
2683 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2684
2685 2020-09-30 Tom Tromey <tromey@adacore.com>
2686
2687 * dwarf2/read.c (handle_variant): Use constant_value.
2688
2689 2020-09-29 Tom Tromey <tom@tromey.com>
2690
2691 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2692 (read_file_scope, dwarf2_get_pc_bounds)
2693 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2694 (read_structure_type, handle_struct_member_die)
2695 (read_enumeration_type, read_array_type, read_set_type)
2696 (read_tag_pointer_type, read_tag_reference_type)
2697 (read_subroutine_type, read_base_type, read_subrange_type)
2698 (read_full_die_1, partial_die_info::read)
2699 (partial_die_info::read, by, new_symbol)
2700 (dwarf2_const_value_data, dwarf2_const_value_attr)
2701 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2702 (prepare_one_comp_unit): Update.
2703 * dwarf2/attribute.h (DW_UNSND): Remove.
2704
2705 2020-09-29 Tom Tromey <tom@tromey.com>
2706
2707 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2708 (read_subroutine_type, partial_die_info::read)
2709 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2710 (dwarf2_add_member_fn): Update.
2711 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2712 * dwarf2/attribute.c (attribute::as_boolean): New method.
2713
2714 2020-09-29 Tom Tromey <tom@tromey.com>
2715
2716 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2717 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2718 method.
2719 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2720
2721 2020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2724 the attribute's form.
2725
2726 2020-09-29 Tom Tromey <tom@tromey.com>
2727
2728 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2729 (dwarf2_add_member_fn): Update.
2730 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2731 * dwarf2/attribute.c (attribute::defaulted): New method, from
2732 is_valid_DW_AT_defaulted.
2733
2734 2020-09-29 Tom Tromey <tom@tromey.com>
2735
2736 * dwarf2/read.c (dw2_get_file_names_reader)
2737 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2738 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2739 (dwarf2_symbol_mark_computed): Use as_unsigned.
2740 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2741 method.
2742 <form_is_section_offset>: Update comment.
2743
2744 2020-09-29 Tom Tromey <tom@tromey.com>
2745
2746 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2747 dwarf2_default_access_attribute. Look up attribute.
2748 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2749 Update.
2750
2751 2020-09-29 Tom Tromey <tom@tromey.com>
2752
2753 * dwarf2/read.c (skip_one_die): Update.
2754 (read_full_die_1): Change how reprocessing is done.
2755 (partial_die_info::read): Update.
2756 (read_attribute_value): Remove need_reprocess parameter.
2757 (read_attribute): Likewise.
2758 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2759 New method.
2760
2761 2020-09-29 Tom Tromey <tom@tromey.com>
2762
2763 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2764 (dwarf2_const_value_attr, dump_die_shallow)
2765 (dwarf2_fetch_constant_bytes): Update.
2766 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2767 comment.
2768 <set_address>: New method.
2769 (DW_ADDR): Remove.
2770 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2771 (attribute::as_string, attribute::as_address): Add assert.
2772
2773 2020-09-29 Tom Tromey <tom@tromey.com>
2774
2775 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2776 (read_attribute_reprocess, read_attribute_value): Update.
2777 (read_attribute): Clear requires_reprocessing.
2778 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2779 form_requires_reprocessing>: New methods.
2780 <string_init>: Clear requires_reprocessing.
2781 <set_unsigned_reprocess>: New method.
2782 <name>: Shrink by one bit.
2783 <requires_reprocessing>: New member.
2784 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2785 method.
2786
2787 2020-09-29 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (read_attribute_value): Update.
2790 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2791 set_unsigned>: New methods.
2792 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2793
2794 2020-09-29 Tom Tromey <tom@tromey.com>
2795
2796 * dwarf2/read.c (get_alignment, read_array_order)
2797 (read_attribute_value, dwarf2_const_value_attr)
2798 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2799 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2800 New methods.
2801 (DW_SND): Remove.
2802
2803 2020-09-29 Tom Tromey <tom@tromey.com>
2804
2805 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2806 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2807 Update.
2808 * dwarf2/attribute.h (struct attribute) <as_signature,
2809 set_signature>: New methods.
2810 (DW_SIGNATURE): Remove.
2811
2812 2020-09-29 Tom Tromey <tom@tromey.com>
2813
2814 * dwarf2/read.c (read_call_site_scope)
2815 (handle_data_member_location, dwarf2_add_member_fn)
2816 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2817 (partial_die_info::read, read_attribute_value)
2818 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2819 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2820 (dwarf2_symbol_mark_computed): Update.
2821 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2822 methods.
2823 (DW_BLOCK): Remove.
2824 * dwarf2/attribute.c (attribute::form_is_block): Add
2825 DW_FORM_data16.
2826
2827 2020-09-29 Tom Tromey <tom@tromey.com>
2828
2829 * dwarf2/read.c (read_cutu_die_from_dwo)
2830 (read_attribute_reprocess, read_attribute_value, read_attribute)
2831 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2832 (dwarf2_fetch_constant_bytes): Update.
2833 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2834 <set_string_noncanonical, set_string_canonical>: New methods.
2835 <string_is_canonical>: Update comment.
2836 <canonical_string_p>: Add assert.
2837 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2838 * dwarf2/attribute.c (attribute::form_is_string): New method.
2839 (attribute::string): Use it.
2840
2841 2020-09-29 Tom Tromey <tom@tromey.com>
2842
2843 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2844 (dump_die_shallow): Use canonical_string_p.
2845 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2846 method.
2847
2848 2020-09-29 Tom Tromey <tom@tromey.com>
2849
2850 * dwarf2/read.c (partial_die_info::read)
2851 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2852 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2853 attribute::as_string.
2854
2855 2020-09-29 Tom Tromey <tom@tromey.com>
2856
2857 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2858 DW_ADDR.
2859 (attribute::string): Don't use DW_STRING.
2860 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2861 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2862
2863 2020-09-29 Tom Tromey <tom@tromey.com>
2864
2865 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2866 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2867 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2868 * dwarf2/attribute.h (struct attribute): Rename methods.
2869 * dwarf2/attribute.c (attribute::as_address): Rename from
2870 value_as_address.
2871 (attribute::as_string): Rename from value_as_string.
2872
2873 2020-09-29 Tom Tromey <tom@tromey.com>
2874
2875 * dwarf2/read.c (partial_die_info::read) <case
2876 DW_AT_linkage_name>: Use value_as_string.
2877 (dwarf2_string_attr): Use value_as_string.
2878 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2879 method.
2880 * dwarf2/attribute.c (attribute::value_as_string): New method.
2881
2882 2020-09-29 Pedro Alves <pedro@palves.net>
2883
2884 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2885 defined before using '#pragma GCC diagnostic' instead of checking
2886 __clang__.
2887
2888 2020-09-28 Tom Tromey <tom@tromey.com>
2889
2890 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2891 (handle_signal_stop): Update.
2892 * procfs.c (procfs_target::insert_watchpoint): Update.
2893 * target.h (target_have_steppable_watchpoint): Now a function.
2894
2895 2020-09-28 Tom Tromey <tom@tromey.com>
2896
2897 * infrun.c (set_schedlock_func): Update.
2898 * target.h (target_can_lock_scheduler): Now a function.
2899
2900 2020-09-28 Tom Tromey <tom@tromey.com>
2901
2902 * inferior.h (class inferior) <has_execution>: Update.
2903 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2904 * valops.c (find_function_in_inferior)
2905 (value_allocate_space_in_inferior): Update.
2906 * top.c (kill_or_detach): Update.
2907 * target.c (target_preopen, set_target_permissions): Update.
2908 (target_has_execution_current): Remove.
2909 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2910 Update.
2911 * solib.c (update_solib_list, reload_shared_libraries): Update.
2912 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2913 * solib-dsbt.c (enable_break): Update.
2914 * score-tdep.c (score7_fetch_inst): Update.
2915 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2916 Update.
2917 * remote.c (remote_target::start_remote)
2918 (remote_target::remote_check_symbols, remote_target::open_1)
2919 (remote_target::remote_detach_1, remote_target::verify_memory)
2920 (remote_target::xfer_partial, remote_target::read_description)
2921 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2922 * record-full.c (record_full_open_1): Update.
2923 * record-btrace.c (record_btrace_target_open): Update.
2924 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2925 (value_nsstring): Update.
2926 * linux-thread-db.c (add_thread_db_info)
2927 (thread_db_find_new_threads_silently, check_thread_db_callback)
2928 (try_thread_db_load_1, record_thread): Update.
2929 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2930 Update.
2931 * linux-fork.c (checkpoint_command): Update.
2932 * infrun.c (set_non_stop, set_observer_mode)
2933 (check_multi_target_resumption, for_each_just_stopped_thread)
2934 (maybe_remove_breakpoints, normal_stop)
2935 (class infcall_suspend_state): Update.
2936 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2937 (info_program_command, attach_command): Update.
2938 * infcall.c (call_function_by_hand_dummy): Update.
2939 * inf-loop.c (inferior_event_handler): Update.
2940 * gcore.c (gcore_command, derive_heap_segment): Update.
2941 * exec.c (exec_file_command): Update.
2942 * eval.c (evaluate_subexp): Update.
2943 * compile/compile.c (compile_to_object): Update.
2944 * cli/cli-dump.c (restore_command): Update.
2945 * breakpoint.c (update_watchpoint)
2946 (update_inserted_breakpoint_locations)
2947 (insert_breakpoint_locations, get_bpstat_thread): Update.
2948 * target.h (target_has_execution): Remove macro.
2949 (target_has_execution_current): Don't declare.
2950 (target_has_execution): Rename from target_has_execution_1. Add
2951 argument default.
2952
2953 2020-09-28 Tom Tromey <tom@tromey.com>
2954
2955 * mi/mi-main.c (exec_reverse_continue)
2956 (mi_cmd_list_target_features): Update.
2957 * infrun.c (set_exec_direction_func): Update.
2958 * target.c (default_execution_direction): Update.
2959 * reverse.c (exec_reverse_once): Update.
2960 * target.h (target_can_execute_reverse): Now a function.
2961
2962 2020-09-28 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-regs.c (tui_get_register)
2965 (tui_data_window::show_registers): Update.
2966 * thread.c (scoped_restore_current_thread::restore)
2967 (scoped_restore_current_thread::scoped_restore_current_thread):
2968 Update.
2969 * regcache-dump.c (regcache_print): Update.
2970 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2971 Update.
2972 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2973 * mep-tdep.c (current_me_module, current_options): Update.
2974 * linux-thread-db.c (thread_db_load): Update.
2975 * infcmd.c (registers_info, info_vector_command)
2976 (info_float_command): Update.
2977 * ia64-tdep.c (ia64_frame_prev_register)
2978 (ia64_sigtramp_frame_prev_register): Update.
2979 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2980 * gcore.c (derive_stack_segment): Update.
2981 * frame.c (get_current_frame, has_stack_frames): Update.
2982 * findvar.c (language_defn::read_var_value): Update.
2983 * arm-tdep.c (arm_pc_is_thumb): Update.
2984 * target.c (target_has_registers): Rename from
2985 target_has_registers_1.
2986 * target.h (target_has_registers): Remove macro.
2987 (target_has_registers): Rename from target_has_registers_1.
2988
2989 2020-09-28 Tom Tromey <tom@tromey.com>
2990
2991 * windows-tdep.c (tlb_make_value): Update.
2992 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2993 * thread.c (scoped_restore_current_thread::restore)
2994 (scoped_restore_current_thread::scoped_restore_current_thread)
2995 (thread_command): Update.
2996 * stack.c (backtrace_command_1, frame_apply_level_command)
2997 (frame_apply_all_command, frame_apply_command): Update.
2998 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2999 Update.
3000 * gcore.c (derive_stack_segment): Update.
3001 * frame.c (get_current_frame, has_stack_frames): Update.
3002 * auxv.c (info_auxv_command): Update.
3003 * ada-tasks.c (ada_build_task_list): Update.
3004 * target.c (target_has_stack): Rename from target_has_stack_1.
3005 * target.h (target_has_stack): Remove macro.
3006 (target_has_stack): Rename from target_has_stack_1.
3007
3008 2020-09-28 Tom Tromey <tom@tromey.com>
3009
3010 * target.c (target_has_memory): Rename from target_has_memory_1.
3011 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3012 * thread.c (scoped_restore_current_thread::restore)
3013 (scoped_restore_current_thread::scoped_restore_current_thread):
3014 Update.
3015 * frame.c (get_current_frame, has_stack_frames): Update.
3016 * target.h (target_has_memory): Remove macro.
3017 (target_has_memory): Rename from target_has_memory_1.
3018
3019 2020-09-28 Tom Tromey <tom@tromey.com>
3020
3021 * target.c (target_has_all_memory_1): Remove.
3022 * target.h (target_has_all_memory): Remove define.
3023 (target_has_all_memory_1): Don't declare.
3024
3025 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * ser-base.c: Adjust comments formatting.
3028
3029 2020-09-27 Tom Tromey <tom@tromey.com>
3030
3031 PR tui/25342:
3032 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3033
3034 2020-09-27 Tom Tromey <tom@tromey.com>
3035
3036 PR tui/25342:
3037 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3038
3039 2020-09-27 Tom Tromey <tom@tromey.com>
3040
3041 * unittests/tui-selftests.c: Update.
3042 * tui/tui-winsource.h (struct tui_source_window_base)
3043 <extra_margin, show_line_number, refresh_pad>: New methods.
3044 <m_max_length, m_pad>: New members.
3045 (tui_copy_source_line): Update.
3046 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3047 first_col, line_width, ndigits parameters. Add length.
3048 (tui_source_window_base::show_source_line): Write to pad. Line
3049 number now 0-based.
3050 (tui_source_window_base::refresh_pad): New method.
3051 (tui_source_window_base::show_source_content): Write to pad. Call
3052 refresh_pad.
3053 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3054 not refill.
3055 (tui_source_window_base::update_exec_info): Call
3056 show_line_number.
3057 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3058 method.
3059 <m_digits>: New member.
3060 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3061 and m_max_length.
3062 (tui_source_window::show_line_number): New method.
3063 * tui/tui-io.h (tui_puts): Fix comment.
3064 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3065 m_max_length.
3066
3067 2020-09-27 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-winsource.c
3070 (tui_source_window_base::set_is_exec_point_at): Don't call
3071 show_source_line.
3072
3073 2020-09-27 Tom Tromey <tom@tromey.com>
3074
3075 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3076 method.
3077 <erase>: Update.
3078 <cursor_x, cursor_y>: Remove.
3079 <m_inner_window>: New member.
3080 (tui_py_window::rerender): Create inner window.
3081 (tui_py_window::output): Write to inner window.
3082
3083 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3084
3085 PR python/26586
3086 * cli/cli-script.c (execute_control_commands): don't set
3087 instream to nullptr here as this breaks the from_tty argument
3088 to gdb.execute in Python.
3089 (execute_user_command): set instream to nullptr here instead.
3090
3091 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * infrun.h (infrun_debug_printf): Fix formatting.
3094 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3095
3096 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3097
3098 * compile/compile-object-load.h (struct munmap_list): Add
3099 explicitly-defined move constructor.
3100
3101 2020-09-24 Tom Tromey <tromey@adacore.com>
3102
3103 PR tui/26638:
3104 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3105 method.
3106 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3107 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3108 (tui_prev_win): Rewrite.
3109
3110 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3111
3112 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3113 in WOW64 processes as SIGINT.
3114 * nat/windows-nat.h: Make wow64_process a shared variable.
3115 * windows-nat.c: Remove static wow64_process variable.
3116
3117 2020-09-23 Tom Tromey <tom@tromey.com>
3118
3119 PR symtab/25470:
3120 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3121 offset and bit size.
3122 * printcmd.c (print_scalar_formatted): Handle zero-length
3123 integer.
3124 (print_scalar_formatted): Use bit_size_differs_p.
3125 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3126 constant.
3127 (union type_specific): <int_stuff>: New member.
3128 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3129 methods.
3130 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3131 TYPE_SPECIFIC_FIELD.
3132 (recursive_dump_type, copy_type_recursive): Update.
3133 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3134 DW_AT_data_bit_offset.
3135
3136 2020-09-23 Tom Tromey <tom@tromey.com>
3137
3138 * utils.h (class gdb_argv): Add move operators.
3139 <append>: New methods.
3140 * compile/compile.c (build_argc_argv): Remove.
3141 (compile_args_argc): Remove.
3142 (compile_args_argv): Change type.
3143 (set_compile_args): Simplify.
3144 (append_args): Remove.
3145 (filter_args): Remove argcp parameter.
3146 (get_args): Return gdb_argv. Simplify.
3147 (compile_to_object): Update.
3148
3149 2020-09-23 Tom Tromey <tom@tromey.com>
3150
3151 * compile/compile-object-run.c (do_module_cleanup)
3152 <~do_module_cleanup> :Remove.
3153 (do_module_cleanup): Update.
3154 * compile/compile-object-load.h (struct munmap_list): Add move
3155 assignment operator.
3156 <source_file>: Now a std::string.
3157 <munmap_list>: Rename. No longer a pointer.
3158 * compile/compile-object-load.c (struct setup_sections_data): Add
3159 constructor.
3160 <setup_one_section>: Declare.
3161 <munmap_list>: Move earlier.
3162 <m_bfd>: New member.
3163 <m_last_size, m_last_section_first, m_last_prot,
3164 m_last_max_alignment>: Rename, add initializers where needed.
3165 (setup_sections_data::setup_one_section): Rename from
3166 setup_sections. Update.
3167 (compile_object_load): Update. Don't use bfd_map_over_sections.
3168
3169 2020-09-23 Tom Tromey <tom@tromey.com>
3170
3171 * compile/compile-object-run.c (struct do_module_cleanup): Add
3172 parameters to constructor. Update destructor.
3173 <source_file, scope, scope_data, out_value_type, out_value_addr,
3174 munmap_list_head, objfile_name_string>: Remove.
3175 <module>: New member.
3176 (do_module_cleanup): Update.
3177 (compile_object_run): Update.
3178
3179 2020-09-23 Tom Tromey <tom@tromey.com>
3180
3181 * compile/compile.c (eval_compile_command): Update.
3182 * compile/compile-object-run.h (compile_object_run): Take a
3183 compile_module_up.
3184 * compile/compile-object-run.c (compile_object_run): Take a
3185 compile_module_up.
3186 * compile/compile-object-load.h (struct compile_module): Add
3187 constructor, destructor.
3188 (compile_module_up): New typedef.
3189 (compile_object_load): Return compile_object_up.
3190 * compile/compile-object-load.c (compile_object_load): Return
3191 compile_module_up.
3192
3193 2020-09-23 Tom Tromey <tom@tromey.com>
3194
3195 * compile/compile-object-run.c (struct do_module_cleanup): Add
3196 constructor, destructor.
3197 <objfile_name_string>: Don't use struct hack.
3198 (do_module_cleanup): Use delete.
3199 (compile_object_run): Use new.
3200
3201 2020-09-23 Tom Tromey <tom@tromey.com>
3202
3203 * compile/compile-cplus-types.c
3204 (compile_cplus_convert_struct_or_union): Use std::vector.
3205 (compile_cplus_convert_func): Likewise.
3206 * compile/compile-c-types.c (convert_func): Use std::vector.
3207
3208 2020-09-21 Tom Tromey <tromey@adacore.com>
3209
3210 * sparc-tdep.c (sparc32_skip_prologue): Use
3211 skip_prologue_using_sal.
3212
3213 2020-09-19 Tom Tromey <tom@tromey.com>
3214
3215 * symfile.c (add_section_size_callback): Remove.
3216 (load_one_section): Rename from load_section_callback. Change
3217 parameters.
3218 (generic_load): Use foreach.
3219
3220 2020-09-19 Tom Tromey <tom@tromey.com>
3221
3222 * exec.c (add_to_section_table): Remove.
3223 (build_section_table): Use foreach.
3224
3225 2020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * elfread.c (elf_locate_sections): Change parameters.
3228 (elf_symfile_read): Use foreach.
3229
3230 2020-09-19 Tom Tromey <tom@tromey.com>
3231
3232 * cli/cli-dump.c (struct callback_data): Remove.
3233 (restore_one_section): Rename from restore_section_callback.
3234 Change parameters.
3235 (restore_binary_file): Change parameters.
3236 (restore_command): Use foreach.
3237
3238 2020-09-19 Tom Tromey <tom@tromey.com>
3239
3240 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3241 (gcore_copy_callback): Likewise.
3242 (gcore_memory_sections): Use foreach.
3243
3244 2020-09-19 Tom Tromey <tom@tromey.com>
3245
3246 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3247 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3248 parameters.
3249 (generic_elf_osabi_sniffer): Use foreach.
3250 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3251 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3252
3253 2020-09-19 Tom Tromey <tom@tromey.com>
3254
3255 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3256 (dwarf2_get_dwz_file): Use foreach.
3257 (dwarf2_locate_dwo_sections): Change parameters.
3258 (open_and_init_dwo_file): Use foreach.
3259 (dwarf2_locate_common_dwp_sections): Change parameters.
3260 (open_and_init_dwp_file): Use foreach.
3261
3262 2020-09-19 Tom Tromey <tom@tromey.com>
3263
3264 * symfile.h: (find_lowest_section): Don't declare.
3265 * symfile.c (find_lowest_section): Now static. Change
3266 parameters.
3267 (struct place_section_arg): Remove.
3268 (place_section): Change parameters.
3269 (addr_info_make_relative): Use foreach.
3270 (symfile_dummy_outputs): Remove.
3271 (default_symfile_relocate): Use foreach.
3272
3273 2020-09-19 Tom Tromey <tom@tromey.com>
3274
3275 * objfiles.c (add_to_objfile_sections): Rename from
3276 add_to_objfile_sections_full.
3277 (add_to_objfile_sections): Remove.
3278 (build_objfile_section_table): Use foreach.
3279
3280 2020-09-19 Tom Tromey <tom@tromey.com>
3281
3282 * stap-probe.c (get_stap_base_address_1): Remove.
3283 (get_stap_base_address): Use foreach.
3284
3285 2020-09-19 Tom Tromey <tom@tromey.com>
3286
3287 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3288 parameters.
3289 (gdb_bfd_close_or_warn): Use foreach.
3290
3291 2020-09-19 Tom Tromey <tom@tromey.com>
3292
3293 * corelow.c (add_to_thread_list): Change parameters.
3294 (core_target_open): Use foreach.
3295
3296 2020-09-19 Tom Tromey <tom@tromey.com>
3297
3298 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3299 existing function.
3300
3301 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3304 for arrays.
3305
3306 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * eval.c: Remove 'f-lang.h' include.
3309 (value_f90_subarray): Moved to f-lang.c.
3310 (eval_call): Renamed to...
3311 (evaluate_subexp_do_call): ...this, is no longer static, header
3312 comment moved into header file.
3313 (evaluate_funcall): Update call to eval_call.
3314 (skip_undetermined_arglist): Moved to f-lang.c.
3315 (fortran_value_subarray): Likewise.
3316 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3317 moved to evaluate_subexp_f.
3318 (calc_f77_array_dims): Moved to f-lang.c
3319 * expprint.c (print_subexp_funcall): New function.
3320 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3321 moved to print_subexp_f, OP_FUNCALL uses new function.
3322 (dump_subexp_body_funcall): New function.
3323 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3324 moved to dump_subexp_f, OP_FUNCALL uses new function.
3325 * expression.h (evaluate_subexp_do_call): Declare.
3326 * f-lang.c (value_f90_subarray): Moved from eval.c.
3327 (skip_undetermined_arglist): Likewise.
3328 (calc_f77_array_dims): Likewise.
3329 (fortran_value_subarray): Likewise.
3330 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3331 (operator_length_f): Likewise.
3332 (print_subexp_f): Likewise.
3333 (dump_subexp_body_f): Likewise.
3334 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3335 declaration of this operation to here.
3336 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3337 support moved to operator_length_f.
3338 * parser-defs.h (dump_subexp_body_funcall): Declare.
3339 (print_subexp_funcall): Declare.
3340 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3341 fortran-operator.def.
3342
3343 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * eval.c (fortran_value_subarray): New function, content is taken
3346 from...
3347 (evaluate_subexp_standard): ...here, in two places. Now arrays
3348 and strings both call the new function.
3349 (calc_f77_array_dims): Add header comment, handle strings.
3350
3351 2020-09-18 Victor Collod <vcollod@nvidia.com>
3352
3353 PR gdb/26635
3354 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3355 (i386_analyze_prologue): Call i386_skip_endbr.
3356
3357 2020-09-18 Tom Tromey <tromey@adacore.com>
3358
3359 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3360 (windows_nat_target::wait): Update.
3361 * target/wait.h (enum target_wait_flag): New. Use
3362 DEF_ENUM_FLAGS_TYPE.
3363 * target/target.h (target_wait): Change type of options.
3364 * target.h (target_options_to_string, default_target_wait):
3365 Update.
3366 (struct target_ops) <wait>: Change type of options.
3367 * target.c (target_wait, default_target_wait, do_option): Change
3368 type of "options".
3369 (target_options_to_string): Likewise.
3370 * target-delegates.c: Rebuild.
3371 * target-debug.h (target_debug_print_target_wait_flags): Rename
3372 from target_debug_print_options.
3373 * sol-thread.c (class sol_thread_target) <wait>: Update.
3374 (sol_thread_target::wait): Update.
3375 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3376 (rs6000_nat_target::wait): Update.
3377 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3378 Update.
3379 (remote_target::wait_ns, remote_target::wait_as): Change type of
3380 "options".
3381 (remote_target::wait): Update.
3382 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3383 (gdbsim_target::wait): Update.
3384 * record-full.c (class record_full_base_target) <wait>: Update.
3385 (record_full_wait_1): Change type of "options".
3386 (record_full_base_target::wait): Update.
3387 * record-btrace.c (class record_btrace_target) <wait>: Update.
3388 (record_btrace_target::wait): Update.
3389 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3390 Update.
3391 (ravenscar_thread_target::wait): Update.
3392 * procfs.c (class procfs_target) <wait>: Update.
3393 (procfs_target::wait): Update.
3394 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3395 * obsd-nat.c (obsd_nat_target::wait): Update.
3396 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3397 (nto_procfs_target::wait): Update.
3398 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3399 * nbsd-nat.c (nbsd_wait): Change type of "options".
3400 (nbsd_nat_target::wait): Update.
3401 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3402 (thread_db_target::wait): Update.
3403 * linux-nat.h (class linux_nat_target) <wait>: Update.
3404 * linux-nat.c (linux_nat_target::wait): Update.
3405 (linux_nat_wait_1): Update.
3406 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3407 "options".
3408 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3409 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3410 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3411 (go32_nat_target::wait): Update.
3412 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3413 * gnu-nat.c (gnu_nat_target::wait): Update.
3414 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3415 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3416 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3417 * darwin-nat.c (darwin_nat_target::wait): Update.
3418 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3419 (bsd_uthread_target::wait): Update.
3420 * aix-thread.c (class aix_thread_target) <wait>: Update.
3421 (aix_thread_target::wait): Update.
3422
3423 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3424
3425 * compile/compile-object-run.c (create_copied_type_recursive): New
3426 function.
3427 (compile_object_run): Use new function.
3428
3429 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3430
3431 * NEWS: Mention x86_64 Cygwin core file support.
3432
3433 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3434
3435 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3436 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3437
3438 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3439
3440 * windows-tdep.h: Add prototypes.
3441 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3442 (i386_windows_core_pid_to_str): Move and rename ...
3443 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3444 (windows_core_pid_to_str): ... and here.
3445 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3446
3447 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3448 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3449 (amd64_windows_init_abi_common): ... and register.
3450
3451 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3452
3453 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3454 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3455
3456 2020-09-18 Pedro Alves <pedro@palves.net>
3457
3458 PR gdb/26631
3459 * thread.c (thread_find_command): Switch inferior before calling
3460 target methods.
3461
3462 2020-09-17 Tom Tromey <tromey@adacore.com>
3463
3464 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3465 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3466 (tdesc_arch_data_up): New typedef.
3467 (tdesc_use_registers, tdesc_data_alloc): Update.
3468 (tdesc_data_cleanup): Don't declare.
3469 * target-descriptions.c (tdesc_data_alloc): Return a
3470 tdesc_arch_data_up.
3471 (tdesc_arch_data_deleter::operator()): Rename from
3472 tdesc_data_cleanup. Change argument type.
3473 (tdesc_use_registers): Change early_data to an rvalue reference.
3474 (tdesc_use_registers): Don't use delete.
3475 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3476 * s390-tdep.c (s390_gdbarch_init): Update.
3477 * rx-tdep.c (rx_gdbarch_init): Update.
3478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3479 * riscv-tdep.c (riscv_gdbarch_init): Update.
3480 * or1k-tdep.c (or1k_gdbarch_init): Update.
3481 * nios2-tdep.c (nios2_gdbarch_init): Update.
3482 * nds32-tdep.c (nds32_gdbarch_init): Update.
3483 * mips-tdep.c (mips_gdbarch_init): Update.
3484 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3485 * m68k-tdep.c (m68k_gdbarch_init): Update.
3486 * i386-tdep.c (i386_gdbarch_init): Update.
3487 * arm-tdep.c (arm_gdbarch_init): Update.
3488 * arc-tdep.c (arc_tdesc_init): Update.
3489 (arc_gdbarch_init): Update.
3490 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3491
3492 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3493
3494 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3495 for WOW64 processes.
3496
3497 2020-09-17 Tom Tromey <tom@tromey.com>
3498
3499 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3500
3501 2020-09-17 Tom Tromey <tom@tromey.com>
3502
3503 * value.c (preserve_values): Update.
3504 * python/py-type.c (save_objfile_types): Update.
3505 * guile/scm-type.c (save_objfile_types): Update.
3506 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3507 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3508 * compile/compile-object-run.c (compile_object_run): Update.
3509
3510 2020-09-17 Tom Tromey <tom@tromey.com>
3511
3512 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3513 Remove.
3514 <m_table>: Now htab_up.
3515 * typeprint.c (typedef_hash_table::recursively_update)
3516 (typedef_hash_table::add_template_parameters)
3517 (typedef_hash_table::typedef_hash_table): Update.
3518 (typedef_hash_table::~typedef_hash_table): Remove.
3519 (typedef_hash_table::typedef_hash_table)
3520 (typedef_hash_table::find_global_typedef)
3521 (typedef_hash_table::find_typedef): Update.
3522
3523 2020-09-17 Tom Tromey <tom@tromey.com>
3524
3525 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3526
3527 2020-09-17 Tom Tromey <tom@tromey.com>
3528
3529 * linespec.c (class decode_compound_collector)
3530 <~decode_compound_collector>: Remove.
3531 <m_unique_syms>: Now htab_up.
3532 (decode_compound_collector::operator ()): Update.
3533 (class symtab_collector) <~symtab_collector>: Remove.
3534 <m_symtab_table>: Now htab_up.
3535 (symtab_collector::operator ()): Update.
3536
3537 2020-09-17 Tom Tromey <tom@tromey.com>
3538
3539 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3540 (filename_seen_cache::clear): Update.
3541 (~filename_seen_cache): Remove.
3542 (filename_seen_cache::seen): Update.
3543 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3544 htab_up.
3545 <~filename_seen_cache>: Remove.
3546 <traverse>: Update.
3547
3548 2020-09-17 Tom Tromey <tom@tromey.com>
3549
3550 * completer.c (completion_tracker::discard_completions)
3551 (completion_tracker::~completion_tracker)
3552 (completion_tracker::maybe_add_completion)
3553 (completion_tracker::remove_completion)
3554 (completion_tracker::recompute_lowest_common_denominator)
3555 (completion_tracker::build_completion_result): Update.
3556 * completer.h (class completion_tracker) <have_completions>:
3557 Update.
3558 <m_entries_hash>: Now htab_up.
3559
3560 2020-09-17 Tom Tromey <tom@tromey.com>
3561
3562 * breakpoint.c (ambiguous_names_p): Use htab_up.
3563
3564 2020-09-17 Tom Tromey <tom@tromey.com>
3565
3566 * auto-load.c (struct auto_load_pspace_info)
3567 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3568 <loaded_script_files, loaded_script_texts>: Change type to
3569 htab_up.
3570 (~auto_load_pspace_info) Remove.
3571 (init_loaded_scripts_info, maybe_add_script_file)
3572 (maybe_add_script_text, auto_load_info_scripts): Update.
3573
3574 2020-09-17 Tom Tromey <tromey@adacore.com>
3575
3576 * c-exp.y (name_obstack): Now static.
3577
3578 2020-09-17 Chungyi Chi <demonic@csie.io>
3579
3580 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3581
3582 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3585 (add_solib_catchpoint): Likewise.
3586 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3587 to bool.
3588 (add_solib_catchpoint): Change int parameter/variable to bool.
3589 (catch_load_or_unload): Likewise.
3590 (init_catchpoint): Likewise.
3591 (create_fork_vfork_event_catchpoint): Likewise.
3592 (catch_fork_command_1): Likewise.
3593 (catch_exec_command_1): Likewise.
3594
3595 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3598 Change instance_flags to m_instance_flags.
3599
3600 2020-09-16 Tom Tromey <tromey@adacore.com>
3601
3602 PR gdb/26598:
3603 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3604
3605 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3606
3607 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3608 PL_FLAG_EXEC.
3609 (fbsd_nat_target::insert_exec_catchpoint)
3610 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3611 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3612 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3613
3614 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3615
3616 * configure.ac: Remove check for kinfo_getvmmap().
3617 * configure, config.in: Regenerate.
3618 * fbsd-nat.c (fbsd_read_mapping): Remove
3619 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3620 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3621 kinfo_get_vmmap() are always present.
3622
3623 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3624
3625 * fbsd-nat.c: Always include support for
3626 TARGET_OBJECT_SIGNAL_INFO.
3627
3628 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3629
3630 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3631 sysctl and remove procfs fallback.
3632
3633 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3634
3635 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3636 * fbsd-nat.h: Likewise.
3637
3638 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3639
3640 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3641 argument.
3642
3643 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (ada_language_data): Delete.
3646 (ada_language): Remove references to ada_language_data.
3647 * c-lang.c (c_language_data): Delete.
3648 (c_language): Remove references to c_language_data.
3649 (cplus_language_data): Delete.
3650 (cplus_language): Remove references to cplus_language_data.
3651 (asm_language_data): Delete.
3652 (asm_language): Remove references to asm_language_data.
3653 (minimal_language_data): Delete.
3654 (minimal_language): Remove references to minimal_language_data.
3655 * d-lang.c (d_language_data): Delete.
3656 (d_language): Remove references to d_language_data.
3657 * f-lang.c (f_language_data): Delete.
3658 (f_language): Remove references to f_language_data.
3659 * go-lang.c (go_language_data): Delete.
3660 (go_language): Remove references to go_language_data.
3661 * language.c (unknown_language_data): Delete.
3662 (unknown_language): Remove references to unknown_language_data.
3663 (auto_language_data): Delete.
3664 (auto_language): Remove references to auto_language_data.
3665 * language.h (language_data): Delete struct.
3666 (language_defn): No longer inherit from language_data.
3667 * m2-lang.c (m2_language_data): Delete.
3668 (m2_language): Remove references to m2_language_data.
3669 * objc-lang.c (objc_language_data): Delete.
3670 (objc_language): Remove references to objc_language_data.
3671 * opencl-lang.c (opencl_language_data): Delete.
3672 (opencl_language): Remove references to opencl_language_data.
3673 * p-lang.c (pascal_language_data): Delete.
3674 (pascal_language): Remove references to pascal_language_data.
3675 * rust-lang.c (rust_language_data): Delete.
3676 (rust_language): Remove references to rust_language_data.
3677
3678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3679
3680 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3681 initializer.
3682 (ada_language::opcode_print_table): New member function.
3683 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3684 (c_language::opcode_print_table): New member function.
3685 (cplus_language_data): Remove la_op_print_tab initializer.
3686 (cplus_language::opcode_print_table): New member function.
3687 (asm_language_data): Remove la_op_print_tab initializer.
3688 (asm_language::opcode_print_table): New member function.
3689 (minimal_language_data): Remove la_op_print_tab initializer.
3690 (minimal_language::opcode_print_table): New member function.
3691 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3692 (d_language::opcode_print_table): New member function.
3693 * expprint.c (print_subexp_standard): Update call to
3694 opcode_print_table.
3695 (op_string): Likewise.
3696 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3697 (f_language::opcode_print_table): New member function.
3698 * go-lang.c (go_language_data): Remove la_op_print_tab
3699 initializer.
3700 (go_language::opcode_print_table): New member function.
3701 * language.c (unknown_language_data): Remove la_op_print_tab
3702 initializer.
3703 (unknown_language::opcode_print_table): New member function.
3704 (auto_language_data): Remove la_op_print_tab initializer.
3705 (auto_language::opcode_print_table): New member function.
3706 * language.h (language_data): Remove la_op_print_tab field.
3707 (language_defn::opcode_print_table): Declare new member function.
3708 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3709 initializer.
3710 (m2_language::opcode_print_table): New member function.
3711 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3712 initializer.
3713 (objc_language::opcode_print_table): New member function.
3714 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3715 initializer.
3716 (opencl_language::opcode_print_table): New member function.
3717 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3718 initializer.
3719 (pascal_language::opcode_print_table): New member function.
3720 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3721 initializer.
3722 (rust_language::opcode_print_table): New member function.
3723
3724 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3727 (ada_language::expression_ops): New member function.
3728 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3729 (c_language::expression_ops): New member function.
3730 (cplus_language_data): Remove la_exp_desc initializer.
3731 (cplus_language::expression_ops): New member function.
3732 (asm_language_data): Remove la_exp_desc initializer.
3733 (asm_language::expression_ops): New member function.
3734 (minimal_language_data): Remove la_exp_desc initializer.
3735 (minimal_language::expression_ops): New member function.
3736 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3737 (d_language::expression_ops): New member function.
3738 * eval.c (evaluate_subexp): Update call to expression_ops.
3739 * expprint.c (print_subexp): Likewise.
3740 (op_name): Likewise.
3741 (dump_subexp_body): Likewise.
3742 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3743 (f_language::expression_ops): New member function.
3744 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3745 (go_language::expression_ops): New member function.
3746 * language.c (language_defn::expression_ops): New function.
3747 (unknown_language_data): Remove la_exp_desc initializer.
3748 (auto_language_data): Likewise.
3749 * language.h (language_data): Remove la_exp_desc field.
3750 (language_defn::expression_ops): Declare new member function.
3751 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3752 (m2_language::expression_ops): New member function.
3753 * objc-lang.c (objc_language_data): Remove la_exp_desc
3754 initializer.
3755 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3756 initializer.
3757 (opencl_language::expression_ops): New member function.
3758 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3759 * parse.c (operator_length): Update call to expression_ops.
3760 (exp_iterate): Likewise.
3761 * rust-lang.c (rust_language_data): Remove la_exp_desc
3762 initializer.
3763 (ruse_language::expression_ops): New member function.
3764
3765 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3768 initializer.
3769 (ada_language::varobj_ops): New member function.
3770 * c-lang.c (c_language_data): Remove la_varobj_ops
3771 initializer.
3772 (cplus_language_data): Likewise.
3773 (cplus_language::varobj_ops): New member function.
3774 (asm_language_data): Remove la_varobj_ops initializer.
3775 (minimal_language_data): Likewise.
3776 * d-lang.c (d_language_data): Likewise.
3777 * f-lang.c (f_language_data): Likewise.
3778 * go-lang.c (go_language_data): Likewise.
3779 * language.c (language_defn::varobj_ops): New function.
3780 (unknown_language_data): Remove la_varobj_ops
3781 initializer.
3782 (auto_language_data): Likewise.
3783 * language.h (language_data): Remove la_varobj_ops field.
3784 (language_defn::varobj_ops): Declare new member function.
3785 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3786 * objc-lang.c (objc_language_data): Likewise.
3787 * opencl-lang.c (opencl_language_data): Likewise.
3788 * p-lang.c (pascal_language_data): Likewise.
3789 * rust-lang.c (rust_language_data): Likewise.
3790 * varobj.c (varobj_create): Update call to varobj_ops.
3791 * varobj.h (default_varobj_ops): Delete define.
3792
3793 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3796 initializer.
3797 * c-lang.c (c_language_data): Likewise.
3798 (c_language::macro_expansion): New member function.
3799 (cplus_language_data): Likewise.
3800 (cplus_language::macro_expansion): New member function.
3801 (asm_language_data): Likewise.
3802 (asm_language::macro_expansion): New member function.
3803 (minimal_language_data): Likewise.
3804 (minimal_language::macro_expansion): New member function.
3805 * d-lang.c (d_language_data): Remove la_macro_expansion
3806 initializer.
3807 * f-lang.c (f_language_data): Likewise.
3808 * go-lang.c (go_language_data): Likewise.
3809 * language.c (unknown_language_data): Likewise.
3810 (auto_language_data): Likewise.
3811 * language.h (language_data): Remove la_macro_expansion field.
3812 (language_defn::macro_expansion): New member function.
3813 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3814 initializer.
3815 * objc-lang.c (objc_language_data): Likewise.
3816 (objc_language::macro_expansion): New member function.
3817 * opencl-lang.c (opencl_language_data): Likewise.
3818 (opencl_language::macro_expansion): New member function.
3819 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3820 initializer.
3821 * rust-lang.c (rust_language_data): Likewise.
3822 * symtab.c (default_collect_symbol_completion_matches_break_on):
3823 Update call to macro_expansion.
3824
3825 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * ada-lang.c (ada_language_data): Remove la_array_ordering
3828 initializer.
3829 * c-lang.c (c_language_data): Likewise.
3830 (cplus_language_data): Likewise.
3831 (asm_language_data): Likewise.
3832 (minimal_language_data): Likewise.
3833 * d-lang.c (d_language_data): Likewise.
3834 * dwarf2/read.c (read_array_order): Update for call to
3835 array_ordering.
3836 * f-lang.c (f_language_data): Remove la_array_ordering
3837 initializer.
3838 (f_language::array_ordering): New member function.
3839 * go-lang.c (go_language_data): Remove la_array_ordering
3840 initializer.
3841 * language.c (unknown_language_data): Likewise.
3842 (auto_language_data): Likewise.
3843 * language.h (language_data): Delete la_array_ordering field.
3844 (language_defn::array_ordering): New member function.
3845 * m2-lang.c (m2_language_data): Remove la_array_ordering
3846 initializer.
3847 * objc-lang.c (objc_language_data): Likewise.
3848 * opencl-lang.c (opencl_language_data): Likewise.
3849 * p-lang.c (pascal_language_data): Likewise.
3850 * rust-lang.c (rust_language_data): Likewise.
3851
3852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3853
3854 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3855 initializer.
3856 * c-lang.c (c_language_data): Likewise.
3857 (cplus_language_data): Likewise.
3858 (asm_language_data): Likewise.
3859 (minimal_language_data): Likewise.
3860 * d-lang.c (d_language_data): Likewise.
3861 * f-lang.c (f_language_data): Likewise.
3862 (f_language::case_sensitivity): New member function.
3863 * go-lang.c (go_language_data): Remove la_case_sensitivity
3864 initializer.
3865 * language.c (enum case_mode): Moved here from language.h.
3866 (case_mode): Make static.
3867 (show_case_command): Update for case_sensitivity being a method.
3868 (set_case_command): Likewise.
3869 (set_range_case): Likewise.
3870 (unknown_language_data): Remove la_case_sensitivity initializer.
3871 (auto_language_data): Likewise.
3872 * language.h (case_mode): Delete, move enum declaration to
3873 language.c.
3874 (language_data): Delete la_case_sensitivity field.
3875 (language_defn::case_sensitivity): New member function.
3876 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3877 initializer.
3878 * objc-lang.c (objc_language_data): Likewise.
3879 * opencl-lang.c (opencl_language_data): Likewise.
3880 * p-lang.c (pascal_language_data): Likewise.
3881 * rust-lang.c (rust_language_data): Likewise.
3882
3883 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3884
3885 * ada-lang.c (ada_language_data): Remove la_range_check
3886 initializer.
3887 * c-lang.c (c_language_data): Likewise.
3888 (cplus_language_data): Likewise.
3889 (asm_language_data): Likewise.
3890 (minimal_language_data): Likewise.
3891 * d-lang.c (d_language_data): Likewise.
3892 * f-lang.c (f_language_data): Likewise.
3893 (f_language::range_checking_on_by_default): New member function.
3894 * go-lang.c (go_language_data): Remove la_range_check initializer.
3895 * language.c (enum range_mode): Moved here from language.h.
3896 (range_mode): Made static.
3897 (show_range_command): Update to use
3898 range_checking_on_by_default.
3899 (set_range_command): Likewise.
3900 (set_range_case): Likewise.
3901 (unknown_language_data): Remove la_range_check initializer.
3902 (auto_language_data): Likewise.
3903 * language.h (range_mode): Delete. Enum definition moved to
3904 language.c.
3905 (language_data): Remove la_range_check field.
3906 (language_defn::range_checking_on_by_default): New member
3907 function.
3908 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3909 (m2_language::range_checking_on_by_default): New member function.
3910 * objc-lang.c (objc_language_data): Remove la_range_check
3911 initializer.
3912 * opencl-lang.c (opencl_language_data): Likewise.
3913 * p-lang.c (pascal_language_data): Likewise.
3914 (pascal_language::range_checking_on_by_default): New member
3915 function.
3916 * rust-lang.c (rust_language_data): Remove la_range_check
3917 initializer.
3918 (rust_language::range_checking_on_by_default): New member
3919 function.
3920
3921 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * dwarf2/read.c (dwarf2_physname): Remove special case for
3924 language_go.
3925 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3926 member function.
3927
3928 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Remove
3931 la_store_sym_names_in_linkage_form_p initializer.
3932 (ada_language::store_sym_names_in_linkage_form_p): New member
3933 function.
3934 * c-lang.c (c_language_data): Remove
3935 la_store_sym_names_in_linkage_form_p initializer.
3936 (c_language::store_sym_names_in_linkage_form_p): New member
3937 function.
3938 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3939 initializer.
3940 (asm_language_data): Likewise.
3941 (asm_language::store_sym_names_in_linkage_form_p): New member
3942 function.
3943 (minimal_language_data): Remove
3944 la_store_sym_names_in_linkage_form_p initializer.
3945 (minimal_language::store_sym_names_in_linkage_form_p): New member
3946 function.
3947 * d-lang.c (d_language_data): Remove
3948 la_store_sym_names_in_linkage_form_p initializer.
3949 * dwarf2/read.c (dwarf2_physname): Update call to
3950 store_sym_names_in_linkage_form_p.
3951 * f-lang.c (f_language_data): Remove
3952 la_store_sym_names_in_linkage_form_p initializer.
3953 * go-lang.c (go_language_data): Remove
3954 la_store_sym_names_in_linkage_form_p initializer.
3955 * language.c (unknown_language_data): Remove
3956 la_store_sym_names_in_linkage_form_p initializer.
3957 (unknown_language::store_sym_names_in_linkage_form_p): New member
3958 function.
3959 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3960 initializer.
3961 (auto_language::store_sym_names_in_linkage_form_p): New member
3962 function.
3963 * language.h (language_data): Remove
3964 la_store_sym_names_in_linkage_form_p member variable.
3965 (language_defn::store_sym_names_in_linkage_form_p): New member
3966 function.
3967 * m2-lang.c (m2_language_data): Remove
3968 la_store_sym_names_in_linkage_form_p initializer.
3969 * objc-lang.c (objc_language_data): Likewise.
3970 * opencl-lang.c (opencl_language_data): Likewise.
3971 * p-lang.c (pascal_language_data): Likewise.
3972 * rust-lang.c (rust_language_data): Likewise.
3973
3974 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * ada-lang.c (ada_language_data): Remove string_lower_bound
3977 initializer.
3978 * c-lang.c (c_language_data): Likewise.
3979 (cplus_language_data): Likewise.
3980 (asm_language_data): Likewise.
3981 (minimal_language_data): Likewise.
3982 * d-lang.c (d_language_data): Likewise.
3983 * f-lang.c (f_language_data): Likewise.
3984 * go-lang.c (go_language_data): Likewise.
3985 * language.c (unknown_language_data): Likewise.
3986 (auto_language_data): Likewise.
3987 * language.h (language_data): Remove string_lower_bound field.
3988 (language_defn::string_lower_bound): New member function.
3989 * m2-lang.c (m2_language_data): Remove string_lower_bound
3990 initializer.
3991 (m2_language::string_lower_bound): New member function.
3992 * objc-lang.c (objc_language_data): Remove string_lower_bound
3993 initializer.
3994 * opencl-lang.c (opencl_language_data): Likewise.
3995 * p-lang.c (pascal_language_data): Likewise.
3996 * rust-lang.c (rust_language_data): Likewise.
3997 * valops.c (value_cstring): Update call to string_lower_bound.
3998 (value_string): Likewise.
3999 * value.c (allocate_repeated_value): Likewise.
4000
4001 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4002
4003 * valops.c (value_repeat): Fix incorrect argument name in comment.
4004
4005 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * ada-lang.c (ada_language_data): Remove c_style_arrays
4008 initializer.
4009 (ada_language::c_style_arrays_p): New member fuction.
4010 * c-lang.c (c_language_data): Remove c_style_arrays
4011 initializer.
4012 (cplus_language_data): Likewise.
4013 (asm_language_data): Likewise.
4014 (minimal_language_data): Likewise.
4015 * d-lang.c (d_language_data): Likewise.
4016 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4017 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4018 (f_language::c_style_arrays_p): New member function.
4019 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4020 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4021 * language.c (unknown_language_data): Remove c_style_arrays
4022 initializer.
4023 (auto_language_data): Likewise.
4024 * language.h (language_data): Remove c_style_arrays field.
4025 (language_defn::c_style_arrays_p): New member function.
4026 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4027 (m2_language::c_style_arrays_p): New member function.
4028 * objc-lang.c (objc_language_data): Remove c_style_arrays
4029 initializer.
4030 * opencl-lang.c (opencl_language_data): Likewise.
4031 * p-lang.c (pascal_language_data): Likewise.
4032 * rust-lang.c (rust_language_data): Likewise.
4033 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4034 and update local variable to a bool.
4035 * valops.c (value_cast): Update call to c_style_arrays_p.
4036 (value_array): Likewise.
4037 * value.c (coerce_array): Likewise.
4038
4039 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4040
4041 * ada-lang.c (ada_language_data): Remove la_language initializer.
4042 * c-lang.c (c_language_data): Likewise.
4043 (cplus_language_data): Likewise.
4044 (asm_language_data): Likewise.
4045 (minimal_language_data): Likewise.
4046 * d-lang.c (d_language_data): Likewise.
4047 * f-lang.c (f_language_data): Likewise.
4048 * go-lang.c (go_language_data): Likewise.
4049 * language.c (unknown_language_data): Likewise.
4050 (auto_language_data): Likewise.
4051 * language.h (language_data): Remove la_language field.
4052 (language_defn::language_defn): Initialise la_language field.
4053 (language_defn::la_language): New member variable.
4054 * m2-lang.c (m2_language_data): Remove la_language field.
4055 * objc-lang.c (objc_language_data): Likewise.
4056 * opencl-lang.c (opencl_language_data): Likewise.
4057 * p-lang.c (pascal_language_data): Likewise.
4058 * rust-lang.c (rust_language_data): Likewise.
4059
4060 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * ada-lang.c (ada_extensions): Delete, moved into
4063 ada_language::filename_extensions.
4064 (ada_language_data): Remove la_filename_extensions initializer.
4065 (ada_language::filename_extensions): New member function.
4066 * c-lang.c (c_extensions): Delete, moved into
4067 c_language::filename_extensions.
4068 (c_language_data): Remove la_filename_extensions initializer.
4069 (c_language::filename_extensions): New member function.
4070 (cplus_extensions): Delete, moved into
4071 cplus_language::filename_extensions.
4072 (cplus_language_data): Remove la_filename_extensions initializer.
4073 (cplus_language::filename_extensions): New member function.
4074 (asm_extensions): Delete, moved into
4075 asm_language::filename_extensions.
4076 (asm_language_data): Remove la_filename_extensions initializer.
4077 (asm_language::filename_extensions): New member function.
4078 (minimal_language_data): Remove la_filename_extensions
4079 initializer.
4080 * d-lang.c (d_extensions): Delete, moved into
4081 d_language::filename_extensions.
4082 (d_language_data): Remove la_filename_extensions initializer.
4083 (d_language::filename_extensions): New member function.
4084 * f-lang.c (f_extensions): Delete, moved into
4085 f_language::filename_extensions.
4086 (f_language_data): Remove la_filename_extensions initializer.
4087 (f_language::filename_extensions): New member function.
4088 * go-lang.c (go_language_data): Remove la_filename_extensions
4089 initializer.
4090 * language.c (add_set_language_command): Update now that
4091 filename_extensions returns a vector.
4092 (unknown_language_data): Remove la_filename_extensions
4093 initializer.
4094 (auto_language_data): Likewise.
4095 * language.h (language_data): Remove la_filename_extensions field.
4096 (language_defn::filename_extensions): New member function.
4097 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4098 initializer.
4099 * objc-lang.c (objc_extensions): Delete, moved into
4100 objc_language::filename_extensions.
4101 (objc_language_data): Remove la_filename_extensions initializer.
4102 (objc_language::filename_extensions): New member function.
4103 * opencl-lang.c (opencl_language_data): Remove
4104 la_filename_extensions initializer.
4105 * p-lang.c (pascal_extensions): Delete, moved into
4106 pascal_language::filename_extensions.
4107 (pascal_language_data): Remove la_filename_extensions initializer.
4108 (pascal_language::filename_extensions): New member function.
4109 * rust-lang.c (rust_extensions): Delete, moved into
4110 rust_language::filename_extensions.
4111 (rust_language_data): Remove la_filename_extensions initializer.
4112 (rust_language::filename_extensions): New member function.
4113 * symfile.c (add_filename_language): Add new assert.
4114
4115 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * ada-lang.c (ada_language_data): Remove la_name and
4118 la_natural_name initializers.
4119 (ada_language::name): New member function.
4120 (ada_language::natural_name): New member function.
4121 * c-lang.c (c_language_data): Remove la_name and
4122 la_natural_name initializers.
4123 (c_language::name): New member function.
4124 (c_language::natural_name): New member function.
4125 (cplus_language_data): Remove la_name and
4126 la_natural_name initializers.
4127 (cplus_language::name): New member function.
4128 (cplus_language::natural_name): New member function.
4129 (asm_language_data): Remove la_name and
4130 la_natural_name initializers.
4131 (asm_language::name): New member function.
4132 (asm_language::natural_name): New member function.
4133 (minimal_language_data): Remove la_name and
4134 la_natural_name initializers.
4135 (minimal_language::name): New member function.
4136 (minimal_language::natural_name): New member function.
4137 * compile/compile.c (compile_to_object): Update call to
4138 lanugage_defn::name.
4139 * d-lang.c (d_language_data): Remove la_name and
4140 la_natural_name initializers.
4141 (d_language::name): New member function.
4142 (d_language::natural_name): New member function.
4143 * expprint.c (print_subexp_standard): Update call to
4144 language_defn::name.
4145 (dump_raw_expression): Likewise
4146 (dump_prefix_expression): Likewise.
4147 * f-lang.c (f_language_data): Remove la_name and
4148 la_natural_name initializers.
4149 (f_language::name): New member function.
4150 (f_language::natural_name): New member function.
4151 * go-lang.c (go_language_data): Remove la_name and
4152 la_natural_name initializers.
4153 (go_language::name): New member function.
4154 (go_language::natural_name): New member function.
4155 * language.c (show_language_command): Update call to
4156 language_defn::name.
4157 (set_language_command): Likewise.
4158 (language_enum): Likewise.
4159 (language_str): Likewise.
4160 (add_set_language_command): Likewise, use
4161 language_defn::natural_name in the doc string.
4162 (unknown_language_data): Remove la_name and
4163 la_natural_name initializers.
4164 (unknown_language::name): New member function.
4165 (unknown_language::natural_name): New member function.
4166 (auto_language_data): Remove la_name and
4167 la_natural_name initializers.
4168 (auto_language::name): New member function.
4169 (auto_language::natural_name): New member function.
4170 (language_lookup_primitive_type_as_symbol): Update call to
4171 language_defn::name.
4172 * language.h (language_data): Remove la_name and la_natural_name
4173 member variables.
4174 (language_defn::name): New member function.
4175 (language_defn::natural_name): New member function.
4176 * m2-lang.c (m2_language_data): Remove la_name and
4177 la_natural_name initializers.
4178 (m2_language::name): New member function.
4179 (m2_language::natural_name): New member function.
4180 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4181 language_defn::natural_name.
4182 * objc-lang.c (objc_language_data): Remove la_name and
4183 la_natural_name initializers.
4184 (objc_language::name): New member function.
4185 (objc_language::natural_name): New member function.
4186 * opencl-lang.c (opencl_language_data): Remove la_name and
4187 la_natural_name initializers.
4188 (opencl_language::name): New member function.
4189 (opencl_language::natural_name): New member function.
4190 * p-lang.c (pascal_language_data): Remove la_name and
4191 la_natural_name initializers.
4192 (pascal_language::name): New member function.
4193 (pascal_language::natural_name): New member function.
4194 * rust-lang.c (rust_language_data): Remove la_name and
4195 la_natural_name initializers.
4196 (rust_language::name): New member function.
4197 (rust_language::natural_name): New member function.
4198 * symtab.c (lookup_language_this): Update call to
4199 language_defn::name.
4200
4201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * ada-lang.c (ada_language_data): Remove la_name_of_this
4204 initializer.
4205 * ax-gdb.c (gen_expr): Update call to name_of_this.
4206 * c-exp.y (classify_name): Likewise.
4207 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4208 (cplus_language_data): Likewise.
4209 (cplus_language::name_of_this): New member function.
4210 (asm_language_data): Remove la_name_of_this initializer.
4211 (minimal_language_data): Likewise.
4212 * d-lang.c (d_language_data): Likewise.
4213 (d_language::name_of_this): New member function.
4214 * expprint.c (print_subexp_standard): Update call to name_of_this.
4215 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4216 * go-lang.c (go_language_data): Likewise.
4217 * language.c (unknown_language_data): Likewise.
4218 (unknown_language::name_of_this): New member function.
4219 (auto_language_data): Remove la_name_of_this initializer.
4220 (auto_language::name_of_this): New member function.
4221 * language.h (language_data): Delete la_name_of_this member
4222 variable.
4223 (language_defn::name_of_this): New member function.
4224 * m2-lang.c (m2_language_data): Remove la_name_of_this
4225 initializer.
4226 * objc-lang.c (objc_language_data): Likewise.
4227 (objc_language::name_of_this): New member function.
4228 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4229 initializer.
4230 * p-lang.c (pascal_language_data): Likewise.
4231 (pascal_language::name_of_this): New member function.
4232 * rust-lang.c (rust_language_data): Remove la_name_of_this
4233 initializer.
4234 * symtab.c (lookup_language_this): Update call to name_of_this.
4235 (lookup_symbol_aux): Likewise.
4236 * valops.c (value_of_this): Likewise.
4237
4238 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_language_data): Remove
4241 la_struct_too_deep_ellipsis initializer.
4242 (ada_language::struct_too_deep_ellipsis): New member function.
4243 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4244 initializer.
4245 (cplus_language_data): Likewise.
4246 (asm_language_data): Likewise.
4247 (minimal_language_data): Likewise.
4248 * cp-valprint.c (cp_print_value): Update call to
4249 struct_too_deep_ellipsis.
4250 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4251 initializer.
4252 * f-lang.c (f_language_data): Likewise.
4253 (f_language::struct_too_deep_ellipsis): New member function.
4254 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4255 initializer.
4256 * language.c (unknown_language_data): Likewise.
4257 (auto_language_data): Likewise.
4258 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4259 member variable.
4260 (language_defn::struct_too_deep_ellipsis): New member function.
4261 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4262 initializer.Q
4263 * objc-lang.c (objc_language_data): Likewise.
4264 * opencl-lang.c (opencl_language_data): Likewise.
4265 * p-lang.c (pascal_language_data): Likewise.
4266 * rust-lang.c (rust_language_data): Likewise.
4267 * valprint.c (val_print_check_max_depth): Update call to
4268 struct_too_deep_ellipsis.
4269
4270 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4271
4272 * MAINTAINERS (Write After Approval): Add myself.
4273
4274 2020-09-15 Tom Tromey <tom@tromey.com>
4275
4276 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4277 Remove.
4278
4279 2020-09-15 Tom Tromey <tom@tromey.com>
4280
4281 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4282 and TYPE_CODE_METHODPTR cases.
4283 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4284 (c_value_print_inner): Update.
4285 * valprint.c (generic_value_print_memberptr): New function, from
4286 c_value_print_memberptr.
4287 (generic_value_print): Use it. Call cplus_print_method_ptr.
4288
4289 2020-09-15 Tom Tromey <tromey@adacore.com>
4290
4291 * python/python-internal.h (PyInt_FromLong): Remove define.
4292 * python/py-value.c (convert_value_from_python): Use
4293 gdb_py_object_from_longest.
4294 * python/py-type.c (typy_get_code): Use
4295 gdb_py_object_from_longest.
4296 * python/py-symtab.c (salpy_get_line): Use
4297 gdb_py_object_from_longest.
4298 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4299 gdb_py_object_from_longest.
4300 * python/py-record.c (recpy_gap_reason_code): Use
4301 gdb_py_object_from_longest.
4302 * python/py-record-btrace.c (recpy_bt_insn_size)
4303 (recpy_bt_func_level, btpy_list_count): Use
4304 gdb_py_object_from_longest.
4305 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4306 gdb_py_object_from_longest. Fix error handling.
4307 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4308 gdb_py_object_from_longest.
4309 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4310 gdb_py_object_from_longest.
4311 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4312 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4313 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4314
4315 2020-09-15 Tom Tromey <tromey@adacore.com>
4316
4317 * python/python.c (gdbpy_parameter_value): Use
4318 gdb_py_object_from_ulongest.
4319
4320 2020-09-15 Tom Tromey <tromey@adacore.com>
4321
4322 * python/py-infevents.c (create_register_changed_event_object):
4323 Use gdb_py_object_from_longest.
4324 * python/py-exitedevent.c (create_exited_event_object): Use
4325 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_longest.
4331 * python/py-type.c (convert_field, typy_range): Use
4332 gdb_py_object_from_longest.
4333 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4334 gdb_py_object_from_longest.
4335 * python/py-lazy-string.c (stpy_get_length): Use
4336 gdb_py_object_from_longest.
4337 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4338 gdb_py_object_from_longest.
4339 * python/py-infevents.c (create_memory_changed_event_object): Use
4340 gdb_py_object_from_longest.
4341 * python/py-inferior.c (infpy_get_num): Use
4342 gdb_py_object_from_longest.
4343 (infpy_get_pid): Likewise.
4344
4345 2020-09-15 Tom Tromey <tromey@adacore.com>
4346
4347 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4348 defines.
4349 * python/py-value.c (valpy_long): Use
4350 gdb_py_object_from_ulongest.
4351 * python/py-symtab.c (salpy_get_pc): Use
4352 gdb_py_object_from_ulongest.
4353 (salpy_get_last): Likewise.
4354 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4355 gdb_py_object_from_ulongest.
4356 * python/py-lazy-string.c (stpy_get_address): Use
4357 gdb_py_object_from_ulongest.
4358 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4359 * python/py-arch.c (archpy_disassemble): Use
4360 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4361 error handling.
4362
4363 2020-09-15 Tom Tromey <tromey@adacore.com>
4364
4365 * python/python-internal.h (gdb_py_long_from_longest): Remove
4366 defines.
4367 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4368 * python/py-type.c (convert_field, typy_get_sizeof): Use
4369 gdb_py_object_from_longest.
4370 * python/py-record-btrace.c (btpy_list_index): Use
4371 gdb_py_object_from_longest.
4372
4373 2020-09-15 Tom Tromey <tromey@adacore.com>
4374
4375 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4376 * python/py-record.c (recpy_element_number): Use
4377 gdb_py_object_from_longest.
4378 (recpy_gap_number): Likewise.
4379
4380 2020-09-15 Tom Tromey <tromey@adacore.com>
4381
4382 * top.c (ui::ui): Update.
4383 (highest_ui_num): Remove.
4384 * top.h (struct ui) <num>: Remove.
4385
4386 2020-09-15 Tom Tromey <tromey@adacore.com>
4387
4388 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4389 * ui-style.c (ansi_regex_text): Now array.
4390 * rust-exp.y (number_regex_text): Now array.
4391 * linespec.c (linespec_quote_characters): Now array.
4392 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4393 Now arrays.
4394
4395 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * debuginfod-support.c (debuginfod_client_deleter): New.
4398 (debuginfod_client_up): New.
4399 (debuginfod_init): Return debuginfod_client_up.
4400 (debuginfod_source_query): Adjust.
4401 (debuginfod_debuginfo_query): Adjust.
4402
4403 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4404
4405 * debuginfod-support.c (debuginfod_source_query): Use
4406 make_unique_xstrdup.
4407
4408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4411 with `type::instance_flags`.
4412
4413 2020-09-14 Michael Mullin <masmullin@gmail.com>
4414
4415 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4416 Remove baton parameter.
4417
4418 2020-09-14 Pedro Alves <pedro@palves.net>
4419
4420 * Makefile.in (SELFTESTS_SRCS): Add
4421 unittests/enum-flags-selftests.c.
4422 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4423 btrace_function_flags instead of enum btrace_function_flag.
4424 * compile/compile-c-types.c (convert_qualified): Use
4425 enum_flags::raw.
4426 * compile/compile-cplus-symbols.c (convert_one_symbol)
4427 (convert_symbol_bmsym):
4428 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4429 (compile_cplus_convert_struct_or_union_methods)
4430 (compile_cplus_instance::convert_qualified_base):
4431 * go-exp.y (parse_string_or_char): Add cast to int.
4432 * unittests/enum-flags-selftests.c: New file.
4433 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4434 type to btrace_thread_flags from btrace_thread_flag.
4435 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4436 local's type to btrace_thread_flags from btrace_thread_flag. Add
4437 cast in DEBUG call.
4438
4439 2020-09-14 Pedro Alves <pedro@palves.net>
4440
4441 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4442 * gdbtypes.c (address_space_name_to_int): Rename to ...
4443 (address_space_name_to_type_instance_flags): ... this.
4444 (address_space_int_to_name): Rename to ...
4445 (address_space_type_instance_flags_to_name): ... this.
4446 * gdbtypes.h (address_space_name_to_int): Rename to ...
4447 (address_space_name_to_type_instance_flags): ... this.
4448 (address_space_int_to_name): Rename to ...
4449 (address_space_type_instance_flags_to_name): ... this.
4450 * type-stack.c (type_stack::insert): Adjust to rename.
4451 * type-stack.h (type_stack::insert): Likewise.
4452
4453 2020-09-14 Pedro Alves <pedro@palves.net>
4454 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * avr-tdep.c (avr_address_class_type_flags): Return
4457 type_instance_flags.
4458 (avr_address_class_type_flags_to_name): Take a
4459 type_instance_flags.
4460 (avr_address_class_name_to_type_flags): Return bool and take a
4461 type_instance_flags.
4462 * d-lang.c (build_d_types): Use type::set_instance_flags.
4463 * ft32-tdep.c (ft32_address_class_type_flags): Return
4464 type_instance_flags.
4465 (ft32_address_class_type_flags_to_name): Take a
4466 type_instance_flags.
4467 (ft32_address_class_name_to_type_flags): Return bool and take a
4468 type_instance_flags.
4469 (ft32_gdbarch_init): Use type::set_instance_flags.
4470 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4471 * gdbarch.h, gdbarch.c: Regenerate.
4472 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4473 (address_class_name_to_type_flags): Use type_instance_flags and
4474 bool.
4475 * gdbtypes.c (address_space_name_to_int)
4476 (address_space_int_to_name, make_qualified_type): Use
4477 type_instance_flags.
4478 (make_qualified_type): Use type_instance_flags and
4479 type::set_instance_flags.
4480 (make_type_with_address_space, make_cv_type, make_vector_type)
4481 (check_typedef): Use type_instance_flags.
4482 (recursive_dump_type): Cast type_instance_flags to unsigned for
4483 printing.
4484 (copy_type_recursive): Use type::set_instance_flags.
4485 (gdbtypes_post_init): Use type::set_instance_flags.
4486 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4487 <m_instance_flags>: ... this.
4488 <instance_flags, set_instance_flags>: New methods.
4489 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4490 (SET_TYPE_INSTANCE_FLAGS): New.
4491 (address_space_name_to_int, address_space_int_to_name)
4492 (make_type_with_address_space): Pass flags using
4493 type_instance_flags instead of int.
4494 * stabsread.c (cleanup_undefined_types_noname): Use
4495 type::set_instance_flags.
4496 * s390-tdep.c (s390_address_class_type_flags): Return
4497 type_instance_flags.
4498 (s390_address_class_type_flags_to_name): Take a
4499 type_instance_flags.
4500 (s390_address_class_name_to_type_flags): Return bool and take a
4501 type_instance_flags.
4502 * type-stack.c (type_stack::follow_types): Use
4503 type_instance_flags.
4504 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4505
4506 2020-09-14 Tom Tromey <tromey@adacore.com>
4507
4508 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4509 * x86-tdep.c (x86_is_thunk_register_name)
4510 (x86_in_indirect_branch_thunk): Update.
4511 * sparc64-tdep.c (sparc64_fpu_register_names)
4512 (sparc64_cp0_register_names, sparc64_register_names)
4513 (sparc64_pseudo_register_names): Now const.
4514 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4515 cp0_registers_num>: Now const.
4516 * sparc-tdep.c (sparc_core_register_names)
4517 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4518 (sparc32_pseudo_register_names): Now const.
4519 (validate_tdesc_registers): Update.
4520 * rust-lang.c (rust_extensions): Now const.
4521 * p-lang.c (p_extensions): Now const.
4522 * objc-lang.c (objc_extensions): Now const.
4523 * nto-tdep.c (nto_thread_state_str): Now const.
4524 * moxie-tdep.c (moxie_register_names): Now const.
4525 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4526 Now const.
4527 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4528 (mips_linux_reg_names): Now const.
4529 (mips_gdbarch_init): Update.
4530 * microblaze-tdep.c (microblaze_register_names): Now const.
4531 * m68k-tdep.c (m68k_register_names): Now const.
4532 * m32r-tdep.c (m32r_register_names): Now const.
4533 * ia64-tdep.c (ia64_register_names): Now const.
4534 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4535 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4536 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4537 ymm_avx512_register_names, pkeys_register_names>: Now const.
4538 * i386-tdep.c (i386_register_names, i386_zmm_names)
4539 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4540 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4541 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4542 * f-lang.c (f_extensions): Now const.
4543 * d-lang.c (d_extensions): Now const.
4544 * csky-tdep.c (csky_register_names): Now const.
4545 * charset.c (default_charset_names, charset_enum): Now const.
4546 (_initialize_charset): Update.
4547 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4548 const.
4549 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4550 (bsd_uthread_solib_loaded): Update.
4551 (bsd_uthread_state): Now const.
4552 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4553 (amd64_ymm_avx512_names, amd64_ymmh_names)
4554 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4555 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4556 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4557 (amd64_dword_names): Now const.
4558 * agent.c (can_use_agent_enum): Now const.
4559 * ada-tasks.c (task_states, long_task_states): Now const.
4560 * ada-lang.c (known_runtime_file_name_patterns)
4561 (known_auxiliary_function_name_patterns, attribute_names)
4562 (standard_exc, ada_extensions): Now const.
4563
4564 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * bcache.h (struct bcache) <bcache>: Remove constructor.
4567 <m_hash_function, m_compare_function>: Remove.
4568 <~bcache>: Make virtual.
4569 <compare>: Remove static method, introduce virtual method.
4570 <default_hash>: Remove.
4571 <hash>: New virtual method.
4572 * bcache.c (bcache::expand_hash_table): Update.
4573 (bcache::insert): Update.
4574 (bcache::hash): New.
4575 (bcache::compare): Update comment and parameter names.
4576 * gdbtypes.c (types_deeply_equal): Update.
4577 * psymtab.h (struct psymbol_bcache): New struct.
4578 (class psymtab_storage) <psymtab_storage>: Make default.
4579 <psymbol_cache>: Change type to psymbol_bcache.
4580 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4581 (psymbol_hash): Change to...
4582 (psymbol_bcache::hash): ... this.
4583 (psymbol_compare): Change to...
4584 (psymbol_bcache::compare): ... this.
4585
4586 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4589 checking for initial lwp.
4590
4591 2020-09-14 Tom Tromey <tromey@adacore.com>
4592
4593 * m68k-tdep.c (m68k_extract_return_value): Use
4594 pointer_result_regnum.
4595 (m68k_store_return_value): Likewise.
4596 (m68k_reg_struct_return_p): Handle vectors and arrays.
4597 (m68k_return_value): Handle arrays.
4598 (m68k_svr4_return_value): Fix single-element aggregate handling.
4599 Handle long double. Adjust for embedded ABI.
4600 (m68k_svr4_init_abi): Set pointer_result_regnum.
4601 (m68k_embedded_init_abi): New function.
4602 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4603 (m68k_osabi_sniffer): New function.
4604 (_initialize_m68k_tdep): Register osabi sniffer.
4605 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4606 member.
4607
4608 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4609
4610 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4611 with gdb::unique_xmalloc_ptr<char>.
4612
4613 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 * xml-support.h (xml_fetch_another): Change type to be a
4616 function_view.
4617 (xml_process_xincludes): Remove baton parameter.
4618 (xml_fetch_content_from_file): Change baton parameter to
4619 dirname.
4620 * xml-support.c (struct xinclude_parsing_data)
4621 <xinclude_parsing_data>: Remove baton parameter.
4622 <fetcher_baton>: Remove.
4623 (xinclude_start_include): Adjust.
4624 (xml_process_xincludes): Adjust.
4625 (xml_fetch_content_from_file): Replace baton parameter with
4626 dirname.
4627 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4628 (xml_init_syscalls_info): Use a lambda.
4629 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4630 (file_read_description_xml): Use a lambda.
4631 (fetch_available_features_from_target): Change baton parameter
4632 to target_ops.
4633 (target_read_description_xml): Use a lambda.
4634 (target_fetch_description_xml): Use a lambda.
4635 (string_read_description_xml): Update.
4636
4637 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4640 uses with type::endianity_is_not_default.
4641
4642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * gdbtypes.h (struct type) <endianity_is_not_default,
4645 set_endianity_is_not_default>: New methods.
4646 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4647 type::endianity_is_not_default, change all write call sites to
4648 use type::set_endianity_is_not_default.
4649
4650 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4653 uses with type::is_fixed_instance.
4654
4655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (struct type) <is_fixed_instance,
4658 set_is_fixed_instance>: New methods.
4659 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4660 write call sites to use type::set_is_fixed_instance.
4661
4662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4665 uses with type::is_gnu_ifunc.
4666
4667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4670 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4671 use type::set_is_gnu_ifunc.
4672
4673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4674
4675 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4676 uses with type::stub_is_supported.
4677
4678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4681 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4682 use type::set_stub_is_supported.
4683
4684 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4687 uses with type::is_vector.
4688
4689 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4692 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4693 use type::set_is_vector.
4694
4695 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4698 uses with type::has_varargs.
4699
4700 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4703 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4704 use type::set_has_varargs.
4705
4706 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4709 uses with type::is_prototyped.
4710
4711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4714 New methods.
4715 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4716 call sites to use type::set_is_prototyped.
4717
4718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4721 uses with type::target_is_stub.
4722
4723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4726 New methods.
4727 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4728 sites to use type::set_target_is_stub.
4729
4730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (TYPE_STUB): Remove, replace all
4733 uses with type::is_stub.
4734
4735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4738 (TYPE_STUB): Use type::is_stub, change all write call sites to
4739 use type::set_is_stub.
4740
4741 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4744 type::has_no_signedness.
4745
4746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * gdbtypes.h (struct type) <has_no_signedness,
4749 set_has_no_signedness>: New methods.
4750 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4751 call sites to use type::set_has_no_signedness.
4752
4753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4756 type::is_unsigned.
4757
4758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4761 methods.
4762 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4763 sites to use type::set_is_unsigned.
4764
4765 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4766 Adam Renquinha <arenquinha@cimeq.qc.ca>
4767
4768 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4769 pointer and stack frame offset when unwinding.
4770
4771 2020-09-13 Pedro Alves <pedro@palves.net>
4772
4773 * NEWS: Document "-break-insert --qualified".
4774 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4775
4776 2020-09-13 Pedro Alves <pedro@palves.net>
4777
4778 * linespec.c (classify_mtype, compare_msyms): Delete.
4779 (search_minsyms_for_name): Remove classification logic. Instead
4780 filter out trampoline symbols if we also found an external
4781 function of the same name.
4782
4783 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4784
4785 * NEWS: Create a new section for the next release branch.
4786 Rename the section of the current branch, now that it has
4787 been cut.
4788
4789 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4790
4791 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4792 * version.in: Bump version to 11.0.50.DATE-git.
4793
4794 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4795
4796 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4797
4798 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4799 Felix Willgerodt <Felix.Willgerodt@intel.com>
4800
4801 * gdbarch.sh: Added bfloat16 type.
4802 * gdbarch.c: Regenerated.
4803 * gdbarch.h: Regenerated.
4804 * gdbtypes.c (floatformats_bfloat16): New struct.
4805 (gdbtypes_post_init): Add builtin_bfloat16.
4806 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4807 (floatformats_bfloat16): New struct.
4808 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4809 (i386_ymm_type): Add field "v16_bfloat16"
4810 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4811 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4812 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4813 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4814 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4815 * features/i386/64bit-avx512.c: Regenerated.
4816 * features/i386/64bit-sse.xml: Add bfloat16 type.
4817 * features/i386/64bit-sse.c: Regenerated.
4818
4819 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4820
4821 * i386-tdep.c (i386_zmm_type): Fix field names.
4822 (i386_ymm_type): Fix field names.
4823
4824 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4825
4826 * breakpoint.c: Fix typo in the help message of the
4827 "set breakpoint condition-evaluation" command.
4828
4829 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4830
4831 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4832 * (nbsd_nat_target::pid_to_exec_file)
4833 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4834 (nbsd_nat_target::post_startup_inferior)
4835 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4836 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4837 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4838 * (nbsd_thread_lister): Remove.
4839
4840 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4841
4842 * fork-inferior.c (startup_inferior): Avoid double free.
4843
4844 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4845
4846 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4847 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4848
4849 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4850
4851 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4852 * netbsd-nat.c: Include <sys/ptrace.h>.
4853 * (netbsd_nat::enable_proc_events): Add.
4854
4855 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4856
4857 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4858 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4859 (netbsd_nat::for_each_thread): Add.
4860 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4861 "gdbsupport/common-debug.h".
4862 * (netbsd_nat::netbsd_thread_lister)
4863 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4864 (netbsd_nat::for_each_thread): Add.
4865
4866 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4867
4868 * netbsd-nat.h: Include <unistd.h>.
4869 * (netbsd_nat::pid_to_exec_file): Add.
4870 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4871 * (netbsd_nat::pid_to_exec_file) Add.
4872
4873 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4874
4875 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4876
4877 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4878
4879 * netbsd-nat.h: New file.
4880 * netbsd-nat.c: Likewise.
4881
4882 2020-09-09 Tom Tromey <tromey@adacore.com>
4883
4884 * ada-lang.c (remove_extra_symbols): Do not increment when
4885 removing an element
4886
4887 2020-09-08 Tom Tromey <tromey@adacore.com>
4888
4889 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4890
4891 2020-09-08 Tom Tromey <tromey@adacore.com>
4892
4893 PR win32/25302:
4894 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4895 (gdb_bfd_init_data): New function.
4896 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4897
4898 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4899
4900 * infrun.c (fetch_inferior_event): Use
4901 `switch_to_target_no_thread` to switch the target.
4902
4903 2020-09-06 Tom Tromey <tom@tromey.com>
4904
4905 * symfile.h (dwarf2_free_objfile): Don't declare.
4906
4907 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4908
4909 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4910 to match 16 byte real/complex type generated by Flang compiler.
4911
4912 2020-09-03 Tom de Vries <tdevries@suse.de>
4913
4914 PR breakpoint/26546
4915 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4916 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4917
4918 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * maint.c (index_digits): New function.
4921 (struct maint_print_section_data): Remove.
4922 (print_bfd_section_info): Remove print_data parameter, add arg
4923 and index_digits.
4924 (print_objfile_section_info): Likewise.
4925 (print_bfd_section_info_maybe_relocated): Likewise (plus
4926 objfile).
4927 (maintenance_info_sections): Adjust calls.
4928
4929 2020-09-02 Tom Tromey <tromey@adacore.com>
4930
4931 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4932 for null pointers.
4933 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4934
4935 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * bcache.h (struct bcache) <insert>: Change type of `added` to
4938 pointer to bool.
4939 * bcache.c (bcache::insert): Likewise.
4940 * gdbtypes.c (check_types_worklist): Adjust.
4941 * psymtab.c (add_psymbol_to_bcache): Adjust.
4942
4943 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4944
4945 * corelow.c (unordered_set): Include.
4946 (class core_target): Add field 'm_core_unavailable_mappings'.
4947 (core_target::build_file_mappings): Print only one warning
4948 per inaccessible file. Add unavailable/broken mappings
4949 to m_core_unavailable_mappings.
4950 (core_target::xfer_partial): Call...
4951 (core_target::xfer_memory_via_mappings): New method.
4952
4953 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4956 type to bool.
4957
4958 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4959
4960 * dwarf2/read.c (struct field_info): Fix indentation.
4961
4962 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4965 ordering in comment.
4966 * frame.c (frame_id_eq): Fix indentation.
4967
4968 2020-08-31 Scott Linder <scott@scottlinder.com>
4969 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4972 inline frame ids in outer frame.
4973
4974 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4977 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4978 (outer_frame_id): Use FID_STACK_OUTER instead of
4979 FID_STACK_INVALID.
4980 (frame_id_p): Don't check for outer_frame_id.
4981
4982 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4985 regnum/frame in value. Call allocate_value_lazy.
4986 * frame.c (frame_unwind_register_value): Use
4987 val_print_not_saved.
4988
4989 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4992
4993 2020-08-29 Pedro Alves <pedro@palves.net>
4994
4995 * progspace.c (print_program_space): Use all_inferiors. Switch to
4996 the inferior before calling target_pid_to_str.
4997
4998 2020-08-28 Tom Tromey <tom@tromey.com>
4999
5000 * xcoffread.c (xcoff_end_psymtab): Update comment.
5001 * dbxread.c (dbx_end_psymtab): Update comment.
5002
5003 2020-08-28 Tom de Vries <tdevries@suse.de>
5004
5005 PR breakpoint/26544
5006 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5007 event_location.
5008 (create_breakpoint): Same.
5009 (base_breakpoint_decode_location): Same.
5010 (bkpt_create_sals_from_location): Same.
5011 (bkpt_decode_location): Same.
5012 (bkpt_probe_create_sals_from_location): Same.
5013 (bkpt_probe_decode_location): Same.
5014 (tracepoint_create_sals_from_location): Same.
5015 (tracepoint_decode_location): Same.
5016 (tracepoint_probe_decode_location): Same.
5017 (strace_marker_create_sals_from_location): Same.
5018 (strace_marker_decode_location): Same.
5019 (create_sals_from_location_default): Same.
5020 (decode_location_default): Same.
5021 * breakpoint.h (struct breakpoint_ops): Same.
5022 (create_breakpoint): Same.
5023 * linespec.h (decode_line_full): Same.
5024 * linespec.c (decode_line_full): Same. Throw error if
5025 result.size () == 0.
5026
5027 2020-08-27 Pedro Alves <pedro@palves.net>
5028
5029 PR gdb/26524
5030 * breakpoint.c (until_break_fsm) <location_breakpoint,
5031 caller_breakpoint>: Delete fields.
5032 <breakpoints>: New field.
5033 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5034 two individual breakpoints.
5035 (until_break_fsm::should_stop): Loop over breakpoints in the
5036 breakpoint vector.
5037 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5038 vector.
5039 (until_break_command): Handle location expanding into multiple
5040 sals.
5041
5042 2020-08-27 Pedro Alves <pedro@palves.net>
5043
5044 PR gdb/26523
5045 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5046 bp_until breakpoints user-specified locations. Update intro
5047 comment.
5048
5049 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5052 gdb_bfd_sections): New.
5053 * maint.c (print_bfd_section_info): Change param type to
5054 maint_print_section_data.
5055 (print_objfile_section_info): Likewise.
5056 (print_bfd_section_info_maybe_relocated): Likewise.
5057 (maintenance_info_sections): Use gdb_bfd_sections.
5058
5059 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5060
5061 * MAINTAINERS: Add ARC target and maintainer.
5062
5063 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5064
5065 * configure.tgt: ARC support for GNU/Linux.
5066 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5067 * arc-linux-tdep.c: New file.
5068 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5069 * arc-tdep.c (arc_write_pc): Use it.
5070
5071 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5072
5073 * arc-tdep.c (arc_check_for_hardware_loop): New.
5074 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5075
5076 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5077
5078 * arc-tdep.h: Include "gdbarch.h".
5079
5080 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5081
5082 * arch/arc.h
5083 (arc_gdbarch_features): New class to stir the selection of target XML.
5084 (arc_create_target_description): Use FEATURES to choose XML target.
5085 (arc_lookup_target_description): Use arc_create_target_description
5086 to create _new_ target descriptions or return the already created
5087 ones if the FEATURES is the same.
5088 * arch/arc.c: Implementation of prototypes described above.
5089 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5090 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5091 * arc-tdep.c (*_feature_name): Make feature names consistent.
5092 (arc_register_feature): A new struct to hold information about
5093 registers of a particular target/feature.
5094 (arc_check_tdesc_feature): Check if XML provides registers in
5095 compliance with ARC_REGISTER_FEATURE structs.
5096 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5097 (determine_*_reg_feature_set): Which feature name to look for.
5098 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5099 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5100 to expected ISA enums to be used in arc_gdbarch_features structs.
5101 * features/Makefile (FEATURE_XMLFILES): Add new files.
5102 * gdb/features/arc/v1-aux.c: New file.
5103 * gdb/features/arc/v1-aux.xml: Likewise.
5104 * gdb/features/arc/v1-core.c: Likewise.
5105 * gdb/features/arc/v1-core.xml: Likewise.
5106 * gdb/features/arc/v2-aux.c: Likewise.
5107 * gdb/features/arc/v2-aux.xml: Likewise.
5108 * gdb/features/arc/v2-core.c: Likewise.
5109 * gdb/features/arc/v2-core.xml: Likewise.
5110 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5111
5112 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5113 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 PR m2/26372
5116 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5117 an assert. Remove single element array indexing pattern as the
5118 MULTI_SUBSCRIPT support will handle this case too.
5119
5120 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5121
5122 * value.h (valprint_check_validity): Move declaration from
5123 here...
5124 * valprint.h (valprint_check_validity): ... to here.
5125
5126 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * debug.h: New file.
5129 * debug.c (debug_prefixed_vprintf): New function.
5130 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5131 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5132
5133 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * infrun.h (infrun_debug_printf_1): New function declaration.
5136 (infrun_debug_printf): New macro.
5137 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5138 throughout.
5139 (infrun_debug_printf): New function.
5140 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5141 (handle_jit_event): Likewise.
5142
5143 2020-08-21 Mark Wielaard <mark@klomp.org>
5144
5145 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5146
5147 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * frame.c (enum class frame_id_status): New.
5150 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5151 (fprintf_frame): Update.
5152 (compute_frame_id): Set frame id status to "computing" on entry.
5153 Set it back to "not_computed" on failure and to "computed" on
5154 success.
5155 (get_frame_id): Assert the frame id is not being computed.
5156 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5157 (create_new_frame): Likewise.
5158 (frame_cleanup_after_sniffer): Update assert.
5159
5160 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * regcache.c (pid_ptid_regcache_map): New type.
5163 (target_ptid_regcache_map): Remove.
5164 (target_pid_ptid_regcache_map): New type.
5165 (regcaches): Change type to target_pid_ptid_regcache_map.
5166 (get_thread_arch_aspace_regcache): Update.
5167 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5168 case.
5169 (regcaches_size): Update.
5170 (regcache_count): Update.
5171 (registers_changed_ptid_target_pid_test): New.
5172 (_initialize_regcache): Register new test.
5173
5174 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5175
5176 * regcache.c (regcache_count): New.
5177 (struct regcache_test_data): New.
5178 (regcache_test_data_up): New.
5179 (populate_regcaches_for_test): New.
5180 (regcaches_test): Remove.
5181 (get_thread_arch_aspace_regcache_test): New.
5182 (registers_changed_ptid_all_test): New.
5183 (registers_changed_ptid_target_test): New.
5184 (registers_changed_ptid_target_ptid_test): New.
5185 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5186 (_initialize_regcache): Register new tests.
5187
5188 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5189
5190 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5191 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5192 gdbarch and aspace parameter. Use current inferior's aspace.
5193 Validate regcache's arch value.
5194 (regcaches_test): Update.
5195
5196 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5197
5198 * regcache.c (regcaches_test): Call registers_changed.
5199
5200 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5201
5202 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5203
5204 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5205
5206 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5207 to find the end of prologue for flang compiled binaries.
5208 * arm-tdep.c (arm_skip_prologue): Likewise.
5209 * i386-tdep.c (i386_skip_prologue): Likewise.
5210 * producer.c (producer_is_llvm): New function.
5211 (producer_parsing_tests): Added new tests for clang/flang.
5212 * producer.h (producer_is_llvm): New declaration.
5213
5214 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * linux-nat.c (linux_nat_debug_printf): New function.
5217 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5218
5219 2020-08-18 Aaron Merey <amerey@redhat.com>
5220
5221 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5222 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5223 (CLIBS): Add DEBUGINFOD_LIBS.
5224
5225 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5226
5227 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5228 'gdbarch_num_regs'.
5229
5230 2020-08-17 Tom Tromey <tromey@adacore.com>
5231
5232 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5233 ada_get_decoded_value returns NULL.
5234
5235 2020-08-17 Tom Tromey <tromey@adacore.com>
5236
5237 * python/py-inferior.c (infpy_search_memory): Use
5238 gdb_py_object_from_ulongest.
5239 * python/py-infevents.c (create_inferior_call_event_object)
5240 (create_memory_changed_event_object): Use
5241 gdb_py_object_from_ulongest.
5242 * python/py-linetable.c (ltpy_entry_get_pc): Use
5243 gdb_py_object_from_ulongest.
5244
5245 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * loc.c (class symbol_needs_eval_context): Fix indentation.
5248
5249 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5252 bool.
5253
5254 2020-08-17 Tom de Vries <tdevries@suse.de>
5255
5256 PR gdb/26393
5257 * gdbtypes.c (dump_dynamic_prop): New function.
5258 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5259
5260 2020-08-15 Tom de Vries <tdevries@suse.de>
5261
5262 PR backtrace/26390
5263 * stack.c (print_frame_args): Temporarily set the selected
5264 frame to FRAME while printing the frame's arguments.
5265
5266 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5267
5268 PR breakpoints/26385
5269 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5270 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5271
5272 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5273
5274 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5275 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5276 and >= to check return value instead of == -1 and != -1.
5277
5278 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * utils.h (class gdb_argv) <as_array_view>: New method.
5281 * utils.c (gdb_argv_as_array_view_test): New.
5282 (_initialize_utils): Register selftest.
5283 * maint.c (maintenance_selftest): Use the new method.
5284
5285 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5286
5287 * target.h (supports_dumpcore, dumpcore): New
5288 function declarations.
5289 * target.c (supports_dumpcore, dumpcore): New
5290 functions.
5291 * target-delegates.c: Rebuild.
5292 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5293 and target_dumpcore ().
5294
5295 2020-08-13 Aaron Merey <amerey@redhat.com>
5296
5297 * debuginfod-support.c: Replace global variables with user_data.
5298
5299 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * maint.c (maintenance_selftest): Split args and pass array_view
5302 to run_tests.
5303
5304 2020-08-12 Luis Machado <luis.machado@linaro.org>
5305
5306 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5307 type's length.
5308 Use %s and pulongest to print the length.
5309
5310 2020-08-12 Pedro Alves <palves@redhat.com>
5311
5312 * NEWS: Move "Multi-target debugging support" item to the
5313 "Changes since GDB 9" section.
5314
5315 2020-08-12 Pedro Alves <palves@redhat.com>
5316
5317 PR gdb/26336
5318 * progspace.c (program_space::remove_objfile): Invalidate the
5319 frame cache.
5320
5321 2020-08-11 Tom de Vries <tdevries@suse.de>
5322
5323 * MAINTAINERS: Mark ms1 as deleted.
5324
5325 2020-08-10 Luis Machado <luis.machado@linaro.org>
5326
5327 PR gdb/26310
5328
5329 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5330 act accordingly.
5331 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5332 movz/str/stur/stp skipping behavior.
5333
5334 2020-08-10 Luis Machado <luis.machado@linaro.org>
5335
5336 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5337 struct user_sve_header instead of struct sve_context.
5338
5339 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5340
5341 * read.h (dwarf2_fetch_die_loc_sect_off,
5342 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5343 `void *` parameter with function_view.
5344 * read.c (dwarf2_fetch_die_loc_sect_off,
5345 dwarf2_fetch_die_loc_cu_off): Likewise.
5346 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5347 (per_cu_dwarf_call): Adjust.
5348 (get_frame_address_in_block_wrapper): Remove.
5349 (indirect_synthetic_pointer): Adjust.
5350 (get_ax_pc): Remove.
5351 (dwarf2_compile_expr_to_ax): Adjust.
5352
5353 2020-08-08 Tom de Vries <tdevries@suse.de>
5354
5355 PR build/26344
5356 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5357 constructor.
5358 * regcache.c (get_thread_arch_aspace_regcache): Same.
5359
5360 2020-08-07 Tom Tromey <tromey@adacore.com>
5361
5362 * ravenscar-thread.c
5363 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5364 New method.
5365 (ravenscar_thread_target::wait): Check
5366 runtime_initialized.
5367 (ravenscar_thread_target::prepare_to_store)
5368 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5369 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5370 (ravenscar_thread_target::stopped_by_watchpoint)
5371 (ravenscar_thread_target::stopped_data_address)
5372 (ravenscar_thread_target::core_of_thread): Use
5373 scoped_restore_current_thread and
5374 set_base_thread_from_ravenscar_task.
5375
5376 2020-08-07 Tom Tromey <tromey@adacore.com>
5377
5378 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5379
5380 2020-08-07 Tom Tromey <tromey@adacore.com>
5381
5382 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5383 update_inferior_ptid before update_thread_list.
5384 (temporarily_change_regcache_ptid): New class.
5385 (ravenscar_thread_target::fetch_registers)
5386 (ravenscar_thread_target::store_registers)
5387 (ravenscar_thread_target::prepare_to_store): Use base thread when
5388 forwarding operation.
5389
5390 2020-08-07 Tom Tromey <tromey@adacore.com>
5391
5392 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5393 "is_pid" case.
5394
5395 2020-08-07 Tom Tromey <tromey@adacore.com>
5396
5397 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5398 New methods.
5399 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5400 first.
5401 (ravenscar_thread_target::add_thread): Rename from
5402 ravenscar_add_thread.
5403 (ravenscar_thread_target::update_thread_list): Use a lambda.
5404 (ravenscar_thread_target::xfer_partial): New method.
5405
5406 2020-08-07 Tom Tromey <tromey@adacore.com>
5407
5408 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5409 gdb::function_view.
5410 (iterate_over_live_ada_tasks): Change type of argument.
5411 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5412 of argument.
5413
5414 2020-08-07 Tom Tromey <tromey@adacore.com>
5415
5416 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5417 Remove.
5418 (ravenscar_thread_target::extra_thread_info): Remove.
5419 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5420 defer to target beneath for non-Ravenscar threads.
5421
5422 2020-08-07 Tom Tromey <tromey@adacore.com>
5423
5424 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5425 get_base_thread_from_ravenscar_task>: Now methods.
5426 <m_cpu_map>: New member.
5427 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5428 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5429 (ravenscar_thread_target::task_is_currently_active): Update.
5430 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5431 Now a method.
5432 (ravenscar_thread_target::add_active_thread): Put initial thread
5433 into the m_cpu_map.
5434
5435 2020-08-07 Tom Tromey <tromey@adacore.com>
5436
5437 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5438 event_ptid.
5439
5440 2020-08-07 Tom Tromey <tromey@adacore.com>
5441
5442 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5443 runtime_initialized.
5444
5445 2020-08-07 Tom Tromey <tromey@adacore.com>
5446
5447 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5448 add_active_thread.
5449 (ravenscar_thread_target::add_active_thread): Now public.
5450 (ravenscar_inferior_created): Call add_active_thread after pushing
5451 the target.
5452
5453 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * regcache.c (ptid_regcache_map): New type.
5456 (target_ptid_regcache_map): New type.
5457 (regcaches): Change type to target_ptid_regcache_map.
5458 (get_thread_arch_aspace_regcache): Update to regcaches' new
5459 type.
5460 (regcache_thread_ptid_changed): Likewise.
5461 (registers_changed_ptid): Likewise.
5462 (regcaches_size): Likewise.
5463 (regcaches_test): Update.
5464 (regcache_thread_ptid_changed): Update.
5465 * regcache.h (regcache_up): New type.
5466 * gdbsupport/ptid.h (hash_ptid): New struct.
5467
5468 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * observable.h (thread_ptid_changed): Add parameter
5471 `process_stratum_target *`.
5472 * infrun.c (infrun_thread_ptid_changed): Add parameter
5473 `process_stratum_target *` and use it.
5474 (selftests): New namespace.
5475 (infrun_thread_ptid_changed): New function.
5476 (_initialize_infrun): Register selftest.
5477 * regcache.c (regcache_thread_ptid_changed): Add parameter
5478 `process_stratum_target *` and use it.
5479 (regcache_thread_ptid_changed): New function.
5480 (_initialize_regcache): Register selftest.
5481 * thread.c (thread_change_ptid): Pass target to
5482 thread_ptid_changed observable.
5483
5484 2020-08-06 Caroline Tice <cmtice@google.com>
5485
5486 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5487 (struct dwp_sections): Update field comments. Add loclists and
5488 rnglists fields.
5489 (struct virtual_v2_dwo_sections): Rename struct to
5490 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5491 size & offset fields for loclists and rnglists.
5492 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5493 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5494 skipping dummy type units.
5495 (create_dwp_hash_table): Update the large comment above the function to
5496 discuss Version 5 DWP files as well, with references. Update all the
5497 version checks in the function to check for version 5 as well. Add new
5498 section at the end to create dwp hash table for version 5.
5499 (create_dwp_v2_section): Rename function to
5500 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5501 Add V5 to error message text.
5502 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5503 into calls to create_dwp_v2_or_v5_section.
5504 (create_dwo_unit_in_dwp_v5): New function.
5505 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5506 check for version2; add else clause to handle version 5.
5507 (open_and_init_dwo_file): Add code to check dwarf version & only call
5508 create_debug_types_hash_table (with sections.types) if version is not 5;
5509 else call create_debug_type_hash_table, with sections.info.
5510 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5511 version 5.
5512 (dwarf2_locate_v5_dwp_sections): New function.
5513 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5514 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5515
5516 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * regcache.h (class regcache): Remove friend
5519 registers_changed_ptid.
5520 <regcache_thread_ptid_changed>: Remove.
5521 <regcaches>: Remove.
5522 * regcache.c (regcache::regcaches): Rename to...
5523 (regcaches): ... this. Make static.
5524 (get_thread_arch_aspace_regcache): Update.
5525 (regcache::regcache_thread_ptid_changed): Rename to...
5526 (regcache_thread_ptid_changed): ... this. Update.
5527 (class regcache_access): Remove.
5528 (regcaches_test): Update.
5529 (_initialize_regcache): Update.
5530 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5531 <forward_list>.
5532
5533 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * regcache.h (class regcache) <current_regcache>: Rename to...
5536 <regcaches>: ... this. Move doc here.
5537 * regcache.c (regcache::current_regcache) Rename to...
5538 (regcache::regcaches): ... this. Move doc to header.
5539 (get_thread_arch_aspace_regcache): Update.
5540 (regcache::regcache_thread_ptid_changed): Update.
5541 (registers_changed_ptid): Update.
5542 (class regcache_access) <current_regcache_size>: Rename to...
5543 <regcaches_size>: ... this.
5544 (current_regcache_test): Rename to...
5545 (regcaches_test): ... this.
5546 (_initialize_regcache): Update.
5547
5548 2020-08-06 Victor Collod <vcollod@nvidia.com>
5549
5550 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5551
5552 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5553
5554 * corelow.c (core_target::build_file_mappings): Don't output
5555 null pathname in warning.
5556
5557 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5560 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5561 gdb.dwarf2/dw2-single-line-discriminators.exp,
5562 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5563
5564 2020-08-05 Tom Tromey <tromey@adacore.com>
5565
5566 PR rust/26197:
5567 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5568 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5569 Fix off-by-one and type size errors in ordinary case.
5570
5571 2020-08-05 Tom de Vries <tdevries@suse.de>
5572
5573 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5574 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5575
5576 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * frame.h (frame_id_p): Return bool.
5579 (frame_id_artificial_p): Return bool.
5580 (frame_id_eq): Return bool.
5581 (has_stack_frames): Return bool.
5582 (get_selected_frame): Fix typo in comment.
5583 (get_frame_pc_if_available): Return bool.
5584 (get_frame_address_in_block_if_available): Return bool.
5585 (get_frame_func_if_available): Return bool.
5586 (read_frame_register_unsigned): Return bool.
5587 (get_frame_register_bytes): Return bool.
5588 (safe_frame_unwind_memory): Return bool.
5589 (deprecated_frame_register_read): Return bool.
5590 (frame_unwinder_is): Return bool.
5591 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5592 bool.
5593 <this_id::p>: Likewise.
5594 <prev_p>: Likewise.
5595 (frame_stash_add): Return bool.
5596 (get_frame_id): Use bool.
5597 (frame_id_build_special) Use bool.
5598 (frame_id_build_unavailable_stack): Use bool.
5599 (frame_id_build): Use bool.
5600 (frame_id_p): Return bool, use true/false instead of 1/0.
5601 (frame_id_artificial_p): Likewise.
5602 (frame_id_eq): Likewise.
5603 (frame_id_inner): Likewise.
5604 (get_frame_func_if_available): Likewise.
5605 (read_frame_register_unsigned): Likewise.
5606 (deprecated_frame_register_read): Likewise.
5607 (get_frame_register_bytes): Likewise.
5608 (has_stack_frames): Likewise.
5609 (inside_main_func): Likewise.
5610 (inside_entry_func): Likewise.
5611 (get_frame_pc_if_available): Likewise.
5612 (get_frame_address_in_block_if_available): Likewise.
5613 (frame_unwinder_is): Likewise.
5614 (safe_frame_unwind_memory): Likewise.
5615 (frame_unwind_arch): Likewise.
5616
5617 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5620 type to cached_copy_status.
5621 (fprintf_frame): Adjust.
5622 (get_frame_func_if_available): Adjust.
5623 (frame_cleanup_after_sniffer): Adjust.
5624
5625 2020-08-04 Mark Wielaard <mark@klomp.org>
5626
5627 * MAINTAINERS (Write After Approval): Update email address.
5628
5629 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5630
5631 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5632 dynamic_prop::const_val.
5633
5634 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5637 dynamic_prop::kind.
5638
5639 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5640
5641 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5642
5643 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5644
5645 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5646
5647 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5648 Jose E. Marchesi <jose.marchesi@oracle.com>
5649
5650 * configure.tgt: Add entry for bpf-*-*.
5651 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5652 (ALLDEPFILES): Add bpf-tdep.c.
5653 * bpf-tdep.c: New file.
5654 * MAINTAINERS: Add bpf target and maintainer.
5655 * NEWS: Mention the support for the new target.
5656
5657 2020-08-04 Tom de Vries <tdevries@suse.de>
5658
5659 PR symtab/23270
5660 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5661 Error.
5662
5663 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5664
5665 * syscalls/freebsd.xml: Regenerate.
5666
5667 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5668
5669 * syscalls/update-freebsd.sh: Fix usage and year range.
5670
5671 2020-08-03 Tom de Vries <tdevries@suse.de>
5672
5673 PR symtab/26333
5674 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5675 DW_LNE_lo_user/DW_LNE_hi_user range.
5676
5677 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 PR ada/26318
5680 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5681 kind.
5682
5683 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5684
5685 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5686
5687 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5688
5689 * breakpoint.c (set_breakpoint_condition): Update the condition
5690 expressions after checking that the input condition string parses
5691 successfully and does not contain junk at the end.
5692
5693 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5694
5695 * breakpoint.c (set_breakpoint_condition): Update the
5696 condition string after parsing the new condition successfully.
5697
5698 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5699
5700 * proc-api.c (_STRUCTURED_PROC): Don't define.
5701 * proc-events.c: Likewise.
5702 * proc-flags.c: Likewise.
5703 * proc-why.c: Likewise.
5704 * procfs.c: Likewise.
5705
5706 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5707 * configure, config.in: Regenerate.
5708
5709 2020-07-30 Tom de Vries <tdevries@suse.de>
5710
5711 PR build/26320
5712 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5713 m_red/m_green/m_blue in a union.
5714
5715 2020-07-29 Tom de Vries <tdevries@suse.de>
5716
5717 PR tdep/26280
5718 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5719
5720 2020-07-28 Tom Tromey <tromey@adacore.com>
5721
5722 PR symtab/26270:
5723 * symtab.h (find_pc_partial_function_sym): Declare.
5724 * cli/cli-cmds.c (disassemble_command): Use
5725 find_pc_partial_function_sym. Check asm_demangle.
5726 * blockframe.c (cache_pc_function_sym): New global.
5727 (cache_pc_function_name): Remove.
5728 (clear_pc_function_cache): Update.
5729 (find_pc_partial_function_sym): New function, from
5730 find_pc_partial_function.
5731 (find_pc_partial_function): Rewrite using
5732 find_pc_partial_function_sym.
5733
5734 2020-07-28 Tom Tromey <tromey@adacore.com>
5735
5736 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5737 help. Add usage.
5738
5739 2020-07-28 Tom Tromey <tromey@adacore.com>
5740
5741 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5742 <DW_OP_GNU_variable_value>: Cast to address type.
5743
5744 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5745
5746 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5747 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5748 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5749 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5750 (nbsd_get_siginfo_type): New.
5751 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5752 (_initialize_nbsd_tdep): New.
5753
5754 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5755
5756 PR binutils/26301
5757 * configure: Regenerated.
5758
5759 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5760
5761 PR binutils/26301
5762 * configure: Regenerated.
5763
5764 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5765
5766 * python/py-frame.c: Remove 'user-regs.h' include.
5767 (frapy_read_register): Rewrite to make use of
5768 gdbpy_parse_register_id.
5769 * python/py-registers.c (gdbpy_parse_register_id): New function,
5770 moved here from python/py-unwind.c. Updated the return type, and
5771 also accepts register descriptor objects.
5772 * python/py-unwind.c: Remove 'user-regs.h' include.
5773 (pyuw_parse_register_id): Moved to python/py-registers.c.
5774 (unwind_infopy_add_saved_register): Update to use
5775 gdbpy_parse_register_id.
5776 (pending_framepy_read_register): Likewise.
5777 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5778
5779 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5780
5781 * python/py-registers.c: Add 'user-regs.h' include.
5782 (register_descriptor_iter_find): New function.
5783 (register_descriptor_iterator_object_methods): New static global
5784 methods array.
5785 (register_descriptor_iterator_object_type): Add pointer to methods
5786 array.
5787
5788 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5789
5790 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5791 for all architectures on FreeBSD 11.3 and later.
5792
5793 2020-07-27 Tom Tromey <tromey@adacore.com>
5794
5795 * gcore.h (load_corefile): Don't declare.
5796
5797 2020-07-27 Tom de Vries <tdevries@suse.de>
5798
5799 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5800 * config.in: Regenerate.
5801 * configure: Regenerate.
5802
5803 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5804
5805 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5806 ws2tcpip.h. When checking whether socklen_t type is defined, use
5807 ws2tcpip.h if it is available and sys/socket.h isn't.
5808 * configure: Regenerate.
5809 * config.in: Regenerate.
5810
5811 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 PR fortran/23051
5814 PR fortran/26139
5815 * valops.c (value_ind): Pass address to
5816 readjust_indirect_value_type.
5817 * value.c (readjust_indirect_value_type): Make parameter
5818 non-const, and add extra address parameter. Resolve original type
5819 before using it.
5820 * value.h (readjust_indirect_value_type): Update function
5821 signature and comment.
5822
5823 2020-07-25 Tom de Vries <tdevries@suse.de>
5824
5825 PR symtab/26243
5826 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5827 entries.
5828
5829 2020-07-24 Aaron Merey <amerey@redhat.com>
5830
5831 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5832 * configure: Rebuild.
5833
5834 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5835
5836 PR corefiles/26294
5837 * corelow.c (_initialize_corelow): Add period to help text
5838 for "maintenance print core-file-backed-mappings".
5839
5840 2020-07-23 Pedro Alves <pedro@palves.net>
5841
5842 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5843 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5844 meanwhile.
5845 * frame.c (frame_cache_generation, get_frame_cache_generation):
5846 New.
5847 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5848 (get_prev_frame_if_no_cycle): On exception, don't touch
5849 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5850 * frame.h (get_frame_cache_generation): Declare.
5851
5852 2020-07-23 Tom de Vries <tdevries@suse.de>
5853
5854 PR tui/26282
5855 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5856 New default constructor.
5857
5858 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5861 exclude non-statement entries.
5862
5863 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5864
5865 * NEWS (New commands): Mention new command
5866 "maintenance print core-file-backed-mappings".
5867
5868 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5869
5870 * corelow.c (gdbcmd.h): Include.
5871 (core_target::info_proc_mappings): New method.
5872 (get_current_core_target): New function.
5873 (maintenance_print_core_file_backed_mappings): New function.
5874 (_initialize_corelow): Add core-file-backed-mappings to
5875 "maint print" commands.
5876
5877 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5878
5879 * linux-tdep.c (dump_note_entry_p): New function.
5880 (linux_dump_mapping_p_ftype): New typedef.
5881 (linux_find_memory_regions_full): Add new parameter,
5882 should_dump_mapping_p.
5883 (linux_find_memory_regions): Adjust call to
5884 linux_find_memory_regions_full.
5885 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5886 call to linux_find_memory_regions_full.
5887
5888 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5889
5890 * corelow.c (solist.h, unordered_map): Include.
5891 (class core_target): Add field m_core_file_mappings and
5892 method build_file_mappings.
5893 (core_target::core_target): Call build_file_mappings.
5894 (core_target::~core_target): Free memory associated with
5895 m_core_file_mappings.
5896 (core_target::build_file_mappings): New method.
5897 (core_target::xfer_partial): Use m_core_file_mappings
5898 for memory transfers.
5899 * linux-tdep.c (linux_read_core_file_mappings): New
5900 function.
5901 (linux_core_info_proc_mappings): Rewrite to use
5902 linux_read_core_file_mappings.
5903 (linux_init_abi): Register linux_read_core_file_mappings.
5904
5905 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5906
5907 * arch-utils.c (default_read_core_file_mappings): New function.
5908 * arch-utils.c (default_read_core_file_mappings): Declare.
5909 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5910 * gdbarch.h, gdbarch.c: Regenerate.
5911
5912 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5913
5914 PR corefiles/25631
5915 * corelow.c (core_target:xfer_partial): Revise
5916 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5917 case after first checking the stratum beneath the core
5918 target.
5919 (has_all_memory): Return true.
5920 * target.c (raw_memory_xfer_partial): Revise comment
5921 regarding use of has_all_memory.
5922
5923 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5924
5925 * exec.h (section_table_xfer_memory): Revise declaration,
5926 replacing section name parameter with an optional callback
5927 predicate.
5928 * exec.c (section_table_xfer_memory): Likewise.
5929 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5930 of section_table_xfer_memory.
5931
5932 2020-07-22 Tom Tromey <tromey@adacore.com>
5933
5934 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5935 lookup_symbol_search_name.
5936
5937 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5940 redundant local variable.
5941 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5942 reference, not pointer, update code accordingly.
5943
5944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5945 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5946
5947 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5948 * jit.c (jit_breakpoint_re_set_internal): Use the
5949 `skip_jit_symbol_lookup` field.
5950
5951 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5952 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5953
5954 * jit.c (jit_read_descriptor): Define the descriptor address once,
5955 use twice.
5956 (jit_breakpoint_deleted): Move the declaration of the loop variable
5957 `iter` into the loop header.
5958 (jit_breakpoint_re_set_internal): Move the declaration of the local
5959 variable `objf_data` to the first point of definition.
5960 (jit_event_handler): Move the declaration of local variables
5961 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5962 Rename `objf` to `jited`.
5963
5964 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5967 Remove.
5968 * jit.c (get_jiter_objfile_data): Update.
5969
5970 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5971 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * jit.c (struct jit_program_space_data): Remove.
5974 (jit_program_space_key): Remove.
5975 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5976 stuff.
5977 (get_jit_program_space_data): Remove.
5978 (jit_breakpoint_deleted): Iterate on all of the program space's
5979 objfiles.
5980 (jit_inferior_init): Likewise.
5981 (jit_breakpoint_re_set_internal): Likewise. Also change return
5982 type to void.
5983 (jit_breakpoint_re_set): Pass current_program_space to
5984 jit_breakpoint_re_set_internal.
5985
5986 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * jit.h (struct jiter_objfile_data) <cached_code_address,
5989 jit_breakpoint>: Move to here from ...
5990 * jit.c (jit_program_space_data): ... here.
5991 (jiter_objfile_data::~jiter_objfile_data): Update.
5992 (jit_breakpoint_deleted): Update.
5993 (jit_breakpoint_re_set_internal): Update.
5994
5995 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5998 checks.
5999 (jit_read_descriptor): Remove NULL check.
6000 (jit_event_handler): Add an assertion.
6001
6002 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * jit.h (struct jit_objfile_data): Split into...
6005 (struct jiter_objfile_data): ... this ...
6006 (struct jited_objfile_data): ... and this.
6007 * objfiles.h (struct objfile) <jit_data>: Remove.
6008 <jiter_data, jited_data>: New fields.
6009 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6010 (jiter_objfile_data::~jiter_objfile_data): ... this.
6011 (get_jit_objfile_data): Rename to ...
6012 (get_jiter_objfile_data): ... this.
6013 (add_objfile_entry): Update.
6014 (jit_read_descriptor): Use get_jiter_objfile_data.
6015 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6016 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6017 (jit_inferior_exit_hook): Use objfile's jited_data field.
6018
6019 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * jit.h: Forward-declare `struct minimal_symbol`.
6022 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6023 constructor, destructor, and an objfile* field.
6024 * jit.c (jit_objfile_data): Remove.
6025 (struct jit_objfile_data): Migrate from here to jit.h.
6026 (jit_objfile_data::~jit_objfile_data): New destructor
6027 implementation with code moved from free_objfile_data.
6028 (free_objfile_data): Delete.
6029 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6030 (jit_find_objf_with_entry_addr): Ditto.
6031 (jit_inferior_exit_hook): Ditto.
6032 (_initialize_jit): Remove the call to
6033 register_objfile_data_with_cleanup.
6034 * objfiles.h (struct objfile) <jit_data>: New field.
6035
6036 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6037
6038 * jit.h: Forward-declare `struct objfile`.
6039 (jit_event_handler): Add a second parameter, the JITer objfile.
6040 * jit.c (jit_read_descriptor): Change the signature to take the
6041 JITer objfile as an argument instead of the jit_program_space_data.
6042 (jit_inferior_init): Update the call to jit_read_descriptor.
6043 (jit_event_handler): Use the new JITer objfile argument when calling
6044 jit_read_descriptor.
6045 * breakpoint.c (handle_jit_event): Update the call to
6046 jit_event_handler to pass the JITer objfile.
6047
6048 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6049
6050 * gdbarch.c: Regenerate.
6051 * gdbarch.h: Regenerate.
6052 * gdbarch.sh (handle_segmentation_fault): Remove method.
6053 * infrun.c (handle_segmentation_fault): Remove.
6054 (print_signal_received_reason): Remove call to
6055 handle_segmentation_fault.
6056
6057 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6058
6059 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6060 Rename to sparc64_linux_report_signal_info and add siggnal
6061 argument.
6062 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6063 instead of sparc64_linux_handle_segmentation_fault.
6064
6065 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6066
6067 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6068 i386_linux_report_signal_info instead of
6069 i386_linux_handle_segmentation_fault.
6070 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6071 to i386_linux_report_signal_info and add siggnal argument.
6072 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6073 of i386_linux_handle_segmentation_fault.
6074 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6075 to i386_linux_report_signal_info and add siggnal argument.
6076
6077 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6078
6079 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6080 hook if present.
6081
6082 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6083
6084 * gdbarch.c: Regenerate.
6085 * gdbarch.h: Regenerate.
6086 * gdbarch.sh (report_signal_info): New method.
6087 * infrun.c (print_signal_received_reason): Invoke gdbarch
6088 report_signal_info hook if present.
6089
6090 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * python/py-registers.c : Add 'unordered_map' include.
6093 (gdbpy_new_reggroup): Renamed to...
6094 (gdbpy_get_reggroup): ...this. Update to only create register
6095 group descriptors when needed.
6096 (gdbpy_reggroup_iter_next): Update.
6097
6098 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6099
6100 * python/py-registers.c (gdbpy_register_object_data): New static
6101 global.
6102 (gdbpy_register_object_data_init): New function.
6103 (gdbpy_new_register_descriptor): Renamed to...
6104 (gdbpy_get_register_descriptor): ...this, and update to reuse
6105 existing register descriptors where possible.
6106 (gdbpy_register_descriptor_iter_next): Update.
6107 (gdbpy_initialize_registers): Register new gdbarch data.
6108
6109 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * linux-nat.c (stopped_pids): Make static.
6112
6113 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 PR ada/26235
6116 * gdbtypes.c (ada_discrete_type_low_bound,
6117 ada_discrete_type_high_bound): Handle undefined bounds.
6118
6119 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6120
6121 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6122 declaration.
6123 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6124 function.
6125
6126 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6127
6128 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6129 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6130 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6131 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6132 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6133 method.
6134
6135 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6136
6137 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6138 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6139 which are deprecated in Guile 3.0.
6140 * configure.ac (try_guile_versions): Add "guile-3.0".
6141 * configure (try_guile_versions): Regenerate.
6142 * NEWS: Update entry.
6143
6144 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6145 Doug Evans <dje@google.com>
6146
6147 PR gdb/21104
6148 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6149 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6150 USING_GUILE_BEFORE_2_2.
6151 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6152 Change type to 'scm_t_port_type *'.
6153 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6154 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6155 parameter and honor it. Update callers.
6156 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6157 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6158 functions.
6159 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6160 USING_GUILE_BEFORE_2_2.
6161 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6162 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6163 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6164 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6165 and 'SCM_PORT_TYPE'.
6166 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6167 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6168 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6169 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6170 [!USING_GUILE_BEFORE_2_2]: New functions.
6171 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6172 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6173 'gdbscm_memory_port_read'.
6174 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6175 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6176 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6177 function.
6178 (ioscm_init_memory_port): Remove.
6179 (ioscm_init_memory_port_stream): New function
6180 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6181 function.
6182 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6183 Return scm_from_uint (0).
6184 (gdbscm_set_memory_port_read_buffer_size_x)
6185 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6186 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6187 Return scm_from_uint (0).
6188 (gdbscm_set_memory_port_write_buffer_size_x)
6189 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6190 * configure.ac (try_guile_versions): Add "guile-2.2".
6191 * configure: Regenerate.
6192 * NEWS: Add entry.
6193
6194 2020-07-18 Tom Tromey <tom@tromey.com>
6195
6196 * linux-nat.c (linux_multi_process): Remove.
6197 (linux_nat_target::supports_multi_process): Return true.
6198
6199 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6200
6201 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6202 (riscv_lookup_target_description): Return pointer out of
6203 unique_ptr.
6204 * target-descriptions.c (allocate_target_description): Add
6205 comment.
6206 (target_desc_deleter::operator()): Likewise.
6207 * target-descriptions.h (struct target_desc_deleter): Moved to
6208 gdbsupport/tdesc.h.
6209 (target_desc_up): Likewise.
6210
6211 2020-07-17 Tom Tromey <tromey@adacore.com>
6212
6213 * linux-nat.c (linux_nat_target::supports_non_stop)
6214 (linux_nat_target::always_non_stop_p): Use "true".
6215 (linux_nat_target::supports_disable_randomization): Use "true" and
6216 "false".
6217
6218 2020-07-16 Caroline Tice <cmtice@google.com>
6219
6220 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6221 (RNGLIST_HEADER_SIZE64): New constant definition.
6222 (struct dwop_section_names): Add rnglists_dwo.
6223 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6224 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6225 (struct dwo_sections): Add rnglists field.
6226 (read_attribut_reprocess): Add tag parameter.
6227 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6228 (cu_debug_rnglists_section): New function (decl & definition).
6229 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6230 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6231 die whose range is being checked; get rnglist section from
6232 cu_debug_rnglists_section, to get from either objfile or dwo file as
6233 appropriate. Add cases for DW_RLE_base_addressx,
6234 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6235 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6236 test inside if-condition and updating complaint message.
6237 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6238 dwarf2_rnglists_process.
6239 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6240 dwarf2_ranges_process.
6241 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6242 need_ranges_base and update comment appropriately. Also pass die tag
6243 to dwarf2_ranges_read.
6244 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6245 need_ranges_base and update comment appropriately. Also pass die tag
6246 to dwarf2_ranges_process.
6247 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6248 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6249 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6250 need_ranges_base and update comment appropriately. Also pass die tag
6251 to read_attribute_reprocess and dwarf2_ranges_read.
6252 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6253 and update function comment appropriately.
6254 (read_loclist_index): Call read_loclists_rnglists_header instead of
6255 read_loclist_header.
6256 (read_rnglist_index): New function.
6257 (read_attribute_reprocess): Add tag parameter. Add code for
6258 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6259 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6260
6261 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6264 being resolved.
6265
6266 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * arch-utils.c (show_architecture): Update formatting of messages.
6269
6270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6271
6272 * gdbtypes.h (struct type) <bounds>: Handle array and string
6273 types.
6274 * ada-lang.c (assign_aggregate): Use type::bounds on
6275 array/string type.
6276 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6277 * c-varobj.c (c_number_of_children): Likewise.
6278 (c_describe_child): Likewise.
6279 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6280 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6281 (f_type_print_base): Likewise.
6282 * f-valprint.c (f77_array_offset_tbl): Likewise.
6283 (f77_get_upperbound): Likewise.
6284 (f77_print_array_1): Likewise.
6285 * guile/scm-type.c (gdbscm_type_range): Likewise.
6286 * m2-typeprint.c (m2_array): Likewise.
6287 (m2_is_long_set_of_type): Likewise.
6288 * m2-valprint.c (get_long_set_bounds): Likewise.
6289 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6290 * python/py-type.c (typy_range): Likewise.
6291 * rust-lang.c (rust_internal_print_type): Likewise.
6292 * type-stack.c (type_stack::follow_types): Likewise.
6293 * valarith.c (value_subscripted_rvalue): Likewise.
6294 * valops.c (value_cast): Likewise.
6295
6296 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6299 callers to use the equivalent accessor methods.
6300
6301 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6304 (struct type) <bit_stride>: New method.
6305 (TYPE_BIT_STRIDE): Remove.
6306 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6307
6308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6311 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6312 callers to use the equivalent accessor methods instead.
6313
6314 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6315
6316 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6317 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6318 callers to use the equivalent accessor methods instead.
6319
6320 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6323 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6324 to use dynamic_prop::kind.
6325
6326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6329 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6330 to get the bound property's kind and check against
6331 PROP_UNDEFINED.
6332
6333 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6336 all callers to use type::range_bounds followed by
6337 dynamic_prop::{low,high}.
6338
6339 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6342 const_val, set_const_val, baton, set_locexpr, set_loclist,
6343 set_addr_offset, variant_parts, set_variant_parts,
6344 original_type, set_original_type>: New methods.
6345 <kind>: Rename to...
6346 <m_kind>: ... this. Update all users to use the new methods
6347 instead.
6348 <data>: Rename to...
6349 <m_data>: ... this. Update all users to use the new methods
6350 instead.
6351
6352 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6353
6354 * gdbtypes.c (get_discrete_bounds): Return failure if
6355 the range type's bounds are not both defined and constant
6356 values.
6357 (get_array_bounds): Update comment. Remove undefined bound check.
6358
6359 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6362 the type::bounds method directly.
6363
6364 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6367 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6368 are used to set the range type's bounds to use set_bounds.
6369
6370 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6371
6372 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6373
6374 2020-07-10 Pedro Alves <pedro@palves.net>
6375
6376 * gdbthread.h (inferior_ref): Define.
6377 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6378 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6379 * thread.c
6380 (scoped_restore_current_thread::restore):
6381 Adjust to gdb::ref_ptr.
6382 (scoped_restore_current_thread::~scoped_restore_current_thread):
6383 Remove manual decref handling.
6384 (scoped_restore_current_thread::scoped_restore_current_thread):
6385 Adjust to use
6386 inferior_ref::new_reference/thread_info_ref::new_reference.
6387 Incref the thread before calling get_frame_id instead of after.
6388 Let TARGET_CLOSE_ERROR propagate.
6389
6390 2020-07-10 Pedro Alves <pedro@palves.net>
6391
6392 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6393 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6394 NOT_AVAILABLE_ERROR.
6395 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6396 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6397
6398 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6399 Pedro Alves <pedro@palves.net>
6400
6401 PR gdb/26199
6402 * infrun.c (threads_are_resumed_pending_p): Delete.
6403 (do_target_wait): Remove threads_are_executing and
6404 threads_are_resumed_pending_p checks from the inferior_matches
6405 lambda. Update comments.
6406
6407 2020-07-10 Pedro Alves <pedro@palves.net>
6408
6409 PR gdb/26199
6410 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6411 executing threads.
6412
6413 2020-07-10 Pedro Alves <pedro@palves.net>
6414
6415 PR gdb/26199
6416 * infrun.c (handle_no_resumed): Handle multiple targets.
6417
6418 2020-07-10 Pedro Alves <pedro@palves.net>
6419
6420 PR gdb/26199
6421 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6422 target_is_async_p.
6423
6424 2020-07-10 Pedro Alves <pedro@palves.net>
6425
6426 PR gdb/26199
6427 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6428 threads, not all threads.
6429
6430 2020-07-10 Pedro Alves <pedro@palves.net>
6431
6432 PR gdb/26199
6433 * remote.c (remote_target::open_1): Pass remote target pointer as
6434 data to create_async_event_handler.
6435 (remote_async_inferior_event_handler): Mark async event handler
6436 before returning if the remote target still has either pending
6437 events or unacknowledged notifications.
6438
6439 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6440
6441 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6442 declaration.
6443 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6444 function.
6445
6446 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6447
6448 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6449 inferior_ptid.
6450
6451 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6452
6453 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6454 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6455 AT_FREEBSD_PS_STRINGS.
6456
6457 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6458
6459 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6460 of debugfile path on Windows.
6461
6462 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6463
6464 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6465 argument to 'data'.
6466
6467 2020-07-08 Tom Tromey <tromey@adacore.com>
6468
6469 * ada-lang.c (ada_exception_message_1): Use read_memory.
6470
6471 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6472
6473 PR python/22748
6474 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6475 special handling for inline frames.
6476 * findvar.c (value_of_register_lazy): Skip inline frames when
6477 creating lazy register values.
6478 * frame.c (frame_id_computed_p): Delete definition.
6479 * frame.h (frame_id_computed_p): Delete declaration.
6480
6481 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * NEWS: Mention additions to Python API.
6484 * python/py-arch.c (archpy_register_groups): New function.
6485 (arch_object_methods): Add 'register_groups' method.
6486 * python/py-registers.c (reggroup_iterator_object): New struct.
6487 (reggroup_object): New struct.
6488 (gdbpy_new_reggroup): New function.
6489 (gdbpy_reggroup_to_string): New function.
6490 (gdbpy_reggroup_name): New function.
6491 (gdbpy_reggroup_iter): New function.
6492 (gdbpy_reggroup_iter_next): New function.
6493 (gdbpy_new_reggroup_iterator): New function
6494 (gdbpy_initialize_registers): Register new types.
6495 (reggroup_iterator_object_type): Define new Python type.
6496 (gdbpy_reggroup_getset): New static global.
6497 (reggroup_object_type): Define new Python type.
6498 * python/python-internal.h
6499
6500 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6503 * python/py-arch.c (archpy_registers): New function.
6504 (arch_object_methods): Add 'registers' method.
6505 * python/py-registers.c: New file.
6506 * python/python-internal.h
6507 (gdbpy_new_register_descriptor_iterator): Declare.
6508 (gdbpy_initialize_registers): Declare.
6509 * python/python.c (do_start_initialization): Call
6510 gdbpy_initialize_registers.
6511 * NEWS: Mention additions to the Python API.
6512
6513 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * NEWS: Mention new Python API method.
6516 * python/py-unwind.c (pending_framepy_architecture): New function.
6517 (pending_frame_object_methods): Add architecture method.
6518
6519 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * gdbarch.c: Regenerate.
6522 * gdbarch.h: Regenerate.
6523 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6524 (gdbarch_data): Use internal_error for the case where
6525 deprecated_set_gdbarch_data was originally needed.
6526 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6527 and use passed in obstack.
6528 (libunwind_frame_set_descr): Should no longer get back NULL from
6529 gdbarch_data.
6530 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6531 type.
6532 * user-regs.c (user_regs_init): Update parameters, and use passed
6533 in obstack.
6534 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6535 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6536
6537 2020-07-06 Tom de Vries <tdevries@suse.de>
6538
6539 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6540 End-Of-Sequence in lte_is_less_than.
6541 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6542 "gdb: Don't reorder line table entries too much when sorting".
6543
6544 2020-07-06 Tom de Vries <tdevries@suse.de>
6545
6546 PR tui/26205
6547 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6548
6549 2020-07-05 Tom de Vries <tdevries@suse.de>
6550
6551 PR build/26187
6552 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6553 std::uncaught_exceptions instead of deprecated
6554 std::uncaught_exception.
6555
6556 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6557
6558 * macroexp.h (macro_stringify): Return
6559 gdb::unique_xmalloc_ptr<char>.
6560 * macroexp.c (macro_stringify): Likewise.
6561 * macrotab.c (fixup_definition): Update.
6562
6563 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6566 (lex_one_token): Update.
6567 * macroexp.c (struct macro_buffer) <release>: Return
6568 gdb::unique_xmalloc_ptr<char>.
6569 (macro_stringify): Update.
6570 (macro_expand): Update.
6571 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6572 * macroexp.h (macro_expand_next): Likewise.
6573
6574 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * macroexp.h (macro_lookup_ftype): Remove.
6577 (macro_expand, macro_expand_once, macro_expand_next): Remove
6578 lookup function parameters, add scope parameter.
6579 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6580 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6581 * macroscope.h (standard_macro_lookup): Change parameter type
6582 to macro_scope.
6583 * macroscope.c (standard_macro_lookup): Likewise.
6584 * c-exp.y (lex_one_token): Update.
6585 * macrocmd.c (macro_expand_command): Likewise.
6586 (macro_expand_once_command): Likewise.
6587
6588 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * inf-loop.c (inferior_event_handler): Remove client_data param.
6591 * inf-loop.h (inferior_event_handler): Likewise.
6592 * infcmd.c (step_1): Adjust.
6593 * infrun.c (proceed): Adjust.
6594 (fetch_inferior_event): Remove client_data param.
6595 (infrun_async_inferior_event_handler): Adjust.
6596 * infrun.h (fetch_inferior_event): Remove `void *` param.
6597 * linux-nat.c (handle_target_event): Adjust.
6598 * record-btrace.c (record_btrace_handle_async_inferior_event):
6599 Adjust.
6600 * record-full.c (record_full_async_inferior_event_handler):
6601 Adjust.
6602 * remote.c (remote_async_inferior_event_handler): Adjust.
6603
6604 2020-07-01 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6607 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6608
6609 2020-07-01 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6612 tui_gen_win_info.
6613 (tui_win_info::make_window): Merge with
6614 tui_gen_win_info::make_window.
6615 (tui_win_info::make_visible): Move from tui_gen_win_info.
6616 * tui/tui-win.c (tui_win_info::max_width): Move from
6617 tui_gen_win_info.
6618 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6619 type.
6620 <window_factory>: Likewise.
6621 * tui/tui-layout.c (tui_win_info::resize): Move from
6622 tui_gen_win_info.
6623 (make_standard_window): Change return type.
6624 (get_locator_window, tui_get_window_by_name): Likewise.
6625 (tui_layout_window::apply): Remove a cast.
6626 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6627 (struct tui_win_info): Merge with tui_gen_win_info.
6628 (struct tui_gen_win_info): Remove.
6629
6630 2020-07-01 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-stack.h (struct tui_locator_window): Derive from
6633 tui_win_info.
6634 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6635 <can_box>: New method.
6636
6637 2020-07-01 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6640
6641 2020-07-01 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-regs.c (tui_data_window::display_registers_from)
6644 (tui_data_window::display_registers_from)
6645 (tui_data_window::first_data_item_displayed)
6646 (tui_data_window::delete_data_content_windows): Update.
6647 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6648 Remove.
6649 (tui_data_window::check_register_values): Update.
6650 (tui_data_item_window::rerender): Add parameters. Update.
6651 (tui_data_item_window::refresh_window): Remove.
6652 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6653 virtual.
6654 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6655 tui_gen_win_info.
6656 <refresh_window, max_height, min_height>: Remove.
6657 <rerender>: Add parameters.
6658 <x, y, visible>: New members.
6659 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6660 <m_item_width>: New member.
6661
6662 2020-07-01 Tom Tromey <tom@tromey.com>
6663
6664 * tui/tui-regs.c (tui_data_window::show_register_group)
6665 (tui_data_window::check_register_values): Update.
6666 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6667 from item_no.
6668
6669 2020-07-01 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6672 useless "if".
6673
6674 2020-07-01 Tom Tromey <tom@tromey.com>
6675
6676 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6677 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6678
6679 2020-07-01 Tom Tromey <tom@tromey.com>
6680
6681 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6682 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6683 (struct tui_line_or_address): Move from tui-data.h.
6684 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6685 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6686 (tui_cmd_window, tui_source_window_base, tui_source_window)
6687 (tui_disasm_window): Don't declare.
6688 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6689 to tui-winsource.h.
6690 (SINGLE_KEY): Move to tui-stack.c.
6691
6692 2020-07-01 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6695 std::string.
6696 * tui/tui-regs.c (class tab_expansion_file): New.
6697 (tab_expansion_file::write): New method.
6698 (tui_register_format): Change return type. Use
6699 tab_expansion_file.
6700 (tui_get_register, tui_data_window::display_registers_from)
6701 (tui_data_item_window::rerender): Update.
6702 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6703 * tui/tui-io.c (tui_expand_tabs): Remove.
6704
6705 2020-07-01 Tom Tromey <tom@tromey.com>
6706
6707 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6708
6709 2020-07-01 Fangrui Song <maskray@google.com>
6710
6711 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6712
6713 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6714
6715 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6716 forms for DW_AT_associated and DW_AT_allocated attributes,
6717 which is already checked in function attr_to_dynamic_prop.
6718
6719 2020-06-30 Tom Tromey <tromey@adacore.com>
6720
6721 * dwarf2/read.c (quirk_rust_enum): Correctly call
6722 alloc_rust_variant for default-less enum.
6723
6724 2020-06-30 Tom Tromey <tromey@adacore.com>
6725
6726 PR build/26183:
6727 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6728 gdb::to_string.
6729
6730 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6731
6732 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6733 * gdbarch.h: Re-generate.
6734
6735 2020-06-28 Tom Tromey <tom@tromey.com>
6736
6737 * command.h (cmd_types): Remove.
6738 (cmd_type): Don't declare.
6739 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6740 typedef.
6741 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6742 * cli/cli-decode.c (cmd_type): Remove.
6743
6744 2020-06-27 Pedro Alves <palves@redhat.com>
6745
6746 * fork-child.c (prefork_hook): Adjust.
6747 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6748 Delete.
6749 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6750 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6751 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6752 Remove declarations.
6753 (struct inferior) <set_tty, tty>: New methods.
6754 (struct inferior) <terminal>: Rename to ...
6755 (struct inferior) <m_terminal>: ... this and make private.
6756 * main.c (captured_main_1): Adjust.
6757 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6758 (mi_cmd_inferior_tty_show): Adjust.
6759 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6760 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6761
6762 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6763
6764 * configure.ac: Add --enable-libctf: handle --disable-static
6765 properly.
6766 * acinclude.m4: sinclude ../config/enable.m4.
6767 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6768 (LIBCTF): Substitute in.
6769 (CTF_DEPS): New, likewise.
6770 (CLIBS): libctf needs symbols from libbfd: move earlier.
6771 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6772 flags.
6773 * ctfread.c: Surround in ENABLE_LIBCTF.
6774 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6775 * configure: Regenerate.
6776 * config.in: Likewise.
6777
6778 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6781
6782 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * inferior.h (struct inferior) <terminal>: Change type to
6785 gdb::unique_xmalloc_ptr<char>.
6786 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6787 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6788 field, adjust to unique pointer.
6789 (get_inferior_io_terminal): Adjust to unique pointer.
6790
6791 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6794 registers, not just the known core set of registers.
6795
6796 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6797
6798 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6799 fflags, frm, and fcsr registers.
6800 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6801 restore groups.
6802 (riscv_tdesc_unknown_reg): New function.
6803 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6804 tdesc_use_registers.
6805 * riscv-tdep.h (struct gdbarch_tdep): Add
6806 unknown_csrs_first_regnum, unknown_csrs_count,
6807 duplicate_fflags_regnum, duplicate_frm_regnum, and
6808 duplicate_fcsr_regnum fields.
6809
6810 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6813 callback, use the callback (when not null) to help number unknown
6814 registers.
6815 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6816 (tdesc_use_registers): Add extra parameter to declaration.
6817
6818 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6819
6820 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6821 in the file.
6822 (class riscv_pending_register_alias): Likewise.
6823 (riscv_register_feature::register_info): Change 'required_p' field
6824 to 'required', and change its type. Add 'check' member function.
6825 (riscv_register_feature::register_info::check): Define new member
6826 function.
6827 (riscv_xreg_feature): Change initialisation of 'required' field.
6828 (riscv_freg_feature): Likewise.
6829 (riscv_virtual_feature): Likewise.
6830 (riscv_csr_feature): Likewise.
6831 (riscv_check_tdesc_feature): Take extra parameter, the csr
6832 tdesc_feature, rewrite the function to use the new
6833 riscv_register_feature::register_info::check function.
6834 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6835
6836 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * features/Makefile: Remove all references to the deleted files
6839 below.
6840 * features/riscv/32bit-csr.c: Deleted.
6841 * features/riscv/32bit-csr.xml: Deleted.
6842 * features/riscv/64bit-csr.c: Deleted.
6843 * features/riscv/64bit-csr.xml: Deleted.
6844 * features/riscv/rebuild-csr-xml.sh: Deleted.
6845
6846 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6847
6848 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6849 whitespace error for declaration of names member variable.
6850 (struct riscv_register_feature): Add new prefer_first_name member
6851 variable, and fix whitespace error in declaration of registers.
6852 (riscv_xreg_feature): Initialize prefer_first_name field.
6853 (riscv_freg_feature): Likewise.
6854 (riscv_virtual_feature): Likewise.
6855 (riscv_csr_feature): Likewise.
6856 (riscv_register_name): Expand on comments. Remove register name
6857 modifications for CSR and virtual registers.
6858
6859 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6862 errors.
6863
6864 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6867 riscv-opc.h.
6868 (class riscv_pending_register_alias): New class.
6869 (riscv_check_tdesc_feature): Take vector of pending aliases and
6870 populate it as appropriate.
6871 (riscv_setup_register_aliases): Delete.
6872 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6873 to riscv_check_tdesc_feature in all cases. Use the vector to
6874 create the register aliases.
6875
6876 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6877
6878 * sol2-tdep.c (sol2_static_transform_name): Remove.
6879 (sol2_init_abi): Don't register it.
6880 * gdbarch.sh (static_transform_name): Remove.
6881 * gdbarch.c, gdbarch.h: Regenerate.
6882
6883 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6884 gdbarch_static_transform_name.
6885 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6886 * stabsread.c (define_symbol) <'X'>: Remove.
6887 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6888 handling.
6889 <'V'>: Likewise.
6890 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6891 <'S'>: Remove call to gdbarch_static_transform_name.
6892
6893 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6894
6895 * procfs.c (procfs_pre_trace): New function.
6896 (procfs_target::create_inferior): Pass it to fork_inferior.
6897
6898 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6899
6900 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6901 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6902 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6903 sol2-tdep.o, sparc-sol2-tdep.o.
6904 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6905 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6906 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6907 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6908
6909 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6910
6911 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6912 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6913 Call sol2_init_abi.
6914 Remove calls to set_gdbarch_skip_solib_resolver,
6915 set_gdbarch_core_pid_to_str.
6916 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6917 (i386_sol2_static_transform_name): Remove.
6918 (i386_sol2_init_abi): Call sol2_init_abi.
6919 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6920 set_gdbarch_static_transform_name,
6921 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6922 Use sol2_sigtramp_p.
6923 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6924 (sol2_sigtramp_p): New function.
6925 (sol2_static_transform_name): New function.
6926 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6927 (sol2_init_abi): New function.
6928 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6929 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6930 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6931 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6932 (sparc_sol2_static_transform_name): Remove.
6933 (sparc32_sol2_init_abi): Call sol2_init_abi.
6934 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6935 set_gdbarch_static_transform_name,
6936 set_gdbarch_skip_solib_resolver,
6937 set_gdbarch_core_pid_to_str.
6938 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6939 (sparc_sol2_static_transform_name): Remove
6940 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6941 call sol2_sigtramp_p.
6942 (sparc64_sol2_init_abi): Call sol2_init_abi.
6943 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6944 set_gdbarch_static_transform_name,
6945 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6946
6947 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6950 * exec.c (validate_exec_file): If from_tty, set both
6951 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6952 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6953 and from_tty, unconditionally ask a confirmation.
6954
6955 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * target-descriptions.c (tdesc_architecture_name): Protect against
6958 NULL pointer dereference.
6959 (maint_print_xml_tdesc_cmd): New function.
6960 (_initialize_target_descriptions): Register new 'maint print
6961 xml-tdesc' command and give it the filename completer.
6962 * NEWS: Mention new 'maint print xml-tdesc' command.
6963
6964 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6965
6966 * target-descriptions.c (class tdesc_compatible_info): New class.
6967 (struct target_desc): Change type of compatible vector.
6968 (tdesc_compatible_p): Update for change in type of
6969 target_desc::compatible.
6970 (tdesc_compatible_info_list): New function.
6971 (tdesc_compatible_info_arch_name): New function.
6972 (tdesc_add_compatible): Update for change in type of
6973 target_desc::compatible.
6974 (print_c_tdesc::visit_pre): Likewise.
6975
6976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6979 whitespace to underscore.
6980 (maint_print_c_tdesc_cmd): Use fake filename for target
6981 descriptions that came from the target.
6982 (_initialize_target_descriptions): Add filename command completion
6983 for 'maint print c-tdesc'.
6984
6985 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6988 lines.
6989
6990 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6993 lines.
6994 (dwarf2_find_location_expression): Likewise.
6995 (call_site_parameter_matches): Likewise.
6996 (dwarf2_compile_expr_to_ax): Likewise.
6997 (disassemble_dwarf_expression): Likewise.
6998 (loclist_describe_location): Likewise.
6999
7000 2020-06-23 Pedro Alves <palves@redhat.com>
7001
7002 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7003 progspace-and-thread.h. Include scoped-mock-context.h instead.
7004 (register_to_value_test): Use scoped_mock_context.
7005 * regcache.c: Include "scoped-mock-context.h".
7006 (cooked_read_test): Don't error out if a target is already pushed.
7007 Use scoped_mock_context. Adjust.
7008 * scoped-mock-context.h: New file.
7009
7010 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7013 initializer.
7014 (ada_language::is_string_type_p): New member function.
7015 * c-lang.c (c_language_data): Delete la_is_string_type_p
7016 initializer.
7017 (cplus_language_data): Likewise.
7018 (asm_language_data): Likewise.
7019 (minimal_language_data): Likewise.
7020 * d-lang.c (d_language_data): Likewise.
7021 * f-lang.c (f_is_string_type_p): Delete function, implementation
7022 moved to f_language::is_string_type_p.
7023 (f_language_data): Delete la_is_string_type_p initializer.
7024 (f_language::is_string_type_p): New member function,
7025 implementation from f_is_string_type_p.
7026 * go-lang.c (go_is_string_type_p): Delete function, implementation
7027 moved to go_language::is_string_type_p.
7028 (go_language_data): Delete la_is_string_type_p initializer.
7029 (go_language::is_string_type_p): New member function,
7030 implementation from go_is_string_type_p.
7031 * language.c (language_defn::is_string_type_p): Define new member
7032 function.
7033 (default_is_string_type_p): Make static, add comment copied from
7034 header file.
7035 (unknown_language_data): Delete la_is_string_type_p initializer.
7036 (unknown_language::is_string_type_p): New member function.
7037 (auto_language_data): Delete la_is_string_type_p initializer.
7038 (auto_language::is_string_type_p): New member function.
7039 * language.h (language_data): Delete la_is_string_type_p field.
7040 (language_defn::is_string_type_p): Declare new function.
7041 (default_is_string_type_p): Delete desclaration, move comment to
7042 definition.
7043 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7044 moved to m2_language::is_string_type_p.
7045 (m2_language_data): Delete la_is_string_type_p initializer.
7046 (m2_language::is_string_type_p): New member function,
7047 implementation from m2_is_string_type_p.
7048 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7049 initializer.
7050 * opencl-lang.c (opencl_language_data): Likewise.
7051 * p-lang.c (pascal_is_string_type_p): Delete function,
7052 implementation moved to pascal_language::is_string_type_p.
7053 (pascal_language_data): Delete la_is_string_type_p initializer.
7054 (pascal_language::is_string_type_p): New member function,
7055 implementation from pascal_is_string_type_p.
7056 * rust-lang.c (rust_is_string_type_p): Delete function,
7057 implementation moved to rust_language::is_string_type_p.
7058 (rust_language_data): Delete la_is_string_type_p initializer.
7059 (rust_language::is_string_type_p): New member function,
7060 implementation from rust_is_string_type_p.
7061 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7062 is_string_type_p.
7063
7064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * ada-lang.c (ada_language_data): Delete la_print_typedef
7067 initializer.
7068 (ada_language::print_typedef): New member function.
7069 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7070 (cplus_language_data): Likewise.
7071 (asm_language_data): Likewise.
7072 (minimal_language_data): Likewise.
7073 * d-lang.c (d_language_data): Likewise.
7074 * f-lang.c (f_language_data): Likewise.
7075 (f_language::print_typedef): New member function.
7076 * go-lang.c (go_language_data): Delete la_print_typedef
7077 initializer.
7078 * language.c (language_defn::print_typedef): Define member
7079 function.
7080 (unknown_language_data): Delete la_print_typedef initializer.
7081 (unknown_language::print_typedef): New member function.
7082 (auto_language_data): Delete la_print_typedef initializer.
7083 (auto_language::print_typedef): New member function.
7084 * language.h (language_data): Delete la_print_typedef field.
7085 (language_defn::print_typedef): Declare new member function.
7086 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7087 (default_print_typedef): Delete declaration.
7088 * m2-lang.c (m2_language_data): Delete la_print_typedef
7089 initializer.
7090 (m2_language::print_typedef): New member function.
7091 * objc-lang.c (objc_language_data): Delete la_print_typedef
7092 initializer.
7093 * opencl-lang.c (opencl_language_data): Likewise.
7094 * p-lang.c (pascal_language_data): Likewise.
7095 (pascal_language::print_typedef): New member function.
7096 * rust-lang.c (rust_print_typedef): Delete function,
7097 implementation moved to rust_language::print_typedef.
7098 (rust_language): Delete la_print_typedef initializer.
7099 (rust_language::print_typedef): New member function,
7100 implementation from rust_print_typedef.
7101 * typeprint.c (default_print_typedef): Delete.
7102
7103 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7104
7105 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7106 (ada_language::printstr): New member function.
7107 * c-lang.c (c_language_data): Delete la_printstr initializer.
7108 (cplus_language_data): Likewise.
7109 (asm_language_data): Likewise.
7110 (minimal_language_data): Likewise.
7111 * d-lang.c (d_language_data): Likewise.
7112 * f-lang.c (f_printstr): Rename to f_language::printstr.
7113 (f_language_data): Delete la_printstr initializer.
7114 (f_language::printstr): New member function, implementation from
7115 f_printstr.
7116 * go-lang.c (go_language_data): Delete la_printstr initializer.
7117 * language.c (language_defn::printstr): Define new member
7118 function.
7119 (unk_lang_printstr): Delete.
7120 (unknown_language_data): Delete la_printstr initializer.
7121 (unknown_language::printstr): New member function.
7122 (auto_language_data): Delete la_printstr initializer.
7123 (auto_language::printstr): New member function.
7124 * language.h (language_data): Delete la_printstr field.
7125 (language_defn::printstr): Declare new member function.
7126 (LA_PRINT_STRING): Update call to printstr.
7127 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7128 (m2_language_data): Delete la_printstr initializer.
7129 (m2_language::printstr): New member function, implementation from
7130 m2_printstr.
7131 * objc-lang.c (objc_language_data): Delete la_printstr
7132 initializer.
7133 * opencl-lang.c (opencl_language_data): Likewise.
7134 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7135 (pascal_language_data): Delete la_printstr initializer.
7136 (pascal_language::printstr): New member function, implementation
7137 from pascal_printstr.
7138 * p-lang.h (pascal_printstr): Delete declaration.
7139 * rust-lang.c (rust_printstr): Update header comment.
7140 (rust_language_data): Delete la_printstr initializer.
7141 (rust_language::printstr): New member function.
7142
7143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7146 (ada_language::printchar): New member function.
7147 * c-lang.c (c_language_data): Delete la_printchar initializer.
7148 (cplus_language_data): Likewise.
7149 (asm_language_data): Likewise.
7150 (minimal_language_data): Likewise.
7151 * d-lang.c (d_language_data): Likewise.
7152 * f-lang.c (f_printchar): Rename to f_language::printchar.
7153 (f_language_data): Delete la_printchar initializer.
7154 (f_language::printchar): New member function, implementation from
7155 f_printchar.
7156 * go-lang.c (go_language_data): Delete la_printchar initializer.
7157 * language.c (unk_lang_printchar): Delete.
7158 (language_defn::printchar): Define new member function.
7159 (unknown_language_data): Delete la_printchar initializer.
7160 (unknown_language::printchar): New member function.
7161 (auto_language_data): Delete la_printchar initializer.
7162 (auto_language::printchar): New member function.
7163 * language.h (language_data): Delete la_printchar field.
7164 (language_defn::printchar): Declare new member function.
7165 (LA_PRINT_CHAR): Update call to printchar.
7166 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7167 (m2_language::printchar): New member function.
7168 * objc-lang.c (objc_language_data): Delete la_printchar
7169 initializer.
7170 * opencl-lang.c (opencl_language_data): Likewise.
7171 * p-lang.c (pascal_language_data): Delete la_printchar
7172 initializer.
7173 (pascal_language::printchar): New member function.
7174 * rust-lang.c (rust_printchar): Rename to
7175 rust_language::printchar.
7176 (rust_language_data): Delete la_printchar initializer.
7177 (rust_language::printchar): New member function, implementation
7178 from rust_printchar.
7179
7180 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7183 (ada_language_data): Delete la_emitchar initializer.
7184 (ada_language::emitchar): New member function, implementation from
7185 emit_char.
7186 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7187 (cplus_language_data): Likewise.
7188 (asm_language_data): Likewise.
7189 (minimal_language_data): Likewise.
7190 * d-lang.c (d_language_data): Likewise.
7191 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7192 (f_language_data): Delete la_emitchar initializer.
7193 (f_language::emitchar): New member function, implementation from
7194 f_emit_char.
7195 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7196 * language.c (unk_lang_emit_char): Delete.
7197 (language_defn::emitchar): New member function definition.
7198 (unknown_language_data): Delete la_emitchar initializer.
7199 (unknown_language::emitchar): New member function.
7200 (auto_language_data): Delete la_emitchar initializer.
7201 (auto_language::emitchar): New member function.
7202 * language.h (language_data): Delete la_emitchar field.
7203 (language_defn::emitchar): New member field declaration.
7204 (LA_EMIT_CHAR): Update call to emitchar.
7205 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7206 (m2_language_data): Delete la_emitchar initializer.
7207 (m2_language::emitchar): New member function, implementation from
7208 m2_emit_char.
7209 * objc-lang.c (objc_language_data): Delete la_emitchar
7210 initializer.
7211 * opencl-lang.c (opencl_language_data): Likewise.
7212 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7213 (pascal_language_data): Delete la_emitchar initializer.
7214 (pascal_language::emitchar): New member function, implementation
7215 from pascal_emit_char.
7216 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7217 (rust_language_data): Delete la_emitchar initializer.
7218 (rust_language::emitchar): New member function, implementation
7219 from rust_emitchar.
7220
7221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7224 (ada_language_data): Delete la_post_parser initializer.
7225 (ada_language::post_parser): New member function.
7226 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7227 (cplus_language_data): Likewise.
7228 (asm_language_data): Likewise.
7229 (minimal_language_data): Likewise.
7230 * d-lang.c (d_language_data): Likewise.
7231 * f-lang.c (f_language_data): Likewise.
7232 * go-lang.c (go_language_data): Likewise.
7233 * language.c (unknown_language_data): Likewise.
7234 (auto_language_data): Likewise.
7235 * language.h (language_data): Delete la_post_parser field.
7236 (language_defn::post_parser): New member function.
7237 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7238 * objc-lang.c (objc_language_data): Likewise.
7239 * opencl-lang.c (opencl_language_data): Likewise.
7240 * p-lang.c (pascal_language_data): Likewise.
7241 * parse.c (parse_exp_in_context): Update call to post_parser.
7242 (null_post_parser): Delete definition.
7243 * parser-defs.h (null_post_parser): Delete declaration.
7244 * rust-lang.c (rust_language_data): Delete la_post_parser
7245 initializer.
7246
7247 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7248
7249 * ada-lang.c (parse): Rename to ada_language::parser.
7250 (ada_language_data): Delete la_parser initializer.
7251 (ada_language::parser): New member function, implementation from
7252 parse.
7253 * c-lang.c (c_language_data): Delete la_parser initializer.
7254 (cplus_language_data): Likewise.
7255 (asm_language_data): Likewise.
7256 (minimal_language_data): Likewise.
7257 * d-lang.c (d_language_data): Likewise.
7258 (d_language::parser): New member function.
7259 * f-lang.c (f_language_data): Delete la_parser initializer.
7260 (f_language::parser): New member function.
7261 * go-lang.c (go_language_data): Delete la_parser initializer.
7262 (go_language::parser): New member function.
7263 * language.c (unk_lang_parser): Delete.
7264 (language_defn::parser): Define new member function.
7265 (unknown_language_data): Delete la_parser initializer.
7266 (unknown_language::parser): New member function.
7267 (auto_language_data): Delete la_parser initializer.
7268 (auto_language::parser): New member function.
7269 * language.h (language_data): Delete la_parser field.
7270 (language_defn::parser): Declare new member function.
7271 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7272 (m2_language::parser): New member function.
7273 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7274 * opencl-lang.c (opencl_language_data): Likewise.
7275 * p-lang.c (pascal_language_data): Likewise.
7276 (pascal_language::parser): New member function.
7277 * parse.c (parse_exp_in_context): Update call to parser.
7278 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7279 (rust_language::parser): New member function.
7280
7281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * top.c (print_gdb_configuration): Print --with-python-libdir
7284 configuration value.
7285
7286 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7287
7288 * NEWS: Mention change to the alias command.
7289
7290 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7291
7292 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7293 (alias_command_completer)
7294 (make_alias_options_def_group): New functions.
7295 (alias_opts, alias_option_defs): New struct and array.
7296 (alias_usage_error): Update usage.
7297 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7298 Use option framework.
7299 (_initialize_cli_cmds): Update alias command help.
7300 Update aliases command help.
7301 (show_user):
7302 Add NULL for new default_args lookup_cmd argument.
7303 (valid_command_p): Rename to validate_aliased_command.
7304 Add NULL for new default_args lookup_cmd argument. Verify that the
7305 aliased_command has no default args.
7306 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7307 (lookup_cmd_1, lookup_cmd): New argument default_args.
7308 (add_alias_cmd):
7309 Add NULL for new default_args lookup_cmd argument.
7310 (print_help_for_command): Show default args under the layout
7311 alias some_alias = some_aliased_cmd some_alias_default_arg.
7312 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7313 xfree default_args in destructor.
7314 * cli/cli-script.c (process_next_line, do_define_command):
7315 Add NULL for new default_args lookup_cmd argument.
7316 * command.h: Declare new default_args argument in lookup_cmd
7317 and lookup_cmd_1.
7318 * completer.c (complete_line_internal_1):
7319 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7320 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7321 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7322 Likewise.
7323 * infcmd.c (_initialize_infcmd): Likewise.
7324 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7325 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7326 * python/py-param.c (add_setshow_generic): Likewise.
7327 * remote.c (_initialize_remote): Likewise.
7328 * top.c (execute_command): Prepend default_args if command has some.
7329 (set_verbose):
7330 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7331 * tracepoint.c (validate_actionline, encode_actions_1):
7332 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7333
7334 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7335
7336 * jit.c (jit_read_descriptor): Use bool as the return type.
7337 (jit_breakpoint_re_set_internal): Use bool as the return type.
7338 Invert the return value logic; return true if the jit breakpoint
7339 has been successfully initialized.
7340 (jit_inferior_init): Update the call to
7341 jit_breakpoint_re_set_internal.
7342
7343 2020-06-22 Pedro Alves <palves@redhat.com>
7344
7345 PR gdb/25939
7346 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7347 Use the current inferior instead. Don't return
7348 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7349 wait again.
7350 * sol-thread.c (sol_thread_target::wait): Don't reference
7351 inferior_ptid.
7352 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7353 (sol_update_thread_list_callback): Use the current inferior's pid
7354 instead of inferior_ptid.
7355
7356 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7357
7358 * procfs.c: Cleanup many comments.
7359
7360 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7361 (AFTER_WATCHFLAG): Replace by value.
7362
7363 (MAIN_PROC_NAME_FORMAT): Inline ...
7364 (create_procinfo): ... here.
7365
7366 (procfs_debug_inferior): Remove SYS_exec handling.
7367 (syscall_is_exec): Likewise.
7368 (procfs_set_exec_trap): Likewise.
7369
7370 (syscall_is_lwp_exit): Inline in callers.
7371 (syscall_is_exit): Likewise.
7372 (syscall_is_exec): Likewise.
7373 (syscall_is_lwp_create): Likewise.
7374
7375 (invalidate_cache): Remove #if 0 code.
7376
7377 (make_signal_thread_runnable): Remove.
7378 (procfs_target::resume): Remove #if 0 code.
7379
7380 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7381
7382 PR gdb/25939
7383 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7384 call ...
7385 (procfs_target::create_inferior): ... here.
7386
7387 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7388
7389 * exec.c (validate_exec_file): Ensure the build-id is up to
7390 date by calling reopen_exec_file (that checks file timestamp
7391 to decide to re-read the file).
7392
7393 2020-06-18 Pedro Alves <palves@redhat.com>
7394
7395 PR gdb/25412
7396 * gdbthread.h (delete_thread, delete_thread_silent)
7397 (find_thread_ptid): Update comments.
7398 * thread.c (current_thread_): New global.
7399 (is_current_thread): Move higher, and reimplement.
7400 (inferior_thread): Reimplement.
7401 (set_thread_exited): Use bool. Add assertions.
7402 (add_thread_silent): Simplify thread-reuse handling by always
7403 calling delete_thread.
7404 (delete_thread): Remove intro comment.
7405 (find_thread_ptid): Skip exited threads.
7406 (switch_to_thread_no_regs): Write to current_thread_.
7407 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7408 INFERIOR_PTID. Clear current_thread_.
7409
7410 2020-06-18 Pedro Alves <palves@redhat.com>
7411
7412 * aix-thread.c (pd_update): Use switch_to_thread.
7413
7414 2020-06-18 Pedro Alves <palves@redhat.com>
7415
7416 * ravenscar-thread.c (ravenscar_thread_target): Update.
7417 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7418 (ravenscar_thread_target::add_active_thread): ... this. Don't
7419 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7420 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7421
7422 2020-06-18 Pedro Alves <palves@redhat.com>
7423
7424 * nat/windows-nat.c (current_windows_thread): Remove.
7425 * nat/windows-nat.h (current_windows_thread): Remove.
7426 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7427 Adjust.
7428 (display_selectors): Adjust to fetch the current
7429 windows_thread_info based on inferior_ptid.
7430 (fake_create_process): No longer write to current_windows_thread.
7431 (windows_nat_target::get_windows_debug_event):
7432 Don't set inferior_ptid or current_windows_thread.
7433 (windows_nat_target::wait): Adjust to not rely on
7434 current_windows_thread.
7435 (do_initial_windows_stuff): Now a method of windows_nat_target.
7436 Switch to the last_ptid thread.
7437 (windows_nat_target::attach): Adjust.
7438 (windows_nat_target::detach): Use switch_to_no_thread instead of
7439 writing to inferior_ptid directly.
7440 (windows_nat_target::create_inferior): Adjust.
7441
7442 2020-06-18 Pedro Alves <palves@redhat.com>
7443
7444 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7445
7446 2020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7449 after creating it, instead of writing to inferior_ptid. Don't
7450 write to inferior_ptid.
7451
7452 2020-06-18 Pedro Alves <palves@redhat.com>
7453
7454 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7455
7456 2020-06-18 Pedro Alves <palves@redhat.com>
7457
7458 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7459 it, instead of writing to inferior_ptid.
7460
7461 2020-06-18 Pedro Alves <palves@redhat.com>
7462
7463 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7464 to inferior_ptid.
7465
7466 2020-06-18 Pedro Alves <palves@redhat.com>
7467
7468 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7469 instead of writing to inferior_ptid directly.
7470
7471 2020-06-18 Pedro Alves <palves@redhat.com>
7472
7473 * corelow.c (core_target::close): Use switch_to_no_thread instead
7474 of writing to inferior_ptid directly.
7475 (add_to_thread_list, core_target_open): Use switch_to_thread
7476 instead of writing to inferior_ptid directly.
7477
7478 2020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7481 inferior_ptid.
7482 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7483 inferior_ptid.
7484 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7485 inferior_ptid directly.
7486 (darwin_nat_target::init_thread_list): Switch to thread, instead
7487 of writing to inferior_ptid.
7488 (darwin_nat_target::attach): Don't write to inferior_ptid.
7489 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7490
7491 2020-06-18 Pedro Alves <palves@redhat.com>
7492
7493 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7494 thread.
7495 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7496 Instead use switch_to_thread.
7497 (gnu_nat_target::detach): Use switch_to_no_thread
7498 instead of writing to inferior_ptid directly. Used passed-in
7499 inferior instead of looking up the inferior by pid.
7500
7501 2020-06-18 Pedro Alves <palves@redhat.com>
7502
7503 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7504 inferior_ptid.
7505
7506 2020-06-18 Pedro Alves <palves@redhat.com>
7507
7508 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7509 inferior_ptid.
7510 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7511 thread.
7512 (nto_procfs_target::detach): Avoid referencing
7513 inferior_ptid. Use switch_to_no_thread instead of writing to
7514 inferior_ptid directly.
7515 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7516 instead of writing to inferior_ptid directly.
7517 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7518 to thread.
7519
7520 2020-06-18 Pedro Alves <palves@redhat.com>
7521
7522 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7523 after creating it, instead of writing to inferior_ptid.
7524 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7525 to inferior_ptid directly.
7526 (gdbsim_target::wait): Don't write to inferior_ptid.
7527
7528 2020-06-18 Pedro Alves <palves@redhat.com>
7529
7530 * remote.c (remote_target::remote_notice_new_inferior): Use
7531 switch_to_thread instead of writing to inferior_ptid directly.
7532 (remote_target::add_current_inferior_and_thread): Use
7533 switch_to_no_thread instead of writing to inferior_ptid directly.
7534 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7535 and switch_to_thread instead of using set_current_inferior or
7536 writing to inferior_ptid directly.
7537
7538 2020-06-18 Pedro Alves <palves@redhat.com>
7539
7540 * tracectf.c (ctf_target_open): Switch to added thread instead of
7541 writing to inferior_ptid directly.
7542 (ctf_target::close): Use switch_to_no_thread instead of writing to
7543 inferior_ptid directly.
7544
7545 2020-06-18 Pedro Alves <palves@redhat.com>
7546
7547 * tracefile-tfile.c (tfile_target_open): Don't write to
7548 inferior_ptid directly, instead switch to added thread.
7549 (tfile_target::close): Use switch_to_no_thread instead of writing
7550 to inferior_ptid directly.
7551
7552 2020-06-18 Pedro Alves <palves@redhat.com>
7553
7554 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7555 (procfs_target::detach): Use switch_to_no_thread
7556 instead of writing to inferior_ptid directly.
7557 (do_attach): Change return type to void. Switch to the added
7558 thread.
7559 (procfs_target::create_inferior): Switch to the added thread.
7560 (procfs_do_thread_registers): Don't write to inferior_ptid.
7561
7562 2020-06-18 Pedro Alves <palves@redhat.com>
7563
7564 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7565 of writing to inferior_ptid.
7566 (scoped_restore_exited_inferior): Delete.
7567 (handle_vfork_child_exec_or_exit): Simplify using
7568 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7569 instead of writing to inferior_ptid.
7570 (THREAD_STOPPED_BY): Delete.
7571 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7572 (thread_stopped_by_hw_breakpoint): Delete.
7573 (save_waitstatus): Use
7574 scoped_restore_current_thread+switch_to_thread, and call
7575 target_stopped_by_watchpoint instead of
7576 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7577 instead of thread_stopped_by_sw_breakpoint, and
7578 target_stopped_by_hw_breakpoint instead of
7579 thread_stopped_by_hw_breakpoint.
7580 (handle_inferior_event)
7581 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7582 inferior_ptid directly, nor
7583 set_current_inferior/set_current_program_space. Use
7584 switch_to_thread / switch_to_inferior_no_thread instead.
7585
7586 2020-06-18 Pedro Alves <palves@redhat.com>
7587
7588 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7589 instead of writing to inferior_ptid.
7590
7591 2020-06-18 Pedro Alves <palves@redhat.com>
7592
7593 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7594 added thread.
7595 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7596 to the added thread.
7597 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7598 instead of writing to inferior_ptid.
7599
7600 2020-06-18 Pedro Alves <palves@redhat.com>
7601
7602 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7603 (register_to_value_test): Mock a program_space too. Heap-allocate
7604 the address space. Don't write to inferior_ptid. Use
7605 switch_to_thread instead.
7606
7607 2020-06-18 Pedro Alves <palves@redhat.com>
7608
7609 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7610 Delete.
7611 (find_signalled_thread()): New, factored out from
7612 linux_make_corefile_notes and adjusted to handle exited threads.
7613 (linux_make_corefile_notes): Adjust to use the new
7614 find_signalled_thread.
7615
7616 2020-06-18 Pedro Alves <palves@redhat.com>
7617
7618 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7619 of saving/restoring inferior_ptid.
7620
7621 2020-06-17 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7624 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7625 declare.
7626 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7627
7628 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7631 of partial symtabs.
7632
7633 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * regformats/reg-arm.dat: Remove.
7636 * regformats/reg-bfin.dat: Remove.
7637 * regformats/reg-cris.dat: Remove.
7638 * regformats/reg-crisv32.dat: Remove.
7639 * regformats/reg-m32r.dat: Remove.
7640 * regformats/reg-tilegx.dat: Remove.
7641 * regformats/reg-tilegx32.dat: Remove.
7642
7643 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * features/Makefile (WHICH): Remove arm files.
7646 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7647 * regformats/arm/arm-with-neon.dat: Remove.
7648 * regformats/arm/arm-with-vfpv2.dat: Remove.
7649 * regformats/arm/arm-with-vfpv3.dat: Remove.
7650
7651 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * features/Makefile (XMLTOC): Remove rx.xml.
7654
7655 2020-06-17 Pedro Alves <palves@redhat.com>
7656
7657 * gdbthread.h (thread_control_state) <trap_expected> Update
7658 comments.
7659
7660 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7663 ada_language::lookup_symbol_nonlocal.
7664 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7665 (ada_language::lookup_symbol_nonlocal): New member function,
7666 implementation from ada_lookup_symbol_nonlocal.
7667 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7668 initializer.
7669 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7670 initializer.
7671 (cplus_language::lookup_symbol_nonlocal): New member function.
7672 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7673 (minimal_language_data) Likewise.
7674 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7675 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7676 initializer.
7677 (d_language::lookup_symbol_nonlocal): New member function.
7678 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7679 initializer.
7680 (f_language::lookup_symbol_nonlocal): New member function.
7681 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7682 initializer.
7683 * language.c (unknown_language_data): Likewise.
7684 (auto_language_data): Likewise.
7685 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7686 field.
7687 (language_defn::lookup_symbol_nonlocal): New member function.
7688 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7689 initializer.
7690 * objc-lang.c (objc_language_data): Likewise.
7691 * opencl-lang.c (opencl_language_data): Likewise.
7692 * p-lang.c (pascal_language_data): Likewise.
7693 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7694 rust_language::lookup_symbol_nonlocal.
7695 (rust_language_data): Delete la_lookup_symbol_nonlocal
7696 initializer.
7697 (rust_language::lookup_symbol_nonlocal): New member function,
7698 implementation from rust_lookup_symbol_nonlocal.
7699 * symtab.c (lookup_symbol_aux): Update call to
7700 lookup_symbol_nonlocal.
7701 (basic_lookup_symbol_nonlocal): Rename to...
7702 (language_defn::lookup_symbol_nonlocal): ...this, and update
7703 header comment. Remove language_defn parameter, and replace with
7704 uses of `this'.
7705 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7706
7707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7710 initializer.
7711 (ada_language::value_print_inner): New member function.
7712 * c-lang.c (c_language_data): Delete la_value_print_inner
7713 initializer.
7714 (cplus_language_data): Likewise.
7715 (asm_language_data): Likewise.
7716 (minimal_language_data): Likewise.
7717 * d-lang.c (d_language_data): Likewise.
7718 (d_language::value_print_inner): New member function.
7719 * f-lang.c (f_language_data): Delete la_value_print_inner
7720 initializer.
7721 (f_language::value_print_inner): New member function.
7722 * f-lang.h (f_value_print_innner): Rename to...
7723 (f_value_print_inner): ...this (note spelling of 'inner').
7724 * f-valprint.c (f_value_print_innner): Rename to...
7725 (f_value_print_inner): ...this (note spelling of 'inner').
7726 * go-lang.c (go_language_data): Delete la_value_print_inner
7727 initializer.
7728 (go_language::value_print_inner): New member function.
7729 * language.c (language_defn::value_print_inner): Define new member
7730 function.
7731 (unk_lang_value_print_inner): Delete.
7732 (unknown_language_data): Delete la_value_print_inner initializer.
7733 (unknown_language::value_print_inner): New member function.
7734 (auto_language_data): Delete la_value_print_inner initializer.
7735 (auto_language::value_print_inner): New member function.
7736 * language.h (language_data): Delete la_value_print_inner field.
7737 (language_defn::value_print_inner): Delcare new member function.
7738 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7739 initializer.
7740 (m2_language::value_print_inner): New member function.
7741 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7742 initializer.
7743 * opencl-lang.c (opencl_language_data): Likewise.
7744 * p-lang.c (pascal_language_data): Likewise.
7745 (pascal_language::value_print_inner): New member function.
7746 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7747 initializer.
7748 (rust_language::value_print_inner): New member function.
7749 * valprint.c (do_val_print): Update call to value_print_inner.
7750
7751 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * ada-lang.c (ada_language_data): Delete la_value_print
7754 initializer.
7755 (ada_language::value_print): New member function.
7756 * c-lang.c (c_language_data): Delete la_value_print initializer.
7757 (cplus_language_data): Likewise.
7758 (asm_language_data): Likewise.
7759 (minimal_language_data): Likewise.
7760 * d-lang.c (d_language_data): Likewise.
7761 * f-lang.c (f_language_data): Likewise.
7762 * go-lang.c (go_language_data): Likewise.
7763 * language.c (unk_lang_value_print): Delete.
7764 (language_defn::value_print): Define new member function.
7765 (unknown_language_data): Delete la_value_print initializer.
7766 (unknown_language::value_print): New member function.
7767 (auto_language_data): Delete la_value_print initializer.
7768 (auto_language::value_print): New member function.
7769 * language.h (language_data): Delete la_value_print field.
7770 (language_defn::value_print): Declare new member function.
7771 (LA_VALUE_PRINT): Update call to value_print.
7772 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7773 * objc-lang.c (objc_language_data): Likewise.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_language_data): Likewise.
7776 (pascal_language::value_print): New member function.
7777 * rust-lang.c (rust_language_data): Delete la_value_print
7778 initializer.
7779
7780 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * ada-lang.c (ada_watch_location_expression): Rename to
7783 ada_language::watch_location_expression.
7784 (ada_language_data): Delete la_watch_location_expression
7785 initializer.
7786 (ada_language::watch_location_expression): New member function,
7787 implementation from ada_watch_location_expression.
7788 * breakpoint.c (watch_command_1): Update call to
7789 watch_location_expression.
7790 * c-lang.c (c_watch_location_expression): Rename to
7791 language_defn::watch_location_expression.
7792 (c_language_data): Delete la_watch_location_expression
7793 initializer.
7794 (cplus_language_data): Likewise.
7795 (asm_language_data): Likewise.
7796 (minimal_language_data): Likewise.
7797 * c-lang.h (c_watch_location_expression): Delete declaration.
7798 * d-lang.c (d_language_data): Delete la_watch_location_expression
7799 initializer.
7800 * f-lang.c (f_language_data): Likewise.
7801 * go-lang.c (go_language_data): Likewise.
7802 * language.c (language_defn::watch_location_expression): Member
7803 function implementation from c_watch_location_expression.
7804 (unknown_language_data): Delete la_watch_location_expression
7805 initializer.
7806 (auto_language_data): Likewise.
7807 * language.h (language_data): Delete la_watch_location_expression
7808 field.
7809 (language_defn::watch_location_expression): Declare new member
7810 function.
7811 * m2-lang.c (m2_language_data): Delete
7812 la_watch_location_expression initializer.
7813 * objc-lang.c (objc_language_data): Likewise.
7814 * opencl-lang.c (opencl_language_data): Likewise.
7815 * p-lang.c (pascal_language_data): Likewise.
7816 * rust-lang.c (rust_watch_location_expression): Rename to
7817 rust_language::watch_location_expression.
7818 (rust_language_data): Delete la_watch_location_expression
7819 initializer.
7820 (rust_language::watch_location_expression): New member function,
7821 implementation from rust_watch_location_expression.
7822
7823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7824
7825 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7826 ada_language::collect_symbol_completion_matches.
7827 (ada_language_data): Delete la_collect_symbol_completion_matches
7828 initializer.
7829 (ada_language::collect_symbol_completion_matches): New member
7830 function, implementation from
7831 ada_collect_symbol_completion_matches.
7832 * c-lang.c (c_language_data): Delete
7833 la_collect_symbol_completion_matches initializer.
7834 (cplus_language_data): Likewise.
7835 (asm_language_data): Likewise.
7836 (minimal_language_data): Likewise.
7837 * d-lang.c (d_language_data): Likewise.
7838 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7839 f_language::collect_symbol_completion_matches.
7840 (f_language_data): Delete la_collect_symbol_completion_matches
7841 initializer.
7842 (f_language::collect_symbol_completion_matches) New member
7843 function, implementation from f_collect_symbol_completion_matches.
7844 * go-lang.c (go_language_data): Delete
7845 la_collect_symbol_completion_matches initializer.
7846 * language.c (unknown_language_data): Likewise.
7847 (auto_language_data): Likewise.
7848 * language.h (language_data): Delete
7849 la_collect_symbol_completion_matches field.
7850 (language_defn::collect_symbol_completion_matches): New member
7851 function.
7852 * m2-lang.c (m2_language_data): Delete
7853 la_collect_symbol_completion_matches initializer.
7854 * objc-lang.c (objc_language_data): Likewise.
7855 * opencl-lang.c (opencl_language_data): Likewise.
7856 * p-lang.c (pascal_language_data): Likewise.
7857 * rust-lang.c (rust_language_data): Likewise.
7858 * symtab.c (default_collect_symbol_completion_matches): Delete.
7859 (collect_symbol_completion_matches): Update call to
7860 collect_symbol_completion_matches.
7861 (collect_symbol_completion_matches_type): Likewise.
7862 * symtab.h (default_collect_symbol_completion_matches): Delete
7863 declaration.
7864
7865 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7868 (ada_language_data): Delete la_word_break_characters initializer.
7869 (ada_language::word_break_characters): New member function.
7870 * c-lang.c (c_language_data): Delete la_word_break_characters
7871 initializer.
7872 (cplus_language_data): Likewise.
7873 (asm_language_data): Likewise.
7874 (minimal_language_data): Likewise.
7875 * completer.c: Update global comment.
7876 (advance_to_expression_complete_word_point): Update call to
7877 word_break_characters.
7878 (complete_files_symbols): Likewise.
7879 (complete_line_internal_1): Likewise.
7880 (default_completer_handle_brkchars): Likewise.
7881 (skip_quoted_chars): Likewise.
7882 * d-lang.c (d_language_data): Delete la_word_break_characters
7883 initializer.
7884 * f-lang.c (f_word_break_characters): Delete.
7885 (f_language_data): Delete la_word_break_characters initializer.
7886 (f_language::word_break_characters): New member function.
7887 * go-lang.c (go_language_data): Delete la_word_break_characters
7888 initializer.
7889 * language.c (unknown_language_data): Likewise.
7890 (auto_language_data): Likewise.
7891 * language.h (default_word_break_characters): Move declaration to
7892 earlier in the file.
7893 (language_data): Delete la_word_break_characters field.
7894 (language_defn::word_break_characters): New member function.
7895 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7896 initializer.
7897 * objc-lang.c (objc_language_data): Likewise.
7898 * opencl-lang.c (opencl_language_data): Likewise.
7899 * p-lang.c (pascal_language_data): Likewise.
7900 * rust-lang.c (rust_language_data): Likewise.
7901
7902 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7905 (ada_language_data): Delete la_get_symbol_name_matcher
7906 initializer.
7907 (language_defn::get_symbol_name_matcher_inner): New member
7908 function.
7909 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7910 initializer.
7911 (cplus_language_data): Likewise.
7912 (cplus_language::get_symbol_name_matcher_inner): New member
7913 function.
7914 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7915 (minimal_language_data): Likewise.
7916 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7917 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7918 initializer.
7919 * dictionary.c (iter_match_first_hashed): Update call to
7920 get_symbol_name_matcher.
7921 (iter_match_next_hashed): Likewise.
7922 (iter_match_next_linear): Likewise.
7923 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7924 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7925 initializer.
7926 (f_language::get_symbol_name_matcher_inner): New member function.
7927 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7928 initializer.
7929 * language.c (default_symbol_name_matcher): Update header comment,
7930 make static.
7931 (language_defn::get_symbol_name_matcher): New definition.
7932 (language_defn::get_symbol_name_matcher_inner): Likewise.
7933 (get_symbol_name_matcher): Delete.
7934 (unknown_language_data): Delete la_get_symbol_name_matcher
7935 initializer.
7936 (auto_language_data): Likewise.
7937 * language.h (language_data): Delete la_get_symbol_name_matcher
7938 field.
7939 (language_defn::get_symbol_name_matcher): New member function.
7940 (language_defn::get_symbol_name_matcher_inner): Likewise.
7941 (default_symbol_name_matcher): Delete declaration.
7942 * linespec.c (find_methods): Update call to
7943 get_symbol_name_matcher.
7944 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7945 initializer.
7946 * minsyms.c (lookup_minimal_symbol): Update call to
7947 get_symbol_name_matcher.
7948 (iterate_over_minimal_symbols): Likewise.
7949 * objc-lang.c (objc_language_data): Delete
7950 la_get_symbol_name_matcher initializer.
7951 * opencl-lang.c (opencl_language_data): Likewise.
7952 * p-lang.c (pascal_language_data): Likewise.
7953 * psymtab.c (psymbol_name_matches): Update call to
7954 get_symbol_name_matcher.
7955 * rust-lang.c (rust_language_data): Delete
7956 la_get_symbol_name_matcher initializer.
7957 * symtab.c (symbol_matches_search_name): Update call to
7958 get_symbol_name_matcher.
7959 (compare_symbol_name): Likewise.
7960
7961 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * ada-lang.c (ada_language_data): Delete la_compute_program
7964 initializer.
7965 * c-lang.c (c_language_data): Likewise.
7966 (c_language::compute_program): New member function.
7967 (cplus_language_data): Delete la_compute_program initializer.
7968 (cplus_language::compute_program): New member function.
7969 (asm_language_data): Delete la_compute_program initializer.
7970 (minimal_language_data): Likewise.
7971 * c-lang.h (c_compute_program): Update comment.
7972 (cplus_compute_program): Likewise.
7973 * compile/compile-c-support.c (c_compute_program): Likewise.
7974 (cplus_compute_program): Likewise.
7975 * compile/compile.c (compile_to_object): Update call to
7976 la_compute_program.
7977 * d-lang.c (d_language_data): Delete la_compute_program
7978 initializer.
7979 * f-lang.c (f_language_data): Likewise.
7980 * go-lang.c (go_language_data): Likewise.
7981 * language.c (unknown_language_data): Likewise.
7982 (auto_language_data): Likewise.
7983 * language.h (language_data): Delete la_compute_program field.
7984 (language_defn::compute_program): New member function.
7985 * m2-lang.c (m2_language_data): Delete la_compute_program
7986 initializer.
7987 * objc-lang.c (objc_language_data): Likewise.
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_language_data): Likewise.
7990 * rust-lang.c (rust_language_data): Likewise.
7991
7992 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7993
7994 * ada-lang.c (ada_language_data) Delete
7995 la_class_name_from_physname initializer.
7996 * c-lang.c (c_language_data): Likewise.
7997 (cplus_language_data): Likewise.
7998 (cplus_language::class_name_from_physname): New member function.
7999 (asm_language_data): Delete la_class_name_from_physname
8000 initializer.
8001 (minimal_language_data): Likewise.
8002 * d-lang.c (d_language_data): Likewise.
8003 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8004 method on language_defn class.
8005 (guess_full_die_structure_name): Likewise.
8006 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8007 initializer.
8008 * go-lang.c (go_language_data): Likewise.
8009 * language.c (language_class_name_from_physname): Delete.
8010 (unk_lang_class_name): Delete.
8011 (unknown_language_data): Delete la_class_name_from_physname
8012 initializer.
8013 (auto_language_data): Likewise.
8014 * language.h (language_data): Delete la_class_name_from_physname
8015 field.
8016 (language_defn::class_name_from_physname): New function.
8017 (language_class_name_from_physname): Delete declaration.
8018 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8019 initializer.
8020 * objc-lang.c (objc_language_data): Likewise.
8021 * opencl-lang.c (opencl_language_data): Likewise.
8022 * p-lang.c (pascal_language_data): Likewise.
8023 * rust-lang.c (rust_language_data): Likewise.
8024
8025 2020-06-16 Tom Tromey <tom@tromey.com>
8026
8027 * tui/tui-data.h (STATUS_NAME): New macro.
8028 * tui/tui-layout.c (tui_remove_some_windows)
8029 (initialize_known_windows, tui_register_window)
8030 (tui_layout_split::remove_windows, initialize_layouts)
8031 (tui_new_layout_command): Don't use hard-coded window names.
8032
8033 2020-06-16 Tom Tromey <tom@tromey.com>
8034
8035 PR tui/25348:
8036 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8037 tui_initialize_readline. Only run once. Call rl_initialize.
8038 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8039 tui_initialize_readline.
8040 * tui/tui-io.c (tui_setup_io): Call
8041 tui_ensure_readline_initialized.
8042 * tui/tui-interp.c (tui_interp::init): Update.
8043
8044 2020-06-16 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8047 Also preserve the status window.
8048
8049 2020-06-16 Tom Tromey <tom@tromey.com>
8050
8051 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8052 where m_window==nullptr.
8053
8054 2020-06-15 Tom Tromey <tromey@adacore.com>
8055
8056 * windows-nat.c (windows_nat::handle_output_debug_string):
8057 Update.
8058 (windows_nat::handle_ms_vc_exception): Update.
8059 * target.h (target_read_string): Change API.
8060 * target.c (target_read_string): Change API.
8061 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8062 Update.
8063 * solib-frv.c (frv_current_sos): Update.
8064 * solib-dsbt.c (dsbt_current_sos): Update.
8065 * solib-darwin.c (darwin_current_sos): Update.
8066 * linux-thread-db.c (inferior_has_bug): Update.
8067 * expprint.c (print_subexp_standard): Update.
8068 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8069 (ada_exception_message_1): Update.
8070
8071 2020-06-15 Tom Tromey <tromey@adacore.com>
8072
8073 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8074
8075 2020-06-15 Tom Tromey <tromey@adacore.com>
8076
8077 * valprint.c (read_string): Update comment.
8078 * target.c (MIN): Remove.
8079 (target_read_string): Rewrite.
8080
8081 2020-06-15 Tom Tromey <tromey@adacore.com>
8082
8083 * corefile.c (read_memory_string): Remove.
8084 * ada-valprint.c (ada_value_print_ptr): Update.
8085 * ada-lang.h (ada_tag_name): Change return type.
8086 * ada-lang.c (type_from_tag): Update.
8087 (ada_tag_name_from_tsd): Change return type. Use
8088 target_read_string.
8089 (ada_tag_name): Likewise.
8090 * gdbcore.h (read_memory_string): Don't declare.
8091
8092 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8093
8094 * symtab.c (rbreak_command): Ignore Windows drive colon.
8095
8096 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * NEWS: Mention removed GDBserver host support.
8099
8100 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8101
8102 * features/riscv/rebuild-csr-xml.sh: Updated.
8103
8104 2020-06-11 Tom Tromey <tom@tromey.com>
8105
8106 PR gdb/18318:
8107 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8108
8109 2020-06-09 Jonny Grant <jg@jguk.org>
8110 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * main.c (captured_main_1): Don't print new line after help.
8113 (print_gdb_help): add mailing list and IRC channel information
8114 to --help. Add new lines between items in the footer. Remove
8115 quotes around bug url.
8116
8117 2020-06-11 Keith Seitz <keiths@redhat.com>
8118
8119 PR gdb/21356
8120 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8121 Resolve typedefs for type length calculations.
8122
8123 2020-06-10 Tom de Vries <tdevries@suse.de>
8124
8125 PR ada/24713
8126 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8127 (write_psymbols): Enable .gdb_index for ada.
8128 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8129 ada.
8130
8131 2020-06-10 Tom de Vries <tdevries@suse.de>
8132
8133 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8134 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8135 namei" instead of "const char *name" argument.
8136 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8137 dw2_symtab_iter_init.
8138
8139 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8140
8141 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8142 to use type::field and field::type instead.
8143
8144 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8147 to use field::type instead.
8148
8149 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8150
8151 * gdbtypes.h (struct field) <type, set_type>: New methods.
8152 Rename `type` field to...
8153 <m_type>: ... this. Change references throughout to use type or
8154 set_type methods.
8155 (FIELD_TYPE): Use field::type. Change call sites that modify
8156 the field's type to use field::set_type instead.
8157
8158 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8161 to use type::index_type instead.
8162
8163 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8166 methods.
8167 (TYPE_INDEX_TYPE): Use type::index_type.
8168 * gdbtypes.c (create_array_type_with_stride): Likewise.
8169
8170 2020-06-07 Tom Tromey <tom@tromey.com>
8171
8172 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8173 parameter.
8174 (generic_value_print): Update.
8175
8176 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 Revert commit 982a38f60b0.
8179 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8180
8181 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8184 avoid use after free.
8185
8186 2020-06-05 Tom de Vries <tdevries@suse.de>
8187
8188 * NEWS: Fix typos.
8189
8190 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8193 the per_bfd object.
8194 (dwarf2_read_debug_names): Likewise.
8195 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8196 object when re-using a per_bfd object with an index.
8197
8198 2020-06-03 Tom de Vries <tdevries@suse.de>
8199
8200 PR symtab/26046
8201 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8202 children for C++.
8203 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8204 DW_TAG_subprogram.
8205
8206 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * ada-lang.c (ada_language_data): Delete skip_trampoline
8209 initializer.
8210 * c-lang.c (c_language_data): Likewise.
8211 (cplus_language_data): Likewise.
8212 (cplus_language::skip_trampoline): New member function.
8213 (asm_language_data): Delete skip_trampoline initializer.
8214 (minimal_language_data): Likewise.
8215 * d-lang.c (d_language_data): Likewise.
8216 * f-lang.c (f_language_data): Likewise.
8217 * go-lang.c (go_language_data): Likewise.
8218 * language.c (unk_lang_trampoline): Delete function.
8219 (skip_language_trampoline): Update.
8220 (unknown_language_data): Delete skip_trampoline initializer.
8221 (auto_language_data): Likewise.
8222 * language.h (language_data): Delete skip_trampoline field.
8223 (language_defn::skip_trampoline): New function.
8224 * m2-lang.c (m2_language_data): Delete skip_trampoline
8225 initializer.
8226 * objc-lang.c (objc_skip_trampoline): Delete function, move
8227 implementation to objc_language::skip_trampoline.
8228 (objc_language_data): Delete skip_trampoline initializer.
8229 (objc_language::skip_trampoline): New member function with
8230 implementation from objc_skip_trampoline.
8231 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8232 initializer.
8233 * p-lang.c (pascal_language_data): Likewise.
8234 * rust-lang.c (rust_language_data): Likewise.
8235
8236 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8237
8238 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8239 (ada_language::demangle): New member function.
8240 * c-lang.c (c_language_data): Delete la_demangle initializer.
8241 (cplus_language_data): Delete la_demangle initializer.
8242 (cplus_language::demangle): New member function.
8243 (asm_language_data): Delete la_demangle initializer.
8244 (minimal_language_data): Delete la_demangle initializer.
8245 * d-lang.c (d_language_data): Delete la_demangle initializer.
8246 (d_language::demangle): New member function.
8247 * f-lang.c (f_language_data): Delete la_demangle initializer.
8248 (f_language::demangle): New member function.
8249 * go-lang.c (go_language_data): Delete la_demangle initializer.
8250 (go_language::demangle): New member function.
8251 * language.c (language_demangle): Update.
8252 (unk_lang_demangle): Delete.
8253 (unknown_language_data): Delete la_demangle initializer.
8254 (unknown_language::demangle): New member function.
8255 (auto_language_data): Delete la_demangle initializer.
8256 (auto_language::demangle): New member function.
8257 * language.h (language_data): Delete la_demangle field.
8258 (language_defn::demangle): New function.
8259 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8260 * objc-lang.c (objc_language_data): Delete la_demangle
8261 initializer.
8262 (objc_language::demangle): New member function.
8263 * opencl-lang.c (opencl_language_data): Delete la_demangle
8264 initializer.
8265 * p-lang.c (pascal_language_data): Likewise.
8266 * rust-lang.c (rust_language_data): Likewise.
8267 (rust_language::demangle): New member function.
8268
8269 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8270
8271 * ada-lang.c (ada_language_data): Delete la_print_type
8272 initializer.
8273 (ada_language::print_type): New member function.
8274 * c-lang.c (c_language_data): Delete la_print_type initializer.
8275 (c_language::print_type): New member function.
8276 (cplus_language_data): Delete la_print_type initializer.
8277 (cplus_language::print_type): New member function.
8278 (asm_language_data): Delete la_print_type initializer.
8279 (asm_language::print_type): New member function.
8280 (minimal_language_data): Delete la_print_type initializer.
8281 (minimal_language::print_type): New member function.
8282 * d-lang.c (d_language_data): Delete la_print_type initializer.
8283 (d_language::print_type): New member function.
8284 * f-lang.c (f_language_data): Delete la_print_type initializer.
8285 (f_language::print_type): New member function.
8286 * go-lang.c (go_language_data): Delete la_print_type initializer.
8287 (go_language::print_type): New member function.
8288 * language.c (unk_lang_print_type): Delete.
8289 (unknown_language_data): Delete la_print_type initializer.
8290 (unknown_language::print_type): New member function.
8291 (auto_language_data): Delete la_print_type initializer.
8292 (auto_language::print_type): New member function.
8293 * language.h (language_data): Delete la_print_type field.
8294 (language_defn::print_type): New function.
8295 (LA_PRINT_TYPE): Update.
8296 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8297 (m2_language::print_type): New member function.
8298 * objc-lang.c (objc_language_data): Delete la_print_type
8299 initializer.
8300 (objc_language::print_type): New member function.
8301 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8302 to opencl_language::print_type.
8303 (opencl_language_data): Delete la_print_type initializer.
8304 (opencl_language::print_type): New member function, implementation
8305 from opencl_print_type.
8306 * p-lang.c (pascal_language_data): Delete la_print_type
8307 initializer.
8308 (pascal_language::print_type): New member function.
8309 * rust-lang.c (rust_print_type): Delete, implementation moved to
8310 rust_language::print_type.
8311 (rust_language_data): Delete la_print_type initializer.
8312 (rust_language::print_type): New member function, implementation
8313 from rust_print_type.
8314
8315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8316
8317 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8318 implementation moves to...
8319 (ada_language::sniff_from_mangled_name): ...here. Update return
8320 type.
8321 (ada_language_data): Delete la_sniff_from_mangled_name
8322 initializer.
8323 * c-lang.c (c_language_data): Likewise.
8324 (cplus_language_data): Likewise.
8325 (cplus_language::sniff_from_mangled_name): New member function,
8326 implementation taken from gdb_sniff_from_mangled_name.
8327 (asm_language_data): Delete la_sniff_from_mangled_name
8328 initializer.
8329 (minimal_language_data): Likewise.
8330 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8331 implementation moves to cplus_language::sniff_from_mangled_name.
8332 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8333 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8334 moves to...
8335 (d_language::sniff_from_mangled_name): ...here.
8336 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8337 * f-lang.c (f_language_data): Likewise.
8338 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8339 moves to...
8340 (go_language::sniff_from_mangled_name): ...here.
8341 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8342 * language.c (language_sniff_from_mangled_name): Delete.
8343 (unknown_language_data): Delete la_sniff_from_mangled_name
8344 initializer.
8345 (auto_language_data): Likewise.
8346 * language.h (language_data): Delete la_sniff_from_mangled_name
8347 field.
8348 (language_defn::sniff_from_mangled_name): New function.
8349 (language_sniff_from_mangled_name): Delete declaration.
8350 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8351 field.
8352 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8353 implementation moves to...
8354 (objc_language::sniff_from_mangled_name): ...here.
8355 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8356 * opencl-lang.c (opencl_language_data): Likewise.
8357 * p-lang.c (pascal_language_data): Likewise.
8358 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8359 implementation moves to...
8360 (rust_language::sniff_from_mangled_name): ...here.
8361 (rust_language_data): Delete la_sniff_from_mangled_name
8362 initializer.
8363 * symtab.c (symbol_find_demangled_name): Call
8364 sniff_from_mangled_name member function.
8365
8366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8369 initializer.
8370 * c-lang.c (c_language_data): Likewise.
8371 (cplus_language_data): Likewise.
8372 (cplus_language::search_name_hash): New member function.
8373 (asm_language_data): Delete la_search_name_hash initializer.
8374 (minimal_language_data): Likewise.
8375 * d-lang.c (d_language_data): Likewise.
8376 * dictionary.c (default_search_name_hash): Rename to...
8377 (language_defn::search_name_hash): ...this.
8378 * f-lang.c (f_language_data): Likewise.
8379 (f_language::search_name_hash): New member function.
8380 * go-lang.c (go_language_data): Delete la_search_name_hash
8381 initializer.
8382 * language.c (unknown_language_data): Likewise.
8383 (auto_language_data): Likewise.
8384 * language.h (struct language_data): Delete la_search_name_hash
8385 field.
8386 (language_defn::search_name_hash): Declare new member function.
8387 (default_search_name_hash): Delete declaration.
8388 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8389 initializer.
8390 * objc-lang.c (objc_language_data): Likewise.
8391 * opencl-lang.c (opencl_language_data): Likewise.
8392 * p-lang.c (pascal_language_data): Likewise.
8393 * rust-lang.c (rust_language_data): Likewise.
8394 * symtab.c (search_name_hash): Update call.
8395
8396 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8397
8398 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8399 initializer.
8400 * c-lang.c (class compile_instance): Declare.
8401 (c_language_data): Delete la_get_compile_instance initializer.
8402 (c_language::get_compile_instance): New member function.
8403 (cplus_language_data): Delete la_get_compile_instance initializer.
8404 (cplus_language::get_compile_instance): New member function.
8405 (asm_language_data): Delete la_get_compile_instance initializer.
8406 (minimal_language_data): Likewise.
8407 * c-lang.h (c_get_compile_context): Update comment.
8408 (cplus_get_compile_context): Update comment.
8409 * compile/compile.c (compile_to_object): Update calls, don't rely
8410 on function pointer being NULL.
8411 * d-lang.c (d_language_data): Delete la_get_compile_instance
8412 initializer.
8413 * f-lang.c (f_language_data): Likewise.
8414 * go-lang.c (go_language_data): Likewise.
8415 * language.c (unknown_language_data): Likewise.
8416 (auto_language_data): Likewise.
8417 * language.h (language_data): Delete la_get_compile_instance field.
8418 (language_defn::get_compile_instance): New member function.
8419 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8420 initializer.
8421 * objc-lang.c (objc_language_data): Likewise.
8422 * opencl-lang.c (opencl_language_data): Likewise.
8423 * p-lang.c (pascal_language_data): Likewise.
8424 * rust-lang.c (rust_language_data): Likewise.
8425
8426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8427
8428 * ada-lang.c (ada_add_all_symbols): Update comment.
8429 (ada_iterate_over_symbols): Delete, move implementation to...
8430 (ada_language::iterate_over_symbols): ...here, a new member
8431 function, rewrite to use range based for loop.
8432 (ada_language_data): Delete la_iterate_over_symbols initializer.
8433 * c-lang.c (c_language_data): Likewise.
8434 (cplus_language_data): Likewise.
8435 (asm_language_data): Likewise.
8436 (minimal_language_data): Likewise.
8437 * d-lang.c (d_language_data): Likewise.
8438 * f-lang.c (f_language_data): Likewise.
8439 * go-lang.c (go_language_data): Likewise.
8440 * language.c (unknown_language_data): Likewise.
8441 (auto_language_data): Likewise.
8442 * language.h (language_data): Delete la_iterate_over_symbols field.
8443 (language_defn::iterate_over_symbols): New member function.
8444 (LA_ITERATE_OVER_SYMBOLS): Update.
8445 * linespec.c (iterate_over_all_matching_symtabs): Update.
8446 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8447 initializer.
8448 * objc-lang.c (objc_language_data): Likewise.
8449 * opencl-lang.c (opencl_language_data): Likewise.
8450 * p-lang.c (pascal_language_data): Likewise.
8451 * rust-lang.c (rust_language_data): Likewise.
8452
8453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * ada-lang.c (ada_language_data): Delete
8456 la_lookup_transparent_type initializer.
8457 * c-lang.c (c_language_data): Likewise.
8458 (cplus_language_data): Likewise.
8459 (cplus_language::lookup_transparent_type): New member function.
8460 (asm_language_data): Delete la_lookup_transparent_type
8461 initializer.
8462 (minimal_language_data): Likewise.
8463 * d-lang.c (d_language_data): Likewise.
8464 * f-lang.c (f_language_data): Likewise.
8465 * go-lang.c (go_language_data): Likewise.
8466 * language.c (unknown_language_data): Likewise.
8467 (auto_language_data): Likewise.
8468 * language.h (struct language_data): Delete
8469 la_lookup_transparent_type field.
8470 (language_defn::lookup_transparent_type): New member function.
8471 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8472 initializer.
8473 * objc-lang.c (objc_language_data): Likewise.
8474 * opencl-lang.c (opencl_language_data): Likewise.
8475 * p-lang.c (pascal_language_data): Likewise.
8476 * rust-lang.c (rust_language_data): Likewise.
8477 * symtab.c (symbol_matches_domain): Update call.
8478
8479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8480
8481 * ada-lang.c (ada_language_arch_info): Delete function, move
8482 implementation to...
8483 (ada_language::language_arch_info): ...here, a new member
8484 function.
8485 (ada_language_data): Delete la_language_arch_info.
8486 * c-lang.c (c_language_data): Likewise.
8487 (c_language::language_arch_info): New member function.
8488 (cplus_language_arch_info): Delete function, move
8489 implementation to...
8490 (cplus_language::language_arch_info): ...here, a new member
8491 function.
8492 (cplus_language_data): Delete la_language_arch_info.
8493 (asm_language_data): Likewise.
8494 (asm_language::language_arch_info): New member function.
8495 (minimal_language_data): Delete la_language_arch_info.
8496 (minimal_language::language_arch_info): New member function.
8497 * d-lang.c (d_language_arch_info): Delete function, move
8498 implementation to...
8499 (d_language::language_arch_info): ...here, a new member
8500 function.
8501 (d_language_data): Delete la_language_arch_info.
8502 * f-lang.c (f_language_arch_info): Delete function, move
8503 implementation to...
8504 (f_language::language_arch_info): ...here, a new member
8505 function.
8506 (f_language_data): Delete la_language_arch_info.
8507 * go-lang.c (go_language_arch_info): Delete function, move
8508 implementation to...
8509 (go_language::language_arch_info): ...here, a new member
8510 function.
8511 (go_language_data): Delete la_language_arch_info.
8512 * language.c (unknown_language_data): Likewise.
8513 (unknown_language::language_arch_info): New member function.
8514 (auto_language_data): Delete la_language_arch_info.
8515 (auto_language::language_arch_info): New member function.
8516 (language_gdbarch_post_init): Update call to
8517 la_language_arch_info.
8518 * language.h (language_data): Delete la_language_arch_info
8519 function pointer.
8520 (language_defn::language_arch_info): New function.
8521 * m2-lang.c (m2_language_arch_info): Delete function, move
8522 implementation to...
8523 (m2_language::language_arch_info): ...here, a new member
8524 function.
8525 (m2_language_data): Delete la_language_arch_info.
8526 * objc-lang.c (objc_language_arch_info): Delete function, move
8527 implementation to...
8528 (objc_language::language_arch_info): ...here, a new member
8529 function.
8530 (objc_language_data): Delete la_language_arch_info.
8531 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8532 implementation to...
8533 (opencl_language::language_arch_info): ...here, a new member
8534 function.
8535 (opencl_language_data): Delete la_language_arch_info.
8536 * p-lang.c (pascal_language_arch_info): Delete function, move
8537 implementation to...
8538 (pascal_language::language_arch_info): ...here, a new member
8539 function.
8540 (pascal_language_data): Delete la_language_arch_info.
8541 * rust-lang.c (rust_language_arch_info): Delete function, move
8542 implementation to...
8543 (rust_language::language_arch_info): ...here, a new member
8544 function.
8545 (rust_language_data): Delete la_language_arch_info.
8546
8547 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8548
8549 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8550 initializer.
8551 * c-lang.c (c_language_data): Likewise.
8552 (cplus_language_data): Likewise.
8553 (cplus_language::pass_by_reference_info): New method.
8554 (asm_language_data): Delete la_pass_by_reference initializer.
8555 (minimal_language_data): Likewise.
8556 * cp-abi.c (cp_pass_by_reference): Remove use of
8557 default_pass_by_reference.
8558 * d-lang.c (d_language_data): Likewise.
8559 * f-lang.c (f_language_data): Likewise.
8560 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8561 default_pass_by_reference.
8562 * go-lang.c (go_language_data): Likewise.
8563 * language.c (language_pass_by_reference): Update.
8564 (default_pass_by_reference): Delete.
8565 (unknown_language_data): Delete la_pass_by_reference
8566 initializer.
8567 (auto_language_data): Likewise.
8568 * language.h (struct language_data): Delete la_pass_by_reference
8569 field.
8570 (language_defn::pass_by_reference_info): New member function.
8571 (default_pass_by_reference): Delete declaration.
8572 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8573 initializer.
8574 * objc-lang.c (objc_language_data): Likewise.
8575 * opencl-lang.c (opencl_language_data): Likewise.
8576 * p-lang.c (pascal_language_data): Likewise.
8577 * rust-lang.c (rust_language_data): Likewise.
8578
8579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * ada-lang.c (ada_read_var_value): Delete function, move
8582 implementation to...
8583 (ada_language::read_var_value): ...here.
8584 (ada_language_data): Delete la_read_var_value initializer.
8585 * c-lang.c (c_language_data): Likewise.
8586 (cplus_language_data): Likewise.
8587 (minimal_language_data): Likewise.
8588 * d-lang.c (d_language_data): Likewise.
8589 * f-lang.c (f_language_data): Likewise.
8590 * findvar.c (default_read_var_value): Rename to...
8591 (language_defn::read_var_value): ...this.
8592 * findvar.c (read_var_value): Update header comment, and change to
8593 call member function instead of function pointer.
8594 * go-lang.c (go_language_data): Likewise.
8595 * language.c (unknown_language_data): Delete la_read_var_value
8596 initializer.
8597 (auto_language_data): Likewise.
8598 * language.h (struct language_data): Delete la_read_var_value
8599 field.
8600 (language_defn::read_var_value): New member function.
8601 (default_read_var_value): Delete declaration.
8602 * m2-lang.c (m2_language_data): Delete la_read_var_value
8603 initializer.
8604 * objc-lang.c (objc_language_data): Likewise.
8605 * opencl-lang.c (opencl_language_data): Likewise.
8606 * p-lang.c (pascal_language_data): Likewise.
8607 * rust-lang.c (rust_language_data): Likewise.
8608 * value.h (default_read_var_value): Delete declaration.
8609
8610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8611
8612 * ada-lang.c (ada_print_array_index): Delete function, move
8613 implementation to...
8614 (ada_language::print_array_index): ...here.
8615 (ada_language_data): Delete la_print_array_index initializer.
8616 * c-lang.c (c_language_data): Likewise.
8617 (cplus_language_data): Likewise.
8618 (minimal_language_data): Likewise.
8619 * d-lang.c (d_language_data): Likewise.
8620 * f-lang.c (f_language_data): Likewise.
8621 * go-lang.c (go_language_data): Likewise.
8622 * language.c (default_print_array_index): Delete function, move
8623 implementation to...
8624 (language_defn::print_array_index): ...here.
8625 (unknown_language_data): Delete la_print_array_index initializer.
8626 (auto_language_data): Likewise.
8627 * language.h (struct language_data): Delete la_print_array_index
8628 field.
8629 (language_defn::print_array_index): New member function.
8630 (LA_PRINT_ARRAY_INDEX): Update.
8631 (default_print_array_index): Delete declaration.
8632 * m2-lang.c (m2_language_data): Delete la_print_array_index
8633 initializer.
8634 * objc-lang.c (objc_language_data): Likewise.
8635 * opencl-lang.c (opencl_language_data): Likewise.
8636 * p-lang.c (pascal_language_data): Likewise.
8637 * rust-lang.c (rust_language_data): Likewise.
8638
8639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * gdb/ada-lang.c (ada_language_defn): Convert to...
8642 (ada_language_data): ...this.
8643 (class ada_language): New class.
8644 (ada_language_defn): New static global.
8645 * gdb/c-lang.c (c_language_defn): Convert to...
8646 (c_language_data): ...this.
8647 (class c_language): New class.
8648 (c_language_defn): New static global.
8649 (cplus_language_defn): Convert to...
8650 (cplus_language_data): ...this.
8651 (class cplus_language): New class.
8652 (cplus_language_defn): New static global.
8653 (asm_language_defn): Convert to...
8654 (asm_language_data): ...this.
8655 (class asm_language): New class.
8656 (asm_language_defn): New static global.
8657 (minimal_language_defn): Convert to...
8658 (minimal_language_data): ...this.
8659 (class minimal_language): New class.
8660 (minimal_language_defn): New static global.
8661 * gdb/d-lang.c (d_language_defn): Convert to...
8662 (d_language_data): ...this.
8663 (class d_language): New class.
8664 (d_language_defn): New static global.
8665 * gdb/f-lang.c (f_language_defn): Convert to...
8666 (f_language_data): ...this.
8667 (class f_language): New class.
8668 (f_language_defn): New static global.
8669 * gdb/go-lang.c (go_language_defn): Convert to...
8670 (go_language_data): ...this.
8671 (class go_language): New class.
8672 (go_language_defn): New static global.
8673 * gdb/language.c (unknown_language_defn): Remove declaration.
8674 (current_language): Initialize to nullptr, real initialization is
8675 moved to _initialize_language.
8676 (languages): Delete global.
8677 (language_defn::languages): Define.
8678 (set_language_command): Use language_defn::languages.
8679 (set_language): Likewise.
8680 (range_error): Likewise.
8681 (language_enum): Likewise.
8682 (language_def): Likewise.
8683 (add_set_language_command): Use language_def::languages for the
8684 language list, and language_def to lookup language pointers.
8685 (skip_language_trampoline): Use language_defn::languages.
8686 (unknown_language_defn): Convert to...
8687 (unknown_language_data): ...this.
8688 (class unknown_language): New class.
8689 (unknown_language_defn): New static global.
8690 (auto_language_defn): Convert to...
8691 (auto_language_data): ...this.
8692 (class auto_language): New class.
8693 (auto_language_defn): New static global.
8694 (language_gdbarch_post_init): Use language_defn::languages.
8695 (_initialize_language): Initialize current_language.
8696 * gdb/language.h (struct language_defn): Rename to...
8697 (struct language_data): ...this.
8698 (struct language_defn): New.
8699 (auto_language_defn): Delete.
8700 (unknown_language_defn): Delete.
8701 (minimal_language_defn): Delete.
8702 (ada_language_defn): Delete.
8703 (asm_language_defn): Delete.
8704 (c_language_defn): Delete.
8705 (cplus_language_defn): Delete.
8706 (d_language_defn): Delete.
8707 (f_language_defn): Delete.
8708 (go_language_defn): Delete.
8709 (m2_language_defn): Delete.
8710 (objc_language_defn): Delete.
8711 (opencl_language_defn): Delete.
8712 (pascal_language_defn): Delete.
8713 (rust_language_defn): Delete.
8714 * gdb/m2-lang.c (m2_language_defn): Convert to...
8715 (m2_language_data): ...this.
8716 (class m2_language): New class.
8717 (m2_language_defn): New static global.
8718 * gdb/objc-lang.c (objc_language_defn): Convert to...
8719 (objc_language_data): ...this.
8720 (class objc_language): New class.
8721 (objc_language_defn): New static global.
8722 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8723 (opencl_language_data): ...this.
8724 (class opencl_language): New class.
8725 (opencl_language_defn): New static global.
8726 * gdb/p-lang.c (pascal_language_defn): Convert to...
8727 (pascal_language_data): ...this.
8728 (class pascal_language): New class.
8729 (pascal_language_defn): New static global.
8730 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8731 language pointer, update comment format.
8732 * gdb/rust-lang.c (rust_language_defn): Convert to...
8733 (rust_language_data): ...this.
8734 (class rust_language): New class.
8735 (rust_language_defn): New static global.
8736
8737 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8740 member variable.
8741 <m_stmt_at_address>: New member variable.
8742 (lnp_state_machine::record_line): Don't record some lines, update
8743 tracking of is_stmt at the same address.
8744 (lnp_state_machine::lnp_state_machine): Initialise new member
8745 variables.
8746
8747 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8748
8749 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8750 "-include gnu-nat-mig.h".
8751 * gnu-nat-mig.h: New file.
8752 * gnu-nat.c: Include "gnu-nat-mig.h".
8753 (exc_server, msg_reply_server, notify_server,
8754 process_reply_server): Remove declarations.
8755
8756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8757
8758 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8759 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8760 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8761 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8762 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8763 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8764 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8765 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8766 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8767 to gnu_nat_target class.
8768 * gnu-nat.c: Likewise.
8769 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8770 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8771 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8772 object.
8773 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8774 instead of `gnu_target'.
8775
8776 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8777
8778 * i386-gnu-tdep.c: Include "gdbcore.h"
8779 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8780 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8781 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8782 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8783 i386_gnu_sigcontext_addr): New functions
8784 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8785 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8786 tdep.
8787
8788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8789
8790 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8791 before fork_inferior call. Avoid calling it if target_is_pushed returns
8792 true.
8793
8794 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8795
8796 * gnu-nat.h (gnu_target): New variable declaration.
8797 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8798 gnu_target.
8799 * gnu-nat.c (gnu_target): New variable.
8800 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8801 add_thread_silent, and add_thread calls.
8802 (gnu_nat_target::create_inferior): Pass gnu_target to
8803 add_thread_silent, thread_change_ptid call.
8804 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8805 call.
8806
8807 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8808
8809 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8810 (gnu_nat_target::find_memory_regions): Remove unused
8811 `old_address' variable.
8812
8813 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8814
8815 * gnu-nat.c: Include "gdbarch.h".
8816
8817 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8818
8819 * reply_mig_hack.awk (Error return): Cast function through
8820 void *, to bypass compiler function call check.
8821
8822 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8823
8824 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8825 $(srcdir)/reply_mig_hack.awk.
8826
8827 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8828
8829 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8830
8831 2020-05-30 Jonny Grant <jg@jguk.org>
8832
8833 * configure.ac (ACX_BUGURL): change bug URL to https.
8834
8835 2020-05-30 Pedro Alves <palves@redhat.com>
8836
8837 * cp-support.c (replace_typedefs_template): New.
8838 (replace_typedefs_qualified_name): Handle
8839 DEMANGLE_COMPONENT_TEMPLATE.
8840
8841 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8844 dwarf2/index-cache.h, dwarf2/index-write.c,
8845 dwarf2/index-write.h, dwarf2/line-header.c,
8846 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8847 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8848 variables and fields from `dwarf2_per_objfile` to just
8849 `per_objfile` throughout.
8850
8851 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8852
8853 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8854 <push_dwarf_reg_entry_value>: Add comment.
8855
8856 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8857 Keith Seitz <keiths@redhat.com>
8858
8859 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8860 instead of PyEval_ReleaseLock.
8861 (class gdbpy_gil): Move to earlier in file.
8862 (finalize_python): Set gdb_python_initialized.
8863 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8864 when not initialized.
8865
8866 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8869 <push_dwarf_reg_entry_value>: Remove assert. Override
8870 per_objfile with caller_per_objfile.
8871
8872 2020-05-28 Tom de Vries <tdevries@suse.de>
8873
8874 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8875 PR gold/15646 workaround to symbol kind "type".
8876
8877 2020-05-27 Tom Tromey <tromey@adacore.com>
8878
8879 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8880
8881 2020-05-27 Tom Tromey <tromey@adacore.com>
8882
8883 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8884 Use htab_find_with_hash.
8885 <add_abbrev>: Remove "abbrev_number" parameter.
8886 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8887 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8888 (hash_abbrev): Add comment.
8889 (abbrev_table::lookup_abbrev): Move to header file.
8890 (abbrev_table::read): Update.
8891
8892 2020-05-27 Tom Tromey <tromey@adacore.com>
8893
8894 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8895 method.
8896 <canonical_name>: New member.
8897 <raw_name>: Rename from "name".
8898 (partial_die_info): Initialize canonical_name.
8899 (scan_partial_symbols): Check raw_name.
8900 (partial_die_parent_scope, partial_die_full_name)
8901 (add_partial_symbol, add_partial_subprogram)
8902 (add_partial_enumeration, load_partial_dies): Use "name" method.
8903 (partial_die_info::name): New method.
8904 (partial_die_info::read, guess_partial_die_structure_name)
8905 (partial_die_info::fixup): Update.
8906
8907 2020-05-27 Tom Tromey <tromey@adacore.com>
8908
8909 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8910 <get_ref_die_offset>: Inline.
8911 <get_ref_die_offset_complaint>: New method.
8912 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8913 (attribute::get_ref_die_offset_complaint): Rename from
8914 get_ref_die_offset. Just issue complaint.
8915
8916 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8917
8918 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8919
8920 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8921
8922 * exec.c (exec_file_attach): Use errno value of first openp failure.
8923
8924 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8925
8926 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8927 Don't close thread handle.
8928
8929 2020-05-27 Tom Tromey <tom@tromey.com>
8930 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8933 shared_ptr.
8934 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8935 member.
8936 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8937 dwarf2_per_bfd_objfile_data_key>: New globals.
8938 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8939 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8940 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8941 shared.
8942 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8943 short-circuit when sharing.
8944 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8945 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8946
8947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8950 to...
8951 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8952 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8953
8954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8955
8956 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8957 build_name_components, find_name_components_bounds>:
8958 Add per_objfile parameter.
8959 (struct mapped_index) <symbol_name_at>: Likewise.
8960 (struct mapped_debug_names): Remove constructor.
8961 <dwarf2_per_objfile>: Remove field.
8962 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8963 (mapped_index_base::find_name_components_bounds,
8964 mapped_index_base::build_name_components,
8965 dw2_expand_symtabs_matching_symbol): Likewise.
8966 (class mock_mapped_index) <symbol_name_at>: Likewise.
8967 (check_match): Likewise.
8968 (check_find_bounds_finds): Likewise.
8969 (test_mapped_index_find_name_component_bounds): Update.
8970 (CHECK_MATCH): Update.
8971 (dw2_expand_symtabs_matching): Update.
8972 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8973 per_objfile parameter.
8974 <find_vec_in_debug_names>: Likewise.
8975 <m_per_objfile>: New field.
8976 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8977 parameter.
8978 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8979 (dw2_debug_names_iterator::next): Update.
8980 (dw2_debug_names_lookup_symbol): Update.
8981 (dw2_debug_names_expand_symtabs_for_function): Update.
8982 (dw2_debug_names_map_matching_symbols): Update.
8983 (dw2_debug_names_expand_symtabs_matching): Update.
8984 (dwarf2_read_debug_names): Update.
8985
8986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8987
8988 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8989 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8990 move to dwarf2_per_objfile.
8991 <read_in_chain>: Remove.
8992 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8993 remove_all_cus, age_comp_units>: New methods.
8994 <m_dwarf2_cus>: New member.
8995 (struct dwarf2_per_cu_data) <cu>: Remove.
8996 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8997 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8998 moved to methods of dwarf2_per_objfile.
8999 (dwarf2_clear_marks): Remove.
9000 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9001 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9002 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9003 (dwarf2_per_objfile::remove_all_cus): New.
9004 (class free_cached_comp_units) <~free_cached_comp_units>:
9005 Update.
9006 (load_cu): Update.
9007 (dw2_do_instantiate_symtab): Adjust.
9008 (fill_in_sig_entry_from_dwo_entry): Adjust.
9009 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9010 (cutu_reader::cutu_reader): Likewise.
9011 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9012 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9013 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9014 and dwarf2_per_objfile::age_comp_units.
9015 (load_partial_comp_unit): Update.
9016 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9017 (process_queue): Likewise.
9018 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9019 backlink.
9020 (dwarf2_read_addr_index): Likewise.
9021 (follow_die_offset): Likewise.
9022 (dwarf2_fetch_die_loc_sect_off): Likewise.
9023 (dwarf2_fetch_constant_bytes): Likewise.
9024 (dwarf2_fetch_die_type_sect_off): Likewise.
9025 (follow_die_sig_1): Likewise.
9026 (load_full_type_unit): Likewise.
9027 (read_signatured_type): Likewise.
9028 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9029 (dwarf2_cu::~dwarf2_cu): Remove.
9030 (dwarf2_per_objfile::get_cu): New.
9031 (dwarf2_per_objfile::set_cu): New.
9032 (age_cached_comp_units): Rename to...
9033 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9034 to std::unordered_map.
9035 (free_one_cached_comp_unit): Rename to...
9036 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9037 to std::unordered_map.
9038 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9039 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9040 a dwarf2_per_objfile in data.
9041 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9042 (dwarf2_clear_marks): Remove.
9043
9044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9047 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9048 (init_tu_and_read_dwo_dies): Likewise.
9049 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9050 (cutu_reader::cutu_reader): Likewise.
9051 (load_partial_comp_unit): Likewise.
9052 (process_psymtab_comp_unit): Update.
9053 (build_type_psymtabs_1): Update.
9054 (process_skeletonless_type_unit): Update.
9055 (load_full_comp_unit): Update.
9056 (find_partial_die): Update.
9057 (dwarf2_read_addr_index): Update.
9058 (read_signatured_type): Update.
9059
9060 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9063 m_header_read_in>: New fields.
9064 <get_header>: New method.
9065 * dwarf2/read.c (per_cu_header_read_in): Remove.
9066 (dwarf2_per_cu_data::get_header): New.
9067 (dwarf2_per_cu_data::addr_size): Update.
9068 (dwarf2_per_cu_data::offset_size): Update.
9069 (dwarf2_per_cu_data::ref_addr_size): Update.
9070
9071 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9074 (dw2_do_instantiate_symtab): Update.
9075 (queue_and_load_all_dwo_tus): Change parameter from
9076 dwarf2_per_cu_data to dwarf2_cu.
9077 (dwarf2_fetch_die_loc_sect_off): Update.
9078 (dwarf2_fetch_constant_bytes): Update.
9079 (dwarf2_fetch_die_type_sect_off): Update.
9080
9081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9082
9083 * dwarf2/read.c (process_full_comp_unit,
9084 process_full_type_unit): Remove per_cu, per_objfile paramters.
9085 Add dwarf2_cu parameter.
9086 (process_queue): Update.
9087
9088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9089
9090 * dwarf2/read.c (create_cu_from_index_list): Replace
9091 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9092 (create_cus_from_index_list): Likewise.
9093 (create_cus_from_index): Likewise.
9094 (create_signatured_type_table_from_index): Likewise.
9095 (create_cus_from_debug_names_list): Likewise.
9096 (create_cus_from_debug_names): Likewise.
9097 (dwarf2_read_gdb_index): Update.
9098 (dwarf2_read_debug_names): Update.
9099
9100 2020-05-27 Tom Tromey <tom@tromey.com>
9101 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * dwarf2/read.h (struct dwarf2_per_objfile)
9104 <get_type_for_signatured_type, set_type_for_signatured_type>:
9105 New methods.
9106 <m_type_map>: New member.
9107 (struct signatured_type) <type>: Remove.
9108 * dwarf2/read.c
9109 (dwarf2_per_objfile::get_type_for_signatured_type,
9110 dwarf2_per_objfile::set_type_for_signatured_type): New.
9111 (get_signatured_type): Use new methods.
9112
9113 2020-05-27 Tom Tromey <tom@tromey.com>
9114 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9117 (struct dwarf2_per_objfile) <type_units>: New member.
9118 <get_type_unit_group_unshareable>: New method.
9119 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9120 num_symtabs, symtabs>: Remove; move to
9121 type_unit_group_unshareable.
9122 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9123 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9124 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9125
9126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/read.h (struct dwarf2_per_cu_data):
9129 <dwarf2_per_objfile>: Remove.
9130 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9131 dwarf2_per_objfile.
9132 (create_signatured_type_table_from_index): Likewise.
9133 (create_signatured_type_table_from_debug_names): Likewise.
9134 (create_debug_type_hash_table): Likewise.
9135 (fill_in_sig_entry_from_dwo_entry): Likewise.
9136 (create_type_unit_group): Likewise.
9137 (read_comp_units_from_section): Likewise.
9138 (create_cus_hash_table): Likewise.
9139
9140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9143 dwarf2_per_cu_data::dwarf2_per_objfile.
9144 (compute_compunit_symtab_includes): Likewise.
9145 (dwarf2_cu::start_symtab): Likewise.
9146
9147 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9148
9149 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9150 parameter.
9151 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9152 (read_namespace_alias): Update.
9153 (lookup_die_type): Update.
9154 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9156 Update.
9157 (disassemble_dwarf_expression): Update.
9158
9159 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * dwarf2/read.h (struct dwarf2_queue_item): Add
9162 dwarf2_per_objfile parameter, assign new parameter.
9163 <per_objfile>: New field.
9164 * dwarf2/read.c (free_one_cached_comp_unit): Add
9165 dwarf2_per_objfile parameter.
9166 (queue_comp_unit): Likewise.
9167 (dw2_do_instantiate_symtab): Update.
9168 (process_psymtab_comp_unit): Update.
9169 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9170 (process_imported_unit_die): Update.
9171 (queue_and_load_dwo_tu): Update.
9172 (follow_die_offset): Update.
9173 (follow_die_sig_1): Update.
9174
9175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9178 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9179 (read_call_site_scope): Assign per_objfile.
9180 (dwarf2_per_cu_data::objfile): Remove.
9181 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9182 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9183 dwarf2_per_objfile parameter.
9184 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9185 dwarf2_per_objfile parameter.
9186 (dwarf_expr_reg_to_entry_parameter): Add output
9187 dwarf2_per_objfile parameter.
9188 (locexpr_get_frame_base): Update.
9189 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9190 <push_dwarf_reg_entry_value>: Update.
9191 <call_site_to_target_addr>: Update.
9192 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9193 parameter.
9194 (value_of_dwarf_reg_entry): Update.
9195 (rw_pieced_value): Update.
9196 (indirect_synthetic_pointer): Update.
9197 (dwarf2_evaluate_property): Update.
9198 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9199 parameter.
9200 (locexpr_read_variable): Update.
9201 (locexpr_get_symbol_read_needs): Update.
9202 (loclist_read_variable): Update.
9203
9204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9207 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9208 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9209 parameter.
9210 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9211 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9212 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9213 parameter.
9214 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9215 sect_variable_value): Add dwarf2_per_objfile parameter.
9216 (class dwarf_evaluate_loc_desc) <dwarf_call,
9217 dwarf_variable_value>: Update.
9218 (fetch_const_value_from_synthetic_pointer): Add
9219 dwarf2_per_objfile parameter.
9220 (fetch_const_value_from_synthetic_pointer): Update.
9221 (coerced_pieced_ref): Update.
9222 (class symbol_needs_eval_context) <dwarf_call,
9223 dwarf_variable_value>: Update.
9224 (dwarf2_compile_expr_to_ax): Update.
9225
9226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9229 parameter.
9230 (dwarf2_evaluate_loc_desc_full): Update.
9231
9232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9235 parameter.
9236 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9237 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9238 dwarf2_per_objfile parameter.
9239 (decode_debug_loc_dwo_addresses): Likewise.
9240 (dwarf2_find_location_expression): Update.
9241 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9242 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9243 parameter.
9244 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9245 parameter.
9246 (locexpr_describe_location_1): Likewise.
9247 (locexpr_describe_location): Update.
9248
9249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9252 Remove.
9253 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9254 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9255 (dwarf2_compile_property_to_c): Update.
9256 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9257 use text offset from objfile.
9258 (locexpr_tracepoint_var_ref): Update.
9259 (locexpr_generate_c_location): Update.
9260 (loclist_describe_location): Update.
9261 (loclist_tracepoint_var_ref): Update.
9262 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9263 dwarf2_per_objfile parameter.
9264 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9265 use text offset from objfile.
9266 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9267
9268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * dwarf2/expr.h (struct dwarf_expr_context)
9271 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9272 <offset>: Remove.
9273 <per_objfile>: New member.
9274 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9275 dwarf2_per_objfile parameter. Don't set offset, set
9276 per_objfile.
9277 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9278 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9279 a dwarf2_per_objfile object instead of an offset.
9280 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9281 constructor.
9282 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9283 to dwarf2_expr_executor constructor. Don't set offset.
9284 (dwarf2_fetch_cfa_info): Update.
9285 (struct dwarf2_frame_cache) <text_offset>: Remove.
9286 <per_objfile>: New field.
9287 (dwarf2_frame_cache): Update.
9288 (dwarf2_frame_prev_register): Update.
9289 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9290 <dwarf_evaluate_loc_desc>: Add constructor.
9291 (dwarf2_evaluate_loc_desc_full): Update.
9292 (dwarf2_locexpr_baton_eval): Update.
9293 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9294 Add constructor.
9295 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9296
9297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9298
9299 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9300 addr_sized_int_type>: Move to dwarf2_cu.
9301 <int_type>: Move to dwarf2_per_objfile.
9302 (struct dwarf2_per_objfile) <int_type>: Move here.
9303 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9304 addr_sized_int_type>: Move here.
9305 (read_func_scope): Update.
9306 (read_array_type): Update.
9307 (read_tag_string_type): Update.
9308 (attr_to_dynamic_prop): Update.
9309 (dwarf2_per_cu_data::int_type): Rename to...
9310 (dwarf2_per_objfile::int_type): ... this.
9311 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9312 (dwarf2_cu::addr_sized_int_type): ... this.
9313 (read_subrange_type): Update.
9314 (dwarf2_per_cu_data::addr_type): Rename to...
9315 (dwarf2_cu::addr_type): ... this.
9316 (set_die_type): Update.
9317
9318 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9319
9320 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9321 data through per_cu->cu.
9322
9323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9324
9325 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9326 dwarf2_per_cu_data parameter fo dwarf2_cu.
9327 (lookup_dwo_type_unit): Likewise.
9328 (read_cutu_die_from_dwo): Likewise.
9329 (lookup_dwo_unit): Likewise.
9330 (open_and_init_dwo_file): Likewise.
9331 (lookup_dwo_cutu): Likewise.
9332 (lookup_dwo_comp_unit): Likewise.
9333 (lookup_dwo_type_unit): Likewise.
9334 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9335 (cutu_reader::cutu_reader): Update.
9336
9337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9340 parameter.
9341 (process_full_type_unit): Likewise.
9342 (process_queue): Update.
9343
9344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.c (recursively_compute_inclusions): Add
9347 dwarf2_per_objfile parameter.
9348 (compute_compunit_symtab_includes): Likewise.
9349 (process_cu_includes): Update.
9350
9351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9354 parameter.
9355 (create_type_unit_group): Update.
9356 (process_psymtab_comp_unit_reader): Update.
9357 (build_type_psymtabs_reader): Update.
9358
9359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9362 object through m_this_cu->cu.
9363
9364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9365
9366 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9367 the info parameter.
9368 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9369
9370 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9371
9372 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9373 per_objfile parameter.
9374 (load_full_type_unit): Add per_objfile parameter.
9375 (read_signatured_type): Likewise.
9376 (load_full_comp_unit): Likewise.
9377 (load_cu): Likewise.
9378 (dw2_do_instantiate_symtab): Likewise.
9379 (dw2_get_file_names): Likewise.
9380 (dw2_map_symtabs_matching_filename): Update.
9381 (dw_expand_symtabs_matching_file_matcher): Update.
9382 (dw2_map_symbol_filenames): Update.
9383 (process_psymtab_comp_unit): Add per_objfile parameter.
9384 (build_type_psymtabs_1): Update.
9385 (process_skeletonless_type_unit): Update.
9386 (dwarf2_build_psymtabs_hard): Update.
9387 (load_partial_comp_unit): Add per_objfile parameter.
9388 (scan_partial_symbols): Update.
9389 (load_full_comp_unit): Add per_objfile parameter.
9390 (process_imported_unit_die): Update.
9391 (create_cus_hash_table): Update.
9392 (find_partial_die): Update.
9393 (dwarf2_read_addr_index): Update.
9394 (follow_die_offset): Update.
9395 (dwarf2_fetch_die_loc_sect_off): Update.
9396 (dwarf2_fetch_constant_bytes): Update.
9397 (dwarf2_fetch_die_type_sect_off): Update.
9398 (follow_die_sig_1): Update.
9399 (load_full_type_unit): Add per_objfile parameter.
9400 (read_signatured_type): Likewise.
9401
9402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9405 of objfile_name.
9406
9407 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9408
9409 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9410 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9411 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9412 field.
9413 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9414 (create_cus_from_index): Update.
9415 (dwarf2_read_gdb_index): Update.
9416 (create_cus_from_debug_names): Update.
9417 (dwarf2_read_debug_names): Update.
9418 (get_abbrev_section_for_cu): Update.
9419 (create_all_comp_units): Update.
9420 (read_attribute_value): Update.
9421 (get_debug_line_section): Update.
9422 * dwarf2/index-cache.c (index_cache::store): Update.
9423 * dwarf2/index-write.c (save_gdb_index_command): Update.
9424 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9425
9426 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9427
9428 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9429 member.
9430 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9431 dwarf2_per_cu_data::per_bfd.
9432 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9433 (create_type_unit_group): Likewise.
9434 (queue_comp_unit): Remove reference to
9435 per_cu->dwarf2_per_objfile.
9436 (maybe_queue_comp_unit): Likewise.
9437 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9438 (create_cus_hash_table): Assign new field.
9439
9440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9441
9442 * dwarf2/read.c: Replace
9443 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9444 dwarf2_cu->per_objfile throughout.
9445
9446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9449 parameter, don't use per_cu->dwarf2_per_objfile.
9450 (dw2_instantiate_symtab): Likewise.
9451 (dw2_find_last_source_symtab): Update.
9452 (dw2_map_expand_apply): Update.
9453 (dw2_lookup_symbol): Update.
9454 (dw2_expand_symtabs_for_function): Update.
9455 (dw2_expand_all_symtabs): Update.
9456 (dw2_expand_symtabs_with_fullname): Update.
9457 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9458 don't use per_cu->dwarf2_per_objfile.
9459 (dw2_expand_marked_cus): Update.
9460 (dw2_find_pc_sect_compunit_symtab): Update.
9461 (dw2_debug_names_lookup_symbol): Update.
9462 (dw2_debug_names_expand_symtabs_for_function): Update.
9463 (dw2_debug_names_map_matching_symbols): Update.
9464 (dwarf2_psymtab::expand_psymtab): Update.
9465
9466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9469 <per_objfile>: New member.
9470 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9471 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9472 call to dwarf2_cu.
9473 (cutu_reader::cutu_reader): Update.
9474 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9475
9476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9477
9478 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9479 struct dwarf2_per_objfile.
9480 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9481 dwarf2_per_bfd.
9482 * dwarf2/read.c (set_die_type): Update.
9483 (get_die_type_at_offset): Update.
9484
9485 2020-05-27 Tom Tromey <tom@tromey.com>
9486 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9489 method.
9490 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9491 get_symtab, set_symtab>: New methods.
9492 <m_symtabs>: New field.
9493 (struct dwarf2_psymtab): Derive from partial_symtab.
9494 <readin_p, get_compunit_symtab>: Declare methods.
9495 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9496 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9497 New methods.
9498 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9499 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9500 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9501 (dw2_symtab_iter_next, dw2_print_stats)
9502 (dw2_expand_symtabs_with_fullname)
9503 (dw2_expand_symtabs_matching_one)
9504 (dw_expand_symtabs_matching_file_matcher)
9505 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9506 (dw2_debug_names_iterator::next)
9507 (dw2_debug_names_map_matching_symbols)
9508 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9509 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9510 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9511 New methods.
9512 (get_compunit_symtab, process_full_comp_unit)
9513 (process_full_type_unit): Update.
9514 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9515
9516 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9517
9518 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9519 then introduce a new dwarf2_per_objfile type.
9520 <read_line_string>: Move to the new dwarf2_per_objfile type.
9521 <objfile>: Likewise.
9522 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9523 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9524 dwarf2_per_objfile->per_bfd.
9525 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9526 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9527 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9528 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9529 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9530 (dwarf2_per_objfile::locate_sections): Rename to...
9531 (dwarf2_per_bfd::locate_sections): ... this.
9532 (dwarf2_per_objfile::get_cutu): Rename to...
9533 (dwarf2_per_bfd::get_cutu): ... this.
9534 (dwarf2_per_objfile::get_cu): Rename to...
9535 (dwarf2_per_bfd::get_cu): ... this.
9536 (dwarf2_per_objfile::get_tu): Rename to...
9537 (dwarf2_per_bfd::get_tu): ... this.
9538 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9539 (dwarf2_per_bfd::allocate_per_cu): ... this.
9540 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9541 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9542 (get_gdb_index_contents_ftype): Change parameter from
9543 dwarf2_per_objfile to dwarf2_per_bfd.
9544 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9545 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9546
9547 2020-05-27 Tom Tromey <tom@tromey.com>
9548 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9551 (allocate_piece_closure): Set "per_objfile" member.
9552 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9553 (locexpr_describe_location, loclist_describe_location): Use new
9554 member.
9555 * dwarf2/read.c (read_call_site_scope)
9556 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9557 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9558 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9559 handle_data_member_location): Set per_objfile member.
9560 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9561 member.
9562 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9563
9564 2020-05-27 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9567 allocate_signatured_type>: Declare new methods.
9568 <m_num_psymtabs>: New member.
9569 (struct dwarf2_per_cu_data) <index>: New member.
9570 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9571 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9572 (create_cu_from_index_list): Use allocate_per_cu.
9573 (create_signatured_type_table_from_index)
9574 (create_signatured_type_table_from_debug_names)
9575 (create_debug_type_hash_table, add_type_unit)
9576 (read_comp_units_from_section): Use allocate_signatured_type.
9577
9578 2020-05-27 Tom Tromey <tom@tromey.com>
9579
9580 * psymtab.c (partial_map_expand_apply)
9581 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9582 (psym_lookup_global_symbol_language)
9583 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9584 (psym_print_stats, psym_expand_symtabs_for_function)
9585 (psym_map_symbol_filenames, psym_map_matching_symbols)
9586 (psym_expand_symtabs_matching)
9587 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9588 (maintenance_check_psymtabs): Update.
9589 * psympriv.h (struct partial_symtab) <readin_p,
9590 get_compunit_symtab>: Add objfile parameter.
9591 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9592 Likewise.
9593 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9594 get_compunit_symtab>: Likewise.
9595 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9596
9597 2020-05-27 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9600 member.
9601 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9602 (create_cu_from_index_list)
9603 (create_signatured_type_table_from_index)
9604 (create_signatured_type_table_from_debug_names)
9605 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9606 (dwarf2_create_include_psymtab)
9607 (create_debug_type_hash_table, add_type_unit)
9608 (create_type_unit_group, read_comp_units_from_section)
9609 (dwarf2_compute_name, create_cus_hash_table)
9610 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9611 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9612 obstack.
9613 (dw2_get_real_path): Likewise. Change argument to
9614 dwarf2_per_objfile.
9615
9616 2020-05-27 Luis Machado <luis.machado@linaro.org>
9617
9618 PR tdep/26000
9619 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9620 for ldrd (immediate).
9621
9622 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9623
9624 * command.h: Add comment giving the name of class_tui.
9625 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9626 create the fake command for the help for class_tui.
9627
9628 2020-05-26 Tom Tromey <tromey@adacore.com>
9629
9630 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9631 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9632 (val_atr): New function.
9633 (value_val_atr): Use it.
9634 * ada-valprint.c (print_optional_low_bound): Change low bound
9635 handling for enums.
9636 (val_print_packed_array_elements): Don't call discrete_position.
9637 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9638 discrete_position for enum types.
9639 * language.c (default_print_array_index): Change type.
9640 * language.h (struct language_defn) <la_print_array_index>: Add
9641 index_type parameter, change type of index_value.
9642 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9643 (default_print_array_index): Update.
9644 * valprint.c (maybe_print_array_index): Don't call
9645 value_from_longest. Update.
9646 (value_print_array_elements): Don't call discrete_position.
9647
9648 2020-05-26 Tom Tromey <tromey@adacore.com>
9649
9650 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9651 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9652
9653 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9654
9655 PR gdb/13519
9656 * avr-tdep.c (avr_integer_to_address): Return data or code
9657 address accordingly to the second 'type' argument of the
9658 function.
9659
9660 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9661
9662 * infcmd.c, inferior.h: (construct_inferior_arguments):
9663 Moved function from here to gdbsupport/common-inferior.{h,cc}
9664
9665 2020-05-23 Tom Tromey <tom@tromey.com>
9666
9667 Revert commit eca1f90c:
9668 * NEWS: Remove entry for completion styling.
9669 * completer.c (_rl_completion_prefix_display_length): Move
9670 declaration later.
9671 (gdb_fnprint): Revert.
9672 (gdb_display_match_list_1): Likewise.
9673 * cli/cli-style.c (completion_prefix_style)
9674 (completion_difference_style, completion_suffix_style): Remove.
9675 (_initialize_cli_style): Revert.
9676 * cli/cli-style.h (completion_prefix_style)
9677 (completion_difference_style, completion_suffix_style): Don't
9678 declare.
9679
9680 2020-05-24 Pedro Alves <palves@redhat.com>
9681
9682 * symtab.c (completion_list_add_name): Return boolean indication
9683 of whether the symbol matched.
9684 (completion_list_add_symbol): Don't try to remove C++ aliases if
9685 the symbol didn't match in the first place.
9686 * symtab.h (completion_list_add_name): Return bool.
9687
9688 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9689
9690 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9691 type::field.
9692
9693 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9694
9695 GDB 9.2 released.
9696
9697 2020-05-23 Tom Tromey <tom@tromey.com>
9698
9699 * NEWS: Add entry for completion styling.
9700 * completer.c (_rl_completion_prefix_display_length): Move
9701 declaration earlier.
9702 (gdb_fnprint): Use completion_style.
9703 (gdb_display_match_list_1): Likewise.
9704 * cli/cli-style.c (completion_prefix_style)
9705 (completion_difference_style, completion_suffix_style): New
9706 globals.
9707 (_initialize_cli_style): Register new globals.
9708 * cli/cli-style.h (completion_prefix_style)
9709 (completion_difference_style, completion_suffix_style): Declare.
9710
9711 2020-05-23 Pedro Alves <palves@redhat.com>
9712
9713 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9714 (parse_escape): Use ISDIGIT instead of isdigit.
9715 (puts_debug): Use gdb_isprint instead of isprint.
9716 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9717 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9718 ISSPACE instead of isspace.
9719 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9720 instead of isspace.
9721 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9722 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9723 instead of isxdigit and ISDIGIT instead of isdigit.
9724
9725 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * gdbtypes.h (struct type) <field>: New method.
9728 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9729 or type::field.
9730
9731 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9732
9733 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9734 (TYPE_FIELDS): Use type::fields. Change all call sites that
9735 modify the propery to use type::set_fields instead.
9736
9737 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9740 type::num_fields instead.
9741
9742 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9745 methods.
9746 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9747 that modify the number of fields to use type::set_num_fields
9748 instead.
9749
9750 2020-05-22 Tom Tromey <tromey@adacore.com>
9751
9752 * compile/compile-object-load.h (munmap_list_free): Don't
9753 declare.
9754
9755 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9756
9757 * annotate.c (annotate_source_line): Update return type, add call
9758 to update current symtab and line.
9759 * annotate.h (annotate_source_line): Update return type, and
9760 extend header comment.
9761 * source.c (info_line_command): Check annotation_level before
9762 calling annotate_source_line.
9763 * stack.c (print_frame_info): If calling annotate_source_line
9764 returns true, then don't print any other source line information.
9765
9766 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9769
9770 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * coffread.c (patch_type): Remove NULL check before xfree.
9773 * corefile.c (set_gnutarget): Likewise.
9774 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9775 * exec.c (build_section_table): Likewise.
9776 * remote.c (remote_target::pass_signals): Likewise.
9777 * utils.c (n_spaces): Likewise.
9778 * cli/cli-script.c (document_command): Likewise.
9779 * i386-windows-tdep.c (core_process_module_section): Likewise.
9780 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9781
9782 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * symfile.c (reread_symbols): Clear objfile's section_offsets
9785 vector and section indices, re-compute them by calling
9786 sym_offsets.
9787
9788 2020-05-20 Tom Tromey <tromey@adacore.com>
9789
9790 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9791 (desc_one_bound, desc_index_type): Compute field name.
9792
9793 2020-05-20 Tom de Vries <tdevries@suse.de>
9794
9795 PR symtab/25833
9796 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9797
9798 2020-05-20 Alan Modra <amodra@gmail.com>
9799
9800 PR 25993
9801 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9802 bfd_set_filename.
9803 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9804 passed to bfd_set_filename.
9805 * symfile-mem.c (add_vsyscall_page): Likewise for string
9806 passed to symbol_file_add_from_memory.
9807 (symbol_file_add_from_memory): Make name param a const char* and
9808 don't strdup.
9809
9810 2020-05-20 Alan Modra <amodra@gmail.com>
9811
9812 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9813 rather than accessing bfd->filename directly.
9814 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9815 and use bfd_section_name.
9816 * dwarf2/frame.c (decode_frame_entry): Likewise.
9817 * exec.c (exec_set_section_address): Likewise.
9818 * solib-aix.c (solib_aix_bfd_open): Likewise.
9819 * stap-probe.c (get_stap_base_address): Likewise.
9820 * symfile.c (reread_symbols): Likewise.
9821
9822 2020-05-19 Tom Tromey <tromey@adacore.com>
9823
9824 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9825
9826 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9829
9830 2020-05-19 Pedro Alves <palves@redhat.com>
9831
9832 * NEWS (set exec-file-mismatch): Adjust entry.
9833 * exec.c: Include "build-id.h".
9834 (validate_exec_file): Try to match build IDs instead of filenames.
9835 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9836 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9837 and pass down 'warn_if_slow'.
9838 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9839 gdb_bfd_open_closure to pass it down.
9840 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9841
9842 2020-05-19 Pedro Alves <palves@redhat.com>
9843
9844 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9845 * target.c (target_fileio_open_1): Rename to target_fileio_open
9846 and make extern. Use bool.
9847 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9848 (target_fileio_read_alloc_1): Adjust.
9849 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9850 (target_fileio_open_warn_if_slow): Delete declaration.
9851
9852 2020-05-19 Pedro Alves <palves@redhat.com>
9853
9854 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9855 Adjust all callers.
9856
9857 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9858
9859 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9860 whether disp is negative.
9861
9862 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9863
9864 * symfile.h (struct symfile_segment_data)
9865 <~symfile_segment_data>: Remove.
9866 <segment_info>: Change to std::vector.
9867 * symfile.c (default_symfile_segments): Update.
9868 * elfread.c (elf_symfile_segments): Update.
9869
9870 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9871
9872 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9873 <segments>: New.
9874 <segment_bases, segment_sizes>: Remove.
9875 * symfile.c (default_symfile_segments): Update.
9876 * elfread.c (elf_symfile_segments): Update.
9877 * remote.c (remote_target::get_offsets): Update.
9878 * solib-target.c (solib_target_relocate_section_addresses):
9879 Update.
9880
9881 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * symfile.h (struct symfile_segment_data): Initialize fields.
9884 <~symfile_segment_data>: Add.
9885 (symfile_segment_data_up): New.
9886 (struct sym_fns) <sym_segments>: Return a
9887 symfile_segment_data_up.
9888 (default_symfile_segments): Return a symfile_segment_data_up.
9889 (free_symfile_segment_data): Remove.
9890 (get_symfile_segment_data): Return a symfile_segment_data_up.
9891 * symfile.c (default_symfile_segments): Likewise.
9892 (get_symfile_segment_data): Likewise.
9893 (free_symfile_segment_data): Remove.
9894 (symfile_find_segment_sections): Update.
9895 * elfread.c (elf_symfile_segments): Return a
9896 symfile_segment_data_up.
9897 * remote.c (remote_target::get_offsets): Update.
9898 * solib-target.c (solib_target_relocate_section_addresses):
9899 Update.
9900 * symfile-debug.c (debug_sym_segments): Return a
9901 symfile_segment_data_up.
9902
9903 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9904
9905 PR build/25981
9906 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9907 Hardcode register numbers.
9908
9909 PR build/25981
9910 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9911 procfs_find_LDT_entry): Remove.
9912 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9913 procfs_find_LDT_entry): Remove.
9914 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9915 Remove.
9916
9917 2020-05-17 Pedro Alves <palves@redhat.com>
9918 Andrew Burgess <andrew.burgess@embecosm.com>
9919 Keno Fischer <keno@juliacomputing.com>
9920
9921 PR gdb/25741
9922 * breakpoint.c (build_target_condition_list): Update comments.
9923 (build_target_command_list): Update comments and skip matching
9924 locations.
9925 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9926 a separate function. Simplify "set breakpoint auto-hw off"
9927 handling.
9928 (insert_breakpoints): Update comment.
9929 (tracepoint_locations_match): New parameter. For breakpoints,
9930 compare location types too, if the caller wants to.
9931 (handle_automatic_hardware_breakpoints): New functions.
9932 (bp_location_is_less_than): Also sort by location type and
9933 hardware breakpoint length.
9934 (update_global_location_list): Handle "set breakpoint auto-hw on"
9935 here.
9936 (update_breakpoint_locations): Ask breakpoint_locations_match to
9937 ignore location types.
9938
9939 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9940
9941 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9942 type::name instead.
9943
9944 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9945
9946 * gdbtypes.h (struct type) <name, set_name>: New methods.
9947 (TYPE_CODE): Use type::name. Change all call sites used to set
9948 the name to use type::set_name instead.
9949
9950 2020-05-16 Tom Tromey <tom@tromey.com>
9951
9952 * top.c (quit_force): Update.
9953 * infrun.c (handle_no_resumed): Update.
9954 * top.h (all_uis): New function.
9955 (ALL_UIS): Remove.
9956
9957 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9960
9961 2020-05-16 Pedro Alves <palves@redhat.com>
9962
9963 * ia64-linux-nat.c
9964 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9965 Declare method.
9966 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9967
9968 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9969
9970 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9971 (sparc64_adi_info): Likewise.
9972
9973 2020-05-15 Tom Tromey <tom@tromey.com>
9974
9975 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9976 block_objfile.
9977 (lookup_objfile_from_block): Remove.
9978 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9979 (lookup_global_symbol): Use block_objfile.
9980 * symtab.h (lookup_objfile_from_block): Don't declare.
9981 * printcmd.c (clear_dangling_display_expressions): Use
9982 block_objfile.
9983 * parse.c (operator_check_standard): Use block_objfile.
9984
9985 2020-05-15 Tom Tromey <tom@tromey.com>
9986
9987 * language.c (language_alloc_type_symbol): Set
9988 SYMBOL_SECTION.
9989 * symtab.c (initialize_objfile_symbol): Remove.
9990 (allocate_symbol): Remove.
9991 (allocate_template_symbol): Remove.
9992 * dwarf2/read.c (fixup_go_packaging): Use "new".
9993 (new_symbol): Use "new".
9994 (read_variable): Don't call initialize_objfile_symbol. Use
9995 "new".
9996 (read_func_scope): Use "new".
9997 * xcoffread.c (process_xcoff_symbol): Don't call
9998 initialize_objfile_symbol.
9999 (SYMBOL_DUP): Remove.
10000 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10001 "new".
10002 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10003 (allocate_template_symbol): Don't declare.
10004 (struct symbol): Add copy constructor. Change defaults.
10005 * jit.c (finalize_symtab): Use "new".
10006 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10007 Use "new".
10008 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10009 (common_block_end): Use "new".
10010 * mdebugread.c (parse_symbol): Use "new".
10011 (new_symbol): Likewise.
10012
10013 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10014
10015 * NEWS: Mention changes to help and apropos.
10016
10017 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10018
10019 * command.h (enum command_class): Improve comments, document
10020 that class_alias is for user-defined aliases, give the class
10021 name for each class, remove unused class_xdb.
10022 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10023 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10024 by a precise class.
10025 * infcmd.c (_initialize_infcmd): Likewise.
10026 * reverse.c (_initialize_reverse): Likewise.
10027 * stack.c (_initialize_stack): Likewise.
10028 * symfile.c (_initialize_symfile): Likewise.
10029 * tracepoint.c (_initialize_tracepoint): Likewise.
10030
10031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10032
10033 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10034 when their aliased command is traversed.
10035 (help_cmd): Add fput_command_names_styled call to
10036 output command name and aliases when command has an alias.
10037
10038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10039
10040 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10041 * cli/cli-decode.c (help_cmd_list): Declare as static,
10042 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10043 a command together with the command.
10044 (fput_command_name_styled, fput_command_names_styled): New functions.
10045 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10046 fput_command_name_styled.
10047 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10048 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10049
10050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10051
10052 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10053 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10054 * command.h (cmd_show_list): Likewise.
10055 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10056 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10057
10058 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10059
10060 * unittests/command-def-selftests.c (traverse_command_structure):
10061 Verify all commands of a list have the same prefix command and
10062 that only the top cmdlist commands have a null prefix.
10063
10064 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10065
10066 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10067 as prefix, not one of its aliases.
10068 (set_cmd_prefix): Remove.
10069 (do_add_cmd): Centralize the setting of the prefix of a command, when
10070 command is defined after its full chain of prefix commands.
10071 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10072 (add_setshow_cmd_full): Likewise.
10073 (update_prefix_field_of_prefixed_commands): New function.
10074 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10075 update_prefix_field_of_prefixed_commands.
10076 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10077 addresses of remote_set_cmdlist and remote_show_cmdlist given
10078 as argument, not the address of an argument.
10079 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10080 * gdb/remote.c (_initialize_remote): Likewise.
10081
10082 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10083
10084 * cli/cli-cmds.c (alias_command): Check for an existing alias
10085 using lookup_cmd_composition, as valid_command_p is too strict
10086 and forbids aliases that are the prefix of an existing alias
10087 or command.
10088 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10089 command is properly recognised as a valid command.
10090
10091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10092
10093 * unittests/help-doc-selftests.c: Rename to
10094 unittests/command-def-selftests.c
10095 * unittests/command-def-selftests.c (help_doc_tests): Update some
10096 comments.
10097 (command_structure_tests, traverse_command_structure): New namespace
10098 and function.
10099 (command_structure_invariants_tests): New function.
10100 (_initialize_command_def_selftests) Renamed from
10101 _initialize_help_doc_selftests, register command_structure_invariants
10102 selftest.
10103
10104 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10105
10106 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10107 an alias of 'show'.
10108
10109 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10110
10111 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10112 ada_is_fixed_point_type. Update all callers.
10113 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10114 all callers.
10115 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10116 Update all callers.
10117 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10118 print_fixed_point_type. Update all callers.
10119 * ada-valprint.c (ada_value_print_num): Replace call to
10120 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10121
10122 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10123
10124 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10125 processors.
10126 (cpu_supports_bts): Add CV_AMD case.
10127
10128 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10129 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * infrun.c (stop_all_threads): Collect multiple wait events at
10132 each pass.
10133
10134 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10137 type::code instead.
10138
10139 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * gdbtypes.h (struct type) <code, set_code>: New methods.
10142 (TYPE_CODE): Use type::code. Change all call sites used to set
10143 the code to use type::set_code instead.
10144
10145 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10146 Tom de Vries <tdevries@suse.de>
10147 Pedro Alves <palves@redhat.com>
10148
10149 PR threads/25478
10150 * infrun.c (stop_all_threads): Do NOT ignore
10151 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10152 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10153 received.
10154 (handle_no_resumed): Remove code handling a live inferior with no
10155 threads.
10156 * remote.c (has_single_non_exited_thread): New.
10157 (remote_target::update_thread_list): Do not delete a thread if is
10158 the last thread of the process.
10159 * thread.c (thread_select): Call delete_exited_threads instead of
10160 prune_threads.
10161
10162 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10163
10164 * infrun.c (stop_all_threads): Enable/disable thread events of all
10165 targets. Move a debug message denoting the end of the function
10166 into the SCOPED_EXIT block.
10167
10168 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10169
10170 * process-stratum-target.h: Include <set>.
10171 (all_non_exited_process_targets, switch_to_target_no_thread): New
10172 function declarations.
10173 * process-stratum-target.c (all_non_exited_process_targets)
10174 (switch_to_target_no_thread): New function implementations.
10175
10176 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10177
10178 * infrun.c (handle_inferior_event): Extract out a piece of code
10179 into...
10180 (mark_non_executing_threads): ...this new function.
10181
10182 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10183
10184 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10185 use.
10186
10187 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10188
10189 * regcache.c (regcache_read_pc_protected): New function
10190 implementation that returns 0 if the PC cannot read via
10191 'regcache_read_pc'.
10192 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10193 instead of 'regcache_read_pc'.
10194 (keep_going_pass_signal): Ditto.
10195
10196 2020-05-13 Tom Tromey <tromey@adacore.com>
10197
10198 * ada-lang.c (align_value): Remove.
10199 (ada_template_to_fixed_record_type_1): Use align_up.
10200
10201 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10202
10203 * async-event.c: Update the copyright year.
10204 * async-event.h: Update the copyright year.
10205
10206 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * objfiles.h (is_addr_in_objfile,
10209 shared_objfile_contains_address_p): Return bool.
10210 * objfile.c (is_addr_in_objfile,
10211 shared_objfile_contains_address_p): Return bool.
10212
10213 2020-05-11 Tom Tromey <tromey@adacore.com>
10214
10215 * cli/cli-cmds.c (info_command): Restore.
10216 (_initialize_cli_cmds): Use add_prefix_command for "info".
10217 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10218
10219 2020-05-11 Tom Tromey <tromey@adacore.com>
10220
10221 * ada-lang.c (ada_value_primitive_field): Now public.
10222 * ada-lang.h (ada_value_primitive_field): Declare.
10223 * ada-valprint.c (print_field_values): Use
10224 ada_value_primitive_field for wrapper fields.
10225
10226 2020-05-11 Tom de Vries <tdevries@suse.de>
10227
10228 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10229 MODULE_DOMAIN.
10230
10231 2020-05-11 Tom de Vries <tdevries@suse.de>
10232
10233 PR symtab/25941
10234 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10235 with length 0, if not gdb-produced.
10236 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10237
10238 2020-05-09 Tom de Vries <tdevries@suse.de>
10239
10240 PR gdb/25955
10241 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10242 calculation.
10243
10244 2020-05-09 Tom Tromey <tom@tromey.com>
10245
10246 * top.c (server_command): Now bool.
10247 * top.h (server_command): Now bool.
10248
10249 2020-05-08 Tom Tromey <tromey@adacore.com>
10250
10251 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10252 already being processed.
10253
10254 2020-05-08 Tom Tromey <tom@tromey.com>
10255
10256 * printcmd.c (struct display) <next>: Remove.
10257 <display>: New constructor.
10258 <exp_string>: Now a std::string.
10259 <enabled_p>: Now a bool.
10260 (display_number): Move definition earlier.
10261 (displays): Rename from display_chain. Now a std::vector.
10262 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10263 (display_command): Update.
10264 (do_one_display, disable_display)
10265 (enable_disable_display_command, do_enable_disable_display):
10266 Update.
10267 (free_display): Remove.
10268 (clear_displays): Rewrite.
10269 (delete_display): Update.
10270 (map_display_numbers): Use function_view. Remove "data"
10271 parameter. Update.
10272 (do_delete_display): Remove.
10273 (undisplay_command): Update.
10274 (do_one_display, do_displays, disable_display)
10275 (info_display_command): Update.
10276 (do_enable_disable_display): Remove.
10277 (enable_disable_display_command)
10278 (clear_dangling_display_expressions): Update.
10279
10280 2020-05-08 Tom Tromey <tom@tromey.com>
10281
10282 * symtab.c (set_symbol_cache_size)
10283 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10284 (maintenance_print_symbol_cache_statistics): Update.
10285 * symmisc.c (print_symbol_bcache_statistics)
10286 (print_objfile_statistics, maintenance_print_objfiles)
10287 (maintenance_info_symtabs, maintenance_check_symtabs)
10288 (maintenance_expand_symtabs, maintenance_info_line_tables):
10289 Update.
10290 * symfile-debug.c (set_debug_symfile): Update.
10291 * source.c (forget_cached_source_info): Update.
10292 * python/python.c (gdbpy_progspaces): Update.
10293 * psymtab.c (maintenance_info_psymtabs): Update.
10294 * probe.c (parse_probes): Update.
10295 * linespec.c (iterate_over_all_matching_symtabs)
10296 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10297 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10298 * exec.c (exec_target::close): Update.
10299 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10300 * breakpoint.c (print_one_breakpoint_location)
10301 (create_longjmp_master_breakpoint)
10302 (create_std_terminate_master_breakpoint): Update.
10303 * progspace.c (program_spaces): Now a std::vector.
10304 (maybe_new_address_space): Update.
10305 (add_program_space): Remove.
10306 (program_space::program_space): Update.
10307 (remove_program_space): Update.
10308 (number_of_program_spaces): Remove.
10309 (print_program_space, update_address_spaces): Update.
10310 * progspace.h (program_spaces): Change type.
10311 (ALL_PSPACES): Remove.
10312 (number_of_program_spaces): Don't declare.
10313 (struct program_space) <next>: Remove.
10314
10315 2020-05-08 Tom Tromey <tom@tromey.com>
10316
10317 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10318 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10319 (enable_break): Update.
10320 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10321 (frv_fdpic_find_canonical_descriptor): Update.
10322 (frv_fetch_objfile_link_map): Update.
10323 * progspace.c (program_space::free_all_objfiles): Update.
10324 (program_space::solibs): New method.
10325 * progspace.h (struct program_space) <solibs>: New method.
10326 * solist.h (master_so_list): Don't declare.
10327 (ALL_SO_LIBS): Remove.
10328 * solib.h (so_list_head): Remove.
10329 (update_solib_list): Update comment.
10330 * solib.c (master_so_list): Remove.
10331 (solib_used, update_solib_list, solib_add)
10332 (info_sharedlibrary_command, clear_solib)
10333 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10334
10335 2020-05-08 Tom Tromey <tom@tromey.com>
10336
10337 * extension.c (extension_languages): Now a std::array.
10338 (ALL_EXTENSION_LANGUAGES): Remove.
10339 (get_ext_lang_defn, get_ext_lang_of_file)
10340 (eval_ext_lang_from_control_command): Update.
10341 (finish_ext_lang_initialization)
10342 (auto_load_ext_lang_scripts_for_objfile)
10343 (ext_lang_type_printers::ext_lang_type_printers)
10344 (apply_ext_lang_type_printers)
10345 (ext_lang_type_printers::~ext_lang_type_printers)
10346 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10347 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10348 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10349 (get_matching_xmethod_workers, ext_lang_colorize)
10350 (ext_lang_before_prompt): Update.
10351 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10352
10353 2020-05-08 Tom Tromey <tom@tromey.com>
10354
10355 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10356 overload.
10357 <swap_string, m_string>: Remove.
10358 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10359 Update.
10360 * stabsread.c (define_symbol, read_type): Update.
10361 * linespec.c (find_linespec_symbols): Update.
10362 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10363 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10364 * dbxread.c (read_dbx_symtab): Update.
10365 * cp-support.h (cp_canonicalize_string_full)
10366 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10367 Return unique_xmalloc_ptr.
10368 * cp-support.c (inspect_type): Update.
10369 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10370 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10371 Likewise.
10372 * c-typeprint.c (print_name_maybe_canonical): Update.
10373 * break-catch-throw.c (check_status_exception_catchpoint):
10374 Update.
10375
10376 2020-05-08 Tom de Vries <tdevries@suse.de>
10377
10378 * infrun.c (follow_fork): Copy current_line and current_symtab to
10379 child thread.
10380
10381 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * async-event.c (struct async_signal_handler, struct
10384 async_event_handler): Reformat, remove typedef.
10385
10386 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10389 access thistype->main_type->dyn_prop_list directly.
10390
10391 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10394 (remove_dyn_prop): Remove. Update all users to use
10395 type::remove_dyn_prop.
10396 * gdbtypes.c (remove_dyn_prop): Rename to...
10397 (type::remove_dyn_prop): ... this.
10398
10399 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10400
10401 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10402 (add_dyn_prop): Remove. Update all users to use
10403 type::add_dyn_prop.
10404 * gdbtypes.c (add_dyn_prop): Rename to...
10405 (type::add_dyn_prop): ... this.
10406
10407 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10408
10409 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10410 (get_dyn_prop): Remove. Update all users to use
10411 type::dyn_prop.
10412 * gdbtypes.c (get_dyn_prop): Rename to...
10413 (type::dyn_prop): ... this.
10414
10415 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10416
10417 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10418
10419 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10422 instruction, skip it if it's there.
10423
10424 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10427
10428 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10429
10430 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10431 * gdbtypes.c (recursive_dump_type): Remove use of
10432 TYPE_INCOMPLETE.
10433
10434 2020-05-03 Tom Tromey <tom@tromey.com>
10435
10436 * breakpoint.c (catch_command, tcatch_command): Remove.
10437 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10438 add_show_prefix_cmd.
10439 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10440 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10441 Remove.
10442 (add_internal_problem_command): Use add_basic_prefix_cmd,
10443 add_show_prefix_cmd.
10444 * mips-tdep.c (set_mipsfpu_command): Remove.
10445 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10446 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10447 (_initialize_index_cache): Use add_basic_prefix_cmd.
10448 * memattr.c (dummy_cmd): Remove.
10449 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10450 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10451 (_initialize_tui_win): Use add_basic_prefix_cmd,
10452 add_show_prefix_cmd.
10453 * cli/cli-logging.c (set_logging_command): Remove.
10454 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10455 add_show_prefix_cmd.
10456 (show_logging_command): Remove.
10457 * target.c (target_command): Remove.
10458 (add_target): Use add_basic_prefix_cmd.
10459
10460 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10461
10462 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10463
10464 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10465
10466 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10467 info_command.
10468
10469 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10470
10471 * nbsd-nat.c (nbsd_enable_proc_events)
10472 (nbsd_nat_target::post_startup_inferior): Add.
10473 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10474 (nbsd_nat_target::update_thread_list): Rewrite.
10475 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10476 "PTRACE_LWP_CREATE".
10477 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10478
10479 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10480
10481 * stack.c (_initialize_stack): Remove duplicated creation
10482 of "frame" command and "f" alias.
10483
10484 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10485
10486 PR gdb/18706
10487 * gdbtypes.c (check_typedef): Calculate size of array of
10488 stubbed type.
10489
10490 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10491
10492 PR gdb/15559
10493 * i386-tdep.c (i386_push_dummy_call): Call
10494 i386_thiscall_push_dummy_call.
10495 (i386_thiscall_push_dummy_call): New function.
10496 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10497 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10498 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10499
10500 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10501
10502 * gdbarch.sh (do_read): Add shellcheck disable directive for
10503 warning SC2162.
10504
10505 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10506
10507 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10508 "referenced but not assigned" warning.
10509
10510 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * gdbarch.sh: Remove code that sets fallbackdefault.
10513
10514 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * gdbarch.sh: Use shell operators && and || instead of
10517 -a and -o.
10518
10519 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * gdbarch.sh: Use $(...) instead of `...`.
10522
10523 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * gdbarch.sh: Use double quotes around variables.
10526
10527 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * gdbarch.sh: Use %s with printf, instead of variables in the
10530 format string.
10531
10532 2020-04-29 Tom Tromey <tromey@adacore.com>
10533
10534 PR ada/25875:
10535 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10536 type fields here.
10537 (read_enumeration_type): Call
10538 update_enumeration_type_from_children later. Update comments.
10539 (process_enumeration_scope): Don't create type fields.
10540
10541 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10542
10543 * nbsd-tdep.c: Include "xml-syscall.h".
10544 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10545
10546 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10547
10548 * nbsd-nat.c: Include "sys/wait.h".
10549 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10550 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10551 (nbsd_nat_target::remove_exec_catchpoint)
10552 (nbsd_nat_target::set_syscall_catchpoint): Add.
10553 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10554 (nbsd_nat_target::insert_exec_catchpoint)
10555 (nbsd_nat_target::remove_exec_catchpoint)
10556 (nbsd_nat_target::set_syscall_catchpoint): Add.
10557 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10558 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10559 `nbsd_get_syscall_number'.
10560
10561 2020-04-29 Tom Tromey <tom@tromey.com>
10562
10563 * stack.c (print_block_frame_labels): Remove.
10564
10565 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10566
10567 PR gdb/17320
10568 * ada-valprint.c (val_print_packed_array_elements): Move array
10569 end bracket to new line.
10570 (ada_val_print_string): Remove extra spaces before first array
10571 element.
10572 * c-valprint.c (c_value_print_array): Likewise.
10573 * m2-valprint.c (m2_print_array_contents): Likewise.
10574 (m2_value_print_inner): Likewise.
10575 * p-valprint.c (pascal_value_print_inner): Likewise.
10576 * valprint.c (generic_val_print_array): Likewise.
10577 (value_print_array_elements): Move first array element and array
10578 end bracket to new line.
10579
10580 2020-04-29 Tom de Vries <tdevries@suse.de>
10581
10582 PR symtab/25889
10583 * linespec.c (find_method): Fix ix calculation.
10584
10585 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10586
10587 * syscalls/update-netbsd.sh: New file.
10588 * syscalls/netbsd.xml: Regenerate.
10589 * data-directory/Makefile.in: Register `netbsd.xml' in
10590 `SYSCALLS_FILES'.
10591
10592 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * syscalls/update-freebsd.sh: Add double quotes.
10595
10596 2020-04-28 Tom Tromey <tom@tromey.com>
10597
10598 * NEWS: Update.
10599 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10600 (cmdpy_init): Allow class_tui.
10601
10602 2020-04-28 Mark Williams <mark@myosotissp.com>
10603
10604 PR gdb/24480
10605 * dwarf2read.c: Add missing assingments to list_in_scope when
10606 start_symtab was already called.
10607
10608 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10609
10610 PR gdb/25881
10611 * dwarf2/read.c (offset_map_type): Use
10612 gdb:hash_enum<sect_offset> as hash function.
10613
10614 2020-04-28 Tom de Vries <tdevries@suse.de>
10615
10616 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10617 with DW_AT_signature.
10618
10619 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * configure.ac: Remove check for fs_base/gs_base in
10622 user_regs_struct.
10623 * configure: Re-generate.
10624 * config.in: Re-generate.
10625 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10626 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10627 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10628
10629 2020-04-27 Luis Machado <luis.machado@linaro.org>
10630
10631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10632 problematic inline frame unwinding situation.
10633 * frame.c (frame_id_computed_p): New function.
10634 * frame.h (frame_id_computed_p): New prototype.
10635
10636 2020-04-26 Tom Tromey <tom@tromey.com>
10637
10638 * command.h (enum command_class) <class_pseudo>: Remove.
10639
10640 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10641
10642 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10643 and whitespace.
10644
10645 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10646
10647 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10648 `PT_GET_PROCESS_STATE' block.
10649
10650 2020-04-24 Tom Tromey <tom@tromey.com>
10651
10652 * symtab.h (symbol_get_demangled_name): Don't declare.
10653 * symtab.c (symbol_get_demangled_name): Remove.
10654 (general_symbol_info::natural_name)
10655 (general_symbol_info::demangled_name): Update.
10656
10657 2020-04-24 Tom Tromey <tom@tromey.com>
10658
10659 PR rust/25025:
10660 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10661
10662 2020-04-24 Tom Tromey <tom@tromey.com>
10663
10664 PR symtab/12707:
10665 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10666 exists.
10667 (new_symbol): Likewise.
10668 * compile/compile-object-load.c (get_out_value_type): Use
10669 symbol_matches_search_name.
10670
10671 2020-04-24 Tom Tromey <tom@tromey.com>
10672
10673 * dwarf2/read.c (add_partial_symbol): Do not call
10674 compute_and_set_names.
10675
10676 2020-04-24 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10679 overload.
10680
10681 2020-04-24 Tom Tromey <tom@tromey.com>
10682
10683 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10684 (add_psymbol_to_list): New overload. Make old overload call new
10685 one.
10686 * psympriv.h (add_psymbol_to_list): New overload.
10687
10688 2020-04-24 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2/read.c (partial_die_info::read) <case
10691 DW_AT_linkage_name>: Use value_as_string.
10692 (dwarf2_string_attr): Use value_as_string.
10693 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10694 method.
10695 * dwarf2/attribute.c (attribute::value_as_string): New method.
10696
10697 2020-04-24 Tom Tromey <tom@tromey.com>
10698
10699 * symtab.c (general_symbol_info::natural_name)
10700 (general_symbol_info::demangled_name): Check for language_rust.
10701
10702 2020-04-24 Tom Tromey <tom@tromey.com>
10703
10704 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10705 (dwarf2_physname): ... from here.
10706 (partial_die_info::read): Add Rust "{" hack.
10707
10708 2020-04-24 Tom Tromey <tom@tromey.com>
10709
10710 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10711 method.
10712 (symbol_set_demangled_name): Don't declare.
10713 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10714 symbol_set_demangled_name.
10715 (general_symbol_info::set_language)
10716 (general_symbol_info::compute_and_set_names): Update.
10717 * minsyms.c (minimal_symbol_reader::install): Update.
10718 * dwarf2/read.c (new_symbol): Update.
10719
10720 2020-04-24 Tom Tromey <tromey@adacore.com>
10721
10722 PR python/23662:
10723 * python/py-type.c (convert_field): Handle
10724 FIELD_LOC_KIND_DWARF_BLOCK.
10725 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10726 (typy_get_dynamic): Nw function.
10727 (type_object_getset): Add "dynamic".
10728 * NEWS: Add entry.
10729
10730 2020-04-24 Tom Tromey <tromey@adacore.com>
10731
10732 * ada-typeprint.c (print_choices, print_variant_part)
10733 (print_record_field_types_dynamic): New functions.
10734 (print_record_field_types): Use print_record_field_types_dynamic.
10735
10736 2020-04-24 Tom Tromey <tromey@adacore.com>
10737
10738 * dwarf2/read.c (handle_data_member_location): New overload.
10739 (dwarf2_add_field): Use it.
10740 (decode_locdesc): Add "computed" parameter. Update comment.
10741 * gdbtypes.c (is_dynamic_type_internal): Also look for
10742 FIELD_LOC_KIND_DWARF_BLOCK.
10743 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10744 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10745 virtual base classes.
10746 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10747 FIELD_LOC_KIND_DWARF_BLOCK.
10748
10749 2020-04-24 Tom Tromey <tromey@adacore.com>
10750
10751 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10752 * gdbtypes.c (is_dynamic_type_internal): Check
10753 TYPE_HAS_DYNAMIC_LENGTH.
10754 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10755 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10756 New macros.
10757 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10758 constant.
10759
10760 2020-04-24 Tom Tromey <tromey@adacore.com>
10761
10762 * dwarf2/read.c (struct variant_field): Rewrite.
10763 (struct variant_part_builder): New.
10764 (struct nextfield): Remove "variant" field. Add "offset".
10765 (struct field_info): Add "current_variant_part" and
10766 "variant_parts".
10767 (alloc_discriminant_info): Remove.
10768 (alloc_rust_variant): New function.
10769 (quirk_rust_enum): Update.
10770 (dwarf2_add_field): Set "offset" member. Don't handle
10771 DW_TAG_variant_part.
10772 (offset_map_type): New typedef.
10773 (convert_variant_range, create_one_variant)
10774 (create_one_variant_part, create_variant_parts)
10775 (add_variant_property): New functions.
10776 (dwarf2_attach_fields_to_type): Call add_variant_property.
10777 (read_structure_type): Don't handle DW_TAG_variant_part.
10778 (handle_variant_part, handle_variant): New functions.
10779 (handle_struct_member_die): Use them.
10780 (process_structure_scope): Don't handle variant parts.
10781 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10782 (struct discriminant_info): Remove.
10783 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10784 (struct main_type) <flag_discriminated_union>: Remove.
10785 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10786 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10787 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10788 Update.
10789 * valops.c (value_union_variant): Remove.
10790 * value.h (value_union_variant): Don't declare.
10791
10792 2020-04-24 Tom Tromey <tromey@adacore.com>
10793
10794 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10795 (ada_value_primitive_packed_val): Update.
10796 * ada-valprint.c (ada_value_print_1): Update.
10797 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10798 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10799 just an address. Use evaluate_for_locexpr_baton.
10800 (dwarf2_evaluate_property): Update.
10801 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10802 array_view.
10803 * findvar.c (default_read_var_value): Update.
10804 * gdbtypes.c (compute_variant_fields_inner)
10805 (resolve_dynamic_type_internal): Update.
10806 (resolve_dynamic_type): Change type of valaddr parameter.
10807 * gdbtypes.h (resolve_dynamic_type): Update.
10808 * valarith.c (value_subscripted_rvalue): Update.
10809 * value.c (value_from_contents_and_address): Update.
10810
10811 2020-04-24 Tom Tromey <tromey@adacore.com>
10812
10813 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10814 "push_initial_value" parameter.
10815 (dwarf2_evaluate_property): Likewise.
10816 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10817
10818 2020-04-24 Tom Tromey <tromey@adacore.com>
10819
10820 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10821 (variant::matches, compute_variant_fields_recurse)
10822 (compute_variant_fields_inner, compute_variant_fields): New
10823 functions.
10824 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10825 Use resolved_type after type is made.
10826 (operator==): Add new cases.
10827 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10828 (struct discriminant_range, struct variant, struct variant_part):
10829 New.
10830 (union dynamic_prop_data) <variant_parts, original_type>: New
10831 members.
10832 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10833 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10834 constants.
10835 * value.c (unpack_bits_as_long): Now public.
10836 * value.h (unpack_bits_as_long): Declare.
10837
10838 2020-04-24 Tom Tromey <tromey@adacore.com>
10839
10840 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10841 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10842
10843 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10844
10845 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10846
10847 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10848
10849 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10850 (remove_fork_catchpoint, post_startup_inferior)
10851 (post_attach): Move...
10852 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10853 (remove_fork_catchpoint, post_startup_inferior)
10854 (post_attach): ...here.
10855 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10856 (remove_fork_catchpoint, post_startup_inferior)
10857 (post_attach): Move...
10858 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10859 (remove_fork_catchpoint, post_startup_inferior)
10860 (post_attach): ...here.
10861
10862 2020-04-24 Tom Tromey <tromey@adacore.com>
10863
10864 * nat/windows-nat.h (struct windows_thread_info)
10865 <pc_adjusted>: New member.
10866 * windows-nat.c (windows_fetch_one_register): Check
10867 pc_adjusted.
10868 (windows_nat_target::get_windows_debug_event)
10869 (windows_nat_target::wait): Set pc_adjusted.
10870
10871 2020-04-24 Tom de Vries <tdevries@suse.de>
10872
10873 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10874 Run gdb-add-index inside temp dir.
10875
10876 2020-04-23 Tom Tromey <tromey@adacore.com>
10877
10878 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10879 in loop.
10880
10881 2020-04-23 Luis Machado <luis.machado@linaro.org>
10882
10883 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10884 get_frame_register instead of gdbarch_unwind_pc.
10885
10886 2020-04-23 Tom de Vries <tdevries@suse.de>
10887
10888 * symtab.c (lookup_global_symbol): Prefer def over decl.
10889
10890 2020-04-23 Tom de Vries <tdevries@suse.de>
10891
10892 PR symtab/25807
10893 * block.c (best_symbol, better_symbol): Promote to external.
10894 * block.h (best_symbol, better_symbol): Declare.
10895 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10896 decl.
10897
10898 2020-04-23 Tom Tromey <tromey@adacore.com>
10899
10900 PR ada/25837:
10901 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10902 "const char *", not a "const std::string &".
10903 <name_and_matcher::operator==>: Update.
10904 * unittests/lookup_name_info-selftests.c: Change type of
10905 "result".
10906
10907 2020-04-23 Tom Tromey <tom@tromey.com>
10908
10909 * inferior.h (iterate_over_inferiors): Don't declare.
10910 * inferior.c (iterate_over_inferiors): Remove.
10911 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10912 Remove.
10913 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10914 use iterate_over_inferiors.
10915 (darwin_resume_inferior_it)
10916 (struct resume_inferior_threads_param)
10917 (darwin_resume_inferior_threads_it): Remove.
10918 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10919
10920 2020-04-23 Tom de Vries <tdevries@suse.de>
10921
10922 * blockframe.c (find_pc_partial_function): Use
10923 find_pc_sect_compunit_symtab rather than
10924 objfile->sf->qf->find_pc_sect_compunit_symtab.
10925
10926 2020-04-22 Tom de Vries <tdevries@suse.de>
10927
10928 PR symtab/25764
10929 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10930 in psymtabs.
10931
10932 2020-04-22 Tom de Vries <tdevries@suse.de>
10933
10934 PR symtab/25801
10935 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10936 symtabs.
10937
10938 2020-04-22 Tom de Vries <tdevries@suse.de>
10939
10940 PR symtab/25700
10941 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10942 CU if already created.
10943
10944 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10945
10946 * infrun.c (displaced_step_fixup): Switch to the event_thread
10947 before calling displaced_step_restore, not after.
10948
10949 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10950
10951 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10952 its inferior is not recorded by us.
10953 (record_btrace_target_open): Replace call to
10954 all_non_exited_threads () with call to current_inferior
10955 ()->non_exited_threads ().
10956 (record_btrace_target::stop_recording): Likewise.
10957 (record_btrace_target::close): Likewise.
10958 (record_btrace_target::wait): Likewise.
10959 (record_btrace_target::record_stop_replaying): Likewise.
10960
10961 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10962
10963 * btrace.c (btrace_enable): Throw an error on double enables and
10964 when enabling recording fails.
10965 (btrace_disable): Throw an error if the thread is not recorded.
10966
10967 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10970 request if we do not have a thread_info.
10971
10972 2020-04-21 Tom de Vries <tdevries@suse.de>
10973
10974 PR gdb/25471
10975 * thread.c
10976 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10977 exception in get_frame_id.
10978
10979 2020-04-20 Tom Tromey <tromey@adacore.com>
10980
10981 * python/python.c (struct gdbpy_event): Mark move constructor as
10982 noexcept.
10983 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10984 constructor as noexcept.
10985 * completer.h (struct completion_result): Mark move constructor as
10986 noexcept.
10987 * completer.c (completion_result::completion_result): Use
10988 initialization style. Don't call reset_match_list.
10989
10990 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10991
10992 * MAINTAINERS (Write After Approval): Add myself.
10993
10994 2020-04-18 Tom Tromey <tom@tromey.com>
10995
10996 * windows-tdep.c (init_w32_command_list)
10997 (w32_prefix_command_valid): Restore.
10998 (_initialize_windows_tdep): Call init_w32_command_list.
10999
11000 2020-04-18 Tom Tromey <tom@tromey.com>
11001
11002 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11003 * value.c (value_fn_field): Update.
11004 * valops.c (find_function_in_inferior)
11005 (value_allocate_space_in_inferior): Update.
11006 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11007 Update.
11008 * tui/tui-source.c (tui_source_window::set_contents): Update.
11009 * symtab.c (lookup_global_or_static_symbol)
11010 (find_function_start_sal_1, skip_prologue_sal)
11011 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11012 * symmisc.c (dump_msymbols, dump_symtab_1)
11013 (maintenance_print_one_line_table): Update.
11014 * symfile.c (init_entry_point_info, section_is_mapped)
11015 (list_overlays_command, simple_read_overlay_table)
11016 (simple_overlay_update_1): Update.
11017 * stap-probe.c (handle_stap_probe): Update.
11018 * stabsread.c (dbx_init_float_type, define_symbol)
11019 (read_one_struct_field, read_enum_type, read_range_type): Update.
11020 * source.c (info_line_command): Update.
11021 * python/python.c (gdbpy_source_objfile_script)
11022 (gdbpy_execute_objfile_script): Update.
11023 * python/py-type.c (save_objfile_types): Update.
11024 * python/py-objfile.c (py_free_objfile): Update.
11025 * python/py-inferior.c (python_new_objfile): Update.
11026 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11027 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11028 (maintenance_check_psymtabs): Update.
11029 * printcmd.c (info_address_command): Update.
11030 * objfiles.h (struct objfile) <arch>: New method, from
11031 get_objfile_arch.
11032 (get_objfile_arch): Don't declare.
11033 * objfiles.c (get_objfile_arch): Remove.
11034 (filter_overlapping_sections): Update.
11035 * minsyms.c (msymbol_is_function): Update.
11036 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11037 (output_nondebug_symbol): Update.
11038 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11039 (mdebug_expand_psymtab): Update.
11040 * machoread.c (macho_add_oso_symfile): Update.
11041 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11042 Update.
11043 * linux-fork.c (checkpoint_command): Update.
11044 * linespec.c (convert_linespec_to_sals): Update.
11045 * jit.c (finalize_symtab): Update.
11046 * infrun.c (insert_exception_resume_from_probe): Update.
11047 * ia64-tdep.c (ia64_find_unwind_table): Update.
11048 * hppa-tdep.c (internalize_unwinds): Update.
11049 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11050 Update.
11051 * gcore.c (call_target_sbrk): Update.
11052 * elfread.c (record_minimal_symbol, elf_symtab_read)
11053 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11054 (elf_gnu_ifunc_resolve_by_got): Update.
11055 * dwarf2/read.c (create_addrmap_from_index)
11056 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11057 (read_debug_names_from_section)
11058 (process_psymtab_comp_unit_reader, add_partial_symbol)
11059 (add_partial_subprogram, process_full_comp_unit)
11060 (read_file_scope, read_func_scope, read_lexical_block_scope)
11061 (read_call_site_scope, dwarf2_ranges_read)
11062 (dwarf2_record_block_ranges, dwarf2_add_field)
11063 (mark_common_block_symbol_computed, read_tag_pointer_type)
11064 (read_tag_string_type, dwarf2_init_float_type)
11065 (dwarf2_init_complex_target_type, read_base_type)
11066 (partial_die_info::read, partial_die_info::read)
11067 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11068 (dwarf2_fetch_die_loc_sect_off): Update.
11069 * dwarf2/loc.c (dwarf2_find_location_expression)
11070 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11071 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11072 (dwarf2_loc_desc_get_symbol_read_needs)
11073 (locexpr_describe_location_piece, locexpr_describe_location_1)
11074 (loclist_describe_location): Update.
11075 * dwarf2/index-write.c (write_debug_names): Update.
11076 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11077 * dtrace-probe.c (dtrace_process_dof): Update.
11078 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11079 (process_one_symbol): Update.
11080 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11081 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11082 (coff_read_enum_type): Update.
11083 * cli/cli-cmds.c (edit_command, list_command): Update.
11084 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11085 * breakpoint.c (create_overlay_event_breakpoint)
11086 (create_longjmp_master_breakpoint)
11087 (create_std_terminate_master_breakpoint)
11088 (create_exception_master_breakpoint, get_sal_arch): Update.
11089 * block.c (block_gdbarch): Update.
11090 * annotate.c (annotate_source_line): Update.
11091
11092 2020-04-17 Tom Tromey <tromey@adacore.com>
11093
11094 * auto-load.c (show_auto_load_cmd): Remove.
11095 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11096 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11097 (maintenance_print_arc_command): Remove.
11098 * tui/tui-win.c (tui_command): Remove.
11099 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11100 * tui/tui-layout.c (tui_layout_command): Remove.
11101 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11102 * python/python.c (user_set_python, user_show_python): Remove.
11103 (_initialize_python): Use add_basic_prefix_cmd,
11104 add_show_prefix_cmd.
11105 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11106 (install_gdb_commands): Use add_basic_prefix_cmd,
11107 add_show_prefix_cmd.
11108 (info_guile_command): Remove.
11109 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11110 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11113 Remove do_set and do_show parameters.
11114 * cli/cli-style.c (set_style, show_style): Remove.
11115 (_initialize_cli_style): Use add_basic_prefix_cmd,
11116 add_show_prefix_cmd.
11117 (cli_style_option::add_setshow_commands): Remove do_set and
11118 do_show parameters.
11119 (cli_style_option::add_setshow_commands): Use
11120 add_basic_prefix_cmd, add_show_prefix_cmd.
11121 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11122 (set_style_name): Remove.
11123 * cli/cli-dump.c (dump_command, append_command): Remove.
11124 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11125 (tekhex_dump_command, binary_dump_command)
11126 (binary_append_command): Remove.
11127 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11128 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11129 (init_w32_command_list): Remove; move into ...
11130 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11131 * valprint.c (set_print, show_print, set_print_raw)
11132 (show_print_raw): Remove.
11133 (_initialize_valprint): Use add_basic_prefix_cmd,
11134 add_show_prefix_cmd.
11135 * typeprint.c (set_print_type, show_print_type): Remove.
11136 (_initialize_typeprint): Use add_basic_prefix_cmd,
11137 add_show_prefix_cmd.
11138 * record.c (set_record_command, show_record_command): Remove.
11139 (_initialize_record): Use add_basic_prefix_cmd,
11140 add_show_prefix_cmd.
11141 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11142 add_show_prefix_cmd.
11143 (info_command, show_command, set_debug, show_debug): Remove.
11144 * top.h (set_history, show_history): Don't declare.
11145 * top.c (set_history, show_history): Remove.
11146 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11147 (unset_tdesc_cmd): Remove.
11148 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11149 add_show_prefix_cmd.
11150 * symtab.c (info_module_command): Remove.
11151 (_initialize_symtab): Use add_basic_prefix_cmd.
11152 * symfile.c (overlay_command): Remove.
11153 (_initialize_symfile): Use add_basic_prefix_cmd.
11154 * sparc64-tdep.c (info_adi_command): Remove.
11155 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11156 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11157 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11158 add_show_prefix_cmd.
11159 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11160 (_initialize_serial): Use add_basic_prefix_cmd,
11161 add_show_prefix_cmd.
11162 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11163 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11164 add_show_prefix_cmd.
11165 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11166 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11167 add_show_prefix_cmd.
11168 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11169 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11170 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11171 add_show_prefix_cmd.
11172 * remote.c (remote_command, set_remote_cmd): Remove.
11173 (_initialize_remote): Use add_basic_prefix_cmd.
11174 * record-full.c (set_record_full_command)
11175 (show_record_full_command): Remove.
11176 (_initialize_record_full): Use add_basic_prefix_cmd,
11177 add_show_prefix_cmd.
11178 * record-btrace.c (cmd_set_record_btrace)
11179 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11180 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11181 (cmd_show_record_btrace_pt): Remove.
11182 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11183 add_show_prefix_cmd.
11184 * ravenscar-thread.c (set_ravenscar_command)
11185 (show_ravenscar_command): Remove.
11186 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11187 add_show_prefix_cmd.
11188 * mips-tdep.c (show_mips_command, set_mips_command)
11189 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11190 add_show_prefix_cmd.
11191 * maint.c (maintenance_command, maintenance_info_command)
11192 (maintenance_check_command, maintenance_print_command)
11193 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11194 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11195 add_show_prefix_cmd.
11196 (show_per_command_cmd): Remove.
11197 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11198 Remove.
11199 (maintenance_show_test_settings_cmd): Remove.
11200 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11201 add_show_prefix_cmd.
11202 * maint-test-options.c (maintenance_test_options_command):
11203 Remove.
11204 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11205 * macrocmd.c (macro_command): Remove
11206 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11207 * language.c (set_check, show_check): Remove.
11208 (_initialize_language): Use add_basic_prefix_cmd,
11209 add_show_prefix_cmd.
11210 * infcmd.c (unset_command): Remove.
11211 (_initialize_infcmd): Use add_basic_prefix_cmd.
11212 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11213 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11214 add_show_prefix_cmd.
11215 * go32-nat.c (go32_info_dos_command): Remove.
11216 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11217 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11218 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11219 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11220 (_initialize_frame): Use add_basic_prefix_cmd,
11221 add_show_prefix_cmd.
11222 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11223 (_initialize_dcache): Use add_basic_prefix_cmd,
11224 add_show_prefix_cmd.
11225 * cp-support.c (maint_cplus_command): Remove.
11226 (_initialize_cp_support): Use add_basic_prefix_cmd.
11227 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11228 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11229 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11230 add_basic_prefix_cmd, add_show_prefix_cmd.
11231 * breakpoint.c (save_command): Remove.
11232 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11233 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11234 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11235 add_show_prefix_cmd.
11236 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11237 (set_ada_command, show_ada_command): Remove.
11238 (_initialize_ada_language): Use add_basic_prefix_cmd,
11239 add_show_prefix_cmd.
11240 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11241
11242 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11243
11244 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11245 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11246
11247 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11248
11249 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11250 warning messages.
11251
11252 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11253
11254 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11255 import table is not at beginning of .idata section.
11256
11257 2020-04-16 Pedro Alves <palves@redhat.com>
11258
11259 * inferior.c (delete_inferior): Use delete operator directly
11260 instead of delete_program_space.
11261 * progspace.c (add_program_space): New, factored out from
11262 program_space::program_space.
11263 (remove_program_space): New, factored out from
11264 delete_program_space.
11265 (program_space::program_space): Remove intro comment. Rewrite.
11266 (program_space::~program_space): Remove intro comment. Call
11267 remove_program_space.
11268 (delete_program_space): Delete.
11269 * progspace.h (program_space::program_space): Make explicit. Move
11270 intro comment here, adjusted.
11271 (program_space::~program_space): Move intro comment here,
11272 adjusted.
11273 (delete_program_space): Remove.
11274
11275 2020-04-16 Tom Tromey <tromey@adacore.com>
11276
11277 * windows-nat.c (windows_nat::handle_access_violation): New
11278 function.
11279 * nat/windows-nat.h (handle_access_violation): Declare.
11280 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11281 windows-nat.c. Call handle_access_violation.
11282
11283 2020-04-16 Tom de Vries <tdevries@suse.de>
11284
11285 PR symtab/25791
11286 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11287 CUs without psymtab.
11288
11289 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11290
11291 * python/python.c (do_start_initialization): Don't call
11292 PyEval_InitThreads for Python 3.9 and beyond.
11293
11294 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11295
11296 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11297 thread functions.
11298 (obsd_nat_target::wait): Likewise.
11299
11300 2020-04-15 Tom Tromey <tromey@adacore.com>
11301
11302 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11303 (DEBUG_EXCEPT): Use debug_printf.
11304
11305 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11306
11307 * completer.c (class completion_tracker::completion_hash_entry)
11308 <hash_name>: New member function.
11309 (completion_tracker::discard_completions): New callback to hash a
11310 completion_hash_entry, pass this to htab_create_alloc.
11311
11312 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11313
11314 * windows-nat.c (windows_make_so): Warn rather than stopping with
11315 an error if realpath() fails.
11316
11317 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11318
11319 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11320 (nbsd_nat_target::info_proc): Add do_status.
11321
11322 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11323 Tom de Vries <tdevries@suse.de>
11324
11325 PR symtab/25718
11326 * psympriv.h (struct partial_symtab::read_symtab)
11327 (struct partial_symtab::expand_psymtab)
11328 (struct partial_symtab::read_dependencies): Update comments.
11329 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11330 read_symtab for includer.
11331 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11332 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11333 (struct dwarf2_include_psymtab::m_readin): Remove.
11334 (struct dwarf2_include_psymtab::includer): New member function.
11335 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11336
11337 2020-04-14 Tom de Vries <tdevries@suse.de>
11338
11339 PR symtab/25720
11340 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11341 with NULL symbol_matcher and lookup_name.
11342 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11343 and lookup_name.
11344 * dwarf2/read.c (dw2_expand_symtabs_matching)
11345 (dw2_debug_names_expand_symtabs_matching): Same.
11346 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11347 Make lookup_name a pointer. Update comment.
11348 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11349 lookup_name being a pointer.
11350 * symfile.c (expand_symtabs_matching): Same.
11351 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11352 * linespec.c (iterate_over_all_matching_symtabs): Same.
11353
11354 2020-04-13 Tom Tromey <tom@tromey.com>
11355
11356 * run-on-main-thread.c: Update include.
11357 * unittests/main-thread-selftests.c: Update include.
11358 * tui/tui-win.c: Update include.
11359 * tui/tui-io.c: Update include.
11360 * tui/tui-interp.c: Update include.
11361 * tui/tui-hooks.c: Update include.
11362 * top.h: Update include.
11363 * top.c: Update include.
11364 * ser-base.c: Update include.
11365 * remote.c: Update include.
11366 * remote-notif.c: Update include.
11367 * remote-fileio.c: Update include.
11368 * record-full.c: Update include.
11369 * record-btrace.c: Update include.
11370 * python/python.c: Update include.
11371 * posix-hdep.c: Update include.
11372 * mingw-hdep.c: Update include.
11373 * mi/mi-main.c: Update include.
11374 * mi/mi-interp.c: Update include.
11375 * main.c: Update include.
11376 * linux-nat.c: Update include.
11377 * interps.c: Update include.
11378 * infrun.c: Update include.
11379 * inf-loop.c: Update include.
11380 * event-top.c: Update include.
11381 * event-loop.c: Move to ../gdbsupport/.
11382 * event-loop.h: Move to ../gdbsupport/.
11383 * async-event.h: Update include.
11384 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11385
11386 2020-04-13 Tom Tromey <tom@tromey.com>
11387
11388 * tui/tui-win.c: Include async-event.h.
11389 * remote.c: Include async-event.h.
11390 * remote-notif.c: Include async-event.h.
11391 * record-full.c: Include async-event.h.
11392 * record-btrace.c: Include async-event.h.
11393 * infrun.c: Include async-event.h.
11394 * event-top.c: Include async-event.h.
11395 * event-loop.h: Move some declarations to async-event.h.
11396 * event-loop.c: Don't include ser-event.h or top.h. Move some
11397 code to async-event.c.
11398 * async-event.h: New file.
11399 * async-event.c: New file.
11400 * Makefile.in (COMMON_SFILES): Add async-event.c.
11401 (HFILES_NO_SRCDIR): Add async-event.h.
11402
11403 2020-04-13 Tom Tromey <tom@tromey.com>
11404
11405 * utils.c (flush_streams): New function.
11406 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11407
11408 2020-04-13 Tom Tromey <tom@tromey.com>
11409
11410 * event-loop.c (handle_file_event): Use warning, not
11411 printf_unfiltered.
11412
11413 2020-04-13 Tom Tromey <tom@tromey.com>
11414
11415 * event-loop.c: Include <chrono>.
11416
11417 2020-04-13 Tom Tromey <tom@tromey.com>
11418
11419 * gdb_select.h: Move to ../gdbsupport/.
11420 * event-loop.c: Update include path.
11421 * top.c: Update include path.
11422 * ser-base.c: Update include path.
11423 * ui-file.c: Update include path.
11424 * ser-tcp.c: Update include path.
11425 * guile/scm-ports.c: Update include path.
11426 * posix-hdep.c: Update include path.
11427 * ser-unix.c: Update include path.
11428 * gdb_usleep.c: Update include path.
11429 * mingw-hdep.c: Update include path.
11430 * inflow.c: Update include path.
11431 * infrun.c: Update include path.
11432 * event-top.c: Update include path.
11433
11434 2020-04-13 Tom Tromey <tom@tromey.com>
11435
11436 * configure: Rebuild.
11437 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11438
11439 2020-04-13 Tom Tromey <tom@tromey.com>
11440
11441 * event-loop.h (start_event_loop): Don't declare.
11442 * event-loop.c (start_event_loop): Move...
11443 * main.c (start_event_loop): ...here. Now static.
11444
11445 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11446
11447 * MAINTAINERS: Update my email address.
11448
11449 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11450
11451 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11452 IP_ALL.
11453
11454 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11455
11456 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11457 (nbsd_nat_target::info_proc): Add do_cmdline.
11458
11459 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11460
11461 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11462 (nbsd_nat_target::info_proc): Add do_cwd.
11463
11464 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11465
11466 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11467
11468 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11469
11470 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11471 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11472 (nbsd_nat_target::info_proc): New functions.
11473 * nbsd-nat.c (kinfo_get_vmmap): New function.
11474 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11475 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11476 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11477 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11478 functions.
11479 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11480 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11481 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11482 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11483 (KINFO_VME_FLAG_GROWS_DOWN): New.
11484
11485 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11486
11487 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11488 bit shift.
11489
11490 2020-04-10 Tom Tromey <tromey@adacore.com>
11491
11492 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11493
11494 2020-04-10 Tom Tromey <tromey@adacore.com>
11495
11496 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11497 separate debug files.
11498
11499 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11500
11501 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11502 Move to...
11503 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11504 ... here.
11505 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11506 Check for STATUS_WX86_BREAKPOINT.
11507 (windows_nat_target::wait): Same.
11508
11509 2020-04-10 Tom de Vries <tdevries@suse.de>
11510
11511 PR cli/25808
11512 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11513
11514 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11515
11516 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11517 (Write After Approval): Remove Tom de Vries.
11518
11519 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11520
11521 revert partially:
11522 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11523
11524 * buildsym.c (record_line): Fix undefined behavior and preserve
11525 lines at eof.
11526
11527 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11528
11529 * auxv.h (svr4_auxv_parse): New.
11530 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11531 and generic_auxv_parse.
11532 (svr4_auxv_parse): Add.
11533 * obsd-tdep.c: Include "auxv.h".
11534 (obsd_auxv_parse): Remove.
11535 (obsd_init_abi): Remove comment.
11536 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11537 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11538 * nbsd-tdep.c: Include "auxv.h".
11539 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11540
11541 2020-04-08 Tom Tromey <tromey@adacore.com>
11542
11543 * nat/windows-nat.h (last_wait_event): Don't declare.
11544 (wait_for_debug_event): Update comment.
11545 * nat/windows-nat.c (last_wait_event): Now static.
11546
11547 2020-04-08 Tom Tromey <tromey@adacore.com>
11548
11549 * windows-nat.c (wait_for_debug_event): Move to
11550 nat/windows-nat.c.
11551 * nat/windows-nat.h (wait_for_debug_event): Declare.
11552 * nat/windows-nat.c (wait_for_debug_event): Move from
11553 windows-nat.c. No longer static.
11554
11555 2020-04-08 Tom Tromey <tromey@adacore.com>
11556
11557 * windows-nat.c (get_windows_debug_event): Use
11558 fetch_pending_stop.
11559 * nat/windows-nat.h (fetch_pending_stop): Declare.
11560 * nat/windows-nat.c (fetch_pending_stop): New function.
11561
11562 2020-04-08 Tom Tromey <tromey@adacore.com>
11563
11564 * windows-nat.c (windows_continue): Use matching_pending_stop and
11565 continue_last_debug_event.
11566 * nat/windows-nat.h (matching_pending_stop)
11567 (continue_last_debug_event): Declare.
11568 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11569 (matching_pending_stop, continue_last_debug_event): New
11570 functions.
11571
11572 2020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11575 (handle_exception_result): Move to nat/windows-nat.h.
11576 (DEBUG_EXCEPTION_SIMPLE): Remove.
11577 (windows_nat::handle_ms_vc_exception): New function.
11578 (handle_exception): Move to nat/windows-nat.c.
11579 (get_windows_debug_event): Update.
11580 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11581 nat/windows-nat.c.
11582 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11583 (handle_exception_result): Move from windows-nat.c.
11584 (handle_exception): Declare.
11585 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11586 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11587 windows-nat.c.
11588
11589 2020-04-08 Tom Tromey <tromey@adacore.com>
11590
11591 * windows-nat.c (exception_count, event_count): Remove.
11592 (handle_exception, get_windows_debug_event)
11593 (do_initial_windows_stuff): Update.
11594
11595 2020-04-08 Tom Tromey <tromey@adacore.com>
11596
11597 * windows-nat.c (windows_nat::handle_load_dll)
11598 (windows_nat::handle_unload_dll): Rename. No longer static.
11599 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11600 Declare.
11601
11602 2020-04-08 Tom Tromey <tromey@adacore.com>
11603
11604 * complaints.h (stop_whining): Declare at top-level.
11605 (complaint): Don't declare stop_whining.
11606
11607 2020-04-08 Tom Tromey <tromey@adacore.com>
11608
11609 * windows-nat.c (windows_nat::handle_output_debug_string):
11610 Rename. No longer static.
11611 * nat/windows-nat.h (handle_output_debug_string): Declare.
11612
11613 2020-04-08 Tom Tromey <tromey@adacore.com>
11614
11615 * windows-nat.c (current_process_handle, current_process_id)
11616 (main_thread_id, last_sig, current_event, last_wait_event)
11617 (current_windows_thread, desired_stop_thread_id, pending_stops)
11618 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11619 (display_selectors, fake_create_process)
11620 (get_windows_debug_event): Update.
11621 * nat/windows-nat.h (current_process_handle, current_process_id)
11622 (main_thread_id, last_sig, current_event, last_wait_event)
11623 (current_windows_thread, desired_stop_thread_id, pending_stops)
11624 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11625 * nat/windows-nat.c (current_process_handle, current_process_id)
11626 (main_thread_id, last_sig, current_event, last_wait_event)
11627 (current_windows_thread, desired_stop_thread_id, pending_stops)
11628 (siginfo_er): New globals. Move from windows-nat.c.
11629
11630 2020-04-08 Tom Tromey <tromey@adacore.com>
11631
11632 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11633 (handle_load_dll): Update.
11634 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11635
11636 2020-04-08 Tom Tromey <tromey@adacore.com>
11637
11638 * windows-nat.c (enum thread_disposition_type): Move to
11639 nat/windows-nat.h.
11640 (windows_nat::thread_rec): Rename from thread_rec. No longer
11641 static.
11642 (windows_add_thread, windows_nat_target::fetch_registers)
11643 (windows_nat_target::store_registers, handle_exception)
11644 (windows_nat_target::resume, get_windows_debug_event)
11645 (windows_nat_target::get_tib_address)
11646 (windows_nat_target::thread_name)
11647 (windows_nat_target::thread_alive): Update.
11648 * nat/windows-nat.h (enum thread_disposition_type): Move from
11649 windows-nat.c.
11650 (thread_rec): Declare.
11651
11652 2020-04-08 Tom Tromey <tromey@adacore.com>
11653
11654 * windows-nat.c: Add "using namespace".
11655 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11656 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11657
11658 2020-04-08 Tom Tromey <tromey@adacore.com>
11659
11660 * nat/windows-nat.h (struct windows_thread_info): Declare
11661 destructor.
11662 * nat/windows-nat.c (~windows_thread_info): New.
11663
11664 2020-04-08 Tom Tromey <tromey@adacore.com>
11665
11666 PR gdb/22992
11667 * windows-nat.c (current_event): Update comment.
11668 (last_wait_event, desired_stop_thread_id): New globals.
11669 (struct pending_stop): New.
11670 (pending_stops): New global.
11671 (windows_nat_target) <stopped_by_sw_breakpoint>
11672 <supports_stopped_by_sw_breakpoint>: New methods.
11673 (windows_fetch_one_register): Add assertions. Adjust PC.
11674 (windows_continue): Handle pending stops. Suspend other threads
11675 when stepping. Use last_wait_event
11676 (wait_for_debug_event): New function.
11677 (get_windows_debug_event): Use wait_for_debug_event. Handle
11678 pending stops. Queue spurious stops.
11679 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11680 (windows_nat_target::kill): Use wait_for_debug_event.
11681 * nat/windows-nat.h (struct windows_thread_info)
11682 <stopped_at_software_breakpoint>: New field.
11683 * nat/windows-nat.c (windows_thread_info::resume): Clear
11684 stopped_at_software_breakpoint.
11685
11686 2020-04-08 Tom Tromey <tromey@adacore.com>
11687
11688 * windows-nat.c (enum thread_disposition_type): New.
11689 (thread_rec): Replace "get_context" parameter with "disposition";
11690 change type.
11691 (windows_add_thread, windows_nat_target::fetch_registers)
11692 (windows_nat_target::store_registers, handle_exception)
11693 (windows_nat_target::resume, get_windows_debug_event)
11694 (windows_nat_target::get_tib_address)
11695 (windows_nat_target::thread_name)
11696 (windows_nat_target::thread_alive): Update.
11697
11698 2020-04-08 Tom Tromey <tromey@adacore.com>
11699
11700 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11701 (windows_continue): Use windows_continue::resume.
11702 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11703 resume>: Declare new methods.
11704 * nat/windows-nat.c: New file.
11705 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11706
11707 2020-04-08 Tom Tromey <tromey@adacore.com>
11708
11709 * windows-nat.c (windows_add_thread, windows_delete_thread)
11710 (windows_nat_target::fetch_registers)
11711 (windows_nat_target::store_registers, fake_create_process)
11712 (windows_nat_target::resume, windows_nat_target::resume)
11713 (get_windows_debug_event, windows_nat_target::wait)
11714 (windows_nat_target::pid_to_str)
11715 (windows_nat_target::get_tib_address)
11716 (windows_nat_target::get_ada_task_ptid)
11717 (windows_nat_target::thread_name)
11718 (windows_nat_target::thread_alive): Use lwp, not tid.
11719
11720 2020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * windows-nat.c (handle_exception)
11723 (windows_nat_target::thread_name): Update.
11724 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11725 <name>: Now unique_xmalloc_ptr.
11726
11727 2020-04-08 Tom Tromey <tromey@adacore.com>
11728
11729 * windows-nat.c (thread_rec)
11730 (windows_nat_target::fetch_registers): Update.
11731 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11732 Update comment.
11733 <debug_registers_changed, reload_context>: Now bool.
11734
11735 2020-04-08 Tom Tromey <tromey@adacore.com>
11736
11737 * windows-nat.c (windows_add_thread): Use new.
11738 (windows_init_thread_list, windows_delete_thread): Use delete.
11739 (get_windows_debug_event): Update.
11740 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11741 destructor, and initializers.
11742
11743 2020-04-08 Tom Tromey <tromey@adacore.com>
11744
11745 * windows-nat.c (struct windows_thread_info): Remove.
11746 * nat/windows-nat.h: New file.
11747
11748 2020-04-08 Tom Tromey <tromey@adacore.com>
11749
11750 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11751 (thread_rec, windows_add_thread, windows_delete_thread)
11752 (windows_continue): Update.
11753
11754 2020-04-08 Tom Tromey <tromey@adacore.com>
11755
11756 * windows-nat.c (struct windows_thread_info): Remove typedef.
11757 (thread_head): Remove.
11758 (thread_list): New global.
11759 (thread_rec, windows_add_thread, windows_init_thread_list)
11760 (windows_delete_thread, windows_continue): Update.
11761
11762 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11763
11764 * windows-tdep.h (windows_init_abi): Add comment.
11765 (cygwin_init_abi): New declaration.
11766 * windows-tdep.c: Split signal enumeration in two, one for
11767 Windows and one for Cygwin.
11768 (windows_gdb_signal_to_target): Only deal with signal of the
11769 Windows OS ABI.
11770 (cygwin_gdb_signal_to_target): New function.
11771 (windows_init_abi): Rename to windows_init_abi_common, don't set
11772 gdb_signal_to_target gdbarch method. Add new new function with
11773 this name.
11774 (cygwin_init_abi): New function.
11775 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11776 comment. Don't call windows_init_abi.
11777 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11778 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11779 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11780 i386_windows_init_abi_common, don't call windows_init_abi. Add
11781 a new function of this name.
11782 (i386_cygwin_init_abi): New function.
11783 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11784 OS ABI Cygwin.
11785
11786 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11787
11788 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11789 parameter.c.
11790 (dwarf2_read_gdb_index): Update.
11791
11792 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11793
11794 * nbsd-tdep.c: Include "objfiles.h".
11795 (nbsd_skip_solib_resolver): New.
11796 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11797
11798 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11799
11800 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11801 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11802 with DW_LLE_base_addressx are being emitted in DWARFv5.
11803 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11804 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11805 unsigned integer.
11806
11807 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11808
11809 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11810 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11811 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11812 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11813 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11814 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11815 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11816
11817
11818 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11819
11820 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11821 (read_loclist_index): New function definition.
11822 (lookup_loclist_base): New function definition.
11823 (read_loclist_header): New function definition.
11824 (dwarf2_cu): Add loclist_base and loclist_header field.
11825 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11826 (read_full_die_1): Read the value of DW_AT_loclists_base.
11827 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11828 (read_attribute_value): Handle DW_FORM_loclistx.
11829 (skip_one_die): Handle DW_FORM_loclistx.
11830 (loclist_header): New structure declaration.
11831 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11832
11833 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11834
11835 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11836 constructor. Remove `addr` parameter from other constructor and
11837 add `per_cu` parameter.
11838 * dwarf2/read.c (create_partial_symtab): Update.
11839
11840 2020-04-07 Tom de Vries <tdevries@suse.de>
11841
11842 PR symtab/25796
11843 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11844 (partial_die_info::fixup): Inherit has_const_value.
11845
11846 2020-04-07 Tom de Vries <tdevries@suse.de>
11847
11848 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11849 symbols without address.
11850
11851 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11852
11853 * nbsd-nat.h (struct thread_info): Add forward declaration.
11854 (nbsd_nat_target::thread_alive): Add.
11855 (nbsd_nat_target::thread_name): Likewise.
11856 (nbsd_nat_target::update_thread_list): Likewise.
11857 (update_thread_list::post_attach): Likewise.
11858 (post_attach::pid_to_str): Likewise.
11859 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11860 (nbsd_thread_lister): Add.
11861 (nbsd_nat_target::thread_alive): Likewise.
11862 (nbsd_nat_target::thread_name): Likewise.
11863 (nbsd_add_threads): Likewise.
11864 (update_thread_list::post_attach): Likewise.
11865 (nbsd_nat_target::update_thread_list): Likewise.
11866 (post_attach::pid_to_str): Likewise.
11867
11868 2020-04-06 Tom Tromey <tromey@adacore.com>
11869
11870 * ada-valprint.c (print_variant_part): Extract the variant field.
11871 (print_field_values): Use the field as the outer value when
11872 recursing.
11873
11874 2020-04-06 Tom Tromey <tromey@adacore.com>
11875
11876 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11877 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11878 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11879 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11880 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11881
11882 2020-04-06 Tom Tromey <tromey@adacore.com>
11883
11884 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11885 TYPE_CODE_ERROR.
11886
11887 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11888
11889 * nbsd-tdep.c: Include "gdbarch.h".
11890 Define enum with NetBSD signal numbers.
11891 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11892 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11893 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11894 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11895 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11896 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11897 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11898 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11899 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11900 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11901 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11902 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11903
11904 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11905
11906 PR gdb/25325
11907 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11908
11909 2020-04-03 Tom Tromey <tromey@adacore.com>
11910
11911 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11912 Read constant block.
11913
11914 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11917 (gdb_bfd_get_full_section_contents): New declaration.
11918 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11919 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11920 gdb_bfd_get_full_section_contents.
11921
11922 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11923
11924 * exec.c (build_section_table): Replace internal_error with
11925 gdb_assert.
11926 (section_table_xfer_memory_partial): Likewise.
11927 * mdebugread.c (parse_partial_symbols): Likewise.
11928 * psymtab.c (lookup_partial_symbol): Likewise.
11929 * utils.c (wrap_here): Likewise.
11930
11931 2020-04-02 Tom Tromey <tromey@adacore.com>
11932
11933 * f-lang.c (build_fortran_types): Use arch_type to initialize
11934 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11935
11936 2020-04-02 Tom Tromey <tromey@adacore.com>
11937
11938 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11939 of attributes.
11940
11941 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11942 Bernd Edlinger <bernd.edlinger@hotmail.de>
11943 Tom Tromey <tromey@adacore.com>
11944
11945 * buildsym.c (buildsym_compunit::record_line): Remove
11946 deduplication code.
11947
11948 2020-04-02 Tom de Vries <tdevries@suse.de>
11949
11950 PR ada/24671
11951 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11952
11953 2020-04-02 Tom de Vries <tdevries@suse.de>
11954
11955 * dwarf2/read.c (dwarf2_gdb_index_functions,
11956 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11957 NULL.
11958 * psymtab.c (psym_lookup_global_symbol_language): New function.
11959 (psym_functions): Init psym_lookup_global_symbol_language with
11960 psym_lookup_global_symbol_language.
11961 * symfile-debug.c (debug_sym_quick_functions): Init
11962 lookup_global_symbol_language with NULL.
11963 * symfile.c (set_initial_language): Remove fixme comment.
11964 * symfile.h (struct quick_symbol_functions): Add
11965 lookup_global_symbol_language.
11966 * symtab.c (find_quick_global_symbol_language): New function.
11967 (find_main_name): Use find_quick_global_symbol_language.
11968
11969 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11970
11971 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11972
11973 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11974
11975 * buildsym.c (record_line): Fix undefined behavior and preserve
11976 lines at eof.
11977
11978 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11979
11980 * buildsym.c (record_line): Fix the resizing condition.
11981
11982 2020-04-01 Tom Tromey <tom@tromey.com>
11983
11984 * value.h (value_literal_complex): Add comment.
11985 * valops.c (value_literal_complex): Refer to value.h.
11986
11987 2020-04-01 Tom Tromey <tom@tromey.com>
11988
11989 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11990 (scalar_type): New rule, from typebase.
11991 (typebase): Use scalar_type. Recognize complex types.
11992 (field_name): Handle FLOAT_KEYWORD.
11993 (ident_tokens): Add _Complex and __complex__.
11994
11995 2020-04-01 Tom Tromey <tom@tromey.com>
11996
11997 PR exp/25299:
11998 * valarith.c (promotion_type, complex_binop): New functions.
11999 (scalar_binop): Handle complex numbers. Use promotion_type.
12000 (value_pos, value_neg, value_complement): Handle complex numbers.
12001
12002 2020-04-01 Tom Tromey <tom@tromey.com>
12003
12004 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12005 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12006 (parse_number): Handle complex numbers.
12007
12008 2020-04-01 Tom Tromey <tom@tromey.com>
12009
12010 * c-valprint.c (c_decorations): Change complex suffix to "i".
12011
12012 2020-04-01 Tom Tromey <tom@tromey.com>
12013
12014 * valprint.c (generic_value_print_complex): Use accessors.
12015 * value.h (value_real_part, value_imaginary_part): Declare.
12016 * valops.c (value_real_part, value_imaginary_part): New
12017 functions.
12018 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12019
12020 2020-04-01 Tom Tromey <tom@tromey.com>
12021
12022 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12023 (read_range_type): Update.
12024 * mdebugread.c (basic_type): Update.
12025 * go-lang.c (build_go_types): Use init_complex_type.
12026 * gdbtypes.h (struct main_type) <complex_type>: New member.
12027 (init_complex_type): Update.
12028 (arch_complex_type): Don't declare.
12029 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12030 Make name if none given. Use alloc_type_copy. Look for cached
12031 complex type.
12032 (arch_complex_type): Remove.
12033 (gdbtypes_post_init): Use init_complex_type.
12034 * f-lang.c (build_fortran_types): Use init_complex_type.
12035 * dwarf2/read.c (read_base_type): Update.
12036 * d-lang.c (build_d_types): Use init_complex_type.
12037 * ctfread.c (read_base_type): Update.
12038
12039 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12040
12041 * infrun.c (stop_all_threads): Update assertion, plus when
12042 stopping threads, take into account that we might be trying
12043 to stop an all-stop target.
12044 (stop_waiting): Call 'stop_all_threads' if there exists a
12045 non-stop target.
12046
12047 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12048
12049 * target.h (exists_non_stop_target): New function declaration.
12050 * target.c (exists_non_stop_target): New function.
12051
12052 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12053
12054 PR gdb/24789
12055 * eval.c (is_integral_or_integral_reference): New function.
12056 (evaluate_subexp_standard): Allow integer references in
12057 pointer arithmetic.
12058
12059 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12060
12061 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12062 check for no ptid in the stop reply when the target is non-stop.
12063
12064 2020-04-01 Tom Tromey <tromey@adacore.com>
12065
12066 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12067 "name" parameter to rvalue reference. Initialize m_name_holder.
12068 <lookup_name_info>: New overloads.
12069 <name>: Return gdb::string_view.
12070 <c_str>: New method.
12071 <make_ignore_params>: Update.
12072 <search_name_hash>: Update.
12073 <language_lookup_name>: Return const char *.
12074 <m_name>: Change type.
12075 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12076 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12077 (lookup_name_info::match_any): Update.
12078 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12079 Update.
12080 * minsyms.c (linkage_name_str): Update.
12081 * language.c (default_symbol_name_matcher): Update.
12082 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12083 Update.
12084 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12085 (ada_lookup_name_info::ada_lookup_name_info): Update.
12086 (literal_symbol_name_matcher): Update.
12087
12088 2020-04-01 Tom Tromey <tromey@adacore.com>
12089
12090 * psymtab.c (psymtab_search_name): Remove function.
12091 (psym_lookup_symbol): Create search name and lookup name here.
12092 (lookup_partial_symbol): Remove "name" parameter; add
12093 lookup_name.
12094 (psym_expand_symtabs_for_function): Update.
12095
12096 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12097
12098 PR tui/25597:
12099 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12100
12101 2020-03-31 Tom Tromey <tromey@adacore.com>
12102
12103 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12104 memcpy.
12105
12106 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12107
12108 * features/riscv/32bit-csr.xml: Regenerated.
12109 * features/riscv/64bit-csr.xml: Regenerated.
12110
12111 2020-03-30 Tom Tromey <tromey@adacore.com>
12112
12113 * ada-valprint.c (print_variant_part): Update.
12114 * ada-lang.h (ada_which_variant_applies): Update.
12115 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12116 outer_valaddr parameters; replace with "outer" value parameter.
12117 (to_fixed_variant_branch_type): Update.
12118
12119 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12120
12121 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12122 <list>. Remove inclusion of observable.h.
12123 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12124 (struct arch_lwp_info): New struct.
12125 (class ppc_linux_dreg_interface): New class.
12126 (struct ppc_linux_process_info): New struct.
12127 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12128 <low_new_clone, low_forget_process, low_prepare_to_resume>
12129 <copy_thread_dreg_state, mark_thread_stale>
12130 <mark_debug_registers_changed, register_hw_breakpoint>
12131 <clear_hw_breakpoint, register_wp, clear_wp>
12132 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12133 <num_memory_accesses, get_trigger_type>
12134 <create_watchpoint_request, hwdebug_point_cmp>
12135 <init_arch_lwp_info, get_arch_lwp_info>
12136 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12137 methods.
12138 <struct ptid_hash>: New inner struct.
12139 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12140 members.
12141 (saved_dabr_value, hwdebug_info, max_slots_number)
12142 (struct hw_break_tuple, struct thread_points, ppc_threads)
12143 (have_ptrace_hwdebug_interface)
12144 (hwdebug_find_thread_points_by_tid)
12145 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12146 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12147 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12148 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12149 use m_dreg_interface.
12150 (hwdebug_point_cmp): Change to...
12151 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12152 reference arguments instead of pointers.
12153 (ppc_linux_nat_target::ranged_break_num_registers): Use
12154 m_dreg_interface.
12155 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12156 m_dreg_interface. Call register_hw_breakpoint.
12157 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12158 m_dreg_interface. Call clear_hw_breakpoint.
12159 (get_trigger_type): Change to...
12160 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12161 comment.
12162 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12163 use m_dreg_interface. Call register_hw_breakpoint.
12164 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12165 use m_dreg_interface. Call clear_hw_breakpoint.
12166 (can_use_watchpoint_cond_accel): Change to...
12167 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12168 method. Update comment, use m_dreg_interface and
12169 m_process_info.
12170 (calculate_dvc): Change to...
12171 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12172 m_dreg_interface.
12173 (num_memory_accesses): Change to...
12174 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12175 (check_condition): Change to...
12176 (ppc_linux_nat_target::check_condition): ...this method.
12177 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12178 comment, use m_dreg_interface.
12179 (create_watchpoint_request): Change to...
12180 (ppc_linux_nat_target::create_watchpoint_request): ...this
12181 method. Use m_dreg_interface.
12182 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12183 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12184 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12185 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12186 (ppc_linux_nat_target::low_forget_process)
12187 (ppc_linux_nat_target::low_new_fork)
12188 (ppc_linux_nat_target::low_new_clone)
12189 (ppc_linux_nat_target::low_delete_thread)
12190 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12191 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12192 only call mark_thread_stale.
12193 (ppc_linux_thread_exit): Remove.
12194 (ppc_linux_nat_target::stopped_data_address): Change to...
12195 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12196 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12197 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12198 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12199 comment. Call low_stopped_data_address.
12200 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12201 m_dreg_interface.
12202 (ppc_linux_nat_target::masked_watch_num_registers): Use
12203 m_dreg_interface.
12204 (ppc_linux_nat_target::copy_thread_dreg_state)
12205 (ppc_linux_nat_target::mark_thread_stale)
12206 (ppc_linux_nat_target::mark_debug_registers_changed)
12207 (ppc_linux_nat_target::register_hw_breakpoint)
12208 (ppc_linux_nat_target::clear_hw_breakpoint)
12209 (ppc_linux_nat_target::register_wp)
12210 (ppc_linux_nat_target::clear_wp)
12211 (ppc_linux_nat_target::init_arch_lwp_info)
12212 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12213 (_initialize_ppc_linux_nat): Remove observer callback.
12214
12215 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12216
12217 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12218 (ppc_linux_nat_target::auxv_parse)
12219 (ppc_linux_nat_target::read_description)
12220 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12221 Move up.
12222
12223 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12224
12225 * linux-nat.h (low_new_clone): New method.
12226 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12227
12228 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12229
12230 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12231 (dbx_expand_psymtab): ... this.
12232 (start_psymtab): Update.
12233 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12234 (mdebug_expand_psymtab): ... this.
12235 (parse_partial_symbols): Update.
12236 (new_psymtab): Update.
12237 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12238 (xcoff_expand_psymtab): ... this.
12239 (xcoff_start_psymtab): Update.
12240
12241 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12242
12243 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12244 <expand_dependencies>: ... this.
12245 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12246 (partial_symtab::expand_dependencies): ... this.
12247 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12248 Update.
12249 (dwarf2_psymtab::expand_psymtab): Update.
12250 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12251 * mdebugread.c (psymtab_to_symtab_1): Update.
12252 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12253
12254 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12255
12256 * psympriv.h (discard_psymtab): Remove.
12257 * dbxread.c (dbx_end_psymtab): Update.
12258 * xcoffread.c (xcoff_end_psymtab): Update.
12259
12260 2020-03-28 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12263 comment.
12264
12265 2020-03-28 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12268
12269 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12270
12271 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12272
12273 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12274
12275 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12276
12277 2020-03-26 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12280 (mark_common_block_symbol_computed, read_tag_string_type)
12281 (attr_to_dynamic_prop, read_subrange_type): Update.
12282 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12283 to be methods on struct attribute.
12284 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12285 (read_call_site_scope, partial_die_info::read)
12286 (partial_die_info::read, lookup_die_type, follow_die_ref):
12287 Update.
12288 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12289 from dwarf2_get_ref_die_offset.
12290 (attribute::constant_value): New method, from
12291 dwarf2_get_attr_constant_value.
12292 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12293 Declare method.
12294 <constant_value>: New method.
12295
12296 2020-03-26 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12299 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12300 (dwarf_type_encoding_name): Move to stringify.c.
12301 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12302 * dwarf2/stringify.c: New file.
12303 * dwarf2/stringify.h: New file.
12304
12305 2020-03-26 Tom Tromey <tom@tromey.com>
12306
12307 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12308 Rewrite.
12309
12310 2020-03-26 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12313 methods.
12314 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12315 (lookup_ranges_base): Likewise.
12316 (read_cutu_die_from_dwo, read_full_die_1): Update.
12317
12318 2020-03-26 Tom Tromey <tom@tromey.com>
12319
12320 * dwarf2/read.c (read_import_statement, read_file_scope)
12321 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12322 (read_lexical_block_scope, read_call_site_scope)
12323 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12324 (handle_struct_member_die, process_structure_scope)
12325 (update_enumeration_type_from_children)
12326 (process_enumeration_scope, read_array_type, read_common_block)
12327 (read_namespace, read_module, read_subroutine_type): Update.
12328 (sibling_die): Remove.
12329
12330 2020-03-26 Tom Tromey <tom@tromey.com>
12331
12332 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12333 (build_type_psymtabs_reader, read_structure_type)
12334 (read_enumeration_type, read_full_die_1): Update.
12335 (dwarf2_attr_no_follow): Move to die.h.
12336 * dwarf2/die.h (struct die_info) <attr>: New method.
12337
12338 2020-03-26 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12341 <base_address>: Now an optional.
12342 (dwarf2_find_base_address, dwarf2_rnglists_process)
12343 (dwarf2_ranges_process, fill_in_loclist_baton)
12344 (dwarf2_symbol_mark_computed): Update.
12345
12346 2020-03-26 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2/read.c (struct die_info): Move to die.h.
12349 * dwarf2/die.h: New file.
12350
12351 2020-03-26 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12354 * dwarf2/read.c
12355 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12356 Move to line-header.c.
12357 (read_checked_initial_length_and_offset, read_formatted_entries):
12358 Likewise.
12359 (dwarf_decode_line_header): Split into two.
12360 * dwarf2/line-header.c
12361 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12362 Move from read.c.
12363 (read_checked_initial_length_and_offset, read_formatted_entries):
12364 Likewise.
12365 (dwarf_decode_line_header): New function, split from read.c.
12366
12367 2020-03-26 Tom Tromey <tom@tromey.com>
12368
12369 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12370 Declare method.
12371 * dwarf2/read.c (read_attribute_value): Update.
12372 (dwarf2_per_objfile::read_line_string): Rename from
12373 read_indirect_line_string.
12374 (read_formatted_entries): Update.
12375
12376 2020-03-26 Tom Tromey <tom@tromey.com>
12377
12378 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12379 variable.
12380
12381 2020-03-26 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12384 const.
12385 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12386 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12387 parameter const.
12388
12389 2020-03-26 Tom Tromey <tom@tromey.com>
12390
12391 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12392 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12393 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12394 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12395
12396 2020-03-26 Tom Tromey <tom@tromey.com>
12397
12398 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12399 file_names_size, file_full_name, file_file_name>: Use const.
12400 <file_name_at, file_names>: Add const overload.
12401 * dwarf2/line-header.c (line_header::file_file_name)
12402 (line_header::file_full_name): Update.
12403
12404 2020-03-26 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12407 (macro_start_file, consume_improper_spaces)
12408 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12409 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12410 (dwarf_decode_macros): Move to macro.c.
12411 * dwarf2/macro.c: New file.
12412 * dwarf2/macro.h: New file.
12413 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12414
12415 2020-03-26 Tom Tromey <tom@tromey.com>
12416
12417 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12418 method.
12419 * dwarf2/section.c: New method. From
12420 read_indirect_string_at_offset_from.
12421 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12422 (read_indirect_string_at_offset_from): Move to section.c.
12423 (read_indirect_string_at_offset): Rewrite.
12424 (read_indirect_line_string_at_offset): Remove.
12425 (read_indirect_string, read_indirect_line_string)
12426 (dwarf_decode_macro_bytes): Update.
12427
12428 2020-03-26 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2/section.h (struct dwarf2_section_info)
12431 <overload_complaint>: Declare.
12432 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12433 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12434 Rename from dwarf2_section_buffer_overflow_complaint.
12435 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12436 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12437
12438 2020-03-26 Tom Tromey <tom@tromey.com>
12439
12440 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12441 Declare.
12442 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12443 Move from read.c.
12444 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12445 to section.c.
12446
12447 2020-03-26 Tom Tromey <tom@tromey.com>
12448
12449 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12450
12451 2020-03-26 Tom Tromey <tom@tromey.com>
12452
12453 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12454 "builder".
12455 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12456 parameter.
12457 (dwarf_decode_macros): Update.
12458
12459 2020-03-26 Tom Tromey <tom@tromey.com>
12460
12461 * dwarf2/read.c (read_attribute_value): Update.
12462 (read_indirect_string_from_dwz): Move to dwz.c; change into
12463 method.
12464 (dwarf_decode_macro_bytes): Update.
12465 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12466 * dwarf2/dwz.c: New file.
12467 * Makefile.in (COMMON_SFILES): Add dwz.c.
12468
12469 2020-03-26 Tom Tromey <tom@tromey.com>
12470
12471 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12472 * dwarf2/read.c: Add include.
12473 * dwarf2/index-write.c: Add include.
12474 * dwarf2/index-cache.c: Add include.
12475 * dwarf2/dwz.h: New file.
12476
12477 2020-03-25 Tom Tromey <tom@tromey.com>
12478
12479 * compile/compile-object-load.c (get_out_value_type): Mention
12480 correct symbol name in error message.
12481
12482 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12483
12484 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12485
12486 2020-03-25 Tom de Vries <tdevries@suse.de>
12487
12488 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12489 * symmisc.c (dump_symtab_1): Print user and includes fields.
12490 (maintenance_info_symtabs): Same.
12491
12492 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12493
12494 PR gdb/25534
12495 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12496 (riscv_regcache_cooked_write): New function.
12497 (riscv_push_dummy_call): Use new function.
12498 (riscv_return_value): Likewise.
12499
12500 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12501
12502 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12503 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12504 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12505 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12506 * infrun.c (follow_fork): Likewise.
12507 (follow_fork_inferior): Likewise.
12508 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12509 * linux-nat.h (class linux_nat_target): Likewise.
12510 * remote.c (class remote_target) <follow_fork>: Likewise.
12511 (remote_target::follow_fork): Likewise.
12512 * target-delegates.c: Re-generate.
12513 * target.c (default_follow_fork): Likewise.
12514 (target_follow_fork): Likewise.
12515 * target.h (struct target_ops) <follow_fork>: Likewise.
12516 (target_follow_fork): Likewise.
12517
12518 2020-03-24 Tom de Vries <tdevries@suse.de>
12519
12520 * psymtab.c (maintenance_info_psymtabs): Print user field.
12521
12522 2020-03-20 Tom Tromey <tromey@adacore.com>
12523
12524 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12525 const.
12526 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12527 const.
12528
12529 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12530
12531 * ptrace.m4: Don't check for ptrace declaration.
12532 * config.in: Re-generate.
12533 * configure: Re-generate.
12534 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12535 not defined.
12536
12537 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12538
12539 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12540 `PTRACE_TYPE_RET'.
12541 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12542 * sparc-nat.c (gdb_ptrace): Likewise.
12543 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12544
12545 2020-03-20 Tom Tromey <tromey@adacore.com>
12546
12547 * c-exp.y (lex_one_token): Fix assert.
12548
12549 2020-03-20 Tom Tromey <tromey@adacore.com>
12550
12551 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12552 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12553 strncpy call.
12554
12555 2020-03-20 Tom Tromey <tromey@adacore.com>
12556
12557 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12558
12559 2020-03-20 Tom Tromey <tromey@adacore.com>
12560
12561 * ada-valprint.c (print_variant_part): Remove parameters; switch
12562 to value-based API.
12563 (print_field_values): Likewise.
12564 (ada_val_print_struct_union): Likewise.
12565 (ada_value_print_1): Update.
12566
12567 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12568
12569 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12570 nbsd_nat_target instead of inf_ptrace_target.
12571 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12572 nbsd_nat_target.
12573
12574 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12575
12576 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12577 it to the ptrace call.
12578 * (store_registers): Likewise.
12579
12580 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12581
12582 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12583 it to the ptrace call.
12584 * (store_registers): Likewise.
12585
12586 2020-03-19 Luis Machado <luis.machado@linaro.org>
12587
12588 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12589 valid, fetch vg value from ptrace.
12590
12591 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12592 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12593 * inf-ptrace.c: Likewise.
12594 * (gdb_ptrace): Add.
12595 * (inf_ptrace_target::resume): Update.
12596 * (inf_ptrace_target::xfer_partial): Likewise.
12597 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12598 * (inf_ptrace_peek_poke): Update.
12599
12600 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12601
12602 * x86-bsd-nat.c (gdb_ptrace): New.
12603 * (x86bsd_dr_set): Add new argument `ptid'.
12604 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12605 x86bsd_dr_set_addr): Update.
12606
12607 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12608
12609 * remote.c (remote_target::process_stop_reply): Handle events for
12610 all threads differently.
12611
12612 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12613
12614 * completer.c (completion_tracker::remove_completion): Define new
12615 function.
12616 * completer.h (completion_tracker::remove_completion): Declare new
12617 function.
12618 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12619 when adding a C++ function symbol.
12620
12621 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12622
12623 * completer.c (completion_tracker::completion_hash_entry): Define
12624 new class.
12625 (advance_to_filename_complete_word_point): Call
12626 recompute_lowest_common_denominator.
12627 (completion_tracker::completion_tracker): Call discard_completions
12628 to setup the hash table.
12629 (completion_tracker::discard_completions): Allow for being called
12630 from the constructor, pass new equal function, and element deleter
12631 when constructing the hash table. Initialise new class member
12632 variables.
12633 (completion_tracker::maybe_add_completion): Remove use of
12634 m_entries_vec, and store more information into m_entries_hash.
12635 (completion_tracker::recompute_lcd_visitor): New function, most
12636 content taken from...
12637 (completion_tracker::recompute_lowest_common_denominator):
12638 ...here, this now just visits each item in the hash calling the
12639 above visitor.
12640 (completion_tracker::build_completion_result): Remove use of
12641 m_entries_vec, call recompute_lowest_common_denominator.
12642 * completer.h (completion_tracker::have_completions): Remove use
12643 of m_entries_vec.
12644 (completion_tracker::completion_hash_entry): Declare new class.
12645 (completion_tracker::recompute_lowest_common_denominator): Change
12646 function signature.
12647 (completion_tracker::recompute_lcd_visitor): Declare new function.
12648 (completion_tracker::m_entries_vec): Delete.
12649 (completion_tracker::m_entries_hash): Initialize to NULL.
12650 (completion_tracker::m_lowest_common_denominator_valid): New
12651 member variable.
12652 (completion_tracker::m_lowest_common_denominator_max_length): New
12653 member variable.
12654
12655 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12656
12657 * regformats/regdef.h: Put reg in gdb namespace.
12658
12659 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12660
12661 * i386-bsd-nat.c (gdb_ptrace): New.
12662 * (i386bsd_fetch_inferior_registers,
12663 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12664 * (i386bsd_fetch_inferior_registers,
12665 i386bsd_store_inferior_registers) Use gdb_ptrace.
12666
12667 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12668
12669 * amd64-bsd-nat.c (gdb_ptrace): New.
12670 * (amd64bsd_fetch_inferior_registers,
12671 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12672 * (amd64bsd_fetch_inferior_registers,
12673 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12674
12675 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12676
12677 * user-regs.c (user_reg::read): Rename to...
12678 (user_reg::xread): ...this.
12679 * (append_user_reg): Rename argument `read' to `xread'.
12680 * (user_reg_add_builtin): Likewise.
12681 * (user_reg_add): Likewise.
12682 * (value_of_user_reg): Likewise.
12683
12684 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12685
12686 * sparc-nat.c (gdb_ptrace): New.
12687 * sparc-nat.c (sparc_fetch_inferior_registers)
12688 (sparc_store_inferior_registers) Remove obsolete comment.
12689 * sparc-nat.c (sparc_fetch_inferior_registers)
12690 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12691 * sparc-nat.c (sparc_fetch_inferior_registers)
12692 (sparc_store_inferior_registers) Use gdb_ptrace.
12693
12694 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12695
12696 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12697 it to the ptrace call.
12698 * sh-nbsd-nat.c (store_registers): Likewise.
12699
12700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12701
12702 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12703 nbsd_nat_target instead of inf_ptrace_target.
12704 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12705 nbsd_nat_target.
12706
12707 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12708
12709 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12710
12711 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12712
12713 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12714 <sys/sysctl.h>.
12715 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12716
12717 2020-03-17 Tom de Vries <tdevries@suse.de>
12718
12719 PR gdb/23710
12720 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12721 fields.
12722 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12723 fields.
12724 (process_imported_unit_die): Skip import of c++ CUs.
12725
12726 2020-03-16 Tom Tromey <tom@tromey.com>
12727
12728 * p-valprint.c (pascal_object_print_value): Initialize
12729 base_value.
12730
12731 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12732 Shahab Vahedi <shahab@synopsys.com>
12733
12734 * Makefile.in: Add arch/arc.o
12735 * configure.tgt: Likewise.
12736 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12737 (_initialize_arc_tdep): Don't initialize old target descriptions.
12738 (arc_read_description): New function to cache target descriptions.
12739 * arc-tdep.h (arc_read_description): Add proto type.
12740 * arch/arc.c: New file.
12741 * arch/arc.h: Likewise.
12742 * features/Makefile: Replace old target descriptions with new.
12743 * features/arc-arcompact.c: Remove.
12744 * features/arc-arcompact.xml: Likewise.
12745 * features/arc-v2.c: Likewise
12746 * features/arc-v2.xml: Likewise
12747 * features/arc/aux-arcompact.xml: New file.
12748 * features/arc/aux-v2.xml: Likewise.
12749 * features/arc/core-arcompact.xml: Likewise.
12750 * features/arc/core-v2.xml: Likewise.
12751 * features/arc/aux-arcompact.c: Generate.
12752 * features/arc/aux-v2.c: Likewise.
12753 * features/arc/core-arcompact.c: Likewise.
12754 * features/arc/core-v2.c: Likewise.
12755 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12756
12757 2020-03-16 Tom Tromey <tromey@adacore.com>
12758
12759 PR gdb/25663:
12760 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12761 putting value into bcache.
12762
12763 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12764
12765 PR gdb/21500
12766 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12767 to...
12768 (amd64_windows_init_abi_common): ... this. Don't set size of
12769 long type.
12770 (amd64_windows_init_abi): New function.
12771 (amd64_cygwin_init_abi): New function.
12772 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12773 the Cygwin OS ABI.
12774 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12775 comment.
12776
12777 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12778
12779 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12780 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12781 (pe_import_directory_entry): New struct type.
12782 (is_linked_with_cygwin_dll): New function.
12783 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12784 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12785 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12786
12787 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12790 i386_cygwin_core_osabi_sniffer.
12791
12792 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * i386-cygwin-tdep.c: Rename to...
12795 * i386-windows-tdep.c: ... this.
12796 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12797 i386-windows-tdep.c.
12798 * configure.tgt: Likewise.
12799
12800 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12801
12802 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12803 * osabi.c (gdb_osabi_names): Add "Windows".
12804 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12805 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12806 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12807 i386_cygwin_osabi_sniffer.
12808 (_initialize_i386_cygwin_tdep): Register OS ABI
12809 GDB_OSABI_WINDOWS for i386.
12810 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12811 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12812 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12813 for x86-64.
12814 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12815 when the target matches '*-*-mingw*'.
12816
12817 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12818
12819 * defs.h (enum gdb_osabi): Move to...
12820 * osabi.h (enum gdb_osabi): ... here.
12821 * gdbarch.sh: Include osabi.h in gdbarch.h.
12822 * gdbarch.h: Re-generate.
12823
12824 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12827 function.
12828 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12829
12830 2020-03-14 Tom Tromey <tom@tromey.com>
12831
12832 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12833 for C++.
12834 (c_type_print_modifier): Likewise. Add "language" parameter.
12835 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12836 (c_type_print_base_1): Update.
12837 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12838 constants.
12839 * type-stack.c (type_stack::insert): Handle tp_atomic and
12840 tp_restrict.
12841 (type_stack::follow_type_instance_flags): Likewise.
12842 (type_stack::follow_types): Likewise. Merge type-following code.
12843 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12844 (space_identifier, cv_with_space_id)
12845 (const_or_volatile_or_space_identifier_noopt)
12846 (const_or_volatile_or_space_identifier): Remove.
12847 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12848 rules.
12849 (ptr_operator, typebase): Update.
12850 (enum token_flag) <FLAG_C>: New constant.
12851 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12852 "_Atomic".
12853 (lex_one_token): Handle FLAG_C.
12854
12855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12856
12857 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12858 it to the ptrace call.
12859 * m68k-bsd-nat.c (store_registers): Likewise.
12860
12861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12862
12863 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12864 gdb_byte *.
12865 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12866 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12867 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12868
12869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12870
12871 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12872 nbsd_nat_target instead of inf_ptrace_target.
12873 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12874 nbsd_nat_target.
12875
12876 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12877
12878 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12879 register_t.
12880
12881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12882
12883 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12884 it to the ptrace call.
12885 * alpha-bsd-nat.c (store_registers): Likewise.
12886
12887 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12888
12889 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12890 includes.
12891 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12892 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12893 fill_fpregset): Likewise.
12894
12895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12898 nbsd_nat_target instead of inf_ptrace_target.
12899 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12900 nbsd_nat_target.
12901
12902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12903
12904 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12905 register_t.
12906
12907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12908
12909 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12910 it to the ptrace call.
12911 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12912 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12913 * arm-nbsd-nat.c (store_register): Likewise.
12914 * arm-nbsd-nat.c (store_regs): Likewise.
12915 * arm-nbsd-nat.c (store_fp_register): Likewise.
12916 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12917
12918 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12919
12920 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12921 nbsd_nat_target instead of inf_ptrace_target.
12922 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12923 nbsd_nat_target.
12924
12925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12926
12927 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12928 it to the ptrace call.
12929 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12930
12931 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12932
12933 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12934 it to the ptrace call.
12935 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12936
12937 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12938
12939 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12940 gdb_byte *.
12941 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12942
12943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12944
12945 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12946 instead of inf_ptrace_target.
12947 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12948 nbsd_nat_target.
12949
12950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12951
12952 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12953 register_t.
12954
12955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12956
12957 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12958 register_t.
12959
12960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12961
12962 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12963 register_t.
12964
12965 2020-03-13 Tom Tromey <tom@tromey.com>
12966
12967 * value.h (val_print): Don't declare.
12968 * valprint.h (val_print_array_elements)
12969 (val_print_scalar_formatted, generic_val_print): Don't declare.
12970 * valprint.c (generic_val_print_array): Take a struct value.
12971 (generic_val_print_ptr, generic_val_print_memberptr)
12972 (generic_val_print_bool, generic_val_print_int)
12973 (generic_val_print_char, generic_val_print_complex)
12974 (generic_val_print): Remove.
12975 (generic_value_print): Update.
12976 (do_val_print): Remove unused parameters. Don't call
12977 la_val_print.
12978 (val_print): Remove.
12979 (common_val_print): Update. Don't call value_check_printable.
12980 (val_print_scalar_formatted, val_print_array_elements): Remove.
12981 * rust-lang.c (rust_val_print): Remove.
12982 (rust_language_defn): Update.
12983 * p-valprint.c (pascal_val_print): Remove.
12984 (pascal_value_print_inner): Update.
12985 (pascal_object_print_val_fields, pascal_object_print_val):
12986 Remove.
12987 (pascal_object_print_static_field): Update.
12988 * p-lang.h (pascal_val_print): Don't declare.
12989 * p-lang.c (pascal_language_defn): Update.
12990 * opencl-lang.c (opencl_language_defn): Update.
12991 * objc-lang.c (objc_language_defn): Update.
12992 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12993 * m2-lang.h (m2_val_print): Don't declare.
12994 * m2-lang.c (m2_language_defn): Update.
12995 * language.h (struct language_defn) <la_val_print>: Remove.
12996 * language.c (unk_lang_value_print_inner): Rename. Change
12997 argument types.
12998 (unknown_language_defn, auto_language_defn): Update.
12999 * go-valprint.c (go_val_print): Remove.
13000 * go-lang.h (go_val_print): Don't declare.
13001 * go-lang.c (go_language_defn): Update.
13002 * f-valprint.c (f_val_print): Remove.
13003 * f-lang.h (f_value_print): Don't declare.
13004 * f-lang.c (f_language_defn): Update.
13005 * d-valprint.c (d_val_print): Remove.
13006 * d-lang.h (d_value_print): Don't declare.
13007 * d-lang.c (d_language_defn): Update.
13008 * cp-valprint.c (cp_print_value_fields)
13009 (cp_print_value_fields_rtti, cp_print_value): Remove.
13010 (cp_print_static_field): Update.
13011 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13012 (c_val_print_struct, c_val_print_union, c_val_print_int)
13013 (c_val_print_memberptr, c_val_print): Remove.
13014 * c-lang.h (c_val_print_array, cp_print_value_fields)
13015 (cp_print_value_fields_rtti): Don't declare.
13016 * c-lang.c (c_language_defn, cplus_language_defn)
13017 (asm_language_defn, minimal_language_defn): Update.
13018 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13019 (ada_val_print_enum): Take a struct value.
13020 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13021 (ada_val_print): Remove.
13022 (ada_value_print_1): Update.
13023 (printable_val_type): Remove.
13024 * ada-lang.h (ada_val_print): Don't declare.
13025 * ada-lang.c (ada_language_defn): Update.
13026
13027 2020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * valprint.c (do_val_print): Update.
13030 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13031 a struct value.
13032 (value_to_value_object_no_release): Declare.
13033 * python/py-value.c (value_to_value_object_no_release): New
13034 function.
13035 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13036 struct value.
13037 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13038 function.
13039 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13040 a struct value.
13041 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13042 Declare.
13043 (gdbscm_apply_val_pretty_printer): Take a struct value.
13044 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13045 value.
13046 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13047 value.
13048 * extension-priv.h (struct extension_language_ops)
13049 <apply_val_pretty_printer>: Take a struct value.
13050 * cp-valprint.c (cp_print_value): Create a struct value.
13051 (cp_print_value): Update.
13052
13053 2020-03-13 Tom Tromey <tom@tromey.com>
13054
13055 * ada-valprint.c (print_field_values): Call common_val_print.
13056
13057 2020-03-13 Tom Tromey <tom@tromey.com>
13058
13059 * ada-valprint.c (val_print_packed_array_elements): Remove
13060 bitoffset and val parameters. Call common_val_print.
13061 (ada_val_print_string): Remove offset, address, and original_value
13062 parameters.
13063 (ada_val_print_array): Update.
13064 (ada_value_print_array): New function.
13065 (ada_value_print_1): Call it.
13066
13067 2020-03-13 Tom Tromey <tom@tromey.com>
13068
13069 * ada-valprint.c (ada_value_print): Use common_val_print.
13070
13071 2020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13074
13075 2020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * ada-valprint.c (ada_value_print_num): New function.
13078 (ada_value_print_1): Use it.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13083
13084 2020-03-13 Tom Tromey <tom@tromey.com>
13085
13086 * ada-valprint.c (ada_value_print_ptr): New function.
13087 (ada_value_print_1): Use it.
13088
13089 2020-03-13 Tom Tromey <tom@tromey.com>
13090
13091 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13092 call common_val_print.
13093 (ada_val_print_1): Update.
13094 (ada_value_print_1): New function.
13095 (ada_value_print_inner): Rewrite.
13096
13097 2020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * cp-valprint.c (cp_print_value_fields): Update.
13100 (cp_print_value): New function.
13101
13102 2020-03-13 Tom Tromey <tom@tromey.com>
13103
13104 * m2-valprint.c (m2_value_print_inner): Use
13105 cp_print_value_fields.
13106 * cp-valprint.c (cp_print_value_fields): New function.
13107 * c-valprint.c (c_value_print_struct): New function.
13108 (c_value_print_inner): Use c_value_print_struct.
13109 * c-lang.h (cp_print_value_fields): Declare.
13110
13111 2020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * c-valprint.c (c_value_print_array): New function.
13114 (c_value_print_inner): Use it.
13115
13116 2020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * c-valprint.c (c_value_print_memberptr): New function.
13119 (c_value_print_inner): Use it.
13120
13121 2020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * c-valprint.c (c_value_print_int): New function.
13124 (c_value_print_inner): Use it.
13125
13126 2020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * c-valprint.c (c_value_print_ptr): New function.
13129 (c_value_print_inner): Use it.
13130
13131 2020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * c-valprint.c (c_value_print_inner): Rewrite.
13134
13135 2020-03-13 Tom Tromey <tom@tromey.com>
13136
13137 * valprint.c (generic_value_print_complex): New function.
13138 (generic_value_print): Use it.
13139
13140 2020-03-13 Tom Tromey <tom@tromey.com>
13141
13142 * valprint.c (generic_val_print_float): Don't call
13143 val_print_scalar_formatted.
13144 (generic_val_print, generic_value_print): Update.
13145
13146 2020-03-13 Tom Tromey <tom@tromey.com>
13147
13148 * valprint.c (generic_value_print_char): New function
13149 (generic_value_print): Use it.
13150
13151 2020-03-13 Tom Tromey <tom@tromey.com>
13152
13153 * valprint.c (generic_value_print_int): New function.
13154 (generic_value_print): Use it.
13155
13156 2020-03-13 Tom Tromey <tom@tromey.com>
13157
13158 * valprint.c (generic_value_print_bool): New function.
13159 (generic_value_print): Use it.
13160
13161 2020-03-13 Tom Tromey <tom@tromey.com>
13162
13163 * valprint.c (generic_val_print_func): Simplify.
13164 (generic_val_print, generic_value_print): Update.
13165
13166 2020-03-13 Tom Tromey <tom@tromey.com>
13167
13168 * valprint.c (generic_val_print_flags): Remove.
13169 (generic_val_print, generic_value_print): Update.
13170 (val_print_type_code_flags): Add original_value parameter.
13171
13172 2020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * valprint.c (generic_val_print): Update.
13175 (generic_value_print): Update.
13176 * valprint.c (generic_val_print_enum): Don't call
13177 val_print_scalar_formatted.
13178
13179 2020-03-13 Tom Tromey <tom@tromey.com>
13180
13181 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13182 * valprint.c (generic_value_print_ptr): New function.
13183
13184 2020-03-13 Tom Tromey <tom@tromey.com>
13185
13186 * valprint.c (generic_value_print): Rewrite.
13187
13188 2020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * p-valprint.c (pascal_object_print_value_fields)
13191 (pascal_object_print_value): New functions.
13192
13193 2020-03-13 Tom Tromey <tom@tromey.com>
13194
13195 * p-valprint.c (pascal_value_print_inner): Rewrite.
13196
13197 2020-03-13 Tom Tromey <tom@tromey.com>
13198
13199 * f-valprint.c (f_value_print_innner): Rewrite.
13200
13201 2020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * m2-valprint.c (m2_print_unbounded_array): New overload.
13204 (m2_print_unbounded_array): Update.
13205 (m2_print_array_contents): Take a struct value.
13206 (m2_value_print_inner): Rewrite.
13207
13208 2020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13211 (d_value_print_inner): New function.
13212 * d-lang.h (d_value_print_inner): Declare.
13213 * d-lang.c (d_language_defn): Use d_value_print_inner.
13214
13215 2020-03-13 Tom Tromey <tom@tromey.com>
13216
13217 * go-valprint.c (go_value_print_inner): New function.
13218 * go-lang.h (go_value_print_inner): Declare.
13219 * go-lang.c (go_language_defn): Use go_value_print_inner.
13220
13221 2020-03-13 Tom Tromey <tom@tromey.com>
13222
13223 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13224 API.
13225 (rust_val_print): Rewrite.
13226 (rust_value_print_inner): New function, from rust_val_print.
13227 (rust_language_defn): Use rust_value_print_inner.
13228
13229 2020-03-13 Tom Tromey <tom@tromey.com>
13230
13231 * ada-valprint.c (ada_value_print_inner): New function.
13232 * ada-lang.h (ada_value_print_inner): Declare.
13233 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13234
13235 2020-03-13 Tom Tromey <tom@tromey.com>
13236
13237 * f-valprint.c (f_value_print_innner): New function.
13238 * f-lang.h (f_value_print_innner): Declare.
13239 * f-lang.c (f_language_defn): Use f_value_print_innner.
13240
13241 2020-03-13 Tom Tromey <tom@tromey.com>
13242
13243 * p-valprint.c (pascal_value_print_inner): New function.
13244 * p-lang.h (pascal_value_print_inner): Declare.
13245 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13246
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * m2-valprint.c (m2_value_print_inner): New function.
13250 * m2-lang.h (m2_value_print_inner): Declare.
13251 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13252
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13256 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13257 * c-valprint.c (c_value_print_inner): New function.
13258 * c-lang.h (c_value_print_inner): Declare.
13259 * c-lang.c (c_language_defn, cplus_language_defn)
13260 (asm_language_defn, minimal_language_defn): Use
13261 c_value_print_inner.
13262
13263 2020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * p-valprint.c (pascal_object_print_value_fields): Now static.
13266 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13267
13268 2020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * c-valprint.c (c_val_print_array): Simplify.
13271
13272 2020-03-13 Tom Tromey <tom@tromey.com>
13273
13274 * valprint.c (value_print_array_elements): New function.
13275 * valprint.h (value_print_array_elements): Declare.
13276
13277 2020-03-13 Tom Tromey <tom@tromey.com>
13278
13279 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13280 * mips-tdep.c (mips_print_register): Use
13281 value_print_scalar_formatted.
13282
13283 2020-03-13 Tom Tromey <tom@tromey.com>
13284
13285 * valprint.h (value_print_scalar_formatted): Declare.
13286 * valprint.c (value_print_scalar_formatted): New function.
13287
13288 2020-03-13 Tom Tromey <tom@tromey.com>
13289
13290 * valprint.h (generic_value_print): Declare.
13291 * valprint.c (generic_value_print): New function.
13292
13293 2020-03-13 Tom Tromey <tom@tromey.com>
13294
13295 * valprint.c (do_val_print): Call la_value_print_inner, if
13296 available.
13297 * rust-lang.c (rust_language_defn): Update.
13298 * p-lang.c (pascal_language_defn): Update.
13299 * opencl-lang.c (opencl_language_defn): Update.
13300 * objc-lang.c (objc_language_defn): Update.
13301 * m2-lang.c (m2_language_defn): Update.
13302 * language.h (struct language_defn) <la_value_print_inner>: New
13303 member.
13304 * language.c (unknown_language_defn, auto_language_defn): Update.
13305 * go-lang.c (go_language_defn): Update.
13306 * f-lang.c (f_language_defn): Update.
13307 * d-lang.c (d_language_defn): Update.
13308 * c-lang.c (c_language_defn, cplus_language_defn)
13309 (asm_language_defn, minimal_language_defn): Update.
13310 * ada-lang.c (ada_language_defn): Update.
13311
13312 2020-03-13 Tom Tromey <tom@tromey.com>
13313
13314 * c-valprint.c (c_value_print): Use common_val_print.
13315
13316 2020-03-13 Tom Tromey <tom@tromey.com>
13317
13318 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13319
13320 2020-03-13 Tom Tromey <tom@tromey.com>
13321
13322 * f-valprint.c (f77_print_array_1, f_val_print): Use
13323 common_val_print.
13324
13325 2020-03-13 Tom Tromey <tom@tromey.com>
13326
13327 * riscv-tdep.c (riscv_print_one_register_info): Use
13328 common_val_print.
13329
13330 2020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * mi/mi-main.c (output_register): Use common_val_print.
13333
13334 2020-03-13 Tom Tromey <tom@tromey.com>
13335
13336 * infcmd.c (default_print_one_register_info): Use
13337 common_val_print.
13338
13339 2020-03-13 Tom Tromey <tom@tromey.com>
13340
13341 * valprint.h (common_val_print_checked): Declare.
13342 * valprint.c (common_val_print_checked): New function.
13343 * stack.c (print_frame_arg): Use common_val_print_checked.
13344
13345 2020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * valprint.c (do_val_print): New function, from val_print.
13348 (val_print): Use do_val_print.
13349 (common_val_print): Use do_val_print.
13350
13351 2020-03-13 Tom Tromey <tom@tromey.com>
13352
13353 * valprint.c (value_print): Use scoped_value_mark.
13354
13355 2020-03-13 Tom de Vries <tdevries@suse.de>
13356
13357 PR symtab/25646
13358 * psymtab.c (partial_symtab::partial_symtab): Don't set
13359 globals_offset and statics_offset. Push element onto
13360 current_global_psymbols and current_static_psymbols stacks.
13361 (concat): New function.
13362 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13363 element from current_global_psymbols and current_static_psymbols
13364 stacks. Concat popped elements to global_psymbols and
13365 static_symbols.
13366 (add_psymbol_to_list): Use current_global_psymbols and
13367 current_static_psymbols stacks.
13368 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13369 current_static_psymbols fields.
13370
13371 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13372
13373 * corelow.c (sniff_core_bfd): Remove.
13374 (class core_target) <m_core_vec>: Remove.
13375 (core_target::core_target): Update.
13376 (core_file_fns): Remove.
13377 (deprecated_add_core_fns): Remove.
13378 (default_core_sniffer): Remove.
13379 (sniff_core_bfd): Remove.
13380 (default_check_format): Remove.
13381 (gdb_check_format): Remove.
13382 (core_target_open): Update.
13383 (core_target::get_core_register_section): Update.
13384 (get_core_registers_cb): Update.
13385 (core_target::fetch_registers): Update.
13386 * gdbcore.h (struct core_fns): Remove.
13387 (deprecated_add_core_fns): Remove.
13388 (default_core_sniffer): Remove.
13389 (default_check_format): Remove.
13390
13391 2020-03-12 Tom Tromey <tom@tromey.com>
13392
13393 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13394 CORE_ADDR.
13395 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13396
13397 2020-03-12 Tom Tromey <tom@tromey.com>
13398
13399 * remote.c (remote_target::download_tracepoint)
13400 (remote_target::enable_tracepoint)
13401 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13402 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13403 sprintf_vma.
13404
13405 2020-03-12 Tom Tromey <tom@tromey.com>
13406
13407 * symfile-mem.c: Update CORE_ADDR size assert.
13408
13409 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * selftest.m4: Move to gdbsupport/.
13412 * acinclude.m4: Update path to selftest.m4.
13413
13414 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13415
13416 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13417 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13418 gdbarch-selfselftests.c and selftest-arch.c.
13419 (SUBDIR_UNITTESTS_OBS): Rename to...
13420 (SELFTESTS_OBS): ... this.
13421 (COMMON_SFILES): Remove disasm-selftests.c and
13422 gdbarch-selftests.c.
13423 * configure.ac: Don't add selftest-arch.{c,o} to
13424 CONFIG_{SRCS,OBS}.
13425 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13426 preprocessor conditions.
13427
13428 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13429
13430 * configure.ac: Don't source bfd/development.sh.
13431 * selftest.m4: Modify comment.
13432 * configure: Re-generate.
13433
13434 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13435
13436 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13437 not "true" or "false".
13438 * configure: Re-generate.
13439
13440 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13441
13442 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13443 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13444 renamed to arm_nbsd_supply_gregset.
13445 (fetch_register): Update to call arm_nbsd_supply_gregset.
13446 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13447 (arm_netbsd_nat_target::fetch_registers): Update.
13448 (fetch_elfcore_registers): Removed.
13449 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13450 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13451 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13452 not require NetBSD system headers.
13453 (arm_nbsd_regset): New struct.
13454 (arm_nbsd_iterate_over_regset_sections): New function.
13455 (arm_netbsd_init_abi_common): Updated to call
13456 set_gdbarch_iterate_over_regset_sections.
13457 * arm-nbsd-tdep.h: New file.
13458
13459 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13460
13461 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13462 recursion.
13463
13464 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13465
13466 * configure: Re-generate.
13467
13468 2020-03-11 Tom Tromey <tromey@adacore.com>
13469
13470 * ada-typeprint.c (print_choices): Fix comment.
13471
13472 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13473
13474 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13475 previous item in the list, when the list has no items.
13476
13477 2020-03-11 Tom de Vries <tdevries@suse.de>
13478
13479 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13480 PROP_LOCLIST handling code.
13481
13482 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13483
13484 * buildsym-legacy.c (record_line): Pass extra parameter to
13485 record_line.
13486 * buildsym.c (buildsym_compunit::record_line): Take an extra
13487 parameter, reduce duplication in the line table, and record the
13488 is_stmt flag in the line table.
13489 * buildsym.h (buildsym_compunit::record_line): Add extra
13490 parameter.
13491 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13492 non-statement lines.
13493 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13494 this to the symtab builder.
13495 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13496 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13497 through to dwarf_record_line_1.
13498 * infrun.c (process_event_stop_test): When stepping, don't stop at
13499 a non-statement instruction, and only refresh the step info when
13500 we land in the middle of a line's range. Also add an extra
13501 comment.
13502 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13503 field.
13504 * record-btrace.c (btrace_find_line_range): Only record lines
13505 marked as is-statement.
13506 * stack.c (frame_show_address): Show the frame address if we are
13507 in a non-statement sal.
13508 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13509 (maintenance_print_one_line_table): Print a header for the is_stmt
13510 column, and include is_stmt information in the output.
13511 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13512 preference to non-statements.
13513 (find_pcs_for_symtab_line): Prefer is-statement entries.
13514 (find_line_common): Likewise.
13515 * symtab.h (struct linetable_entry): Add is_stmt field.
13516 (struct symtab_and_line): Likewise.
13517 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13518 arranging the line table.
13519
13520 2020-03-07 Tom de Vries <tdevries@suse.de>
13521
13522 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13523 DIE.
13524
13525 2020-03-07 Tom Tromey <tom@tromey.com>
13526
13527 * valops.c (value_literal_complex): Remove obsolete comment.
13528 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13529 comment.
13530
13531 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13532
13533 * infrun.h: Forward-declare thread_info.
13534 (set_step_info): Add thread_info parameter, add doc.
13535 * infrun.c (set_step_info): Add thread_info parameter, move doc
13536 to header.
13537 * infrun.c (process_event_stop_test): Pass thread to
13538 set_step_info call.
13539 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13540 set_step_info.
13541 (prepare_one_step): Add thread_info parameter, pass it to
13542 set_step_frame and prepare_one_step (recursive) call.
13543 (step_1): Pass thread to prepare_one_step call.
13544 (step_command_fsm::should_stop): Pass thread to
13545 prepare_one_step.
13546 (until_next_fsm): Pass thread to set_step_frame call.
13547 (finish_command): Pass thread to set_step_info call.
13548
13549 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13550
13551 * windows-tdep.c (windows_solib_create_inferior_hook):
13552 Check if inferior is running.
13553
13554 2020-03-06 Tom de Vries <tdevries@suse.de>
13555
13556 * NEWS: Fix "the the".
13557 * ctfread.c: Same.
13558
13559 2020-03-06 Tom de Vries <tdevries@suse.de>
13560
13561 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13562
13563 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13564
13565 * .dir-locals.el: Add a comment referencing the other copies of
13566 this file.
13567
13568 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13569
13570 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13571 psargs.
13572
13573 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13574
13575 * .gitattributes: New file.
13576
13577 2020-03-04 Tom Tromey <tom@tromey.com>
13578
13579 * symmisc.c (print_symbol_bcache_statistics)
13580 (print_objfile_statistics): Update.
13581 * symfile.c (allocate_symtab): Use intern.
13582 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13583 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13584 macro_cache>: Remove.
13585 <string_cache>: New member.
13586 (struct objfile) <intern>: New methods.
13587 * elfread.c (elf_symtab_read): Use intern.
13588 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13589 (dwarf2_compute_name, dwarf2_physname)
13590 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13591 names.
13592 (guess_partial_die_structure_name): Update.
13593 (partial_die_info::fixup): Intern name.
13594 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13595 name.
13596 (dwarf2_name): Intern name. Update.
13597 * buildsym.c (buildsym_compunit::get_macro_table): Use
13598 string_cache.
13599
13600 2020-03-04 Tom Tromey <tom@tromey.com>
13601
13602 * jit.c (bfd_open_from_target_memory): Make "target" const.
13603 * corefile.c (gnutarget): Now const.
13604 * gdbcore.h (gnutarget): Now const.
13605
13606 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13607
13608 * NEWS: Mention support for WOW64 processes.
13609 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13610 (amd64_windows_segment_register_p): Remove static.
13611 (_initialize_amd64_windows_nat): Update.
13612 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13613 * i386-windows-nat.c (context_offset): Update.
13614 (i386_mappings): Rename and remove static.
13615 (i386_windows_segment_register_p): Remove static.
13616 (_initialize_i386_windows_nat): Update.
13617 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13618 (STATUS_WX86_SINGLE_STEP): New macro.
13619 (EnumProcessModulesEx): New macro.
13620 (Wow64SuspendThread): New macro.
13621 (Wow64GetThreadContext): New macro.
13622 (Wow64SetThreadContext): New macro.
13623 (Wow64GetThreadSelectorEntry): New macro.
13624 (windows_set_context_register_offsets): Add static.
13625 (windows_set_segment_register_p): Likewise.
13626 (windows_add_thread): Adapt for WOW64 processes.
13627 (windows_fetch_one_register): Likewise.
13628 (windows_nat_target::fetch_registers): Likewise.
13629 (windows_store_one_register): Likewise.
13630 (display_selector): Likewise.
13631 (display_selectors): Likewise.
13632 (handle_exception): Likewise.
13633 (windows_continue): Likewise.
13634 (windows_nat_target::resume): Likewise.
13635 (windows_add_all_dlls): Likewise.
13636 (do_initial_windows_stuff): Likewise.
13637 (windows_nat_target::attach): Likewise.
13638 (windows_get_exec_module_filename): Likewise.
13639 (windows_nat_target::create_inferior): Likewise.
13640 (windows_xfer_siginfo): Likewise.
13641 (_initialize_loadable): Initialize Wow64SuspendThread,
13642 Wow64GetThreadContext, Wow64SetThreadContext,
13643 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13644 * windows-nat.h (windows_set_context_register_offsets):
13645 Remove declaration.
13646 (windows_set_segment_register_p): Likewise.
13647 (i386_windows_segment_register_p): Add declaration.
13648 (amd64_windows_segment_register_p): Likewise.
13649
13650 2020-03-04 Luis Machado <luis.machado@linaro.org>
13651
13652 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13653 in "info registers" for AArch64/ARM.
13654
13655 The change caused "info registers" to not print GPR's.
13656
13657 gdb/ChangeLog:
13658
13659 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13660
13661 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13662 when reg->group is empty and reggroup is not.
13663
13664 2020-03-03 Tom Tromey <tromey@adacore.com>
13665
13666 * dwarf2/frame.c (struct dwarf2_frame_cache)
13667 <checked_tailcall_bottom, entry_cfa_sp_offset,
13668 entry_cfa_sp_offset_p>: Remove members.
13669 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13670 (dwarf2_frame_prev_register): Don't call
13671 dwarf2_tailcall_sniffer_first.
13672 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13673 * frame-unwind.c (add_unwinder): New fuction.
13674 (frame_unwind_init): Use it. Add tailcall unwinder.
13675
13676 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13677 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13678
13679 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13680 value should be printed as true.
13681
13682 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13683
13684 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13685 (windows_init_abi): Set and use windows_so_ops.
13686
13687 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13688
13689 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13690 when verifying if dealing with a convenience variable.
13691
13692 2020-03-03 Luis Machado <luis.machado@linaro.org>
13693
13694 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13695
13696 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13697
13698 * infrun.c (gdbarch_supports_displaced_stepping): New.
13699 (use_displaced_stepping): Break up conditions in smaller pieces.
13700 Use gdbarch_supports_displaced_stepping.
13701 (displaced_step_prepare_throw): Use
13702 gdbarch_supports_displaced_stepping.
13703
13704 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13705
13706 * NEWS: Mention new behaviour of the history filename.
13707 * top.c (write_history_p): Add comment.
13708 (show_write_history_p): Add header comment, give a different
13709 message when history writing is on, but the history filename is
13710 empty.
13711 (history_filename): Add comment.
13712 (history_filename_empty): New function.
13713 (show_history_filename): Add header comment, give a different
13714 message when the filename is empty.
13715 (init_history): Compare history_filename against nullptr, and only
13716 read history if the filename is not empty.
13717 (set_history_filename): Add header comment, and only make
13718 non-empty filenames absolute.
13719 (init_main): Make the filename argument to 'set history filename'
13720 optional.
13721
13722 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13723
13724 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13725 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13726 (fetch_fp_register): Update.
13727 (fetch_fp_regs): Update.
13728 (store_fp_register): Update.
13729 (store_fp_regs): Update.
13730 (arm_netbsd_nat_target::read_description): New function.
13731 (fetch_elfcore_registers): Update.
13732
13733 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13734
13735 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13736 general_thread if the stop reply is missing a thread-id.
13737 (remote_target::process_stop_reply): Use the first non-exited
13738 thread if the target didn't pass a thread-id.
13739 * infrun.c (do_target_wait): Move call to
13740 switch_to_inferior_no_thread to ....
13741 (do_target_wait_1): ... here.
13742
13743 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13744
13745 * debuginfod-support.c: Include defs.h first.
13746
13747 2020-02-28 Tom de Vries <tdevries@suse.de>
13748
13749 * symfile.c (set_initial_language): Use default language for lookup.
13750
13751 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13752
13753 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13754 reader variable, pass `this` to read_cutu_die_from_dwo.
13755
13756 2020-02-27 Aaron Merey <amerey@redhat.com>
13757
13758 * source.c (open_source_file): Check for nullptr when computing
13759 srcpath.
13760
13761 2020-02-27 Tom Tromey <tromey@adacore.com>
13762
13763 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13764 member.
13765 (dwarf2_add_field): Don't update nfields.
13766 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13767
13768 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13771 abs.
13772
13773 2020-02-26 Tom Tromey <tom@tromey.com>
13774
13775 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13776 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13777 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13778 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13779 per_cu_data.
13780
13781 2020-02-26 Tom Tromey <tom@tromey.com>
13782
13783 * dwarf2/index-write.c (psym_index_map): Change type.
13784 (add_address_entry_worker, write_one_signatured_type)
13785 (recursively_count_psymbols, recursively_write_psymbols)
13786 (class debug_names, psyms_seen_size, write_gdbindex)
13787 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13788
13789 2020-02-26 Aaron Merey <amerey@redhat.com>
13790
13791 * Makefile.in: Handle optional debuginfod support.
13792 * NEWS: Update.
13793 * README: Add --with-debuginfod summary.
13794 * config.in: Regenerate.
13795 * configure: Regenerate.
13796 * configure.ac: Handle optional debuginfod support.
13797 * debuginfod-support.c: debuginfod helper functions.
13798 * debuginfod-support.h: Ditto.
13799 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13800 summary.
13801 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13802 when a dwz file cannot be found.
13803 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13804 debuginfo file cannot be found.
13805 * source.c (open_source_file): Query debuginfod servers when a
13806 source file cannot be found.
13807 * top.c (print_gdb_configuration): Include
13808 --{with,without}-debuginfod in the output.
13809
13810 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13811
13812 * thread.c (thr_try_catch_cmd): Print thread name.
13813
13814 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13815
13816 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13817 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13818 dwarf2_fetch_die_type_sect_off): Move to...
13819 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13820 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13821 dwarf2_fetch_die_type_sect_off): ... here.
13822 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13824 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13825
13826 2020-02-26 Tom de Vries <tdevries@suse.de>
13827
13828 PR gdb/25603
13829 * symfile.c (set_initial_language): Exit-early if
13830 language_mode == language_mode_manual.
13831
13832 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13833
13834 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13835 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13836 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13837
13838 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13839
13840 * gdbtypes.c (create_array_type_with_stride): Handle negative
13841 array strides.
13842 * valarith.c (value_subscripted_rvalue): Likewise.
13843
13844 2020-02-25 Luis Machado <luis.machado@linaro.org>
13845
13846 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13847
13848 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13849
13850 * loc.h (dwarf2_get_die_type): Move to...
13851 * read.h (dwarf2_get_die_type): ... here.
13852 * read.c (dwarf2_get_die_type): Move doc to header.
13853
13854 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13855
13856 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13857 'gnulib/Makefile.in' to the list.
13858
13859 2020-02-24 Tom Tromey <tom@tromey.com>
13860
13861 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13862 Remove.
13863 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13864 XOBNEWVEC.
13865
13866 2020-02-24 Tom Tromey <tom@tromey.com>
13867
13868 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13869 New method.
13870 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13871 (dw2_do_instantiate_symtab, dw2_get_file_names)
13872 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13873
13874 2020-02-24 Tom Tromey <tom@tromey.com>
13875
13876 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13877 make_scoped_restore.
13878 (dwarf2_psymtab::read_symtab): Don't clear
13879 reading_partial_symbols.
13880
13881 2020-02-24 Tom de Vries <tdevries@suse.de>
13882
13883 PR gdb/25592
13884 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13885
13886 2020-02-24 Tom de Vries <tdevries@suse.de>
13887
13888 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13889 commands layout next/prev/regs.
13890
13891 2020-02-22 Tom Tromey <tom@tromey.com>
13892
13893 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13894 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13895
13896 2020-02-22 Tom Tromey <tom@tromey.com>
13897
13898 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13899
13900 2020-02-22 Tom Tromey <tom@tromey.com>
13901
13902 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13903 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13904 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13905 * tui/tui.c (_initialize_tui): Add usage text.
13906
13907 2020-02-22 Tom Tromey <tom@tromey.com>
13908
13909 * tui/tui-win.c (tui_set_focus_command)
13910 (tui_set_win_height_command): Use error_no_arg.
13911 (_initialize_tui_win): Update help text.
13912 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13913
13914 2020-02-22 Tom Tromey <tom@tromey.com>
13915
13916 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13917 * tui/tui-disasm.h (struct tui_disasm_window)
13918 <display_start_addr>: Declare.
13919 * tui/tui-source.h (struct tui_source_window)
13920 <display_start_addr>: Declare.
13921 * tui/tui-winsource.h (struct tui_source_window_base)
13922 <show_source_line, display_start_addr>: New methods.
13923 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13924 Rename and move to protected section.
13925 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13926 (tui_source_window_base::do_erase_source_content): Update.
13927 (tui_source_window_base::show_source_line): Now a method.
13928 (tui_source_window_base::show_source_content)
13929 (tui_source_window_base::tui_source_window_base)
13930 (tui_source_window_base::rerender)
13931 (tui_source_window_base::refill)
13932 (tui_source_window_base::do_scroll_horizontal)
13933 (tui_source_window_base::set_is_exec_point_at)
13934 (tui_source_window_base::update_breakpoint_info)
13935 (tui_source_window_base::update_exec_info): Update.
13936 * tui/tui-source.c (tui_source_window::set_contents)
13937 (tui_source_window::showing_source_p)
13938 (tui_source_window::do_scroll_vertical)
13939 (tui_source_window::location_matches_p)
13940 (tui_source_window::line_is_displayed): Update.
13941 (tui_source_window::display_start_addr): New method.
13942 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13943 (tui_disasm_window::do_scroll_vertical)
13944 (tui_disasm_window::location_matches_p): Update.
13945 (tui_disasm_window::display_start_addr): New method.
13946
13947 2020-02-22 Tom Tromey <tom@tromey.com>
13948
13949 * NEWS: Add entry for gdb.register_window_type.
13950 * tui/tui-layout.h (window_factory): New typedef.
13951 (tui_register_window): Declare.
13952 * tui/tui-layout.c (saved_tui_windows): New global.
13953 (tui_apply_current_layout): Use it.
13954 (tui_register_window): New function.
13955 * python/python.c (do_start_initialization): Call
13956 gdbpy_initialize_tui.
13957 (python_GdbMethods): Add "register_window_type" function.
13958 * python/python-internal.h (gdbpy_register_tui_window)
13959 (gdbpy_initialize_tui): Declare.
13960 * python/py-tui.c: New file.
13961 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13962
13963 2020-02-22 Tom Tromey <tom@tromey.com>
13964
13965 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13966
13967 2020-02-22 Tom Tromey <tom@tromey.com>
13968
13969 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13970 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13971 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13972 (tui_set_win_focus_to): Move from tui-win.c.
13973
13974 2020-02-22 Tom Tromey <tom@tromey.com>
13975
13976 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13977 functions.
13978 (known_window_types): New global.
13979 (tui_get_window_by_name): Reimplement.
13980 (initialize_known_windows): New function.
13981 (validate_window_name): Rewrite.
13982 (_initialize_tui_layout): Call initialize_known_windows.
13983
13984 2020-02-22 Tom Tromey <tom@tromey.com>
13985
13986 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13987 Remove constants.
13988 * tui/tui-winsource.h (struct tui_source_window_base)
13989 <tui_source_window_base>: Remove parameter.
13990 * tui/tui-winsource.c
13991 (tui_source_window_base::tui_source_window_base): Remove
13992 parameter.
13993 (tui_source_window_base::refill): Update.
13994 * tui/tui-stack.h (struct tui_locator_window)
13995 <tui_locator_window>: Update.
13996 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13997 Default the constructor.
13998 * tui/tui-regs.h (struct tui_data_item_window)
13999 <tui_data_item_window>: Default the constructor.
14000 (struct tui_data_window) <tui_data_window>: Likewise.
14001 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14002 Default the constructor.
14003 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14004 Default the constructor.
14005 <type>: Remove.
14006 (struct tui_win_info) <tui_win_info>: Default the constructor.
14007 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14008 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14009 Default the constructor.
14010
14011 2020-02-22 Tom Tromey <tom@tromey.com>
14012
14013 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14014 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14015 * tui/tui-win.c (tui_resize_all): Don't call
14016 tui_delete_invisible_windows.
14017 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14018 done.
14019 (tui_set_layout): Update.
14020 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14021 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14022 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14023
14024 2020-02-22 Tom Tromey <tom@tromey.com>
14025
14026 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14027 correctly.
14028
14029 2020-02-22 Tom Tromey <tom@tromey.com>
14030
14031 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14032
14033 2020-02-22 Tom Tromey <tom@tromey.com>
14034
14035 * tui/tui-winsource.h (struct tui_source_window_iterator)
14036 <inner_iterator>: New etytypedef.
14037 <tui_source_window_iterator>: Take "end" parameter.
14038 <tui_source_window_iterator>: Take iterator.
14039 <operator*, advance>: Update.
14040 <m_iter>: Change type.
14041 <m_end>: New field.
14042 (struct tui_source_windows) <begin, end>: Update.
14043 * tui/tui-layout.c (tui_windows): New global.
14044 (tui_apply_current_layout): Clear tui_windows.
14045 (tui_layout_window::apply): Update tui_windows.
14046 * tui/tui-data.h (tui_windows): Declare.
14047 (all_tui_windows): Now inline function.
14048 (class tui_window_iterator, struct all_tui_windows): Remove.
14049
14050 2020-02-22 Tom Tromey <tom@tromey.com>
14051
14052 PR tui/17850:
14053 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14054 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14055 "height" argument.
14056 (class tui_layout_window) <get_sizes>: Likewise.
14057 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14058 argument.
14059 <get_sizes>: Add "height" argument.
14060 <m_vertical>: New field.
14061 * tui/tui-layout.c (tui_layout_split::clone): Update.
14062 (tui_layout_split::get_sizes): Add "height" argument.
14063 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14064 (tui_new_layout_command): Parse "-horizontal".
14065 (_initialize_tui_layout): Update help string.
14066 (tui_layout_split::specification): Add "-horizontal" when needed.
14067 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14068 argument.
14069 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14070 New methods.
14071
14072 2020-02-22 Tom Tromey <tom@tromey.com>
14073
14074 * tui/tui-layout.h (enum tui_adjust_result): New.
14075 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14076 (class tui_layout_window) <adjust_size>: Return
14077 tui_adjust_result. Rewrite.
14078 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14079 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14080
14081 2020-02-22 Tom Tromey <tom@tromey.com>
14082
14083 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14084 parameter and return types.
14085 (class tui_layout_base) <specification>: Add "depth".
14086 (class tui_layout_window) <specification>: Add "depth".
14087 (class tui_layout_split) <specification>: Add "depth".
14088 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14089 and return types.
14090 (tui_new_layout_command): Parse sub-layouts.
14091 (_initialize_tui_layout): Update help string.
14092 (tui_layout_window::specification): Add "depth".
14093 (add_layout_command): Update.
14094
14095 2020-02-22 Tom Tromey <tom@tromey.com>
14096
14097 * NEWS: Add "tui new-layout" item.
14098 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14099 Add new-layout command to help text.
14100 (validate_window_name): New function.
14101 (tui_new_layout_command): New function.
14102 (_initialize_tui_layout): Register "new-layout".
14103 (tui_layout_window::specification): New method.
14104 (tui_layout_window::specification): New method.
14105 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14106 method.
14107 (class tui_layout_window) <specification>: New method.
14108 (class tui_layout_split) <specification>: New method.
14109
14110 2020-02-22 Tom Tromey <tom@tromey.com>
14111
14112 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14113 * tui/tui-win.c (window_name_completer): Update comment.
14114 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14115 Declare method.
14116 (class tui_layout_window) <replace_window>: Likewise.
14117 (class tui_layout_split) <replace_window>: Likewise.
14118 (tui_set_layout): Don't declare.
14119 (tui_set_initial_layout): Declare function.
14120 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14121 (asm_regs_layout): New globals.
14122 (tui_current_layout, show_layout): Remove.
14123 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14124 (find_layout, tui_apply_layout): New function.
14125 (layout_completer): Remove.
14126 (tui_next_layout): Reimplement.
14127 (tui_next_layout_command): New function.
14128 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14129 (tui_regs_layout): Reimplement.
14130 (tui_regs_layout_command): New function.
14131 (extract_display_start_addr): Rewrite.
14132 (next_layout, prev_layout): Remove.
14133 (tui_layout_window::replace_window): New method.
14134 (tui_layout_split::replace_window): New method.
14135 (destroy_layout): New function.
14136 (layout_list): New global.
14137 (add_layout_command): New function.
14138 (initialize_layouts): Update.
14139 (tui_layout_command): New function.
14140 (_initialize_tui_layout): Install "layout" commands.
14141 * tui/tui-data.h (enum tui_layout_type): Remove.
14142 (tui_current_layout): Don't declare.
14143
14144 2020-02-22 Tom Tromey <tom@tromey.com>
14145
14146 * tui/tui-regs.c (tui_reg_layout): Remove.
14147 (tui_reg_command): Use tui_regs_layout.
14148 * tui/tui-layout.h (tui_reg_command): Declare.
14149 * tui/tui-layout.c (tui_reg_command): New function.
14150
14151 2020-02-22 Tom Tromey <tom@tromey.com>
14152
14153 * tui/tui.c (tui_rl_delete_other_windows): Call
14154 tui_remove_some_windows.
14155 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14156 Declare method.
14157 (class tui_layout_window) <remove_windows>: New method.
14158 (class tui_layout_split) <remove_windows>: Declare.
14159 (tui_remove_some_windows): Declare.
14160 * tui/tui-layout.c (tui_remove_some_windows): New function.
14161 (tui_layout_split::remove_windows): New method.
14162
14163 2020-02-22 Tom Tromey <tom@tromey.com>
14164
14165 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14166 * tui/tui-layout.h (tui_next_layout): Declare.
14167 * tui/tui-layout.c (tui_next_layout): New function.
14168
14169 2020-02-22 Tom Tromey <tom@tromey.com>
14170
14171 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14172 correct coordinates.
14173
14174 2020-02-22 Tom Tromey <tom@tromey.com>
14175
14176 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14177 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14178 DATA_WIN case.
14179
14180 2020-02-22 Tom Tromey <tom@tromey.com>
14181
14182 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14183 TUI_DISASM_WIN, not tui_win_list.
14184
14185 2020-02-22 Tom Tromey <tom@tromey.com>
14186
14187 * valprint.c (generic_val_print_enum_1)
14188 (val_print_type_code_flags): Style member names.
14189 * rust-lang.c (val_print_struct, rust_print_enum)
14190 (rust_print_struct_def, rust_internal_print_type): Style member
14191 names.
14192 * p-valprint.c (pascal_object_print_value_fields): Style member
14193 names. Only call fprintf_symbol_filtered for static members.
14194 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14195 * f-valprint.c (f_val_print): Style member names.
14196 * f-typeprint.c (f_type_print_base): Style member names.
14197 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14198 call fprintf_symbol_filtered for static members.
14199 (cp_print_class_member): Style member names.
14200 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14201 member names.
14202 * ada-valprint.c (ada_print_scalar): Style enum names.
14203 (ada_val_print_enum): Likewise.
14204 * ada-typeprint.c (print_enum_type): Style enum names.
14205
14206 2020-02-21 Tom Tromey <tom@tromey.com>
14207
14208 * psympriv.h (struct partial_symtab): Update comment.
14209
14210 2020-02-21 Tom Tromey <tromey@adacore.com>
14211
14212 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14213 type is CORE_ADDR.
14214
14215 2020-02-21 Tom de Vries <tdevries@suse.de>
14216
14217 PR gdb/25534
14218 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14219 if dependencies[i]->user != NULL.
14220
14221 2020-02-21 Ali Tamur <tamur@google.com>
14222
14223 * dwarf2/read.c (dwarf2_name): Add null check.
14224
14225 2020-02-20 Tom Tromey <tom@tromey.com>
14226
14227 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14228 ">=", in binary search.
14229 (dwarf2_find_containing_comp_unit): New overload.
14230 (run_test): New self-test.
14231 (_initialize_dwarf2_read): Register new test.
14232
14233 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14234
14235 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14236 * riscv-tdep.h: Likewise.
14237 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14238 rv32-only CSR.
14239 * features/riscv/64bit-csr.xml: Regenerated.
14240
14241 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14242 Tom Tromey <tom@tromey.com>
14243
14244 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14245 of 'fputc_unfiltered'.
14246 (putchar_unfiltered): Call 'fputc_unfiltered'.
14247 (fputc_unfiltered): Call 'fputs_unfiltered'.
14248
14249 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14250
14251 * config.in: Regenerate.
14252 * configure: Regenerate.
14253 * configure.ac: Add --with-python-libdir option.
14254 * main.c: Use WITH_PYTHON_LIBDIR.
14255
14256 2020-02-19 Tom Tromey <tom@tromey.com>
14257
14258 * symtab.c (general_symbol_info::compute_and_set_names): Use
14259 obstack_strndup. Simplify call to symbol_set_demangled_name.
14260
14261 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14262
14263 * dwarf2/read.c (allocate_signatured_type_table,
14264 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14265 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14266 Remove objfile parameter, update all callers.
14267
14268 2020-02-19 Doug Evans <dje@google.com>
14269
14270 PR rust/25535
14271 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14272 rust_enum_variant calculation.
14273
14274 2020-02-19 Tom Tromey <tromey@adacore.com>
14275
14276 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14277
14278 2020-02-19 Tom Tromey <tromey@adacore.com>
14279
14280 * ada-lang.c (cache_symbol): Use obstack_strdup.
14281
14282 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14283
14284 * configure: Regenerate.
14285
14286 2020-02-19 Tom Tromey <tromey@adacore.com>
14287
14288 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14289 NULL check.
14290
14291 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14292
14293 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14294
14295 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14296
14297 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14298 if GDBSERVER is not defined.
14299 (riscv_tdesc_cache): Likewise, also store const target_desc.
14300 (STATIC_IN_GDB): Define.
14301 (riscv_create_target_description): Update declaration with
14302 STATIC_IN_GDB.
14303 (riscv_lookup_target_description): New function, only define if
14304 GDBSERVER is not defined.
14305 * arch/riscv.h (riscv_create_target_description): Declare only
14306 when GDBSERVER is defined.
14307 (riscv_lookup_target_description): New declaration when GDBSERVER
14308 is not defined.
14309 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14310 (riscv_linux_read_features): ...this, and return
14311 riscv_gdbarch_features instead of target_desc.
14312 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14313 (riscv_linux_read_description): Rename to...
14314 (riscv_linux_read_features): ...this.
14315 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14316 Update to use riscv_gdbarch_features and
14317 riscv_lookup_target_description.
14318 * riscv-tdep.c (riscv_find_default_target_description): Use
14319 riscv_lookup_target_description instead of
14320 riscv_create_target_description.
14321
14322 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14323
14324 * valprint.c (generic_val_print_enum_1): When printing a flag
14325 enum with value 0 and there is no enumerator with value 0, print
14326 just "0" instead of "(unknown: 0x0)".
14327
14328 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14329
14330 * valprint.c (generic_val_print_enum_1): Print unknown part of
14331 flag enum in hex.
14332
14333 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14334
14335 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14336 flag enums to contain duplicate enumerators.
14337 * valprint.c (generic_val_print_enum_1): Update comment.
14338
14339 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14340
14341 * dwarf2/read.c: Include "count-one-bits.h".
14342 (update_enumeration_type_from_children): If an enumerator has
14343 multiple bits set, don't treat the enumeration as a "flag enum".
14344 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14345 of flag enums have 0 or 1 bit set.
14346
14347 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14348
14349 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14350 conversion.
14351 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14352 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14353 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14354 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14355 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14356
14357 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14358
14359 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14360
14361 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14362
14363 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14364 displaced_step_closure_up.
14365 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14366 (struct displaced_step_closure_up):
14367 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14368 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14369 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14370 Likewise.
14371 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14372 * gdbarch.c, gdbarch.h: Re-generate.
14373 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14374 displaced_step_closure_up.
14375 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14376 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14377 * infrun.h (displaced_step_closure_up): New type alias.
14378 (struct displaced_step_inferior_state) <step_closure>: Change
14379 type to displaced_step_closure_up.
14380 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14381 displaced_step_closure_up.
14382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14383
14384 2020-02-14 Tom Tromey <tom@tromey.com>
14385
14386 * minidebug.c (gnu_debug_key): New global.
14387 (find_separate_debug_file_in_section): Use it.
14388
14389 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14390
14391 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14392 std::unique_ptr.
14393 * gdbarch.c: Re-generate.
14394 * gdbarch.h: Re-generate.
14395 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14396 change.
14397 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14398 type to std::unique_ptr.
14399 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14400 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14401 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14402 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14403 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14404 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14405 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14406 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14407 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14408
14409 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14410
14411 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14412 std::unique_ptr.
14413 (displaced_step_clear): Rename to...
14414 (displaced_step_reset): ... this. Just call displaced->reset ().
14415 (displaced_step_clear_cleanup): Rename to...
14416 (displaced_step_reset_cleanup): ... this.
14417 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14418 (displaced_step_fixup): Likewise.
14419 (resume_1): Likewise.
14420 (handle_inferior_event): Restore child's memory before calling
14421 displaced_step_fixup on the parent.
14422 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14423 to std::unique_ptr.
14424 <step_closure>: Change type to std::unique_ptr.
14425
14426 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14427
14428 * arm-tdep.c: Include count-one-bits.h.
14429 (cleanup_block_store_pc): Use count_one_bits.
14430 (cleanup_block_load_pc): Use count_one_bits.
14431 (arm_copy_block_xfer): Use count_one_bits.
14432 (thumb2_copy_block_xfer): Use count_one_bits.
14433 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14434 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14435 (thumb_get_next_pcs_raw): Use count_one_bits.
14436 (arm_get_next_pcs_raw): Use count_one_bits_l.
14437 * arch/arm.c (bitcount): Remove.
14438 * arch/arm.h (bitcount): Remove.
14439
14440 2020-02-14 Tom Tromey <tromey@adacore.com>
14441
14442 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14443 Update.
14444 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14445 * dwarf2/loc.c (call_site_find_chain_1): Return
14446 unique_xmalloc_ptr.
14447 (call_site_find_chain): Likewise.
14448
14449 2020-02-14 Richard Biener <rguenther@suse.de>
14450
14451 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14452 on expression with division operators.
14453
14454 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14455
14456 * MAINTAINERS (Write After Approval): Adding myself.
14457
14458 2020-02-12 Tom Tromey <tom@tromey.com>
14459
14460 * event-loop.c (event_data, gdb_event, event_handler_func):
14461 Remove.
14462
14463 2020-02-12 Tom Tromey <tom@tromey.com>
14464
14465 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14466 (dwarf2_frame_objfile_data): Add comment.
14467 (find_comp_unit, set_comp_unit): New functions.
14468 (dwarf2_frame_find_fde): Use find_comp_unit.
14469 (dwarf2_build_frame_info): Use set_comp_unit.
14470
14471 2020-02-12 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14474 (comp_unit): Don't initialize objfile.
14475 (execute_cfa_program): Add text_offset parameter.
14476 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14477 (dwarf2_frame_cache): Update.
14478 (dwarf2_build_frame_info): Don't set "objfile" member.
14479
14480 2020-02-12 Tom Tromey <tom@tromey.com>
14481
14482 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14483 (decode_frame_entry): Likewise.
14484 (dwarf2_build_frame_info): Update.
14485
14486 2020-02-12 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14489 (decode_frame_entry_1): Use the comp_unit obstack.
14490
14491 2020-02-12 Tom Tromey <tom@tromey.com>
14492
14493 * dwarf2/frame.c (struct comp_unit): Add initializers and
14494 constructor.
14495 (dwarf2_frame_objfile_data): Store a comp_unit.
14496 (dwarf2_frame_find_fde): Update.
14497 (dwarf2_build_frame_info): Use "new".
14498
14499 2020-02-12 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14502 (dwarf2_fde_table): Typedef for std::vector.
14503 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14504 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14505 (decode_frame_entry): Update.
14506 (dwarf2_build_frame_info): Use "new".
14507
14508 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14509
14510 * arm-tdep.c (arm_gdbarch_init): Update.
14511 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14512 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14513 have_neon, is_m>: Change to bool.
14514
14515 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14516
14517 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14518
14519 2020-02-12 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14522
14523 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14524
14525 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14526 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14527
14528 2020-02-11 Tom Tromey <tom@tromey.com>
14529
14530 * psymtab.h: Update comment.
14531
14532 2020-02-11 Tom Tromey <tom@tromey.com>
14533
14534 * gdb_obstack.h (struct auto_obstack): Use
14535 DISABLE_COPY_AND_ASSIGN.
14536
14537 2020-02-11 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2/frame.h (struct objfile): Don't forward declare.
14540
14541 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14542
14543 * cris-tdep.c (cris_supply_gregset): Change signature to match
14544 what struct regset expects.
14545 (cris_regset): New struct.
14546 (fetch_core_registers): Remove.
14547 (cris_iterate_over_regset_sections): New function.
14548 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14549 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14550
14551 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14552
14553 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14554 registers.
14555
14556 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14557
14558 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14559
14560 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14561
14562 * configure: Re-generate.
14563
14564 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14565
14566 * configure: Re-generate.
14567
14568 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14569
14570 * acinclude: Update warning.m4 path.
14571 * warning.m4: Move to gdbsupport.
14572
14573 2020-02-11 Tom Tromey <tromey@adacore.com>
14574
14575 * remote.c (remote_console_output): Update.
14576 * printcmd.c (printf_command): Update.
14577 * event-loop.c (gdb_wait_for_event): Update.
14578 * linux-nat.c (sigchld_handler): Update.
14579 * remote-sim.c (gdb_os_write_stdout): Update.
14580 (gdb_os_flush_stdout): Update.
14581 (gdb_os_flush_stderr): Update.
14582 (gdb_os_write_stderr): Update.
14583 * exceptions.c (print_exception): Update.
14584 * remote-fileio.c (remote_fileio_func_read): Update.
14585 (remote_fileio_func_write): Update.
14586 * tui/tui.c (tui_enable): Update.
14587 * tui/tui-interp.c (tui_interp::init): Update.
14588 * utils.c (init_page_info): Update.
14589 (putchar_unfiltered, fputc_unfiltered): Update.
14590 (gdb_flush): Update.
14591 (emit_style_escape): Update.
14592 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14593 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14594 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14595 (stderr_file::write): Update.
14596 (stderr_file::puts): Update.
14597 * ui-file.h (ui_file_isatty, ui_file_write)
14598 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14599 (ui_file_puts): Don't declare.
14600
14601 2020-02-10 Tom de Vries <tdevries@suse.de>
14602
14603 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14604 sentinel to char *.
14605
14606 2020-02-09 Tom de Vries <tdevries@suse.de>
14607
14608 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14609 filename if it matches "<artificial>".
14610
14611 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14612
14613 * windows-tdep.c (struct enum_value_name): New struct.
14614 (create_enum): New function.
14615 (windows_get_siginfo_type): Create and use enum types.
14616
14617 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14618
14619 * NEWS: Mention $_siginfo support for Windows.
14620 * windows-nat.c (handle_exception): Set siginfo_er.
14621 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14622 (windows_xfer_siginfo): New function.
14623 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14624 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14625 (init_windows_gdbarch_data): New function.
14626 (get_windows_gdbarch_data): New function.
14627 (windows_get_siginfo_type): New function.
14628 (windows_init_abi): Register windows_get_siginfo_type.
14629 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14630
14631 2020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14634 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14635 <keep>: Declare method.
14636 <m_keep>: Remove member.
14637 <~cutu_reader>: Remove.
14638 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14639 (cutu_reader::cutu_reader): Update.
14640 (cutu_reader::keep): Rename from ~cutu_reader.
14641 (process_psymtab_comp_unit, build_type_psymtabs_1)
14642 (process_skeletonless_type_unit, load_partial_comp_unit)
14643 (load_full_comp_unit, dwarf2_read_addr_index)
14644 (read_signatured_type): Update.
14645
14646 2020-02-08 Tom Tromey <tom@tromey.com>
14647
14648 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14649 "want_partial_unit" parameter.
14650 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14651 Inline check for DW_TAG_partial_unit.
14652 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14653
14654 2020-02-08 Tom Tromey <tom@tromey.com>
14655
14656 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14657 read.c.
14658 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14659 read.c.
14660
14661 2020-02-08 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/read.c (read_address): Move to comp-unit.c.
14664 (dwarf2_rnglists_process, dwarf2_ranges_process)
14665 (read_attribute_value, dwarf_decode_lines_1)
14666 (var_decode_location, decode_locdesc): Update.
14667 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14668 read.c. Remove "cu" parameter.
14669 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14670 method.
14671
14672 2020-02-08 Tom Tromey <tom@tromey.com>
14673
14674 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14675 (read_indirect_line_string): Update.
14676 * dwarf2/comp-unit.c (read_offset): Remove.
14677 (read_comp_unit_head): Update.
14678 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14679 method.
14680 (read_offset): Don't declare.
14681
14682 2020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14685 * dwarf2/read.c (struct comp_unit_head): Move to
14686 dwarf2/comp-unit.h.
14687 (enum class rcuh_kind): Move to comp-unit.h.
14688 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14689 (read_comp_unit_head, error_check_comp_unit_head)
14690 (read_and_check_comp_unit_head): Move to comp-unit.c.
14691 (read_offset, dwarf_unit_type_name): Likewise.
14692 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14693 (cutu_reader::cutu_reader, read_call_site_scope)
14694 (find_partial_die, follow_die_offset): Update.
14695 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14696
14697 2020-02-08 Tom Tromey <tom@tromey.com>
14698
14699 * dwarf2/read.c (read_offset_1): Move to leb.c.
14700 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14701 (dwarf_decode_macro_bytes): Update.
14702 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14703 * dwarf2/leb.h (read_offset): Declare.
14704
14705 2020-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2/read.c (dwarf2_section_size): Remove.
14708 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14709 Update.
14710 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14711
14712 2020-02-08 Tom Tromey <tom@tromey.com>
14713
14714 * dwarf2/read.c (read_initial_length): Move to leb.c.
14715 * dwarf2/leb.h (read_initial_length): Declare.
14716 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14717 handle_nonstd parameter.
14718 * dwarf2/frame.c (read_initial_length): Remove.
14719 (decode_frame_entry_1): Update.
14720
14721 2020-02-08 Tom Tromey <tom@tromey.com>
14722
14723 * dwarf2/loc.c (dwarf2_find_location_expression)
14724 (dwarf_evaluate_loc_desc::get_tls_address)
14725 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14726 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14727 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14728 (dwarf2_compile_property_to_c)
14729 (dwarf2_loc_desc_get_symbol_read_needs)
14730 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14731 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14732 (loclist_describe_location, loclist_tracepoint_var_ref)
14733 (loclist_generate_c_location): Update.
14734 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14735 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14736 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14737 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14738 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14739 (dwarf2_per_cu_data::addr_size)
14740 (dwarf2_per_cu_data::ref_addr_size)
14741 (dwarf2_per_cu_data::text_offset)
14742 (dwarf2_per_cu_data::addr_type): Now methods.
14743 (per_cu_header_read_in): Make per_cu "const".
14744 (dwarf2_version): Remove.
14745 (dwarf2_per_cu_data::int_type): Now a method.
14746 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14747 (set_die_type, read_array_type, read_subrange_index_type)
14748 (read_tag_string_type, read_subrange_type): Update.
14749 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14750 offset_size, ref_addr_size, text_offset, addr_type, version,
14751 objfile, int_type, addr_sized_int_type>: Declare methods.
14752
14753 2020-02-08 Tom Tromey <tom@tromey.com>
14754
14755 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14756 Move earlier.
14757
14758 2020-02-08 Tom Tromey <tom@tromey.com>
14759
14760 * dwarf2/read.h (dwarf_line_debug): Declare.
14761 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14762 * dwarf2/read.c: Move line_header code to new files.
14763 (dwarf_line_debug): No longer static.
14764 * dwarf2/line-header.c: New file.
14765 * dwarf2/line-header.h: New file.
14766
14767 2020-02-08 Tom Tromey <tom@tromey.com>
14768
14769 * dwarf2/read.c (struct line_header) <file_full_name,
14770 file_file_name>: Return unique_xmalloc_ptr.
14771 (line_header::file_file_name): Update.
14772 (line_header::file_full_name): Update.
14773 (dw2_get_file_names_reader): Update.
14774 (macro_start_file): Update.
14775
14776 2020-02-08 Tom Tromey <tom@tromey.com>
14777
14778 * dwarf2/read.c (struct line_header) <file_full_name,
14779 file_file_name>: Declare methods.
14780 (dw2_get_file_names_reader): Update.
14781 (file_file_name): Now a method.
14782 (file_full_name): Likewise.
14783 (macro_start_file): Update.
14784
14785 2020-02-08 Tom Tromey <tom@tromey.com>
14786
14787 * dwarf2/read.c (dwarf_always_disassemble)
14788 (show_dwarf_always_disassemble): Move to loc.c.
14789 (_initialize_dwarf2_read): Move "always-disassemble" registration
14790 to loc.c.
14791 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14792 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14793 static.
14794 (show_dwarf_always_disassemble): Move from read.c.
14795 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14796
14797 2020-02-08 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14800 (create_quick_file_names_table): Return htab_up.
14801 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14802 Update.
14803 * dwarf2/read.h (struct dwarf2_per_objfile)
14804 <quick_file_names_table>: Now htab_up.
14805
14806 2020-02-08 Tom Tromey <tom@tromey.com>
14807
14808 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14809
14810 2020-02-08 Tom Tromey <tom@tromey.com>
14811
14812 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14813 Rewrite.
14814 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14815 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14816 (abbrev_table::abbrev_table): No longer inline.
14817 (ABBREV_HASH_SIZE): Remove.
14818 (abbrev_table::m_abbrevs): Now an htab_up.
14819
14820 2020-02-08 Tom Tromey <tom@tromey.com>
14821
14822 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14823 (cutu_reader): Update.
14824 (build_type_psymtabs_1): Update.
14825 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14826 (abbrev_table::alloc_abbrev): Update.
14827 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14828 (abbrev_table::read): New static method, renamed from
14829 abbrev_table_read_table.
14830 (abbrev_table::alloc_abbrev)
14831 (abbrev_table::add_abbrev): Now private.
14832 (abbrev_table::abbrev_table): Now private.
14833 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14834
14835 2020-02-08 Tom Tromey <tom@tromey.com>
14836
14837 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14838 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14839 htab_up.
14840
14841 2020-02-08 Tom Tromey <tom@tromey.com>
14842
14843 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14844 htab_up.
14845 (lookup_dwo_unit_in_dwp): Update.
14846 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14847 on obstack.
14848
14849 2020-02-08 Tom Tromey <tom@tromey.com>
14850
14851 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14852 obstack.
14853
14854 2020-02-08 Tom Tromey <tom@tromey.com>
14855
14856 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14857 line_header_hash.
14858 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14859 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14860 Change type to htab_up.
14861
14862 2020-02-08 Tom Tromey <tom@tromey.com>
14863
14864 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14865 htab_up. Don't allocate on obstack.
14866 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14867 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14868 Change type to htab_up.
14869
14870 2020-02-08 Tom Tromey <tom@tromey.com>
14871
14872 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14873 Change type to htab_up.
14874 * dwarf2/read.c (create_signatured_type_table_from_index)
14875 (create_signatured_type_table_from_debug_names)
14876 (create_all_type_units, add_type_unit)
14877 (lookup_dwo_signatured_type, lookup_signatured_type)
14878 (process_skeletonless_type_unit): Update.
14879 (create_debug_type_hash_table, create_debug_types_hash_table):
14880 Change type of types_htab.
14881 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14882 htab_up. Don't allocate on obstack.
14883 (create_cus_hash_table): Change type of cus_htab parameter.
14884 (struct dwo_file) <cus, tus>: Now htab_up.
14885 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14886 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14887 (queue_and_load_all_dwo_tus): Update.
14888 * dwarf2/index-write.c (write_gdbindex): Update.
14889 (write_debug_names): Update.
14890
14891 2020-02-08 Tom Tromey <tom@tromey.com>
14892
14893 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14894 dwarf2/read.c. Remove "next" member. Add constructor ntad
14895 destructor.
14896 (struct dwarf2_per_objfile) <queue>: New member.
14897 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14898 dwarf2/read.h.
14899 (dwarf2_queue, dwarf2_queue_tail): Remove.
14900 (class dwarf2_queue_guard): Add parameter to constructor. Use
14901 DISABLE_COPY_AND_ASSIGN.
14902 <m_per_objfile>: New member.
14903 <~dwarf2_queue_guard>: Rewrite.
14904 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14905 Update.
14906 (~dwarf2_queue_item): New.
14907
14908 2020-02-08 Tom Tromey <tom@tromey.com>
14909
14910 * dwarf2/read.c (struct die_info) <has_children>: New member.
14911 (dw2_get_file_names_reader): Remove has_children.
14912 (dw2_get_file_names): Update.
14913 (read_cutu_die_from_dwo): Remove has_children.
14914 (cutu_reader::init_tu_and_read_dwo_dies)
14915 (cutu_reader::cutu_reader): Update.
14916 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14917 Remove has_children.
14918 (build_type_psymtabs_1, process_skeletonless_type_unit)
14919 (load_partial_comp_unit, load_full_comp_unit): Update.
14920 (create_dwo_cu_reader): Remove has_children.
14921 (create_cus_hash_table, read_die_and_children): Update.
14922 (read_full_die_1,read_full_die): Remove has_children.
14923 (read_signatured_type): Update.
14924 (class cutu_reader) <has_children>: Remove.
14925
14926 2020-02-08 Tom Tromey <tom@tromey.com>
14927
14928 * dwarf2/expr.c: Rename from dwarf2expr.c.
14929 * dwarf2/expr.h: Rename from dwarf2expr.h.
14930 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14931 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14932 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14933 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14934 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14935 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14936 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14937 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14938 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14939 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14940 * dwarf2/loc.c: Rename from dwarf2loc.c.
14941 * dwarf2/loc.h: Rename from dwarf2loc.h.
14942 * dwarf2/read.c: Rename from dwarf2read.c.
14943 * dwarf2/read.h: Rename from dwarf2read.h.
14944 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14945 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14946 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14947 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14948 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14949 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14950 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14951 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14952 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14953 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14954 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14955 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14956 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14957 Update.
14958 * Makefile.in (COMMON_SFILES): Update.
14959 (HFILES_NO_SRCDIR): Update.
14960
14961 2020-02-08 Tom Tromey <tom@tromey.com>
14962
14963 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14964 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14965
14966 2020-02-08 Tom Tromey <tom@tromey.com>
14967
14968 * dwarf2read.h (struct die_info): Don't declare.
14969
14970 2020-02-08 Tom Tromey <tom@tromey.com>
14971
14972 * dwarf2read.h (die_info_ptr): Remove typedef.
14973
14974 2020-02-08 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2read.c (read_call_site_scope)
14977 (handle_data_member_location, dwarf2_add_member_fn)
14978 (mark_common_block_symbol_computed, read_common_block)
14979 (attr_to_dynamic_prop, partial_die_info::read)
14980 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14981 (dwarf2_symbol_mark_computed, set_die_type): Update.
14982 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14983 method.
14984 (attr_form_is_block): Don't declare.
14985 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14986
14987 2020-02-08 Tom Tromey <tom@tromey.com>
14988
14989 * dwarf2read.c (dwarf2_find_base_address, )
14990 (read_call_site_scope, rust_containing_type)
14991 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14992 (handle_data_member_location, dwarf2_add_member_fn)
14993 (get_alignment, read_structure_type, process_structure_scope)
14994 (mark_common_block_symbol_computed, read_common_block)
14995 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14996 (partial_die_info::read, read_attribute_value, new_symbol)
14997 (lookup_die_type, dwarf2_get_ref_die_offset)
14998 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14999 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15000 (dwarf2_symbol_mark_computed): Update.
15001 * dwarf2/attribute.h (struct attribute) <value_as_address,
15002 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15003 methods.
15004 (value_as_address, attr_form_is_section_offset)
15005 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15006 * dwarf2/attribute.c (attribute::value_as_address)
15007 (attribute::form_is_section_offset, attribute::form_is_constant)
15008 (attribute::form_is_ref): Now methods.
15009
15010 2020-02-08 Tom Tromey <tom@tromey.com>
15011
15012 * dwarf2read.c (struct attribute, DW_STRING)
15013 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15014 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15015 (attr_form_is_block, attr_form_is_section_offset)
15016 (attr_form_is_constant, attr_form_is_ref): Move.
15017 * dwarf2/attribute.h: New file.
15018 * dwarf2/attribute.c: New file, from dwarf2read.c.
15019 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15020
15021 2020-02-08 Tom Tromey <tom@tromey.com>
15022
15023 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15024 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15025 Move.
15026 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15027 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15028 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15029 abbrev.c.
15030 * dwarf2/abbrev.h: New file.
15031 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15032 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15033
15034 2020-02-08 Tom Tromey <tom@tromey.com>
15035
15036 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15037 (dwarf2_section_size, dwarf2_get_section_info)
15038 (create_signatured_type_table_from_debug_names)
15039 (create_addrmap_from_aranges, read_debug_names_from_section)
15040 (get_gdb_index_contents_from_section, read_comp_unit_head)
15041 (error_check_comp_unit_head, read_abbrev_offset)
15042 (create_debug_type_hash_table, init_cu_die_reader)
15043 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15044 (read_comp_units_from_section, create_cus_hash_table)
15045 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15046 (create_dwp_v2_section, dwarf2_rnglists_process)
15047 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15048 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15049 (read_indirect_string_from_dwz, read_addr_index_1)
15050 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15051 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15052 (fill_in_loclist_baton): Update.
15053 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15054 get_containing_section, get_bfd_owner, get_bfd_section,
15055 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15056 (dwarf2_read_section, get_section_name, get_section_file_name)
15057 (get_containing_section, get_section_bfd_owner)
15058 (get_section_bfd_section, get_section_name, get_section_file_name)
15059 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15060 declare.
15061 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15062 (dwarf2_section_info::get_bfd_owner)
15063 (dwarf2_section_info::get_bfd_section)
15064 (dwarf2_section_info::get_name)
15065 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15066 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15067 (dwarf2_section_info::read): Now methods.
15068 * dwarf-index-write.c (class debug_names): Update.
15069
15070 2020-02-08 Tom Tromey <tom@tromey.com>
15071
15072 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15073 Move to dwarf2/section.h.
15074 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15075 (get_section_bfd_section, get_section_name)
15076 (get_section_file_name, get_section_id, get_section_flags)
15077 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15078 dwarf2/section.c.
15079 * dwarf2/section.h: New file.
15080 * dwarf2/section.c: New file, from dwarf2read.c.
15081 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15082
15083 2020-02-08 Tom Tromey <tom@tromey.com>
15084
15085 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15086 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15087 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15088 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15089 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15090 * dwarf2/leb.h: New file, from dwarf2read.c.
15091 * dwarf2/leb.c: New file, from dwarf2read.c.
15092 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15093 Remove.
15094 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15095 (COMMON_SFILES): Add dwarf2/leb.c.
15096
15097 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15098
15099 GDB 9.1 released.
15100
15101 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15102
15103 PR gdb/25190:
15104 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15105 * gdb/remote.c (remote_console_output): Update.
15106 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15107 (ui_file_puts): ...this.
15108 * gdb/ui-file.h (ui_file_puts): Add declaration.
15109 * gdb/utils.c (emit_style_escape): Update.
15110 (flush_wrap_buffer): Update.
15111 (fputs_maybe_filtered): Update.
15112 (fputs_unfiltered): Add function.
15113
15114 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15115
15116 * gdb/event-loop.c (gdb_wait_for_event): Update.
15117 * gdb/printcmd.c (printf_command): Update.
15118 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15119 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15120 (gdb_os_flush_stderr): Update.
15121 * gdb/remote.c (remote_console_output): Update.
15122 * gdb/ui-file.c (gdb_flush): Rename to...
15123 (ui_file_flush): ...this.
15124 (stderr_file::write): Update.
15125 (stderr_file::puts): Update.
15126 * gdb/ui-file.h (gdb_flush): Rename to...
15127 (ui_file_flush): ...this.
15128 * gdb/utils.c (gdb_flush): Add function.
15129 * gdb/utils.h (gdb_flush): Add declaration.
15130
15131 2020-02-07 Tom Tromey <tromey@adacore.com>
15132
15133 PR breakpoints/24915:
15134 * source.c (find_and_open_source): Do not check basenames_may_differ.
15135
15136 2020-02-07 Tom Tromey <tom@tromey.com>
15137
15138 * README: Update gdbserver documentation.
15139 * gdbserver: Move to top level.
15140 * configure.tgt (build_gdbserver): Remove.
15141 * configure.ac: Remove --enable-gdbserver.
15142 * configure: Rebuild.
15143 * Makefile.in (distclean): Don't mention gdbserver.
15144
15145 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15146
15147 * source-cache.c (source_cache::ensure): Surround
15148 get_plain_source_lines with a try/catch.
15149 (source_cache::get_line_charpos): Get rid of try/catch
15150 and only check for the return value of "ensure".
15151 * tui/tui-source.c (tui_source_window::set_contents):
15152 Simplify "nlines" calculation.
15153
15154 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15155
15156 * MAINTAINERS (Write After Approval): Add myself.
15157
15158 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15159
15160 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15161 function call.
15162
15163 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15164
15165 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15166
15167 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15168
15169 * nat/riscv-linux-tdesc.h: New file.
15170 * nat/riscv-linux-tdesc.c: New file, taking code from...
15171 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15172 ... here.
15173 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15174 NATDEPFILES.
15175
15176 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15177
15178 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15179 we don't set the fake simulator ptid to the null_ptid.
15180
15181 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15182
15183 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15184 * gdbthread.h (class thread_info) <resumed>: Likewise.
15185 * infrun.c (resume_1): Likewise.
15186 (proceed): Likewise.
15187 (infrun_thread_stop_requested): Likewise.
15188 (stop_all_threads): Likewise.
15189 (handle_inferior_event): Likewise.
15190 (restart_threads): Likewise.
15191 (finish_step_over): Likewise.
15192 (keep_going_stepped_thread): Likewise.
15193 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15194 (linux_handle_extended_wait): Likewise.
15195 * record-btrace.c (get_thread_current_frame_id): Likewise.
15196 * record-full.c (record_full_wait_1): Likewise.
15197 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15198 * target.c (target_resume): Likewise.
15199 * thread.c (set_running_thread): Likewise.
15200
15201 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15202
15203 * f-valprint.c (f77_print_array_1): Changed datatype of index
15204 variable to LONGEST from int to enable it to contain bound
15205 values correctly.
15206
15207 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15208
15209 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15210 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15211 offsets according to FLEN determined.
15212 (riscv_linux_nat_target::read_description): Determine FLEN
15213 dynamically.
15214 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15215 according to FLEN determined.
15216 (riscv_linux_nat_target::store_registers): Likewise.
15217
15218 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15219
15220 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15221 when reg->group is empty and reggroup is not.
15222
15223 2020-01-31 Tom Tromey <tromey@adacore.com>
15224
15225 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15226 Call beneath target's mourn_inferior after unpushing.
15227
15228 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15229
15230 PR tui/9765
15231 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15232 have enough lines to fill the screen, still return the lowest
15233 address we found.
15234
15235 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15236
15237 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15238 '-', '<', and '>' commands.
15239
15240 2020-01-29 Pedro Alves <palves@redhat.com>
15241 Sergio Durigan Junior <sergiodj@redhat.com>
15242
15243 * infcmd.c (construct_inferior_arguments): Assert that
15244 'argc' is greater than 0.
15245
15246 2020-01-29 Luis Machado <luis.machado@linaro.org>
15247
15248 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15249 (BRK_INSN_MASK): Define to 0xd4200000.
15250 (aarch64_program_breakpoint_here_p): New function.
15251 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15252 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15253 breakpoint.c.
15254 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15255 breakpoint.h
15256 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15257 call gdbarch_program_breakpoint_here_p.
15258 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15259 default_program_breakpoint_here_p, changed return type to bool and
15260 simplified.
15261 * breakpoint.h (program_breakpoint_here): Moved prototype to
15262 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15263 return type to bool.
15264 * gdbarch.c: Regenerate.
15265 * gdbarch.h: Regenerate.
15266 * gdbarch.sh (program_breakpoint_here_p): New method.
15267 * infrun.c (handle_signal_stop): Call
15268 gdbarch_program_breakpoint_here_p.
15269
15270 2020-01-26 Tom Tromey <tom@tromey.com>
15271
15272 * ctfread.c (struct ctf_fp_info): Reindent.
15273 (_initialize_ctfread): Remove.
15274
15275 2020-01-26 Tom Tromey <tom@tromey.com>
15276
15277 * psymtab.c (partial_map_expand_apply)
15278 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15279 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15280 (psym_print_stats, psym_expand_symtabs_for_function)
15281 (psym_map_symbol_filenames, psym_map_matching_symbols)
15282 (psym_expand_symtabs_matching)
15283 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15284 (maintenance_check_psymtabs): Use new methods.
15285 * psympriv.h (struct partial_symtab) <readin_p,
15286 get_compunit_symtab>: New methods.
15287 <readin, compunit_symtab>: Remove members.
15288 (struct standard_psymtab): New.
15289 (struct legacy_psymtab): Derive from standard_psymtab.
15290 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15291 standard_psymtab.
15292 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15293
15294 2020-01-26 Tom Tromey <tom@tromey.com>
15295
15296 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15297 read_dependencies. Add assert.
15298 * psymtab.c (partial_symtab::read_dependencies): New method.
15299 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15300 method.
15301 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15302 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15303 read_dependencies.
15304 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15305 Add assert.
15306
15307 2020-01-26 Tom Tromey <tom@tromey.com>
15308
15309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15310 Call expand_psymtab.
15311 (xcoff_read_symtab): Call expand_psymtab.
15312 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15313 legacy_expand_psymtab.
15314 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15315 method.
15316 (struct legacy_psymtab) <expand_psymtab>: Implement.
15317 <legacy_expand_psymtab>: New member.
15318 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15319 (parse_partial_symbols): Set legacy_expand_psymtab.
15320 (psymtab_to_symtab_1): Change argument order. Call
15321 expand_psymtab.
15322 (new_psymtab): Set legacy_expand_psymtab.
15323 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15324 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15325 expand_psymtab.
15326 (dwarf2_psymtab::expand_psymtab): Rename from
15327 psymtab_to_symtab_1. Call expand_psymtab.
15328 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15329 (dbx_end_psymtab): Likewise.
15330 (dbx_psymtab_to_symtab_1): Change argument order. Call
15331 expand_psymtab.
15332 (dbx_read_symtab): Call expand_psymtab.
15333 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15334 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15335 (ctf_psymtab::read_symtab): Call expand_psymtab.
15336
15337 2020-01-26 Tom Tromey <tom@tromey.com>
15338
15339 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15340 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15341 messages.
15342 * mdebugread.c (mdebug_read_symtab): Remove prints.
15343 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15344 assert.
15345 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15346
15347 2020-01-26 Tom Tromey <tom@tromey.com>
15348
15349 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15350 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15351 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15352 legacy_symtab.
15353 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15354 * psymtab.c (psymtab_to_symtab): Call method.
15355 (dump_psymtab): Update.
15356 * psympriv.h (struct partial_symtab): Add virtual destructor.
15357 <read_symtab>: New method.
15358 (struct legacy_symtab): New.
15359 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15360 (struct pst_map) <pst>: Now a legacy_psymtab.
15361 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15362 (new_psymtab): Use legacy_psymtab.
15363 * dwarf2read.h (struct dwarf2_psymtab): New.
15364 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15365 * dwarf2read.c (dwarf2_create_include_psymtab)
15366 (dwarf2_build_include_psymtabs, create_type_unit_group)
15367 (create_partial_symtab, process_psymtab_comp_unit_reader)
15368 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15369 (set_partial_user): Use dwarf2_psymtab.
15370 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15371 (psymtab_to_symtab_1, process_full_comp_unit)
15372 (process_full_type_unit, dwarf2_ranges_read)
15373 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15374 (dwarf_decode_lines): Use dwarf2_psymtab.
15375 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15376 (add_address_entry_worker, write_one_signatured_type)
15377 (recursively_count_psymbols, recursively_write_psymbols)
15378 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15379 (write_debug_names): Likewise.
15380 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15381 <pst>: Now a legacy_psymtab.
15382 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15383 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15384 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15385 * ctfread.c (struct ctf_psymtab): New.
15386 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15387 ctf_psymtab.
15388 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15389 (create_partial_symtab): Return a ctf_psymtab.
15390 (scan_partial_symbols): Update.
15391
15392 2020-01-26 Tom Tromey <tom@tromey.com>
15393
15394 * xcoffread.c (xcoff_start_psymtab): Use new.
15395 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15396 renamed from start_psymtab_common.
15397 * psympriv.h (struct partial_symtab): Add new constructor.
15398 (start_psymtab_common): Don't declare.
15399 * mdebugread.c (parse_partial_symbols): Use new.
15400 * dwarf2read.c (create_partial_symtab): Use new.
15401 * dbxread.c (start_psymtab): Use new.
15402 * ctfread.c (create_partial_symtab): Use new.
15403
15404 2020-01-26 Tom Tromey <tom@tromey.com>
15405
15406 * xcoffread.c (xcoff_end_psymtab): Use new.
15407 * psymtab.c (start_psymtab_common): Use new.
15408 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15409 Update.
15410 * psympriv.h (struct partial_symtab): Add parameters to
15411 constructor. Don't inline.
15412 (allocate_psymtab): Don't declare.
15413 * mdebugread.c (new_psymtab): Use new.
15414 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15415 * dbxread.c (dbx_end_psymtab): Use new.
15416
15417 2020-01-26 Tom Tromey <tom@tromey.com>
15418
15419 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15420 allocate_psymtab. Update documentation.
15421 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15422 allocate_psymtab. Do not use new.
15423 (allocate_psymtab): Use new. Update.
15424
15425 2020-01-26 Tom Tromey <tom@tromey.com>
15426
15427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15428 * psymtab.c (psym_print_stats): Update.
15429 * psympriv.h (struct partial_symtab) <readin,
15430 psymtabs_addrmap_supported, anonymous>: Now bool.
15431 * mdebugread.c (psymtab_to_symtab_1): Update.
15432 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15433 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15434 (process_full_comp_unit, process_full_type_unit): Update.
15435 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15436 * ctfread.c (psymtab_to_symtab): Update.
15437
15438 2020-01-26 Tom Tromey <tom@tromey.com>
15439
15440 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15441 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15442 * psymtab.c (psymtab_storage): Delete psymtabs.
15443 (psymtab_storage::allocate_psymtab): Use new.
15444 (psymtab_storage::discard_psymtab): Use delete.
15445 * psympriv.h (struct partial_symtab): Add constructor and
15446 initializers.
15447
15448 2020-01-26 Tom Tromey <tom@tromey.com>
15449
15450 * machoread.c: Do not include psympriv.h.
15451
15452 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15453
15454 * NEWS: Mention the new option and the set/show commands.
15455
15456 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15457
15458 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15459 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15460 (validate_exec_file): New variables, enums, functions.
15461 (exec_file_locate_attach, print_section_info): Style the filenames.
15462 (_initialize_exec): Install show_exec_file_mismatch_command and
15463 set_exec_file_mismatch_command.
15464 * gdbcore.h (validate_exec_file): Declare.
15465 * infcmd.c (attach_command): Call validate_exec_file.
15466 * remote.c ( remote_target::remote_add_inferior): Likewise.
15467
15468 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15469
15470 * frame.c (find_frame_sal): Move call to get_next_frame into more
15471 inner scope.
15472 * inline-frame.c (inilne_state) <inline_state>: Update argument
15473 types.
15474 (inilne_state) <skipped_symbol>: Rename to...
15475 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15476 (skip_inline_frames): Build vector of skipped symbols and use this
15477 to reate the inline_state.
15478 (inline_skipped_symbol): Add a comment and some assertions, fetch
15479 skipped symbol from the list.
15480
15481 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15482
15483 * buildsym.c (lte_is_less_than): Delete.
15484 (buildsym_compunit::end_symtab_with_blockvector): Create local
15485 lambda function to sort line table entries, and use
15486 std::stable_sort instead of std::sort.
15487 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15488 markers when looking for a previous line.
15489
15490 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15491
15492 * dwarf2read.c (lnp_state_machine::record_line): Include
15493 end_sequence parameter in debug print out. Record the line if we
15494 are at an end_sequence marker even if it's not the start of a
15495 statement.
15496 * symmisc.c (maintenance_print_one_line_table): Print end of
15497 sequence markers with 'END' not '0'.
15498
15499 2020-01-24 Pedro Alves <palves@redhat.com>
15500
15501 PR gdb/25410
15502 * thread.c (scoped_restore_current_thread::restore): Use
15503 switch_to_inferior_no_thread.
15504 * exec.c: Include "progspace-and-thread.h".
15505 (add_target_sections, remove_target_sections):
15506 scoped_restore_current_pspace_and_thread instead of
15507 scoped_restore_current_thread.
15508 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15509 and aspace to the inferior before calling clone_program_space.
15510 Remove stale comment.
15511
15512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15513
15514 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15515 (arm_netbsd_nat_target::fetch_registers): ...this.
15516 (arm_nbsd_nat_target::store_registers): Rename to...
15517 (arm_netbsd_nat_target::store_registers): ...this.
15518
15519 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15520
15521 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15522 register_t.
15523
15524 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15525
15526 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15527 Update comment.
15528 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15529 Likewise.
15530 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15531 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15532 the correct replacement (iterate_over_regset_sections).
15533 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15534 Update comment.
15535
15536 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15537
15538 PR gdb/23718
15539 * gdb/python/python.c (execute_gdb_command): Call
15540 async_enable_stdin in catch block.
15541
15542 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15543
15544 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15545 SWITCH_THRU_ALL_UIS.
15546
15547 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15548
15549 PR tui/9765
15550 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15551 comment, add extra parameter, and update to store previous symbol
15552 when appropriate.
15553 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15554 add extra parameter.
15555 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15556 remove unneeded parameter, add try/catch around gdb_print_insn,
15557 rewrite to add items to asm_lines vector.
15558 (tui_find_backward_disassembly_start_address): New function.
15559 (tui_find_disassembly_address): Updated throughout.
15560 (tui_disasm_window::set_contents): Update for changes to
15561 tui_disassemble.
15562 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15563 number of lines to scroll.
15564
15565 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15566
15567 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15568 (SECT_OFF_DATA): Likewise.
15569 (SECT_OFF_RODATA): Likewise.
15570 (SECT_OFF_TEXT): Likewise.
15571 (SECT_OFF_BSS): Likewise.
15572 (struct objfile) <text_section_offset, data_section_offset>: New
15573 methods.
15574 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15575 objfile::text_section_offset.
15576 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15577 * coffread.c (coff_symtab_read): Likewise.
15578 (enter_linenos): Likewise.
15579 (process_coff_symbol): Likewise.
15580 * ctfread.c (get_objfile_text_range): Likewise.
15581 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15582 Use objfile::data_section_offset.
15583 * dwarf2-frame.c (execute_cfa_program): Use
15584 objfile::text_section_offset.
15585 (dwarf2_frame_find_fde): Likewise.
15586 * dwarf2read.c (create_addrmap_from_index): Likewise.
15587 (create_addrmap_from_aranges): Likewise.
15588 (dw2_find_pc_sect_compunit_symtab): Likewise.
15589 (process_psymtab_comp_unit_reader): Likewise.
15590 (add_partial_symbol): Likewise.
15591 (add_partial_subprogram): Likewise.
15592 (process_full_comp_unit): Likewise.
15593 (read_file_scope): Likewise.
15594 (read_func_scope): Likewise.
15595 (read_lexical_block_scope): Likewise.
15596 (read_call_site_scope): Likewise.
15597 (dwarf2_rnglists_process): Likewise.
15598 (dwarf2_ranges_process): Likewise.
15599 (dwarf2_ranges_read): Likewise.
15600 (dwarf_decode_lines_1): Likewise.
15601 (new_symbol): Likewise.
15602 (dwarf2_fetch_die_loc_sect_off): Likewise.
15603 (dwarf2_per_cu_text_offset): Likewise.
15604 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15605 * hppa-tdep.c (read_unwind_info): Likewise.
15606 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15607 * psympriv.h (struct partial_symtab): Likewise.
15608 * psymtab.c (find_pc_sect_psymtab): Likewise.
15609 * solib-svr4.c (enable_break): Likewise.
15610 * stap-probe.c (relocate_address): Use
15611 objfile::data_section_offset.
15612 * xcoffread.c (enter_line_range): Use
15613 objfile::text_section_offset.
15614 (read_xcoff_symtab): Likewise.
15615
15616 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15617
15618 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15619 declaration to narrower scopes.
15620
15621 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15622
15623 * darwin-nat.h (struct darwin_exception_msg, enum
15624 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15625 Move up.
15626 (class darwin_nat_target) <wait_1, check_new_threads,
15627 decode_exception_message, decode_message, stop_inferior,
15628 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15629 * darwin-nat.c (darwin_check_new_threads): Rename to...
15630 (darwin_nat_target::check_new_threads): ... this.
15631 (darwin_suspend_inferior_it): Remove.
15632 (darwin_decode_exception_message): Rename to...
15633 (darwin_nat_target::decode_exception_message): ... this.
15634 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15635 (darwin_decode_message): Rename to...
15636 (darwin_nat_target::decode_message): ... this.
15637 (cancel_breakpoint): Rename to...
15638 (darwin_nat_target::cancel_breakpoint): ... this.
15639 (darwin_wait): Rename to...
15640 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15641 instead of iterate_over_inferiors.
15642 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15643 (darwin_stop_inferior): Rename to...
15644 (darwin_nat_target::stop_inferior): ... this.
15645 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15646 (darwin_init_thread_list): Rename to...
15647 (darwin_nat_target::init_thread_list): ... this.
15648 (darwin_ptrace_him): Rename to...
15649 (darwin_nat_target::ptrace_him): ... this.
15650 (darwin_nat_target::create_inferior): Pass lambda function to
15651 fork_inferior.
15652 (darwin_nat_target::detach): Call stop_inferior instead of
15653 darwin_stop_inferior.
15654 * fork-inferior.h (fork_inferior): Change init_trace_fun
15655 parameter to gdb::function_view.
15656 * fork-inferior.c (fork_inferior): Likewise.
15657
15658 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15659
15660 * i386-cygwin-tdep.c (core_process_module_section): Update.
15661 * windows-nat.c (struct lm_info_windows): Add text_offset.
15662 (windows_xfer_shared_libraries): Update.
15663 * windows-tdep.c (windows_xfer_shared_library):
15664 Add text_offset_cached argument.
15665 * windows-tdep.h (windows_xfer_shared_library): Update.
15666
15667 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15668
15669 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15670
15671 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15672
15673 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15674 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15675 replace with range-based for.
15676 (gdbsim_interrupt_inferior): Remove.
15677 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15678 with a range-based for. Inline code from
15679 gdbsim_interrupt_inferior.
15680
15681 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15682
15683 * infrun.c (proceed): Fix indentation.
15684
15685 2020-01-21 Tom Tromey <tromey@adacore.com>
15686
15687 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15688 * python/python.c (python_extension_ops): Update.
15689 (gdbpy_colorize): New function.
15690 * python/lib/gdb/__init__.py (colorize): New function.
15691 * extension.h (ext_lang_colorize): Declare.
15692 * extension.c (ext_lang_colorize): New function.
15693 * extension-priv.h (struct extension_language_ops) <colorize>: New
15694 member.
15695 * cli/cli-style.c (_initialize_cli_style): Update help text.
15696
15697 2020-01-21 Luis Machado <luis.machado@linaro.org>
15698
15699 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15700 <cond>: Change type to bool.
15701 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15702 (aarch64_displaced_step_cb): Likewise.
15703 (aarch64_displaced_step_tb): Likewise.
15704
15705 2020-01-21 Luis Machado <luis.machado@linaro.org>
15706
15707 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15708 output.
15709
15710 2020-01-21 Luis Machado <luis.machado@linaro.org>
15711
15712 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15713 <pc_adjust>: Adjust the documentation.
15714 (aarch64_displaced_step_fixup): Check if PC really moved before
15715 adjusting it.
15716
15717 2020-01-19 Tom Tromey <tom@tromey.com>
15718
15719 * disasm.c (~gdb_disassembler): New destructor.
15720 (gdb_buffered_insn_length): Call disassemble_free_target.
15721 * disasm.h (class gdb_disassembler): Declare destructor. Use
15722 DISABLE_COPY_AND_ASSIGN.
15723
15724 2020-01-19 Tom Tromey <tom@tromey.com>
15725
15726 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15727 (die_reader_func_ftype): Remove.
15728 (cutu_reader): New class.
15729 (dw2_get_file_names_reader): Remove "data" parameter.
15730 (dw2_get_file_names): Use cutu_reader.
15731 (create_debug_type_hash_table): Update.
15732 (read_cutu_die_from_dwo): Update comment.
15733 (lookup_dwo_unit): Add dwo_name parameter.
15734 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15735 die_reader_func_ftype and data parameters.
15736 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15737 Remove die_reader_func_ftype and data parameters.
15738 (~cutu_reader): New; from init_cutu_and_read_dies.
15739 (cutu_reader::cutu_reader): Rename from
15740 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15741 and data parameters.
15742 (init_cutu_and_read_dies_simple): Remove.
15743 (struct process_psymtab_comp_unit_data): Remove.
15744 (process_psymtab_comp_unit_reader): Remove data parameter; add
15745 want_partial_unit and pretend_language parameters.
15746 (process_psymtab_comp_unit): Use cutu_reader.
15747 (build_type_psymtabs_reader): Remove data parameter.
15748 (build_type_psymtabs_1): Use cutu_reader.
15749 (process_skeletonless_type_unit): Likewise.
15750 (load_partial_comp_unit_reader): Remove.
15751 (load_partial_comp_unit): Use cutu_reader.
15752 (load_full_comp_unit_reader): Remove.
15753 (load_full_comp_unit): Use cutu_reader.
15754 (struct create_dwo_cu_data): Remove.
15755 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15756 dwo_unit parameters.
15757 (create_cus_hash_table): Use cutu_reader.
15758 (struct dwarf2_read_addr_index_data): Remove.
15759 (dwarf2_read_addr_index_reader): Remove.
15760 (dwarf2_read_addr_index): Use cutu_reader.
15761 (read_signatured_type_reader): Remove.
15762 (read_signatured_type): Use cutu_reader.
15763
15764 2020-01-19 Tom Tromey <tom@tromey.com>
15765
15766 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15767 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15768 (tui_wrefresh): Declare.
15769 * tui/tui-wingeneral.c (suppress_output): New global.
15770 (tui_suppress_output, ~tui_suppress_output): New constructor and
15771 destructor.
15772 (tui_wrefresh): New function.
15773 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15774 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15775 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15776 method.
15777 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15778 tui_wrefresh.
15779 (tui_data_window::no_refresh): New method.
15780 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15781 (tui_reg_command): Use tui_suppress_output
15782 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15783 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15784 method.
15785 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15786
15787 2020-01-19 Tom Tromey <tom@tromey.com>
15788
15789 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15790 Handle case where symtab is null.
15791
15792 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15793
15794 * linux-fork.c (one_fork_p): Simplify.
15795
15796 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15797
15798 * top.c (struct qt_args): Remove.
15799 (kill_or_detach): Change return type to void, replace `void *`
15800 parameter with a proper one.
15801 (print_inferior_quit_action): Likewise.
15802 (quit_confirm): Use range-based for loop to iterate over inferiors.
15803 (quit_force): Likewise.
15804
15805 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15806
15807 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15808 `void *` parameter with proper parameters.
15809 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15810 (print_one_inferior): Change return type to void, replace `void *`
15811 parameter with proper parameters.
15812 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15813 inferiors.
15814 (get_other_inferior): Remove.
15815 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15816 inferiors.
15817
15818 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15819
15820 * mi/mi-interp.c (report_initial_inferior): Remove.
15821 (mi_interp::init): Use range-based for to iterate over inferiors.
15822
15823 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15824
15825 * python/py-inferior.c (build_inferior_list): Remove.
15826 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15827
15828 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15829
15830 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15831 (btrace_stitch_trace): Likewise.
15832 * charset.c (intermediate_encoding): Likewise (vaild).
15833 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15834 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15835 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15836
15837 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15838
15839 * windows-tdep.c (windows_get_tlb_type):
15840 Add rtl_user_process_parameters type.
15841
15842 2020-01-16 Pedro Alves <palves@redhat.com>
15843 Norbert Lange <nolange79@gmail.com>
15844
15845 PR build/24805
15846 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15847 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15848 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15849 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15850 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15851 (ps_plog): Redeclare exported functions with default visibility.
15852
15853 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15854
15855 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15856 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15857
15858 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15859
15860 * infcmd.c (post_create_inferior): Use get_thread_regcache
15861 instead of get_current_regcache.
15862
15863 2020-01-14 Tom Tromey <tom@tromey.com>
15864
15865 PR symtab/12535:
15866 * python/python.c (gdbpy_decode_line): Treat empty string the same
15867 as no argument.
15868
15869 2020-01-14 Tom Tromey <tom@tromey.com>
15870
15871 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15872
15873 2020-01-14 Tom Tromey <tom@tromey.com>
15874
15875 * nat/linux-btrace.c: Don't include <config.h>.
15876 * nat/linux-ptrace.c: Don't include <config.h>.
15877 * nat/x86-linux-dregs.c: Don't include <config.h>.
15878
15879 2020-01-14 Tom Tromey <tom@tromey.com>
15880
15881 * configure: Rebuild.
15882 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15883
15884 2020-01-14 Tom Tromey <tom@tromey.com>
15885
15886 * nat/x86-linux-dregs.c: Include configh.h.
15887 * nat/linux-ptrace.c: Include configh.h.
15888 * nat/linux-btrace.c: Include configh.h.
15889 * defs.h: Include config.h, bfd.h.
15890 * configure.ac: Don't source common.host.
15891 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15892 * configure: Rebuild.
15893 * acinclude.m4: Update path.
15894 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15895 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15896 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15897 (CLIBS): Add LIBSUPPORT.
15898 (CDEPS): Likewise.
15899 (COMMON_SFILES): Remove gdbsupport files.
15900 (HFILES_NO_SRCDIR): Likewise.
15901 (stamp-version): Update path to create-version.sh.
15902 (ALLDEPFILES): Remove gdbsupport files.
15903
15904 2020-01-14 Tom Tromey <tom@tromey.com>
15905
15906 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15907 USE_WIN32API when needed.
15908 * configure.ac (USE_WIN32API): Don't define.
15909 (WIN32LIBS): Use WIN32APILIBS.
15910 * configure: Rebuild.
15911
15912 2020-01-14 Tom Tromey <tom@tromey.com>
15913
15914 * configure: Rebuild.
15915 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15916
15917 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15918
15919 * skip.c (skip_function_command): Make skip w/o arguments use the
15920 name of the inlined function if pc is inside any inlined function.
15921
15922 2020-01-14 Luis Machado <luis.machado@linaro.org>
15923
15924 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15925 * infrun.c (resume_1): Likewise.
15926 (handle_inferior_event): Remove stale comment.
15927 * linux-nat.c (linux_nat_target::resume): Update comments.
15928 (save_stop_reason): Likewise.
15929 (linux_nat_filter_event): Likewise.
15930 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15931
15932 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15933
15934 * elfread.c (record_minimal_symbol): Set section index to 0 for
15935 non-allocatable sections.
15936
15937
15938 2020-01-13 Ali Tamur <tamur@google.com>
15939
15940 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15941 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15942 to gdb::optional. Update comments.
15943 (dwo_file): Update comments.
15944 (read_attribute): Update API to take an additional out parameter,
15945 need_reprocess. This is used to mark attributes that need other
15946 attributes (e.g. str_offsets_base) for correct computation which may not
15947 have been read yet.
15948 (read_attribute_reprocess): New function declaration.
15949 (read_addr_index): Likewise.
15950 (read_dwo_str_index): Likewise.
15951 (read_stub_str_index): Likewise.
15952 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15953 (lookup_addr_base): New function definition.
15954 (lookup_ranges_base): Likewise.
15955 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15956 lookup_ranges_base.
15957 (init_cutu_and_read_dies): Update comments.
15958 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15959 unit. This is used to inherit parent's str_offsets_base and addr_base.
15960 Update comments.
15961 (init_cutu_and_read_dies_simple): Reflect API changes.
15962 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15963 (create_cus_hash_table): Change API to take parent compile unit.
15964 Reflect API changes.
15965 (open_and_init_dwo_file): Reflect API changes.
15966 (dwarf2_get_pc_bounds): Update comments.
15967 (dwarf2_record_block_ranges): Likewise.
15968 (read_full_die_1): Change implementation to reprocess attributes that
15969 need str_offsets_base and addr_base.
15970 (partial_die_info::read): Likewise.
15971 (read_attribute_reprocess): New function definition.
15972 (read_attribute_value): Change API to take an additional out parameter,
15973 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15974 when a non-dwo compile unit has index based attributes.
15975 (read_attribute): Reflect API changes.
15976 (read_addr_index_1): Reflect API changes. Update comments.
15977 (dwarf2_read_addr_index_data): Reflect API changes.
15978 (dwarf2_read_addr_index): Likewise.
15979 (read_str_index): Change API and implementation. This becomes a helper
15980 to be used by the new string index related methods. Update error
15981 message and comments.
15982 (read_dwo_str_index): New function definition.
15983 (read_stub_str_index): Likewise.
15984 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15985 * symfile.h (dwarf2_debug_sections): Likewise.
15986 * xcoffread.c (dwarf2_debug_sections): Likewise.
15987
15988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15989
15990 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15991 core_reg_sect type to gdb_byte *.
15992 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15993 * cris-tdep.c (fetch_core_registers): Likewise.
15994 * corelow.c (core_target::get_core_register_section): Change
15995 type of `contents` to gdb::byte_vector.
15996
15997 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15998
15999 * tui/tui-wingeneral.c (box_win): Position the title in the center
16000 of the border.
16001
16002 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16003
16004 * corelow.c (core_target::get_core_register_section): Use
16005 std::vector instead of alloca.
16006
16007 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16008
16009 * warning.m4: Add -Wmissing-declarations to build_warnings.
16010 * configure: Re-generate.
16011
16012 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16013
16014 * python/python.c (init__gdb_module): Add declaration.
16015
16016 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16017
16018 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16019 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16020 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16021 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16022 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16023 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16024 * ada-exp.y (_initialize_ada_exp): Add declaration.
16025 * ada-lang.c (_initialize_ada_language): Add declaration.
16026 * ada-tasks.c (_initialize_tasks): Add declaration.
16027 * agent.c (_initialize_agent): Add declaration.
16028 * aix-thread.c (_initialize_aix_thread): Add declaration.
16029 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16030 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16031 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16032 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16033 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16034 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16035 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16036 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16037 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16038 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16039 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16040 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16041 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16042 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16043 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16044 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16045 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16046 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16047 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16048 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16049 * annotate.c (_initialize_annotate): Add declaration.
16050 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16051 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16052 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16053 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16054 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16055 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16056 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16057 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16058 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16059 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16060 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16061 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16063 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16064 * auto-load.c (_initialize_auto_load): Add declaration.
16065 * auxv.c (_initialize_auxv): Add declaration.
16066 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16067 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16068 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16069 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16070 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16071 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16072 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16073 * breakpoint.c (_initialize_breakpoint): Add declaration.
16074 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16075 * btrace.c (_initialize_btrace): Add declaration.
16076 * charset.c (_initialize_charset): Add declaration.
16077 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16078 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16079 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16080 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16081 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16082 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16083 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16084 * coffread.c (_initialize_coffread): Add declaration.
16085 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16086 * compile/compile.c (_initialize_compile): Add declaration.
16087 * complaints.c (_initialize_complaints): Add declaration.
16088 * completer.c (_initialize_completer): Add declaration.
16089 * copying.c (_initialize_copying): Add declaration.
16090 * corefile.c (_initialize_core): Add declaration.
16091 * corelow.c (_initialize_corelow): Add declaration.
16092 * cp-abi.c (_initialize_cp_abi): Add declaration.
16093 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16094 * cp-support.c (_initialize_cp_support): Add declaration.
16095 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16096 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16097 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16098 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16099 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16100 * ctfread.c (_initialize_ctfread): Add declaration.
16101 * d-lang.c (_initialize_d_language): Add declaration.
16102 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16103 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16104 * dbxread.c (_initialize_dbxread): Add declaration.
16105 * dcache.c (_initialize_dcache): Add declaration.
16106 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16107 * disasm.c (_initialize_disasm): Add declaration.
16108 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16109 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16110 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16111 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16112 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16113 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16114 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16115 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16116 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16117 * elfread.c (_initialize_elfread): Add declaration.
16118 * exec.c (_initialize_exec): Add declaration.
16119 * extension.c (_initialize_extension): Add declaration.
16120 * f-lang.c (_initialize_f_language): Add declaration.
16121 * f-valprint.c (_initialize_f_valprint): Add declaration.
16122 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16123 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16124 * filesystem.c (_initialize_filesystem): Add declaration.
16125 * findcmd.c (_initialize_mem_search): Add declaration.
16126 * findvar.c (_initialize_findvar): Add declaration.
16127 * fork-child.c (_initialize_fork_child): Add declaration.
16128 * frame-base.c (_initialize_frame_base): Add declaration.
16129 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16130 * frame.c (_initialize_frame): Add declaration.
16131 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16132 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16133 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16134 * gcore.c (_initialize_gcore): Add declaration.
16135 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16136 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16137 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16138 * gdbarch.c (_initialize_gdbarch): Add declaration.
16139 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16140 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16141 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16142 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16143 * go-lang.c (_initialize_go_language): Add declaration.
16144 * go32-nat.c (_initialize_go32_nat): Add declaration.
16145 * guile/guile.c (_initialize_guile): Add declaration.
16146 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16147 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16148 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16149 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16150 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16151 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16152 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16153 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16154 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16155 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16156 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16157 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16158 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16159 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16160 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16161 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16162 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16163 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16164 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16165 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16166 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16167 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16168 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16169 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16170 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16171 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16172 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16173 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16174 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16175 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16176 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16177 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16178 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16179 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16180 * infcall.c (_initialize_infcall): Add declaration.
16181 * infcmd.c (_initialize_infcmd): Add declaration.
16182 * inflow.c (_initialize_inflow): Add declaration.
16183 * infrun.c (_initialize_infrun): Add declaration.
16184 * interps.c (_initialize_interpreter): Add declaration.
16185 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16186 * jit.c (_initialize_jit): Add declaration.
16187 * language.c (_initialize_language): Add declaration.
16188 * linux-fork.c (_initialize_linux_fork): Add declaration.
16189 * linux-nat.c (_initialize_linux_nat): Add declaration.
16190 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16191 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16192 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16193 * m2-lang.c (_initialize_m2_language): Add declaration.
16194 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16195 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16196 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16197 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16198 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16199 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16200 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16201 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16202 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16203 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16204 * machoread.c (_initialize_machoread): Add declaration.
16205 * macrocmd.c (_initialize_macrocmd): Add declaration.
16206 * macroscope.c (_initialize_macroscope): Add declaration.
16207 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16208 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16209 * maint.c (_initialize_maint_cmds): Add declaration.
16210 * mdebugread.c (_initialize_mdebugread): Add declaration.
16211 * memattr.c (_initialize_mem): Add declaration.
16212 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16213 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16214 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16215 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16216 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16217 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16218 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16219 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16220 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16221 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16222 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16223 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16224 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16225 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16226 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16227 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16228 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16229 * mipsread.c (_initialize_mipsread): Add declaration.
16230 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16231 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16232 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16233 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16234 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16235 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16236 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16237 * nto-procfs.c (_initialize_procfs): Add declaration.
16238 * objc-lang.c (_initialize_objc_language): Add declaration.
16239 * observable.c (_initialize_observer): Add declaration.
16240 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16241 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16242 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16243 * osabi.c (_initialize_gdb_osabi): Add declaration.
16244 * osdata.c (_initialize_osdata): Add declaration.
16245 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16246 * parse.c (_initialize_parse): Add declaration.
16247 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16248 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16249 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16250 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16251 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16252 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16253 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16254 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16255 * printcmd.c (_initialize_printcmd): Add declaration.
16256 * probe.c (_initialize_probe): Add declaration.
16257 * proc-api.c (_initialize_proc_api): Add declaration.
16258 * proc-events.c (_initialize_proc_events): Add declaration.
16259 * proc-service.c (_initialize_proc_service): Add declaration.
16260 * procfs.c (_initialize_procfs): Add declaration.
16261 * producer.c (_initialize_producer): Add declaration.
16262 * psymtab.c (_initialize_psymtab): Add declaration.
16263 * python/python.c (_initialize_python): Add declaration.
16264 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16265 * record-btrace.c (_initialize_record_btrace): Add declaration.
16266 * record-full.c (_initialize_record_full): Add declaration.
16267 * record.c (_initialize_record): Add declaration.
16268 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16269 * regcache.c (_initialize_regcache): Add declaration.
16270 * reggroups.c (_initialize_reggroup): Add declaration.
16271 * remote-notif.c (_initialize_notif): Add declaration.
16272 * remote-sim.c (_initialize_remote_sim): Add declaration.
16273 * remote.c (_initialize_remote): Add declaration.
16274 * reverse.c (_initialize_reverse): Add declaration.
16275 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16276 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16277 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16278 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16279 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16280 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16281 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16282 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16283 Add declaration.
16284 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16285 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16286 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16287 * rust-exp.y (_initialize_rust_exp): Add declaration.
16288 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16289 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16290 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16291 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16292 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16293 * score-tdep.c (_initialize_score_tdep): Add declaration.
16294 * ser-go32.c (_initialize_ser_dos): Add declaration.
16295 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16296 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16297 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16298 * ser-uds.c (_initialize_ser_socket): Add declaration.
16299 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16300 * serial.c (_initialize_serial): Add declaration.
16301 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16302 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16303 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16304 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16305 * skip.c (_initialize_step_skip): Add declaration.
16306 * sol-thread.c (_initialize_sol_thread): Add declaration.
16307 * solib-aix.c (_initialize_solib_aix): Add declaration.
16308 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16309 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16310 * solib-frv.c (_initialize_frv_solib): Add declaration.
16311 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16312 * solib-target.c (_initialize_solib_target): Add declaration.
16313 * solib.c (_initialize_solib): Add declaration.
16314 * source-cache.c (_initialize_source_cache): Add declaration.
16315 * source.c (_initialize_source): Add declaration.
16316 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16317 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16318 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16319 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16320 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16321 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16322 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16323 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16324 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16325 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16326 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16327 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16328 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16329 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16330 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16331 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16332 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16333 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16334 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16335 * stabsread.c (_initialize_stabsread): Add declaration.
16336 * stack.c (_initialize_stack): Add declaration.
16337 * stap-probe.c (_initialize_stap_probe): Add declaration.
16338 * std-regs.c (_initialize_frame_reg): Add declaration.
16339 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16340 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16341 * symfile.c (_initialize_symfile): Add declaration.
16342 * symmisc.c (_initialize_symmisc): Add declaration.
16343 * symtab.c (_initialize_symtab): Add declaration.
16344 * target.c (_initialize_target): Add declaration.
16345 * target-connection.c (_initialize_target_connection): Add
16346 declaration.
16347 * target-dcache.c (_initialize_target_dcache): Add declaration.
16348 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16349 * thread.c (_initialize_thread): Add declaration.
16350 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16351 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16352 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16353 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16354 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16355 * tracectf.c (_initialize_ctf): Add declaration.
16356 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16357 * tracefile.c (_initialize_tracefile): Add declaration.
16358 * tracepoint.c (_initialize_tracepoint): Add declaration.
16359 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16360 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16361 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16362 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16363 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16364 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16365 * tui/tui.c (_initialize_tui): Add declaration.
16366 * typeprint.c (_initialize_typeprint): Add declaration.
16367 * ui-style.c (_initialize_ui_style): Add declaration.
16368 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16369 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16370 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16371 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16372 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16373 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16374 * unittests/filtered_iterator-selftests.c
16375 (_initialize_filtered_iterator_selftests): Add declaration.
16376 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16377 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16378 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16379 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16380 * unittests/main-thread-selftests.c
16381 (_initialize_main_thread_selftests): Add declaration.
16382 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16383 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16384 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16385 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16386 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16387 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16388 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16389 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16390 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16391 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16392 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16393 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16394 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16395 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16396 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16397 declaration.
16398 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16399 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16400 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16401 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16402 * user-regs.c (_initialize_user_regs): Add declaration.
16403 * utils.c (_initialize_utils): Add declaration.
16404 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16405 * valops.c (_initialize_valops): Add declaration.
16406 * valprint.c (_initialize_valprint): Add declaration.
16407 * value.c (_initialize_values): Add declaration.
16408 * varobj.c (_initialize_varobj): Add declaration.
16409 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16410 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16411 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16412 * windows-nat.c (_initialize_windows_nat): Add declaration.
16413 (_initialize_check_for_gdb_ini): Add declaration.
16414 (_initialize_loadable): Add declaration.
16415 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16416 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16417 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16418 * xcoffread.c (_initialize_xcoffread): Add declaration.
16419 * xml-support.c (_initialize_xml_support): Add declaration.
16420 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16421 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16422 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16423 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16424
16425 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16426
16427 * regformats/regdat.sh: Generate declaration for init function.
16428
16429 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16430
16431 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16432 up.
16433 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16434 close_one_inferior>: New methods.
16435 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16436 pass down target to find_inferior_pid.
16437 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16438 Pass down target to find_inferior_ptid.
16439 (gdbsim_target::create_inferior): Pass down target to
16440 add_thread_silent.
16441 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16442 target down to find_inferior_ptid and switch_to_thread.
16443 (gdbsim_target::close): Update to call close_one_inferior.
16444 (struct resume_data): Remove.
16445 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16446 directly, rather than through a void pointer.
16447 (gdbsim_target::resume): Update to call resume_one_inferior.
16448
16449 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16450
16451 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16452
16453 2020-01-12 Pedro Alves <palves@redhat.com>
16454
16455 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16456 directly for the current inferior instead of
16457 discard_all_inferiors.
16458 (discard_all_inferiors): Delete.
16459
16460 2020-01-11 Tom Tromey <tom@tromey.com>
16461
16462 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16463 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16464 deprecated_safe_get_selected_frame.
16465
16466 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16467
16468 * inferior.c (print_inferior): Switch inferior before printing it.
16469
16470 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16471 Pedro Alves <palves@redhat.com>
16472
16473 * progspace-and-thread.c (switch_to_program_space_and_thread):
16474 Assert there's an inferior for PSPACE. Use
16475 switch_to_inferior_no_thread to switch the inferior too.
16476 * progspace.c (program_space::~program_space): Call
16477 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16478 (program_space::free_all_objfiles): Don't call clear_symtab_users
16479 here.
16480 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16481
16482 2020-01-10 Pedro Alves <palves@redhat.com>
16483
16484 * NEWS: Mention multi-target debugging, "info connections", and
16485 "add-inferior -no-connection".
16486
16487 2020-01-10 Pedro Alves <palves@redhat.com>
16488
16489 * infrun.c: Include "target-connection.h".
16490 (check_multi_target_resumption): New.
16491 (proceed): Call it.
16492 * target-connection.c (make_target_connection_string): Make
16493 extern.
16494 * target-connection.h (make_target_connection_string): Declare.
16495
16496 2020-01-10 Pedro Alves <palves@redhat.com>
16497
16498 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16499 * inferior.c (uiout_field_connection): New function.
16500 (print_inferior): Add new "connection-id" column.
16501 (add_inferior_command): Show connection number/string of added
16502 inferior.
16503 * process-stratum-target.h
16504 (process_stratum_target::connection_string): New virtual method.
16505 (process_stratum_target::connection_number): New field.
16506 * remote.c (remote_target::connection_string): New override.
16507 * target-connection.c: New file.
16508 * target-connection.h: New file.
16509 * target.c (decref_target): Remove process_stratum targets from
16510 the connection list.
16511 (target_stack::push): Add process_stratum targets to the
16512 connection list.
16513
16514 2020-01-10 Pedro Alves <palves@redhat.com>
16515
16516 Revert:
16517 2016-04-12 Pedro Alves <palves@redhat.com>
16518 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16519 Remove references to name.
16520 * serial.h (struct serial) <name>: Delete.
16521
16522 2020-01-10 Pedro Alves <palves@redhat.com>
16523
16524 * gdbarch-selftests.c (register_to_value_test): Remove "target
16525 already pushed" check.
16526
16527 2020-01-10 Pedro Alves <palves@redhat.com>
16528 John Baldwin <jhb@FreeBSD.org>
16529
16530 * aarch64-linux-nat.c
16531 (aarch64_linux_nat_target::thread_architecture): Adjust.
16532 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16533 (task_command_1): Likewise.
16534 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16535 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16536 (aix_thread_target::store_registers)
16537 (aix_thread_target::thread_alive): Adjust.
16538 * amd64-fbsd-tdep.c: Include "inferior.h".
16539 (amd64fbsd_get_thread_local_address): Pass down target.
16540 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16541 thread's gdbarch instead of target_gdbarch.
16542 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16543 get_last_target_status.
16544 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16545 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16546 inferiors.
16547 (update_inserted_breakpoint_locations): Skip if inferiors with no
16548 execution.
16549 (update_global_location_list): When handling moribund locations,
16550 find representative inferior for location's pspace, and use thread
16551 count of its process_stratum target.
16552 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16553 * bsd-uthread.c (bsd_uthread_target::wait): Use
16554 as_process_stratum_target and adjust thread_change_ptid and
16555 add_thread calls.
16556 (bsd_uthread_target::update_thread_list): Use
16557 as_process_stratum_target and adjust find_thread_ptid,
16558 thread_change_ptid and add_thread calls.
16559 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16560 find_thread_ptid call.
16561 * corelow.c (add_to_thread_list): Adjust add_thread call.
16562 (core_target_open): Adjust add_thread_silent and thread_count
16563 calls.
16564 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16565 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16566 * event-top.c (async_disconnect): Pop targets from all inferiors.
16567 * exec.c (add_target_sections): Push exec target on all inferiors
16568 sharing the program space.
16569 (remove_target_sections): Remove the exec target from all
16570 inferiors sharing the program space.
16571 (exec_on_vfork): New.
16572 * exec.h (exec_on_vfork): Declare.
16573 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16574 Pass it down.
16575 (fbsd_nat_target::update_thread_list): Adjust.
16576 (fbsd_nat_target::resume): Adjust.
16577 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16578 down.
16579 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16580 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16581 get_thread_arch_regcache call.
16582 * fork-child.c (gdb_startup_inferior): Pass target down to
16583 startup_inferior and set_executing.
16584 * gdbthread.h (struct process_stratum_target): Forward declare.
16585 (add_thread, add_thread_silent, add_thread_with_info)
16586 (in_thread_list): Add process_stratum_target parameter.
16587 (find_thread_ptid(inferior*, ptid_t)): New overload.
16588 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16589 parameter.
16590 (all_threads()): Delete overload.
16591 (all_threads, all_non_exited_threads): Add process_stratum_target
16592 parameter.
16593 (all_threads_safe): Use brace initialization.
16594 (thread_count): Add process_stratum_target parameter.
16595 (set_resumed, set_running, set_stop_requested, set_executing)
16596 (threads_are_executing, finish_thread_state): Add
16597 process_stratum_target parameter.
16598 (switch_to_thread): Use is_current_thread.
16599 * i386-fbsd-tdep.c: Include "inferior.h".
16600 (i386fbsd_get_thread_local_address): Pass down target.
16601 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16602 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16603 have_inferiors check.
16604 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16605 (inf_ptrace_target::attach): Adjust.
16606 * infcall.c (run_inferior_call): Adjust.
16607 * infcmd.c (run_command_1): Pass target to
16608 scoped_finish_thread_state.
16609 (proceed_thread_callback): Skip inferiors with no execution.
16610 (continue_command): Rename 'all_threads' local to avoid hiding
16611 'all_threads' function. Adjust get_last_target_status call.
16612 (prepare_one_step): Adjust set_running call.
16613 (signal_command): Use user_visible_resume_target. Compare thread
16614 pointers instead of inferior_ptid.
16615 (info_program_command): Adjust to pass down target.
16616 (attach_command): Mark target's 'thread_executing' flag.
16617 (stop_current_target_threads_ns): New, factored out from ...
16618 (interrupt_target_1): ... this. Switch inferior before making
16619 target calls.
16620 * inferior-iter.h
16621 (struct all_inferiors_iterator, struct all_inferiors_range)
16622 (struct all_inferiors_safe_range)
16623 (struct all_non_exited_inferiors_range): Filter on
16624 process_stratum_target too. Remove explicit.
16625 * inferior.c (inferior::inferior): Push dummy target on target
16626 stack.
16627 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16628 Add process_stratum_target parameter, and pass it down.
16629 (have_live_inferiors): Adjust.
16630 (switch_to_inferior_and_push_target): New.
16631 (add_inferior_command, clone_inferior_command): Handle
16632 "-no-connection" parameter. Use
16633 switch_to_inferior_and_push_target.
16634 (_initialize_inferior): Mention "-no-connection" option in
16635 the help of "add-inferior" and "clone-inferior" commands.
16636 * inferior.h: Include "process-stratum-target.h".
16637 (interrupt_target_1): Use bool.
16638 (struct inferior) <push_target, unpush_target, target_is_pushed,
16639 find_target_beneath, top_target, process_target, target_at,
16640 m_stack>: New.
16641 (discard_all_inferiors): Delete.
16642 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16643 (all_inferiors, all_non_exited_inferiors): Add
16644 process_stratum_target parameter.
16645 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16646 (target_last_proc_target): New global.
16647 (follow_fork_inferior): Push target on new inferior. Pass target
16648 to add_thread_silent. Call exec_on_vfork. Handle target's
16649 reference count.
16650 (follow_fork): Adjust get_last_target_status call. Also consider
16651 target.
16652 (follow_exec): Push target on new inferior.
16653 (struct execution_control_state) <target>: New field.
16654 (user_visible_resume_target): New.
16655 (do_target_resume): Call target_async.
16656 (resume_1): Set target's threads_executing flag. Consider resume
16657 target.
16658 (commit_resume_all_targets): New.
16659 (proceed): Also consider resume target. Skip threads of inferiors
16660 with no execution. Commit resumtion in all targets.
16661 (start_remote): Pass current inferior to wait_for_inferior.
16662 (infrun_thread_stop_requested): Consider target as well. Pass
16663 thread_info pointer to clear_inline_frame_state instead of ptid.
16664 (infrun_thread_thread_exit): Consider target as well.
16665 (random_pending_event_thread): New inferior parameter. Use it.
16666 (do_target_wait): Rename to ...
16667 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16668 down.
16669 (threads_are_resumed_pending_p, do_target_wait): New.
16670 (prepare_for_detach): Adjust calls.
16671 (wait_for_inferior): New inferior parameter. Handle it. Use
16672 do_target_wait_1 instead of do_target_wait.
16673 (fetch_inferior_event): Adjust. Switch to representative
16674 inferior. Pass target down.
16675 (set_last_target_status): Add process_stratum_target parameter.
16676 Save target in global.
16677 (get_last_target_status): Add process_stratum_target parameter and
16678 handle it.
16679 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16680 (context_switch): Check inferior_ptid == null_ptid before calling
16681 inferior_thread().
16682 (get_inferior_stop_soon): Pass down target.
16683 (wait_one): Rename to ...
16684 (poll_one_curr_target): ... this.
16685 (struct wait_one_event): New.
16686 (wait_one): New.
16687 (stop_all_threads): Adjust.
16688 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16689 event's target.
16690 (switch_back_to_stepped_thread): Also consider target.
16691 (print_stop_event): Update.
16692 (normal_stop): Update. Also consider the resume target.
16693 * infrun.h (wait_for_inferior): Remove declaration.
16694 (user_visible_resume_target): New declaration.
16695 (get_last_target_status, set_last_target_status): New
16696 process_stratum_target parameter.
16697 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16698 process_stratum_target parameter, and use it.
16699 (clear_inline_frame_state (thread_info*)): New.
16700 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16701 process_stratum_target parameter.
16702 (clear_inline_frame_state (thread_info*)): Declare.
16703 * linux-fork.c (delete_checkpoint_command): Pass target down to
16704 find_thread_ptid.
16705 (checkpoint_command): Adjust.
16706 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16707 instead of just tweaking inferior_ptid.
16708 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16709 (exit_lwp): Pass target down to find_thread_ptid.
16710 (attach_proc_task_lwp_callback): Pass target down to
16711 add_thread/set_running/set_executing.
16712 (linux_nat_target::attach): Pass target down to
16713 thread_change_ptid.
16714 (get_detach_signal): Pass target down to find_thread_ptid.
16715 Consider last target status's target.
16716 (linux_resume_one_lwp_throw, resume_lwp)
16717 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16718 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16719 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16720 (linux_nat_target::async_wait_fd): New.
16721 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16722 target down.
16723 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16724 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16725 * linux-thread-db.c (struct thread_db_info::process_target): New
16726 field.
16727 (add_thread_db_info): Save target.
16728 (get_thread_db_info): New process_stratum_target parameter. Also
16729 match target.
16730 (delete_thread_db_info): New process_stratum_target parameter.
16731 Also match target.
16732 (thread_from_lwp): Adjust to pass down target.
16733 (thread_db_notice_clone): Pass down target.
16734 (check_thread_db_callback): Pass down target.
16735 (try_thread_db_load_1): Always push the thread_db target.
16736 (try_thread_db_load, record_thread): Pass target down.
16737 (thread_db_target::detach): Pass target down. Always unpush the
16738 thread_db target.
16739 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16740 target down. Always unpush the thread_db target.
16741 (find_new_threads_callback, thread_db_find_new_threads_2)
16742 (thread_db_target::update_thread_list): Pass target down.
16743 (thread_db_target::pid_to_str): Pass current inferior down.
16744 (thread_db_target::get_thread_local_address): Pass target down.
16745 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16746 target down.
16747 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16748 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16749 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16750 (procfs_init_inferior): Rename to ...
16751 (procfs_target::procfs_init_inferior): ... this and adjust.
16752 (procfs_target::create_inferior, procfs_notice_thread)
16753 (procfs_do_thread_registers): Adjust.
16754 * ppc-fbsd-tdep.c: Include "inferior.h".
16755 (ppcfbsd_get_thread_local_address): Pass down target.
16756 * proc-service.c (ps_xfer_memory): Switch current inferior and
16757 program space as well.
16758 (get_ps_regcache): Pass target down.
16759 * process-stratum-target.c
16760 (process_stratum_target::thread_address_space)
16761 (process_stratum_target::thread_architecture): Pass target down.
16762 * process-stratum-target.h
16763 (process_stratum_target::threads_executing): New field.
16764 (as_process_stratum_target): New.
16765 * ravenscar-thread.c
16766 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16767 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16768 down.
16769 * record-btrace.c (record_btrace_target::info_record): Adjust.
16770 (record_btrace_target::record_method)
16771 (record_btrace_target::record_is_replaying)
16772 (record_btrace_target::fetch_registers)
16773 (get_thread_current_frame_id, record_btrace_target::resume)
16774 (record_btrace_target::wait, record_btrace_target::stop): Pass
16775 target down.
16776 * record-full.c (record_full_wait_1): Switch to event thread.
16777 Pass target down.
16778 * regcache.c (regcache::regcache)
16779 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16780 process_stratum_target parameter and handle it.
16781 (current_thread_target): New global.
16782 (get_thread_regcache): Add process_stratum_target parameter and
16783 handle it. Switch inferior before calling target method.
16784 (get_thread_regcache): Pass target down.
16785 (get_thread_regcache_for_ptid): Pass target down.
16786 (registers_changed_ptid): Add process_stratum_target parameter and
16787 handle it.
16788 (registers_changed_thread, registers_changed): Pass target down.
16789 (test_get_thread_arch_aspace_regcache): New.
16790 (current_regcache_test): Define a couple local test_target_ops
16791 instances and use them for testing.
16792 (readwrite_regcache): Pass process_stratum_target parameter.
16793 (cooked_read_test, cooked_write_test): Pass mock_target down.
16794 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16795 (get_thread_arch_aspace_regcache): Add process_stratum_target
16796 parameter.
16797 (regcache::target): New method.
16798 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16799 (regcache::registers_changed_ptid): Add process_stratum_target
16800 parameter.
16801 (regcache::m_target): New field.
16802 (registers_changed_ptid): Add process_stratum_target parameter.
16803 * remote.c (remote_state::supports_vCont_probed): New field.
16804 (remote_target::async_wait_fd): New method.
16805 (remote_unpush_and_throw): Add remote_target parameter.
16806 (get_current_remote_target): Adjust.
16807 (remote_target::remote_add_inferior): Push target.
16808 (remote_target::remote_add_thread)
16809 (remote_target::remote_notice_new_inferior)
16810 (get_remote_thread_info): Pass target down.
16811 (remote_target::update_thread_list): Skip threads of inferiors
16812 bound to other targets. (remote_target::close): Don't discard
16813 inferiors. (remote_target::add_current_inferior_and_thread)
16814 (remote_target::process_initial_stop_replies)
16815 (remote_target::start_remote)
16816 (remote_target::remote_serial_quit_handler): Pass down target.
16817 (remote_target::remote_unpush_target): New remote_target
16818 parameter. Unpush the target from all inferiors.
16819 (remote_target::remote_unpush_and_throw): New remote_target
16820 parameter. Pass it down.
16821 (remote_target::open_1): Check whether the current inferior has
16822 execution instead of checking whether any inferior is live. Pass
16823 target down.
16824 (remote_target::remote_detach_1): Pass down target. Use
16825 remote_unpush_target.
16826 (extended_remote_target::attach): Pass down target.
16827 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16828 (remote_target::append_resumption): Pass down target.
16829 (remote_target::append_pending_thread_resumptions)
16830 (remote_target::remote_resume_with_hc, remote_target::resume)
16831 (remote_target::commit_resume): Pass down target.
16832 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16833 (remote_target::interrupt_query)
16834 (remote_target::remove_new_fork_children)
16835 (remote_target::check_pending_events_prevent_wildcard_vcont)
16836 (remote_target::remote_parse_stop_reply)
16837 (remote_target::process_stop_reply): Pass down target.
16838 (first_remote_resumed_thread): New remote_target parameter. Pass
16839 it down.
16840 (remote_target::wait_as): Pass down target.
16841 (unpush_and_perror): New remote_target parameter. Pass it down.
16842 (remote_target::readchar, remote_target::remote_serial_write)
16843 (remote_target::getpkt_or_notif_sane_1)
16844 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16845 down target.
16846 (remote_target::mourn_inferior): Pass down target. Use
16847 remote_unpush_target.
16848 (remote_target::core_of_thread)
16849 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16850 (remote_target::pid_to_exec_file)
16851 (remote_target::thread_handle_to_thread_info): Pass down target.
16852 (remote_target::async_wait_fd): New.
16853 * riscv-fbsd-tdep.c: Include "inferior.h".
16854 (riscv_fbsd_get_thread_local_address): Pass down target.
16855 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16856 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16857 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16858 Adjust.
16859 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16860 * solib-svr4.c (enable_break): Pass down target.
16861 * spu-multiarch.c (parse_spufs_run): Pass down target.
16862 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16863 * target-delegates.c: Regenerate.
16864 * target.c (g_target_stack): Delete.
16865 (current_top_target): Return the current inferior's top target.
16866 (target_has_execution_1): Refer to the passed-in inferior's top
16867 target.
16868 (target_supports_terminal_ours): Check whether the initial
16869 inferior was already created.
16870 (decref_target): New.
16871 (target_stack::push): Incref/decref the target.
16872 (push_target, push_target, unpush_target): Adjust.
16873 (target_stack::unpush): Defref target.
16874 (target_is_pushed): Return bool. Adjust to refer to the current
16875 inferior's target stack.
16876 (dispose_inferior): Delete, and inline parts ...
16877 (target_preopen): ... here. Only dispose of the current inferior.
16878 (target_detach): Hold strong target reference while detaching.
16879 Pass target down.
16880 (target_thread_name): Add assertion.
16881 (target_resume): Pass down target.
16882 (target_ops::beneath, find_target_at): Adjust to refer to the
16883 current inferior's target stack.
16884 (get_dummy_target): New.
16885 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16886 has a thread running.
16887 (initialize_targets): Rename to ...
16888 (_initialize_target): ... this.
16889 * target.h: Include "gdbsupport/refcounted-object.h".
16890 (struct target_ops): Inherit refcounted_object.
16891 (target_ops::shortname, target_ops::longname): Make const.
16892 (target_ops::async_wait_fd): New method.
16893 (decref_target): Declare.
16894 (struct target_ops_ref_policy): New.
16895 (target_ops_ref): New typedef.
16896 (get_dummy_target): Declare function.
16897 (target_is_pushed): Return bool.
16898 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16899 (all_matching_threads_iterator::all_matching_threads_iterator):
16900 Handle filter target.
16901 * thread-iter.h (struct all_matching_threads_iterator, struct
16902 all_matching_threads_range, class all_non_exited_threads_range):
16903 Filter by target too. Remove explicit.
16904 * thread.c (threads_executing): Delete.
16905 (inferior_thread): Pass down current inferior.
16906 (clear_thread_inferior_resources): Pass down thread pointer
16907 instead of ptid_t.
16908 (add_thread_silent, add_thread_with_info, add_thread): Add
16909 process_stratum_target parameter. Use it for thread and inferior
16910 searches.
16911 (is_current_thread): New.
16912 (thread_info::deletable): Use it.
16913 (find_thread_ptid, thread_count, in_thread_list)
16914 (thread_change_ptid, set_resumed, set_running): New
16915 process_stratum_target parameter. Pass it down.
16916 (set_executing): New process_stratum_target parameter. Pass it
16917 down. Adjust reference to 'threads_executing'.
16918 (threads_are_executing): New process_stratum_target parameter.
16919 Adjust reference to 'threads_executing'.
16920 (set_stop_requested, finish_thread_state): New
16921 process_stratum_target parameter. Pass it down.
16922 (switch_to_thread): Also match inferior.
16923 (switch_to_thread): New process_stratum_target parameter. Pass it
16924 down.
16925 (update_threads_executing): Reimplement.
16926 * top.c (quit_force): Pop targets from all inferior.
16927 (gdb_init): Don't call initialize_targets.
16928 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16929 Declare.
16930 (windows_add_thread, windows_delete_thread): Adjust.
16931 (get_windows_debug_event): Rename to ...
16932 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16933 * tracefile-tfile.c (tfile_target_open): Pass down target.
16934 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16935 Forward declare.
16936 (switch_to_thread): Add process_stratum_target parameter.
16937 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16938 parameter. Use it.
16939 (mi_on_resume): Pass target down.
16940 * nat/fork-inferior.c (startup_inferior): Add
16941 process_stratum_target parameter. Pass it down.
16942 * nat/fork-inferior.h (startup_inferior): Add
16943 process_stratum_target parameter.
16944 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16945
16946 2020-01-10 Pedro Alves <palves@redhat.com>
16947
16948 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16949 directly. Instead find the first thread in the thread list and
16950 use switch_to_thread.
16951
16952 2020-01-10 Pedro Alves <palves@redhat.com>
16953
16954 * remote.c (remote_target::remote_add_inferior): Don't bind a
16955 process to the current inferior if the current inferior is already
16956 bound to a process.
16957
16958 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16959 Pedro Alves <palves@redhat.com>
16960
16961 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16962 If no process is specified, return null_ptid instead of
16963 inferior_ptid.
16964 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16965 TARGET_WAITKIND_SIGNALLED with no pid.
16966
16967 2020-01-10 Pedro Alves <palves@redhat.com>
16968
16969 * remote.c (first_remote_resumed_thread): New.
16970 (remote_target::wait_as): Use it as default event_ptid instead of
16971 inferior_ptid.
16972
16973 2020-01-10 Pedro Alves <palves@redhat.com>
16974
16975 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16976
16977 2020-01-10 Pedro Alves <palves@redhat.com>
16978
16979 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16980 not -1.
16981
16982 2020-01-10 Pedro Alves <palves@redhat.com>
16983
16984 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16985 ptid to get_last_target_status.
16986 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16987 ptid to get_last_target_status.
16988 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16989 get_last_target_status.
16990 (info_program_command): Don't pass a target_waitstatus to
16991 get_last_target_status.
16992 * infrun.c (init_wait_for_inferior): Use
16993 nullify_last_target_wait_ptid.
16994 (get_last_target_status): Handle nullptr arguments.
16995 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16996 (print_stop_event): Don't pass a ptid to get_last_target_status.
16997 (normal_stop): Don't pass a ptid to get_last_target_status.
16998 * infrun.h (get_last_target_status, set_last_target_status): Move
16999 comments here and update.
17000 (nullify_last_target_wait_ptid): Declare.
17001 * linux-fork.c (fork_load_infrun_state): Remove local extern
17002 declaration of nullify_last_target_wait_ptid.
17003 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17004 to get_last_target_status.
17005
17006 2020-01-10 Pedro Alves <palves@redhat.com>
17007
17008 * gdbthread.h (scoped_restore_current_thread)
17009 <dont_restore, restore, m_dont_restore>: Declare.
17010 * thread.c (thread_alive): Add assertion. Return bool.
17011 (switch_to_thread_if_alive): New.
17012 (prune_threads): Switch inferior/thread.
17013 (print_thread_info_1): Switch thread before calling target methods.
17014 (scoped_restore_current_thread::restore): New, factored out from
17015 ...
17016 (scoped_restore_current_thread::~scoped_restore_current_thread):
17017 ... this.
17018 (scoped_restore_current_thread::scoped_restore_current_thread):
17019 Add assertion.
17020 (thread_apply_all_command, thread_select): Use
17021 switch_to_thread_if_alive.
17022 * infrun.c (proceed, restart_threads, handle_signal_stop)
17023 (switch_back_to_stepped_thread): Switch current thread before
17024 calling target methods.
17025
17026 2020-01-10 Pedro Alves <palves@redhat.com>
17027
17028 * inferior.c (switch_to_inferior_no_thread): New function,
17029 factored out from ...
17030 (inferior_command): ... here.
17031 * inferior.h (switch_to_inferior_no_thread): Declare.
17032 * mi/mi-main.c (run_one_inferior): Use
17033 switch_to_inferior_no_thread.
17034
17035 2020-01-10 Pedro Alves <palves@redhat.com>
17036
17037 * infcmd.c (kill_command): Remove dead code.
17038
17039 2020-01-10 Pedro Alves <palves@redhat.com>
17040
17041 * remote.c (remote_target::mourn_inferior): No longer check
17042 whether the target is running.
17043
17044 2020-01-10 Pedro Alves <palves@redhat.com>
17045
17046 * corelow.c (core_target::has_execution): Change parameter type to
17047 inferior pointer.
17048 * inferior.c (number_of_live_inferiors): Use
17049 inferior::has_execution instead of target_has_execution_1.
17050 * inferior.h (inferior::has_execution): New.
17051 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17052 inferior::has_execution instead of target_has_execution_1.
17053 * process-stratum-target.c
17054 (process_stratum_target::has_execution): Change parameter type to
17055 inferior pointer. Check the inferior's PID instead of
17056 inferior_ptid.
17057 * process-stratum-target.h
17058 (process_stratum_target::has_execution): Change parameter type to
17059 inferior pointer.
17060 * record-full.c (record_full_core_target::has_execution): Change
17061 parameter type to inferior pointer.
17062 * target.c (target_has_execution_1): Change parameter type to
17063 inferior pointer.
17064 (target_has_execution_current): Adjust.
17065 * target.h (target_ops::has_execution): Change parameter type to
17066 inferior pointer.
17067 (target_has_execution_1): Change parameter type to inferior
17068 pointer. Change return type to bool.
17069 * tracefile.h (tracefile_target::has_execution): Change parameter
17070 type to inferior pointer.
17071
17072 2020-01-10 Pedro Alves <palves@redhat.com>
17073
17074 * exceptions.c (print_flush): Remove current_top_target() check.
17075
17076 2020-01-10 Pedro Alves <palves@redhat.com>
17077
17078 * remote.c (show_remote_exec_file): Show the current inferior's
17079 exec-file instead of the command variable's value.
17080
17081 2020-01-10 Pedro Alves <palves@redhat.com>
17082
17083 * record-full.c (record_full_resume_ptid): New global.
17084 (record_full_target::resume): Set it.
17085 (record_full_wait_1): Use record_full_resume_ptid instead of
17086 inferior_ptid.
17087
17088 2020-01-10 Pedro Alves <palves@redhat.com>
17089
17090 * gdbthread.h (scoped_restore_current_thread)
17091 <dont_restore, restore, m_dont_restore>: Declare.
17092 * thread.c (thread_alive): Add assertion. Return bool.
17093 (switch_to_thread_if_alive): New.
17094 (prune_threads): Switch inferior/thread.
17095 (print_thread_info_1): Switch thread before calling target methods.
17096 (scoped_restore_current_thread::restore): New, factored out from
17097 ...
17098 (scoped_restore_current_thread::~scoped_restore_current_thread):
17099 ... this.
17100 (scoped_restore_current_thread::scoped_restore_current_thread):
17101 Add assertion.
17102 (thread_apply_all_command, thread_select): Use
17103 switch_to_thread_if_alive.
17104
17105 2020-01-10 George Barrett <bob@bob131.so>
17106
17107 * stap-probe.c (stap_modify_semaphore): Don't check for null
17108 semaphores.
17109 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17110 for null semaphores.
17111
17112 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17113
17114 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17115 all source windows, and maintain horizontal scroll status while
17116 doing so.
17117
17118 2020-01-09 Tom Tromey <tom@tromey.com>
17119
17120 PR tui/18932:
17121 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17122 update_source_window, not print_source_lines.
17123
17124 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17125
17126 * tui/tui.c (tui_enable): Register tui hooks after calling
17127 tui_display_main.
17128
17129 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17130
17131 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17132
17133 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17134
17135 * thread.c (print_thread_info_1): Fix indentation.
17136
17137 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17138
17139 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17140 unique_xmalloc_ptr outside the if to always free the demangled name.
17141
17142 2020-01-08 Tom Tromey <tromey@adacore.com>
17143
17144 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17145 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17146 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17147 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17148 Remove.
17149 (section_offsets): New typedef.
17150 * symtab.c (fixup_section, get_msymbol_address): Update.
17151 * symmisc.c (dump_msymbols): Update.
17152 * symfile.h (relative_addr_info_to_section_offsets)
17153 (symfile_map_offsets_to_segments): Update.
17154 * symfile.c (build_section_addr_info_from_objfile)
17155 (init_objfile_sect_indices): Update.
17156 (struct place_section_arg): Change type of "offsets".
17157 (place_section): Update.
17158 (relative_addr_info_to_section_offsets): Change type of
17159 "section_offsets". Remove "num_sections" parameter.
17160 (default_symfile_offsets, syms_from_objfile_1)
17161 (set_objfile_default_section_offset): Update.
17162 (reread_symbols): No need to preserve section offsets by hand.
17163 (symfile_map_offsets_to_segments): Change type of "offsets".
17164 * stap-probe.c (relocate_address): Update.
17165 * stabsread.h (process_one_symbol): Update.
17166 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17167 (solib_target_relocate_section_addresses): Update.
17168 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17169 Update.
17170 * solib-frv.c (frv_relocate_main_executable): Update.
17171 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17172 * solib-aix.c (solib_aix_get_section_offsets): Change return
17173 type.
17174 (solib_aix_solib_create_inferior_hook): Update.
17175 * remote.c (remote_target::get_offsets): Update.
17176 * psymtab.c (find_pc_sect_psymtab): Update.
17177 * psympriv.h (struct partial_symbol) <address, text_low,
17178 text_high>: Update.
17179 * objfiles.h (obj_section_offset): Update.
17180 (struct objfile) <section_offsets>: Change type.
17181 <num_sections>: Remove.
17182 (objfile_relocate): Update.
17183 * objfiles.c (entry_point_address_query): Update
17184 (relocate_one_symbol): Change type of "section_offsets".
17185 (objfile_relocate1, objfile_relocate1): Change type of
17186 "new_offsets".
17187 (objfile_rebase1): Update.
17188 * mipsread.c (mipscoff_symfile_read): Update.
17189 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17190 parameter.
17191 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17192 (parse_external, psymtab_to_symtab_1): Update.
17193 * machoread.c (macho_symfile_offsets): Update.
17194 * ia64-tdep.c (ia64_find_unwind_table): Update.
17195 * hppa-tdep.c (read_unwind_info): Update.
17196 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17197 * dwarf2read.c (create_addrmap_from_index)
17198 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17199 (process_psymtab_comp_unit_reader, add_partial_symbol)
17200 (add_partial_subprogram, process_full_comp_unit)
17201 (read_file_scope, read_func_scope, read_lexical_block_scope)
17202 (read_call_site_scope, dwarf2_rnglists_process)
17203 (dwarf2_ranges_process, dwarf2_ranges_read)
17204 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17205 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17206 Update.
17207 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17208 Update.
17209 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17210 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17211 (process_one_symbol): Change type of "section_offsets".
17212 * ctfread.c (get_objfile_text_range): Update.
17213 * coffread.c (coff_symtab_read, enter_linenos)
17214 (process_coff_symbol): Update.
17215 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17216 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17217
17218 2020-01-08 Tom Tromey <tromey@adacore.com>
17219
17220 * dwarf2read.c (parse_macro_definition): Use std::string.
17221 (parse_macro_definition): Likewise.
17222
17223 2020-01-08 Tom Tromey <tromey@adacore.com>
17224
17225 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17226 (ATTR_ALLOC_CHUNK): Remove.
17227
17228 2020-01-08 Tom Tromey <tromey@adacore.com>
17229
17230 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17231
17232 2020-01-08 Tom Tromey <tromey@adacore.com>
17233
17234 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17235 (dwarf2_compute_name, open_dwo_file): Likewise.
17236 (process_enumeration_scope): Use std::vector.
17237 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17238 (partial_die_info::fixup, dwarf2_start_subfile)
17239 (guess_full_die_structure_name, dwarf2_name): Likewise.
17240 (determine_prefix): Update.
17241 (guess_full_die_structure_name): Make return type const.
17242 (partial_die_full_name): Return unique_xmalloc_ptr.
17243 (DW_FIELD_ALLOC_CHUNK): Remove.
17244
17245 2020-01-07 Tom Tromey <tromey@adacore.com>
17246
17247 PR build/24937:
17248 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17249
17250 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17251
17252 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17253
17254 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17255
17256 * stack.c (print_frame_info): Move disassemble_next_line code
17257 inside source_print block.
17258
17259 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17260
17261 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17262 gdb/signals.h, as we are now using native signal symbols.
17263
17264 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17265
17266 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17267 overflow by an early check of content vs threshold.
17268 * tui/tui-source.c (tui_source_window::line_is_displayed):
17269 Likewise.
17270
17271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17272
17273 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17274
17275 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17276
17277 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17278 export table if no section contains it's RVA.
17279
17280 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17281
17282 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17283
17284 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17285
17286 * source.c (print_source_lines_base): Set last_line_listed.
17287
17288 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17289
17290 * tui/tui-disasm.c: Remove trailing spaces.
17291
17292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17293 Pedro Alves <palves@redhat.com>
17294
17295 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17296 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17297 (windows_gdb_signal_to_target): New function, uses the above
17298 enumeration to convert GDB internal signal codes to equivalent
17299 Windows codes.
17300 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17301 * windows-nat.c: Include "gdb_wait.h".
17302 (get_windows_debug_event): Extract the fatal exception from the
17303 exit status and convert to the equivalent Posix signal number.
17304 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17305 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17306 * gdbsupport/gdb_wait.c: New file, implements
17307 windows_status_to_termsig.
17308 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17309 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17310
17311 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17312
17313 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17314 show_layout.
17315
17316 2020-01-05 Luis Machado <luis.machado@linaro.org>
17317
17318 * aarch64-linux-nat.c
17319 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17320 and bfd_mach_aarch64.
17321
17322 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17323
17324 * ui-file.c (stdio_file::can_emit_style_escape)
17325 (tee_file::can_emit_style_escape): Ensure style is used also on
17326 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17327 to gdb_stdout.
17328 * main.c (set_gdb_data_directory): Use file style to output the
17329 warning that the given pathname is not a directory.
17330 * top.c (show_history_filename, gdb_safe_append_history)
17331 (show_gdb_datadir): Use file style.
17332
17333 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17334
17335 * solib-target.c (struct lm_info_target):
17336 Change offsets to be a unique_xmalloc_ptr.
17337 (solib_target_relocate_section_addresses): Update.
17338
17339 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17340
17341 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17342
17343 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17344
17345 * MAINTAINERS (Write After Approval): Add myself.
17346
17347 2020-01-02 Luis Machado <luis.machado@linaro.org>
17348
17349 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17350 Cell BE architecture.
17351 * target.h (struct target_ops) <thread_architecture>: Likewise.
17352
17353 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17354
17355 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17356
17357 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17358
17359 * MAINTAINERS (Write After Approval): Add myself.
17360
17361 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17362
17363 * gdbarch.sh: Update copyright year range of generated files.
17364
17365 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17366
17367 Update copyright year range in all GDB files.
17368
17369 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17370
17371 * copyright.py: Convert to Python 3.
17372
17373 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17374
17375 * copyright.py: Adapt after move of gnulib directory from gdb
17376 directory to toplevel directory.
17377
17378 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17379
17380 * copyright.py (main): Exit if run from the wrong directory.
17381
17382 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17383
17384 * top.c (print_gdb_version): Change copyright year to 2020.
17385
17386 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17387
17388 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17389
17390 For older changes see ChangeLog-2019.
17391 \f
17392 Local Variables:
17393 mode: change-log
17394 left-margin: 8
17395 fill-column: 74
17396 version-control: never
17397 coding: utf-8
17398 End:
This page took 0.393373 seconds and 4 git commands to generate.