Revert accidental empty commits
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-30 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26905
4 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
5 is_reference parameter.
6 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
7
8 2020-11-30 Tom Tromey <tom@tromey.com>
9
10 * rust-lang.c (rust_op_name): Remove.
11 (exp_descriptor_rust): Update.
12 * parser-defs.h (op_name_standard): Don't declare.
13 (struct exp_descriptor) <op_name>: Remove.
14 * parse.c (exp_descriptor_standard): Update.
15 * opencl-lang.c (exp_descriptor_opencl): Update.
16 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
17 * f-lang.c (op_name_f): Remove.
18 (f_language::exp_descriptor_tab): Update.
19 * expression.h (op_name): Update.
20 * expprint.c (op_name): Rewrite.
21 (op_name_standard): Remove.
22 (dump_raw_expression, dump_subexp): Update.
23 * c-lang.c (exp_descriptor_c): Update.
24 * ax-gdb.c (gen_expr): Update.
25 * ada-lang.c (ada_op_name): Remove.
26 (ada_exp_descriptor): Update.
27
28 2020-11-30 Tom Tromey <tom@tromey.com>
29
30 * eval.c (init_array_element): Remove.
31 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
32
33 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
34
35 PR tui/26973
36 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
37 static locator win info.
38
39 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
40
41 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
42 program.
43
44 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
47 is always initialized.
48
49 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
50
51 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
52 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
53
54 2020-11-25 Tom Tromey <tom@tromey.com>
55
56 * eval.c (evaluate_subexp_standard): Remove unnecessary
57 variables.
58
59 2020-11-25 Tom Tromey <tom@tromey.com>
60
61 * d-lang.c: Include parser-defs.h.
62 * rust-lang.c: Include parser-defs.h.
63 * c-lang.h: Do not include parser-defs.h.
64
65 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * regcache.h (struct cached_reg): Remove typedef.
68
69 2020-11-24 Joel Brobecker <brobecker@adacore.com>
70
71 * README: Fix the URL of the MPFR library.
72
73 2020-11-24 Joel Brobecker <brobecker@adacore.com>
74
75 * README: Document the --with-libgmp-prefix configure option.
76
77 2020-11-24 Joel Brobecker <brobecker@adacore.com>
78
79 * NEWS: Add entry documenting support for DWARF-based fixed
80 point types.
81
82 2020-11-24 Joel Brobecker <brobecker@adacore.com>
83
84 * NEWS: Document that building GDB now requires GMP.
85
86 2020-11-24 Joel Brobecker <brobecker@adacore.com>
87
88 * typeprint.c (print_type_scalar): Add handling of
89 TYPE_CODE_FIXED_POINT.
90
91 2020-11-24 Joel Brobecker <brobecker@adacore.com>
92
93 * valarith.c (fixed_point_binop): Replace the
94 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
95 users accordingly.
96
97 2020-11-24 Joel Brobecker <brobecker@adacore.com>
98
99 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
100 replacing fixed_point_scaling_factor. All callers updated
101 throughout this project.
102 (fixed_point_scaling_factor): Delete declaration.
103 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
104 fixed_point_scaling_factor. Adjust implementation accordingly.
105
106 2020-11-24 Joel Brobecker <brobecker@adacore.com>
107
108 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
109 replacing the fixed_point_type_base_type function. All callers
110 updated throughout this project.
111 (fixed_point_type_base_type): Remove declaration.
112 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
113 fixed_point_type_base_type. Adjust implementation accordingly.
114
115 2020-11-24 Joel Brobecker <brobecker@adacore.com>
116
117 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
118 New methods.
119 (INIT_FIXED_POINT_SPECIFIC): Adjust.
120 (TYPE_FIXED_POINT_INFO): Delete macro.
121 (allocate_fixed_point_type_info): Change return type to void.
122 * gdbtypes.c (copy_type_recursive): Replace the use of
123 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
124 (fixed_point_scaling_factor): Likewise.
125 (allocate_fixed_point_type_info): Change return type to void.
126 Adjust implementation accordingly.
127 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
128 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
129
130 2020-11-24 Joel Brobecker <brobecker@adacore.com>
131
132 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
133 into one single gdb::array_view parameter.
134 (gdb_mpz::write): Likewise.
135 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
136 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
137 into one single gdb::array_view parameter.
138 Adjust implementation accordingly.
139 (gdb_mpz::write): Likewise.
140 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
141 * unittests/gmp-utils-selftests.c: Adapt following changes above.
142 * valarith.c, valops.c, valprint.c, value.c: Likewise.
143
144 2020-11-24 Joel Brobecker <brobecker@adacore.com>
145
146 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
147 Change return type to std::string. Update all callers.
148 * gmp-utils.c (gmp_string_printf): Likewise.
149
150 2020-11-24 Joel Brobecker <brobecker@adacore.com>
151
152 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
153 instead of mpq_set_ui to initialize our GMP rational.
154
155 2020-11-23 Tom de Vries <tdevries@suse.de>
156
157 * debuginfod-support.c (debuginfod_source_query)
158 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
159
160 2020-11-21 Tom Tromey <tom@tromey.com>
161
162 * breakpoint.c (watchpoint_exp_is_const): Return bool.
163
164 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
167 Pass 2.0 to pow.
168 (gdb_mpz_write_all_from_small): Likewise.
169
170 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
173 of abs.
174
175 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
176
177 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
178 ctf_arc_open_by_name.
179
180 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
181
182 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
183 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
184
185 2020-11-20 Pedro Alves <pedro@palves.net>
186
187 * language.c (language_arch_info::lookup_primitive_type): Use
188 gdb::function_view instead of gdb::function.
189 (template language_lookup_primitive_type): Rename to ...
190 (language_lookup_primitive_type_1): ... this, and make static.
191 (language_lookup_primitive_type(const struct language_defn *,
192 struct gdbarch *, const char *): Make non-template.
193 (language_lookup_primitive_type(const struct language_defn *,
194 struct gdbarch *, std::function<bool (struct type *)>): Make
195 non-template and use gdb::function_view.
196 * language.h (language_arch_info::lookup_primitive_type): Use
197 gdb::function_view instead of std::function.
198 (language_lookup_primitive_type): No longer template.
199 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
200 lambda instead of a std::function.
201
202 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
203
204 PR tdep/26916
205 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
206 and STOCFH.
207
208 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
211
212 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
213
214 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
215 in `loop_cb` parameter.
216 * gdbarch.c: Re-generate.
217 * gdbarch.h: Re-generate.
218 * arch-utils.c (default_read_core_file_mappings): Remove `other`
219 parameter.
220 * arch-utils.h (default_read_core_file_mappings): Likewise.
221 * corelow.c (core_target::build_file_mappings): Likewise.
222 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
223 (linux_core_info_proc_mappings): Likewise.
224
225 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
228 * NEWS: Mention new options.
229 * f-array-walker.h: New file.
230 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
231 (repack_array_slices): New static global.
232 (show_repack_array_slices): New function.
233 (fortran_array_slicing_debug): New static global.
234 (show_fortran_array_slicing_debug): New function.
235 (value_f90_subarray): Delete.
236 (skip_undetermined_arglist): Delete.
237 (class fortran_array_repacker_base_impl): New class.
238 (class fortran_lazy_array_repacker_impl): New class.
239 (class fortran_array_repacker_impl): New class.
240 (fortran_value_subarray): Complete rewrite.
241 (set_fortran_list): New static global.
242 (show_fortran_list): Likewise.
243 (_initialize_f_language): Register new commands.
244 (fortran_adjust_dynamic_array_base_address_hack): New function.
245 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
246 Declare.
247 * f-valprint.c: Include 'f-array-walker.h'.
248 (class fortran_array_printer_impl): New class.
249 (f77_print_array_1): Delete.
250 (f77_print_array): Delete.
251 (fortran_print_array): New.
252 (f_value_print_inner): Update to call fortran_print_array.
253 * gdbtypes.c: Include 'f-lang.h'.
254 (resolve_dynamic_type_internal): Call
255 fortran_adjust_dynamic_array_base_address_hack.
256
257 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * breakpoint.c (struct watch_options): New struct.
260 (watch_option_defs): New static global.
261 (make_watch_options_def_group): New function.
262 (watch_maybe_just_location): Convert option parsing.
263 (watch_command_completer): New function.
264 (_initialize_breakpoint): Build help text using options mechanism.
265
266 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
269 (watch_command_1): Update parameter types. Convert locals to
270 bool.
271 (watch_command_wrapper): Change parameter type.
272 (watch_maybe_just_location): Change locals to bool.
273 (rwatch_command_wrapper): Update parameter type.
274 (awatch_command_wrapper): Update parameter type.
275 * breakpoint.h (watch_command_wrapper): Change parameter type.
276 (rwatch_command_wrapper): Update parameter type.
277 (awatch_command_wrapper): Update parameter type.
278 * eval.c (fetch_subexp_value): Change parameter type.
279 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
280 'false' not '0'.
281 * value.h (fetch_subexp_value): Change parameter type in
282 declaration.
283
284 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
287 skip_spaces.
288
289 2020-11-18 Keith Seitz <keiths@redhat.com>
290
291 * linux-tdep.c (dump_note_entry_p): Return true instead of
292 checking `filename'.
293
294 2020-11-18 Tom de Vries <tdevries@suse.de>
295
296 * debuginfod-support.c (debuginfod_source_query)
297 (debuginfod_debuginfo_query): Also do early exit if
298 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
299
300 2020-11-18 Tom de Vries <tdevries@suse.de>
301
302 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
303 warning.
304
305 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * gdbtypes.h (get_array_bounds): Return bool, adjust some
308 callers. Move doc here.
309 * gdbtypes.c (get_array_bounds): Return bool
310
311 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
314 assert.
315 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
316 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
317 case to the default.
318
319 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * printcmd.c: Include 'safe-ctype.c'.
322 (skip_over_slash_fmt): New function.
323 (print_command_completer): Call skip_over_slash_fmt.
324 (display_and_x_command_completer): New function.
325 (_initialize_printcmd): Add command completion for 'x' and
326 'display'.
327
328 2020-11-16 Pedro Alves <pedro@palves.net>
329
330 * frame.c (get_prev_frame): Move get_frame_id call from here ...
331 (get_prev_frame_always_1): ... to here.
332 * inline-frame.c (inline_frame_this_id): Mention
333 get_prev_frame_always_1 in comment.
334
335 2020-11-15 Joel Brobecker <brobecker@adacore.com>
336
337 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
338 handling.
339 (value_less): Add fixed-point handling.
340
341 2020-11-15 Joel Brobecker <brobecker@adacore.com>
342
343 * eval.c (binop_promote): Add fixed-point type handling.
344 * valarith.c (fixed_point_binop): New function.
345 (scalar_binop): Add fixed-point type handling.
346 (value_neg): Add fixed-point type handling.
347 * valops.c (value_cast_to_fixed_point): New function.
348 (value_cast): Add fixed-point type handling.
349
350 2020-11-15 Joel Brobecker <brobecker@adacore.com>
351
352 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
353 range types.
354 * c-typeprint.c (c_type_print_varspec_prefix)
355 (c_type_print_varspec_suffix, c_type_print_base_1): Add
356 TYPE_CODE_FIXED_POINT handling.
357 * p-typeprint.c (pascal_type_print_varspec_prefix)
358 (pascal_type_print_varspec_suffix): Likewise.
359 * typeprint.c (print_type_fixed_point): New function.
360 * typeprint.h (print_type_fixed_point): Add declaration.
361
362 2020-11-15 Joel Brobecker <brobecker@adacore.com>
363
364 * printcmd.c (print_scalar_formatted): Add fixed-point type
365 handling when options->format is set.
366
367 2020-11-15 Joel Brobecker <brobecker@adacore.com>
368
369 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
370 * dwarf2/read.c (get_dwarf2_rational_constant)
371 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
372 (has_zero_over_zero_small_attribute): New functions.
373 read_base_type, set_die_type): Add fixed-point type handling.
374 * gdb-gdb.py.in: Add fixed-point type handling.
375 * gdbtypes.c: #include "gmp-utils.h".
376 (create_range_type, set_type_code): Add fixed-point type handling.
377 (init_fixed_point_type): New function.
378 (is_integral_type, is_scalar_type): Add fixed-point type handling.
379 (print_fixed_point_type_info): New function.
380 (recursive_dump_type, copy_type_recursive): Add fixed-point type
381 handling.
382 (fixed_point_type_storage): New typedef.
383 (fixed_point_objfile_key): New static global.
384 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
385 (fixed_point_type_base_type, fixed_point_scaling_factor): New
386 functions.
387 * gdbtypes.h: #include "gmp-utils.h".
388 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
389 (union type_specific) <fixed_point_info>: New field.
390 (struct fixed_point_type_info): New struct.
391 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
392 (init_fixed_point_type, is_fixed_point_type)
393 (fixed_point_type_base_type, fixed_point_scaling_factor)
394 (allocate_fixed_point_type_info): Add declarations.
395 * valprint.c (generic_val_print_fixed_point): New function.
396 (generic_value_print): Add fixed-point type handling.
397 * value.c (value_as_address, unpack_long): Add fixed-point type
398 handling.
399
400 2020-11-15 Joel Brobecker <brobecker@adacore.com>
401
402 * utils.h (uinteger_pow): Add declaration.
403 * utils.c (uinteger_pow): Moved here (without changes)...
404 * valarith.c (uinteger_pow): ... from here.
405
406 2020-11-15 Joel Brobecker <brobecker@adacore.com>
407
408 * gmp-utils.h, gmp-utils.c: New file.
409 * unittests/gmp-utils-selftests.c: New file.
410 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
411 unittests/gmp-utils-selftests.c.
412 (COMMON_SFILES) Add gmp-utils.c.
413 (HFILES_NO_SRCDIR): Add gmp-utils.h.
414
415 2020-11-15 Joel Brobecker <brobecker@adacore.com>
416
417 * configure.ac: Generate an error if a usable GMP library
418 could not be found.
419 * configure: Regenerate.
420
421 2020-11-15 Joel Brobecker <brobecker@adacore.com>
422
423 * configure.ac: Add support for --with-libgmp-prefix.
424 * Makefile.in (LIBGMP): New variable.
425 (CLIBS): Include $(LIBGMP).
426 * configure, config.in: Regenerate
427
428 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 PR cli/26879
431 * f-exp.y (COMPLETE): New token.
432 (exp): Two new rules for tab-completion.
433 (saw_name_at_eof): New static global.
434 (last_was_structop): Likewise.
435 (yylex): Set new variables, and return COMPLETE token at the end
436 of the input stream in some cases.
437
438 2020-11-14 Tom Tromey <tom@tromey.com>
439
440 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
441
442 2020-11-14 Tom Tromey <tom@tromey.com>
443
444 * opencl-lang.c (opencl_component_ref): Make "comps" const.
445
446 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
449
450 2020-11-13 Tom Tromey <tom@tromey.com>
451
452 * c-lang.c (convert_ucn, convert_octal, convert_hex)
453 (convert_escape, parse_one_string): Constify.
454
455 2020-11-13 Keith Seitz <keiths@redhat.com>
456
457 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
458 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
459 outside of ELF segments" warning for debugin
460
461 2020-11-13 Keith Seitz <keiths@redhat.com>
462
463 PR gdb/23034
464 * elfread.c (elf_symfile_segments): Output a BFD file name
465 for the "Loadable section ... outside of ELF segments" warning.
466
467 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
468
469 PR gdb/26835
470 * arm-tdep.c (class arm_instruction_reader): New.
471 (target_arm_instruction_reader): New.
472 (arm_analyze_prologue): Add instruction reader parameter and use
473 it. Use arm_expand_immediate.
474 (class target_arm_instruction_reader): Adjust.
475 (arm_skip_prologue): Adjust.
476 (arm_expand_immediate): New.
477 (arm_scan_prologue): Adjust.
478 (arm_analyze_prologue_test): New.
479 (class test_arm_instruction_reader): New.
480
481 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * f-lang.c (fortran_argument_convert): Add declaration. Add
484 header comment, taken from f-lang.h. Make static.
485 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
486 (fortran_argument_convert): Delete declaration.
487
488 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * ada-exp.y (find_primitive_type): Make parameter const.
491 * ada-lang.c (enum ada_primitive_types): Delete.
492 (ada_language::language_arch_info): Update.
493 * c-lang.c (enum c_primitive_types): Delete.
494 (c_language_arch_info): Update.
495 (enum cplus_primitive_types): Delete.
496 (cplus_language::language_arch_info): Update.
497 * d-lang.c (enum d_primitive_types): Delete.
498 (d_language::language_arch_info): Update.
499 * f-lang.c (enum f_primitive_types): Delete.
500 (f_language::language_arch_info): Update.
501 * go-lang.c (enum go_primitive_types): Delete.
502 (go_language::language_arch_info): Update.
503 * language.c (auto_or_unknown_language::language_arch_info):
504 Update.
505 (language_gdbarch_post_init): Use obstack_new, use array indexing.
506 (language_string_char_type): Add header comment, call function in
507 language_arch_info.
508 (language_bool_type): Likewise
509 (language_arch_info::bool_type): Define.
510 (language_lookup_primitive_type_1): Delete.
511 (language_lookup_primitive_type): Rewrite as a templated function
512 to call function in language_arch_info, then instantiate twice.
513 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
514 (language_arch_info::lookup_primitive_type_and_symbol): Define.
515 (language_arch_info::lookup_primitive_type): Define twice with
516 different signatures.
517 (language_arch_info::lookup_primitive_type_as_symbol): Define.
518 (language_lookup_primitive_type_as_symbol): Rewrite to call a
519 member function in language_arch_info.
520 * language.h (language_arch_info): Complete rewrite.
521 (language_lookup_primitive_type): Make templated.
522 * m2-lang.c (enum m2_primitive_types): Delete.
523 (m2_language::language_arch_info): Update.
524 * opencl-lang.c (OCL_P_TYPE): Delete.
525 (enum opencl_primitive_types): Delete.
526 (opencl_type_data): Delete.
527 (builtin_opencl_type): Delete.
528 (lookup_opencl_vector_type): Update.
529 (opencl_language::language_arch_info): Update, lots of content
530 moved from...
531 (build_opencl_types): ...here. This function is now deleted.
532 (_initialize_opencl_language): Delete.
533 * p-lang.c (enum pascal_primitive_types): Delete.
534 (pascal_language::language_arch_info): Update.
535 * rust-lang.c (enum rust_primitive_types): Delete.
536 (rust_language::language_arch_info): Update.
537
538 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
541 dwarf2_queue_guard.
542
543 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
546 comment.
547
548 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * dwarf2/read.c (dwarf_read_debug_printf,
551 dwarf_read_debug_printf_v): New macros, use throughout the file.
552
553 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
554
555 * arc-linux-tdep.c (collect_register): Populate "eret" by
556 "pc" value from the regcache when asked for "pc" value.
557
558 2020-11-12 Tom Tromey <tom@tromey.com>
559
560 PR rust/26799:
561 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
562 exist.
563
564 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * features/Makefile (XMLTOC): Add rx.xml.
567 (FEATURE_XMLFILES): Remove rx.xml.
568 (FEATURE_CFILES rule): Pass '-single-feature' flag.
569 * features/rx.c: Regenerate.
570 * features/rx.xml: Wrap in `target` tags, and reindent.
571 * target-descriptions.c (struct maint_print_c_tdesc_options): New
572 structure.
573 (maint_print_c_tdesc_opt_def): New typedef.
574 (maint_print_c_tdesc_opt_defs): New static global.
575 (make_maint_print_c_tdesc_options_def_group): New function.
576 (maint_print_c_tdesc_cmd): Make use of command line flags, only
577 print single feature C file for target descriptions containing a
578 single feature.
579 (maint_print_c_tdesc_cmd_completer): New function.
580 (_initialize_target_descriptions): Update call to register command
581 completer, and include command line flag in help text.
582
583 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
586 numbers.
587 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
588 enum values.
589
590 2020-11-10 Tom Tromey <tom@tromey.com>
591
592 * value.h (internalvar_name): Update.
593 * value.c (internalvar_name): Make return type const.
594
595 2020-11-10 Tom Tromey <tom@tromey.com>
596
597 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
598 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
599 const.
600
601 2020-11-10 Tom Tromey <tom@tromey.com>
602
603 * objc-lang.h (value_nsstring): Update.
604 * objc-lang.c (value_nsstring): Make "ptr" const.
605
606 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * expprint.c (print_subexp_funcall): Increment expression position
609 after reading argument count.
610 * f-lang.c (print_subexp_f): Skip over opcode before calling
611 common function.
612 (dump_subexp_body_f): Likewise.
613
614 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
615
616 PR python/26832
617 * configure: Regenerate.
618 * configure.ac: Check for python modules ctypes instead of
619 itertools.
620
621 2020-11-06 Pedro Alves <pedro@palves.net>
622
623 * macroexp.c (struct macro_buffer): Split in two classes. Add
624 uses adjusted.
625 (struct shared_macro_buffer): New, factored out from struct
626 macro_buffer.
627 (struct growable_macro_buffer): New, factored out from struct
628 macro_buffer.
629 (set_token, get_comment, get_identifier, get_pp_number)
630 (get_character_constant, get_string_literal, get_punctuator)
631 (get_next_token_for_substitution): Constify parameters.
632 (substitute_args): Constify locals.
633
634 2020-11-05 Tom Tromey <tom@tromey.com>
635
636 * dwarf2/read.c (read_cutu_die_from_dwo)
637 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
638 (build_type_psymtabs_1): Update.
639 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
640 parameter.
641 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
642 Don't read section. Add assert.
643
644 2020-11-04 Tom Tromey <tromey@adacore.com>
645
646 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
647
648 2020-11-04 Tom Tromey <tromey@adacore.com>
649
650 * ada-typeprint.c (ada_print_type): Handle __T types.
651
652 2020-11-04 Tom Tromey <tromey@adacore.com>
653
654 * dwarf2/read.c (add_partial_symbol, process_die):
655 Handle DW_TAG_array_type.
656 (is_type_tag_for_partial): Add "lang" parameter.
657 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
658
659 2020-11-04 Tom Tromey <tromey@adacore.com>
660
661 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
662
663 2020-11-04 Tom Tromey <tromey@adacore.com>
664
665 * dwarf2/read.c (read_array_type): Only apply stride to innermost
666 array.
667
668 2020-11-04 Tom Tromey <tromey@adacore.com>
669
670 * gdbtypes.c (update_static_array_size): Handle bit stride.
671
672 2020-11-04 Tom Tromey <tromey@adacore.com>
673
674 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
675
676 2020-11-04 Tom Tromey <tromey@adacore.com>
677
678 * ada-lang.c (ada_is_any_packed_array_type): New function.
679 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
680
681 2020-11-04 Tom Tromey <tromey@adacore.com>
682
683 * dwarf2/read.c (recognize_bound_expression)
684 (quirk_ada_thick_pointer): New functions.
685 (read_array_type): Call quirk_ada_thick_pointer.
686 (set_die_type): Add "skip_data_location" parameter.
687 (quirk_ada_thick_pointer): New function.
688 (process_structure_scope): Call quirk_ada_thick_pointer.
689 * ada-lang.c (ada_is_unconstrained_packed_array_type)
690 (decode_packed_array_bitsize): Handle thick pointers without
691 parallel types.
692 (ada_is_gnat_encoded_packed_array_type): Rename from
693 ada_is_packed_array_type.
694 (ada_is_constrained_packed_array_type): Update.
695 * ada-valprint.c (ada_val_print_gnat_array): Remove.
696 (ada_value_print_1): Use ada_get_decoded_value.
697
698 2020-11-04 Tom Tromey <tromey@adacore.com>
699
700 * ada-lang.c (recursively_update_array_bitsize): New function.
701 (decode_constrained_packed_array_type): Call it.
702
703 2020-11-04 Tom Tromey <tromey@adacore.com>
704
705 * ada-lang.c (to_fixed_array_type): Error if
706 decode_constrained_packed_array_type returns NULL.
707
708 2020-11-04 Tom Tromey <tromey@adacore.com>
709
710 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
711
712 2020-11-02 Tom Tromey <tromey@adacore.com>
713
714 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
715 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
716 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
717 * amd64-ravenscar-thread.c: New file.
718 * amd64-ravenscar-thread.h: New file.
719 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
720 * configure.tgt (amd64_tobjs): Add ravenscar objects.
721
722 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * main.c (execute_cmdargs): New function.
725 (captured_main_1): Make use of execute_cmdargs.
726
727 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * NEWS: Mention changes to config file search path.
730 * main.c
731
732 2020-11-02 Tom Tromey <tromey@adacore.com>
733
734 * python/python.c: Consolidate two HAVE_PYTHON blocks.
735 (python_GdbModuleDef): Move earlier. Now static.
736 (do_start_initialization): Consolidate some IS_PY3K blocks.
737
738 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
739
740 * aarch64-linux-tdep.c: Fix indentation.
741 * aarch64-ravenscar-thread.c: Fix indentation.
742 * aarch64-tdep.c: Fix indentation.
743 * aarch64-tdep.h: Fix indentation.
744 * ada-lang.c: Fix indentation.
745 * ada-lang.h: Fix indentation.
746 * ada-tasks.c: Fix indentation.
747 * ada-typeprint.c: Fix indentation.
748 * ada-valprint.c: Fix indentation.
749 * ada-varobj.c: Fix indentation.
750 * addrmap.c: Fix indentation.
751 * addrmap.h: Fix indentation.
752 * agent.c: Fix indentation.
753 * aix-thread.c: Fix indentation.
754 * alpha-bsd-nat.c: Fix indentation.
755 * alpha-linux-tdep.c: Fix indentation.
756 * alpha-mdebug-tdep.c: Fix indentation.
757 * alpha-nbsd-tdep.c: Fix indentation.
758 * alpha-obsd-tdep.c: Fix indentation.
759 * alpha-tdep.c: Fix indentation.
760 * amd64-bsd-nat.c: Fix indentation.
761 * amd64-darwin-tdep.c: Fix indentation.
762 * amd64-linux-nat.c: Fix indentation.
763 * amd64-linux-tdep.c: Fix indentation.
764 * amd64-nat.c: Fix indentation.
765 * amd64-obsd-tdep.c: Fix indentation.
766 * amd64-tdep.c: Fix indentation.
767 * amd64-windows-tdep.c: Fix indentation.
768 * annotate.c: Fix indentation.
769 * arc-tdep.c: Fix indentation.
770 * arch-utils.c: Fix indentation.
771 * arch/arm-get-next-pcs.c: Fix indentation.
772 * arch/arm.c: Fix indentation.
773 * arm-linux-nat.c: Fix indentation.
774 * arm-linux-tdep.c: Fix indentation.
775 * arm-nbsd-tdep.c: Fix indentation.
776 * arm-pikeos-tdep.c: Fix indentation.
777 * arm-tdep.c: Fix indentation.
778 * arm-tdep.h: Fix indentation.
779 * arm-wince-tdep.c: Fix indentation.
780 * auto-load.c: Fix indentation.
781 * auxv.c: Fix indentation.
782 * avr-tdep.c: Fix indentation.
783 * ax-gdb.c: Fix indentation.
784 * ax-general.c: Fix indentation.
785 * bfin-linux-tdep.c: Fix indentation.
786 * block.c: Fix indentation.
787 * block.h: Fix indentation.
788 * blockframe.c: Fix indentation.
789 * bpf-tdep.c: Fix indentation.
790 * break-catch-sig.c: Fix indentation.
791 * break-catch-syscall.c: Fix indentation.
792 * break-catch-throw.c: Fix indentation.
793 * breakpoint.c: Fix indentation.
794 * breakpoint.h: Fix indentation.
795 * bsd-uthread.c: Fix indentation.
796 * btrace.c: Fix indentation.
797 * build-id.c: Fix indentation.
798 * buildsym-legacy.h: Fix indentation.
799 * buildsym.c: Fix indentation.
800 * c-typeprint.c: Fix indentation.
801 * c-valprint.c: Fix indentation.
802 * c-varobj.c: Fix indentation.
803 * charset.c: Fix indentation.
804 * cli/cli-cmds.c: Fix indentation.
805 * cli/cli-decode.c: Fix indentation.
806 * cli/cli-decode.h: Fix indentation.
807 * cli/cli-script.c: Fix indentation.
808 * cli/cli-setshow.c: Fix indentation.
809 * coff-pe-read.c: Fix indentation.
810 * coffread.c: Fix indentation.
811 * compile/compile-cplus-types.c: Fix indentation.
812 * compile/compile-object-load.c: Fix indentation.
813 * compile/compile-object-run.c: Fix indentation.
814 * completer.c: Fix indentation.
815 * corefile.c: Fix indentation.
816 * corelow.c: Fix indentation.
817 * cp-abi.h: Fix indentation.
818 * cp-namespace.c: Fix indentation.
819 * cp-support.c: Fix indentation.
820 * cp-valprint.c: Fix indentation.
821 * cris-linux-tdep.c: Fix indentation.
822 * cris-tdep.c: Fix indentation.
823 * darwin-nat-info.c: Fix indentation.
824 * darwin-nat.c: Fix indentation.
825 * darwin-nat.h: Fix indentation.
826 * dbxread.c: Fix indentation.
827 * dcache.c: Fix indentation.
828 * disasm.c: Fix indentation.
829 * dtrace-probe.c: Fix indentation.
830 * dwarf2/abbrev.c: Fix indentation.
831 * dwarf2/attribute.c: Fix indentation.
832 * dwarf2/expr.c: Fix indentation.
833 * dwarf2/frame.c: Fix indentation.
834 * dwarf2/index-cache.c: Fix indentation.
835 * dwarf2/index-write.c: Fix indentation.
836 * dwarf2/line-header.c: Fix indentation.
837 * dwarf2/loc.c: Fix indentation.
838 * dwarf2/macro.c: Fix indentation.
839 * dwarf2/read.c: Fix indentation.
840 * dwarf2/read.h: Fix indentation.
841 * elfread.c: Fix indentation.
842 * eval.c: Fix indentation.
843 * event-top.c: Fix indentation.
844 * exec.c: Fix indentation.
845 * exec.h: Fix indentation.
846 * expprint.c: Fix indentation.
847 * f-lang.c: Fix indentation.
848 * f-typeprint.c: Fix indentation.
849 * f-valprint.c: Fix indentation.
850 * fbsd-nat.c: Fix indentation.
851 * fbsd-tdep.c: Fix indentation.
852 * findvar.c: Fix indentation.
853 * fork-child.c: Fix indentation.
854 * frame-unwind.c: Fix indentation.
855 * frame-unwind.h: Fix indentation.
856 * frame.c: Fix indentation.
857 * frv-linux-tdep.c: Fix indentation.
858 * frv-tdep.c: Fix indentation.
859 * frv-tdep.h: Fix indentation.
860 * ft32-tdep.c: Fix indentation.
861 * gcore.c: Fix indentation.
862 * gdb_bfd.c: Fix indentation.
863 * gdbarch.sh: Fix indentation.
864 * gdbarch.c: Re-generate
865 * gdbarch.h: Re-generate.
866 * gdbcore.h: Fix indentation.
867 * gdbthread.h: Fix indentation.
868 * gdbtypes.c: Fix indentation.
869 * gdbtypes.h: Fix indentation.
870 * glibc-tdep.c: Fix indentation.
871 * gnu-nat.c: Fix indentation.
872 * gnu-nat.h: Fix indentation.
873 * gnu-v2-abi.c: Fix indentation.
874 * gnu-v3-abi.c: Fix indentation.
875 * go32-nat.c: Fix indentation.
876 * guile/guile-internal.h: Fix indentation.
877 * guile/scm-cmd.c: Fix indentation.
878 * guile/scm-frame.c: Fix indentation.
879 * guile/scm-iterator.c: Fix indentation.
880 * guile/scm-math.c: Fix indentation.
881 * guile/scm-ports.c: Fix indentation.
882 * guile/scm-pretty-print.c: Fix indentation.
883 * guile/scm-value.c: Fix indentation.
884 * h8300-tdep.c: Fix indentation.
885 * hppa-linux-nat.c: Fix indentation.
886 * hppa-linux-tdep.c: Fix indentation.
887 * hppa-nbsd-nat.c: Fix indentation.
888 * hppa-nbsd-tdep.c: Fix indentation.
889 * hppa-obsd-nat.c: Fix indentation.
890 * hppa-tdep.c: Fix indentation.
891 * hppa-tdep.h: Fix indentation.
892 * i386-bsd-nat.c: Fix indentation.
893 * i386-darwin-nat.c: Fix indentation.
894 * i386-darwin-tdep.c: Fix indentation.
895 * i386-dicos-tdep.c: Fix indentation.
896 * i386-gnu-nat.c: Fix indentation.
897 * i386-linux-nat.c: Fix indentation.
898 * i386-linux-tdep.c: Fix indentation.
899 * i386-nto-tdep.c: Fix indentation.
900 * i386-obsd-tdep.c: Fix indentation.
901 * i386-sol2-nat.c: Fix indentation.
902 * i386-tdep.c: Fix indentation.
903 * i386-tdep.h: Fix indentation.
904 * i386-windows-tdep.c: Fix indentation.
905 * i387-tdep.c: Fix indentation.
906 * i387-tdep.h: Fix indentation.
907 * ia64-libunwind-tdep.c: Fix indentation.
908 * ia64-libunwind-tdep.h: Fix indentation.
909 * ia64-linux-nat.c: Fix indentation.
910 * ia64-linux-tdep.c: Fix indentation.
911 * ia64-tdep.c: Fix indentation.
912 * ia64-tdep.h: Fix indentation.
913 * ia64-vms-tdep.c: Fix indentation.
914 * infcall.c: Fix indentation.
915 * infcmd.c: Fix indentation.
916 * inferior.c: Fix indentation.
917 * infrun.c: Fix indentation.
918 * iq2000-tdep.c: Fix indentation.
919 * language.c: Fix indentation.
920 * linespec.c: Fix indentation.
921 * linux-fork.c: Fix indentation.
922 * linux-nat.c: Fix indentation.
923 * linux-tdep.c: Fix indentation.
924 * linux-thread-db.c: Fix indentation.
925 * lm32-tdep.c: Fix indentation.
926 * m2-lang.c: Fix indentation.
927 * m2-typeprint.c: Fix indentation.
928 * m2-valprint.c: Fix indentation.
929 * m32c-tdep.c: Fix indentation.
930 * m32r-linux-tdep.c: Fix indentation.
931 * m32r-tdep.c: Fix indentation.
932 * m68hc11-tdep.c: Fix indentation.
933 * m68k-bsd-nat.c: Fix indentation.
934 * m68k-linux-nat.c: Fix indentation.
935 * m68k-linux-tdep.c: Fix indentation.
936 * m68k-tdep.c: Fix indentation.
937 * machoread.c: Fix indentation.
938 * macrocmd.c: Fix indentation.
939 * macroexp.c: Fix indentation.
940 * macroscope.c: Fix indentation.
941 * macrotab.c: Fix indentation.
942 * macrotab.h: Fix indentation.
943 * main.c: Fix indentation.
944 * mdebugread.c: Fix indentation.
945 * mep-tdep.c: Fix indentation.
946 * mi/mi-cmd-catch.c: Fix indentation.
947 * mi/mi-cmd-disas.c: Fix indentation.
948 * mi/mi-cmd-env.c: Fix indentation.
949 * mi/mi-cmd-stack.c: Fix indentation.
950 * mi/mi-cmd-var.c: Fix indentation.
951 * mi/mi-cmds.c: Fix indentation.
952 * mi/mi-main.c: Fix indentation.
953 * mi/mi-parse.c: Fix indentation.
954 * microblaze-tdep.c: Fix indentation.
955 * minidebug.c: Fix indentation.
956 * minsyms.c: Fix indentation.
957 * mips-linux-nat.c: Fix indentation.
958 * mips-linux-tdep.c: Fix indentation.
959 * mips-nbsd-tdep.c: Fix indentation.
960 * mips-tdep.c: Fix indentation.
961 * mn10300-linux-tdep.c: Fix indentation.
962 * mn10300-tdep.c: Fix indentation.
963 * moxie-tdep.c: Fix indentation.
964 * msp430-tdep.c: Fix indentation.
965 * namespace.h: Fix indentation.
966 * nat/fork-inferior.c: Fix indentation.
967 * nat/gdb_ptrace.h: Fix indentation.
968 * nat/linux-namespaces.c: Fix indentation.
969 * nat/linux-osdata.c: Fix indentation.
970 * nat/netbsd-nat.c: Fix indentation.
971 * nat/x86-dregs.c: Fix indentation.
972 * nbsd-nat.c: Fix indentation.
973 * nbsd-tdep.c: Fix indentation.
974 * nios2-linux-tdep.c: Fix indentation.
975 * nios2-tdep.c: Fix indentation.
976 * nto-procfs.c: Fix indentation.
977 * nto-tdep.c: Fix indentation.
978 * objfiles.c: Fix indentation.
979 * objfiles.h: Fix indentation.
980 * opencl-lang.c: Fix indentation.
981 * or1k-tdep.c: Fix indentation.
982 * osabi.c: Fix indentation.
983 * osabi.h: Fix indentation.
984 * osdata.c: Fix indentation.
985 * p-lang.c: Fix indentation.
986 * p-typeprint.c: Fix indentation.
987 * p-valprint.c: Fix indentation.
988 * parse.c: Fix indentation.
989 * ppc-linux-nat.c: Fix indentation.
990 * ppc-linux-tdep.c: Fix indentation.
991 * ppc-nbsd-nat.c: Fix indentation.
992 * ppc-nbsd-tdep.c: Fix indentation.
993 * ppc-obsd-nat.c: Fix indentation.
994 * ppc-ravenscar-thread.c: Fix indentation.
995 * ppc-sysv-tdep.c: Fix indentation.
996 * ppc64-tdep.c: Fix indentation.
997 * printcmd.c: Fix indentation.
998 * proc-api.c: Fix indentation.
999 * producer.c: Fix indentation.
1000 * producer.h: Fix indentation.
1001 * prologue-value.c: Fix indentation.
1002 * prologue-value.h: Fix indentation.
1003 * psymtab.c: Fix indentation.
1004 * python/py-arch.c: Fix indentation.
1005 * python/py-bpevent.c: Fix indentation.
1006 * python/py-event.c: Fix indentation.
1007 * python/py-event.h: Fix indentation.
1008 * python/py-finishbreakpoint.c: Fix indentation.
1009 * python/py-frame.c: Fix indentation.
1010 * python/py-framefilter.c: Fix indentation.
1011 * python/py-inferior.c: Fix indentation.
1012 * python/py-infthread.c: Fix indentation.
1013 * python/py-objfile.c: Fix indentation.
1014 * python/py-prettyprint.c: Fix indentation.
1015 * python/py-registers.c: Fix indentation.
1016 * python/py-signalevent.c: Fix indentation.
1017 * python/py-stopevent.c: Fix indentation.
1018 * python/py-stopevent.h: Fix indentation.
1019 * python/py-threadevent.c: Fix indentation.
1020 * python/py-tui.c: Fix indentation.
1021 * python/py-unwind.c: Fix indentation.
1022 * python/py-value.c: Fix indentation.
1023 * python/py-xmethods.c: Fix indentation.
1024 * python/python-internal.h: Fix indentation.
1025 * python/python.c: Fix indentation.
1026 * ravenscar-thread.c: Fix indentation.
1027 * record-btrace.c: Fix indentation.
1028 * record-full.c: Fix indentation.
1029 * record.c: Fix indentation.
1030 * reggroups.c: Fix indentation.
1031 * regset.h: Fix indentation.
1032 * remote-fileio.c: Fix indentation.
1033 * remote.c: Fix indentation.
1034 * reverse.c: Fix indentation.
1035 * riscv-linux-tdep.c: Fix indentation.
1036 * riscv-ravenscar-thread.c: Fix indentation.
1037 * riscv-tdep.c: Fix indentation.
1038 * rl78-tdep.c: Fix indentation.
1039 * rs6000-aix-tdep.c: Fix indentation.
1040 * rs6000-lynx178-tdep.c: Fix indentation.
1041 * rs6000-nat.c: Fix indentation.
1042 * rs6000-tdep.c: Fix indentation.
1043 * rust-lang.c: Fix indentation.
1044 * rx-tdep.c: Fix indentation.
1045 * s12z-tdep.c: Fix indentation.
1046 * s390-linux-tdep.c: Fix indentation.
1047 * score-tdep.c: Fix indentation.
1048 * ser-base.c: Fix indentation.
1049 * ser-mingw.c: Fix indentation.
1050 * ser-uds.c: Fix indentation.
1051 * ser-unix.c: Fix indentation.
1052 * serial.c: Fix indentation.
1053 * sh-linux-tdep.c: Fix indentation.
1054 * sh-nbsd-tdep.c: Fix indentation.
1055 * sh-tdep.c: Fix indentation.
1056 * skip.c: Fix indentation.
1057 * sol-thread.c: Fix indentation.
1058 * solib-aix.c: Fix indentation.
1059 * solib-darwin.c: Fix indentation.
1060 * solib-frv.c: Fix indentation.
1061 * solib-svr4.c: Fix indentation.
1062 * solib.c: Fix indentation.
1063 * source.c: Fix indentation.
1064 * sparc-linux-tdep.c: Fix indentation.
1065 * sparc-nbsd-tdep.c: Fix indentation.
1066 * sparc-obsd-tdep.c: Fix indentation.
1067 * sparc-ravenscar-thread.c: Fix indentation.
1068 * sparc-tdep.c: Fix indentation.
1069 * sparc64-linux-tdep.c: Fix indentation.
1070 * sparc64-nbsd-tdep.c: Fix indentation.
1071 * sparc64-obsd-tdep.c: Fix indentation.
1072 * sparc64-tdep.c: Fix indentation.
1073 * stabsread.c: Fix indentation.
1074 * stack.c: Fix indentation.
1075 * stap-probe.c: Fix indentation.
1076 * stubs/ia64vms-stub.c: Fix indentation.
1077 * stubs/m32r-stub.c: Fix indentation.
1078 * stubs/m68k-stub.c: Fix indentation.
1079 * stubs/sh-stub.c: Fix indentation.
1080 * stubs/sparc-stub.c: Fix indentation.
1081 * symfile-mem.c: Fix indentation.
1082 * symfile.c: Fix indentation.
1083 * symfile.h: Fix indentation.
1084 * symmisc.c: Fix indentation.
1085 * symtab.c: Fix indentation.
1086 * symtab.h: Fix indentation.
1087 * target-float.c: Fix indentation.
1088 * target.c: Fix indentation.
1089 * target.h: Fix indentation.
1090 * tic6x-tdep.c: Fix indentation.
1091 * tilegx-linux-tdep.c: Fix indentation.
1092 * tilegx-tdep.c: Fix indentation.
1093 * top.c: Fix indentation.
1094 * tracefile-tfile.c: Fix indentation.
1095 * tracepoint.c: Fix indentation.
1096 * tui/tui-disasm.c: Fix indentation.
1097 * tui/tui-io.c: Fix indentation.
1098 * tui/tui-regs.c: Fix indentation.
1099 * tui/tui-stack.c: Fix indentation.
1100 * tui/tui-win.c: Fix indentation.
1101 * tui/tui-winsource.c: Fix indentation.
1102 * tui/tui.c: Fix indentation.
1103 * typeprint.c: Fix indentation.
1104 * ui-out.h: Fix indentation.
1105 * unittests/copy_bitwise-selftests.c: Fix indentation.
1106 * unittests/memory-map-selftests.c: Fix indentation.
1107 * utils.c: Fix indentation.
1108 * v850-tdep.c: Fix indentation.
1109 * valarith.c: Fix indentation.
1110 * valops.c: Fix indentation.
1111 * valprint.c: Fix indentation.
1112 * valprint.h: Fix indentation.
1113 * value.c: Fix indentation.
1114 * value.h: Fix indentation.
1115 * varobj.c: Fix indentation.
1116 * vax-tdep.c: Fix indentation.
1117 * windows-nat.c: Fix indentation.
1118 * windows-tdep.c: Fix indentation.
1119 * xcoffread.c: Fix indentation.
1120 * xml-syscall.c: Fix indentation.
1121 * xml-tdesc.c: Fix indentation.
1122 * xstormy16-tdep.c: Fix indentation.
1123 * xtensa-config.c: Fix indentation.
1124 * xtensa-linux-nat.c: Fix indentation.
1125 * xtensa-linux-tdep.c: Fix indentation.
1126 * xtensa-tdep.c: Fix indentation.
1127
1128 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1129 Craig Blackmore <craig.blackmore@embecosm.com>
1130
1131 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1132 as an unsigned value.
1133
1134 2020-11-01 Tom Tromey <tom@tromey.com>
1135
1136 * dbxread.c (dbx_end_psymtab): Update.
1137 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1138 (build_type_psymtabs_reader): Update.
1139 * xcoffread.c (xcoff_end_psymtab): Update.
1140 * ctfread.c (scan_partial_symbols): Update.
1141 * psymtab.c (sort_pst_symbols): Remove.
1142 (partial_symtab::end): Rename from end_psymtab_common. Inline
1143 sort_pst_symbols.
1144 * psympriv.h (struct partial_symtab) <end>: New method.
1145 (end_psymtab_common): Don't declare.
1146
1147 2020-11-01 Tom Tromey <tom@tromey.com>
1148
1149 * symmisc.c (count_psyms): New function.
1150 (print_objfile_statistics): Use it.
1151 * psymtab.c (append_psymbol_to_list): Remove.
1152 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1153 * objfiles.h (struct objstats) <n_psyms>: Remove.
1154
1155 2020-11-01 Tom Tromey <tom@tromey.com>
1156
1157 * dbxread.c (dbx_end_psymtab): Update.
1158 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1159 (build_type_psymtabs_reader): Update.
1160 * xcoffread.c (xcoff_end_psymtab): Update.
1161 * ctfread.c (scan_partial_symbols): Update.
1162 * psympriv.h (end_psymtab_common): Update.
1163 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1164 (sort_pst_symbols): Likewise.
1165
1166 2020-11-01 Tom Tromey <tom@tromey.com>
1167
1168 * dbxread.c (dbx_symfile_read): Update.
1169 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1170 * xcoffread.c (xcoff_initial_scan): Update.
1171 * psympriv.h (init_psymbol_list): Don't declare.
1172 * psymtab.c (init_psymbol_list): Remove.
1173
1174 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1175
1176 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1177 gnat_encoded_fixed_type_info. Update all callers.
1178
1179 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1182 line too long.
1183
1184 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1185
1186 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1187 cast_from_fixed. Update all callers.
1188 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1189 Update all callers.
1190 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1191 Update all callers.
1192 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1193 ada_scaling_factor.
1194 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1195 to print_gnat_encoded_fixed_point_type.
1196 * ada-valprint.c: Likewise.
1197
1198 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1201 (debug_prefixed_printf): Add check of debug_displaced flag.
1202 * linux-nat.c (linux_nat_debug_printf): Add check of
1203 debug_linux_nat flag.
1204
1205 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * infrun.c (infrun_debug_printf_1): Remove.
1208 (displaced_debug_printf_1): Remove.
1209 (stop_all_threads): Use debug_prefixed_printf.
1210 * infrun.h (infrun_debug_printf_1): Remove.
1211 (infrun_debug_printf): Use debug_prefixed_printf.
1212 (displaced_debug_printf_1): Remove.
1213 (displaced_debug_printf): Use debug_prefixed_printf.
1214 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1215 (linux_nat_debug_printf): Use debug_prefixed_printf.
1216
1217 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * configure: Re-generate.
1220 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1221 AC_LANG_PROGRAM.
1222
1223 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1224
1225 * configure: Re-generate.
1226
1227 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * configure: Re-generate.
1230
1231 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * configure: Re-generate.
1234
1235 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * configure: Re-generate.
1238
1239 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * acinclude.m4: Modernize.
1242 * configure: Re-generate.
1243
1244 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * configure.ac: Modernize.
1247 * configure: Re-generate.
1248
1249 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1252 * configure: Re-generate.
1253 * configure.ac: Remove AM_PROG_CC_STDC.
1254
1255 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1258 AC_CANONICAL_SYSTEM.
1259 * configure: Re-generate.
1260
1261 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * infrun.h (displaced_debug_printf): New macro. Replace
1264 displaced debug prints throughout to use it.
1265 (displaced_debug_printf_1): New declaration.
1266 (displaced_step_dump_bytes): Return string, remove ui_file
1267 parameter, update all callers.
1268 * infrun.c (displaced_debug_printf_1): New function.
1269 (displaced_step_dump_bytes): Return string, remove ui_file
1270 parameter
1271
1272 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1275
1276 2020-10-30 Tom Tromey <tromey@adacore.com>
1277
1278 * Makefile.in (stamp-init): Depend on config.status.
1279
1280 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1283
1284 2020-10-30 Pedro Alves <pedro@palves.net>
1285
1286 * thread.c (lookup_selected_frame): Move ...
1287 * frame.c (lookup_selected_frame): ... here.
1288
1289 2020-10-30 Pedro Alves <pedro@palves.net>
1290
1291 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1292 * frame.c
1293 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1294 Use save_selected_frame. Save language as well.
1295 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1296 Use restore_selected_frame, and restore language as well.
1297 (selected_frame_id, selected_frame_level): New.
1298 (selected_frame): Update comments.
1299 (save_selected_frame, restore_selected_frame): New.
1300 (get_selected_frame): Use lookup_selected_frame.
1301 (get_selected_frame_if_set): Delete.
1302 (select_frame): Record selected_frame_level and selected_frame_id.
1303 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1304 fields.
1305 (get_selected_frame): Make 'message' parameter optional.
1306 (get_selected_frame_if_set): Delete declaration.
1307 (select_frame): Update comments.
1308 (save_selected_frame, restore_selected_frame)
1309 (lookup_selected_frame): Declare.
1310 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1311 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1312 New field.
1313 (save_infcall_control_state): Use save_selected_frame.
1314 (restore_selected_frame): Delete.
1315 (restore_infcall_control_state): Use restore_selected_frame.
1316 * stack.c (select_frame_command_core, frame_command_core): Use
1317 get_selected_frame.
1318 * thread.c (restore_selected_frame): Rename to ...
1319 (lookup_selected_frame): ... this and make extern. Select the
1320 current frame if the frame level is -1.
1321 (scoped_restore_current_thread::restore): Also restore the
1322 language.
1323 (scoped_restore_current_thread::~scoped_restore_current_thread):
1324 Don't try/catch.
1325 (scoped_restore_current_thread::scoped_restore_current_thread):
1326 Save the language as well. Use save_selected_frame.
1327
1328 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1331 documentation.
1332 * gdbarch.h: Re-generate.
1333
1334 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1337 parameter.
1338 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1339 Likewise.
1340 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1341 Likewise.
1342 * arch-utils.c (default_displaced_step_hw_singlestep):
1343 Likewise.
1344 * arch-utils.h (default_displaced_step_hw_singlestep):
1345 Likewise.
1346 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1347 Likewise.
1348 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1349 Likewise.
1350 * gdbarch.c: Re-generate.
1351 * gdbarch.h: Re-generate.
1352 * infrun.c (resume_1): Adjust.
1353
1354 2020-10-29 Tom Tromey <tom@tromey.com>
1355
1356 * progspace.c (program_space::~program_space): Don't call
1357 exec_close.
1358
1359 2020-10-29 Tom Tromey <tom@tromey.com>
1360
1361 * exec.c (exec_target::close): Don't change current program
1362 space.
1363
1364 2020-10-29 Tom Tromey <tom@tromey.com>
1365
1366 * symfile.c (add_symbol_file_command): Update.
1367 * exec.c (program_space::add_target_sections): Rename.
1368 * symfile-mem.c (symbol_file_add_from_memory): Update.
1369 * progspace.h (struct program_space) <add_target_sections>:
1370 Declare new overload.
1371 * exec.h (add_target_sections_of_objfile): Don't declare.
1372
1373 2020-10-29 Tom Tromey <tom@tromey.com>
1374
1375 * solib.c (solib_map_sections): Update.
1376 * exec.c (program_space::add_target_sections): Now a method.
1377 (exec_file_attach): Update.
1378 * exec.h (add_target_sections): Don't declare.
1379 * progspace.h (struct program_space) <add_target_sections>:
1380 Declare.
1381
1382 2020-10-29 Tom Tromey <tom@tromey.com>
1383
1384 * progspace.h (struct program_space) <remove_target_sections>:
1385 Declare.
1386 * exec.c (program_space::remove_target_sections): Now a method.
1387 * exec.h (remove_target_sections): Don't declare.
1388
1389 2020-10-29 Tom Tromey <tom@tromey.com>
1390
1391 * inferior.c (delete_inferior): Update.
1392 * progspace.c (program_space::empty): Rename from
1393 program_space_empty_p. Return bool.
1394 * progspace.h (struct program_space) <empty>: New method.
1395 (program_space_empty_p): Don't declare.
1396
1397 2020-10-29 Tom Tromey <tom@tromey.com>
1398
1399 * progspace.c (program_space::~program_space): Don't call
1400 clear_program_space_solib_cache.
1401 (program_space::clear_solib_cache): Rename from
1402 clear_solib_cache.
1403 * solib.c (handle_solib_event): Update.
1404 * progspace.h (struct program_space) <clear_solib_cache>: New
1405 method.
1406 (clear_program_space_solib_cache): Don't declare.
1407
1408 2020-10-29 Tom Tromey <tom@tromey.com>
1409
1410 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1411 * target.c (info_target_command): Update.
1412 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1413 (symbol_file_clear, reread_symbols): Update.
1414 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1415 * stabsread.c (scan_file_globals): Update.
1416 * solib.c (update_solib_list): Update.
1417 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1418 (svr4_fetch_objfile_link_map, enable_break)
1419 (svr4_relocate_main_executable)
1420 (svr4_iterate_over_objfiles_in_search_order): Update.
1421 * solib-frv.c (lm_base, enable_break)
1422 (frv_relocate_main_executable): Update.
1423 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1424 (frv_fetch_objfile_link_map): Update.
1425 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1426 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1427 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1428 * remote.c (remote_target::get_offsets): Update.
1429 (remote_target::start_remote)
1430 (extended_remote_target::post_attach): Update.
1431 * objfiles.c (entry_point_address_query): Update.
1432 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1433 * minsyms.c (get_symbol_leading_char): Update.
1434 * frame.c (inside_main_func): Update.
1435 * progspace.h (symfile_objfile): Remove macro.
1436
1437 2020-10-29 Tom Tromey <tom@tromey.com>
1438
1439 * exec.c (exec_file_attach): Update.
1440 * progspace.c (program_space::exec_close): Update.
1441 * progspace.h (struct program_space) <ebfd>: Now a
1442 gdb_bfd_ref_ptr.
1443 <set_exec_bfd>: Change argument type.
1444 <exec_bfd>: Update.
1445
1446 2020-10-29 Tom Tromey <tom@tromey.com>
1447
1448 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1449 * symfile.c (reread_symbols): Update.
1450 * symfile-mem.c (add_symbol_file_from_memory_command)
1451 (add_vsyscall_page): Update.
1452 * source-cache.c (source_cache::get_plain_source_lines): Update.
1453 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1454 (svr4_current_sos_direct, svr4_exec_displacement)
1455 (svr4_relocate_main_executable): Update.
1456 (svr4_iterate_over_objfiles_in_search_order): Update.
1457 * solib-frv.c (enable_break2, enable_break): Update.
1458 * solib-dsbt.c (lm_base, enable_break): Update.
1459 * solib-darwin.c (find_program_interpreter)
1460 (darwin_solib_create_inferior_hook): Update.
1461 * sol-thread.c (rw_common, ps_pdmodel): Update.
1462 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1463 * remote.c (compare_sections_command)
1464 (remote_target::trace_set_readonly_regions): Update.
1465 * remote-sim.c (get_sim_inferior_data)
1466 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1467 (gdbsim_target_open, gdbsim_target::files_info): Update.
1468 * exec.h (exec_bfd): Remove macro.
1469 * progspace.c (initialize_progspace): Update.
1470 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1471 Update.
1472 * nto-procfs.c (nto_procfs_target::post_attach)
1473 (nto_procfs_target::create_inferior): Update.
1474 * maint.c (maintenance_info_sections): Update.
1475 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1476 Update.
1477 * infcmd.c (post_create_inferior): Update.
1478 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1479 (objfile_find_memory_regions): Update.
1480 * exec.c (validate_exec_file, exec_file_attach)
1481 (exec_read_partial_read_only, print_section_info): Update.
1482 * corelow.c (core_target_open): Update.
1483 * corefile.c (reopen_exec_file, validate_files): Update.
1484 * arm-tdep.c (gdb_print_insn_arm): Update.
1485 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1486 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1487 methods.
1488
1489 2020-10-29 Tom Tromey <tom@tromey.com>
1490
1491 * progspace.h (current_target_sections): Remove macro.
1492 * solib-svr4.c (scan_dyntag): Update.
1493 * solib-dsbt.c (scan_dyntag): Update.
1494 * exec.c (exec_target::close): Update.
1495 (add_target_sections, add_target_sections_of_objfile)
1496 (remove_target_sections, exec_target::get_section_table)
1497 (exec_target::files_info, set_section_command)
1498 (exec_set_section_address, exec_target::has_memory)
1499 (exec_target::has_memory): Update.
1500
1501 2020-10-29 Tom Tromey <tom@tromey.com>
1502
1503 * source-cache.c (source_cache::get_plain_source_lines): Use
1504 current_program_space.
1505 * corefile.c (reopen_exec_file): Use current_program_space.
1506 * exec.c (exec_file_attach): Use current_program_space.
1507 * exec.h (exec_bfd_mtime): Remove.
1508
1509 2020-10-29 Tom Tromey <tom@tromey.com>
1510
1511 * gcore.c (default_gcore_mach): Remove.
1512 (create_gcore_bfd): Update.
1513
1514 2020-10-29 Tom Tromey <tom@tromey.com>
1515
1516 * progspace.c (program_space::exec_close): New method, from
1517 exec_close in exec.c.
1518 * exec.c (exec_close): Move to progspace.c.
1519 (exec_target::close, exec_file_attach): Update.
1520 * progspace.h (struct program_space) <exec_close>: Declare
1521 method.
1522
1523 2020-10-29 Tom Tromey <tom@tromey.com>
1524
1525 * progspace.h (struct program_space) <exec_filename>: Rename from
1526 pspace_exec_filename. Now a unique_xmalloc_ptr.
1527 * inferior.c (print_selected_inferior): Update.
1528 (print_inferior): Update.
1529 * mi/mi-main.c (print_one_inferior): Update.
1530 * exec.h (exec_filename): Remove macro.
1531 * corefile.c (get_exec_file): Update.
1532 * exec.c (exec_close): Update.
1533 (exec_file_attach): Update.
1534 * progspace.c (clone_program_space): Update.
1535 (print_program_space): Update.
1536
1537 2020-10-29 Tom Tromey <tom@tromey.com>
1538
1539 * target-section.h (struct target_section): Add constructor.
1540 * exec.c (build_section_table, add_target_sections_of_objfile):
1541 Update.
1542 * corelow.c (core_target::build_file_mappings): Update.
1543
1544 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545
1546 PR gdb/19318
1547 * inferior.c (detach_inferior_command): Restore the current thread.
1548 (kill_inferior_command): Ditto.
1549
1550 2020-10-28 Tom de Vries <tdevries@suse.de>
1551
1552 PR symtab/26772
1553 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1554 map, check it in the "best match" loop.
1555
1556 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * m32c-tdep.c: Remove unused includes.
1559
1560 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1561
1562 * xtensa-tdep.c: Remove includes.
1563
1564 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1565
1566 * breakpoint.c (struct condition_command_opts): New struct.
1567 (condition_command_option_defs): New static global.
1568 (make_condition_command_options_def_group): New function.
1569 (condition_completer): Update to consider the '-force' flag.
1570 (condition_command): Use gdb::option for the '-force' flag.
1571
1572 2020-10-27 Tom de Vries <tdevries@suse.de>
1573
1574 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1575 symbols in section check.
1576
1577 2020-10-27 Tom de Vries <tdevries@suse.de>
1578
1579 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1580
1581 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1582
1583 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1584 * breakpoint.c: Update the help text of the 'condition' and 'break'
1585 commands.
1586 (set_breakpoint_condition): Take a new bool parameter
1587 to control whether condition definition should be forced even when
1588 the condition expression is invalid in all of the current locations.
1589 (condition_command): Update the call to 'set_breakpoint_condition'.
1590 (find_condition_and_thread): Take the "-force-condition" flag into
1591 account.
1592 * linespec.c (linespec_keywords): Add "-force-condition" as an
1593 element.
1594 (FORCE_KEYWORD_INDEX): New #define.
1595 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1596 as a keyword.
1597 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1598 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1599 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1600 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1601
1602 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1603
1604 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1605 * breakpoint.c (set_breakpoint_location_condition): New function.
1606 (set_breakpoint_condition): Disable a breakpoint location if parsing
1607 the condition string gives an error.
1608 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1609 (build_target_condition_list): Ditto.
1610 (build_target_command_list): Ditto.
1611 (build_bpstat_chain): Ditto.
1612 (print_one_breakpoint_location): Ditto.
1613 (print_one_breakpoint): Ditto.
1614 (breakpoint_1): Ditto.
1615 (bp_location::bp_location): Ditto.
1616 (locations_are_equal): Ditto.
1617 (update_breakpoint_locations): Ditto.
1618 (enable_disable_bp_num_loc): Ditto.
1619 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1620 (find_condition_and_thread_for_sals): New static function.
1621 (create_breakpoint): Call find_condition_and_thread_for_sals.
1622 (location_to_sals): Call find_condition_and_thread_for_sals instead
1623 of find_condition_and_thread.
1624
1625 2020-10-26 Tom de Vries <tdevries@suse.de>
1626
1627 * dwarf2/read.c (process_full_comp_unit): Call
1628 dwarf2_find_base_address.
1629
1630 2020-10-26 Tom Tromey <tromey@adacore.com>
1631
1632 * gdbtypes.c (create_range_type): Revert previous patch. Add
1633 comment.
1634
1635 2020-10-26 Pedro Alves <pedro@palves.net>
1636
1637 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1638 (my_waitpid): Use gdb::handle_eintr.
1639
1640 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * acinclude.m4: Update ptrace.m4 path.
1643 * ptrace.m4: Moved to gdbsupport.
1644
1645 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1648 instead of target_gdbarch.
1649
1650 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * jit.c (jit_reader_load_command): Pass current inferior.
1653 (jit_inferior_init): Change parameter type to inferior, use it.
1654 (jit_inferior_created): Remove.
1655 (jit_inferior_created_hook): Pass inferior parameter down.
1656 (_initialize_jit): Use jit_inferior_created_hook instead of
1657 jit_inferior_created.
1658 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1659 * infrun.c (follow_exec): Pass inferior to
1660 jit_inferior_created_hook.
1661
1662 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1665 parameter and use it.
1666 (thread_db_inferior_created): Pass inferior argument.
1667
1668 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * aix-thread.c (aix_thread_inferior_created): Add inferior
1671 parameter.
1672 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1673 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1674 * jit.c (jit_inferior_created): Likewise.
1675 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1676 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1677 * observable.h (inferior_created): Likewise.
1678 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1679 * symfile-mem.c (add_vsyscall_page): Likewise.
1680 * infcmd.c (post_create_inferior): Pass inferior argument.
1681
1682 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1683
1684 GDB 10.1 released.
1685
1686 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1687
1688 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1689 to ada_check_typedef.
1690
1691 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * f-exp.y (f_parse): Rename to...
1694 (f_language::parser): ...this.
1695 * f-lang.c (f_get_encoding): Rename to...
1696 (f_language::get_encoding): ...this.
1697 (f_op_print_tab): Rename to...
1698 (f_language::op_print_tab): ...this.
1699 (exp_descriptor_f): Rename to...
1700 (f_language::exp_descriptor_tab): ...this.
1701 (class f_language): Moved to f-lang.h.
1702 (f_language::language_arch_info): New function, moved out of class
1703 declaration.
1704 (f_language::search_name_hash): Likewise.
1705 (f_language::lookup_symbol_nonlocal): Likewise.
1706 (f_language::get_symbol_name_matcher_inner): Likewise.
1707 * f-lang.h: Add 'valprint.h' include.
1708 (class f_language): Moved here from f-lang.c.
1709 * f-typeprint.c (f_type_print_args): Delete commented out
1710 declaration.
1711 (f_print_typedef): Rename to...
1712 (f_language::print_typedef): ...this.
1713 (f_print_type): Rename to...
1714 (f_language::print_type): ...this.
1715 (f_type_print_varspec_prefix): Delete declaration and rename to...
1716 (f_language::f_type_print_varspec_prefix): ...this.
1717 (f_type_print_varspec_suffix): Delete declaration and rename to...
1718 (f_language::f_type_print_varspec_suffix): ...this.
1719 (f_type_print_base): Delete declaration and rename to...
1720 (f_language::f_type_print_base): ...this.
1721 * f-valprint.c (f_value_print_inner): Rename to...
1722 (f_language::value_print_inner): ...this.
1723 * parse.c: Delete 'f-lang.h' include.
1724
1725 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * language.h (language_defn::print_type): Add variable names in
1728 declaration, and update header comment.
1729
1730 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * ada-lang.c (ada_language::demangle): Rename to...
1733 (ada_language::demangle_symbol): ...this.
1734 * c-lang.c (cplus_language::demangle): Rename to...
1735 (cplus_language::demangle_symbol): ...this.
1736 * d-lang.c (d_language::demangle): Rename to...
1737 (d_language::demangle_symbol): ...this.
1738 * f-lang.c (f_language::demangle): Rename to...
1739 (f_language::demangle_symbol): ...this.
1740 * go-lang.c (go_language::demangle): Rename to...
1741 (go_language::demangle_symbol): ...this.
1742 * language.c (language_demangle): Update call to demangle_symbol.
1743 (auto_or_unknown_language::demangle): Rename to...
1744 (auto_or_unknown_language::demangle_symbol): ...this.
1745 * language.h (language_defn::demangle): Rename to...
1746 (language_defn::demangle_symbol): ...this.
1747 * objc-lang.c (objc_language::demangle): Rename to...
1748 (objc_language::demangle_symbol): ...this.
1749 * rust-lang.c (rust_language::demangle): Rename to...
1750 (rust_language::demangle_symbol): ...this.
1751
1752 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1755 (iterate_over_file_blocks): Replace use of macro with the macros
1756 definition.
1757
1758 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1761 * valprint.c (maybe_print_array_index): Replace use of macro with
1762 the macros definition.
1763
1764 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * ada-lang.c (ada_language::print_array_index): Call value_print
1767 directly.
1768 * language.c (language_defn::print_array_index): Likewise.
1769 * language.h (LA_VALUE_PRINT): Delete.
1770 * valprint.c (value_print): Call value_print on the
1771 current_language directly.
1772
1773 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * language.h (LA_PRINT_TYPEDEF): Delete.
1776 * typeprint.c (typedef_print): Call print_typedef directly on the
1777 current_language object.
1778
1779 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * m2-exp.y (m2_parse): Rename to...
1782 (m2_language::parser): ...this. Update function signature.
1783 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1784 (m2_op_print): Rename to...
1785 (m2_language::op_print_tab): ...this, and make const.
1786 (exp_descriptor_modula2): Rename to...
1787 (m2_language::exp_descriptor_modula2): ...this.
1788 (class m2_language): Move to m2-lang.h.
1789 (m2_language::language_arch_info): New function, moved out of
1790 class declaration.
1791 (m2_language::printchar): New function, body from m2_printchar.
1792 (m2_language::printstr): New function, moved out of class
1793 declaration.
1794 (m2_language::emitchar): Likewise.
1795 * m2-lang.h (m2_parse): Delete declaration.
1796 (m2_print_typedef): Delete declaration.
1797 (m2_value_print_inner): Delete declaration.
1798 (class m2_language): Class declaration moved from m2-lang.c,
1799 larger functions are left in m2-lang.c.
1800 * m2-typeprint.c (m2_print_typedef): Rename to...
1801 (m2_language::print_typedef): ...this, and update function
1802 signature.
1803 * m2-valprint.c (m2_value_print_inner): Rename to...
1804 (m2_language::value_print_inner): ...this, replace use of
1805 LA_PRINT_STRING with a direct call to printstr member function,
1806 and update recursive call.
1807
1808 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * language.c (default_is_string_type_p): Delete, implementation
1811 moved into auto_or_unknown_language::is_string_type_p.
1812 (unk_op_print_tab): Moved into
1813 auto_or_unknown_language::opcode_print_table.
1814 (unknown_language_arch_info): Delete, implementation moved into
1815 auto_or_unknown_language::language_arch_info.
1816 (class auto_or_unknown_language): New class, member functions
1817 copied from unknown_language class, with some updates.
1818 (class unknown_language): Most member functions moved into
1819 auto_or_unknown_language class. Inherit from
1820 auto_or_unknown_language class.
1821 (class auto_language): Inherit from auto_or_unknown_language.
1822 Delete most member functions.
1823
1824 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1825
1826 * stabsread.c (read_member_functions): Remove gdb_assert.
1827
1828 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1829
1830 * gdbtypes.c (init_complex_type): Check target type name.
1831
1832 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * target-debug.h (target_debug_print_struct_target_ops_p):
1835 Remove.
1836 (target_debug_print_async_callback_ftype_p): Remove.
1837 (target_debug_print_struct_trace_state_variable_p): Remove.
1838 (target_debug_print_struct_traceframe_info_p): Remove.
1839 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1840 (target_debug_print_enum_btrace_format): Remove.
1841 (target_debug_print_enum_info_proc_what): Remove.
1842 (target_debug_print_thread_info_pp): Remove.
1843
1844 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * target.h (struct target_ops) <make_corefile_notes>:
1847 Change return type to unique pointer.
1848 * target.c (dummy_make_corefile_notes): Likewise.
1849 * exec.c (struct exec_target) <make_corefile_notes>:
1850 Likewise.
1851 (exec_target::make_corefile_notes): Likewise.
1852 * procfs.c (class procfs_target) <make_corefile_notes>:
1853 Likewise.
1854 (procfs_do_thread_registers): Adjust to unique pointer.
1855 (struct procfs_corefile_thread_data): Add constructor.
1856 <note_data>: Change type to unique pointer.
1857 (procfs_corefile_thread_callback): Adjust to unique pointer.
1858 (procfs_target::make_corefile_notes): Change return type to
1859 unique pointer.
1860 * target-delegates.c: Re-generate.
1861 * gcore.c (write_gcore_file_1): Adjust.
1862 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1863 New.
1864
1865 2020-10-22 Tom de Vries <tdevries@suse.de>
1866
1867 * block.c (find_block_in_blockvector): Make sure the returned block
1868 contains pc.
1869
1870 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 PR gdb/26693
1873 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1874 parameter.
1875 (load_cu): Pass existing CU.
1876 (process_imported_unit_die): Likewise.
1877 (follow_die_offset): Likewise.
1878
1879 2020-10-22 Luis Machado <luis.machado@linaro.org>
1880
1881 * corelow.c (core_target::xfer_partial): Also check for an empty
1882 m_core_unavailable_mappings vector.
1883
1884 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1887 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1888 * f-exp.y (arglist): Allow for a series of subranges.
1889 (subrange): Add cases for subranges with strides.
1890 * f-lang.c (value_f90_subarray): Catch use of array strides and
1891 throw an error.
1892 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1893
1894 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * expprint.c (print_subexp_standard): Change enum range_type to
1897 range_flag and rename variables to match.
1898 (dump_subexp_body_standard): Likewise.
1899 * expression.h (enum range_type): Rename to...
1900 (enum range_flag): ...this.
1901 (range_types): Rename to...
1902 (range_flags): ...this.
1903 * f-lang.c (value_f90_subarray): Change enum range_type to
1904 range_flag and rename variables to match.
1905 * parse.c (operator_length_standard): Likewise.
1906 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1907 range_type to range_flag.
1908 * rust-lang.c (rust_evaluate_funcall): Likewise.
1909 (rust_range): Likewise.
1910 (rust_compute_range): Likewise.
1911 (rust_subscript): Likewise.
1912
1913 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * expprint.c (print_subexp_standard): Update to reflect changes to
1916 enum range_type.
1917 (dump_subexp_body_standard): Likewise.
1918 * expression.h (enum range_type): Convert to a bit field enum, and
1919 make the enum unsigned.
1920 * f-exp.y (subrange): Update to reflect changes to enum
1921 range_type.
1922 * f-lang.c (value_f90_subarray): Likewise.
1923 * parse.c (operator_length_standard): Likewise.
1924 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1925 * rust-lang.c (rust_range): Likewise.
1926 (rust_compute_range): Likewise.
1927 (rust_subscript): Likewise.
1928
1929 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1932 (displaced_step_in_progress): Fix comment.
1933
1934 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1937 * gdbarch.c: Re-generate.
1938 * gdbarch.h: Re-generate.
1939 * gcore.c (write_gcore_file_1): Adjust.
1940 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1941 constructor.
1942 <note_data>: Change type to unique pointer.
1943 <abort_iteration>: Change type to bool.
1944 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1945 (fbsd_collect_thread_registers): Return void, adjust.
1946 (struct fbsd_corefile_thread_data): Add construtor.
1947 <note_data>: Change type to unique pointer.
1948 (fbsd_corefile_thread): Adjust.
1949 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1950 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1951 to unique pointer, adjust.
1952 (struct linux_collect_regset_section_cb_data): Add constructor.
1953 <note_data>: Change type to unique pointer.
1954 <abort_iteration>: Change type to bool.
1955 (linux_collect_thread_registers): Return void, adjust.
1956 (struct linux_corefile_thread_data): Add constructor.
1957 <note_data>: Change type to unique pointer.
1958 (linux_corefile_thread): Adjust.
1959 (linux_make_corefile_notes): Return unique pointer, adjust.
1960
1961 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1964 * gdbarch.c: Re-generate.
1965 * gdbarch.h: Re-generate.
1966 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1967 bool.
1968 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1969 Likewise.
1970 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1971 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1972 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1973 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1974
1975 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1976
1977 * gdbarch.sh: Make generated predicates return bool.
1978 * gdbarch.c: Re-generate.
1979 * gdbarch.h: Re-generate.
1980
1981 2020-10-20 Tom Tromey <tom@tromey.com>
1982
1983 * varobj-iter.h (struct varobj_item): Remove typedef.
1984
1985 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * infrun.c (currently_stepping): Change int to bool
1988 (maybe_software_singlestep): Likewise.
1989 (show_stop_on_solib_events): Likewise.
1990 (stepping_past_nonsteppable_watchpoint): Likewise.
1991 (displaced_step_in_progress_any_inferior): Likewise.
1992 (displaced_step_in_progress_thread): Likewise.
1993 (keep_going_stepped_thread): Likewise.
1994 (thread_still_needs_step_over): Likewise.
1995 (start_step_over): Likewise.
1996 (do_target_resume): Likewise.
1997 (resume_1): Likewise.
1998 (clear_proceed_status): Likewise.
1999 (thread_still_needs_step_over_bp): Likewise.
2000 (proceed): Likewise.
2001 (switch_back_to_stepped_thread): Likewise.
2002 (adjust_pc_after_break): Likewise.
2003 (stepped_in_from): Likewise.
2004 (handle_stop_requested): Likewise.
2005 (handle_syscall_event): Likewise.
2006 (handle_no_resumed): Likewise.
2007 (handle_inferior_event): Likewise.
2008 (finish_step_over): Likewise.
2009 (handle_signal_stop): Likewise.
2010 (process_event_stop_test): Likewise.
2011
2012 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 * infrun.c (get_displaced_stepping_state): Fix comment.
2015
2016 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2017
2018 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2019
2020 2020-10-19 Tom Tromey <tromey@adacore.com>
2021
2022 PR tui/26719
2023 * tui/tui-winsource.h (struct tui_source_window_base)
2024 <refresh_window>: Rename from refresh_pad.
2025 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2026 Rename from refresh_pad.
2027 (tui_source_window_base::show_source_content)
2028 (tui_source_window_base::do_scroll_horizontal): Update.
2029
2030 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2031
2032 * thread.c (_initialize_thread): Fine-tune the help text of
2033 'info threads'.
2034
2035 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2036
2037 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2038
2039 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2040
2041 * breakpoint.c (handle_jit_event): Add an argument, change how
2042 `jit_event_handler` is called.
2043
2044 2020-10-17 Tom Tromey <tom@tromey.com>
2045
2046 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2047 (scan_xcoff_symtab): Update.
2048 * psymtab.h (class psymtab_storage) <global_psymbols,
2049 static_psymbols, current_global_psymbols,
2050 current_static_psymbols>: Remove.
2051 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2052 (match_partial_symbol, lookup_partial_symbol): Update.
2053 (print_partial_symbols): Change parameters.
2054 (dump_psymtab, recursively_search_psymtabs)
2055 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2056 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2057 (concat): Remove.
2058 (end_psymtab_common): Simplify.
2059 (append_psymbol_to_list): Change parameters.
2060 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2061 (init_psymbol_list): Simplify.
2062 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2063 * psympriv.h (struct partial_symtab) <empty>: New method.
2064 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2065 Remove.
2066 <global_psymbols, static_psymbols>: New members.
2067 <add_psymbol>: New methods.
2068 (add_psymbol_to_list): Don't declare.
2069 (psymbol_placement): Move earlier.
2070 * mdebugread.c (parse_partial_symbols): Update.
2071 (handle_psymbol_enumerators): Change parameters.
2072 (mdebug_expand_psymtab): Update.
2073 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2074 (add_partial_symbol): Update.
2075 * dwarf2/index-write.c (write_psymbols): Change parameters.
2076 (write_one_signatured_type): Update.
2077 (recursively_count_psymbols): Update.
2078 (recursively_write_psymbols): Update.
2079 (class debug_names) <recursively_write_psymbols>: Update.
2080 <write_psymbols>: Change parameters.
2081 <write_one_signatured_type>: Update.
2082 * dbxread.c (read_dbx_symtab): Update.
2083 (dbx_end_psymtab): Use partial_symtab::empty.
2084 * ctfread.c (struct ctf_context) <pst>: New member.
2085 (create_partial_symtab): Set it.
2086 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2087 (scan_partial_symbols): Use the psymtab's context. Update.
2088
2089 2020-10-17 Tom Tromey <tom@tromey.com>
2090
2091 * valprint.c (generic_value_print): Remove comment.
2092 * m2-valprint.c (m2_value_print_inner): Remove comment.
2093 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2094 type.
2095
2096 2020-10-17 Tom de Vries <tdevries@suse.de>
2097
2098 PR symtab/26317
2099 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2100 symbol main.
2101
2102 2020-10-14 Tom de Vries <tdevries@suse.de>
2103
2104 PR gdb/26733
2105 * solib.c (solib_contains_address_p): Handle
2106 'solib->sections == nullptr'.
2107
2108 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2109
2110 PR gdb/26642
2111 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2112 target can't do async.
2113 * target.c (target_wait): Assert that we don't pass
2114 TARGET_WNOHANG to a target that can't async.
2115
2116 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2117
2118 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2119 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2120 * alpha-bsd-nat.c: Adjust include.
2121 * alpha-bsd-tdep.h: Adjust comment.
2122 * alpha-nbsd-tdep.c: Rename to ...
2123 * alpha-netbsd-tdep.c: ... this, adjust include.
2124 * amd64-nbsd-nat.c: Rename to ...
2125 * amd64-netbsd-nat.c: ... this, adjust include.
2126 * amd64-nbsd-tdep.c: Rename to ...
2127 * amd64-netbsd-tdep.c: ... this, adjust include.
2128 * amd64-tdep.h: Adjust include.
2129 * arm-nbsd-nat.c: Rename to ...
2130 * arm-netbsd-nat.c: ... this, adjust include.
2131 * arm-nbsd-tdep.c: Rename to ...
2132 * arm-netbsd-tdep.c: ... this, adjust include.
2133 * arm-nbsd-tdep.h: Rename to ...
2134 * arm-netbsd-tdep.h: ... this, adjust include.
2135 * configure.nat: Adjust file lists.
2136 * configure.tgt: Likewise.
2137 * hppa-nbsd-nat.c: Rename to ...
2138 * hppa-netbsd-nat.c: ... this, adjust include.
2139 * hppa-nbsd-tdep.c: Rename to ...
2140 * hppa-netbsd-tdep.c: ... this, adjust include.
2141 * i386-nbsd-nat.c: Rename to ...
2142 * i386-netbsd-nat.c: ... this, adjust include.
2143 * i386-nbsd-tdep.c: Rename to ...
2144 * i386-netbsd-tdep.c: ... this, adjust include.
2145 * m68k-bsd-nat.c: Adjust include.
2146 * mips-nbsd-nat.c: Rename to ...
2147 * mips-netbsd-nat.c: ... this, adjust include.
2148 * mips-nbsd-tdep.c: Rename to ...
2149 * mips-netbsd-tdep.c: ... this, adjust include.
2150 * mips-nbsd-tdep.h: Rename to ...
2151 * mips-netbsd-tdep.h: ... this.
2152 * nbsd-nat.c: Rename to ...
2153 * netbsd-nat.c: ... this, adjust include.
2154 * nbsd-nat.h: Rename to ...
2155 * netbsd-nat.h: ... this, adjust include.
2156 * nbsd-tdep.c: Rename to ...
2157 * netbsd-tdep.c: ... this, adjust include.
2158 * nbsd-tdep.h: Rename to ...
2159 * netbsd-tdep.h: ... this.
2160 * ppc-nbsd-nat.c: Rename to ...
2161 * ppc-netbsd-nat.c: ... this, adjust include.
2162 * ppc-nbsd-tdep.c: Rename to ...
2163 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2164 * ppc-nbsd-tdep.h: Rename to ...
2165 * ppc-netbsd-tdep.h: ... this.
2166 * sh-nbsd-nat.c: Rename to ...
2167 * sh-netbsd-nat.c: ... this, adjust include.
2168 * sh-nbsd-tdep.c: Rename to ...
2169 * sh-netbsd-tdep.c: ... this, adjust include.
2170 * sparc-nbsd-nat.c: Rename to ...
2171 * sparc-netbsd-nat.c: ... this.
2172 * sparc-nbsd-tdep.c: Rename to ...
2173 * sparc-netbsd-tdep.c: ... this, adjust include.
2174 * sparc64-nbsd-nat.c: Rename to ...
2175 * sparc64-netbsd-nat.c: ... this.
2176 * sparc64-nbsd-tdep.c: Rename to ...
2177 * sparc64-netbsd-tdep.c: ... this, adjust include.
2178 * sparc64-tdep.h: Adjust comment.
2179 * vax-bsd-nat.c: Adjust include.
2180 * vax-nbsd-tdep.c: Rename to ...
2181 * vax-netbsd-tdep.c: ... this, adjust include.
2182
2183 2020-10-12 Tom Tromey <tom@tromey.com>
2184
2185 * target.h (struct target_ops) <get_section_table>: Update.
2186 (target_get_section_table): Update.
2187 * target.c (target_get_section_table, target_section_by_addr)
2188 (memory_xfer_partial_1): Update.
2189 * target-section.h (target_section_table): Now an alias.
2190 * target-delegates.c: Rebuild.
2191 * target-debug.h (target_debug_print_target_section_table_p):
2192 Rename from target_debug_print_struct_target_section_table_p.
2193 * symfile.c (build_section_addr_info_from_section_table): Update.
2194 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2195 * solib-svr4.c (scan_dyntag): Update.
2196 * solib-dsbt.c (scan_dyntag): Update.
2197 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2198 Update.
2199 * record-full.c (record_full_core_target::xfer_partial): Update.
2200 * progspace.h (struct program_space) <target_sections>: Update.
2201 * exec.h (print_section_info): Update.
2202 * exec.c (exec_target::close, build_section_table)
2203 (add_target_sections, add_target_sections_of_objfile)
2204 (remove_target_sections, exec_on_vfork)
2205 (section_table_available_memory)
2206 (section_table_xfer_memory_partial)
2207 (exec_target::get_section_table, exec_target::xfer_partial)
2208 (print_section_info, set_section_command)
2209 (exec_set_section_address, exec_target::has_memory): Update.
2210 * corelow.c (core_target::build_file_mappings)
2211 (core_target::xfer_partial, core_target::info_proc_mappings)
2212 (core_target::info_proc_mappings): Update.
2213 * bfd-target.c (class target_bfd): Update
2214
2215 2020-10-12 Tom Tromey <tom@tromey.com>
2216
2217 * progspace.c (program_space::~program_space): Don't call
2218 clear_section_table.
2219 * exec.h (clear_section_table): Don't declare.
2220 * exec.c (exec_target::close): Update.
2221 (clear_section_table): Remove.
2222
2223 2020-10-12 Tom Tromey <tom@tromey.com>
2224
2225 * exec.c (add_target_sections_of_objfile): Simplify.
2226
2227 2020-10-12 Tom Tromey <tom@tromey.com>
2228
2229 * solib.c (solib_map_sections): Update.
2230 * record-full.c (record_full_core_open_1): Update.
2231 * exec.h (build_section_table): Return a target_section_table.
2232 * exec.c (exec_file_attach): Update.
2233 (build_section_table): Return a target_section_table.
2234 * corelow.c (core_target::core_target): Update.
2235 * bfd-target.c (target_bfd::target_bfd): Update.
2236
2237 2020-10-12 Tom Tromey <tom@tromey.com>
2238
2239 * target.c (target_section_by_addr, memory_xfer_partial_1):
2240 Update.
2241 * target-section.h (struct target_section_table): Use
2242 std::vector.
2243 * symfile.h (build_section_addr_info_from_section_table): Take a
2244 target_section_table.
2245 * symfile.c (build_section_addr_info_from_section_table): Take a
2246 target_section_table.
2247 * solist.h (struct so_list) <sections>: Change type.
2248 <sections_end>: Remove.
2249 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2250 (solib_contains_address_p): Update.
2251 * solib-svr4.c (scan_dyntag): Update.
2252 * solib-dsbt.c (scan_dyntag): Update.
2253 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2254 Update.
2255 * record-full.c (record_full_core_start, record_full_core_end):
2256 Remove.
2257 (record_full_core_sections): New global.
2258 (record_full_core_open_1, record_full_core_target::xfer_partial):
2259 Update.
2260 * exec.h (build_section_table, section_table_xfer_memory_partial)
2261 (add_target_sections): Take a target_section_table.
2262 * exec.c (exec_file_attach, clear_section_table): Update.
2263 (resize_section_table): Remove.
2264 (build_section_table, add_target_sections): Take a
2265 target_section_table.
2266 (add_target_sections_of_objfile, remove_target_sections)
2267 (exec_on_vfork): Update.
2268 (section_table_available_memory): Take a target_section_table.
2269 (section_table_read_available_memory): Update.
2270 (section_table_xfer_memory_partial): Take a target_section_table.
2271 (print_section_info, set_section_command)
2272 (exec_set_section_address, exec_target::has_memory): Update.
2273 * corelow.c (class core_target) <m_core_section_table,
2274 m_core_file_mappings>: Remove braces.
2275 <~core_target>: Remove.
2276 (core_target::core_target): Update.
2277 (core_target::~core_target): Remove.
2278 (core_target::build_file_mappings)
2279 (core_target::xfer_memory_via_mappings)
2280 (core_target::xfer_partial, core_target::info_proc_mappings):
2281 Update.
2282 * bfd-target.c (target_bfd::xfer_partial): Update.
2283 (target_bfd::target_bfd): Update.
2284 (target_bfd::~target_bfd): Remove.
2285
2286 2020-10-12 Tom Tromey <tom@tromey.com>
2287
2288 * target.h (struct target_section, struct target_section_table):
2289 Move to target-section.h.
2290 * target-section.h: New file.
2291
2292 2020-10-12 Pedro Alves <pedro@palves.net>
2293
2294 PR exp/26602
2295 * valops.c (struct struct_field_searcher): New.
2296 (update_search_result): Rename to ...
2297 (struct_field_searcher::update_result): ... this. Simplify
2298 prototype. Record all found fields.
2299 (do_search_struct_field): Rename to ...
2300 (struct_field_searcher::search): ... this. Simplify prototype.
2301 Maintain stack of visited baseclass path. Call update_result for
2302 fields too. Keep searching fields in baseclasses instead of
2303 stopping at the first found field.
2304 (search_struct_field): Use struct_field_searcher. When looking
2305 for fields, report ambiguous access attempts.
2306
2307 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * frame.c (inside_main_func): Check full symbols as well as
2310 minimal symbols.
2311
2312 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2313
2314 * ada-lang.c (advance_wild_match): Rewrite the function's
2315 description. Change the type of target0, t0 and t1 to char.
2316
2317 2020-10-09 Tom Tromey <tromey@adacore.com>
2318
2319 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2320
2321 2020-10-09 Tom Tromey <tromey@adacore.com>
2322
2323 * ada-lang.h (ada_encode): Return std::string.
2324 * ada-lang.c (ada_encode_1): Return std::string.
2325 (ada_encode): Likewise.
2326 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2327 Update.
2328 * ada-exp.y (block_lookup, write_var_or_type): Update.
2329
2330 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2331
2332 PR exp/26714
2333 * printcmd.c (print_formatted): Handle void results as
2334 unformatted prints.
2335
2336 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * arch/aarch32.c (aarch32_create_target_description): Release the
2339 target_desc_up as late as possible.
2340 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2341 * arch/amd64.c (amd64_create_target_description): Likewise.
2342 * arch/arc.c (arc_create_target_description): Return a
2343 target_desc_up, don't release it.
2344 * arch/arc.h (arc_create_target_description): Update declaration.
2345 (arc_lookup_target_description): Move target_desc_up into the
2346 cache, and return a borrowed pointer.
2347 * arch/arm.c (arm_create_target_description): Release the
2348 target_desc_up as late as possible.
2349 * arch/i386.c (i386_create_target_description): Likewise.
2350 * arch/riscv.h (riscv_create_target_description): Update
2351 declaration to match definition.
2352 * arch/tic6x.c (tic6x_create_target_description): Release the
2353 target_desc_up as late as possible.
2354
2355 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2358 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2359
2360 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2361
2362 * source.c (directory_command): Notify observers that "directories"
2363 parameter has changed.
2364
2365 2020-10-08 Tom Tromey <tom@tromey.com>
2366
2367 * cli/cli-cmds.c (print_disassembly): Style function name and
2368 addresses. Add _() wrappers.
2369
2370 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2371
2372 * NEWS: Mention ARC support in GDBserver.
2373
2374 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * arch/aarch32.c (aarch32_create_target_description): Release
2377 unique_ptr returned from allocate_target_description.
2378 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2379 * arch/amd64.c (amd64_create_target_description): Likewise.
2380 * arch/arc.c (arc_create_target_description): Likewise.
2381 * arch/arm.c (arm_create_target_description): Likewise.
2382 * arch/i386.c (i386_create_target_description): Likewise.
2383 * arch/riscv.c (riscv_create_target_description): Update return
2384 type. Handle allocate_target_description returning a unique_ptr.
2385 (riscv_lookup_target_description): Update to handle unique_ptr.
2386 * arch/tic6x.c (tic6x_create_target_description): Release
2387 unique_ptr returned from allocate_target_description.
2388 * features/microblaze-with-stack-protect.c: Regenerate.
2389 * features/microblaze.c: Regenerate.
2390 * features/mips-dsp-linux.c: Regenerate.
2391 * features/mips-linux.c: Regenerate.
2392 * features/mips64-dsp-linux.c: Regenerate.
2393 * features/mips64-linux.c: Regenerate.
2394 * features/nds32.c: Regenerate.
2395 * features/nios2.c: Regenerate.
2396 * features/or1k.c: Regenerate.
2397 * features/rs6000/powerpc-32.c: Regenerate.
2398 * features/rs6000/powerpc-32l.c: Regenerate.
2399 * features/rs6000/powerpc-403.c: Regenerate.
2400 * features/rs6000/powerpc-403gc.c: Regenerate.
2401 * features/rs6000/powerpc-405.c: Regenerate.
2402 * features/rs6000/powerpc-505.c: Regenerate.
2403 * features/rs6000/powerpc-601.c: Regenerate.
2404 * features/rs6000/powerpc-602.c: Regenerate.
2405 * features/rs6000/powerpc-603.c: Regenerate.
2406 * features/rs6000/powerpc-604.c: Regenerate.
2407 * features/rs6000/powerpc-64.c: Regenerate.
2408 * features/rs6000/powerpc-64l.c: Regenerate.
2409 * features/rs6000/powerpc-7400.c: Regenerate.
2410 * features/rs6000/powerpc-750.c: Regenerate.
2411 * features/rs6000/powerpc-860.c: Regenerate.
2412 * features/rs6000/powerpc-altivec32.c: Regenerate.
2413 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2414 * features/rs6000/powerpc-altivec64.c: Regenerate.
2415 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2416 * features/rs6000/powerpc-e500.c: Regenerate.
2417 * features/rs6000/powerpc-e500l.c: Regenerate.
2418 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2419 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2420 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2421 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2422 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2423 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2424 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2425 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2426 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2427 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2428 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2429 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2430 * features/rs6000/powerpc-vsx32.c: Regenerate.
2431 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2432 * features/rs6000/powerpc-vsx64.c: Regenerate.
2433 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2434 * features/rs6000/rs6000.c: Regenerate.
2435 * features/rx.c: Regenerate.
2436 * features/s390-gs-linux64.c: Regenerate.
2437 * features/s390-linux32.c: Regenerate.
2438 * features/s390-linux32v1.c: Regenerate.
2439 * features/s390-linux32v2.c: Regenerate.
2440 * features/s390-linux64.c: Regenerate.
2441 * features/s390-linux64v1.c: Regenerate.
2442 * features/s390-linux64v2.c: Regenerate.
2443 * features/s390-te-linux64.c: Regenerate.
2444 * features/s390-tevx-linux64.c: Regenerate.
2445 * features/s390-vx-linux64.c: Regenerate.
2446 * features/s390x-gs-linux64.c: Regenerate.
2447 * features/s390x-linux64.c: Regenerate.
2448 * features/s390x-linux64v1.c: Regenerate.
2449 * features/s390x-linux64v2.c: Regenerate.
2450 * features/s390x-te-linux64.c: Regenerate.
2451 * features/s390x-tevx-linux64.c: Regenerate.
2452 * features/s390x-vx-linux64.c: Regenerate.
2453 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2454 from allocate_target_description.
2455 * target-descriptions.c (allocate_target_description): Update
2456 return type.
2457 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2458 allocate_target_description.
2459
2460 2020-10-07 Tom Tromey <tromey@adacore.com>
2461
2462 * unittests/search-memory-selftests.c: New file.
2463 * Makefile.in (SELFTESTS_SRCS): Add
2464 unittests/search-memory-selftests.c.
2465
2466 2020-10-07 Tom Tromey <tromey@adacore.com>
2467
2468 PR gdb/16930:
2469 * findcmd.c (_initialize_mem_search): Mention that the range is
2470 inclusive.
2471
2472 2020-10-07 Tom Tromey <tromey@adacore.com>
2473
2474 * target.h (simple_search_memory): Don't declare.
2475 * target.c (simple_search_memory): Move to gdbsupport.
2476 (default_search_memory): Update.
2477 * remote.c (remote_target::search_memory): Update.
2478
2479 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2480
2481 * Makefile.in (COMPILE): Add CXXFLAGS.
2482 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2483 (check-headers): Add CXXFLAGS.
2484
2485 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2486
2487 * arc-linux-tdep.h: New file.
2488 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2489 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2490 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2491 arc_linux_gregset, arc_linux_v2_regset,
2492 arc_linux_iterate_over_regset_sections,
2493 arc_linux_core_read_description): Implement.
2494 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2495 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2496 (arc_gdbarch_features_create): Add.
2497 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2498
2499 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2500
2501 * arch/arc.h: Rename "arc_gdbarch_features" to
2502 "arc_arch_features".
2503 * arc-tdep.h: Likewise.
2504 * arc-tdep.c: Likewise.
2505
2506 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2507
2508 * infcmd.c (attach_command): Remove the redundant call to
2509 `clear_proceed_status`.
2510
2511 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2512
2513 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2514
2515 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2516
2517 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2518 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2519 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2520
2521 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2524 (_initialize_break_catch_sig): Don't allocate array.
2525
2526 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * symtab.c (find_pc_line): Return unmapped addresses when the
2529 requested address is also unmapped.
2530
2531 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2532
2533 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2534 tui/tui-out.h.
2535
2536 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2539 type::is_vector instead of TYPE_VECTOR.
2540
2541 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * auto-load.c (auto_load_objfile_script_1): Don't use
2544 debugfile_holder as temporary variable when stripping drive
2545 letter.
2546
2547 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2548
2549 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2550 Add TYPE_CODE_COMPLEX.
2551 (amd64_windows_return_value): Fix types returned via XMM0.
2552
2553 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2554
2555 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2556 AArch64/ARM maintainers.
2557
2558 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * NEWS: Mention set/show debug event-loop.
2561
2562 2020-10-02 Tom Tromey <tromey@adacore.com>
2563
2564 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2565 REG_EXTENDED.
2566
2567 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2568
2569 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2570 * procfs.c (procfs_inferior_created): Remove.
2571 (_initialize_procfs): Don't register procfs_inferior_created.
2572
2573 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2574
2575 * async-event.c (invoke_async_signal_handlers): Add debug
2576 print.
2577 (check_async_event_handlers): Likewise.
2578 * event-top.c (show_debug_event_loop): New function.
2579 (_initialize_event_top): Register "set debug event-loop"
2580 setting.
2581
2582 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2585 * debug.h: Remove.
2586 * infrun.c: Include gdbsupport/common-debug.h.
2587 * linux-nat.c: Likewise.
2588
2589 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * async-event.h (create_async_signal_handler): Add name
2592 parameter.
2593 (create_async_event_handler): Likewise.
2594 * async-event.c (struct async_signal_handler) <name>: New field.
2595 (struct async_event_handler) <name>: New field.
2596 (create_async_signal_handler): Assign name.
2597 (create_async_event_handler): Assign name.
2598 * event-top.c (async_init_signals): Pass name when creating
2599 handler.
2600 * infrun.c (_initialize_infrun): Likewise.
2601 * record-btrace.c (record_btrace_push_target): Likewise.
2602 * record-full.c (record_full_open): Likewise.
2603 * remote-notif.c (remote_notif_state_allocate): Likewise.
2604 * remote.c (remote_target::open_1): Likewise.
2605 * tui/tui-win.c (tui_initialize_win): Likewise.
2606
2607 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * async-event.c (initialize_async_signal_handlers): Pass name to
2610 add_file_handler
2611 * event-top.c (ui_register_input_event_handler): Likewise.
2612 * linux-nat.c (linux_nat_target::async): Likewise.
2613 * run-on-main-thread.c (_initialize_run_on_main_thread):
2614 Likewise
2615 * ser-base.c (reschedule): Likewise.
2616 (ser_base_async): Likewise.
2617 * tui/tui-io.c: Likewise.
2618 * top.h (struct ui) <num>: New field.
2619 * top.c (highest_ui_num): New variable.
2620 (ui::ui): Initialize num.
2621
2622 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * observable.h <inferior_created>: Remove parameters. Update all
2625 listeners.
2626 * inferior.h (post_create_inferior): Remove target parameter.
2627 Update all callers.
2628
2629 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2630
2631 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2632 and DW_MACRO_undef_strx.
2633 (dwarf_decode_macros): Likewise
2634 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2635 which is the value of DW_AT_str_offsets_base.
2636 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2637 str_offsets_base.
2638
2639 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2640
2641 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2642
2643 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2644
2645 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2646 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2647
2648 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2649
2650 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2651
2652 2020-09-30 Tom de Vries <tdevries@suse.de>
2653
2654 PR symtab/26683
2655 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2656
2657 2020-09-30 Tom Tromey <tromey@adacore.com>
2658
2659 * dwarf2/read.c (handle_variant): Use constant_value.
2660
2661 2020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2664 (read_file_scope, dwarf2_get_pc_bounds)
2665 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2666 (read_structure_type, handle_struct_member_die)
2667 (read_enumeration_type, read_array_type, read_set_type)
2668 (read_tag_pointer_type, read_tag_reference_type)
2669 (read_subroutine_type, read_base_type, read_subrange_type)
2670 (read_full_die_1, partial_die_info::read)
2671 (partial_die_info::read, by, new_symbol)
2672 (dwarf2_const_value_data, dwarf2_const_value_attr)
2673 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2674 (prepare_one_comp_unit): Update.
2675 * dwarf2/attribute.h (DW_UNSND): Remove.
2676
2677 2020-09-29 Tom Tromey <tom@tromey.com>
2678
2679 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2680 (read_subroutine_type, partial_die_info::read)
2681 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2682 (dwarf2_add_member_fn): Update.
2683 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2684 * dwarf2/attribute.c (attribute::as_boolean): New method.
2685
2686 2020-09-29 Tom Tromey <tom@tromey.com>
2687
2688 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2689 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2690 method.
2691 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2692
2693 2020-09-29 Tom Tromey <tom@tromey.com>
2694
2695 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2696 the attribute's form.
2697
2698 2020-09-29 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2701 (dwarf2_add_member_fn): Update.
2702 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2703 * dwarf2/attribute.c (attribute::defaulted): New method, from
2704 is_valid_DW_AT_defaulted.
2705
2706 2020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (dw2_get_file_names_reader)
2709 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2710 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2711 (dwarf2_symbol_mark_computed): Use as_unsigned.
2712 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2713 method.
2714 <form_is_section_offset>: Update comment.
2715
2716 2020-09-29 Tom Tromey <tom@tromey.com>
2717
2718 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2719 dwarf2_default_access_attribute. Look up attribute.
2720 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2721 Update.
2722
2723 2020-09-29 Tom Tromey <tom@tromey.com>
2724
2725 * dwarf2/read.c (skip_one_die): Update.
2726 (read_full_die_1): Change how reprocessing is done.
2727 (partial_die_info::read): Update.
2728 (read_attribute_value): Remove need_reprocess parameter.
2729 (read_attribute): Likewise.
2730 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2731 New method.
2732
2733 2020-09-29 Tom Tromey <tom@tromey.com>
2734
2735 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2736 (dwarf2_const_value_attr, dump_die_shallow)
2737 (dwarf2_fetch_constant_bytes): Update.
2738 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2739 comment.
2740 <set_address>: New method.
2741 (DW_ADDR): Remove.
2742 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2743 (attribute::as_string, attribute::as_address): Add assert.
2744
2745 2020-09-29 Tom Tromey <tom@tromey.com>
2746
2747 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2748 (read_attribute_reprocess, read_attribute_value): Update.
2749 (read_attribute): Clear requires_reprocessing.
2750 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2751 form_requires_reprocessing>: New methods.
2752 <string_init>: Clear requires_reprocessing.
2753 <set_unsigned_reprocess>: New method.
2754 <name>: Shrink by one bit.
2755 <requires_reprocessing>: New member.
2756 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2757 method.
2758
2759 2020-09-29 Tom Tromey <tom@tromey.com>
2760
2761 * dwarf2/read.c (read_attribute_value): Update.
2762 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2763 set_unsigned>: New methods.
2764 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2765
2766 2020-09-29 Tom Tromey <tom@tromey.com>
2767
2768 * dwarf2/read.c (get_alignment, read_array_order)
2769 (read_attribute_value, dwarf2_const_value_attr)
2770 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2771 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2772 New methods.
2773 (DW_SND): Remove.
2774
2775 2020-09-29 Tom Tromey <tom@tromey.com>
2776
2777 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2778 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2779 Update.
2780 * dwarf2/attribute.h (struct attribute) <as_signature,
2781 set_signature>: New methods.
2782 (DW_SIGNATURE): Remove.
2783
2784 2020-09-29 Tom Tromey <tom@tromey.com>
2785
2786 * dwarf2/read.c (read_call_site_scope)
2787 (handle_data_member_location, dwarf2_add_member_fn)
2788 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2789 (partial_die_info::read, read_attribute_value)
2790 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2791 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2792 (dwarf2_symbol_mark_computed): Update.
2793 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2794 methods.
2795 (DW_BLOCK): Remove.
2796 * dwarf2/attribute.c (attribute::form_is_block): Add
2797 DW_FORM_data16.
2798
2799 2020-09-29 Tom Tromey <tom@tromey.com>
2800
2801 * dwarf2/read.c (read_cutu_die_from_dwo)
2802 (read_attribute_reprocess, read_attribute_value, read_attribute)
2803 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2804 (dwarf2_fetch_constant_bytes): Update.
2805 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2806 <set_string_noncanonical, set_string_canonical>: New methods.
2807 <string_is_canonical>: Update comment.
2808 <canonical_string_p>: Add assert.
2809 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2810 * dwarf2/attribute.c (attribute::form_is_string): New method.
2811 (attribute::string): Use it.
2812
2813 2020-09-29 Tom Tromey <tom@tromey.com>
2814
2815 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2816 (dump_die_shallow): Use canonical_string_p.
2817 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2818 method.
2819
2820 2020-09-29 Tom Tromey <tom@tromey.com>
2821
2822 * dwarf2/read.c (partial_die_info::read)
2823 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2824 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2825 attribute::as_string.
2826
2827 2020-09-29 Tom Tromey <tom@tromey.com>
2828
2829 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2830 DW_ADDR.
2831 (attribute::string): Don't use DW_STRING.
2832 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2833 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2834
2835 2020-09-29 Tom Tromey <tom@tromey.com>
2836
2837 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2838 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2839 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2840 * dwarf2/attribute.h (struct attribute): Rename methods.
2841 * dwarf2/attribute.c (attribute::as_address): Rename from
2842 value_as_address.
2843 (attribute::as_string): Rename from value_as_string.
2844
2845 2020-09-29 Tom Tromey <tom@tromey.com>
2846
2847 * dwarf2/read.c (partial_die_info::read) <case
2848 DW_AT_linkage_name>: Use value_as_string.
2849 (dwarf2_string_attr): Use value_as_string.
2850 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2851 method.
2852 * dwarf2/attribute.c (attribute::value_as_string): New method.
2853
2854 2020-09-29 Pedro Alves <pedro@palves.net>
2855
2856 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2857 defined before using '#pragma GCC diagnostic' instead of checking
2858 __clang__.
2859
2860 2020-09-28 Tom Tromey <tom@tromey.com>
2861
2862 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2863 (handle_signal_stop): Update.
2864 * procfs.c (procfs_target::insert_watchpoint): Update.
2865 * target.h (target_have_steppable_watchpoint): Now a function.
2866
2867 2020-09-28 Tom Tromey <tom@tromey.com>
2868
2869 * infrun.c (set_schedlock_func): Update.
2870 * target.h (target_can_lock_scheduler): Now a function.
2871
2872 2020-09-28 Tom Tromey <tom@tromey.com>
2873
2874 * inferior.h (class inferior) <has_execution>: Update.
2875 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2876 * valops.c (find_function_in_inferior)
2877 (value_allocate_space_in_inferior): Update.
2878 * top.c (kill_or_detach): Update.
2879 * target.c (target_preopen, set_target_permissions): Update.
2880 (target_has_execution_current): Remove.
2881 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2882 Update.
2883 * solib.c (update_solib_list, reload_shared_libraries): Update.
2884 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2885 * solib-dsbt.c (enable_break): Update.
2886 * score-tdep.c (score7_fetch_inst): Update.
2887 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2888 Update.
2889 * remote.c (remote_target::start_remote)
2890 (remote_target::remote_check_symbols, remote_target::open_1)
2891 (remote_target::remote_detach_1, remote_target::verify_memory)
2892 (remote_target::xfer_partial, remote_target::read_description)
2893 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2894 * record-full.c (record_full_open_1): Update.
2895 * record-btrace.c (record_btrace_target_open): Update.
2896 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2897 (value_nsstring): Update.
2898 * linux-thread-db.c (add_thread_db_info)
2899 (thread_db_find_new_threads_silently, check_thread_db_callback)
2900 (try_thread_db_load_1, record_thread): Update.
2901 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2902 Update.
2903 * linux-fork.c (checkpoint_command): Update.
2904 * infrun.c (set_non_stop, set_observer_mode)
2905 (check_multi_target_resumption, for_each_just_stopped_thread)
2906 (maybe_remove_breakpoints, normal_stop)
2907 (class infcall_suspend_state): Update.
2908 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2909 (info_program_command, attach_command): Update.
2910 * infcall.c (call_function_by_hand_dummy): Update.
2911 * inf-loop.c (inferior_event_handler): Update.
2912 * gcore.c (gcore_command, derive_heap_segment): Update.
2913 * exec.c (exec_file_command): Update.
2914 * eval.c (evaluate_subexp): Update.
2915 * compile/compile.c (compile_to_object): Update.
2916 * cli/cli-dump.c (restore_command): Update.
2917 * breakpoint.c (update_watchpoint)
2918 (update_inserted_breakpoint_locations)
2919 (insert_breakpoint_locations, get_bpstat_thread): Update.
2920 * target.h (target_has_execution): Remove macro.
2921 (target_has_execution_current): Don't declare.
2922 (target_has_execution): Rename from target_has_execution_1. Add
2923 argument default.
2924
2925 2020-09-28 Tom Tromey <tom@tromey.com>
2926
2927 * mi/mi-main.c (exec_reverse_continue)
2928 (mi_cmd_list_target_features): Update.
2929 * infrun.c (set_exec_direction_func): Update.
2930 * target.c (default_execution_direction): Update.
2931 * reverse.c (exec_reverse_once): Update.
2932 * target.h (target_can_execute_reverse): Now a function.
2933
2934 2020-09-28 Tom Tromey <tom@tromey.com>
2935
2936 * tui/tui-regs.c (tui_get_register)
2937 (tui_data_window::show_registers): Update.
2938 * thread.c (scoped_restore_current_thread::restore)
2939 (scoped_restore_current_thread::scoped_restore_current_thread):
2940 Update.
2941 * regcache-dump.c (regcache_print): Update.
2942 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2943 Update.
2944 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2945 * mep-tdep.c (current_me_module, current_options): Update.
2946 * linux-thread-db.c (thread_db_load): Update.
2947 * infcmd.c (registers_info, info_vector_command)
2948 (info_float_command): Update.
2949 * ia64-tdep.c (ia64_frame_prev_register)
2950 (ia64_sigtramp_frame_prev_register): Update.
2951 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2952 * gcore.c (derive_stack_segment): Update.
2953 * frame.c (get_current_frame, has_stack_frames): Update.
2954 * findvar.c (language_defn::read_var_value): Update.
2955 * arm-tdep.c (arm_pc_is_thumb): Update.
2956 * target.c (target_has_registers): Rename from
2957 target_has_registers_1.
2958 * target.h (target_has_registers): Remove macro.
2959 (target_has_registers): Rename from target_has_registers_1.
2960
2961 2020-09-28 Tom Tromey <tom@tromey.com>
2962
2963 * windows-tdep.c (tlb_make_value): Update.
2964 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2965 * thread.c (scoped_restore_current_thread::restore)
2966 (scoped_restore_current_thread::scoped_restore_current_thread)
2967 (thread_command): Update.
2968 * stack.c (backtrace_command_1, frame_apply_level_command)
2969 (frame_apply_all_command, frame_apply_command): Update.
2970 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2971 Update.
2972 * gcore.c (derive_stack_segment): Update.
2973 * frame.c (get_current_frame, has_stack_frames): Update.
2974 * auxv.c (info_auxv_command): Update.
2975 * ada-tasks.c (ada_build_task_list): Update.
2976 * target.c (target_has_stack): Rename from target_has_stack_1.
2977 * target.h (target_has_stack): Remove macro.
2978 (target_has_stack): Rename from target_has_stack_1.
2979
2980 2020-09-28 Tom Tromey <tom@tromey.com>
2981
2982 * target.c (target_has_memory): Rename from target_has_memory_1.
2983 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2984 * thread.c (scoped_restore_current_thread::restore)
2985 (scoped_restore_current_thread::scoped_restore_current_thread):
2986 Update.
2987 * frame.c (get_current_frame, has_stack_frames): Update.
2988 * target.h (target_has_memory): Remove macro.
2989 (target_has_memory): Rename from target_has_memory_1.
2990
2991 2020-09-28 Tom Tromey <tom@tromey.com>
2992
2993 * target.c (target_has_all_memory_1): Remove.
2994 * target.h (target_has_all_memory): Remove define.
2995 (target_has_all_memory_1): Don't declare.
2996
2997 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * ser-base.c: Adjust comments formatting.
3000
3001 2020-09-27 Tom Tromey <tom@tromey.com>
3002
3003 PR tui/25342:
3004 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3005
3006 2020-09-27 Tom Tromey <tom@tromey.com>
3007
3008 PR tui/25342:
3009 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3010
3011 2020-09-27 Tom Tromey <tom@tromey.com>
3012
3013 * unittests/tui-selftests.c: Update.
3014 * tui/tui-winsource.h (struct tui_source_window_base)
3015 <extra_margin, show_line_number, refresh_pad>: New methods.
3016 <m_max_length, m_pad>: New members.
3017 (tui_copy_source_line): Update.
3018 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3019 first_col, line_width, ndigits parameters. Add length.
3020 (tui_source_window_base::show_source_line): Write to pad. Line
3021 number now 0-based.
3022 (tui_source_window_base::refresh_pad): New method.
3023 (tui_source_window_base::show_source_content): Write to pad. Call
3024 refresh_pad.
3025 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3026 not refill.
3027 (tui_source_window_base::update_exec_info): Call
3028 show_line_number.
3029 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3030 method.
3031 <m_digits>: New member.
3032 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3033 and m_max_length.
3034 (tui_source_window::show_line_number): New method.
3035 * tui/tui-io.h (tui_puts): Fix comment.
3036 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3037 m_max_length.
3038
3039 2020-09-27 Tom Tromey <tom@tromey.com>
3040
3041 * tui/tui-winsource.c
3042 (tui_source_window_base::set_is_exec_point_at): Don't call
3043 show_source_line.
3044
3045 2020-09-27 Tom Tromey <tom@tromey.com>
3046
3047 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3048 method.
3049 <erase>: Update.
3050 <cursor_x, cursor_y>: Remove.
3051 <m_inner_window>: New member.
3052 (tui_py_window::rerender): Create inner window.
3053 (tui_py_window::output): Write to inner window.
3054
3055 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3056
3057 PR python/26586
3058 * cli/cli-script.c (execute_control_commands): don't set
3059 instream to nullptr here as this breaks the from_tty argument
3060 to gdb.execute in Python.
3061 (execute_user_command): set instream to nullptr here instead.
3062
3063 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * infrun.h (infrun_debug_printf): Fix formatting.
3066 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3067
3068 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3069
3070 * compile/compile-object-load.h (struct munmap_list): Add
3071 explicitly-defined move constructor.
3072
3073 2020-09-24 Tom Tromey <tromey@adacore.com>
3074
3075 PR tui/26638:
3076 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3077 method.
3078 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3079 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3080 (tui_prev_win): Rewrite.
3081
3082 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3083
3084 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3085 in WOW64 processes as SIGINT.
3086 * nat/windows-nat.h: Make wow64_process a shared variable.
3087 * windows-nat.c: Remove static wow64_process variable.
3088
3089 2020-09-23 Tom Tromey <tom@tromey.com>
3090
3091 PR symtab/25470:
3092 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3093 offset and bit size.
3094 * printcmd.c (print_scalar_formatted): Handle zero-length
3095 integer.
3096 (print_scalar_formatted): Use bit_size_differs_p.
3097 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3098 constant.
3099 (union type_specific): <int_stuff>: New member.
3100 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3101 methods.
3102 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3103 TYPE_SPECIFIC_FIELD.
3104 (recursive_dump_type, copy_type_recursive): Update.
3105 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3106 DW_AT_data_bit_offset.
3107
3108 2020-09-23 Tom Tromey <tom@tromey.com>
3109
3110 * utils.h (class gdb_argv): Add move operators.
3111 <append>: New methods.
3112 * compile/compile.c (build_argc_argv): Remove.
3113 (compile_args_argc): Remove.
3114 (compile_args_argv): Change type.
3115 (set_compile_args): Simplify.
3116 (append_args): Remove.
3117 (filter_args): Remove argcp parameter.
3118 (get_args): Return gdb_argv. Simplify.
3119 (compile_to_object): Update.
3120
3121 2020-09-23 Tom Tromey <tom@tromey.com>
3122
3123 * compile/compile-object-run.c (do_module_cleanup)
3124 <~do_module_cleanup> :Remove.
3125 (do_module_cleanup): Update.
3126 * compile/compile-object-load.h (struct munmap_list): Add move
3127 assignment operator.
3128 <source_file>: Now a std::string.
3129 <munmap_list>: Rename. No longer a pointer.
3130 * compile/compile-object-load.c (struct setup_sections_data): Add
3131 constructor.
3132 <setup_one_section>: Declare.
3133 <munmap_list>: Move earlier.
3134 <m_bfd>: New member.
3135 <m_last_size, m_last_section_first, m_last_prot,
3136 m_last_max_alignment>: Rename, add initializers where needed.
3137 (setup_sections_data::setup_one_section): Rename from
3138 setup_sections. Update.
3139 (compile_object_load): Update. Don't use bfd_map_over_sections.
3140
3141 2020-09-23 Tom Tromey <tom@tromey.com>
3142
3143 * compile/compile-object-run.c (struct do_module_cleanup): Add
3144 parameters to constructor. Update destructor.
3145 <source_file, scope, scope_data, out_value_type, out_value_addr,
3146 munmap_list_head, objfile_name_string>: Remove.
3147 <module>: New member.
3148 (do_module_cleanup): Update.
3149 (compile_object_run): Update.
3150
3151 2020-09-23 Tom Tromey <tom@tromey.com>
3152
3153 * compile/compile.c (eval_compile_command): Update.
3154 * compile/compile-object-run.h (compile_object_run): Take a
3155 compile_module_up.
3156 * compile/compile-object-run.c (compile_object_run): Take a
3157 compile_module_up.
3158 * compile/compile-object-load.h (struct compile_module): Add
3159 constructor, destructor.
3160 (compile_module_up): New typedef.
3161 (compile_object_load): Return compile_object_up.
3162 * compile/compile-object-load.c (compile_object_load): Return
3163 compile_module_up.
3164
3165 2020-09-23 Tom Tromey <tom@tromey.com>
3166
3167 * compile/compile-object-run.c (struct do_module_cleanup): Add
3168 constructor, destructor.
3169 <objfile_name_string>: Don't use struct hack.
3170 (do_module_cleanup): Use delete.
3171 (compile_object_run): Use new.
3172
3173 2020-09-23 Tom Tromey <tom@tromey.com>
3174
3175 * compile/compile-cplus-types.c
3176 (compile_cplus_convert_struct_or_union): Use std::vector.
3177 (compile_cplus_convert_func): Likewise.
3178 * compile/compile-c-types.c (convert_func): Use std::vector.
3179
3180 2020-09-21 Tom Tromey <tromey@adacore.com>
3181
3182 * sparc-tdep.c (sparc32_skip_prologue): Use
3183 skip_prologue_using_sal.
3184
3185 2020-09-19 Tom Tromey <tom@tromey.com>
3186
3187 * symfile.c (add_section_size_callback): Remove.
3188 (load_one_section): Rename from load_section_callback. Change
3189 parameters.
3190 (generic_load): Use foreach.
3191
3192 2020-09-19 Tom Tromey <tom@tromey.com>
3193
3194 * exec.c (add_to_section_table): Remove.
3195 (build_section_table): Use foreach.
3196
3197 2020-09-19 Tom Tromey <tom@tromey.com>
3198
3199 * elfread.c (elf_locate_sections): Change parameters.
3200 (elf_symfile_read): Use foreach.
3201
3202 2020-09-19 Tom Tromey <tom@tromey.com>
3203
3204 * cli/cli-dump.c (struct callback_data): Remove.
3205 (restore_one_section): Rename from restore_section_callback.
3206 Change parameters.
3207 (restore_binary_file): Change parameters.
3208 (restore_command): Use foreach.
3209
3210 2020-09-19 Tom Tromey <tom@tromey.com>
3211
3212 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3213 (gcore_copy_callback): Likewise.
3214 (gcore_memory_sections): Use foreach.
3215
3216 2020-09-19 Tom Tromey <tom@tromey.com>
3217
3218 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3219 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3220 parameters.
3221 (generic_elf_osabi_sniffer): Use foreach.
3222 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3223 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3224
3225 2020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3228 (dwarf2_get_dwz_file): Use foreach.
3229 (dwarf2_locate_dwo_sections): Change parameters.
3230 (open_and_init_dwo_file): Use foreach.
3231 (dwarf2_locate_common_dwp_sections): Change parameters.
3232 (open_and_init_dwp_file): Use foreach.
3233
3234 2020-09-19 Tom Tromey <tom@tromey.com>
3235
3236 * symfile.h: (find_lowest_section): Don't declare.
3237 * symfile.c (find_lowest_section): Now static. Change
3238 parameters.
3239 (struct place_section_arg): Remove.
3240 (place_section): Change parameters.
3241 (addr_info_make_relative): Use foreach.
3242 (symfile_dummy_outputs): Remove.
3243 (default_symfile_relocate): Use foreach.
3244
3245 2020-09-19 Tom Tromey <tom@tromey.com>
3246
3247 * objfiles.c (add_to_objfile_sections): Rename from
3248 add_to_objfile_sections_full.
3249 (add_to_objfile_sections): Remove.
3250 (build_objfile_section_table): Use foreach.
3251
3252 2020-09-19 Tom Tromey <tom@tromey.com>
3253
3254 * stap-probe.c (get_stap_base_address_1): Remove.
3255 (get_stap_base_address): Use foreach.
3256
3257 2020-09-19 Tom Tromey <tom@tromey.com>
3258
3259 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3260 parameters.
3261 (gdb_bfd_close_or_warn): Use foreach.
3262
3263 2020-09-19 Tom Tromey <tom@tromey.com>
3264
3265 * corelow.c (add_to_thread_list): Change parameters.
3266 (core_target_open): Use foreach.
3267
3268 2020-09-19 Tom Tromey <tom@tromey.com>
3269
3270 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3271 existing function.
3272
3273 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3276 for arrays.
3277
3278 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * eval.c: Remove 'f-lang.h' include.
3281 (value_f90_subarray): Moved to f-lang.c.
3282 (eval_call): Renamed to...
3283 (evaluate_subexp_do_call): ...this, is no longer static, header
3284 comment moved into header file.
3285 (evaluate_funcall): Update call to eval_call.
3286 (skip_undetermined_arglist): Moved to f-lang.c.
3287 (fortran_value_subarray): Likewise.
3288 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3289 moved to evaluate_subexp_f.
3290 (calc_f77_array_dims): Moved to f-lang.c
3291 * expprint.c (print_subexp_funcall): New function.
3292 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3293 moved to print_subexp_f, OP_FUNCALL uses new function.
3294 (dump_subexp_body_funcall): New function.
3295 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3296 moved to dump_subexp_f, OP_FUNCALL uses new function.
3297 * expression.h (evaluate_subexp_do_call): Declare.
3298 * f-lang.c (value_f90_subarray): Moved from eval.c.
3299 (skip_undetermined_arglist): Likewise.
3300 (calc_f77_array_dims): Likewise.
3301 (fortran_value_subarray): Likewise.
3302 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3303 (operator_length_f): Likewise.
3304 (print_subexp_f): Likewise.
3305 (dump_subexp_body_f): Likewise.
3306 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3307 declaration of this operation to here.
3308 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3309 support moved to operator_length_f.
3310 * parser-defs.h (dump_subexp_body_funcall): Declare.
3311 (print_subexp_funcall): Declare.
3312 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3313 fortran-operator.def.
3314
3315 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * eval.c (fortran_value_subarray): New function, content is taken
3318 from...
3319 (evaluate_subexp_standard): ...here, in two places. Now arrays
3320 and strings both call the new function.
3321 (calc_f77_array_dims): Add header comment, handle strings.
3322
3323 2020-09-18 Victor Collod <vcollod@nvidia.com>
3324
3325 PR gdb/26635
3326 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3327 (i386_analyze_prologue): Call i386_skip_endbr.
3328
3329 2020-09-18 Tom Tromey <tromey@adacore.com>
3330
3331 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3332 (windows_nat_target::wait): Update.
3333 * target/wait.h (enum target_wait_flag): New. Use
3334 DEF_ENUM_FLAGS_TYPE.
3335 * target/target.h (target_wait): Change type of options.
3336 * target.h (target_options_to_string, default_target_wait):
3337 Update.
3338 (struct target_ops) <wait>: Change type of options.
3339 * target.c (target_wait, default_target_wait, do_option): Change
3340 type of "options".
3341 (target_options_to_string): Likewise.
3342 * target-delegates.c: Rebuild.
3343 * target-debug.h (target_debug_print_target_wait_flags): Rename
3344 from target_debug_print_options.
3345 * sol-thread.c (class sol_thread_target) <wait>: Update.
3346 (sol_thread_target::wait): Update.
3347 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3348 (rs6000_nat_target::wait): Update.
3349 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3350 Update.
3351 (remote_target::wait_ns, remote_target::wait_as): Change type of
3352 "options".
3353 (remote_target::wait): Update.
3354 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3355 (gdbsim_target::wait): Update.
3356 * record-full.c (class record_full_base_target) <wait>: Update.
3357 (record_full_wait_1): Change type of "options".
3358 (record_full_base_target::wait): Update.
3359 * record-btrace.c (class record_btrace_target) <wait>: Update.
3360 (record_btrace_target::wait): Update.
3361 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3362 Update.
3363 (ravenscar_thread_target::wait): Update.
3364 * procfs.c (class procfs_target) <wait>: Update.
3365 (procfs_target::wait): Update.
3366 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3367 * obsd-nat.c (obsd_nat_target::wait): Update.
3368 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3369 (nto_procfs_target::wait): Update.
3370 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3371 * nbsd-nat.c (nbsd_wait): Change type of "options".
3372 (nbsd_nat_target::wait): Update.
3373 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3374 (thread_db_target::wait): Update.
3375 * linux-nat.h (class linux_nat_target) <wait>: Update.
3376 * linux-nat.c (linux_nat_target::wait): Update.
3377 (linux_nat_wait_1): Update.
3378 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3379 "options".
3380 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3381 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3382 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3383 (go32_nat_target::wait): Update.
3384 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3385 * gnu-nat.c (gnu_nat_target::wait): Update.
3386 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3387 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3388 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3389 * darwin-nat.c (darwin_nat_target::wait): Update.
3390 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3391 (bsd_uthread_target::wait): Update.
3392 * aix-thread.c (class aix_thread_target) <wait>: Update.
3393 (aix_thread_target::wait): Update.
3394
3395 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * compile/compile-object-run.c (create_copied_type_recursive): New
3398 function.
3399 (compile_object_run): Use new function.
3400
3401 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3402
3403 * NEWS: Mention x86_64 Cygwin core file support.
3404
3405 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3406
3407 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3408 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3409
3410 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3411
3412 * windows-tdep.h: Add prototypes.
3413 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3414 (i386_windows_core_pid_to_str): Move and rename ...
3415 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3416 (windows_core_pid_to_str): ... and here.
3417 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3418
3419 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3420 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3421 (amd64_windows_init_abi_common): ... and register.
3422
3423 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3424
3425 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3426 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3427
3428 2020-09-18 Pedro Alves <pedro@palves.net>
3429
3430 PR gdb/26631
3431 * thread.c (thread_find_command): Switch inferior before calling
3432 target methods.
3433
3434 2020-09-17 Tom Tromey <tromey@adacore.com>
3435
3436 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3437 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3438 (tdesc_arch_data_up): New typedef.
3439 (tdesc_use_registers, tdesc_data_alloc): Update.
3440 (tdesc_data_cleanup): Don't declare.
3441 * target-descriptions.c (tdesc_data_alloc): Return a
3442 tdesc_arch_data_up.
3443 (tdesc_arch_data_deleter::operator()): Rename from
3444 tdesc_data_cleanup. Change argument type.
3445 (tdesc_use_registers): Change early_data to an rvalue reference.
3446 (tdesc_use_registers): Don't use delete.
3447 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3448 * s390-tdep.c (s390_gdbarch_init): Update.
3449 * rx-tdep.c (rx_gdbarch_init): Update.
3450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3451 * riscv-tdep.c (riscv_gdbarch_init): Update.
3452 * or1k-tdep.c (or1k_gdbarch_init): Update.
3453 * nios2-tdep.c (nios2_gdbarch_init): Update.
3454 * nds32-tdep.c (nds32_gdbarch_init): Update.
3455 * mips-tdep.c (mips_gdbarch_init): Update.
3456 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3457 * m68k-tdep.c (m68k_gdbarch_init): Update.
3458 * i386-tdep.c (i386_gdbarch_init): Update.
3459 * arm-tdep.c (arm_gdbarch_init): Update.
3460 * arc-tdep.c (arc_tdesc_init): Update.
3461 (arc_gdbarch_init): Update.
3462 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3463
3464 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3465
3466 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3467 for WOW64 processes.
3468
3469 2020-09-17 Tom Tromey <tom@tromey.com>
3470
3471 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3472
3473 2020-09-17 Tom Tromey <tom@tromey.com>
3474
3475 * value.c (preserve_values): Update.
3476 * python/py-type.c (save_objfile_types): Update.
3477 * guile/scm-type.c (save_objfile_types): Update.
3478 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3479 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3480 * compile/compile-object-run.c (compile_object_run): Update.
3481
3482 2020-09-17 Tom Tromey <tom@tromey.com>
3483
3484 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3485 Remove.
3486 <m_table>: Now htab_up.
3487 * typeprint.c (typedef_hash_table::recursively_update)
3488 (typedef_hash_table::add_template_parameters)
3489 (typedef_hash_table::typedef_hash_table): Update.
3490 (typedef_hash_table::~typedef_hash_table): Remove.
3491 (typedef_hash_table::typedef_hash_table)
3492 (typedef_hash_table::find_global_typedef)
3493 (typedef_hash_table::find_typedef): Update.
3494
3495 2020-09-17 Tom Tromey <tom@tromey.com>
3496
3497 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3498
3499 2020-09-17 Tom Tromey <tom@tromey.com>
3500
3501 * linespec.c (class decode_compound_collector)
3502 <~decode_compound_collector>: Remove.
3503 <m_unique_syms>: Now htab_up.
3504 (decode_compound_collector::operator ()): Update.
3505 (class symtab_collector) <~symtab_collector>: Remove.
3506 <m_symtab_table>: Now htab_up.
3507 (symtab_collector::operator ()): Update.
3508
3509 2020-09-17 Tom Tromey <tom@tromey.com>
3510
3511 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3512 (filename_seen_cache::clear): Update.
3513 (~filename_seen_cache): Remove.
3514 (filename_seen_cache::seen): Update.
3515 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3516 htab_up.
3517 <~filename_seen_cache>: Remove.
3518 <traverse>: Update.
3519
3520 2020-09-17 Tom Tromey <tom@tromey.com>
3521
3522 * completer.c (completion_tracker::discard_completions)
3523 (completion_tracker::~completion_tracker)
3524 (completion_tracker::maybe_add_completion)
3525 (completion_tracker::remove_completion)
3526 (completion_tracker::recompute_lowest_common_denominator)
3527 (completion_tracker::build_completion_result): Update.
3528 * completer.h (class completion_tracker) <have_completions>:
3529 Update.
3530 <m_entries_hash>: Now htab_up.
3531
3532 2020-09-17 Tom Tromey <tom@tromey.com>
3533
3534 * breakpoint.c (ambiguous_names_p): Use htab_up.
3535
3536 2020-09-17 Tom Tromey <tom@tromey.com>
3537
3538 * auto-load.c (struct auto_load_pspace_info)
3539 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3540 <loaded_script_files, loaded_script_texts>: Change type to
3541 htab_up.
3542 (~auto_load_pspace_info) Remove.
3543 (init_loaded_scripts_info, maybe_add_script_file)
3544 (maybe_add_script_text, auto_load_info_scripts): Update.
3545
3546 2020-09-17 Tom Tromey <tromey@adacore.com>
3547
3548 * c-exp.y (name_obstack): Now static.
3549
3550 2020-09-17 Chungyi Chi <demonic@csie.io>
3551
3552 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3553
3554 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3557 (add_solib_catchpoint): Likewise.
3558 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3559 to bool.
3560 (add_solib_catchpoint): Change int parameter/variable to bool.
3561 (catch_load_or_unload): Likewise.
3562 (init_catchpoint): Likewise.
3563 (create_fork_vfork_event_catchpoint): Likewise.
3564 (catch_fork_command_1): Likewise.
3565 (catch_exec_command_1): Likewise.
3566
3567 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3570 Change instance_flags to m_instance_flags.
3571
3572 2020-09-16 Tom Tromey <tromey@adacore.com>
3573
3574 PR gdb/26598:
3575 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3576
3577 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3578
3579 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3580 PL_FLAG_EXEC.
3581 (fbsd_nat_target::insert_exec_catchpoint)
3582 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3583 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3584 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3585
3586 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3587
3588 * configure.ac: Remove check for kinfo_getvmmap().
3589 * configure, config.in: Regenerate.
3590 * fbsd-nat.c (fbsd_read_mapping): Remove
3591 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3592 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3593 kinfo_get_vmmap() are always present.
3594
3595 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3596
3597 * fbsd-nat.c: Always include support for
3598 TARGET_OBJECT_SIGNAL_INFO.
3599
3600 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3601
3602 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3603 sysctl and remove procfs fallback.
3604
3605 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3606
3607 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3608 * fbsd-nat.h: Likewise.
3609
3610 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3611
3612 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3613 argument.
3614
3615 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * ada-lang.c (ada_language_data): Delete.
3618 (ada_language): Remove references to ada_language_data.
3619 * c-lang.c (c_language_data): Delete.
3620 (c_language): Remove references to c_language_data.
3621 (cplus_language_data): Delete.
3622 (cplus_language): Remove references to cplus_language_data.
3623 (asm_language_data): Delete.
3624 (asm_language): Remove references to asm_language_data.
3625 (minimal_language_data): Delete.
3626 (minimal_language): Remove references to minimal_language_data.
3627 * d-lang.c (d_language_data): Delete.
3628 (d_language): Remove references to d_language_data.
3629 * f-lang.c (f_language_data): Delete.
3630 (f_language): Remove references to f_language_data.
3631 * go-lang.c (go_language_data): Delete.
3632 (go_language): Remove references to go_language_data.
3633 * language.c (unknown_language_data): Delete.
3634 (unknown_language): Remove references to unknown_language_data.
3635 (auto_language_data): Delete.
3636 (auto_language): Remove references to auto_language_data.
3637 * language.h (language_data): Delete struct.
3638 (language_defn): No longer inherit from language_data.
3639 * m2-lang.c (m2_language_data): Delete.
3640 (m2_language): Remove references to m2_language_data.
3641 * objc-lang.c (objc_language_data): Delete.
3642 (objc_language): Remove references to objc_language_data.
3643 * opencl-lang.c (opencl_language_data): Delete.
3644 (opencl_language): Remove references to opencl_language_data.
3645 * p-lang.c (pascal_language_data): Delete.
3646 (pascal_language): Remove references to pascal_language_data.
3647 * rust-lang.c (rust_language_data): Delete.
3648 (rust_language): Remove references to rust_language_data.
3649
3650 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3653 initializer.
3654 (ada_language::opcode_print_table): New member function.
3655 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3656 (c_language::opcode_print_table): New member function.
3657 (cplus_language_data): Remove la_op_print_tab initializer.
3658 (cplus_language::opcode_print_table): New member function.
3659 (asm_language_data): Remove la_op_print_tab initializer.
3660 (asm_language::opcode_print_table): New member function.
3661 (minimal_language_data): Remove la_op_print_tab initializer.
3662 (minimal_language::opcode_print_table): New member function.
3663 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3664 (d_language::opcode_print_table): New member function.
3665 * expprint.c (print_subexp_standard): Update call to
3666 opcode_print_table.
3667 (op_string): Likewise.
3668 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3669 (f_language::opcode_print_table): New member function.
3670 * go-lang.c (go_language_data): Remove la_op_print_tab
3671 initializer.
3672 (go_language::opcode_print_table): New member function.
3673 * language.c (unknown_language_data): Remove la_op_print_tab
3674 initializer.
3675 (unknown_language::opcode_print_table): New member function.
3676 (auto_language_data): Remove la_op_print_tab initializer.
3677 (auto_language::opcode_print_table): New member function.
3678 * language.h (language_data): Remove la_op_print_tab field.
3679 (language_defn::opcode_print_table): Declare new member function.
3680 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3681 initializer.
3682 (m2_language::opcode_print_table): New member function.
3683 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3684 initializer.
3685 (objc_language::opcode_print_table): New member function.
3686 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3687 initializer.
3688 (opencl_language::opcode_print_table): New member function.
3689 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3690 initializer.
3691 (pascal_language::opcode_print_table): New member function.
3692 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3693 initializer.
3694 (rust_language::opcode_print_table): New member function.
3695
3696 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3699 (ada_language::expression_ops): New member function.
3700 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3701 (c_language::expression_ops): New member function.
3702 (cplus_language_data): Remove la_exp_desc initializer.
3703 (cplus_language::expression_ops): New member function.
3704 (asm_language_data): Remove la_exp_desc initializer.
3705 (asm_language::expression_ops): New member function.
3706 (minimal_language_data): Remove la_exp_desc initializer.
3707 (minimal_language::expression_ops): New member function.
3708 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3709 (d_language::expression_ops): New member function.
3710 * eval.c (evaluate_subexp): Update call to expression_ops.
3711 * expprint.c (print_subexp): Likewise.
3712 (op_name): Likewise.
3713 (dump_subexp_body): Likewise.
3714 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3715 (f_language::expression_ops): New member function.
3716 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3717 (go_language::expression_ops): New member function.
3718 * language.c (language_defn::expression_ops): New function.
3719 (unknown_language_data): Remove la_exp_desc initializer.
3720 (auto_language_data): Likewise.
3721 * language.h (language_data): Remove la_exp_desc field.
3722 (language_defn::expression_ops): Declare new member function.
3723 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3724 (m2_language::expression_ops): New member function.
3725 * objc-lang.c (objc_language_data): Remove la_exp_desc
3726 initializer.
3727 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3728 initializer.
3729 (opencl_language::expression_ops): New member function.
3730 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3731 * parse.c (operator_length): Update call to expression_ops.
3732 (exp_iterate): Likewise.
3733 * rust-lang.c (rust_language_data): Remove la_exp_desc
3734 initializer.
3735 (ruse_language::expression_ops): New member function.
3736
3737 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3740 initializer.
3741 (ada_language::varobj_ops): New member function.
3742 * c-lang.c (c_language_data): Remove la_varobj_ops
3743 initializer.
3744 (cplus_language_data): Likewise.
3745 (cplus_language::varobj_ops): New member function.
3746 (asm_language_data): Remove la_varobj_ops initializer.
3747 (minimal_language_data): Likewise.
3748 * d-lang.c (d_language_data): Likewise.
3749 * f-lang.c (f_language_data): Likewise.
3750 * go-lang.c (go_language_data): Likewise.
3751 * language.c (language_defn::varobj_ops): New function.
3752 (unknown_language_data): Remove la_varobj_ops
3753 initializer.
3754 (auto_language_data): Likewise.
3755 * language.h (language_data): Remove la_varobj_ops field.
3756 (language_defn::varobj_ops): Declare new member function.
3757 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3758 * objc-lang.c (objc_language_data): Likewise.
3759 * opencl-lang.c (opencl_language_data): Likewise.
3760 * p-lang.c (pascal_language_data): Likewise.
3761 * rust-lang.c (rust_language_data): Likewise.
3762 * varobj.c (varobj_create): Update call to varobj_ops.
3763 * varobj.h (default_varobj_ops): Delete define.
3764
3765 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3768 initializer.
3769 * c-lang.c (c_language_data): Likewise.
3770 (c_language::macro_expansion): New member function.
3771 (cplus_language_data): Likewise.
3772 (cplus_language::macro_expansion): New member function.
3773 (asm_language_data): Likewise.
3774 (asm_language::macro_expansion): New member function.
3775 (minimal_language_data): Likewise.
3776 (minimal_language::macro_expansion): New member function.
3777 * d-lang.c (d_language_data): Remove la_macro_expansion
3778 initializer.
3779 * f-lang.c (f_language_data): Likewise.
3780 * go-lang.c (go_language_data): Likewise.
3781 * language.c (unknown_language_data): Likewise.
3782 (auto_language_data): Likewise.
3783 * language.h (language_data): Remove la_macro_expansion field.
3784 (language_defn::macro_expansion): New member function.
3785 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3786 initializer.
3787 * objc-lang.c (objc_language_data): Likewise.
3788 (objc_language::macro_expansion): New member function.
3789 * opencl-lang.c (opencl_language_data): Likewise.
3790 (opencl_language::macro_expansion): New member function.
3791 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3792 initializer.
3793 * rust-lang.c (rust_language_data): Likewise.
3794 * symtab.c (default_collect_symbol_completion_matches_break_on):
3795 Update call to macro_expansion.
3796
3797 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * ada-lang.c (ada_language_data): Remove la_array_ordering
3800 initializer.
3801 * c-lang.c (c_language_data): Likewise.
3802 (cplus_language_data): Likewise.
3803 (asm_language_data): Likewise.
3804 (minimal_language_data): Likewise.
3805 * d-lang.c (d_language_data): Likewise.
3806 * dwarf2/read.c (read_array_order): Update for call to
3807 array_ordering.
3808 * f-lang.c (f_language_data): Remove la_array_ordering
3809 initializer.
3810 (f_language::array_ordering): New member function.
3811 * go-lang.c (go_language_data): Remove la_array_ordering
3812 initializer.
3813 * language.c (unknown_language_data): Likewise.
3814 (auto_language_data): Likewise.
3815 * language.h (language_data): Delete la_array_ordering field.
3816 (language_defn::array_ordering): New member function.
3817 * m2-lang.c (m2_language_data): Remove la_array_ordering
3818 initializer.
3819 * objc-lang.c (objc_language_data): Likewise.
3820 * opencl-lang.c (opencl_language_data): Likewise.
3821 * p-lang.c (pascal_language_data): Likewise.
3822 * rust-lang.c (rust_language_data): Likewise.
3823
3824 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3827 initializer.
3828 * c-lang.c (c_language_data): Likewise.
3829 (cplus_language_data): Likewise.
3830 (asm_language_data): Likewise.
3831 (minimal_language_data): Likewise.
3832 * d-lang.c (d_language_data): Likewise.
3833 * f-lang.c (f_language_data): Likewise.
3834 (f_language::case_sensitivity): New member function.
3835 * go-lang.c (go_language_data): Remove la_case_sensitivity
3836 initializer.
3837 * language.c (enum case_mode): Moved here from language.h.
3838 (case_mode): Make static.
3839 (show_case_command): Update for case_sensitivity being a method.
3840 (set_case_command): Likewise.
3841 (set_range_case): Likewise.
3842 (unknown_language_data): Remove la_case_sensitivity initializer.
3843 (auto_language_data): Likewise.
3844 * language.h (case_mode): Delete, move enum declaration to
3845 language.c.
3846 (language_data): Delete la_case_sensitivity field.
3847 (language_defn::case_sensitivity): New member function.
3848 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3849 initializer.
3850 * objc-lang.c (objc_language_data): Likewise.
3851 * opencl-lang.c (opencl_language_data): Likewise.
3852 * p-lang.c (pascal_language_data): Likewise.
3853 * rust-lang.c (rust_language_data): Likewise.
3854
3855 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * ada-lang.c (ada_language_data): Remove la_range_check
3858 initializer.
3859 * c-lang.c (c_language_data): Likewise.
3860 (cplus_language_data): Likewise.
3861 (asm_language_data): Likewise.
3862 (minimal_language_data): Likewise.
3863 * d-lang.c (d_language_data): Likewise.
3864 * f-lang.c (f_language_data): Likewise.
3865 (f_language::range_checking_on_by_default): New member function.
3866 * go-lang.c (go_language_data): Remove la_range_check initializer.
3867 * language.c (enum range_mode): Moved here from language.h.
3868 (range_mode): Made static.
3869 (show_range_command): Update to use
3870 range_checking_on_by_default.
3871 (set_range_command): Likewise.
3872 (set_range_case): Likewise.
3873 (unknown_language_data): Remove la_range_check initializer.
3874 (auto_language_data): Likewise.
3875 * language.h (range_mode): Delete. Enum definition moved to
3876 language.c.
3877 (language_data): Remove la_range_check field.
3878 (language_defn::range_checking_on_by_default): New member
3879 function.
3880 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3881 (m2_language::range_checking_on_by_default): New member function.
3882 * objc-lang.c (objc_language_data): Remove la_range_check
3883 initializer.
3884 * opencl-lang.c (opencl_language_data): Likewise.
3885 * p-lang.c (pascal_language_data): Likewise.
3886 (pascal_language::range_checking_on_by_default): New member
3887 function.
3888 * rust-lang.c (rust_language_data): Remove la_range_check
3889 initializer.
3890 (rust_language::range_checking_on_by_default): New member
3891 function.
3892
3893 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * dwarf2/read.c (dwarf2_physname): Remove special case for
3896 language_go.
3897 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3898 member function.
3899
3900 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3901
3902 * ada-lang.c (ada_language_data): Remove
3903 la_store_sym_names_in_linkage_form_p initializer.
3904 (ada_language::store_sym_names_in_linkage_form_p): New member
3905 function.
3906 * c-lang.c (c_language_data): Remove
3907 la_store_sym_names_in_linkage_form_p initializer.
3908 (c_language::store_sym_names_in_linkage_form_p): New member
3909 function.
3910 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3911 initializer.
3912 (asm_language_data): Likewise.
3913 (asm_language::store_sym_names_in_linkage_form_p): New member
3914 function.
3915 (minimal_language_data): Remove
3916 la_store_sym_names_in_linkage_form_p initializer.
3917 (minimal_language::store_sym_names_in_linkage_form_p): New member
3918 function.
3919 * d-lang.c (d_language_data): Remove
3920 la_store_sym_names_in_linkage_form_p initializer.
3921 * dwarf2/read.c (dwarf2_physname): Update call to
3922 store_sym_names_in_linkage_form_p.
3923 * f-lang.c (f_language_data): Remove
3924 la_store_sym_names_in_linkage_form_p initializer.
3925 * go-lang.c (go_language_data): Remove
3926 la_store_sym_names_in_linkage_form_p initializer.
3927 * language.c (unknown_language_data): Remove
3928 la_store_sym_names_in_linkage_form_p initializer.
3929 (unknown_language::store_sym_names_in_linkage_form_p): New member
3930 function.
3931 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3932 initializer.
3933 (auto_language::store_sym_names_in_linkage_form_p): New member
3934 function.
3935 * language.h (language_data): Remove
3936 la_store_sym_names_in_linkage_form_p member variable.
3937 (language_defn::store_sym_names_in_linkage_form_p): New member
3938 function.
3939 * m2-lang.c (m2_language_data): Remove
3940 la_store_sym_names_in_linkage_form_p initializer.
3941 * objc-lang.c (objc_language_data): Likewise.
3942 * opencl-lang.c (opencl_language_data): Likewise.
3943 * p-lang.c (pascal_language_data): Likewise.
3944 * rust-lang.c (rust_language_data): Likewise.
3945
3946 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * ada-lang.c (ada_language_data): Remove string_lower_bound
3949 initializer.
3950 * c-lang.c (c_language_data): Likewise.
3951 (cplus_language_data): Likewise.
3952 (asm_language_data): Likewise.
3953 (minimal_language_data): Likewise.
3954 * d-lang.c (d_language_data): Likewise.
3955 * f-lang.c (f_language_data): Likewise.
3956 * go-lang.c (go_language_data): Likewise.
3957 * language.c (unknown_language_data): Likewise.
3958 (auto_language_data): Likewise.
3959 * language.h (language_data): Remove string_lower_bound field.
3960 (language_defn::string_lower_bound): New member function.
3961 * m2-lang.c (m2_language_data): Remove string_lower_bound
3962 initializer.
3963 (m2_language::string_lower_bound): New member function.
3964 * objc-lang.c (objc_language_data): Remove string_lower_bound
3965 initializer.
3966 * opencl-lang.c (opencl_language_data): Likewise.
3967 * p-lang.c (pascal_language_data): Likewise.
3968 * rust-lang.c (rust_language_data): Likewise.
3969 * valops.c (value_cstring): Update call to string_lower_bound.
3970 (value_string): Likewise.
3971 * value.c (allocate_repeated_value): Likewise.
3972
3973 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * valops.c (value_repeat): Fix incorrect argument name in comment.
3976
3977 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * ada-lang.c (ada_language_data): Remove c_style_arrays
3980 initializer.
3981 (ada_language::c_style_arrays_p): New member fuction.
3982 * c-lang.c (c_language_data): Remove c_style_arrays
3983 initializer.
3984 (cplus_language_data): Likewise.
3985 (asm_language_data): Likewise.
3986 (minimal_language_data): Likewise.
3987 * d-lang.c (d_language_data): Likewise.
3988 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3989 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3990 (f_language::c_style_arrays_p): New member function.
3991 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3992 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3993 * language.c (unknown_language_data): Remove c_style_arrays
3994 initializer.
3995 (auto_language_data): Likewise.
3996 * language.h (language_data): Remove c_style_arrays field.
3997 (language_defn::c_style_arrays_p): New member function.
3998 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3999 (m2_language::c_style_arrays_p): New member function.
4000 * objc-lang.c (objc_language_data): Remove c_style_arrays
4001 initializer.
4002 * opencl-lang.c (opencl_language_data): Likewise.
4003 * p-lang.c (pascal_language_data): Likewise.
4004 * rust-lang.c (rust_language_data): Likewise.
4005 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4006 and update local variable to a bool.
4007 * valops.c (value_cast): Update call to c_style_arrays_p.
4008 (value_array): Likewise.
4009 * value.c (coerce_array): Likewise.
4010
4011 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4012
4013 * ada-lang.c (ada_language_data): Remove la_language initializer.
4014 * c-lang.c (c_language_data): Likewise.
4015 (cplus_language_data): Likewise.
4016 (asm_language_data): Likewise.
4017 (minimal_language_data): Likewise.
4018 * d-lang.c (d_language_data): Likewise.
4019 * f-lang.c (f_language_data): Likewise.
4020 * go-lang.c (go_language_data): Likewise.
4021 * language.c (unknown_language_data): Likewise.
4022 (auto_language_data): Likewise.
4023 * language.h (language_data): Remove la_language field.
4024 (language_defn::language_defn): Initialise la_language field.
4025 (language_defn::la_language): New member variable.
4026 * m2-lang.c (m2_language_data): Remove la_language field.
4027 * objc-lang.c (objc_language_data): Likewise.
4028 * opencl-lang.c (opencl_language_data): Likewise.
4029 * p-lang.c (pascal_language_data): Likewise.
4030 * rust-lang.c (rust_language_data): Likewise.
4031
4032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * ada-lang.c (ada_extensions): Delete, moved into
4035 ada_language::filename_extensions.
4036 (ada_language_data): Remove la_filename_extensions initializer.
4037 (ada_language::filename_extensions): New member function.
4038 * c-lang.c (c_extensions): Delete, moved into
4039 c_language::filename_extensions.
4040 (c_language_data): Remove la_filename_extensions initializer.
4041 (c_language::filename_extensions): New member function.
4042 (cplus_extensions): Delete, moved into
4043 cplus_language::filename_extensions.
4044 (cplus_language_data): Remove la_filename_extensions initializer.
4045 (cplus_language::filename_extensions): New member function.
4046 (asm_extensions): Delete, moved into
4047 asm_language::filename_extensions.
4048 (asm_language_data): Remove la_filename_extensions initializer.
4049 (asm_language::filename_extensions): New member function.
4050 (minimal_language_data): Remove la_filename_extensions
4051 initializer.
4052 * d-lang.c (d_extensions): Delete, moved into
4053 d_language::filename_extensions.
4054 (d_language_data): Remove la_filename_extensions initializer.
4055 (d_language::filename_extensions): New member function.
4056 * f-lang.c (f_extensions): Delete, moved into
4057 f_language::filename_extensions.
4058 (f_language_data): Remove la_filename_extensions initializer.
4059 (f_language::filename_extensions): New member function.
4060 * go-lang.c (go_language_data): Remove la_filename_extensions
4061 initializer.
4062 * language.c (add_set_language_command): Update now that
4063 filename_extensions returns a vector.
4064 (unknown_language_data): Remove la_filename_extensions
4065 initializer.
4066 (auto_language_data): Likewise.
4067 * language.h (language_data): Remove la_filename_extensions field.
4068 (language_defn::filename_extensions): New member function.
4069 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4070 initializer.
4071 * objc-lang.c (objc_extensions): Delete, moved into
4072 objc_language::filename_extensions.
4073 (objc_language_data): Remove la_filename_extensions initializer.
4074 (objc_language::filename_extensions): New member function.
4075 * opencl-lang.c (opencl_language_data): Remove
4076 la_filename_extensions initializer.
4077 * p-lang.c (pascal_extensions): Delete, moved into
4078 pascal_language::filename_extensions.
4079 (pascal_language_data): Remove la_filename_extensions initializer.
4080 (pascal_language::filename_extensions): New member function.
4081 * rust-lang.c (rust_extensions): Delete, moved into
4082 rust_language::filename_extensions.
4083 (rust_language_data): Remove la_filename_extensions initializer.
4084 (rust_language::filename_extensions): New member function.
4085 * symfile.c (add_filename_language): Add new assert.
4086
4087 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4088
4089 * ada-lang.c (ada_language_data): Remove la_name and
4090 la_natural_name initializers.
4091 (ada_language::name): New member function.
4092 (ada_language::natural_name): New member function.
4093 * c-lang.c (c_language_data): Remove la_name and
4094 la_natural_name initializers.
4095 (c_language::name): New member function.
4096 (c_language::natural_name): New member function.
4097 (cplus_language_data): Remove la_name and
4098 la_natural_name initializers.
4099 (cplus_language::name): New member function.
4100 (cplus_language::natural_name): New member function.
4101 (asm_language_data): Remove la_name and
4102 la_natural_name initializers.
4103 (asm_language::name): New member function.
4104 (asm_language::natural_name): New member function.
4105 (minimal_language_data): Remove la_name and
4106 la_natural_name initializers.
4107 (minimal_language::name): New member function.
4108 (minimal_language::natural_name): New member function.
4109 * compile/compile.c (compile_to_object): Update call to
4110 lanugage_defn::name.
4111 * d-lang.c (d_language_data): Remove la_name and
4112 la_natural_name initializers.
4113 (d_language::name): New member function.
4114 (d_language::natural_name): New member function.
4115 * expprint.c (print_subexp_standard): Update call to
4116 language_defn::name.
4117 (dump_raw_expression): Likewise
4118 (dump_prefix_expression): Likewise.
4119 * f-lang.c (f_language_data): Remove la_name and
4120 la_natural_name initializers.
4121 (f_language::name): New member function.
4122 (f_language::natural_name): New member function.
4123 * go-lang.c (go_language_data): Remove la_name and
4124 la_natural_name initializers.
4125 (go_language::name): New member function.
4126 (go_language::natural_name): New member function.
4127 * language.c (show_language_command): Update call to
4128 language_defn::name.
4129 (set_language_command): Likewise.
4130 (language_enum): Likewise.
4131 (language_str): Likewise.
4132 (add_set_language_command): Likewise, use
4133 language_defn::natural_name in the doc string.
4134 (unknown_language_data): Remove la_name and
4135 la_natural_name initializers.
4136 (unknown_language::name): New member function.
4137 (unknown_language::natural_name): New member function.
4138 (auto_language_data): Remove la_name and
4139 la_natural_name initializers.
4140 (auto_language::name): New member function.
4141 (auto_language::natural_name): New member function.
4142 (language_lookup_primitive_type_as_symbol): Update call to
4143 language_defn::name.
4144 * language.h (language_data): Remove la_name and la_natural_name
4145 member variables.
4146 (language_defn::name): New member function.
4147 (language_defn::natural_name): New member function.
4148 * m2-lang.c (m2_language_data): Remove la_name and
4149 la_natural_name initializers.
4150 (m2_language::name): New member function.
4151 (m2_language::natural_name): New member function.
4152 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4153 language_defn::natural_name.
4154 * objc-lang.c (objc_language_data): Remove la_name and
4155 la_natural_name initializers.
4156 (objc_language::name): New member function.
4157 (objc_language::natural_name): New member function.
4158 * opencl-lang.c (opencl_language_data): Remove la_name and
4159 la_natural_name initializers.
4160 (opencl_language::name): New member function.
4161 (opencl_language::natural_name): New member function.
4162 * p-lang.c (pascal_language_data): Remove la_name and
4163 la_natural_name initializers.
4164 (pascal_language::name): New member function.
4165 (pascal_language::natural_name): New member function.
4166 * rust-lang.c (rust_language_data): Remove la_name and
4167 la_natural_name initializers.
4168 (rust_language::name): New member function.
4169 (rust_language::natural_name): New member function.
4170 * symtab.c (lookup_language_this): Update call to
4171 language_defn::name.
4172
4173 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * ada-lang.c (ada_language_data): Remove la_name_of_this
4176 initializer.
4177 * ax-gdb.c (gen_expr): Update call to name_of_this.
4178 * c-exp.y (classify_name): Likewise.
4179 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4180 (cplus_language_data): Likewise.
4181 (cplus_language::name_of_this): New member function.
4182 (asm_language_data): Remove la_name_of_this initializer.
4183 (minimal_language_data): Likewise.
4184 * d-lang.c (d_language_data): Likewise.
4185 (d_language::name_of_this): New member function.
4186 * expprint.c (print_subexp_standard): Update call to name_of_this.
4187 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4188 * go-lang.c (go_language_data): Likewise.
4189 * language.c (unknown_language_data): Likewise.
4190 (unknown_language::name_of_this): New member function.
4191 (auto_language_data): Remove la_name_of_this initializer.
4192 (auto_language::name_of_this): New member function.
4193 * language.h (language_data): Delete la_name_of_this member
4194 variable.
4195 (language_defn::name_of_this): New member function.
4196 * m2-lang.c (m2_language_data): Remove la_name_of_this
4197 initializer.
4198 * objc-lang.c (objc_language_data): Likewise.
4199 (objc_language::name_of_this): New member function.
4200 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4201 initializer.
4202 * p-lang.c (pascal_language_data): Likewise.
4203 (pascal_language::name_of_this): New member function.
4204 * rust-lang.c (rust_language_data): Remove la_name_of_this
4205 initializer.
4206 * symtab.c (lookup_language_this): Update call to name_of_this.
4207 (lookup_symbol_aux): Likewise.
4208 * valops.c (value_of_this): Likewise.
4209
4210 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4211
4212 * ada-lang.c (ada_language_data): Remove
4213 la_struct_too_deep_ellipsis initializer.
4214 (ada_language::struct_too_deep_ellipsis): New member function.
4215 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4216 initializer.
4217 (cplus_language_data): Likewise.
4218 (asm_language_data): Likewise.
4219 (minimal_language_data): Likewise.
4220 * cp-valprint.c (cp_print_value): Update call to
4221 struct_too_deep_ellipsis.
4222 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4223 initializer.
4224 * f-lang.c (f_language_data): Likewise.
4225 (f_language::struct_too_deep_ellipsis): New member function.
4226 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4227 initializer.
4228 * language.c (unknown_language_data): Likewise.
4229 (auto_language_data): Likewise.
4230 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4231 member variable.
4232 (language_defn::struct_too_deep_ellipsis): New member function.
4233 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4234 initializer.Q
4235 * objc-lang.c (objc_language_data): Likewise.
4236 * opencl-lang.c (opencl_language_data): Likewise.
4237 * p-lang.c (pascal_language_data): Likewise.
4238 * rust-lang.c (rust_language_data): Likewise.
4239 * valprint.c (val_print_check_max_depth): Update call to
4240 struct_too_deep_ellipsis.
4241
4242 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4243
4244 * MAINTAINERS (Write After Approval): Add myself.
4245
4246 2020-09-15 Tom Tromey <tom@tromey.com>
4247
4248 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4249 Remove.
4250
4251 2020-09-15 Tom Tromey <tom@tromey.com>
4252
4253 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4254 and TYPE_CODE_METHODPTR cases.
4255 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4256 (c_value_print_inner): Update.
4257 * valprint.c (generic_value_print_memberptr): New function, from
4258 c_value_print_memberptr.
4259 (generic_value_print): Use it. Call cplus_print_method_ptr.
4260
4261 2020-09-15 Tom Tromey <tromey@adacore.com>
4262
4263 * python/python-internal.h (PyInt_FromLong): Remove define.
4264 * python/py-value.c (convert_value_from_python): Use
4265 gdb_py_object_from_longest.
4266 * python/py-type.c (typy_get_code): Use
4267 gdb_py_object_from_longest.
4268 * python/py-symtab.c (salpy_get_line): Use
4269 gdb_py_object_from_longest.
4270 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4271 gdb_py_object_from_longest.
4272 * python/py-record.c (recpy_gap_reason_code): Use
4273 gdb_py_object_from_longest.
4274 * python/py-record-btrace.c (recpy_bt_insn_size)
4275 (recpy_bt_func_level, btpy_list_count): Use
4276 gdb_py_object_from_longest.
4277 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4278 gdb_py_object_from_longest. Fix error handling.
4279 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4280 gdb_py_object_from_longest.
4281 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4282 gdb_py_object_from_longest.
4283 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4284 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4285 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4286
4287 2020-09-15 Tom Tromey <tromey@adacore.com>
4288
4289 * python/python.c (gdbpy_parameter_value): Use
4290 gdb_py_object_from_ulongest.
4291
4292 2020-09-15 Tom Tromey <tromey@adacore.com>
4293
4294 * python/py-infevents.c (create_register_changed_event_object):
4295 Use gdb_py_object_from_longest.
4296 * python/py-exitedevent.c (create_exited_event_object): Use
4297 gdb_py_object_from_longest.
4298
4299 2020-09-15 Tom Tromey <tromey@adacore.com>
4300
4301 * python/python.c (gdbpy_parameter_value): Use
4302 gdb_py_object_from_longest.
4303 * python/py-type.c (convert_field, typy_range): Use
4304 gdb_py_object_from_longest.
4305 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4306 gdb_py_object_from_longest.
4307 * python/py-lazy-string.c (stpy_get_length): Use
4308 gdb_py_object_from_longest.
4309 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4310 gdb_py_object_from_longest.
4311 * python/py-infevents.c (create_memory_changed_event_object): Use
4312 gdb_py_object_from_longest.
4313 * python/py-inferior.c (infpy_get_num): Use
4314 gdb_py_object_from_longest.
4315 (infpy_get_pid): Likewise.
4316
4317 2020-09-15 Tom Tromey <tromey@adacore.com>
4318
4319 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4320 defines.
4321 * python/py-value.c (valpy_long): Use
4322 gdb_py_object_from_ulongest.
4323 * python/py-symtab.c (salpy_get_pc): Use
4324 gdb_py_object_from_ulongest.
4325 (salpy_get_last): Likewise.
4326 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4327 gdb_py_object_from_ulongest.
4328 * python/py-lazy-string.c (stpy_get_address): Use
4329 gdb_py_object_from_ulongest.
4330 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4331 * python/py-arch.c (archpy_disassemble): Use
4332 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4333 error handling.
4334
4335 2020-09-15 Tom Tromey <tromey@adacore.com>
4336
4337 * python/python-internal.h (gdb_py_long_from_longest): Remove
4338 defines.
4339 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4340 * python/py-type.c (convert_field, typy_get_sizeof): Use
4341 gdb_py_object_from_longest.
4342 * python/py-record-btrace.c (btpy_list_index): Use
4343 gdb_py_object_from_longest.
4344
4345 2020-09-15 Tom Tromey <tromey@adacore.com>
4346
4347 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4348 * python/py-record.c (recpy_element_number): Use
4349 gdb_py_object_from_longest.
4350 (recpy_gap_number): Likewise.
4351
4352 2020-09-15 Tom Tromey <tromey@adacore.com>
4353
4354 * top.c (ui::ui): Update.
4355 (highest_ui_num): Remove.
4356 * top.h (struct ui) <num>: Remove.
4357
4358 2020-09-15 Tom Tromey <tromey@adacore.com>
4359
4360 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4361 * ui-style.c (ansi_regex_text): Now array.
4362 * rust-exp.y (number_regex_text): Now array.
4363 * linespec.c (linespec_quote_characters): Now array.
4364 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4365 Now arrays.
4366
4367 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * debuginfod-support.c (debuginfod_client_deleter): New.
4370 (debuginfod_client_up): New.
4371 (debuginfod_init): Return debuginfod_client_up.
4372 (debuginfod_source_query): Adjust.
4373 (debuginfod_debuginfo_query): Adjust.
4374
4375 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4376
4377 * debuginfod-support.c (debuginfod_source_query): Use
4378 make_unique_xstrdup.
4379
4380 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4383 with `type::instance_flags`.
4384
4385 2020-09-14 Michael Mullin <masmullin@gmail.com>
4386
4387 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4388 Remove baton parameter.
4389
4390 2020-09-14 Pedro Alves <pedro@palves.net>
4391
4392 * Makefile.in (SELFTESTS_SRCS): Add
4393 unittests/enum-flags-selftests.c.
4394 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4395 btrace_function_flags instead of enum btrace_function_flag.
4396 * compile/compile-c-types.c (convert_qualified): Use
4397 enum_flags::raw.
4398 * compile/compile-cplus-symbols.c (convert_one_symbol)
4399 (convert_symbol_bmsym):
4400 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4401 (compile_cplus_convert_struct_or_union_methods)
4402 (compile_cplus_instance::convert_qualified_base):
4403 * go-exp.y (parse_string_or_char): Add cast to int.
4404 * unittests/enum-flags-selftests.c: New file.
4405 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4406 type to btrace_thread_flags from btrace_thread_flag.
4407 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4408 local's type to btrace_thread_flags from btrace_thread_flag. Add
4409 cast in DEBUG call.
4410
4411 2020-09-14 Pedro Alves <pedro@palves.net>
4412
4413 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4414 * gdbtypes.c (address_space_name_to_int): Rename to ...
4415 (address_space_name_to_type_instance_flags): ... this.
4416 (address_space_int_to_name): Rename to ...
4417 (address_space_type_instance_flags_to_name): ... this.
4418 * gdbtypes.h (address_space_name_to_int): Rename to ...
4419 (address_space_name_to_type_instance_flags): ... this.
4420 (address_space_int_to_name): Rename to ...
4421 (address_space_type_instance_flags_to_name): ... this.
4422 * type-stack.c (type_stack::insert): Adjust to rename.
4423 * type-stack.h (type_stack::insert): Likewise.
4424
4425 2020-09-14 Pedro Alves <pedro@palves.net>
4426 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * avr-tdep.c (avr_address_class_type_flags): Return
4429 type_instance_flags.
4430 (avr_address_class_type_flags_to_name): Take a
4431 type_instance_flags.
4432 (avr_address_class_name_to_type_flags): Return bool and take a
4433 type_instance_flags.
4434 * d-lang.c (build_d_types): Use type::set_instance_flags.
4435 * ft32-tdep.c (ft32_address_class_type_flags): Return
4436 type_instance_flags.
4437 (ft32_address_class_type_flags_to_name): Take a
4438 type_instance_flags.
4439 (ft32_address_class_name_to_type_flags): Return bool and take a
4440 type_instance_flags.
4441 (ft32_gdbarch_init): Use type::set_instance_flags.
4442 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4443 * gdbarch.h, gdbarch.c: Regenerate.
4444 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4445 (address_class_name_to_type_flags): Use type_instance_flags and
4446 bool.
4447 * gdbtypes.c (address_space_name_to_int)
4448 (address_space_int_to_name, make_qualified_type): Use
4449 type_instance_flags.
4450 (make_qualified_type): Use type_instance_flags and
4451 type::set_instance_flags.
4452 (make_type_with_address_space, make_cv_type, make_vector_type)
4453 (check_typedef): Use type_instance_flags.
4454 (recursive_dump_type): Cast type_instance_flags to unsigned for
4455 printing.
4456 (copy_type_recursive): Use type::set_instance_flags.
4457 (gdbtypes_post_init): Use type::set_instance_flags.
4458 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4459 <m_instance_flags>: ... this.
4460 <instance_flags, set_instance_flags>: New methods.
4461 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4462 (SET_TYPE_INSTANCE_FLAGS): New.
4463 (address_space_name_to_int, address_space_int_to_name)
4464 (make_type_with_address_space): Pass flags using
4465 type_instance_flags instead of int.
4466 * stabsread.c (cleanup_undefined_types_noname): Use
4467 type::set_instance_flags.
4468 * s390-tdep.c (s390_address_class_type_flags): Return
4469 type_instance_flags.
4470 (s390_address_class_type_flags_to_name): Take a
4471 type_instance_flags.
4472 (s390_address_class_name_to_type_flags): Return bool and take a
4473 type_instance_flags.
4474 * type-stack.c (type_stack::follow_types): Use
4475 type_instance_flags.
4476 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4477
4478 2020-09-14 Tom Tromey <tromey@adacore.com>
4479
4480 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4481 * x86-tdep.c (x86_is_thunk_register_name)
4482 (x86_in_indirect_branch_thunk): Update.
4483 * sparc64-tdep.c (sparc64_fpu_register_names)
4484 (sparc64_cp0_register_names, sparc64_register_names)
4485 (sparc64_pseudo_register_names): Now const.
4486 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4487 cp0_registers_num>: Now const.
4488 * sparc-tdep.c (sparc_core_register_names)
4489 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4490 (sparc32_pseudo_register_names): Now const.
4491 (validate_tdesc_registers): Update.
4492 * rust-lang.c (rust_extensions): Now const.
4493 * p-lang.c (p_extensions): Now const.
4494 * objc-lang.c (objc_extensions): Now const.
4495 * nto-tdep.c (nto_thread_state_str): Now const.
4496 * moxie-tdep.c (moxie_register_names): Now const.
4497 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4498 Now const.
4499 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4500 (mips_linux_reg_names): Now const.
4501 (mips_gdbarch_init): Update.
4502 * microblaze-tdep.c (microblaze_register_names): Now const.
4503 * m68k-tdep.c (m68k_register_names): Now const.
4504 * m32r-tdep.c (m32r_register_names): Now const.
4505 * ia64-tdep.c (ia64_register_names): Now const.
4506 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4507 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4508 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4509 ymm_avx512_register_names, pkeys_register_names>: Now const.
4510 * i386-tdep.c (i386_register_names, i386_zmm_names)
4511 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4512 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4513 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4514 * f-lang.c (f_extensions): Now const.
4515 * d-lang.c (d_extensions): Now const.
4516 * csky-tdep.c (csky_register_names): Now const.
4517 * charset.c (default_charset_names, charset_enum): Now const.
4518 (_initialize_charset): Update.
4519 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4520 const.
4521 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4522 (bsd_uthread_solib_loaded): Update.
4523 (bsd_uthread_state): Now const.
4524 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4525 (amd64_ymm_avx512_names, amd64_ymmh_names)
4526 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4527 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4528 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4529 (amd64_dword_names): Now const.
4530 * agent.c (can_use_agent_enum): Now const.
4531 * ada-tasks.c (task_states, long_task_states): Now const.
4532 * ada-lang.c (known_runtime_file_name_patterns)
4533 (known_auxiliary_function_name_patterns, attribute_names)
4534 (standard_exc, ada_extensions): Now const.
4535
4536 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4537
4538 * bcache.h (struct bcache) <bcache>: Remove constructor.
4539 <m_hash_function, m_compare_function>: Remove.
4540 <~bcache>: Make virtual.
4541 <compare>: Remove static method, introduce virtual method.
4542 <default_hash>: Remove.
4543 <hash>: New virtual method.
4544 * bcache.c (bcache::expand_hash_table): Update.
4545 (bcache::insert): Update.
4546 (bcache::hash): New.
4547 (bcache::compare): Update comment and parameter names.
4548 * gdbtypes.c (types_deeply_equal): Update.
4549 * psymtab.h (struct psymbol_bcache): New struct.
4550 (class psymtab_storage) <psymtab_storage>: Make default.
4551 <psymbol_cache>: Change type to psymbol_bcache.
4552 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4553 (psymbol_hash): Change to...
4554 (psymbol_bcache::hash): ... this.
4555 (psymbol_compare): Change to...
4556 (psymbol_bcache::compare): ... this.
4557
4558 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4561 checking for initial lwp.
4562
4563 2020-09-14 Tom Tromey <tromey@adacore.com>
4564
4565 * m68k-tdep.c (m68k_extract_return_value): Use
4566 pointer_result_regnum.
4567 (m68k_store_return_value): Likewise.
4568 (m68k_reg_struct_return_p): Handle vectors and arrays.
4569 (m68k_return_value): Handle arrays.
4570 (m68k_svr4_return_value): Fix single-element aggregate handling.
4571 Handle long double. Adjust for embedded ABI.
4572 (m68k_svr4_init_abi): Set pointer_result_regnum.
4573 (m68k_embedded_init_abi): New function.
4574 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4575 (m68k_osabi_sniffer): New function.
4576 (_initialize_m68k_tdep): Register osabi sniffer.
4577 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4578 member.
4579
4580 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4581
4582 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4583 with gdb::unique_xmalloc_ptr<char>.
4584
4585 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4586
4587 * xml-support.h (xml_fetch_another): Change type to be a
4588 function_view.
4589 (xml_process_xincludes): Remove baton parameter.
4590 (xml_fetch_content_from_file): Change baton parameter to
4591 dirname.
4592 * xml-support.c (struct xinclude_parsing_data)
4593 <xinclude_parsing_data>: Remove baton parameter.
4594 <fetcher_baton>: Remove.
4595 (xinclude_start_include): Adjust.
4596 (xml_process_xincludes): Adjust.
4597 (xml_fetch_content_from_file): Replace baton parameter with
4598 dirname.
4599 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4600 (xml_init_syscalls_info): Use a lambda.
4601 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4602 (file_read_description_xml): Use a lambda.
4603 (fetch_available_features_from_target): Change baton parameter
4604 to target_ops.
4605 (target_read_description_xml): Use a lambda.
4606 (target_fetch_description_xml): Use a lambda.
4607 (string_read_description_xml): Update.
4608
4609 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4612 uses with type::endianity_is_not_default.
4613
4614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (struct type) <endianity_is_not_default,
4617 set_endianity_is_not_default>: New methods.
4618 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4619 type::endianity_is_not_default, change all write call sites to
4620 use type::set_endianity_is_not_default.
4621
4622 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4625 uses with type::is_fixed_instance.
4626
4627 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * gdbtypes.h (struct type) <is_fixed_instance,
4630 set_is_fixed_instance>: New methods.
4631 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4632 write call sites to use type::set_is_fixed_instance.
4633
4634 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4637 uses with type::is_gnu_ifunc.
4638
4639 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4642 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4643 use type::set_is_gnu_ifunc.
4644
4645 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4648 uses with type::stub_is_supported.
4649
4650 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4653 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4654 use type::set_stub_is_supported.
4655
4656 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4659 uses with type::is_vector.
4660
4661 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4664 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4665 use type::set_is_vector.
4666
4667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4670 uses with type::has_varargs.
4671
4672 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4675 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4676 use type::set_has_varargs.
4677
4678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4681 uses with type::is_prototyped.
4682
4683 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4686 New methods.
4687 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4688 call sites to use type::set_is_prototyped.
4689
4690 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4693 uses with type::target_is_stub.
4694
4695 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4698 New methods.
4699 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4700 sites to use type::set_target_is_stub.
4701
4702 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * gdbtypes.h (TYPE_STUB): Remove, replace all
4705 uses with type::is_stub.
4706
4707 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4710 (TYPE_STUB): Use type::is_stub, change all write call sites to
4711 use type::set_is_stub.
4712
4713 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4716 type::has_no_signedness.
4717
4718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (struct type) <has_no_signedness,
4721 set_has_no_signedness>: New methods.
4722 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4723 call sites to use type::set_has_no_signedness.
4724
4725 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4728 type::is_unsigned.
4729
4730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4733 methods.
4734 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4735 sites to use type::set_is_unsigned.
4736
4737 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4738 Adam Renquinha <arenquinha@cimeq.qc.ca>
4739
4740 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4741 pointer and stack frame offset when unwinding.
4742
4743 2020-09-13 Pedro Alves <pedro@palves.net>
4744
4745 * NEWS: Document "-break-insert --qualified".
4746 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4747
4748 2020-09-13 Pedro Alves <pedro@palves.net>
4749
4750 * linespec.c (classify_mtype, compare_msyms): Delete.
4751 (search_minsyms_for_name): Remove classification logic. Instead
4752 filter out trampoline symbols if we also found an external
4753 function of the same name.
4754
4755 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4756
4757 * NEWS: Create a new section for the next release branch.
4758 Rename the section of the current branch, now that it has
4759 been cut.
4760
4761 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4762
4763 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4764 * version.in: Bump version to 11.0.50.DATE-git.
4765
4766 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4767
4768 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4769
4770 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4771 Felix Willgerodt <Felix.Willgerodt@intel.com>
4772
4773 * gdbarch.sh: Added bfloat16 type.
4774 * gdbarch.c: Regenerated.
4775 * gdbarch.h: Regenerated.
4776 * gdbtypes.c (floatformats_bfloat16): New struct.
4777 (gdbtypes_post_init): Add builtin_bfloat16.
4778 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4779 (floatformats_bfloat16): New struct.
4780 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4781 (i386_ymm_type): Add field "v16_bfloat16"
4782 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4783 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4784 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4785 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4786 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4787 * features/i386/64bit-avx512.c: Regenerated.
4788 * features/i386/64bit-sse.xml: Add bfloat16 type.
4789 * features/i386/64bit-sse.c: Regenerated.
4790
4791 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4792
4793 * i386-tdep.c (i386_zmm_type): Fix field names.
4794 (i386_ymm_type): Fix field names.
4795
4796 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4797
4798 * breakpoint.c: Fix typo in the help message of the
4799 "set breakpoint condition-evaluation" command.
4800
4801 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4802
4803 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4804 * (nbsd_nat_target::pid_to_exec_file)
4805 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4806 (nbsd_nat_target::post_startup_inferior)
4807 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4808 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4809 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4810 * (nbsd_thread_lister): Remove.
4811
4812 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4813
4814 * fork-inferior.c (startup_inferior): Avoid double free.
4815
4816 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4817
4818 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4819 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4820
4821 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4822
4823 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4824 * netbsd-nat.c: Include <sys/ptrace.h>.
4825 * (netbsd_nat::enable_proc_events): Add.
4826
4827 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4828
4829 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4830 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4831 (netbsd_nat::for_each_thread): Add.
4832 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4833 "gdbsupport/common-debug.h".
4834 * (netbsd_nat::netbsd_thread_lister)
4835 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4836 (netbsd_nat::for_each_thread): Add.
4837
4838 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4839
4840 * netbsd-nat.h: Include <unistd.h>.
4841 * (netbsd_nat::pid_to_exec_file): Add.
4842 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4843 * (netbsd_nat::pid_to_exec_file) Add.
4844
4845 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4846
4847 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4848
4849 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4850
4851 * netbsd-nat.h: New file.
4852 * netbsd-nat.c: Likewise.
4853
4854 2020-09-09 Tom Tromey <tromey@adacore.com>
4855
4856 * ada-lang.c (remove_extra_symbols): Do not increment when
4857 removing an element
4858
4859 2020-09-08 Tom Tromey <tromey@adacore.com>
4860
4861 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4862
4863 2020-09-08 Tom Tromey <tromey@adacore.com>
4864
4865 PR win32/25302:
4866 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4867 (gdb_bfd_init_data): New function.
4868 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4869
4870 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4871
4872 * infrun.c (fetch_inferior_event): Use
4873 `switch_to_target_no_thread` to switch the target.
4874
4875 2020-09-06 Tom Tromey <tom@tromey.com>
4876
4877 * symfile.h (dwarf2_free_objfile): Don't declare.
4878
4879 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4880
4881 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4882 to match 16 byte real/complex type generated by Flang compiler.
4883
4884 2020-09-03 Tom de Vries <tdevries@suse.de>
4885
4886 PR breakpoint/26546
4887 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4888 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4889
4890 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4891
4892 * maint.c (index_digits): New function.
4893 (struct maint_print_section_data): Remove.
4894 (print_bfd_section_info): Remove print_data parameter, add arg
4895 and index_digits.
4896 (print_objfile_section_info): Likewise.
4897 (print_bfd_section_info_maybe_relocated): Likewise (plus
4898 objfile).
4899 (maintenance_info_sections): Adjust calls.
4900
4901 2020-09-02 Tom Tromey <tromey@adacore.com>
4902
4903 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4904 for null pointers.
4905 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4906
4907 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 * bcache.h (struct bcache) <insert>: Change type of `added` to
4910 pointer to bool.
4911 * bcache.c (bcache::insert): Likewise.
4912 * gdbtypes.c (check_types_worklist): Adjust.
4913 * psymtab.c (add_psymbol_to_bcache): Adjust.
4914
4915 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4916
4917 * corelow.c (unordered_set): Include.
4918 (class core_target): Add field 'm_core_unavailable_mappings'.
4919 (core_target::build_file_mappings): Print only one warning
4920 per inaccessible file. Add unavailable/broken mappings
4921 to m_core_unavailable_mappings.
4922 (core_target::xfer_partial): Call...
4923 (core_target::xfer_memory_via_mappings): New method.
4924
4925 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4926
4927 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4928 type to bool.
4929
4930 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4931
4932 * dwarf2/read.c (struct field_info): Fix indentation.
4933
4934 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4937 ordering in comment.
4938 * frame.c (frame_id_eq): Fix indentation.
4939
4940 2020-08-31 Scott Linder <scott@scottlinder.com>
4941 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4944 inline frame ids in outer frame.
4945
4946 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4949 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4950 (outer_frame_id): Use FID_STACK_OUTER instead of
4951 FID_STACK_INVALID.
4952 (frame_id_p): Don't check for outer_frame_id.
4953
4954 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4957 regnum/frame in value. Call allocate_value_lazy.
4958 * frame.c (frame_unwind_register_value): Use
4959 val_print_not_saved.
4960
4961 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4964
4965 2020-08-29 Pedro Alves <pedro@palves.net>
4966
4967 * progspace.c (print_program_space): Use all_inferiors. Switch to
4968 the inferior before calling target_pid_to_str.
4969
4970 2020-08-28 Tom Tromey <tom@tromey.com>
4971
4972 * xcoffread.c (xcoff_end_psymtab): Update comment.
4973 * dbxread.c (dbx_end_psymtab): Update comment.
4974
4975 2020-08-28 Tom de Vries <tdevries@suse.de>
4976
4977 PR breakpoint/26544
4978 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4979 event_location.
4980 (create_breakpoint): Same.
4981 (base_breakpoint_decode_location): Same.
4982 (bkpt_create_sals_from_location): Same.
4983 (bkpt_decode_location): Same.
4984 (bkpt_probe_create_sals_from_location): Same.
4985 (bkpt_probe_decode_location): Same.
4986 (tracepoint_create_sals_from_location): Same.
4987 (tracepoint_decode_location): Same.
4988 (tracepoint_probe_decode_location): Same.
4989 (strace_marker_create_sals_from_location): Same.
4990 (strace_marker_decode_location): Same.
4991 (create_sals_from_location_default): Same.
4992 (decode_location_default): Same.
4993 * breakpoint.h (struct breakpoint_ops): Same.
4994 (create_breakpoint): Same.
4995 * linespec.h (decode_line_full): Same.
4996 * linespec.c (decode_line_full): Same. Throw error if
4997 result.size () == 0.
4998
4999 2020-08-27 Pedro Alves <pedro@palves.net>
5000
5001 PR gdb/26524
5002 * breakpoint.c (until_break_fsm) <location_breakpoint,
5003 caller_breakpoint>: Delete fields.
5004 <breakpoints>: New field.
5005 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5006 two individual breakpoints.
5007 (until_break_fsm::should_stop): Loop over breakpoints in the
5008 breakpoint vector.
5009 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5010 vector.
5011 (until_break_command): Handle location expanding into multiple
5012 sals.
5013
5014 2020-08-27 Pedro Alves <pedro@palves.net>
5015
5016 PR gdb/26523
5017 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5018 bp_until breakpoints user-specified locations. Update intro
5019 comment.
5020
5021 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5022
5023 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5024 gdb_bfd_sections): New.
5025 * maint.c (print_bfd_section_info): Change param type to
5026 maint_print_section_data.
5027 (print_objfile_section_info): Likewise.
5028 (print_bfd_section_info_maybe_relocated): Likewise.
5029 (maintenance_info_sections): Use gdb_bfd_sections.
5030
5031 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5032
5033 * MAINTAINERS: Add ARC target and maintainer.
5034
5035 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5036
5037 * configure.tgt: ARC support for GNU/Linux.
5038 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5039 * arc-linux-tdep.c: New file.
5040 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5041 * arc-tdep.c (arc_write_pc): Use it.
5042
5043 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5044
5045 * arc-tdep.c (arc_check_for_hardware_loop): New.
5046 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5047
5048 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5049
5050 * arc-tdep.h: Include "gdbarch.h".
5051
5052 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5053
5054 * arch/arc.h
5055 (arc_gdbarch_features): New class to stir the selection of target XML.
5056 (arc_create_target_description): Use FEATURES to choose XML target.
5057 (arc_lookup_target_description): Use arc_create_target_description
5058 to create _new_ target descriptions or return the already created
5059 ones if the FEATURES is the same.
5060 * arch/arc.c: Implementation of prototypes described above.
5061 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5062 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5063 * arc-tdep.c (*_feature_name): Make feature names consistent.
5064 (arc_register_feature): A new struct to hold information about
5065 registers of a particular target/feature.
5066 (arc_check_tdesc_feature): Check if XML provides registers in
5067 compliance with ARC_REGISTER_FEATURE structs.
5068 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5069 (determine_*_reg_feature_set): Which feature name to look for.
5070 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5071 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5072 to expected ISA enums to be used in arc_gdbarch_features structs.
5073 * features/Makefile (FEATURE_XMLFILES): Add new files.
5074 * gdb/features/arc/v1-aux.c: New file.
5075 * gdb/features/arc/v1-aux.xml: Likewise.
5076 * gdb/features/arc/v1-core.c: Likewise.
5077 * gdb/features/arc/v1-core.xml: Likewise.
5078 * gdb/features/arc/v2-aux.c: Likewise.
5079 * gdb/features/arc/v2-aux.xml: Likewise.
5080 * gdb/features/arc/v2-core.c: Likewise.
5081 * gdb/features/arc/v2-core.xml: Likewise.
5082 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5083
5084 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5085 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 PR m2/26372
5088 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5089 an assert. Remove single element array indexing pattern as the
5090 MULTI_SUBSCRIPT support will handle this case too.
5091
5092 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * value.h (valprint_check_validity): Move declaration from
5095 here...
5096 * valprint.h (valprint_check_validity): ... to here.
5097
5098 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * debug.h: New file.
5101 * debug.c (debug_prefixed_vprintf): New function.
5102 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5103 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5104
5105 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * infrun.h (infrun_debug_printf_1): New function declaration.
5108 (infrun_debug_printf): New macro.
5109 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5110 throughout.
5111 (infrun_debug_printf): New function.
5112 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5113 (handle_jit_event): Likewise.
5114
5115 2020-08-21 Mark Wielaard <mark@klomp.org>
5116
5117 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5118
5119 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5120
5121 * frame.c (enum class frame_id_status): New.
5122 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5123 (fprintf_frame): Update.
5124 (compute_frame_id): Set frame id status to "computing" on entry.
5125 Set it back to "not_computed" on failure and to "computed" on
5126 success.
5127 (get_frame_id): Assert the frame id is not being computed.
5128 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5129 (create_new_frame): Likewise.
5130 (frame_cleanup_after_sniffer): Update assert.
5131
5132 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * regcache.c (pid_ptid_regcache_map): New type.
5135 (target_ptid_regcache_map): Remove.
5136 (target_pid_ptid_regcache_map): New type.
5137 (regcaches): Change type to target_pid_ptid_regcache_map.
5138 (get_thread_arch_aspace_regcache): Update.
5139 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5140 case.
5141 (regcaches_size): Update.
5142 (regcache_count): Update.
5143 (registers_changed_ptid_target_pid_test): New.
5144 (_initialize_regcache): Register new test.
5145
5146 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5147
5148 * regcache.c (regcache_count): New.
5149 (struct regcache_test_data): New.
5150 (regcache_test_data_up): New.
5151 (populate_regcaches_for_test): New.
5152 (regcaches_test): Remove.
5153 (get_thread_arch_aspace_regcache_test): New.
5154 (registers_changed_ptid_all_test): New.
5155 (registers_changed_ptid_target_test): New.
5156 (registers_changed_ptid_target_ptid_test): New.
5157 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5158 (_initialize_regcache): Register new tests.
5159
5160 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5163 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5164 gdbarch and aspace parameter. Use current inferior's aspace.
5165 Validate regcache's arch value.
5166 (regcaches_test): Update.
5167
5168 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * regcache.c (regcaches_test): Call registers_changed.
5171
5172 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5173
5174 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5175
5176 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5177
5178 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5179 to find the end of prologue for flang compiled binaries.
5180 * arm-tdep.c (arm_skip_prologue): Likewise.
5181 * i386-tdep.c (i386_skip_prologue): Likewise.
5182 * producer.c (producer_is_llvm): New function.
5183 (producer_parsing_tests): Added new tests for clang/flang.
5184 * producer.h (producer_is_llvm): New declaration.
5185
5186 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * linux-nat.c (linux_nat_debug_printf): New function.
5189 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5190
5191 2020-08-18 Aaron Merey <amerey@redhat.com>
5192
5193 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5194 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5195 (CLIBS): Add DEBUGINFOD_LIBS.
5196
5197 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5198
5199 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5200 'gdbarch_num_regs'.
5201
5202 2020-08-17 Tom Tromey <tromey@adacore.com>
5203
5204 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5205 ada_get_decoded_value returns NULL.
5206
5207 2020-08-17 Tom Tromey <tromey@adacore.com>
5208
5209 * python/py-inferior.c (infpy_search_memory): Use
5210 gdb_py_object_from_ulongest.
5211 * python/py-infevents.c (create_inferior_call_event_object)
5212 (create_memory_changed_event_object): Use
5213 gdb_py_object_from_ulongest.
5214 * python/py-linetable.c (ltpy_entry_get_pc): Use
5215 gdb_py_object_from_ulongest.
5216
5217 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5218
5219 * loc.c (class symbol_needs_eval_context): Fix indentation.
5220
5221 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5222
5223 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5224 bool.
5225
5226 2020-08-17 Tom de Vries <tdevries@suse.de>
5227
5228 PR gdb/26393
5229 * gdbtypes.c (dump_dynamic_prop): New function.
5230 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5231
5232 2020-08-15 Tom de Vries <tdevries@suse.de>
5233
5234 PR backtrace/26390
5235 * stack.c (print_frame_args): Temporarily set the selected
5236 frame to FRAME while printing the frame's arguments.
5237
5238 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5239
5240 PR breakpoints/26385
5241 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5242 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5243
5244 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5245
5246 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5247 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5248 and >= to check return value instead of == -1 and != -1.
5249
5250 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * utils.h (class gdb_argv) <as_array_view>: New method.
5253 * utils.c (gdb_argv_as_array_view_test): New.
5254 (_initialize_utils): Register selftest.
5255 * maint.c (maintenance_selftest): Use the new method.
5256
5257 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5258
5259 * target.h (supports_dumpcore, dumpcore): New
5260 function declarations.
5261 * target.c (supports_dumpcore, dumpcore): New
5262 functions.
5263 * target-delegates.c: Rebuild.
5264 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5265 and target_dumpcore ().
5266
5267 2020-08-13 Aaron Merey <amerey@redhat.com>
5268
5269 * debuginfod-support.c: Replace global variables with user_data.
5270
5271 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5272
5273 * maint.c (maintenance_selftest): Split args and pass array_view
5274 to run_tests.
5275
5276 2020-08-12 Luis Machado <luis.machado@linaro.org>
5277
5278 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5279 type's length.
5280 Use %s and pulongest to print the length.
5281
5282 2020-08-12 Pedro Alves <palves@redhat.com>
5283
5284 * NEWS: Move "Multi-target debugging support" item to the
5285 "Changes since GDB 9" section.
5286
5287 2020-08-12 Pedro Alves <palves@redhat.com>
5288
5289 PR gdb/26336
5290 * progspace.c (program_space::remove_objfile): Invalidate the
5291 frame cache.
5292
5293 2020-08-11 Tom de Vries <tdevries@suse.de>
5294
5295 * MAINTAINERS: Mark ms1 as deleted.
5296
5297 2020-08-10 Luis Machado <luis.machado@linaro.org>
5298
5299 PR gdb/26310
5300
5301 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5302 act accordingly.
5303 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5304 movz/str/stur/stp skipping behavior.
5305
5306 2020-08-10 Luis Machado <luis.machado@linaro.org>
5307
5308 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5309 struct user_sve_header instead of struct sve_context.
5310
5311 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * read.h (dwarf2_fetch_die_loc_sect_off,
5314 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5315 `void *` parameter with function_view.
5316 * read.c (dwarf2_fetch_die_loc_sect_off,
5317 dwarf2_fetch_die_loc_cu_off): Likewise.
5318 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5319 (per_cu_dwarf_call): Adjust.
5320 (get_frame_address_in_block_wrapper): Remove.
5321 (indirect_synthetic_pointer): Adjust.
5322 (get_ax_pc): Remove.
5323 (dwarf2_compile_expr_to_ax): Adjust.
5324
5325 2020-08-08 Tom de Vries <tdevries@suse.de>
5326
5327 PR build/26344
5328 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5329 constructor.
5330 * regcache.c (get_thread_arch_aspace_regcache): Same.
5331
5332 2020-08-07 Tom Tromey <tromey@adacore.com>
5333
5334 * ravenscar-thread.c
5335 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5336 New method.
5337 (ravenscar_thread_target::wait): Check
5338 runtime_initialized.
5339 (ravenscar_thread_target::prepare_to_store)
5340 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5341 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5342 (ravenscar_thread_target::stopped_by_watchpoint)
5343 (ravenscar_thread_target::stopped_data_address)
5344 (ravenscar_thread_target::core_of_thread): Use
5345 scoped_restore_current_thread and
5346 set_base_thread_from_ravenscar_task.
5347
5348 2020-08-07 Tom Tromey <tromey@adacore.com>
5349
5350 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5351
5352 2020-08-07 Tom Tromey <tromey@adacore.com>
5353
5354 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5355 update_inferior_ptid before update_thread_list.
5356 (temporarily_change_regcache_ptid): New class.
5357 (ravenscar_thread_target::fetch_registers)
5358 (ravenscar_thread_target::store_registers)
5359 (ravenscar_thread_target::prepare_to_store): Use base thread when
5360 forwarding operation.
5361
5362 2020-08-07 Tom Tromey <tromey@adacore.com>
5363
5364 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5365 "is_pid" case.
5366
5367 2020-08-07 Tom Tromey <tromey@adacore.com>
5368
5369 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5370 New methods.
5371 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5372 first.
5373 (ravenscar_thread_target::add_thread): Rename from
5374 ravenscar_add_thread.
5375 (ravenscar_thread_target::update_thread_list): Use a lambda.
5376 (ravenscar_thread_target::xfer_partial): New method.
5377
5378 2020-08-07 Tom Tromey <tromey@adacore.com>
5379
5380 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5381 gdb::function_view.
5382 (iterate_over_live_ada_tasks): Change type of argument.
5383 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5384 of argument.
5385
5386 2020-08-07 Tom Tromey <tromey@adacore.com>
5387
5388 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5389 Remove.
5390 (ravenscar_thread_target::extra_thread_info): Remove.
5391 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5392 defer to target beneath for non-Ravenscar threads.
5393
5394 2020-08-07 Tom Tromey <tromey@adacore.com>
5395
5396 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5397 get_base_thread_from_ravenscar_task>: Now methods.
5398 <m_cpu_map>: New member.
5399 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5400 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5401 (ravenscar_thread_target::task_is_currently_active): Update.
5402 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5403 Now a method.
5404 (ravenscar_thread_target::add_active_thread): Put initial thread
5405 into the m_cpu_map.
5406
5407 2020-08-07 Tom Tromey <tromey@adacore.com>
5408
5409 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5410 event_ptid.
5411
5412 2020-08-07 Tom Tromey <tromey@adacore.com>
5413
5414 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5415 runtime_initialized.
5416
5417 2020-08-07 Tom Tromey <tromey@adacore.com>
5418
5419 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5420 add_active_thread.
5421 (ravenscar_thread_target::add_active_thread): Now public.
5422 (ravenscar_inferior_created): Call add_active_thread after pushing
5423 the target.
5424
5425 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5426
5427 * regcache.c (ptid_regcache_map): New type.
5428 (target_ptid_regcache_map): New type.
5429 (regcaches): Change type to target_ptid_regcache_map.
5430 (get_thread_arch_aspace_regcache): Update to regcaches' new
5431 type.
5432 (regcache_thread_ptid_changed): Likewise.
5433 (registers_changed_ptid): Likewise.
5434 (regcaches_size): Likewise.
5435 (regcaches_test): Update.
5436 (regcache_thread_ptid_changed): Update.
5437 * regcache.h (regcache_up): New type.
5438 * gdbsupport/ptid.h (hash_ptid): New struct.
5439
5440 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * observable.h (thread_ptid_changed): Add parameter
5443 `process_stratum_target *`.
5444 * infrun.c (infrun_thread_ptid_changed): Add parameter
5445 `process_stratum_target *` and use it.
5446 (selftests): New namespace.
5447 (infrun_thread_ptid_changed): New function.
5448 (_initialize_infrun): Register selftest.
5449 * regcache.c (regcache_thread_ptid_changed): Add parameter
5450 `process_stratum_target *` and use it.
5451 (regcache_thread_ptid_changed): New function.
5452 (_initialize_regcache): Register selftest.
5453 * thread.c (thread_change_ptid): Pass target to
5454 thread_ptid_changed observable.
5455
5456 2020-08-06 Caroline Tice <cmtice@google.com>
5457
5458 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5459 (struct dwp_sections): Update field comments. Add loclists and
5460 rnglists fields.
5461 (struct virtual_v2_dwo_sections): Rename struct to
5462 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5463 size & offset fields for loclists and rnglists.
5464 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5465 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5466 skipping dummy type units.
5467 (create_dwp_hash_table): Update the large comment above the function to
5468 discuss Version 5 DWP files as well, with references. Update all the
5469 version checks in the function to check for version 5 as well. Add new
5470 section at the end to create dwp hash table for version 5.
5471 (create_dwp_v2_section): Rename function to
5472 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5473 Add V5 to error message text.
5474 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5475 into calls to create_dwp_v2_or_v5_section.
5476 (create_dwo_unit_in_dwp_v5): New function.
5477 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5478 check for version2; add else clause to handle version 5.
5479 (open_and_init_dwo_file): Add code to check dwarf version & only call
5480 create_debug_types_hash_table (with sections.types) if version is not 5;
5481 else call create_debug_type_hash_table, with sections.info.
5482 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5483 version 5.
5484 (dwarf2_locate_v5_dwp_sections): New function.
5485 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5486 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5487
5488 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5489
5490 * regcache.h (class regcache): Remove friend
5491 registers_changed_ptid.
5492 <regcache_thread_ptid_changed>: Remove.
5493 <regcaches>: Remove.
5494 * regcache.c (regcache::regcaches): Rename to...
5495 (regcaches): ... this. Make static.
5496 (get_thread_arch_aspace_regcache): Update.
5497 (regcache::regcache_thread_ptid_changed): Rename to...
5498 (regcache_thread_ptid_changed): ... this. Update.
5499 (class regcache_access): Remove.
5500 (regcaches_test): Update.
5501 (_initialize_regcache): Update.
5502 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5503 <forward_list>.
5504
5505 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * regcache.h (class regcache) <current_regcache>: Rename to...
5508 <regcaches>: ... this. Move doc here.
5509 * regcache.c (regcache::current_regcache) Rename to...
5510 (regcache::regcaches): ... this. Move doc to header.
5511 (get_thread_arch_aspace_regcache): Update.
5512 (regcache::regcache_thread_ptid_changed): Update.
5513 (registers_changed_ptid): Update.
5514 (class regcache_access) <current_regcache_size>: Rename to...
5515 <regcaches_size>: ... this.
5516 (current_regcache_test): Rename to...
5517 (regcaches_test): ... this.
5518 (_initialize_regcache): Update.
5519
5520 2020-08-06 Victor Collod <vcollod@nvidia.com>
5521
5522 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5523
5524 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5525
5526 * corelow.c (core_target::build_file_mappings): Don't output
5527 null pathname in warning.
5528
5529 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5530
5531 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5532 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5533 gdb.dwarf2/dw2-single-line-discriminators.exp,
5534 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5535
5536 2020-08-05 Tom Tromey <tromey@adacore.com>
5537
5538 PR rust/26197:
5539 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5540 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5541 Fix off-by-one and type size errors in ordinary case.
5542
5543 2020-08-05 Tom de Vries <tdevries@suse.de>
5544
5545 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5546 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5547
5548 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * frame.h (frame_id_p): Return bool.
5551 (frame_id_artificial_p): Return bool.
5552 (frame_id_eq): Return bool.
5553 (has_stack_frames): Return bool.
5554 (get_selected_frame): Fix typo in comment.
5555 (get_frame_pc_if_available): Return bool.
5556 (get_frame_address_in_block_if_available): Return bool.
5557 (get_frame_func_if_available): Return bool.
5558 (read_frame_register_unsigned): Return bool.
5559 (get_frame_register_bytes): Return bool.
5560 (safe_frame_unwind_memory): Return bool.
5561 (deprecated_frame_register_read): Return bool.
5562 (frame_unwinder_is): Return bool.
5563 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5564 bool.
5565 <this_id::p>: Likewise.
5566 <prev_p>: Likewise.
5567 (frame_stash_add): Return bool.
5568 (get_frame_id): Use bool.
5569 (frame_id_build_special) Use bool.
5570 (frame_id_build_unavailable_stack): Use bool.
5571 (frame_id_build): Use bool.
5572 (frame_id_p): Return bool, use true/false instead of 1/0.
5573 (frame_id_artificial_p): Likewise.
5574 (frame_id_eq): Likewise.
5575 (frame_id_inner): Likewise.
5576 (get_frame_func_if_available): Likewise.
5577 (read_frame_register_unsigned): Likewise.
5578 (deprecated_frame_register_read): Likewise.
5579 (get_frame_register_bytes): Likewise.
5580 (has_stack_frames): Likewise.
5581 (inside_main_func): Likewise.
5582 (inside_entry_func): Likewise.
5583 (get_frame_pc_if_available): Likewise.
5584 (get_frame_address_in_block_if_available): Likewise.
5585 (frame_unwinder_is): Likewise.
5586 (safe_frame_unwind_memory): Likewise.
5587 (frame_unwind_arch): Likewise.
5588
5589 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5592 type to cached_copy_status.
5593 (fprintf_frame): Adjust.
5594 (get_frame_func_if_available): Adjust.
5595 (frame_cleanup_after_sniffer): Adjust.
5596
5597 2020-08-04 Mark Wielaard <mark@klomp.org>
5598
5599 * MAINTAINERS (Write After Approval): Update email address.
5600
5601 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5604 dynamic_prop::const_val.
5605
5606 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5609 dynamic_prop::kind.
5610
5611 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5614
5615 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5616
5617 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5618
5619 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5620 Jose E. Marchesi <jose.marchesi@oracle.com>
5621
5622 * configure.tgt: Add entry for bpf-*-*.
5623 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5624 (ALLDEPFILES): Add bpf-tdep.c.
5625 * bpf-tdep.c: New file.
5626 * MAINTAINERS: Add bpf target and maintainer.
5627 * NEWS: Mention the support for the new target.
5628
5629 2020-08-04 Tom de Vries <tdevries@suse.de>
5630
5631 PR symtab/23270
5632 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5633 Error.
5634
5635 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5636
5637 * syscalls/freebsd.xml: Regenerate.
5638
5639 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5640
5641 * syscalls/update-freebsd.sh: Fix usage and year range.
5642
5643 2020-08-03 Tom de Vries <tdevries@suse.de>
5644
5645 PR symtab/26333
5646 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5647 DW_LNE_lo_user/DW_LNE_hi_user range.
5648
5649 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 PR ada/26318
5652 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5653 kind.
5654
5655 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5656
5657 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5658
5659 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5660
5661 * breakpoint.c (set_breakpoint_condition): Update the condition
5662 expressions after checking that the input condition string parses
5663 successfully and does not contain junk at the end.
5664
5665 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5666
5667 * breakpoint.c (set_breakpoint_condition): Update the
5668 condition string after parsing the new condition successfully.
5669
5670 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5671
5672 * proc-api.c (_STRUCTURED_PROC): Don't define.
5673 * proc-events.c: Likewise.
5674 * proc-flags.c: Likewise.
5675 * proc-why.c: Likewise.
5676 * procfs.c: Likewise.
5677
5678 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5679 * configure, config.in: Regenerate.
5680
5681 2020-07-30 Tom de Vries <tdevries@suse.de>
5682
5683 PR build/26320
5684 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5685 m_red/m_green/m_blue in a union.
5686
5687 2020-07-29 Tom de Vries <tdevries@suse.de>
5688
5689 PR tdep/26280
5690 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5691
5692 2020-07-28 Tom Tromey <tromey@adacore.com>
5693
5694 PR symtab/26270:
5695 * symtab.h (find_pc_partial_function_sym): Declare.
5696 * cli/cli-cmds.c (disassemble_command): Use
5697 find_pc_partial_function_sym. Check asm_demangle.
5698 * blockframe.c (cache_pc_function_sym): New global.
5699 (cache_pc_function_name): Remove.
5700 (clear_pc_function_cache): Update.
5701 (find_pc_partial_function_sym): New function, from
5702 find_pc_partial_function.
5703 (find_pc_partial_function): Rewrite using
5704 find_pc_partial_function_sym.
5705
5706 2020-07-28 Tom Tromey <tromey@adacore.com>
5707
5708 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5709 help. Add usage.
5710
5711 2020-07-28 Tom Tromey <tromey@adacore.com>
5712
5713 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5714 <DW_OP_GNU_variable_value>: Cast to address type.
5715
5716 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5717
5718 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5719 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5720 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5721 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5722 (nbsd_get_siginfo_type): New.
5723 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5724 (_initialize_nbsd_tdep): New.
5725
5726 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5727
5728 PR binutils/26301
5729 * configure: Regenerated.
5730
5731 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5732
5733 PR binutils/26301
5734 * configure: Regenerated.
5735
5736 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * python/py-frame.c: Remove 'user-regs.h' include.
5739 (frapy_read_register): Rewrite to make use of
5740 gdbpy_parse_register_id.
5741 * python/py-registers.c (gdbpy_parse_register_id): New function,
5742 moved here from python/py-unwind.c. Updated the return type, and
5743 also accepts register descriptor objects.
5744 * python/py-unwind.c: Remove 'user-regs.h' include.
5745 (pyuw_parse_register_id): Moved to python/py-registers.c.
5746 (unwind_infopy_add_saved_register): Update to use
5747 gdbpy_parse_register_id.
5748 (pending_framepy_read_register): Likewise.
5749 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5750
5751 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * python/py-registers.c: Add 'user-regs.h' include.
5754 (register_descriptor_iter_find): New function.
5755 (register_descriptor_iterator_object_methods): New static global
5756 methods array.
5757 (register_descriptor_iterator_object_type): Add pointer to methods
5758 array.
5759
5760 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5761
5762 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5763 for all architectures on FreeBSD 11.3 and later.
5764
5765 2020-07-27 Tom Tromey <tromey@adacore.com>
5766
5767 * gcore.h (load_corefile): Don't declare.
5768
5769 2020-07-27 Tom de Vries <tdevries@suse.de>
5770
5771 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5772 * config.in: Regenerate.
5773 * configure: Regenerate.
5774
5775 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5776
5777 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5778 ws2tcpip.h. When checking whether socklen_t type is defined, use
5779 ws2tcpip.h if it is available and sys/socket.h isn't.
5780 * configure: Regenerate.
5781 * config.in: Regenerate.
5782
5783 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 PR fortran/23051
5786 PR fortran/26139
5787 * valops.c (value_ind): Pass address to
5788 readjust_indirect_value_type.
5789 * value.c (readjust_indirect_value_type): Make parameter
5790 non-const, and add extra address parameter. Resolve original type
5791 before using it.
5792 * value.h (readjust_indirect_value_type): Update function
5793 signature and comment.
5794
5795 2020-07-25 Tom de Vries <tdevries@suse.de>
5796
5797 PR symtab/26243
5798 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5799 entries.
5800
5801 2020-07-24 Aaron Merey <amerey@redhat.com>
5802
5803 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5804 * configure: Rebuild.
5805
5806 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5807
5808 PR corefiles/26294
5809 * corelow.c (_initialize_corelow): Add period to help text
5810 for "maintenance print core-file-backed-mappings".
5811
5812 2020-07-23 Pedro Alves <pedro@palves.net>
5813
5814 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5815 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5816 meanwhile.
5817 * frame.c (frame_cache_generation, get_frame_cache_generation):
5818 New.
5819 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5820 (get_prev_frame_if_no_cycle): On exception, don't touch
5821 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5822 * frame.h (get_frame_cache_generation): Declare.
5823
5824 2020-07-23 Tom de Vries <tdevries@suse.de>
5825
5826 PR tui/26282
5827 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5828 New default constructor.
5829
5830 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5831
5832 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5833 exclude non-statement entries.
5834
5835 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5836
5837 * NEWS (New commands): Mention new command
5838 "maintenance print core-file-backed-mappings".
5839
5840 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5841
5842 * corelow.c (gdbcmd.h): Include.
5843 (core_target::info_proc_mappings): New method.
5844 (get_current_core_target): New function.
5845 (maintenance_print_core_file_backed_mappings): New function.
5846 (_initialize_corelow): Add core-file-backed-mappings to
5847 "maint print" commands.
5848
5849 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5850
5851 * linux-tdep.c (dump_note_entry_p): New function.
5852 (linux_dump_mapping_p_ftype): New typedef.
5853 (linux_find_memory_regions_full): Add new parameter,
5854 should_dump_mapping_p.
5855 (linux_find_memory_regions): Adjust call to
5856 linux_find_memory_regions_full.
5857 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5858 call to linux_find_memory_regions_full.
5859
5860 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5861
5862 * corelow.c (solist.h, unordered_map): Include.
5863 (class core_target): Add field m_core_file_mappings and
5864 method build_file_mappings.
5865 (core_target::core_target): Call build_file_mappings.
5866 (core_target::~core_target): Free memory associated with
5867 m_core_file_mappings.
5868 (core_target::build_file_mappings): New method.
5869 (core_target::xfer_partial): Use m_core_file_mappings
5870 for memory transfers.
5871 * linux-tdep.c (linux_read_core_file_mappings): New
5872 function.
5873 (linux_core_info_proc_mappings): Rewrite to use
5874 linux_read_core_file_mappings.
5875 (linux_init_abi): Register linux_read_core_file_mappings.
5876
5877 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5878
5879 * arch-utils.c (default_read_core_file_mappings): New function.
5880 * arch-utils.c (default_read_core_file_mappings): Declare.
5881 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5882 * gdbarch.h, gdbarch.c: Regenerate.
5883
5884 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5885
5886 PR corefiles/25631
5887 * corelow.c (core_target:xfer_partial): Revise
5888 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5889 case after first checking the stratum beneath the core
5890 target.
5891 (has_all_memory): Return true.
5892 * target.c (raw_memory_xfer_partial): Revise comment
5893 regarding use of has_all_memory.
5894
5895 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5896
5897 * exec.h (section_table_xfer_memory): Revise declaration,
5898 replacing section name parameter with an optional callback
5899 predicate.
5900 * exec.c (section_table_xfer_memory): Likewise.
5901 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5902 of section_table_xfer_memory.
5903
5904 2020-07-22 Tom Tromey <tromey@adacore.com>
5905
5906 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5907 lookup_symbol_search_name.
5908
5909 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5912 redundant local variable.
5913 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5914 reference, not pointer, update code accordingly.
5915
5916 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5917 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5918
5919 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5920 * jit.c (jit_breakpoint_re_set_internal): Use the
5921 `skip_jit_symbol_lookup` field.
5922
5923 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5924 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5925
5926 * jit.c (jit_read_descriptor): Define the descriptor address once,
5927 use twice.
5928 (jit_breakpoint_deleted): Move the declaration of the loop variable
5929 `iter` into the loop header.
5930 (jit_breakpoint_re_set_internal): Move the declaration of the local
5931 variable `objf_data` to the first point of definition.
5932 (jit_event_handler): Move the declaration of local variables
5933 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5934 Rename `objf` to `jited`.
5935
5936 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5939 Remove.
5940 * jit.c (get_jiter_objfile_data): Update.
5941
5942 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5943 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * jit.c (struct jit_program_space_data): Remove.
5946 (jit_program_space_key): Remove.
5947 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5948 stuff.
5949 (get_jit_program_space_data): Remove.
5950 (jit_breakpoint_deleted): Iterate on all of the program space's
5951 objfiles.
5952 (jit_inferior_init): Likewise.
5953 (jit_breakpoint_re_set_internal): Likewise. Also change return
5954 type to void.
5955 (jit_breakpoint_re_set): Pass current_program_space to
5956 jit_breakpoint_re_set_internal.
5957
5958 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * jit.h (struct jiter_objfile_data) <cached_code_address,
5961 jit_breakpoint>: Move to here from ...
5962 * jit.c (jit_program_space_data): ... here.
5963 (jiter_objfile_data::~jiter_objfile_data): Update.
5964 (jit_breakpoint_deleted): Update.
5965 (jit_breakpoint_re_set_internal): Update.
5966
5967 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5970 checks.
5971 (jit_read_descriptor): Remove NULL check.
5972 (jit_event_handler): Add an assertion.
5973
5974 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5975
5976 * jit.h (struct jit_objfile_data): Split into...
5977 (struct jiter_objfile_data): ... this ...
5978 (struct jited_objfile_data): ... and this.
5979 * objfiles.h (struct objfile) <jit_data>: Remove.
5980 <jiter_data, jited_data>: New fields.
5981 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5982 (jiter_objfile_data::~jiter_objfile_data): ... this.
5983 (get_jit_objfile_data): Rename to ...
5984 (get_jiter_objfile_data): ... this.
5985 (add_objfile_entry): Update.
5986 (jit_read_descriptor): Use get_jiter_objfile_data.
5987 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5988 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5989 (jit_inferior_exit_hook): Use objfile's jited_data field.
5990
5991 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * jit.h: Forward-declare `struct minimal_symbol`.
5994 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5995 constructor, destructor, and an objfile* field.
5996 * jit.c (jit_objfile_data): Remove.
5997 (struct jit_objfile_data): Migrate from here to jit.h.
5998 (jit_objfile_data::~jit_objfile_data): New destructor
5999 implementation with code moved from free_objfile_data.
6000 (free_objfile_data): Delete.
6001 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6002 (jit_find_objf_with_entry_addr): Ditto.
6003 (jit_inferior_exit_hook): Ditto.
6004 (_initialize_jit): Remove the call to
6005 register_objfile_data_with_cleanup.
6006 * objfiles.h (struct objfile) <jit_data>: New field.
6007
6008 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6009
6010 * jit.h: Forward-declare `struct objfile`.
6011 (jit_event_handler): Add a second parameter, the JITer objfile.
6012 * jit.c (jit_read_descriptor): Change the signature to take the
6013 JITer objfile as an argument instead of the jit_program_space_data.
6014 (jit_inferior_init): Update the call to jit_read_descriptor.
6015 (jit_event_handler): Use the new JITer objfile argument when calling
6016 jit_read_descriptor.
6017 * breakpoint.c (handle_jit_event): Update the call to
6018 jit_event_handler to pass the JITer objfile.
6019
6020 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6021
6022 * gdbarch.c: Regenerate.
6023 * gdbarch.h: Regenerate.
6024 * gdbarch.sh (handle_segmentation_fault): Remove method.
6025 * infrun.c (handle_segmentation_fault): Remove.
6026 (print_signal_received_reason): Remove call to
6027 handle_segmentation_fault.
6028
6029 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6030
6031 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6032 Rename to sparc64_linux_report_signal_info and add siggnal
6033 argument.
6034 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6035 instead of sparc64_linux_handle_segmentation_fault.
6036
6037 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6038
6039 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6040 i386_linux_report_signal_info instead of
6041 i386_linux_handle_segmentation_fault.
6042 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6043 to i386_linux_report_signal_info and add siggnal argument.
6044 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6045 of i386_linux_handle_segmentation_fault.
6046 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6047 to i386_linux_report_signal_info and add siggnal argument.
6048
6049 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6050
6051 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6052 hook if present.
6053
6054 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6055
6056 * gdbarch.c: Regenerate.
6057 * gdbarch.h: Regenerate.
6058 * gdbarch.sh (report_signal_info): New method.
6059 * infrun.c (print_signal_received_reason): Invoke gdbarch
6060 report_signal_info hook if present.
6061
6062 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * python/py-registers.c : Add 'unordered_map' include.
6065 (gdbpy_new_reggroup): Renamed to...
6066 (gdbpy_get_reggroup): ...this. Update to only create register
6067 group descriptors when needed.
6068 (gdbpy_reggroup_iter_next): Update.
6069
6070 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6071
6072 * python/py-registers.c (gdbpy_register_object_data): New static
6073 global.
6074 (gdbpy_register_object_data_init): New function.
6075 (gdbpy_new_register_descriptor): Renamed to...
6076 (gdbpy_get_register_descriptor): ...this, and update to reuse
6077 existing register descriptors where possible.
6078 (gdbpy_register_descriptor_iter_next): Update.
6079 (gdbpy_initialize_registers): Register new gdbarch data.
6080
6081 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * linux-nat.c (stopped_pids): Make static.
6084
6085 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 PR ada/26235
6088 * gdbtypes.c (ada_discrete_type_low_bound,
6089 ada_discrete_type_high_bound): Handle undefined bounds.
6090
6091 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6092
6093 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6094 declaration.
6095 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6096 function.
6097
6098 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6099
6100 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6101 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6102 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6103 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6104 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6105 method.
6106
6107 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6108
6109 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6110 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6111 which are deprecated in Guile 3.0.
6112 * configure.ac (try_guile_versions): Add "guile-3.0".
6113 * configure (try_guile_versions): Regenerate.
6114 * NEWS: Update entry.
6115
6116 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6117 Doug Evans <dje@google.com>
6118
6119 PR gdb/21104
6120 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6121 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6122 USING_GUILE_BEFORE_2_2.
6123 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6124 Change type to 'scm_t_port_type *'.
6125 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6126 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6127 parameter and honor it. Update callers.
6128 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6129 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6130 functions.
6131 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6132 USING_GUILE_BEFORE_2_2.
6133 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6134 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6135 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6136 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6137 and 'SCM_PORT_TYPE'.
6138 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6139 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6140 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6141 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6142 [!USING_GUILE_BEFORE_2_2]: New functions.
6143 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6144 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6145 'gdbscm_memory_port_read'.
6146 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6147 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6148 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6149 function.
6150 (ioscm_init_memory_port): Remove.
6151 (ioscm_init_memory_port_stream): New function
6152 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6153 function.
6154 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6155 Return scm_from_uint (0).
6156 (gdbscm_set_memory_port_read_buffer_size_x)
6157 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6158 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6159 Return scm_from_uint (0).
6160 (gdbscm_set_memory_port_write_buffer_size_x)
6161 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6162 * configure.ac (try_guile_versions): Add "guile-2.2".
6163 * configure: Regenerate.
6164 * NEWS: Add entry.
6165
6166 2020-07-18 Tom Tromey <tom@tromey.com>
6167
6168 * linux-nat.c (linux_multi_process): Remove.
6169 (linux_nat_target::supports_multi_process): Return true.
6170
6171 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6172
6173 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6174 (riscv_lookup_target_description): Return pointer out of
6175 unique_ptr.
6176 * target-descriptions.c (allocate_target_description): Add
6177 comment.
6178 (target_desc_deleter::operator()): Likewise.
6179 * target-descriptions.h (struct target_desc_deleter): Moved to
6180 gdbsupport/tdesc.h.
6181 (target_desc_up): Likewise.
6182
6183 2020-07-17 Tom Tromey <tromey@adacore.com>
6184
6185 * linux-nat.c (linux_nat_target::supports_non_stop)
6186 (linux_nat_target::always_non_stop_p): Use "true".
6187 (linux_nat_target::supports_disable_randomization): Use "true" and
6188 "false".
6189
6190 2020-07-16 Caroline Tice <cmtice@google.com>
6191
6192 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6193 (RNGLIST_HEADER_SIZE64): New constant definition.
6194 (struct dwop_section_names): Add rnglists_dwo.
6195 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6196 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6197 (struct dwo_sections): Add rnglists field.
6198 (read_attribut_reprocess): Add tag parameter.
6199 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6200 (cu_debug_rnglists_section): New function (decl & definition).
6201 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6202 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6203 die whose range is being checked; get rnglist section from
6204 cu_debug_rnglists_section, to get from either objfile or dwo file as
6205 appropriate. Add cases for DW_RLE_base_addressx,
6206 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6207 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6208 test inside if-condition and updating complaint message.
6209 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6210 dwarf2_rnglists_process.
6211 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6212 dwarf2_ranges_process.
6213 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6214 need_ranges_base and update comment appropriately. Also pass die tag
6215 to dwarf2_ranges_read.
6216 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6217 need_ranges_base and update comment appropriately. Also pass die tag
6218 to dwarf2_ranges_process.
6219 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6220 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6221 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6222 need_ranges_base and update comment appropriately. Also pass die tag
6223 to read_attribute_reprocess and dwarf2_ranges_read.
6224 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6225 and update function comment appropriately.
6226 (read_loclist_index): Call read_loclists_rnglists_header instead of
6227 read_loclist_header.
6228 (read_rnglist_index): New function.
6229 (read_attribute_reprocess): Add tag parameter. Add code for
6230 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6231 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6232
6233 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6234
6235 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6236 being resolved.
6237
6238 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * arch-utils.c (show_architecture): Update formatting of messages.
6241
6242 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * gdbtypes.h (struct type) <bounds>: Handle array and string
6245 types.
6246 * ada-lang.c (assign_aggregate): Use type::bounds on
6247 array/string type.
6248 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6249 * c-varobj.c (c_number_of_children): Likewise.
6250 (c_describe_child): Likewise.
6251 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6252 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6253 (f_type_print_base): Likewise.
6254 * f-valprint.c (f77_array_offset_tbl): Likewise.
6255 (f77_get_upperbound): Likewise.
6256 (f77_print_array_1): Likewise.
6257 * guile/scm-type.c (gdbscm_type_range): Likewise.
6258 * m2-typeprint.c (m2_array): Likewise.
6259 (m2_is_long_set_of_type): Likewise.
6260 * m2-valprint.c (get_long_set_bounds): Likewise.
6261 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6262 * python/py-type.c (typy_range): Likewise.
6263 * rust-lang.c (rust_internal_print_type): Likewise.
6264 * type-stack.c (type_stack::follow_types): Likewise.
6265 * valarith.c (value_subscripted_rvalue): Likewise.
6266 * valops.c (value_cast): Likewise.
6267
6268 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6269
6270 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6271 callers to use the equivalent accessor methods.
6272
6273 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6276 (struct type) <bit_stride>: New method.
6277 (TYPE_BIT_STRIDE): Remove.
6278 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6279
6280 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6283 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6284 callers to use the equivalent accessor methods instead.
6285
6286 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6289 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6290 callers to use the equivalent accessor methods instead.
6291
6292 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6293
6294 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6295 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6296 to use dynamic_prop::kind.
6297
6298 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6301 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6302 to get the bound property's kind and check against
6303 PROP_UNDEFINED.
6304
6305 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6308 all callers to use type::range_bounds followed by
6309 dynamic_prop::{low,high}.
6310
6311 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6314 const_val, set_const_val, baton, set_locexpr, set_loclist,
6315 set_addr_offset, variant_parts, set_variant_parts,
6316 original_type, set_original_type>: New methods.
6317 <kind>: Rename to...
6318 <m_kind>: ... this. Update all users to use the new methods
6319 instead.
6320 <data>: Rename to...
6321 <m_data>: ... this. Update all users to use the new methods
6322 instead.
6323
6324 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * gdbtypes.c (get_discrete_bounds): Return failure if
6327 the range type's bounds are not both defined and constant
6328 values.
6329 (get_array_bounds): Update comment. Remove undefined bound check.
6330
6331 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6334 the type::bounds method directly.
6335
6336 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6339 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6340 are used to set the range type's bounds to use set_bounds.
6341
6342 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6343
6344 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6345
6346 2020-07-10 Pedro Alves <pedro@palves.net>
6347
6348 * gdbthread.h (inferior_ref): Define.
6349 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6350 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6351 * thread.c
6352 (scoped_restore_current_thread::restore):
6353 Adjust to gdb::ref_ptr.
6354 (scoped_restore_current_thread::~scoped_restore_current_thread):
6355 Remove manual decref handling.
6356 (scoped_restore_current_thread::scoped_restore_current_thread):
6357 Adjust to use
6358 inferior_ref::new_reference/thread_info_ref::new_reference.
6359 Incref the thread before calling get_frame_id instead of after.
6360 Let TARGET_CLOSE_ERROR propagate.
6361
6362 2020-07-10 Pedro Alves <pedro@palves.net>
6363
6364 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6365 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6366 NOT_AVAILABLE_ERROR.
6367 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6368 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6369
6370 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6371 Pedro Alves <pedro@palves.net>
6372
6373 PR gdb/26199
6374 * infrun.c (threads_are_resumed_pending_p): Delete.
6375 (do_target_wait): Remove threads_are_executing and
6376 threads_are_resumed_pending_p checks from the inferior_matches
6377 lambda. Update comments.
6378
6379 2020-07-10 Pedro Alves <pedro@palves.net>
6380
6381 PR gdb/26199
6382 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6383 executing threads.
6384
6385 2020-07-10 Pedro Alves <pedro@palves.net>
6386
6387 PR gdb/26199
6388 * infrun.c (handle_no_resumed): Handle multiple targets.
6389
6390 2020-07-10 Pedro Alves <pedro@palves.net>
6391
6392 PR gdb/26199
6393 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6394 target_is_async_p.
6395
6396 2020-07-10 Pedro Alves <pedro@palves.net>
6397
6398 PR gdb/26199
6399 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6400 threads, not all threads.
6401
6402 2020-07-10 Pedro Alves <pedro@palves.net>
6403
6404 PR gdb/26199
6405 * remote.c (remote_target::open_1): Pass remote target pointer as
6406 data to create_async_event_handler.
6407 (remote_async_inferior_event_handler): Mark async event handler
6408 before returning if the remote target still has either pending
6409 events or unacknowledged notifications.
6410
6411 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6412
6413 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6414 declaration.
6415 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6416 function.
6417
6418 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6419
6420 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6421 inferior_ptid.
6422
6423 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6424
6425 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6426 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6427 AT_FREEBSD_PS_STRINGS.
6428
6429 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6430
6431 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6432 of debugfile path on Windows.
6433
6434 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6435
6436 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6437 argument to 'data'.
6438
6439 2020-07-08 Tom Tromey <tromey@adacore.com>
6440
6441 * ada-lang.c (ada_exception_message_1): Use read_memory.
6442
6443 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6444
6445 PR python/22748
6446 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6447 special handling for inline frames.
6448 * findvar.c (value_of_register_lazy): Skip inline frames when
6449 creating lazy register values.
6450 * frame.c (frame_id_computed_p): Delete definition.
6451 * frame.h (frame_id_computed_p): Delete declaration.
6452
6453 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * NEWS: Mention additions to Python API.
6456 * python/py-arch.c (archpy_register_groups): New function.
6457 (arch_object_methods): Add 'register_groups' method.
6458 * python/py-registers.c (reggroup_iterator_object): New struct.
6459 (reggroup_object): New struct.
6460 (gdbpy_new_reggroup): New function.
6461 (gdbpy_reggroup_to_string): New function.
6462 (gdbpy_reggroup_name): New function.
6463 (gdbpy_reggroup_iter): New function.
6464 (gdbpy_reggroup_iter_next): New function.
6465 (gdbpy_new_reggroup_iterator): New function
6466 (gdbpy_initialize_registers): Register new types.
6467 (reggroup_iterator_object_type): Define new Python type.
6468 (gdbpy_reggroup_getset): New static global.
6469 (reggroup_object_type): Define new Python type.
6470 * python/python-internal.h
6471
6472 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6475 * python/py-arch.c (archpy_registers): New function.
6476 (arch_object_methods): Add 'registers' method.
6477 * python/py-registers.c: New file.
6478 * python/python-internal.h
6479 (gdbpy_new_register_descriptor_iterator): Declare.
6480 (gdbpy_initialize_registers): Declare.
6481 * python/python.c (do_start_initialization): Call
6482 gdbpy_initialize_registers.
6483 * NEWS: Mention additions to the Python API.
6484
6485 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * NEWS: Mention new Python API method.
6488 * python/py-unwind.c (pending_framepy_architecture): New function.
6489 (pending_frame_object_methods): Add architecture method.
6490
6491 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * gdbarch.c: Regenerate.
6494 * gdbarch.h: Regenerate.
6495 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6496 (gdbarch_data): Use internal_error for the case where
6497 deprecated_set_gdbarch_data was originally needed.
6498 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6499 and use passed in obstack.
6500 (libunwind_frame_set_descr): Should no longer get back NULL from
6501 gdbarch_data.
6502 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6503 type.
6504 * user-regs.c (user_regs_init): Update parameters, and use passed
6505 in obstack.
6506 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6507 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6508
6509 2020-07-06 Tom de Vries <tdevries@suse.de>
6510
6511 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6512 End-Of-Sequence in lte_is_less_than.
6513 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6514 "gdb: Don't reorder line table entries too much when sorting".
6515
6516 2020-07-06 Tom de Vries <tdevries@suse.de>
6517
6518 PR tui/26205
6519 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6520
6521 2020-07-05 Tom de Vries <tdevries@suse.de>
6522
6523 PR build/26187
6524 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6525 std::uncaught_exceptions instead of deprecated
6526 std::uncaught_exception.
6527
6528 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * macroexp.h (macro_stringify): Return
6531 gdb::unique_xmalloc_ptr<char>.
6532 * macroexp.c (macro_stringify): Likewise.
6533 * macrotab.c (fixup_definition): Update.
6534
6535 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6538 (lex_one_token): Update.
6539 * macroexp.c (struct macro_buffer) <release>: Return
6540 gdb::unique_xmalloc_ptr<char>.
6541 (macro_stringify): Update.
6542 (macro_expand): Update.
6543 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6544 * macroexp.h (macro_expand_next): Likewise.
6545
6546 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * macroexp.h (macro_lookup_ftype): Remove.
6549 (macro_expand, macro_expand_once, macro_expand_next): Remove
6550 lookup function parameters, add scope parameter.
6551 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6552 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6553 * macroscope.h (standard_macro_lookup): Change parameter type
6554 to macro_scope.
6555 * macroscope.c (standard_macro_lookup): Likewise.
6556 * c-exp.y (lex_one_token): Update.
6557 * macrocmd.c (macro_expand_command): Likewise.
6558 (macro_expand_once_command): Likewise.
6559
6560 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6561
6562 * inf-loop.c (inferior_event_handler): Remove client_data param.
6563 * inf-loop.h (inferior_event_handler): Likewise.
6564 * infcmd.c (step_1): Adjust.
6565 * infrun.c (proceed): Adjust.
6566 (fetch_inferior_event): Remove client_data param.
6567 (infrun_async_inferior_event_handler): Adjust.
6568 * infrun.h (fetch_inferior_event): Remove `void *` param.
6569 * linux-nat.c (handle_target_event): Adjust.
6570 * record-btrace.c (record_btrace_handle_async_inferior_event):
6571 Adjust.
6572 * record-full.c (record_full_async_inferior_event_handler):
6573 Adjust.
6574 * remote.c (remote_async_inferior_event_handler): Adjust.
6575
6576 2020-07-01 Tom Tromey <tom@tromey.com>
6577
6578 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6579 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6580
6581 2020-07-01 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6584 tui_gen_win_info.
6585 (tui_win_info::make_window): Merge with
6586 tui_gen_win_info::make_window.
6587 (tui_win_info::make_visible): Move from tui_gen_win_info.
6588 * tui/tui-win.c (tui_win_info::max_width): Move from
6589 tui_gen_win_info.
6590 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6591 type.
6592 <window_factory>: Likewise.
6593 * tui/tui-layout.c (tui_win_info::resize): Move from
6594 tui_gen_win_info.
6595 (make_standard_window): Change return type.
6596 (get_locator_window, tui_get_window_by_name): Likewise.
6597 (tui_layout_window::apply): Remove a cast.
6598 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6599 (struct tui_win_info): Merge with tui_gen_win_info.
6600 (struct tui_gen_win_info): Remove.
6601
6602 2020-07-01 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-stack.h (struct tui_locator_window): Derive from
6605 tui_win_info.
6606 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6607 <can_box>: New method.
6608
6609 2020-07-01 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6612
6613 2020-07-01 Tom Tromey <tom@tromey.com>
6614
6615 * tui/tui-regs.c (tui_data_window::display_registers_from)
6616 (tui_data_window::display_registers_from)
6617 (tui_data_window::first_data_item_displayed)
6618 (tui_data_window::delete_data_content_windows): Update.
6619 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6620 Remove.
6621 (tui_data_window::check_register_values): Update.
6622 (tui_data_item_window::rerender): Add parameters. Update.
6623 (tui_data_item_window::refresh_window): Remove.
6624 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6625 virtual.
6626 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6627 tui_gen_win_info.
6628 <refresh_window, max_height, min_height>: Remove.
6629 <rerender>: Add parameters.
6630 <x, y, visible>: New members.
6631 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6632 <m_item_width>: New member.
6633
6634 2020-07-01 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-regs.c (tui_data_window::show_register_group)
6637 (tui_data_window::check_register_values): Update.
6638 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6639 from item_no.
6640
6641 2020-07-01 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6644 useless "if".
6645
6646 2020-07-01 Tom Tromey <tom@tromey.com>
6647
6648 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6649 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6650
6651 2020-07-01 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6654 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6655 (struct tui_line_or_address): Move from tui-data.h.
6656 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6657 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6658 (tui_cmd_window, tui_source_window_base, tui_source_window)
6659 (tui_disasm_window): Don't declare.
6660 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6661 to tui-winsource.h.
6662 (SINGLE_KEY): Move to tui-stack.c.
6663
6664 2020-07-01 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6667 std::string.
6668 * tui/tui-regs.c (class tab_expansion_file): New.
6669 (tab_expansion_file::write): New method.
6670 (tui_register_format): Change return type. Use
6671 tab_expansion_file.
6672 (tui_get_register, tui_data_window::display_registers_from)
6673 (tui_data_item_window::rerender): Update.
6674 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6675 * tui/tui-io.c (tui_expand_tabs): Remove.
6676
6677 2020-07-01 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6680
6681 2020-07-01 Fangrui Song <maskray@google.com>
6682
6683 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6684
6685 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6686
6687 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6688 forms for DW_AT_associated and DW_AT_allocated attributes,
6689 which is already checked in function attr_to_dynamic_prop.
6690
6691 2020-06-30 Tom Tromey <tromey@adacore.com>
6692
6693 * dwarf2/read.c (quirk_rust_enum): Correctly call
6694 alloc_rust_variant for default-less enum.
6695
6696 2020-06-30 Tom Tromey <tromey@adacore.com>
6697
6698 PR build/26183:
6699 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6700 gdb::to_string.
6701
6702 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6703
6704 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6705 * gdbarch.h: Re-generate.
6706
6707 2020-06-28 Tom Tromey <tom@tromey.com>
6708
6709 * command.h (cmd_types): Remove.
6710 (cmd_type): Don't declare.
6711 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6712 typedef.
6713 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6714 * cli/cli-decode.c (cmd_type): Remove.
6715
6716 2020-06-27 Pedro Alves <palves@redhat.com>
6717
6718 * fork-child.c (prefork_hook): Adjust.
6719 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6720 Delete.
6721 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6722 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6723 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6724 Remove declarations.
6725 (struct inferior) <set_tty, tty>: New methods.
6726 (struct inferior) <terminal>: Rename to ...
6727 (struct inferior) <m_terminal>: ... this and make private.
6728 * main.c (captured_main_1): Adjust.
6729 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6730 (mi_cmd_inferior_tty_show): Adjust.
6731 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6732 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6733
6734 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6735
6736 * configure.ac: Add --enable-libctf: handle --disable-static
6737 properly.
6738 * acinclude.m4: sinclude ../config/enable.m4.
6739 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6740 (LIBCTF): Substitute in.
6741 (CTF_DEPS): New, likewise.
6742 (CLIBS): libctf needs symbols from libbfd: move earlier.
6743 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6744 flags.
6745 * ctfread.c: Surround in ENABLE_LIBCTF.
6746 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6747 * configure: Regenerate.
6748 * config.in: Likewise.
6749
6750 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6753
6754 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * inferior.h (struct inferior) <terminal>: Change type to
6757 gdb::unique_xmalloc_ptr<char>.
6758 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6759 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6760 field, adjust to unique pointer.
6761 (get_inferior_io_terminal): Adjust to unique pointer.
6762
6763 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6766 registers, not just the known core set of registers.
6767
6768 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6771 fflags, frm, and fcsr registers.
6772 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6773 restore groups.
6774 (riscv_tdesc_unknown_reg): New function.
6775 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6776 tdesc_use_registers.
6777 * riscv-tdep.h (struct gdbarch_tdep): Add
6778 unknown_csrs_first_regnum, unknown_csrs_count,
6779 duplicate_fflags_regnum, duplicate_frm_regnum, and
6780 duplicate_fcsr_regnum fields.
6781
6782 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6785 callback, use the callback (when not null) to help number unknown
6786 registers.
6787 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6788 (tdesc_use_registers): Add extra parameter to declaration.
6789
6790 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6793 in the file.
6794 (class riscv_pending_register_alias): Likewise.
6795 (riscv_register_feature::register_info): Change 'required_p' field
6796 to 'required', and change its type. Add 'check' member function.
6797 (riscv_register_feature::register_info::check): Define new member
6798 function.
6799 (riscv_xreg_feature): Change initialisation of 'required' field.
6800 (riscv_freg_feature): Likewise.
6801 (riscv_virtual_feature): Likewise.
6802 (riscv_csr_feature): Likewise.
6803 (riscv_check_tdesc_feature): Take extra parameter, the csr
6804 tdesc_feature, rewrite the function to use the new
6805 riscv_register_feature::register_info::check function.
6806 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6807
6808 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6809
6810 * features/Makefile: Remove all references to the deleted files
6811 below.
6812 * features/riscv/32bit-csr.c: Deleted.
6813 * features/riscv/32bit-csr.xml: Deleted.
6814 * features/riscv/64bit-csr.c: Deleted.
6815 * features/riscv/64bit-csr.xml: Deleted.
6816 * features/riscv/rebuild-csr-xml.sh: Deleted.
6817
6818 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6819
6820 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6821 whitespace error for declaration of names member variable.
6822 (struct riscv_register_feature): Add new prefer_first_name member
6823 variable, and fix whitespace error in declaration of registers.
6824 (riscv_xreg_feature): Initialize prefer_first_name field.
6825 (riscv_freg_feature): Likewise.
6826 (riscv_virtual_feature): Likewise.
6827 (riscv_csr_feature): Likewise.
6828 (riscv_register_name): Expand on comments. Remove register name
6829 modifications for CSR and virtual registers.
6830
6831 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6834 errors.
6835
6836 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6839 riscv-opc.h.
6840 (class riscv_pending_register_alias): New class.
6841 (riscv_check_tdesc_feature): Take vector of pending aliases and
6842 populate it as appropriate.
6843 (riscv_setup_register_aliases): Delete.
6844 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6845 to riscv_check_tdesc_feature in all cases. Use the vector to
6846 create the register aliases.
6847
6848 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6849
6850 * sol2-tdep.c (sol2_static_transform_name): Remove.
6851 (sol2_init_abi): Don't register it.
6852 * gdbarch.sh (static_transform_name): Remove.
6853 * gdbarch.c, gdbarch.h: Regenerate.
6854
6855 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6856 gdbarch_static_transform_name.
6857 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6858 * stabsread.c (define_symbol) <'X'>: Remove.
6859 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6860 handling.
6861 <'V'>: Likewise.
6862 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6863 <'S'>: Remove call to gdbarch_static_transform_name.
6864
6865 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6866
6867 * procfs.c (procfs_pre_trace): New function.
6868 (procfs_target::create_inferior): Pass it to fork_inferior.
6869
6870 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6871
6872 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6873 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6874 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6875 sol2-tdep.o, sparc-sol2-tdep.o.
6876 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6877 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6878 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6879 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6880
6881 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6882
6883 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6884 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6885 Call sol2_init_abi.
6886 Remove calls to set_gdbarch_skip_solib_resolver,
6887 set_gdbarch_core_pid_to_str.
6888 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6889 (i386_sol2_static_transform_name): Remove.
6890 (i386_sol2_init_abi): Call sol2_init_abi.
6891 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6892 set_gdbarch_static_transform_name,
6893 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6894 Use sol2_sigtramp_p.
6895 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6896 (sol2_sigtramp_p): New function.
6897 (sol2_static_transform_name): New function.
6898 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6899 (sol2_init_abi): New function.
6900 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6901 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6902 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6903 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6904 (sparc_sol2_static_transform_name): Remove.
6905 (sparc32_sol2_init_abi): Call sol2_init_abi.
6906 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6907 set_gdbarch_static_transform_name,
6908 set_gdbarch_skip_solib_resolver,
6909 set_gdbarch_core_pid_to_str.
6910 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6911 (sparc_sol2_static_transform_name): Remove
6912 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6913 call sol2_sigtramp_p.
6914 (sparc64_sol2_init_abi): Call sol2_init_abi.
6915 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6916 set_gdbarch_static_transform_name,
6917 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6918
6919 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6920
6921 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6922 * exec.c (validate_exec_file): If from_tty, set both
6923 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6924 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6925 and from_tty, unconditionally ask a confirmation.
6926
6927 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * target-descriptions.c (tdesc_architecture_name): Protect against
6930 NULL pointer dereference.
6931 (maint_print_xml_tdesc_cmd): New function.
6932 (_initialize_target_descriptions): Register new 'maint print
6933 xml-tdesc' command and give it the filename completer.
6934 * NEWS: Mention new 'maint print xml-tdesc' command.
6935
6936 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6937
6938 * target-descriptions.c (class tdesc_compatible_info): New class.
6939 (struct target_desc): Change type of compatible vector.
6940 (tdesc_compatible_p): Update for change in type of
6941 target_desc::compatible.
6942 (tdesc_compatible_info_list): New function.
6943 (tdesc_compatible_info_arch_name): New function.
6944 (tdesc_add_compatible): Update for change in type of
6945 target_desc::compatible.
6946 (print_c_tdesc::visit_pre): Likewise.
6947
6948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6951 whitespace to underscore.
6952 (maint_print_c_tdesc_cmd): Use fake filename for target
6953 descriptions that came from the target.
6954 (_initialize_target_descriptions): Add filename command completion
6955 for 'maint print c-tdesc'.
6956
6957 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6960 lines.
6961
6962 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6965 lines.
6966 (dwarf2_find_location_expression): Likewise.
6967 (call_site_parameter_matches): Likewise.
6968 (dwarf2_compile_expr_to_ax): Likewise.
6969 (disassemble_dwarf_expression): Likewise.
6970 (loclist_describe_location): Likewise.
6971
6972 2020-06-23 Pedro Alves <palves@redhat.com>
6973
6974 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6975 progspace-and-thread.h. Include scoped-mock-context.h instead.
6976 (register_to_value_test): Use scoped_mock_context.
6977 * regcache.c: Include "scoped-mock-context.h".
6978 (cooked_read_test): Don't error out if a target is already pushed.
6979 Use scoped_mock_context. Adjust.
6980 * scoped-mock-context.h: New file.
6981
6982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6985 initializer.
6986 (ada_language::is_string_type_p): New member function.
6987 * c-lang.c (c_language_data): Delete la_is_string_type_p
6988 initializer.
6989 (cplus_language_data): Likewise.
6990 (asm_language_data): Likewise.
6991 (minimal_language_data): Likewise.
6992 * d-lang.c (d_language_data): Likewise.
6993 * f-lang.c (f_is_string_type_p): Delete function, implementation
6994 moved to f_language::is_string_type_p.
6995 (f_language_data): Delete la_is_string_type_p initializer.
6996 (f_language::is_string_type_p): New member function,
6997 implementation from f_is_string_type_p.
6998 * go-lang.c (go_is_string_type_p): Delete function, implementation
6999 moved to go_language::is_string_type_p.
7000 (go_language_data): Delete la_is_string_type_p initializer.
7001 (go_language::is_string_type_p): New member function,
7002 implementation from go_is_string_type_p.
7003 * language.c (language_defn::is_string_type_p): Define new member
7004 function.
7005 (default_is_string_type_p): Make static, add comment copied from
7006 header file.
7007 (unknown_language_data): Delete la_is_string_type_p initializer.
7008 (unknown_language::is_string_type_p): New member function.
7009 (auto_language_data): Delete la_is_string_type_p initializer.
7010 (auto_language::is_string_type_p): New member function.
7011 * language.h (language_data): Delete la_is_string_type_p field.
7012 (language_defn::is_string_type_p): Declare new function.
7013 (default_is_string_type_p): Delete desclaration, move comment to
7014 definition.
7015 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7016 moved to m2_language::is_string_type_p.
7017 (m2_language_data): Delete la_is_string_type_p initializer.
7018 (m2_language::is_string_type_p): New member function,
7019 implementation from m2_is_string_type_p.
7020 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7021 initializer.
7022 * opencl-lang.c (opencl_language_data): Likewise.
7023 * p-lang.c (pascal_is_string_type_p): Delete function,
7024 implementation moved to pascal_language::is_string_type_p.
7025 (pascal_language_data): Delete la_is_string_type_p initializer.
7026 (pascal_language::is_string_type_p): New member function,
7027 implementation from pascal_is_string_type_p.
7028 * rust-lang.c (rust_is_string_type_p): Delete function,
7029 implementation moved to rust_language::is_string_type_p.
7030 (rust_language_data): Delete la_is_string_type_p initializer.
7031 (rust_language::is_string_type_p): New member function,
7032 implementation from rust_is_string_type_p.
7033 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7034 is_string_type_p.
7035
7036 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * ada-lang.c (ada_language_data): Delete la_print_typedef
7039 initializer.
7040 (ada_language::print_typedef): New member function.
7041 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7042 (cplus_language_data): Likewise.
7043 (asm_language_data): Likewise.
7044 (minimal_language_data): Likewise.
7045 * d-lang.c (d_language_data): Likewise.
7046 * f-lang.c (f_language_data): Likewise.
7047 (f_language::print_typedef): New member function.
7048 * go-lang.c (go_language_data): Delete la_print_typedef
7049 initializer.
7050 * language.c (language_defn::print_typedef): Define member
7051 function.
7052 (unknown_language_data): Delete la_print_typedef initializer.
7053 (unknown_language::print_typedef): New member function.
7054 (auto_language_data): Delete la_print_typedef initializer.
7055 (auto_language::print_typedef): New member function.
7056 * language.h (language_data): Delete la_print_typedef field.
7057 (language_defn::print_typedef): Declare new member function.
7058 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7059 (default_print_typedef): Delete declaration.
7060 * m2-lang.c (m2_language_data): Delete la_print_typedef
7061 initializer.
7062 (m2_language::print_typedef): New member function.
7063 * objc-lang.c (objc_language_data): Delete la_print_typedef
7064 initializer.
7065 * opencl-lang.c (opencl_language_data): Likewise.
7066 * p-lang.c (pascal_language_data): Likewise.
7067 (pascal_language::print_typedef): New member function.
7068 * rust-lang.c (rust_print_typedef): Delete function,
7069 implementation moved to rust_language::print_typedef.
7070 (rust_language): Delete la_print_typedef initializer.
7071 (rust_language::print_typedef): New member function,
7072 implementation from rust_print_typedef.
7073 * typeprint.c (default_print_typedef): Delete.
7074
7075 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7078 (ada_language::printstr): New member function.
7079 * c-lang.c (c_language_data): Delete la_printstr initializer.
7080 (cplus_language_data): Likewise.
7081 (asm_language_data): Likewise.
7082 (minimal_language_data): Likewise.
7083 * d-lang.c (d_language_data): Likewise.
7084 * f-lang.c (f_printstr): Rename to f_language::printstr.
7085 (f_language_data): Delete la_printstr initializer.
7086 (f_language::printstr): New member function, implementation from
7087 f_printstr.
7088 * go-lang.c (go_language_data): Delete la_printstr initializer.
7089 * language.c (language_defn::printstr): Define new member
7090 function.
7091 (unk_lang_printstr): Delete.
7092 (unknown_language_data): Delete la_printstr initializer.
7093 (unknown_language::printstr): New member function.
7094 (auto_language_data): Delete la_printstr initializer.
7095 (auto_language::printstr): New member function.
7096 * language.h (language_data): Delete la_printstr field.
7097 (language_defn::printstr): Declare new member function.
7098 (LA_PRINT_STRING): Update call to printstr.
7099 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7100 (m2_language_data): Delete la_printstr initializer.
7101 (m2_language::printstr): New member function, implementation from
7102 m2_printstr.
7103 * objc-lang.c (objc_language_data): Delete la_printstr
7104 initializer.
7105 * opencl-lang.c (opencl_language_data): Likewise.
7106 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7107 (pascal_language_data): Delete la_printstr initializer.
7108 (pascal_language::printstr): New member function, implementation
7109 from pascal_printstr.
7110 * p-lang.h (pascal_printstr): Delete declaration.
7111 * rust-lang.c (rust_printstr): Update header comment.
7112 (rust_language_data): Delete la_printstr initializer.
7113 (rust_language::printstr): New member function.
7114
7115 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7116
7117 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7118 (ada_language::printchar): New member function.
7119 * c-lang.c (c_language_data): Delete la_printchar initializer.
7120 (cplus_language_data): Likewise.
7121 (asm_language_data): Likewise.
7122 (minimal_language_data): Likewise.
7123 * d-lang.c (d_language_data): Likewise.
7124 * f-lang.c (f_printchar): Rename to f_language::printchar.
7125 (f_language_data): Delete la_printchar initializer.
7126 (f_language::printchar): New member function, implementation from
7127 f_printchar.
7128 * go-lang.c (go_language_data): Delete la_printchar initializer.
7129 * language.c (unk_lang_printchar): Delete.
7130 (language_defn::printchar): Define new member function.
7131 (unknown_language_data): Delete la_printchar initializer.
7132 (unknown_language::printchar): New member function.
7133 (auto_language_data): Delete la_printchar initializer.
7134 (auto_language::printchar): New member function.
7135 * language.h (language_data): Delete la_printchar field.
7136 (language_defn::printchar): Declare new member function.
7137 (LA_PRINT_CHAR): Update call to printchar.
7138 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7139 (m2_language::printchar): New member function.
7140 * objc-lang.c (objc_language_data): Delete la_printchar
7141 initializer.
7142 * opencl-lang.c (opencl_language_data): Likewise.
7143 * p-lang.c (pascal_language_data): Delete la_printchar
7144 initializer.
7145 (pascal_language::printchar): New member function.
7146 * rust-lang.c (rust_printchar): Rename to
7147 rust_language::printchar.
7148 (rust_language_data): Delete la_printchar initializer.
7149 (rust_language::printchar): New member function, implementation
7150 from rust_printchar.
7151
7152 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7155 (ada_language_data): Delete la_emitchar initializer.
7156 (ada_language::emitchar): New member function, implementation from
7157 emit_char.
7158 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7159 (cplus_language_data): Likewise.
7160 (asm_language_data): Likewise.
7161 (minimal_language_data): Likewise.
7162 * d-lang.c (d_language_data): Likewise.
7163 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7164 (f_language_data): Delete la_emitchar initializer.
7165 (f_language::emitchar): New member function, implementation from
7166 f_emit_char.
7167 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7168 * language.c (unk_lang_emit_char): Delete.
7169 (language_defn::emitchar): New member function definition.
7170 (unknown_language_data): Delete la_emitchar initializer.
7171 (unknown_language::emitchar): New member function.
7172 (auto_language_data): Delete la_emitchar initializer.
7173 (auto_language::emitchar): New member function.
7174 * language.h (language_data): Delete la_emitchar field.
7175 (language_defn::emitchar): New member field declaration.
7176 (LA_EMIT_CHAR): Update call to emitchar.
7177 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7178 (m2_language_data): Delete la_emitchar initializer.
7179 (m2_language::emitchar): New member function, implementation from
7180 m2_emit_char.
7181 * objc-lang.c (objc_language_data): Delete la_emitchar
7182 initializer.
7183 * opencl-lang.c (opencl_language_data): Likewise.
7184 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7185 (pascal_language_data): Delete la_emitchar initializer.
7186 (pascal_language::emitchar): New member function, implementation
7187 from pascal_emit_char.
7188 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7189 (rust_language_data): Delete la_emitchar initializer.
7190 (rust_language::emitchar): New member function, implementation
7191 from rust_emitchar.
7192
7193 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7194
7195 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7196 (ada_language_data): Delete la_post_parser initializer.
7197 (ada_language::post_parser): New member function.
7198 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7199 (cplus_language_data): Likewise.
7200 (asm_language_data): Likewise.
7201 (minimal_language_data): Likewise.
7202 * d-lang.c (d_language_data): Likewise.
7203 * f-lang.c (f_language_data): Likewise.
7204 * go-lang.c (go_language_data): Likewise.
7205 * language.c (unknown_language_data): Likewise.
7206 (auto_language_data): Likewise.
7207 * language.h (language_data): Delete la_post_parser field.
7208 (language_defn::post_parser): New member function.
7209 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7210 * objc-lang.c (objc_language_data): Likewise.
7211 * opencl-lang.c (opencl_language_data): Likewise.
7212 * p-lang.c (pascal_language_data): Likewise.
7213 * parse.c (parse_exp_in_context): Update call to post_parser.
7214 (null_post_parser): Delete definition.
7215 * parser-defs.h (null_post_parser): Delete declaration.
7216 * rust-lang.c (rust_language_data): Delete la_post_parser
7217 initializer.
7218
7219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7220
7221 * ada-lang.c (parse): Rename to ada_language::parser.
7222 (ada_language_data): Delete la_parser initializer.
7223 (ada_language::parser): New member function, implementation from
7224 parse.
7225 * c-lang.c (c_language_data): Delete la_parser initializer.
7226 (cplus_language_data): Likewise.
7227 (asm_language_data): Likewise.
7228 (minimal_language_data): Likewise.
7229 * d-lang.c (d_language_data): Likewise.
7230 (d_language::parser): New member function.
7231 * f-lang.c (f_language_data): Delete la_parser initializer.
7232 (f_language::parser): New member function.
7233 * go-lang.c (go_language_data): Delete la_parser initializer.
7234 (go_language::parser): New member function.
7235 * language.c (unk_lang_parser): Delete.
7236 (language_defn::parser): Define new member function.
7237 (unknown_language_data): Delete la_parser initializer.
7238 (unknown_language::parser): New member function.
7239 (auto_language_data): Delete la_parser initializer.
7240 (auto_language::parser): New member function.
7241 * language.h (language_data): Delete la_parser field.
7242 (language_defn::parser): Declare new member function.
7243 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7244 (m2_language::parser): New member function.
7245 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7246 * opencl-lang.c (opencl_language_data): Likewise.
7247 * p-lang.c (pascal_language_data): Likewise.
7248 (pascal_language::parser): New member function.
7249 * parse.c (parse_exp_in_context): Update call to parser.
7250 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7251 (rust_language::parser): New member function.
7252
7253 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * top.c (print_gdb_configuration): Print --with-python-libdir
7256 configuration value.
7257
7258 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7259
7260 * NEWS: Mention change to the alias command.
7261
7262 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7263
7264 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7265 (alias_command_completer)
7266 (make_alias_options_def_group): New functions.
7267 (alias_opts, alias_option_defs): New struct and array.
7268 (alias_usage_error): Update usage.
7269 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7270 Use option framework.
7271 (_initialize_cli_cmds): Update alias command help.
7272 Update aliases command help.
7273 (show_user):
7274 Add NULL for new default_args lookup_cmd argument.
7275 (valid_command_p): Rename to validate_aliased_command.
7276 Add NULL for new default_args lookup_cmd argument. Verify that the
7277 aliased_command has no default args.
7278 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7279 (lookup_cmd_1, lookup_cmd): New argument default_args.
7280 (add_alias_cmd):
7281 Add NULL for new default_args lookup_cmd argument.
7282 (print_help_for_command): Show default args under the layout
7283 alias some_alias = some_aliased_cmd some_alias_default_arg.
7284 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7285 xfree default_args in destructor.
7286 * cli/cli-script.c (process_next_line, do_define_command):
7287 Add NULL for new default_args lookup_cmd argument.
7288 * command.h: Declare new default_args argument in lookup_cmd
7289 and lookup_cmd_1.
7290 * completer.c (complete_line_internal_1):
7291 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7292 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7293 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7294 Likewise.
7295 * infcmd.c (_initialize_infcmd): Likewise.
7296 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7297 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7298 * python/py-param.c (add_setshow_generic): Likewise.
7299 * remote.c (_initialize_remote): Likewise.
7300 * top.c (execute_command): Prepend default_args if command has some.
7301 (set_verbose):
7302 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7303 * tracepoint.c (validate_actionline, encode_actions_1):
7304 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7305
7306 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7307
7308 * jit.c (jit_read_descriptor): Use bool as the return type.
7309 (jit_breakpoint_re_set_internal): Use bool as the return type.
7310 Invert the return value logic; return true if the jit breakpoint
7311 has been successfully initialized.
7312 (jit_inferior_init): Update the call to
7313 jit_breakpoint_re_set_internal.
7314
7315 2020-06-22 Pedro Alves <palves@redhat.com>
7316
7317 PR gdb/25939
7318 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7319 Use the current inferior instead. Don't return
7320 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7321 wait again.
7322 * sol-thread.c (sol_thread_target::wait): Don't reference
7323 inferior_ptid.
7324 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7325 (sol_update_thread_list_callback): Use the current inferior's pid
7326 instead of inferior_ptid.
7327
7328 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7329
7330 * procfs.c: Cleanup many comments.
7331
7332 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7333 (AFTER_WATCHFLAG): Replace by value.
7334
7335 (MAIN_PROC_NAME_FORMAT): Inline ...
7336 (create_procinfo): ... here.
7337
7338 (procfs_debug_inferior): Remove SYS_exec handling.
7339 (syscall_is_exec): Likewise.
7340 (procfs_set_exec_trap): Likewise.
7341
7342 (syscall_is_lwp_exit): Inline in callers.
7343 (syscall_is_exit): Likewise.
7344 (syscall_is_exec): Likewise.
7345 (syscall_is_lwp_create): Likewise.
7346
7347 (invalidate_cache): Remove #if 0 code.
7348
7349 (make_signal_thread_runnable): Remove.
7350 (procfs_target::resume): Remove #if 0 code.
7351
7352 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7353
7354 PR gdb/25939
7355 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7356 call ...
7357 (procfs_target::create_inferior): ... here.
7358
7359 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7360
7361 * exec.c (validate_exec_file): Ensure the build-id is up to
7362 date by calling reopen_exec_file (that checks file timestamp
7363 to decide to re-read the file).
7364
7365 2020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 PR gdb/25412
7368 * gdbthread.h (delete_thread, delete_thread_silent)
7369 (find_thread_ptid): Update comments.
7370 * thread.c (current_thread_): New global.
7371 (is_current_thread): Move higher, and reimplement.
7372 (inferior_thread): Reimplement.
7373 (set_thread_exited): Use bool. Add assertions.
7374 (add_thread_silent): Simplify thread-reuse handling by always
7375 calling delete_thread.
7376 (delete_thread): Remove intro comment.
7377 (find_thread_ptid): Skip exited threads.
7378 (switch_to_thread_no_regs): Write to current_thread_.
7379 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7380 INFERIOR_PTID. Clear current_thread_.
7381
7382 2020-06-18 Pedro Alves <palves@redhat.com>
7383
7384 * aix-thread.c (pd_update): Use switch_to_thread.
7385
7386 2020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 * ravenscar-thread.c (ravenscar_thread_target): Update.
7389 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7390 (ravenscar_thread_target::add_active_thread): ... this. Don't
7391 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7392 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7393
7394 2020-06-18 Pedro Alves <palves@redhat.com>
7395
7396 * nat/windows-nat.c (current_windows_thread): Remove.
7397 * nat/windows-nat.h (current_windows_thread): Remove.
7398 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7399 Adjust.
7400 (display_selectors): Adjust to fetch the current
7401 windows_thread_info based on inferior_ptid.
7402 (fake_create_process): No longer write to current_windows_thread.
7403 (windows_nat_target::get_windows_debug_event):
7404 Don't set inferior_ptid or current_windows_thread.
7405 (windows_nat_target::wait): Adjust to not rely on
7406 current_windows_thread.
7407 (do_initial_windows_stuff): Now a method of windows_nat_target.
7408 Switch to the last_ptid thread.
7409 (windows_nat_target::attach): Adjust.
7410 (windows_nat_target::detach): Use switch_to_no_thread instead of
7411 writing to inferior_ptid directly.
7412 (windows_nat_target::create_inferior): Adjust.
7413
7414 2020-06-18 Pedro Alves <palves@redhat.com>
7415
7416 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7417
7418 2020-06-18 Pedro Alves <palves@redhat.com>
7419
7420 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7421 after creating it, instead of writing to inferior_ptid. Don't
7422 write to inferior_ptid.
7423
7424 2020-06-18 Pedro Alves <palves@redhat.com>
7425
7426 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7427
7428 2020-06-18 Pedro Alves <palves@redhat.com>
7429
7430 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7431 it, instead of writing to inferior_ptid.
7432
7433 2020-06-18 Pedro Alves <palves@redhat.com>
7434
7435 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7436 to inferior_ptid.
7437
7438 2020-06-18 Pedro Alves <palves@redhat.com>
7439
7440 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7441 instead of writing to inferior_ptid directly.
7442
7443 2020-06-18 Pedro Alves <palves@redhat.com>
7444
7445 * corelow.c (core_target::close): Use switch_to_no_thread instead
7446 of writing to inferior_ptid directly.
7447 (add_to_thread_list, core_target_open): Use switch_to_thread
7448 instead of writing to inferior_ptid directly.
7449
7450 2020-06-18 Pedro Alves <palves@redhat.com>
7451
7452 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7453 inferior_ptid.
7454 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7455 inferior_ptid.
7456 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7457 inferior_ptid directly.
7458 (darwin_nat_target::init_thread_list): Switch to thread, instead
7459 of writing to inferior_ptid.
7460 (darwin_nat_target::attach): Don't write to inferior_ptid.
7461 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7462
7463 2020-06-18 Pedro Alves <palves@redhat.com>
7464
7465 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7466 thread.
7467 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7468 Instead use switch_to_thread.
7469 (gnu_nat_target::detach): Use switch_to_no_thread
7470 instead of writing to inferior_ptid directly. Used passed-in
7471 inferior instead of looking up the inferior by pid.
7472
7473 2020-06-18 Pedro Alves <palves@redhat.com>
7474
7475 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7476 inferior_ptid.
7477
7478 2020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7481 inferior_ptid.
7482 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7483 thread.
7484 (nto_procfs_target::detach): Avoid referencing
7485 inferior_ptid. Use switch_to_no_thread instead of writing to
7486 inferior_ptid directly.
7487 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7488 instead of writing to inferior_ptid directly.
7489 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7490 to thread.
7491
7492 2020-06-18 Pedro Alves <palves@redhat.com>
7493
7494 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7495 after creating it, instead of writing to inferior_ptid.
7496 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7497 to inferior_ptid directly.
7498 (gdbsim_target::wait): Don't write to inferior_ptid.
7499
7500 2020-06-18 Pedro Alves <palves@redhat.com>
7501
7502 * remote.c (remote_target::remote_notice_new_inferior): Use
7503 switch_to_thread instead of writing to inferior_ptid directly.
7504 (remote_target::add_current_inferior_and_thread): Use
7505 switch_to_no_thread instead of writing to inferior_ptid directly.
7506 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7507 and switch_to_thread instead of using set_current_inferior or
7508 writing to inferior_ptid directly.
7509
7510 2020-06-18 Pedro Alves <palves@redhat.com>
7511
7512 * tracectf.c (ctf_target_open): Switch to added thread instead of
7513 writing to inferior_ptid directly.
7514 (ctf_target::close): Use switch_to_no_thread instead of writing to
7515 inferior_ptid directly.
7516
7517 2020-06-18 Pedro Alves <palves@redhat.com>
7518
7519 * tracefile-tfile.c (tfile_target_open): Don't write to
7520 inferior_ptid directly, instead switch to added thread.
7521 (tfile_target::close): Use switch_to_no_thread instead of writing
7522 to inferior_ptid directly.
7523
7524 2020-06-18 Pedro Alves <palves@redhat.com>
7525
7526 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7527 (procfs_target::detach): Use switch_to_no_thread
7528 instead of writing to inferior_ptid directly.
7529 (do_attach): Change return type to void. Switch to the added
7530 thread.
7531 (procfs_target::create_inferior): Switch to the added thread.
7532 (procfs_do_thread_registers): Don't write to inferior_ptid.
7533
7534 2020-06-18 Pedro Alves <palves@redhat.com>
7535
7536 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7537 of writing to inferior_ptid.
7538 (scoped_restore_exited_inferior): Delete.
7539 (handle_vfork_child_exec_or_exit): Simplify using
7540 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7541 instead of writing to inferior_ptid.
7542 (THREAD_STOPPED_BY): Delete.
7543 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7544 (thread_stopped_by_hw_breakpoint): Delete.
7545 (save_waitstatus): Use
7546 scoped_restore_current_thread+switch_to_thread, and call
7547 target_stopped_by_watchpoint instead of
7548 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7549 instead of thread_stopped_by_sw_breakpoint, and
7550 target_stopped_by_hw_breakpoint instead of
7551 thread_stopped_by_hw_breakpoint.
7552 (handle_inferior_event)
7553 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7554 inferior_ptid directly, nor
7555 set_current_inferior/set_current_program_space. Use
7556 switch_to_thread / switch_to_inferior_no_thread instead.
7557
7558 2020-06-18 Pedro Alves <palves@redhat.com>
7559
7560 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7561 instead of writing to inferior_ptid.
7562
7563 2020-06-18 Pedro Alves <palves@redhat.com>
7564
7565 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7566 added thread.
7567 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7568 to the added thread.
7569 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7570 instead of writing to inferior_ptid.
7571
7572 2020-06-18 Pedro Alves <palves@redhat.com>
7573
7574 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7575 (register_to_value_test): Mock a program_space too. Heap-allocate
7576 the address space. Don't write to inferior_ptid. Use
7577 switch_to_thread instead.
7578
7579 2020-06-18 Pedro Alves <palves@redhat.com>
7580
7581 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7582 Delete.
7583 (find_signalled_thread()): New, factored out from
7584 linux_make_corefile_notes and adjusted to handle exited threads.
7585 (linux_make_corefile_notes): Adjust to use the new
7586 find_signalled_thread.
7587
7588 2020-06-18 Pedro Alves <palves@redhat.com>
7589
7590 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7591 of saving/restoring inferior_ptid.
7592
7593 2020-06-17 Tom Tromey <tom@tromey.com>
7594
7595 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7596 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7597 declare.
7598 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7599
7600 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7603 of partial symtabs.
7604
7605 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * regformats/reg-arm.dat: Remove.
7608 * regformats/reg-bfin.dat: Remove.
7609 * regformats/reg-cris.dat: Remove.
7610 * regformats/reg-crisv32.dat: Remove.
7611 * regformats/reg-m32r.dat: Remove.
7612 * regformats/reg-tilegx.dat: Remove.
7613 * regformats/reg-tilegx32.dat: Remove.
7614
7615 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7616
7617 * features/Makefile (WHICH): Remove arm files.
7618 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7619 * regformats/arm/arm-with-neon.dat: Remove.
7620 * regformats/arm/arm-with-vfpv2.dat: Remove.
7621 * regformats/arm/arm-with-vfpv3.dat: Remove.
7622
7623 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * features/Makefile (XMLTOC): Remove rx.xml.
7626
7627 2020-06-17 Pedro Alves <palves@redhat.com>
7628
7629 * gdbthread.h (thread_control_state) <trap_expected> Update
7630 comments.
7631
7632 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7635 ada_language::lookup_symbol_nonlocal.
7636 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7637 (ada_language::lookup_symbol_nonlocal): New member function,
7638 implementation from ada_lookup_symbol_nonlocal.
7639 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7640 initializer.
7641 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7642 initializer.
7643 (cplus_language::lookup_symbol_nonlocal): New member function.
7644 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7645 (minimal_language_data) Likewise.
7646 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7647 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7648 initializer.
7649 (d_language::lookup_symbol_nonlocal): New member function.
7650 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7651 initializer.
7652 (f_language::lookup_symbol_nonlocal): New member function.
7653 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7654 initializer.
7655 * language.c (unknown_language_data): Likewise.
7656 (auto_language_data): Likewise.
7657 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7658 field.
7659 (language_defn::lookup_symbol_nonlocal): New member function.
7660 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7661 initializer.
7662 * objc-lang.c (objc_language_data): Likewise.
7663 * opencl-lang.c (opencl_language_data): Likewise.
7664 * p-lang.c (pascal_language_data): Likewise.
7665 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7666 rust_language::lookup_symbol_nonlocal.
7667 (rust_language_data): Delete la_lookup_symbol_nonlocal
7668 initializer.
7669 (rust_language::lookup_symbol_nonlocal): New member function,
7670 implementation from rust_lookup_symbol_nonlocal.
7671 * symtab.c (lookup_symbol_aux): Update call to
7672 lookup_symbol_nonlocal.
7673 (basic_lookup_symbol_nonlocal): Rename to...
7674 (language_defn::lookup_symbol_nonlocal): ...this, and update
7675 header comment. Remove language_defn parameter, and replace with
7676 uses of `this'.
7677 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7678
7679 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7682 initializer.
7683 (ada_language::value_print_inner): New member function.
7684 * c-lang.c (c_language_data): Delete la_value_print_inner
7685 initializer.
7686 (cplus_language_data): Likewise.
7687 (asm_language_data): Likewise.
7688 (minimal_language_data): Likewise.
7689 * d-lang.c (d_language_data): Likewise.
7690 (d_language::value_print_inner): New member function.
7691 * f-lang.c (f_language_data): Delete la_value_print_inner
7692 initializer.
7693 (f_language::value_print_inner): New member function.
7694 * f-lang.h (f_value_print_innner): Rename to...
7695 (f_value_print_inner): ...this (note spelling of 'inner').
7696 * f-valprint.c (f_value_print_innner): Rename to...
7697 (f_value_print_inner): ...this (note spelling of 'inner').
7698 * go-lang.c (go_language_data): Delete la_value_print_inner
7699 initializer.
7700 (go_language::value_print_inner): New member function.
7701 * language.c (language_defn::value_print_inner): Define new member
7702 function.
7703 (unk_lang_value_print_inner): Delete.
7704 (unknown_language_data): Delete la_value_print_inner initializer.
7705 (unknown_language::value_print_inner): New member function.
7706 (auto_language_data): Delete la_value_print_inner initializer.
7707 (auto_language::value_print_inner): New member function.
7708 * language.h (language_data): Delete la_value_print_inner field.
7709 (language_defn::value_print_inner): Delcare new member function.
7710 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7711 initializer.
7712 (m2_language::value_print_inner): New member function.
7713 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7714 initializer.
7715 * opencl-lang.c (opencl_language_data): Likewise.
7716 * p-lang.c (pascal_language_data): Likewise.
7717 (pascal_language::value_print_inner): New member function.
7718 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7719 initializer.
7720 (rust_language::value_print_inner): New member function.
7721 * valprint.c (do_val_print): Update call to value_print_inner.
7722
7723 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7724
7725 * ada-lang.c (ada_language_data): Delete la_value_print
7726 initializer.
7727 (ada_language::value_print): New member function.
7728 * c-lang.c (c_language_data): Delete la_value_print initializer.
7729 (cplus_language_data): Likewise.
7730 (asm_language_data): Likewise.
7731 (minimal_language_data): Likewise.
7732 * d-lang.c (d_language_data): Likewise.
7733 * f-lang.c (f_language_data): Likewise.
7734 * go-lang.c (go_language_data): Likewise.
7735 * language.c (unk_lang_value_print): Delete.
7736 (language_defn::value_print): Define new member function.
7737 (unknown_language_data): Delete la_value_print initializer.
7738 (unknown_language::value_print): New member function.
7739 (auto_language_data): Delete la_value_print initializer.
7740 (auto_language::value_print): New member function.
7741 * language.h (language_data): Delete la_value_print field.
7742 (language_defn::value_print): Declare new member function.
7743 (LA_VALUE_PRINT): Update call to value_print.
7744 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7745 * objc-lang.c (objc_language_data): Likewise.
7746 * opencl-lang.c (opencl_language_data): Likewise.
7747 * p-lang.c (pascal_language_data): Likewise.
7748 (pascal_language::value_print): New member function.
7749 * rust-lang.c (rust_language_data): Delete la_value_print
7750 initializer.
7751
7752 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7753
7754 * ada-lang.c (ada_watch_location_expression): Rename to
7755 ada_language::watch_location_expression.
7756 (ada_language_data): Delete la_watch_location_expression
7757 initializer.
7758 (ada_language::watch_location_expression): New member function,
7759 implementation from ada_watch_location_expression.
7760 * breakpoint.c (watch_command_1): Update call to
7761 watch_location_expression.
7762 * c-lang.c (c_watch_location_expression): Rename to
7763 language_defn::watch_location_expression.
7764 (c_language_data): Delete la_watch_location_expression
7765 initializer.
7766 (cplus_language_data): Likewise.
7767 (asm_language_data): Likewise.
7768 (minimal_language_data): Likewise.
7769 * c-lang.h (c_watch_location_expression): Delete declaration.
7770 * d-lang.c (d_language_data): Delete la_watch_location_expression
7771 initializer.
7772 * f-lang.c (f_language_data): Likewise.
7773 * go-lang.c (go_language_data): Likewise.
7774 * language.c (language_defn::watch_location_expression): Member
7775 function implementation from c_watch_location_expression.
7776 (unknown_language_data): Delete la_watch_location_expression
7777 initializer.
7778 (auto_language_data): Likewise.
7779 * language.h (language_data): Delete la_watch_location_expression
7780 field.
7781 (language_defn::watch_location_expression): Declare new member
7782 function.
7783 * m2-lang.c (m2_language_data): Delete
7784 la_watch_location_expression initializer.
7785 * objc-lang.c (objc_language_data): Likewise.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 * rust-lang.c (rust_watch_location_expression): Rename to
7789 rust_language::watch_location_expression.
7790 (rust_language_data): Delete la_watch_location_expression
7791 initializer.
7792 (rust_language::watch_location_expression): New member function,
7793 implementation from rust_watch_location_expression.
7794
7795 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7798 ada_language::collect_symbol_completion_matches.
7799 (ada_language_data): Delete la_collect_symbol_completion_matches
7800 initializer.
7801 (ada_language::collect_symbol_completion_matches): New member
7802 function, implementation from
7803 ada_collect_symbol_completion_matches.
7804 * c-lang.c (c_language_data): Delete
7805 la_collect_symbol_completion_matches initializer.
7806 (cplus_language_data): Likewise.
7807 (asm_language_data): Likewise.
7808 (minimal_language_data): Likewise.
7809 * d-lang.c (d_language_data): Likewise.
7810 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7811 f_language::collect_symbol_completion_matches.
7812 (f_language_data): Delete la_collect_symbol_completion_matches
7813 initializer.
7814 (f_language::collect_symbol_completion_matches) New member
7815 function, implementation from f_collect_symbol_completion_matches.
7816 * go-lang.c (go_language_data): Delete
7817 la_collect_symbol_completion_matches initializer.
7818 * language.c (unknown_language_data): Likewise.
7819 (auto_language_data): Likewise.
7820 * language.h (language_data): Delete
7821 la_collect_symbol_completion_matches field.
7822 (language_defn::collect_symbol_completion_matches): New member
7823 function.
7824 * m2-lang.c (m2_language_data): Delete
7825 la_collect_symbol_completion_matches initializer.
7826 * objc-lang.c (objc_language_data): Likewise.
7827 * opencl-lang.c (opencl_language_data): Likewise.
7828 * p-lang.c (pascal_language_data): Likewise.
7829 * rust-lang.c (rust_language_data): Likewise.
7830 * symtab.c (default_collect_symbol_completion_matches): Delete.
7831 (collect_symbol_completion_matches): Update call to
7832 collect_symbol_completion_matches.
7833 (collect_symbol_completion_matches_type): Likewise.
7834 * symtab.h (default_collect_symbol_completion_matches): Delete
7835 declaration.
7836
7837 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7840 (ada_language_data): Delete la_word_break_characters initializer.
7841 (ada_language::word_break_characters): New member function.
7842 * c-lang.c (c_language_data): Delete la_word_break_characters
7843 initializer.
7844 (cplus_language_data): Likewise.
7845 (asm_language_data): Likewise.
7846 (minimal_language_data): Likewise.
7847 * completer.c: Update global comment.
7848 (advance_to_expression_complete_word_point): Update call to
7849 word_break_characters.
7850 (complete_files_symbols): Likewise.
7851 (complete_line_internal_1): Likewise.
7852 (default_completer_handle_brkchars): Likewise.
7853 (skip_quoted_chars): Likewise.
7854 * d-lang.c (d_language_data): Delete la_word_break_characters
7855 initializer.
7856 * f-lang.c (f_word_break_characters): Delete.
7857 (f_language_data): Delete la_word_break_characters initializer.
7858 (f_language::word_break_characters): New member function.
7859 * go-lang.c (go_language_data): Delete la_word_break_characters
7860 initializer.
7861 * language.c (unknown_language_data): Likewise.
7862 (auto_language_data): Likewise.
7863 * language.h (default_word_break_characters): Move declaration to
7864 earlier in the file.
7865 (language_data): Delete la_word_break_characters field.
7866 (language_defn::word_break_characters): New member function.
7867 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7868 initializer.
7869 * objc-lang.c (objc_language_data): Likewise.
7870 * opencl-lang.c (opencl_language_data): Likewise.
7871 * p-lang.c (pascal_language_data): Likewise.
7872 * rust-lang.c (rust_language_data): Likewise.
7873
7874 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7875
7876 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7877 (ada_language_data): Delete la_get_symbol_name_matcher
7878 initializer.
7879 (language_defn::get_symbol_name_matcher_inner): New member
7880 function.
7881 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7882 initializer.
7883 (cplus_language_data): Likewise.
7884 (cplus_language::get_symbol_name_matcher_inner): New member
7885 function.
7886 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7887 (minimal_language_data): Likewise.
7888 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7889 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7890 initializer.
7891 * dictionary.c (iter_match_first_hashed): Update call to
7892 get_symbol_name_matcher.
7893 (iter_match_next_hashed): Likewise.
7894 (iter_match_next_linear): Likewise.
7895 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7896 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7897 initializer.
7898 (f_language::get_symbol_name_matcher_inner): New member function.
7899 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7900 initializer.
7901 * language.c (default_symbol_name_matcher): Update header comment,
7902 make static.
7903 (language_defn::get_symbol_name_matcher): New definition.
7904 (language_defn::get_symbol_name_matcher_inner): Likewise.
7905 (get_symbol_name_matcher): Delete.
7906 (unknown_language_data): Delete la_get_symbol_name_matcher
7907 initializer.
7908 (auto_language_data): Likewise.
7909 * language.h (language_data): Delete la_get_symbol_name_matcher
7910 field.
7911 (language_defn::get_symbol_name_matcher): New member function.
7912 (language_defn::get_symbol_name_matcher_inner): Likewise.
7913 (default_symbol_name_matcher): Delete declaration.
7914 * linespec.c (find_methods): Update call to
7915 get_symbol_name_matcher.
7916 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7917 initializer.
7918 * minsyms.c (lookup_minimal_symbol): Update call to
7919 get_symbol_name_matcher.
7920 (iterate_over_minimal_symbols): Likewise.
7921 * objc-lang.c (objc_language_data): Delete
7922 la_get_symbol_name_matcher initializer.
7923 * opencl-lang.c (opencl_language_data): Likewise.
7924 * p-lang.c (pascal_language_data): Likewise.
7925 * psymtab.c (psymbol_name_matches): Update call to
7926 get_symbol_name_matcher.
7927 * rust-lang.c (rust_language_data): Delete
7928 la_get_symbol_name_matcher initializer.
7929 * symtab.c (symbol_matches_search_name): Update call to
7930 get_symbol_name_matcher.
7931 (compare_symbol_name): Likewise.
7932
7933 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7934
7935 * ada-lang.c (ada_language_data): Delete la_compute_program
7936 initializer.
7937 * c-lang.c (c_language_data): Likewise.
7938 (c_language::compute_program): New member function.
7939 (cplus_language_data): Delete la_compute_program initializer.
7940 (cplus_language::compute_program): New member function.
7941 (asm_language_data): Delete la_compute_program initializer.
7942 (minimal_language_data): Likewise.
7943 * c-lang.h (c_compute_program): Update comment.
7944 (cplus_compute_program): Likewise.
7945 * compile/compile-c-support.c (c_compute_program): Likewise.
7946 (cplus_compute_program): Likewise.
7947 * compile/compile.c (compile_to_object): Update call to
7948 la_compute_program.
7949 * d-lang.c (d_language_data): Delete la_compute_program
7950 initializer.
7951 * f-lang.c (f_language_data): Likewise.
7952 * go-lang.c (go_language_data): Likewise.
7953 * language.c (unknown_language_data): Likewise.
7954 (auto_language_data): Likewise.
7955 * language.h (language_data): Delete la_compute_program field.
7956 (language_defn::compute_program): New member function.
7957 * m2-lang.c (m2_language_data): Delete la_compute_program
7958 initializer.
7959 * objc-lang.c (objc_language_data): Likewise.
7960 * opencl-lang.c (opencl_language_data): Likewise.
7961 * p-lang.c (pascal_language_data): Likewise.
7962 * rust-lang.c (rust_language_data): Likewise.
7963
7964 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 * ada-lang.c (ada_language_data) Delete
7967 la_class_name_from_physname initializer.
7968 * c-lang.c (c_language_data): Likewise.
7969 (cplus_language_data): Likewise.
7970 (cplus_language::class_name_from_physname): New member function.
7971 (asm_language_data): Delete la_class_name_from_physname
7972 initializer.
7973 (minimal_language_data): Likewise.
7974 * d-lang.c (d_language_data): Likewise.
7975 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7976 method on language_defn class.
7977 (guess_full_die_structure_name): Likewise.
7978 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7979 initializer.
7980 * go-lang.c (go_language_data): Likewise.
7981 * language.c (language_class_name_from_physname): Delete.
7982 (unk_lang_class_name): Delete.
7983 (unknown_language_data): Delete la_class_name_from_physname
7984 initializer.
7985 (auto_language_data): Likewise.
7986 * language.h (language_data): Delete la_class_name_from_physname
7987 field.
7988 (language_defn::class_name_from_physname): New function.
7989 (language_class_name_from_physname): Delete declaration.
7990 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7991 initializer.
7992 * objc-lang.c (objc_language_data): Likewise.
7993 * opencl-lang.c (opencl_language_data): Likewise.
7994 * p-lang.c (pascal_language_data): Likewise.
7995 * rust-lang.c (rust_language_data): Likewise.
7996
7997 2020-06-16 Tom Tromey <tom@tromey.com>
7998
7999 * tui/tui-data.h (STATUS_NAME): New macro.
8000 * tui/tui-layout.c (tui_remove_some_windows)
8001 (initialize_known_windows, tui_register_window)
8002 (tui_layout_split::remove_windows, initialize_layouts)
8003 (tui_new_layout_command): Don't use hard-coded window names.
8004
8005 2020-06-16 Tom Tromey <tom@tromey.com>
8006
8007 PR tui/25348:
8008 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8009 tui_initialize_readline. Only run once. Call rl_initialize.
8010 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8011 tui_initialize_readline.
8012 * tui/tui-io.c (tui_setup_io): Call
8013 tui_ensure_readline_initialized.
8014 * tui/tui-interp.c (tui_interp::init): Update.
8015
8016 2020-06-16 Tom Tromey <tom@tromey.com>
8017
8018 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8019 Also preserve the status window.
8020
8021 2020-06-16 Tom Tromey <tom@tromey.com>
8022
8023 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8024 where m_window==nullptr.
8025
8026 2020-06-15 Tom Tromey <tromey@adacore.com>
8027
8028 * windows-nat.c (windows_nat::handle_output_debug_string):
8029 Update.
8030 (windows_nat::handle_ms_vc_exception): Update.
8031 * target.h (target_read_string): Change API.
8032 * target.c (target_read_string): Change API.
8033 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8034 Update.
8035 * solib-frv.c (frv_current_sos): Update.
8036 * solib-dsbt.c (dsbt_current_sos): Update.
8037 * solib-darwin.c (darwin_current_sos): Update.
8038 * linux-thread-db.c (inferior_has_bug): Update.
8039 * expprint.c (print_subexp_standard): Update.
8040 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8041 (ada_exception_message_1): Update.
8042
8043 2020-06-15 Tom Tromey <tromey@adacore.com>
8044
8045 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8046
8047 2020-06-15 Tom Tromey <tromey@adacore.com>
8048
8049 * valprint.c (read_string): Update comment.
8050 * target.c (MIN): Remove.
8051 (target_read_string): Rewrite.
8052
8053 2020-06-15 Tom Tromey <tromey@adacore.com>
8054
8055 * corefile.c (read_memory_string): Remove.
8056 * ada-valprint.c (ada_value_print_ptr): Update.
8057 * ada-lang.h (ada_tag_name): Change return type.
8058 * ada-lang.c (type_from_tag): Update.
8059 (ada_tag_name_from_tsd): Change return type. Use
8060 target_read_string.
8061 (ada_tag_name): Likewise.
8062 * gdbcore.h (read_memory_string): Don't declare.
8063
8064 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8065
8066 * symtab.c (rbreak_command): Ignore Windows drive colon.
8067
8068 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * NEWS: Mention removed GDBserver host support.
8071
8072 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8073
8074 * features/riscv/rebuild-csr-xml.sh: Updated.
8075
8076 2020-06-11 Tom Tromey <tom@tromey.com>
8077
8078 PR gdb/18318:
8079 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8080
8081 2020-06-09 Jonny Grant <jg@jguk.org>
8082 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8083
8084 * main.c (captured_main_1): Don't print new line after help.
8085 (print_gdb_help): add mailing list and IRC channel information
8086 to --help. Add new lines between items in the footer. Remove
8087 quotes around bug url.
8088
8089 2020-06-11 Keith Seitz <keiths@redhat.com>
8090
8091 PR gdb/21356
8092 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8093 Resolve typedefs for type length calculations.
8094
8095 2020-06-10 Tom de Vries <tdevries@suse.de>
8096
8097 PR ada/24713
8098 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8099 (write_psymbols): Enable .gdb_index for ada.
8100 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8101 ada.
8102
8103 2020-06-10 Tom de Vries <tdevries@suse.de>
8104
8105 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8106 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8107 namei" instead of "const char *name" argument.
8108 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8109 dw2_symtab_iter_init.
8110
8111 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8112
8113 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8114 to use type::field and field::type instead.
8115
8116 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8119 to use field::type instead.
8120
8121 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8122
8123 * gdbtypes.h (struct field) <type, set_type>: New methods.
8124 Rename `type` field to...
8125 <m_type>: ... this. Change references throughout to use type or
8126 set_type methods.
8127 (FIELD_TYPE): Use field::type. Change call sites that modify
8128 the field's type to use field::set_type instead.
8129
8130 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8133 to use type::index_type instead.
8134
8135 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8138 methods.
8139 (TYPE_INDEX_TYPE): Use type::index_type.
8140 * gdbtypes.c (create_array_type_with_stride): Likewise.
8141
8142 2020-06-07 Tom Tromey <tom@tromey.com>
8143
8144 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8145 parameter.
8146 (generic_value_print): Update.
8147
8148 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 Revert commit 982a38f60b0.
8151 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8152
8153 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8156 avoid use after free.
8157
8158 2020-06-05 Tom de Vries <tdevries@suse.de>
8159
8160 * NEWS: Fix typos.
8161
8162 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8165 the per_bfd object.
8166 (dwarf2_read_debug_names): Likewise.
8167 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8168 object when re-using a per_bfd object with an index.
8169
8170 2020-06-03 Tom de Vries <tdevries@suse.de>
8171
8172 PR symtab/26046
8173 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8174 children for C++.
8175 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8176 DW_TAG_subprogram.
8177
8178 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8179
8180 * ada-lang.c (ada_language_data): Delete skip_trampoline
8181 initializer.
8182 * c-lang.c (c_language_data): Likewise.
8183 (cplus_language_data): Likewise.
8184 (cplus_language::skip_trampoline): New member function.
8185 (asm_language_data): Delete skip_trampoline initializer.
8186 (minimal_language_data): Likewise.
8187 * d-lang.c (d_language_data): Likewise.
8188 * f-lang.c (f_language_data): Likewise.
8189 * go-lang.c (go_language_data): Likewise.
8190 * language.c (unk_lang_trampoline): Delete function.
8191 (skip_language_trampoline): Update.
8192 (unknown_language_data): Delete skip_trampoline initializer.
8193 (auto_language_data): Likewise.
8194 * language.h (language_data): Delete skip_trampoline field.
8195 (language_defn::skip_trampoline): New function.
8196 * m2-lang.c (m2_language_data): Delete skip_trampoline
8197 initializer.
8198 * objc-lang.c (objc_skip_trampoline): Delete function, move
8199 implementation to objc_language::skip_trampoline.
8200 (objc_language_data): Delete skip_trampoline initializer.
8201 (objc_language::skip_trampoline): New member function with
8202 implementation from objc_skip_trampoline.
8203 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8204 initializer.
8205 * p-lang.c (pascal_language_data): Likewise.
8206 * rust-lang.c (rust_language_data): Likewise.
8207
8208 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8209
8210 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8211 (ada_language::demangle): New member function.
8212 * c-lang.c (c_language_data): Delete la_demangle initializer.
8213 (cplus_language_data): Delete la_demangle initializer.
8214 (cplus_language::demangle): New member function.
8215 (asm_language_data): Delete la_demangle initializer.
8216 (minimal_language_data): Delete la_demangle initializer.
8217 * d-lang.c (d_language_data): Delete la_demangle initializer.
8218 (d_language::demangle): New member function.
8219 * f-lang.c (f_language_data): Delete la_demangle initializer.
8220 (f_language::demangle): New member function.
8221 * go-lang.c (go_language_data): Delete la_demangle initializer.
8222 (go_language::demangle): New member function.
8223 * language.c (language_demangle): Update.
8224 (unk_lang_demangle): Delete.
8225 (unknown_language_data): Delete la_demangle initializer.
8226 (unknown_language::demangle): New member function.
8227 (auto_language_data): Delete la_demangle initializer.
8228 (auto_language::demangle): New member function.
8229 * language.h (language_data): Delete la_demangle field.
8230 (language_defn::demangle): New function.
8231 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8232 * objc-lang.c (objc_language_data): Delete la_demangle
8233 initializer.
8234 (objc_language::demangle): New member function.
8235 * opencl-lang.c (opencl_language_data): Delete la_demangle
8236 initializer.
8237 * p-lang.c (pascal_language_data): Likewise.
8238 * rust-lang.c (rust_language_data): Likewise.
8239 (rust_language::demangle): New member function.
8240
8241 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8242
8243 * ada-lang.c (ada_language_data): Delete la_print_type
8244 initializer.
8245 (ada_language::print_type): New member function.
8246 * c-lang.c (c_language_data): Delete la_print_type initializer.
8247 (c_language::print_type): New member function.
8248 (cplus_language_data): Delete la_print_type initializer.
8249 (cplus_language::print_type): New member function.
8250 (asm_language_data): Delete la_print_type initializer.
8251 (asm_language::print_type): New member function.
8252 (minimal_language_data): Delete la_print_type initializer.
8253 (minimal_language::print_type): New member function.
8254 * d-lang.c (d_language_data): Delete la_print_type initializer.
8255 (d_language::print_type): New member function.
8256 * f-lang.c (f_language_data): Delete la_print_type initializer.
8257 (f_language::print_type): New member function.
8258 * go-lang.c (go_language_data): Delete la_print_type initializer.
8259 (go_language::print_type): New member function.
8260 * language.c (unk_lang_print_type): Delete.
8261 (unknown_language_data): Delete la_print_type initializer.
8262 (unknown_language::print_type): New member function.
8263 (auto_language_data): Delete la_print_type initializer.
8264 (auto_language::print_type): New member function.
8265 * language.h (language_data): Delete la_print_type field.
8266 (language_defn::print_type): New function.
8267 (LA_PRINT_TYPE): Update.
8268 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8269 (m2_language::print_type): New member function.
8270 * objc-lang.c (objc_language_data): Delete la_print_type
8271 initializer.
8272 (objc_language::print_type): New member function.
8273 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8274 to opencl_language::print_type.
8275 (opencl_language_data): Delete la_print_type initializer.
8276 (opencl_language::print_type): New member function, implementation
8277 from opencl_print_type.
8278 * p-lang.c (pascal_language_data): Delete la_print_type
8279 initializer.
8280 (pascal_language::print_type): New member function.
8281 * rust-lang.c (rust_print_type): Delete, implementation moved to
8282 rust_language::print_type.
8283 (rust_language_data): Delete la_print_type initializer.
8284 (rust_language::print_type): New member function, implementation
8285 from rust_print_type.
8286
8287 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8290 implementation moves to...
8291 (ada_language::sniff_from_mangled_name): ...here. Update return
8292 type.
8293 (ada_language_data): Delete la_sniff_from_mangled_name
8294 initializer.
8295 * c-lang.c (c_language_data): Likewise.
8296 (cplus_language_data): Likewise.
8297 (cplus_language::sniff_from_mangled_name): New member function,
8298 implementation taken from gdb_sniff_from_mangled_name.
8299 (asm_language_data): Delete la_sniff_from_mangled_name
8300 initializer.
8301 (minimal_language_data): Likewise.
8302 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8303 implementation moves to cplus_language::sniff_from_mangled_name.
8304 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8305 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8306 moves to...
8307 (d_language::sniff_from_mangled_name): ...here.
8308 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8309 * f-lang.c (f_language_data): Likewise.
8310 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8311 moves to...
8312 (go_language::sniff_from_mangled_name): ...here.
8313 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8314 * language.c (language_sniff_from_mangled_name): Delete.
8315 (unknown_language_data): Delete la_sniff_from_mangled_name
8316 initializer.
8317 (auto_language_data): Likewise.
8318 * language.h (language_data): Delete la_sniff_from_mangled_name
8319 field.
8320 (language_defn::sniff_from_mangled_name): New function.
8321 (language_sniff_from_mangled_name): Delete declaration.
8322 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8323 field.
8324 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8325 implementation moves to...
8326 (objc_language::sniff_from_mangled_name): ...here.
8327 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8328 * opencl-lang.c (opencl_language_data): Likewise.
8329 * p-lang.c (pascal_language_data): Likewise.
8330 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8331 implementation moves to...
8332 (rust_language::sniff_from_mangled_name): ...here.
8333 (rust_language_data): Delete la_sniff_from_mangled_name
8334 initializer.
8335 * symtab.c (symbol_find_demangled_name): Call
8336 sniff_from_mangled_name member function.
8337
8338 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8339
8340 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8341 initializer.
8342 * c-lang.c (c_language_data): Likewise.
8343 (cplus_language_data): Likewise.
8344 (cplus_language::search_name_hash): New member function.
8345 (asm_language_data): Delete la_search_name_hash initializer.
8346 (minimal_language_data): Likewise.
8347 * d-lang.c (d_language_data): Likewise.
8348 * dictionary.c (default_search_name_hash): Rename to...
8349 (language_defn::search_name_hash): ...this.
8350 * f-lang.c (f_language_data): Likewise.
8351 (f_language::search_name_hash): New member function.
8352 * go-lang.c (go_language_data): Delete la_search_name_hash
8353 initializer.
8354 * language.c (unknown_language_data): Likewise.
8355 (auto_language_data): Likewise.
8356 * language.h (struct language_data): Delete la_search_name_hash
8357 field.
8358 (language_defn::search_name_hash): Declare new member function.
8359 (default_search_name_hash): Delete declaration.
8360 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8361 initializer.
8362 * objc-lang.c (objc_language_data): Likewise.
8363 * opencl-lang.c (opencl_language_data): Likewise.
8364 * p-lang.c (pascal_language_data): Likewise.
8365 * rust-lang.c (rust_language_data): Likewise.
8366 * symtab.c (search_name_hash): Update call.
8367
8368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8369
8370 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8371 initializer.
8372 * c-lang.c (class compile_instance): Declare.
8373 (c_language_data): Delete la_get_compile_instance initializer.
8374 (c_language::get_compile_instance): New member function.
8375 (cplus_language_data): Delete la_get_compile_instance initializer.
8376 (cplus_language::get_compile_instance): New member function.
8377 (asm_language_data): Delete la_get_compile_instance initializer.
8378 (minimal_language_data): Likewise.
8379 * c-lang.h (c_get_compile_context): Update comment.
8380 (cplus_get_compile_context): Update comment.
8381 * compile/compile.c (compile_to_object): Update calls, don't rely
8382 on function pointer being NULL.
8383 * d-lang.c (d_language_data): Delete la_get_compile_instance
8384 initializer.
8385 * f-lang.c (f_language_data): Likewise.
8386 * go-lang.c (go_language_data): Likewise.
8387 * language.c (unknown_language_data): Likewise.
8388 (auto_language_data): Likewise.
8389 * language.h (language_data): Delete la_get_compile_instance field.
8390 (language_defn::get_compile_instance): New member function.
8391 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8392 initializer.
8393 * objc-lang.c (objc_language_data): Likewise.
8394 * opencl-lang.c (opencl_language_data): Likewise.
8395 * p-lang.c (pascal_language_data): Likewise.
8396 * rust-lang.c (rust_language_data): Likewise.
8397
8398 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * ada-lang.c (ada_add_all_symbols): Update comment.
8401 (ada_iterate_over_symbols): Delete, move implementation to...
8402 (ada_language::iterate_over_symbols): ...here, a new member
8403 function, rewrite to use range based for loop.
8404 (ada_language_data): Delete la_iterate_over_symbols initializer.
8405 * c-lang.c (c_language_data): Likewise.
8406 (cplus_language_data): Likewise.
8407 (asm_language_data): Likewise.
8408 (minimal_language_data): Likewise.
8409 * d-lang.c (d_language_data): Likewise.
8410 * f-lang.c (f_language_data): Likewise.
8411 * go-lang.c (go_language_data): Likewise.
8412 * language.c (unknown_language_data): Likewise.
8413 (auto_language_data): Likewise.
8414 * language.h (language_data): Delete la_iterate_over_symbols field.
8415 (language_defn::iterate_over_symbols): New member function.
8416 (LA_ITERATE_OVER_SYMBOLS): Update.
8417 * linespec.c (iterate_over_all_matching_symtabs): Update.
8418 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8419 initializer.
8420 * objc-lang.c (objc_language_data): Likewise.
8421 * opencl-lang.c (opencl_language_data): Likewise.
8422 * p-lang.c (pascal_language_data): Likewise.
8423 * rust-lang.c (rust_language_data): Likewise.
8424
8425 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8426
8427 * ada-lang.c (ada_language_data): Delete
8428 la_lookup_transparent_type initializer.
8429 * c-lang.c (c_language_data): Likewise.
8430 (cplus_language_data): Likewise.
8431 (cplus_language::lookup_transparent_type): New member function.
8432 (asm_language_data): Delete la_lookup_transparent_type
8433 initializer.
8434 (minimal_language_data): Likewise.
8435 * d-lang.c (d_language_data): Likewise.
8436 * f-lang.c (f_language_data): Likewise.
8437 * go-lang.c (go_language_data): Likewise.
8438 * language.c (unknown_language_data): Likewise.
8439 (auto_language_data): Likewise.
8440 * language.h (struct language_data): Delete
8441 la_lookup_transparent_type field.
8442 (language_defn::lookup_transparent_type): New member function.
8443 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8444 initializer.
8445 * objc-lang.c (objc_language_data): Likewise.
8446 * opencl-lang.c (opencl_language_data): Likewise.
8447 * p-lang.c (pascal_language_data): Likewise.
8448 * rust-lang.c (rust_language_data): Likewise.
8449 * symtab.c (symbol_matches_domain): Update call.
8450
8451 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * ada-lang.c (ada_language_arch_info): Delete function, move
8454 implementation to...
8455 (ada_language::language_arch_info): ...here, a new member
8456 function.
8457 (ada_language_data): Delete la_language_arch_info.
8458 * c-lang.c (c_language_data): Likewise.
8459 (c_language::language_arch_info): New member function.
8460 (cplus_language_arch_info): Delete function, move
8461 implementation to...
8462 (cplus_language::language_arch_info): ...here, a new member
8463 function.
8464 (cplus_language_data): Delete la_language_arch_info.
8465 (asm_language_data): Likewise.
8466 (asm_language::language_arch_info): New member function.
8467 (minimal_language_data): Delete la_language_arch_info.
8468 (minimal_language::language_arch_info): New member function.
8469 * d-lang.c (d_language_arch_info): Delete function, move
8470 implementation to...
8471 (d_language::language_arch_info): ...here, a new member
8472 function.
8473 (d_language_data): Delete la_language_arch_info.
8474 * f-lang.c (f_language_arch_info): Delete function, move
8475 implementation to...
8476 (f_language::language_arch_info): ...here, a new member
8477 function.
8478 (f_language_data): Delete la_language_arch_info.
8479 * go-lang.c (go_language_arch_info): Delete function, move
8480 implementation to...
8481 (go_language::language_arch_info): ...here, a new member
8482 function.
8483 (go_language_data): Delete la_language_arch_info.
8484 * language.c (unknown_language_data): Likewise.
8485 (unknown_language::language_arch_info): New member function.
8486 (auto_language_data): Delete la_language_arch_info.
8487 (auto_language::language_arch_info): New member function.
8488 (language_gdbarch_post_init): Update call to
8489 la_language_arch_info.
8490 * language.h (language_data): Delete la_language_arch_info
8491 function pointer.
8492 (language_defn::language_arch_info): New function.
8493 * m2-lang.c (m2_language_arch_info): Delete function, move
8494 implementation to...
8495 (m2_language::language_arch_info): ...here, a new member
8496 function.
8497 (m2_language_data): Delete la_language_arch_info.
8498 * objc-lang.c (objc_language_arch_info): Delete function, move
8499 implementation to...
8500 (objc_language::language_arch_info): ...here, a new member
8501 function.
8502 (objc_language_data): Delete la_language_arch_info.
8503 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8504 implementation to...
8505 (opencl_language::language_arch_info): ...here, a new member
8506 function.
8507 (opencl_language_data): Delete la_language_arch_info.
8508 * p-lang.c (pascal_language_arch_info): Delete function, move
8509 implementation to...
8510 (pascal_language::language_arch_info): ...here, a new member
8511 function.
8512 (pascal_language_data): Delete la_language_arch_info.
8513 * rust-lang.c (rust_language_arch_info): Delete function, move
8514 implementation to...
8515 (rust_language::language_arch_info): ...here, a new member
8516 function.
8517 (rust_language_data): Delete la_language_arch_info.
8518
8519 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8522 initializer.
8523 * c-lang.c (c_language_data): Likewise.
8524 (cplus_language_data): Likewise.
8525 (cplus_language::pass_by_reference_info): New method.
8526 (asm_language_data): Delete la_pass_by_reference initializer.
8527 (minimal_language_data): Likewise.
8528 * cp-abi.c (cp_pass_by_reference): Remove use of
8529 default_pass_by_reference.
8530 * d-lang.c (d_language_data): Likewise.
8531 * f-lang.c (f_language_data): Likewise.
8532 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8533 default_pass_by_reference.
8534 * go-lang.c (go_language_data): Likewise.
8535 * language.c (language_pass_by_reference): Update.
8536 (default_pass_by_reference): Delete.
8537 (unknown_language_data): Delete la_pass_by_reference
8538 initializer.
8539 (auto_language_data): Likewise.
8540 * language.h (struct language_data): Delete la_pass_by_reference
8541 field.
8542 (language_defn::pass_by_reference_info): New member function.
8543 (default_pass_by_reference): Delete declaration.
8544 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8545 initializer.
8546 * objc-lang.c (objc_language_data): Likewise.
8547 * opencl-lang.c (opencl_language_data): Likewise.
8548 * p-lang.c (pascal_language_data): Likewise.
8549 * rust-lang.c (rust_language_data): Likewise.
8550
8551 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8552
8553 * ada-lang.c (ada_read_var_value): Delete function, move
8554 implementation to...
8555 (ada_language::read_var_value): ...here.
8556 (ada_language_data): Delete la_read_var_value initializer.
8557 * c-lang.c (c_language_data): Likewise.
8558 (cplus_language_data): Likewise.
8559 (minimal_language_data): Likewise.
8560 * d-lang.c (d_language_data): Likewise.
8561 * f-lang.c (f_language_data): Likewise.
8562 * findvar.c (default_read_var_value): Rename to...
8563 (language_defn::read_var_value): ...this.
8564 * findvar.c (read_var_value): Update header comment, and change to
8565 call member function instead of function pointer.
8566 * go-lang.c (go_language_data): Likewise.
8567 * language.c (unknown_language_data): Delete la_read_var_value
8568 initializer.
8569 (auto_language_data): Likewise.
8570 * language.h (struct language_data): Delete la_read_var_value
8571 field.
8572 (language_defn::read_var_value): New member function.
8573 (default_read_var_value): Delete declaration.
8574 * m2-lang.c (m2_language_data): Delete la_read_var_value
8575 initializer.
8576 * objc-lang.c (objc_language_data): Likewise.
8577 * opencl-lang.c (opencl_language_data): Likewise.
8578 * p-lang.c (pascal_language_data): Likewise.
8579 * rust-lang.c (rust_language_data): Likewise.
8580 * value.h (default_read_var_value): Delete declaration.
8581
8582 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * ada-lang.c (ada_print_array_index): Delete function, move
8585 implementation to...
8586 (ada_language::print_array_index): ...here.
8587 (ada_language_data): Delete la_print_array_index initializer.
8588 * c-lang.c (c_language_data): Likewise.
8589 (cplus_language_data): Likewise.
8590 (minimal_language_data): Likewise.
8591 * d-lang.c (d_language_data): Likewise.
8592 * f-lang.c (f_language_data): Likewise.
8593 * go-lang.c (go_language_data): Likewise.
8594 * language.c (default_print_array_index): Delete function, move
8595 implementation to...
8596 (language_defn::print_array_index): ...here.
8597 (unknown_language_data): Delete la_print_array_index initializer.
8598 (auto_language_data): Likewise.
8599 * language.h (struct language_data): Delete la_print_array_index
8600 field.
8601 (language_defn::print_array_index): New member function.
8602 (LA_PRINT_ARRAY_INDEX): Update.
8603 (default_print_array_index): Delete declaration.
8604 * m2-lang.c (m2_language_data): Delete la_print_array_index
8605 initializer.
8606 * objc-lang.c (objc_language_data): Likewise.
8607 * opencl-lang.c (opencl_language_data): Likewise.
8608 * p-lang.c (pascal_language_data): Likewise.
8609 * rust-lang.c (rust_language_data): Likewise.
8610
8611 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8612
8613 * gdb/ada-lang.c (ada_language_defn): Convert to...
8614 (ada_language_data): ...this.
8615 (class ada_language): New class.
8616 (ada_language_defn): New static global.
8617 * gdb/c-lang.c (c_language_defn): Convert to...
8618 (c_language_data): ...this.
8619 (class c_language): New class.
8620 (c_language_defn): New static global.
8621 (cplus_language_defn): Convert to...
8622 (cplus_language_data): ...this.
8623 (class cplus_language): New class.
8624 (cplus_language_defn): New static global.
8625 (asm_language_defn): Convert to...
8626 (asm_language_data): ...this.
8627 (class asm_language): New class.
8628 (asm_language_defn): New static global.
8629 (minimal_language_defn): Convert to...
8630 (minimal_language_data): ...this.
8631 (class minimal_language): New class.
8632 (minimal_language_defn): New static global.
8633 * gdb/d-lang.c (d_language_defn): Convert to...
8634 (d_language_data): ...this.
8635 (class d_language): New class.
8636 (d_language_defn): New static global.
8637 * gdb/f-lang.c (f_language_defn): Convert to...
8638 (f_language_data): ...this.
8639 (class f_language): New class.
8640 (f_language_defn): New static global.
8641 * gdb/go-lang.c (go_language_defn): Convert to...
8642 (go_language_data): ...this.
8643 (class go_language): New class.
8644 (go_language_defn): New static global.
8645 * gdb/language.c (unknown_language_defn): Remove declaration.
8646 (current_language): Initialize to nullptr, real initialization is
8647 moved to _initialize_language.
8648 (languages): Delete global.
8649 (language_defn::languages): Define.
8650 (set_language_command): Use language_defn::languages.
8651 (set_language): Likewise.
8652 (range_error): Likewise.
8653 (language_enum): Likewise.
8654 (language_def): Likewise.
8655 (add_set_language_command): Use language_def::languages for the
8656 language list, and language_def to lookup language pointers.
8657 (skip_language_trampoline): Use language_defn::languages.
8658 (unknown_language_defn): Convert to...
8659 (unknown_language_data): ...this.
8660 (class unknown_language): New class.
8661 (unknown_language_defn): New static global.
8662 (auto_language_defn): Convert to...
8663 (auto_language_data): ...this.
8664 (class auto_language): New class.
8665 (auto_language_defn): New static global.
8666 (language_gdbarch_post_init): Use language_defn::languages.
8667 (_initialize_language): Initialize current_language.
8668 * gdb/language.h (struct language_defn): Rename to...
8669 (struct language_data): ...this.
8670 (struct language_defn): New.
8671 (auto_language_defn): Delete.
8672 (unknown_language_defn): Delete.
8673 (minimal_language_defn): Delete.
8674 (ada_language_defn): Delete.
8675 (asm_language_defn): Delete.
8676 (c_language_defn): Delete.
8677 (cplus_language_defn): Delete.
8678 (d_language_defn): Delete.
8679 (f_language_defn): Delete.
8680 (go_language_defn): Delete.
8681 (m2_language_defn): Delete.
8682 (objc_language_defn): Delete.
8683 (opencl_language_defn): Delete.
8684 (pascal_language_defn): Delete.
8685 (rust_language_defn): Delete.
8686 * gdb/m2-lang.c (m2_language_defn): Convert to...
8687 (m2_language_data): ...this.
8688 (class m2_language): New class.
8689 (m2_language_defn): New static global.
8690 * gdb/objc-lang.c (objc_language_defn): Convert to...
8691 (objc_language_data): ...this.
8692 (class objc_language): New class.
8693 (objc_language_defn): New static global.
8694 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8695 (opencl_language_data): ...this.
8696 (class opencl_language): New class.
8697 (opencl_language_defn): New static global.
8698 * gdb/p-lang.c (pascal_language_defn): Convert to...
8699 (pascal_language_data): ...this.
8700 (class pascal_language): New class.
8701 (pascal_language_defn): New static global.
8702 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8703 language pointer, update comment format.
8704 * gdb/rust-lang.c (rust_language_defn): Convert to...
8705 (rust_language_data): ...this.
8706 (class rust_language): New class.
8707 (rust_language_defn): New static global.
8708
8709 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8710
8711 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8712 member variable.
8713 <m_stmt_at_address>: New member variable.
8714 (lnp_state_machine::record_line): Don't record some lines, update
8715 tracking of is_stmt at the same address.
8716 (lnp_state_machine::lnp_state_machine): Initialise new member
8717 variables.
8718
8719 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8720
8721 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8722 "-include gnu-nat-mig.h".
8723 * gnu-nat-mig.h: New file.
8724 * gnu-nat.c: Include "gnu-nat-mig.h".
8725 (exc_server, msg_reply_server, notify_server,
8726 process_reply_server): Remove declarations.
8727
8728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8729
8730 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8731 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8732 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8733 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8734 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8735 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8736 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8737 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8738 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8739 to gnu_nat_target class.
8740 * gnu-nat.c: Likewise.
8741 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8742 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8743 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8744 object.
8745 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8746 instead of `gnu_target'.
8747
8748 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8749
8750 * i386-gnu-tdep.c: Include "gdbcore.h"
8751 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8752 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8753 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8754 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8755 i386_gnu_sigcontext_addr): New functions
8756 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8757 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8758 tdep.
8759
8760 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8761
8762 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8763 before fork_inferior call. Avoid calling it if target_is_pushed returns
8764 true.
8765
8766 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8767
8768 * gnu-nat.h (gnu_target): New variable declaration.
8769 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8770 gnu_target.
8771 * gnu-nat.c (gnu_target): New variable.
8772 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8773 add_thread_silent, and add_thread calls.
8774 (gnu_nat_target::create_inferior): Pass gnu_target to
8775 add_thread_silent, thread_change_ptid call.
8776 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8777 call.
8778
8779 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8780
8781 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8782 (gnu_nat_target::find_memory_regions): Remove unused
8783 `old_address' variable.
8784
8785 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8786
8787 * gnu-nat.c: Include "gdbarch.h".
8788
8789 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8790
8791 * reply_mig_hack.awk (Error return): Cast function through
8792 void *, to bypass compiler function call check.
8793
8794 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8795
8796 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8797 $(srcdir)/reply_mig_hack.awk.
8798
8799 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8800
8801 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8802
8803 2020-05-30 Jonny Grant <jg@jguk.org>
8804
8805 * configure.ac (ACX_BUGURL): change bug URL to https.
8806
8807 2020-05-30 Pedro Alves <palves@redhat.com>
8808
8809 * cp-support.c (replace_typedefs_template): New.
8810 (replace_typedefs_qualified_name): Handle
8811 DEMANGLE_COMPONENT_TEMPLATE.
8812
8813 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8816 dwarf2/index-cache.h, dwarf2/index-write.c,
8817 dwarf2/index-write.h, dwarf2/line-header.c,
8818 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8819 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8820 variables and fields from `dwarf2_per_objfile` to just
8821 `per_objfile` throughout.
8822
8823 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8824
8825 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8826 <push_dwarf_reg_entry_value>: Add comment.
8827
8828 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8829 Keith Seitz <keiths@redhat.com>
8830
8831 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8832 instead of PyEval_ReleaseLock.
8833 (class gdbpy_gil): Move to earlier in file.
8834 (finalize_python): Set gdb_python_initialized.
8835 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8836 when not initialized.
8837
8838 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8841 <push_dwarf_reg_entry_value>: Remove assert. Override
8842 per_objfile with caller_per_objfile.
8843
8844 2020-05-28 Tom de Vries <tdevries@suse.de>
8845
8846 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8847 PR gold/15646 workaround to symbol kind "type".
8848
8849 2020-05-27 Tom Tromey <tromey@adacore.com>
8850
8851 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8852
8853 2020-05-27 Tom Tromey <tromey@adacore.com>
8854
8855 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8856 Use htab_find_with_hash.
8857 <add_abbrev>: Remove "abbrev_number" parameter.
8858 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8859 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8860 (hash_abbrev): Add comment.
8861 (abbrev_table::lookup_abbrev): Move to header file.
8862 (abbrev_table::read): Update.
8863
8864 2020-05-27 Tom Tromey <tromey@adacore.com>
8865
8866 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8867 method.
8868 <canonical_name>: New member.
8869 <raw_name>: Rename from "name".
8870 (partial_die_info): Initialize canonical_name.
8871 (scan_partial_symbols): Check raw_name.
8872 (partial_die_parent_scope, partial_die_full_name)
8873 (add_partial_symbol, add_partial_subprogram)
8874 (add_partial_enumeration, load_partial_dies): Use "name" method.
8875 (partial_die_info::name): New method.
8876 (partial_die_info::read, guess_partial_die_structure_name)
8877 (partial_die_info::fixup): Update.
8878
8879 2020-05-27 Tom Tromey <tromey@adacore.com>
8880
8881 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8882 <get_ref_die_offset>: Inline.
8883 <get_ref_die_offset_complaint>: New method.
8884 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8885 (attribute::get_ref_die_offset_complaint): Rename from
8886 get_ref_die_offset. Just issue complaint.
8887
8888 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8889
8890 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8891
8892 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8893
8894 * exec.c (exec_file_attach): Use errno value of first openp failure.
8895
8896 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8897
8898 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8899 Don't close thread handle.
8900
8901 2020-05-27 Tom Tromey <tom@tromey.com>
8902 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8905 shared_ptr.
8906 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8907 member.
8908 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8909 dwarf2_per_bfd_objfile_data_key>: New globals.
8910 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8911 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8912 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8913 shared.
8914 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8915 short-circuit when sharing.
8916 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8917 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8918
8919 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8920
8921 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8922 to...
8923 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8924 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8925
8926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8929 build_name_components, find_name_components_bounds>:
8930 Add per_objfile parameter.
8931 (struct mapped_index) <symbol_name_at>: Likewise.
8932 (struct mapped_debug_names): Remove constructor.
8933 <dwarf2_per_objfile>: Remove field.
8934 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8935 (mapped_index_base::find_name_components_bounds,
8936 mapped_index_base::build_name_components,
8937 dw2_expand_symtabs_matching_symbol): Likewise.
8938 (class mock_mapped_index) <symbol_name_at>: Likewise.
8939 (check_match): Likewise.
8940 (check_find_bounds_finds): Likewise.
8941 (test_mapped_index_find_name_component_bounds): Update.
8942 (CHECK_MATCH): Update.
8943 (dw2_expand_symtabs_matching): Update.
8944 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8945 per_objfile parameter.
8946 <find_vec_in_debug_names>: Likewise.
8947 <m_per_objfile>: New field.
8948 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8949 parameter.
8950 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8951 (dw2_debug_names_iterator::next): Update.
8952 (dw2_debug_names_lookup_symbol): Update.
8953 (dw2_debug_names_expand_symtabs_for_function): Update.
8954 (dw2_debug_names_map_matching_symbols): Update.
8955 (dw2_debug_names_expand_symtabs_matching): Update.
8956 (dwarf2_read_debug_names): Update.
8957
8958 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8959
8960 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8961 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8962 move to dwarf2_per_objfile.
8963 <read_in_chain>: Remove.
8964 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8965 remove_all_cus, age_comp_units>: New methods.
8966 <m_dwarf2_cus>: New member.
8967 (struct dwarf2_per_cu_data) <cu>: Remove.
8968 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8969 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8970 moved to methods of dwarf2_per_objfile.
8971 (dwarf2_clear_marks): Remove.
8972 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8973 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8974 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8975 (dwarf2_per_objfile::remove_all_cus): New.
8976 (class free_cached_comp_units) <~free_cached_comp_units>:
8977 Update.
8978 (load_cu): Update.
8979 (dw2_do_instantiate_symtab): Adjust.
8980 (fill_in_sig_entry_from_dwo_entry): Adjust.
8981 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8982 (cutu_reader::cutu_reader): Likewise.
8983 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8984 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8985 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8986 and dwarf2_per_objfile::age_comp_units.
8987 (load_partial_comp_unit): Update.
8988 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8989 (process_queue): Likewise.
8990 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8991 backlink.
8992 (dwarf2_read_addr_index): Likewise.
8993 (follow_die_offset): Likewise.
8994 (dwarf2_fetch_die_loc_sect_off): Likewise.
8995 (dwarf2_fetch_constant_bytes): Likewise.
8996 (dwarf2_fetch_die_type_sect_off): Likewise.
8997 (follow_die_sig_1): Likewise.
8998 (load_full_type_unit): Likewise.
8999 (read_signatured_type): Likewise.
9000 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9001 (dwarf2_cu::~dwarf2_cu): Remove.
9002 (dwarf2_per_objfile::get_cu): New.
9003 (dwarf2_per_objfile::set_cu): New.
9004 (age_cached_comp_units): Rename to...
9005 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9006 to std::unordered_map.
9007 (free_one_cached_comp_unit): Rename to...
9008 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9009 to std::unordered_map.
9010 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9011 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9012 a dwarf2_per_objfile in data.
9013 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9014 (dwarf2_clear_marks): Remove.
9015
9016 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9019 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9020 (init_tu_and_read_dwo_dies): Likewise.
9021 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9022 (cutu_reader::cutu_reader): Likewise.
9023 (load_partial_comp_unit): Likewise.
9024 (process_psymtab_comp_unit): Update.
9025 (build_type_psymtabs_1): Update.
9026 (process_skeletonless_type_unit): Update.
9027 (load_full_comp_unit): Update.
9028 (find_partial_die): Update.
9029 (dwarf2_read_addr_index): Update.
9030 (read_signatured_type): Update.
9031
9032 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9033
9034 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9035 m_header_read_in>: New fields.
9036 <get_header>: New method.
9037 * dwarf2/read.c (per_cu_header_read_in): Remove.
9038 (dwarf2_per_cu_data::get_header): New.
9039 (dwarf2_per_cu_data::addr_size): Update.
9040 (dwarf2_per_cu_data::offset_size): Update.
9041 (dwarf2_per_cu_data::ref_addr_size): Update.
9042
9043 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9044
9045 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9046 (dw2_do_instantiate_symtab): Update.
9047 (queue_and_load_all_dwo_tus): Change parameter from
9048 dwarf2_per_cu_data to dwarf2_cu.
9049 (dwarf2_fetch_die_loc_sect_off): Update.
9050 (dwarf2_fetch_constant_bytes): Update.
9051 (dwarf2_fetch_die_type_sect_off): Update.
9052
9053 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9054
9055 * dwarf2/read.c (process_full_comp_unit,
9056 process_full_type_unit): Remove per_cu, per_objfile paramters.
9057 Add dwarf2_cu parameter.
9058 (process_queue): Update.
9059
9060 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * dwarf2/read.c (create_cu_from_index_list): Replace
9063 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9064 (create_cus_from_index_list): Likewise.
9065 (create_cus_from_index): Likewise.
9066 (create_signatured_type_table_from_index): Likewise.
9067 (create_cus_from_debug_names_list): Likewise.
9068 (create_cus_from_debug_names): Likewise.
9069 (dwarf2_read_gdb_index): Update.
9070 (dwarf2_read_debug_names): Update.
9071
9072 2020-05-27 Tom Tromey <tom@tromey.com>
9073 Simon Marchi <simon.marchi@efficios.com>
9074
9075 * dwarf2/read.h (struct dwarf2_per_objfile)
9076 <get_type_for_signatured_type, set_type_for_signatured_type>:
9077 New methods.
9078 <m_type_map>: New member.
9079 (struct signatured_type) <type>: Remove.
9080 * dwarf2/read.c
9081 (dwarf2_per_objfile::get_type_for_signatured_type,
9082 dwarf2_per_objfile::set_type_for_signatured_type): New.
9083 (get_signatured_type): Use new methods.
9084
9085 2020-05-27 Tom Tromey <tom@tromey.com>
9086 Simon Marchi <simon.marchi@efficios.com>
9087
9088 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9089 (struct dwarf2_per_objfile) <type_units>: New member.
9090 <get_type_unit_group_unshareable>: New method.
9091 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9092 num_symtabs, symtabs>: Remove; move to
9093 type_unit_group_unshareable.
9094 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9095 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9096 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9097
9098 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * dwarf2/read.h (struct dwarf2_per_cu_data):
9101 <dwarf2_per_objfile>: Remove.
9102 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9103 dwarf2_per_objfile.
9104 (create_signatured_type_table_from_index): Likewise.
9105 (create_signatured_type_table_from_debug_names): Likewise.
9106 (create_debug_type_hash_table): Likewise.
9107 (fill_in_sig_entry_from_dwo_entry): Likewise.
9108 (create_type_unit_group): Likewise.
9109 (read_comp_units_from_section): Likewise.
9110 (create_cus_hash_table): Likewise.
9111
9112 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9115 dwarf2_per_cu_data::dwarf2_per_objfile.
9116 (compute_compunit_symtab_includes): Likewise.
9117 (dwarf2_cu::start_symtab): Likewise.
9118
9119 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9120
9121 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9122 parameter.
9123 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9124 (read_namespace_alias): Update.
9125 (lookup_die_type): Update.
9126 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9127 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9128 Update.
9129 (disassemble_dwarf_expression): Update.
9130
9131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * dwarf2/read.h (struct dwarf2_queue_item): Add
9134 dwarf2_per_objfile parameter, assign new parameter.
9135 <per_objfile>: New field.
9136 * dwarf2/read.c (free_one_cached_comp_unit): Add
9137 dwarf2_per_objfile parameter.
9138 (queue_comp_unit): Likewise.
9139 (dw2_do_instantiate_symtab): Update.
9140 (process_psymtab_comp_unit): Update.
9141 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9142 (process_imported_unit_die): Update.
9143 (queue_and_load_dwo_tu): Update.
9144 (follow_die_offset): Update.
9145 (follow_die_sig_1): Update.
9146
9147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9150 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9151 (read_call_site_scope): Assign per_objfile.
9152 (dwarf2_per_cu_data::objfile): Remove.
9153 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9154 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9155 dwarf2_per_objfile parameter.
9156 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9157 dwarf2_per_objfile parameter.
9158 (dwarf_expr_reg_to_entry_parameter): Add output
9159 dwarf2_per_objfile parameter.
9160 (locexpr_get_frame_base): Update.
9161 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9162 <push_dwarf_reg_entry_value>: Update.
9163 <call_site_to_target_addr>: Update.
9164 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9165 parameter.
9166 (value_of_dwarf_reg_entry): Update.
9167 (rw_pieced_value): Update.
9168 (indirect_synthetic_pointer): Update.
9169 (dwarf2_evaluate_property): Update.
9170 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9171 parameter.
9172 (locexpr_read_variable): Update.
9173 (locexpr_get_symbol_read_needs): Update.
9174 (loclist_read_variable): Update.
9175
9176 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9179 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9180 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9181 parameter.
9182 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9183 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9184 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9185 parameter.
9186 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9187 sect_variable_value): Add dwarf2_per_objfile parameter.
9188 (class dwarf_evaluate_loc_desc) <dwarf_call,
9189 dwarf_variable_value>: Update.
9190 (fetch_const_value_from_synthetic_pointer): Add
9191 dwarf2_per_objfile parameter.
9192 (fetch_const_value_from_synthetic_pointer): Update.
9193 (coerced_pieced_ref): Update.
9194 (class symbol_needs_eval_context) <dwarf_call,
9195 dwarf_variable_value>: Update.
9196 (dwarf2_compile_expr_to_ax): Update.
9197
9198 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9201 parameter.
9202 (dwarf2_evaluate_loc_desc_full): Update.
9203
9204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9207 parameter.
9208 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9209 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9210 dwarf2_per_objfile parameter.
9211 (decode_debug_loc_dwo_addresses): Likewise.
9212 (dwarf2_find_location_expression): Update.
9213 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9214 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9215 parameter.
9216 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9217 parameter.
9218 (locexpr_describe_location_1): Likewise.
9219 (locexpr_describe_location): Update.
9220
9221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9224 Remove.
9225 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9226 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9227 (dwarf2_compile_property_to_c): Update.
9228 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9229 use text offset from objfile.
9230 (locexpr_tracepoint_var_ref): Update.
9231 (locexpr_generate_c_location): Update.
9232 (loclist_describe_location): Update.
9233 (loclist_tracepoint_var_ref): Update.
9234 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9235 dwarf2_per_objfile parameter.
9236 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9237 use text offset from objfile.
9238 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9239
9240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * dwarf2/expr.h (struct dwarf_expr_context)
9243 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9244 <offset>: Remove.
9245 <per_objfile>: New member.
9246 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9247 dwarf2_per_objfile parameter. Don't set offset, set
9248 per_objfile.
9249 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9250 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9251 a dwarf2_per_objfile object instead of an offset.
9252 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9253 constructor.
9254 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9255 to dwarf2_expr_executor constructor. Don't set offset.
9256 (dwarf2_fetch_cfa_info): Update.
9257 (struct dwarf2_frame_cache) <text_offset>: Remove.
9258 <per_objfile>: New field.
9259 (dwarf2_frame_cache): Update.
9260 (dwarf2_frame_prev_register): Update.
9261 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9262 <dwarf_evaluate_loc_desc>: Add constructor.
9263 (dwarf2_evaluate_loc_desc_full): Update.
9264 (dwarf2_locexpr_baton_eval): Update.
9265 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9266 Add constructor.
9267 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9268
9269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9272 addr_sized_int_type>: Move to dwarf2_cu.
9273 <int_type>: Move to dwarf2_per_objfile.
9274 (struct dwarf2_per_objfile) <int_type>: Move here.
9275 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9276 addr_sized_int_type>: Move here.
9277 (read_func_scope): Update.
9278 (read_array_type): Update.
9279 (read_tag_string_type): Update.
9280 (attr_to_dynamic_prop): Update.
9281 (dwarf2_per_cu_data::int_type): Rename to...
9282 (dwarf2_per_objfile::int_type): ... this.
9283 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9284 (dwarf2_cu::addr_sized_int_type): ... this.
9285 (read_subrange_type): Update.
9286 (dwarf2_per_cu_data::addr_type): Rename to...
9287 (dwarf2_cu::addr_type): ... this.
9288 (set_die_type): Update.
9289
9290 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9291
9292 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9293 data through per_cu->cu.
9294
9295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9298 dwarf2_per_cu_data parameter fo dwarf2_cu.
9299 (lookup_dwo_type_unit): Likewise.
9300 (read_cutu_die_from_dwo): Likewise.
9301 (lookup_dwo_unit): Likewise.
9302 (open_and_init_dwo_file): Likewise.
9303 (lookup_dwo_cutu): Likewise.
9304 (lookup_dwo_comp_unit): Likewise.
9305 (lookup_dwo_type_unit): Likewise.
9306 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9307 (cutu_reader::cutu_reader): Update.
9308
9309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9312 parameter.
9313 (process_full_type_unit): Likewise.
9314 (process_queue): Update.
9315
9316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * dwarf2/read.c (recursively_compute_inclusions): Add
9319 dwarf2_per_objfile parameter.
9320 (compute_compunit_symtab_includes): Likewise.
9321 (process_cu_includes): Update.
9322
9323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9324
9325 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9326 parameter.
9327 (create_type_unit_group): Update.
9328 (process_psymtab_comp_unit_reader): Update.
9329 (build_type_psymtabs_reader): Update.
9330
9331 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9334 object through m_this_cu->cu.
9335
9336 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9337
9338 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9339 the info parameter.
9340 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9341
9342 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9343
9344 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9345 per_objfile parameter.
9346 (load_full_type_unit): Add per_objfile parameter.
9347 (read_signatured_type): Likewise.
9348 (load_full_comp_unit): Likewise.
9349 (load_cu): Likewise.
9350 (dw2_do_instantiate_symtab): Likewise.
9351 (dw2_get_file_names): Likewise.
9352 (dw2_map_symtabs_matching_filename): Update.
9353 (dw_expand_symtabs_matching_file_matcher): Update.
9354 (dw2_map_symbol_filenames): Update.
9355 (process_psymtab_comp_unit): Add per_objfile parameter.
9356 (build_type_psymtabs_1): Update.
9357 (process_skeletonless_type_unit): Update.
9358 (dwarf2_build_psymtabs_hard): Update.
9359 (load_partial_comp_unit): Add per_objfile parameter.
9360 (scan_partial_symbols): Update.
9361 (load_full_comp_unit): Add per_objfile parameter.
9362 (process_imported_unit_die): Update.
9363 (create_cus_hash_table): Update.
9364 (find_partial_die): Update.
9365 (dwarf2_read_addr_index): Update.
9366 (follow_die_offset): Update.
9367 (dwarf2_fetch_die_loc_sect_off): Update.
9368 (dwarf2_fetch_constant_bytes): Update.
9369 (dwarf2_fetch_die_type_sect_off): Update.
9370 (follow_die_sig_1): Update.
9371 (load_full_type_unit): Add per_objfile parameter.
9372 (read_signatured_type): Likewise.
9373
9374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9377 of objfile_name.
9378
9379 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9380
9381 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9382 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9383 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9384 field.
9385 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9386 (create_cus_from_index): Update.
9387 (dwarf2_read_gdb_index): Update.
9388 (create_cus_from_debug_names): Update.
9389 (dwarf2_read_debug_names): Update.
9390 (get_abbrev_section_for_cu): Update.
9391 (create_all_comp_units): Update.
9392 (read_attribute_value): Update.
9393 (get_debug_line_section): Update.
9394 * dwarf2/index-cache.c (index_cache::store): Update.
9395 * dwarf2/index-write.c (save_gdb_index_command): Update.
9396 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9397
9398 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9401 member.
9402 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9403 dwarf2_per_cu_data::per_bfd.
9404 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9405 (create_type_unit_group): Likewise.
9406 (queue_comp_unit): Remove reference to
9407 per_cu->dwarf2_per_objfile.
9408 (maybe_queue_comp_unit): Likewise.
9409 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9410 (create_cus_hash_table): Assign new field.
9411
9412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9413
9414 * dwarf2/read.c: Replace
9415 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9416 dwarf2_cu->per_objfile throughout.
9417
9418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9421 parameter, don't use per_cu->dwarf2_per_objfile.
9422 (dw2_instantiate_symtab): Likewise.
9423 (dw2_find_last_source_symtab): Update.
9424 (dw2_map_expand_apply): Update.
9425 (dw2_lookup_symbol): Update.
9426 (dw2_expand_symtabs_for_function): Update.
9427 (dw2_expand_all_symtabs): Update.
9428 (dw2_expand_symtabs_with_fullname): Update.
9429 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9430 don't use per_cu->dwarf2_per_objfile.
9431 (dw2_expand_marked_cus): Update.
9432 (dw2_find_pc_sect_compunit_symtab): Update.
9433 (dw2_debug_names_lookup_symbol): Update.
9434 (dw2_debug_names_expand_symtabs_for_function): Update.
9435 (dw2_debug_names_map_matching_symbols): Update.
9436 (dwarf2_psymtab::expand_psymtab): Update.
9437
9438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9441 <per_objfile>: New member.
9442 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9443 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9444 call to dwarf2_cu.
9445 (cutu_reader::cutu_reader): Update.
9446 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9447
9448 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9451 struct dwarf2_per_objfile.
9452 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9453 dwarf2_per_bfd.
9454 * dwarf2/read.c (set_die_type): Update.
9455 (get_die_type_at_offset): Update.
9456
9457 2020-05-27 Tom Tromey <tom@tromey.com>
9458 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9461 method.
9462 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9463 get_symtab, set_symtab>: New methods.
9464 <m_symtabs>: New field.
9465 (struct dwarf2_psymtab): Derive from partial_symtab.
9466 <readin_p, get_compunit_symtab>: Declare methods.
9467 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9468 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9469 New methods.
9470 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9471 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9472 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9473 (dw2_symtab_iter_next, dw2_print_stats)
9474 (dw2_expand_symtabs_with_fullname)
9475 (dw2_expand_symtabs_matching_one)
9476 (dw_expand_symtabs_matching_file_matcher)
9477 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9478 (dw2_debug_names_iterator::next)
9479 (dw2_debug_names_map_matching_symbols)
9480 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9481 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9482 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9483 New methods.
9484 (get_compunit_symtab, process_full_comp_unit)
9485 (process_full_type_unit): Update.
9486 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9487
9488 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9489
9490 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9491 then introduce a new dwarf2_per_objfile type.
9492 <read_line_string>: Move to the new dwarf2_per_objfile type.
9493 <objfile>: Likewise.
9494 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9495 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9496 dwarf2_per_objfile->per_bfd.
9497 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9498 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9499 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9500 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9501 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9502 (dwarf2_per_objfile::locate_sections): Rename to...
9503 (dwarf2_per_bfd::locate_sections): ... this.
9504 (dwarf2_per_objfile::get_cutu): Rename to...
9505 (dwarf2_per_bfd::get_cutu): ... this.
9506 (dwarf2_per_objfile::get_cu): Rename to...
9507 (dwarf2_per_bfd::get_cu): ... this.
9508 (dwarf2_per_objfile::get_tu): Rename to...
9509 (dwarf2_per_bfd::get_tu): ... this.
9510 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9511 (dwarf2_per_bfd::allocate_per_cu): ... this.
9512 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9513 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9514 (get_gdb_index_contents_ftype): Change parameter from
9515 dwarf2_per_objfile to dwarf2_per_bfd.
9516 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9517 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9518
9519 2020-05-27 Tom Tromey <tom@tromey.com>
9520 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9523 (allocate_piece_closure): Set "per_objfile" member.
9524 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9525 (locexpr_describe_location, loclist_describe_location): Use new
9526 member.
9527 * dwarf2/read.c (read_call_site_scope)
9528 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9529 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9530 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9531 handle_data_member_location): Set per_objfile member.
9532 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9533 member.
9534 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9535
9536 2020-05-27 Tom Tromey <tom@tromey.com>
9537
9538 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9539 allocate_signatured_type>: Declare new methods.
9540 <m_num_psymtabs>: New member.
9541 (struct dwarf2_per_cu_data) <index>: New member.
9542 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9543 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9544 (create_cu_from_index_list): Use allocate_per_cu.
9545 (create_signatured_type_table_from_index)
9546 (create_signatured_type_table_from_debug_names)
9547 (create_debug_type_hash_table, add_type_unit)
9548 (read_comp_units_from_section): Use allocate_signatured_type.
9549
9550 2020-05-27 Tom Tromey <tom@tromey.com>
9551
9552 * psymtab.c (partial_map_expand_apply)
9553 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9554 (psym_lookup_global_symbol_language)
9555 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9556 (psym_print_stats, psym_expand_symtabs_for_function)
9557 (psym_map_symbol_filenames, psym_map_matching_symbols)
9558 (psym_expand_symtabs_matching)
9559 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9560 (maintenance_check_psymtabs): Update.
9561 * psympriv.h (struct partial_symtab) <readin_p,
9562 get_compunit_symtab>: Add objfile parameter.
9563 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9564 Likewise.
9565 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9566 get_compunit_symtab>: Likewise.
9567 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9568
9569 2020-05-27 Tom Tromey <tom@tromey.com>
9570
9571 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9572 member.
9573 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9574 (create_cu_from_index_list)
9575 (create_signatured_type_table_from_index)
9576 (create_signatured_type_table_from_debug_names)
9577 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9578 (dwarf2_create_include_psymtab)
9579 (create_debug_type_hash_table, add_type_unit)
9580 (create_type_unit_group, read_comp_units_from_section)
9581 (dwarf2_compute_name, create_cus_hash_table)
9582 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9583 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9584 obstack.
9585 (dw2_get_real_path): Likewise. Change argument to
9586 dwarf2_per_objfile.
9587
9588 2020-05-27 Luis Machado <luis.machado@linaro.org>
9589
9590 PR tdep/26000
9591 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9592 for ldrd (immediate).
9593
9594 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9595
9596 * command.h: Add comment giving the name of class_tui.
9597 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9598 create the fake command for the help for class_tui.
9599
9600 2020-05-26 Tom Tromey <tromey@adacore.com>
9601
9602 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9603 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9604 (val_atr): New function.
9605 (value_val_atr): Use it.
9606 * ada-valprint.c (print_optional_low_bound): Change low bound
9607 handling for enums.
9608 (val_print_packed_array_elements): Don't call discrete_position.
9609 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9610 discrete_position for enum types.
9611 * language.c (default_print_array_index): Change type.
9612 * language.h (struct language_defn) <la_print_array_index>: Add
9613 index_type parameter, change type of index_value.
9614 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9615 (default_print_array_index): Update.
9616 * valprint.c (maybe_print_array_index): Don't call
9617 value_from_longest. Update.
9618 (value_print_array_elements): Don't call discrete_position.
9619
9620 2020-05-26 Tom Tromey <tromey@adacore.com>
9621
9622 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9623 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9624
9625 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9626
9627 PR gdb/13519
9628 * avr-tdep.c (avr_integer_to_address): Return data or code
9629 address accordingly to the second 'type' argument of the
9630 function.
9631
9632 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9633
9634 * infcmd.c, inferior.h: (construct_inferior_arguments):
9635 Moved function from here to gdbsupport/common-inferior.{h,cc}
9636
9637 2020-05-23 Tom Tromey <tom@tromey.com>
9638
9639 Revert commit eca1f90c:
9640 * NEWS: Remove entry for completion styling.
9641 * completer.c (_rl_completion_prefix_display_length): Move
9642 declaration later.
9643 (gdb_fnprint): Revert.
9644 (gdb_display_match_list_1): Likewise.
9645 * cli/cli-style.c (completion_prefix_style)
9646 (completion_difference_style, completion_suffix_style): Remove.
9647 (_initialize_cli_style): Revert.
9648 * cli/cli-style.h (completion_prefix_style)
9649 (completion_difference_style, completion_suffix_style): Don't
9650 declare.
9651
9652 2020-05-24 Pedro Alves <palves@redhat.com>
9653
9654 * symtab.c (completion_list_add_name): Return boolean indication
9655 of whether the symbol matched.
9656 (completion_list_add_symbol): Don't try to remove C++ aliases if
9657 the symbol didn't match in the first place.
9658 * symtab.h (completion_list_add_name): Return bool.
9659
9660 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9661
9662 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9663 type::field.
9664
9665 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9666
9667 GDB 9.2 released.
9668
9669 2020-05-23 Tom Tromey <tom@tromey.com>
9670
9671 * NEWS: Add entry for completion styling.
9672 * completer.c (_rl_completion_prefix_display_length): Move
9673 declaration earlier.
9674 (gdb_fnprint): Use completion_style.
9675 (gdb_display_match_list_1): Likewise.
9676 * cli/cli-style.c (completion_prefix_style)
9677 (completion_difference_style, completion_suffix_style): New
9678 globals.
9679 (_initialize_cli_style): Register new globals.
9680 * cli/cli-style.h (completion_prefix_style)
9681 (completion_difference_style, completion_suffix_style): Declare.
9682
9683 2020-05-23 Pedro Alves <palves@redhat.com>
9684
9685 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9686 (parse_escape): Use ISDIGIT instead of isdigit.
9687 (puts_debug): Use gdb_isprint instead of isprint.
9688 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9689 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9690 ISSPACE instead of isspace.
9691 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9692 instead of isspace.
9693 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9694 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9695 instead of isxdigit and ISDIGIT instead of isdigit.
9696
9697 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9698
9699 * gdbtypes.h (struct type) <field>: New method.
9700 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9701 or type::field.
9702
9703 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9706 (TYPE_FIELDS): Use type::fields. Change all call sites that
9707 modify the propery to use type::set_fields instead.
9708
9709 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9712 type::num_fields instead.
9713
9714 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9717 methods.
9718 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9719 that modify the number of fields to use type::set_num_fields
9720 instead.
9721
9722 2020-05-22 Tom Tromey <tromey@adacore.com>
9723
9724 * compile/compile-object-load.h (munmap_list_free): Don't
9725 declare.
9726
9727 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9728
9729 * annotate.c (annotate_source_line): Update return type, add call
9730 to update current symtab and line.
9731 * annotate.h (annotate_source_line): Update return type, and
9732 extend header comment.
9733 * source.c (info_line_command): Check annotation_level before
9734 calling annotate_source_line.
9735 * stack.c (print_frame_info): If calling annotate_source_line
9736 returns true, then don't print any other source line information.
9737
9738 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9741
9742 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * coffread.c (patch_type): Remove NULL check before xfree.
9745 * corefile.c (set_gnutarget): Likewise.
9746 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9747 * exec.c (build_section_table): Likewise.
9748 * remote.c (remote_target::pass_signals): Likewise.
9749 * utils.c (n_spaces): Likewise.
9750 * cli/cli-script.c (document_command): Likewise.
9751 * i386-windows-tdep.c (core_process_module_section): Likewise.
9752 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9753
9754 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * symfile.c (reread_symbols): Clear objfile's section_offsets
9757 vector and section indices, re-compute them by calling
9758 sym_offsets.
9759
9760 2020-05-20 Tom Tromey <tromey@adacore.com>
9761
9762 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9763 (desc_one_bound, desc_index_type): Compute field name.
9764
9765 2020-05-20 Tom de Vries <tdevries@suse.de>
9766
9767 PR symtab/25833
9768 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9769
9770 2020-05-20 Alan Modra <amodra@gmail.com>
9771
9772 PR 25993
9773 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9774 bfd_set_filename.
9775 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9776 passed to bfd_set_filename.
9777 * symfile-mem.c (add_vsyscall_page): Likewise for string
9778 passed to symbol_file_add_from_memory.
9779 (symbol_file_add_from_memory): Make name param a const char* and
9780 don't strdup.
9781
9782 2020-05-20 Alan Modra <amodra@gmail.com>
9783
9784 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9785 rather than accessing bfd->filename directly.
9786 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9787 and use bfd_section_name.
9788 * dwarf2/frame.c (decode_frame_entry): Likewise.
9789 * exec.c (exec_set_section_address): Likewise.
9790 * solib-aix.c (solib_aix_bfd_open): Likewise.
9791 * stap-probe.c (get_stap_base_address): Likewise.
9792 * symfile.c (reread_symbols): Likewise.
9793
9794 2020-05-19 Tom Tromey <tromey@adacore.com>
9795
9796 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9797
9798 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9801
9802 2020-05-19 Pedro Alves <palves@redhat.com>
9803
9804 * NEWS (set exec-file-mismatch): Adjust entry.
9805 * exec.c: Include "build-id.h".
9806 (validate_exec_file): Try to match build IDs instead of filenames.
9807 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9808 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9809 and pass down 'warn_if_slow'.
9810 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9811 gdb_bfd_open_closure to pass it down.
9812 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9813
9814 2020-05-19 Pedro Alves <palves@redhat.com>
9815
9816 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9817 * target.c (target_fileio_open_1): Rename to target_fileio_open
9818 and make extern. Use bool.
9819 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9820 (target_fileio_read_alloc_1): Adjust.
9821 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9822 (target_fileio_open_warn_if_slow): Delete declaration.
9823
9824 2020-05-19 Pedro Alves <palves@redhat.com>
9825
9826 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9827 Adjust all callers.
9828
9829 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9830
9831 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9832 whether disp is negative.
9833
9834 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * symfile.h (struct symfile_segment_data)
9837 <~symfile_segment_data>: Remove.
9838 <segment_info>: Change to std::vector.
9839 * symfile.c (default_symfile_segments): Update.
9840 * elfread.c (elf_symfile_segments): Update.
9841
9842 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9845 <segments>: New.
9846 <segment_bases, segment_sizes>: Remove.
9847 * symfile.c (default_symfile_segments): Update.
9848 * elfread.c (elf_symfile_segments): Update.
9849 * remote.c (remote_target::get_offsets): Update.
9850 * solib-target.c (solib_target_relocate_section_addresses):
9851 Update.
9852
9853 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * symfile.h (struct symfile_segment_data): Initialize fields.
9856 <~symfile_segment_data>: Add.
9857 (symfile_segment_data_up): New.
9858 (struct sym_fns) <sym_segments>: Return a
9859 symfile_segment_data_up.
9860 (default_symfile_segments): Return a symfile_segment_data_up.
9861 (free_symfile_segment_data): Remove.
9862 (get_symfile_segment_data): Return a symfile_segment_data_up.
9863 * symfile.c (default_symfile_segments): Likewise.
9864 (get_symfile_segment_data): Likewise.
9865 (free_symfile_segment_data): Remove.
9866 (symfile_find_segment_sections): Update.
9867 * elfread.c (elf_symfile_segments): Return a
9868 symfile_segment_data_up.
9869 * remote.c (remote_target::get_offsets): Update.
9870 * solib-target.c (solib_target_relocate_section_addresses):
9871 Update.
9872 * symfile-debug.c (debug_sym_segments): Return a
9873 symfile_segment_data_up.
9874
9875 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9876
9877 PR build/25981
9878 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9879 Hardcode register numbers.
9880
9881 PR build/25981
9882 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9883 procfs_find_LDT_entry): Remove.
9884 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9885 procfs_find_LDT_entry): Remove.
9886 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9887 Remove.
9888
9889 2020-05-17 Pedro Alves <palves@redhat.com>
9890 Andrew Burgess <andrew.burgess@embecosm.com>
9891 Keno Fischer <keno@juliacomputing.com>
9892
9893 PR gdb/25741
9894 * breakpoint.c (build_target_condition_list): Update comments.
9895 (build_target_command_list): Update comments and skip matching
9896 locations.
9897 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9898 a separate function. Simplify "set breakpoint auto-hw off"
9899 handling.
9900 (insert_breakpoints): Update comment.
9901 (tracepoint_locations_match): New parameter. For breakpoints,
9902 compare location types too, if the caller wants to.
9903 (handle_automatic_hardware_breakpoints): New functions.
9904 (bp_location_is_less_than): Also sort by location type and
9905 hardware breakpoint length.
9906 (update_global_location_list): Handle "set breakpoint auto-hw on"
9907 here.
9908 (update_breakpoint_locations): Ask breakpoint_locations_match to
9909 ignore location types.
9910
9911 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9912
9913 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9914 type::name instead.
9915
9916 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * gdbtypes.h (struct type) <name, set_name>: New methods.
9919 (TYPE_CODE): Use type::name. Change all call sites used to set
9920 the name to use type::set_name instead.
9921
9922 2020-05-16 Tom Tromey <tom@tromey.com>
9923
9924 * top.c (quit_force): Update.
9925 * infrun.c (handle_no_resumed): Update.
9926 * top.h (all_uis): New function.
9927 (ALL_UIS): Remove.
9928
9929 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9932
9933 2020-05-16 Pedro Alves <palves@redhat.com>
9934
9935 * ia64-linux-nat.c
9936 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9937 Declare method.
9938 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9939
9940 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9943 (sparc64_adi_info): Likewise.
9944
9945 2020-05-15 Tom Tromey <tom@tromey.com>
9946
9947 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9948 block_objfile.
9949 (lookup_objfile_from_block): Remove.
9950 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9951 (lookup_global_symbol): Use block_objfile.
9952 * symtab.h (lookup_objfile_from_block): Don't declare.
9953 * printcmd.c (clear_dangling_display_expressions): Use
9954 block_objfile.
9955 * parse.c (operator_check_standard): Use block_objfile.
9956
9957 2020-05-15 Tom Tromey <tom@tromey.com>
9958
9959 * language.c (language_alloc_type_symbol): Set
9960 SYMBOL_SECTION.
9961 * symtab.c (initialize_objfile_symbol): Remove.
9962 (allocate_symbol): Remove.
9963 (allocate_template_symbol): Remove.
9964 * dwarf2/read.c (fixup_go_packaging): Use "new".
9965 (new_symbol): Use "new".
9966 (read_variable): Don't call initialize_objfile_symbol. Use
9967 "new".
9968 (read_func_scope): Use "new".
9969 * xcoffread.c (process_xcoff_symbol): Don't call
9970 initialize_objfile_symbol.
9971 (SYMBOL_DUP): Remove.
9972 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9973 "new".
9974 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9975 (allocate_template_symbol): Don't declare.
9976 (struct symbol): Add copy constructor. Change defaults.
9977 * jit.c (finalize_symtab): Use "new".
9978 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9979 Use "new".
9980 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9981 (common_block_end): Use "new".
9982 * mdebugread.c (parse_symbol): Use "new".
9983 (new_symbol): Likewise.
9984
9985 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9986
9987 * NEWS: Mention changes to help and apropos.
9988
9989 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990
9991 * command.h (enum command_class): Improve comments, document
9992 that class_alias is for user-defined aliases, give the class
9993 name for each class, remove unused class_xdb.
9994 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9995 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9996 by a precise class.
9997 * infcmd.c (_initialize_infcmd): Likewise.
9998 * reverse.c (_initialize_reverse): Likewise.
9999 * stack.c (_initialize_stack): Likewise.
10000 * symfile.c (_initialize_symfile): Likewise.
10001 * tracepoint.c (_initialize_tracepoint): Likewise.
10002
10003 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10004
10005 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10006 when their aliased command is traversed.
10007 (help_cmd): Add fput_command_names_styled call to
10008 output command name and aliases when command has an alias.
10009
10010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10011
10012 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10013 * cli/cli-decode.c (help_cmd_list): Declare as static,
10014 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10015 a command together with the command.
10016 (fput_command_name_styled, fput_command_names_styled): New functions.
10017 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10018 fput_command_name_styled.
10019 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10020 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10021
10022 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10023
10024 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10025 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10026 * command.h (cmd_show_list): Likewise.
10027 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10028 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10029
10030 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10031
10032 * unittests/command-def-selftests.c (traverse_command_structure):
10033 Verify all commands of a list have the same prefix command and
10034 that only the top cmdlist commands have a null prefix.
10035
10036 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10037
10038 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10039 as prefix, not one of its aliases.
10040 (set_cmd_prefix): Remove.
10041 (do_add_cmd): Centralize the setting of the prefix of a command, when
10042 command is defined after its full chain of prefix commands.
10043 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10044 (add_setshow_cmd_full): Likewise.
10045 (update_prefix_field_of_prefixed_commands): New function.
10046 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10047 update_prefix_field_of_prefixed_commands.
10048 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10049 addresses of remote_set_cmdlist and remote_show_cmdlist given
10050 as argument, not the address of an argument.
10051 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10052 * gdb/remote.c (_initialize_remote): Likewise.
10053
10054 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10055
10056 * cli/cli-cmds.c (alias_command): Check for an existing alias
10057 using lookup_cmd_composition, as valid_command_p is too strict
10058 and forbids aliases that are the prefix of an existing alias
10059 or command.
10060 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10061 command is properly recognised as a valid command.
10062
10063 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10064
10065 * unittests/help-doc-selftests.c: Rename to
10066 unittests/command-def-selftests.c
10067 * unittests/command-def-selftests.c (help_doc_tests): Update some
10068 comments.
10069 (command_structure_tests, traverse_command_structure): New namespace
10070 and function.
10071 (command_structure_invariants_tests): New function.
10072 (_initialize_command_def_selftests) Renamed from
10073 _initialize_help_doc_selftests, register command_structure_invariants
10074 selftest.
10075
10076 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10077
10078 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10079 an alias of 'show'.
10080
10081 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10082
10083 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10084 ada_is_fixed_point_type. Update all callers.
10085 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10086 all callers.
10087 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10088 Update all callers.
10089 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10090 print_fixed_point_type. Update all callers.
10091 * ada-valprint.c (ada_value_print_num): Replace call to
10092 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10093
10094 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10095
10096 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10097 processors.
10098 (cpu_supports_bts): Add CV_AMD case.
10099
10100 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10101 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * infrun.c (stop_all_threads): Collect multiple wait events at
10104 each pass.
10105
10106 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10109 type::code instead.
10110
10111 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * gdbtypes.h (struct type) <code, set_code>: New methods.
10114 (TYPE_CODE): Use type::code. Change all call sites used to set
10115 the code to use type::set_code instead.
10116
10117 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10118 Tom de Vries <tdevries@suse.de>
10119 Pedro Alves <palves@redhat.com>
10120
10121 PR threads/25478
10122 * infrun.c (stop_all_threads): Do NOT ignore
10123 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10124 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10125 received.
10126 (handle_no_resumed): Remove code handling a live inferior with no
10127 threads.
10128 * remote.c (has_single_non_exited_thread): New.
10129 (remote_target::update_thread_list): Do not delete a thread if is
10130 the last thread of the process.
10131 * thread.c (thread_select): Call delete_exited_threads instead of
10132 prune_threads.
10133
10134 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10135
10136 * infrun.c (stop_all_threads): Enable/disable thread events of all
10137 targets. Move a debug message denoting the end of the function
10138 into the SCOPED_EXIT block.
10139
10140 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10141
10142 * process-stratum-target.h: Include <set>.
10143 (all_non_exited_process_targets, switch_to_target_no_thread): New
10144 function declarations.
10145 * process-stratum-target.c (all_non_exited_process_targets)
10146 (switch_to_target_no_thread): New function implementations.
10147
10148 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10149
10150 * infrun.c (handle_inferior_event): Extract out a piece of code
10151 into...
10152 (mark_non_executing_threads): ...this new function.
10153
10154 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10155
10156 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10157 use.
10158
10159 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10160
10161 * regcache.c (regcache_read_pc_protected): New function
10162 implementation that returns 0 if the PC cannot read via
10163 'regcache_read_pc'.
10164 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10165 instead of 'regcache_read_pc'.
10166 (keep_going_pass_signal): Ditto.
10167
10168 2020-05-13 Tom Tromey <tromey@adacore.com>
10169
10170 * ada-lang.c (align_value): Remove.
10171 (ada_template_to_fixed_record_type_1): Use align_up.
10172
10173 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10174
10175 * async-event.c: Update the copyright year.
10176 * async-event.h: Update the copyright year.
10177
10178 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * objfiles.h (is_addr_in_objfile,
10181 shared_objfile_contains_address_p): Return bool.
10182 * objfile.c (is_addr_in_objfile,
10183 shared_objfile_contains_address_p): Return bool.
10184
10185 2020-05-11 Tom Tromey <tromey@adacore.com>
10186
10187 * cli/cli-cmds.c (info_command): Restore.
10188 (_initialize_cli_cmds): Use add_prefix_command for "info".
10189 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10190
10191 2020-05-11 Tom Tromey <tromey@adacore.com>
10192
10193 * ada-lang.c (ada_value_primitive_field): Now public.
10194 * ada-lang.h (ada_value_primitive_field): Declare.
10195 * ada-valprint.c (print_field_values): Use
10196 ada_value_primitive_field for wrapper fields.
10197
10198 2020-05-11 Tom de Vries <tdevries@suse.de>
10199
10200 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10201 MODULE_DOMAIN.
10202
10203 2020-05-11 Tom de Vries <tdevries@suse.de>
10204
10205 PR symtab/25941
10206 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10207 with length 0, if not gdb-produced.
10208 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10209
10210 2020-05-09 Tom de Vries <tdevries@suse.de>
10211
10212 PR gdb/25955
10213 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10214 calculation.
10215
10216 2020-05-09 Tom Tromey <tom@tromey.com>
10217
10218 * top.c (server_command): Now bool.
10219 * top.h (server_command): Now bool.
10220
10221 2020-05-08 Tom Tromey <tromey@adacore.com>
10222
10223 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10224 already being processed.
10225
10226 2020-05-08 Tom Tromey <tom@tromey.com>
10227
10228 * printcmd.c (struct display) <next>: Remove.
10229 <display>: New constructor.
10230 <exp_string>: Now a std::string.
10231 <enabled_p>: Now a bool.
10232 (display_number): Move definition earlier.
10233 (displays): Rename from display_chain. Now a std::vector.
10234 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10235 (display_command): Update.
10236 (do_one_display, disable_display)
10237 (enable_disable_display_command, do_enable_disable_display):
10238 Update.
10239 (free_display): Remove.
10240 (clear_displays): Rewrite.
10241 (delete_display): Update.
10242 (map_display_numbers): Use function_view. Remove "data"
10243 parameter. Update.
10244 (do_delete_display): Remove.
10245 (undisplay_command): Update.
10246 (do_one_display, do_displays, disable_display)
10247 (info_display_command): Update.
10248 (do_enable_disable_display): Remove.
10249 (enable_disable_display_command)
10250 (clear_dangling_display_expressions): Update.
10251
10252 2020-05-08 Tom Tromey <tom@tromey.com>
10253
10254 * symtab.c (set_symbol_cache_size)
10255 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10256 (maintenance_print_symbol_cache_statistics): Update.
10257 * symmisc.c (print_symbol_bcache_statistics)
10258 (print_objfile_statistics, maintenance_print_objfiles)
10259 (maintenance_info_symtabs, maintenance_check_symtabs)
10260 (maintenance_expand_symtabs, maintenance_info_line_tables):
10261 Update.
10262 * symfile-debug.c (set_debug_symfile): Update.
10263 * source.c (forget_cached_source_info): Update.
10264 * python/python.c (gdbpy_progspaces): Update.
10265 * psymtab.c (maintenance_info_psymtabs): Update.
10266 * probe.c (parse_probes): Update.
10267 * linespec.c (iterate_over_all_matching_symtabs)
10268 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10269 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10270 * exec.c (exec_target::close): Update.
10271 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10272 * breakpoint.c (print_one_breakpoint_location)
10273 (create_longjmp_master_breakpoint)
10274 (create_std_terminate_master_breakpoint): Update.
10275 * progspace.c (program_spaces): Now a std::vector.
10276 (maybe_new_address_space): Update.
10277 (add_program_space): Remove.
10278 (program_space::program_space): Update.
10279 (remove_program_space): Update.
10280 (number_of_program_spaces): Remove.
10281 (print_program_space, update_address_spaces): Update.
10282 * progspace.h (program_spaces): Change type.
10283 (ALL_PSPACES): Remove.
10284 (number_of_program_spaces): Don't declare.
10285 (struct program_space) <next>: Remove.
10286
10287 2020-05-08 Tom Tromey <tom@tromey.com>
10288
10289 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10290 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10291 (enable_break): Update.
10292 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10293 (frv_fdpic_find_canonical_descriptor): Update.
10294 (frv_fetch_objfile_link_map): Update.
10295 * progspace.c (program_space::free_all_objfiles): Update.
10296 (program_space::solibs): New method.
10297 * progspace.h (struct program_space) <solibs>: New method.
10298 * solist.h (master_so_list): Don't declare.
10299 (ALL_SO_LIBS): Remove.
10300 * solib.h (so_list_head): Remove.
10301 (update_solib_list): Update comment.
10302 * solib.c (master_so_list): Remove.
10303 (solib_used, update_solib_list, solib_add)
10304 (info_sharedlibrary_command, clear_solib)
10305 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10306
10307 2020-05-08 Tom Tromey <tom@tromey.com>
10308
10309 * extension.c (extension_languages): Now a std::array.
10310 (ALL_EXTENSION_LANGUAGES): Remove.
10311 (get_ext_lang_defn, get_ext_lang_of_file)
10312 (eval_ext_lang_from_control_command): Update.
10313 (finish_ext_lang_initialization)
10314 (auto_load_ext_lang_scripts_for_objfile)
10315 (ext_lang_type_printers::ext_lang_type_printers)
10316 (apply_ext_lang_type_printers)
10317 (ext_lang_type_printers::~ext_lang_type_printers)
10318 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10319 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10320 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10321 (get_matching_xmethod_workers, ext_lang_colorize)
10322 (ext_lang_before_prompt): Update.
10323 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10324
10325 2020-05-08 Tom Tromey <tom@tromey.com>
10326
10327 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10328 overload.
10329 <swap_string, m_string>: Remove.
10330 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10331 Update.
10332 * stabsread.c (define_symbol, read_type): Update.
10333 * linespec.c (find_linespec_symbols): Update.
10334 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10335 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10336 * dbxread.c (read_dbx_symtab): Update.
10337 * cp-support.h (cp_canonicalize_string_full)
10338 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10339 Return unique_xmalloc_ptr.
10340 * cp-support.c (inspect_type): Update.
10341 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10342 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10343 Likewise.
10344 * c-typeprint.c (print_name_maybe_canonical): Update.
10345 * break-catch-throw.c (check_status_exception_catchpoint):
10346 Update.
10347
10348 2020-05-08 Tom de Vries <tdevries@suse.de>
10349
10350 * infrun.c (follow_fork): Copy current_line and current_symtab to
10351 child thread.
10352
10353 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * async-event.c (struct async_signal_handler, struct
10356 async_event_handler): Reformat, remove typedef.
10357
10358 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10361 access thistype->main_type->dyn_prop_list directly.
10362
10363 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10366 (remove_dyn_prop): Remove. Update all users to use
10367 type::remove_dyn_prop.
10368 * gdbtypes.c (remove_dyn_prop): Rename to...
10369 (type::remove_dyn_prop): ... this.
10370
10371 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10372
10373 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10374 (add_dyn_prop): Remove. Update all users to use
10375 type::add_dyn_prop.
10376 * gdbtypes.c (add_dyn_prop): Rename to...
10377 (type::add_dyn_prop): ... this.
10378
10379 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10382 (get_dyn_prop): Remove. Update all users to use
10383 type::dyn_prop.
10384 * gdbtypes.c (get_dyn_prop): Rename to...
10385 (type::dyn_prop): ... this.
10386
10387 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10390
10391 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10394 instruction, skip it if it's there.
10395
10396 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10399
10400 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10403 * gdbtypes.c (recursive_dump_type): Remove use of
10404 TYPE_INCOMPLETE.
10405
10406 2020-05-03 Tom Tromey <tom@tromey.com>
10407
10408 * breakpoint.c (catch_command, tcatch_command): Remove.
10409 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10410 add_show_prefix_cmd.
10411 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10412 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10413 Remove.
10414 (add_internal_problem_command): Use add_basic_prefix_cmd,
10415 add_show_prefix_cmd.
10416 * mips-tdep.c (set_mipsfpu_command): Remove.
10417 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10418 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10419 (_initialize_index_cache): Use add_basic_prefix_cmd.
10420 * memattr.c (dummy_cmd): Remove.
10421 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10422 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10423 (_initialize_tui_win): Use add_basic_prefix_cmd,
10424 add_show_prefix_cmd.
10425 * cli/cli-logging.c (set_logging_command): Remove.
10426 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10427 add_show_prefix_cmd.
10428 (show_logging_command): Remove.
10429 * target.c (target_command): Remove.
10430 (add_target): Use add_basic_prefix_cmd.
10431
10432 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10433
10434 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10435
10436 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10437
10438 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10439 info_command.
10440
10441 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10442
10443 * nbsd-nat.c (nbsd_enable_proc_events)
10444 (nbsd_nat_target::post_startup_inferior): Add.
10445 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10446 (nbsd_nat_target::update_thread_list): Rewrite.
10447 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10448 "PTRACE_LWP_CREATE".
10449 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10450
10451 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10452
10453 * stack.c (_initialize_stack): Remove duplicated creation
10454 of "frame" command and "f" alias.
10455
10456 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10457
10458 PR gdb/18706
10459 * gdbtypes.c (check_typedef): Calculate size of array of
10460 stubbed type.
10461
10462 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10463
10464 PR gdb/15559
10465 * i386-tdep.c (i386_push_dummy_call): Call
10466 i386_thiscall_push_dummy_call.
10467 (i386_thiscall_push_dummy_call): New function.
10468 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10469 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10470 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10471
10472 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * gdbarch.sh (do_read): Add shellcheck disable directive for
10475 warning SC2162.
10476
10477 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10478
10479 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10480 "referenced but not assigned" warning.
10481
10482 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * gdbarch.sh: Remove code that sets fallbackdefault.
10485
10486 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * gdbarch.sh: Use shell operators && and || instead of
10489 -a and -o.
10490
10491 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * gdbarch.sh: Use $(...) instead of `...`.
10494
10495 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10496
10497 * gdbarch.sh: Use double quotes around variables.
10498
10499 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * gdbarch.sh: Use %s with printf, instead of variables in the
10502 format string.
10503
10504 2020-04-29 Tom Tromey <tromey@adacore.com>
10505
10506 PR ada/25875:
10507 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10508 type fields here.
10509 (read_enumeration_type): Call
10510 update_enumeration_type_from_children later. Update comments.
10511 (process_enumeration_scope): Don't create type fields.
10512
10513 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10514
10515 * nbsd-tdep.c: Include "xml-syscall.h".
10516 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10517
10518 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10519
10520 * nbsd-nat.c: Include "sys/wait.h".
10521 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10522 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10523 (nbsd_nat_target::remove_exec_catchpoint)
10524 (nbsd_nat_target::set_syscall_catchpoint): Add.
10525 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10526 (nbsd_nat_target::insert_exec_catchpoint)
10527 (nbsd_nat_target::remove_exec_catchpoint)
10528 (nbsd_nat_target::set_syscall_catchpoint): Add.
10529 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10530 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10531 `nbsd_get_syscall_number'.
10532
10533 2020-04-29 Tom Tromey <tom@tromey.com>
10534
10535 * stack.c (print_block_frame_labels): Remove.
10536
10537 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10538
10539 PR gdb/17320
10540 * ada-valprint.c (val_print_packed_array_elements): Move array
10541 end bracket to new line.
10542 (ada_val_print_string): Remove extra spaces before first array
10543 element.
10544 * c-valprint.c (c_value_print_array): Likewise.
10545 * m2-valprint.c (m2_print_array_contents): Likewise.
10546 (m2_value_print_inner): Likewise.
10547 * p-valprint.c (pascal_value_print_inner): Likewise.
10548 * valprint.c (generic_val_print_array): Likewise.
10549 (value_print_array_elements): Move first array element and array
10550 end bracket to new line.
10551
10552 2020-04-29 Tom de Vries <tdevries@suse.de>
10553
10554 PR symtab/25889
10555 * linespec.c (find_method): Fix ix calculation.
10556
10557 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10558
10559 * syscalls/update-netbsd.sh: New file.
10560 * syscalls/netbsd.xml: Regenerate.
10561 * data-directory/Makefile.in: Register `netbsd.xml' in
10562 `SYSCALLS_FILES'.
10563
10564 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10565
10566 * syscalls/update-freebsd.sh: Add double quotes.
10567
10568 2020-04-28 Tom Tromey <tom@tromey.com>
10569
10570 * NEWS: Update.
10571 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10572 (cmdpy_init): Allow class_tui.
10573
10574 2020-04-28 Mark Williams <mark@myosotissp.com>
10575
10576 PR gdb/24480
10577 * dwarf2read.c: Add missing assingments to list_in_scope when
10578 start_symtab was already called.
10579
10580 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10581
10582 PR gdb/25881
10583 * dwarf2/read.c (offset_map_type): Use
10584 gdb:hash_enum<sect_offset> as hash function.
10585
10586 2020-04-28 Tom de Vries <tdevries@suse.de>
10587
10588 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10589 with DW_AT_signature.
10590
10591 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * configure.ac: Remove check for fs_base/gs_base in
10594 user_regs_struct.
10595 * configure: Re-generate.
10596 * config.in: Re-generate.
10597 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10598 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10599 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10600
10601 2020-04-27 Luis Machado <luis.machado@linaro.org>
10602
10603 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10604 problematic inline frame unwinding situation.
10605 * frame.c (frame_id_computed_p): New function.
10606 * frame.h (frame_id_computed_p): New prototype.
10607
10608 2020-04-26 Tom Tromey <tom@tromey.com>
10609
10610 * command.h (enum command_class) <class_pseudo>: Remove.
10611
10612 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10613
10614 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10615 and whitespace.
10616
10617 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10618
10619 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10620 `PT_GET_PROCESS_STATE' block.
10621
10622 2020-04-24 Tom Tromey <tom@tromey.com>
10623
10624 * symtab.h (symbol_get_demangled_name): Don't declare.
10625 * symtab.c (symbol_get_demangled_name): Remove.
10626 (general_symbol_info::natural_name)
10627 (general_symbol_info::demangled_name): Update.
10628
10629 2020-04-24 Tom Tromey <tom@tromey.com>
10630
10631 PR rust/25025:
10632 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10633
10634 2020-04-24 Tom Tromey <tom@tromey.com>
10635
10636 PR symtab/12707:
10637 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10638 exists.
10639 (new_symbol): Likewise.
10640 * compile/compile-object-load.c (get_out_value_type): Use
10641 symbol_matches_search_name.
10642
10643 2020-04-24 Tom Tromey <tom@tromey.com>
10644
10645 * dwarf2/read.c (add_partial_symbol): Do not call
10646 compute_and_set_names.
10647
10648 2020-04-24 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10651 overload.
10652
10653 2020-04-24 Tom Tromey <tom@tromey.com>
10654
10655 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10656 (add_psymbol_to_list): New overload. Make old overload call new
10657 one.
10658 * psympriv.h (add_psymbol_to_list): New overload.
10659
10660 2020-04-24 Tom Tromey <tom@tromey.com>
10661
10662 * dwarf2/read.c (partial_die_info::read) <case
10663 DW_AT_linkage_name>: Use value_as_string.
10664 (dwarf2_string_attr): Use value_as_string.
10665 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10666 method.
10667 * dwarf2/attribute.c (attribute::value_as_string): New method.
10668
10669 2020-04-24 Tom Tromey <tom@tromey.com>
10670
10671 * symtab.c (general_symbol_info::natural_name)
10672 (general_symbol_info::demangled_name): Check for language_rust.
10673
10674 2020-04-24 Tom Tromey <tom@tromey.com>
10675
10676 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10677 (dwarf2_physname): ... from here.
10678 (partial_die_info::read): Add Rust "{" hack.
10679
10680 2020-04-24 Tom Tromey <tom@tromey.com>
10681
10682 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10683 method.
10684 (symbol_set_demangled_name): Don't declare.
10685 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10686 symbol_set_demangled_name.
10687 (general_symbol_info::set_language)
10688 (general_symbol_info::compute_and_set_names): Update.
10689 * minsyms.c (minimal_symbol_reader::install): Update.
10690 * dwarf2/read.c (new_symbol): Update.
10691
10692 2020-04-24 Tom Tromey <tromey@adacore.com>
10693
10694 PR python/23662:
10695 * python/py-type.c (convert_field): Handle
10696 FIELD_LOC_KIND_DWARF_BLOCK.
10697 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10698 (typy_get_dynamic): Nw function.
10699 (type_object_getset): Add "dynamic".
10700 * NEWS: Add entry.
10701
10702 2020-04-24 Tom Tromey <tromey@adacore.com>
10703
10704 * ada-typeprint.c (print_choices, print_variant_part)
10705 (print_record_field_types_dynamic): New functions.
10706 (print_record_field_types): Use print_record_field_types_dynamic.
10707
10708 2020-04-24 Tom Tromey <tromey@adacore.com>
10709
10710 * dwarf2/read.c (handle_data_member_location): New overload.
10711 (dwarf2_add_field): Use it.
10712 (decode_locdesc): Add "computed" parameter. Update comment.
10713 * gdbtypes.c (is_dynamic_type_internal): Also look for
10714 FIELD_LOC_KIND_DWARF_BLOCK.
10715 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10716 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10717 virtual base classes.
10718 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10719 FIELD_LOC_KIND_DWARF_BLOCK.
10720
10721 2020-04-24 Tom Tromey <tromey@adacore.com>
10722
10723 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10724 * gdbtypes.c (is_dynamic_type_internal): Check
10725 TYPE_HAS_DYNAMIC_LENGTH.
10726 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10727 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10728 New macros.
10729 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10730 constant.
10731
10732 2020-04-24 Tom Tromey <tromey@adacore.com>
10733
10734 * dwarf2/read.c (struct variant_field): Rewrite.
10735 (struct variant_part_builder): New.
10736 (struct nextfield): Remove "variant" field. Add "offset".
10737 (struct field_info): Add "current_variant_part" and
10738 "variant_parts".
10739 (alloc_discriminant_info): Remove.
10740 (alloc_rust_variant): New function.
10741 (quirk_rust_enum): Update.
10742 (dwarf2_add_field): Set "offset" member. Don't handle
10743 DW_TAG_variant_part.
10744 (offset_map_type): New typedef.
10745 (convert_variant_range, create_one_variant)
10746 (create_one_variant_part, create_variant_parts)
10747 (add_variant_property): New functions.
10748 (dwarf2_attach_fields_to_type): Call add_variant_property.
10749 (read_structure_type): Don't handle DW_TAG_variant_part.
10750 (handle_variant_part, handle_variant): New functions.
10751 (handle_struct_member_die): Use them.
10752 (process_structure_scope): Don't handle variant parts.
10753 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10754 (struct discriminant_info): Remove.
10755 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10756 (struct main_type) <flag_discriminated_union>: Remove.
10757 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10758 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10759 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10760 Update.
10761 * valops.c (value_union_variant): Remove.
10762 * value.h (value_union_variant): Don't declare.
10763
10764 2020-04-24 Tom Tromey <tromey@adacore.com>
10765
10766 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10767 (ada_value_primitive_packed_val): Update.
10768 * ada-valprint.c (ada_value_print_1): Update.
10769 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10770 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10771 just an address. Use evaluate_for_locexpr_baton.
10772 (dwarf2_evaluate_property): Update.
10773 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10774 array_view.
10775 * findvar.c (default_read_var_value): Update.
10776 * gdbtypes.c (compute_variant_fields_inner)
10777 (resolve_dynamic_type_internal): Update.
10778 (resolve_dynamic_type): Change type of valaddr parameter.
10779 * gdbtypes.h (resolve_dynamic_type): Update.
10780 * valarith.c (value_subscripted_rvalue): Update.
10781 * value.c (value_from_contents_and_address): Update.
10782
10783 2020-04-24 Tom Tromey <tromey@adacore.com>
10784
10785 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10786 "push_initial_value" parameter.
10787 (dwarf2_evaluate_property): Likewise.
10788 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10789
10790 2020-04-24 Tom Tromey <tromey@adacore.com>
10791
10792 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10793 (variant::matches, compute_variant_fields_recurse)
10794 (compute_variant_fields_inner, compute_variant_fields): New
10795 functions.
10796 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10797 Use resolved_type after type is made.
10798 (operator==): Add new cases.
10799 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10800 (struct discriminant_range, struct variant, struct variant_part):
10801 New.
10802 (union dynamic_prop_data) <variant_parts, original_type>: New
10803 members.
10804 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10805 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10806 constants.
10807 * value.c (unpack_bits_as_long): Now public.
10808 * value.h (unpack_bits_as_long): Declare.
10809
10810 2020-04-24 Tom Tromey <tromey@adacore.com>
10811
10812 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10813 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10814
10815 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10816
10817 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10818
10819 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10820
10821 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10822 (remove_fork_catchpoint, post_startup_inferior)
10823 (post_attach): Move...
10824 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10825 (remove_fork_catchpoint, post_startup_inferior)
10826 (post_attach): ...here.
10827 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10828 (remove_fork_catchpoint, post_startup_inferior)
10829 (post_attach): Move...
10830 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10831 (remove_fork_catchpoint, post_startup_inferior)
10832 (post_attach): ...here.
10833
10834 2020-04-24 Tom Tromey <tromey@adacore.com>
10835
10836 * nat/windows-nat.h (struct windows_thread_info)
10837 <pc_adjusted>: New member.
10838 * windows-nat.c (windows_fetch_one_register): Check
10839 pc_adjusted.
10840 (windows_nat_target::get_windows_debug_event)
10841 (windows_nat_target::wait): Set pc_adjusted.
10842
10843 2020-04-24 Tom de Vries <tdevries@suse.de>
10844
10845 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10846 Run gdb-add-index inside temp dir.
10847
10848 2020-04-23 Tom Tromey <tromey@adacore.com>
10849
10850 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10851 in loop.
10852
10853 2020-04-23 Luis Machado <luis.machado@linaro.org>
10854
10855 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10856 get_frame_register instead of gdbarch_unwind_pc.
10857
10858 2020-04-23 Tom de Vries <tdevries@suse.de>
10859
10860 * symtab.c (lookup_global_symbol): Prefer def over decl.
10861
10862 2020-04-23 Tom de Vries <tdevries@suse.de>
10863
10864 PR symtab/25807
10865 * block.c (best_symbol, better_symbol): Promote to external.
10866 * block.h (best_symbol, better_symbol): Declare.
10867 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10868 decl.
10869
10870 2020-04-23 Tom Tromey <tromey@adacore.com>
10871
10872 PR ada/25837:
10873 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10874 "const char *", not a "const std::string &".
10875 <name_and_matcher::operator==>: Update.
10876 * unittests/lookup_name_info-selftests.c: Change type of
10877 "result".
10878
10879 2020-04-23 Tom Tromey <tom@tromey.com>
10880
10881 * inferior.h (iterate_over_inferiors): Don't declare.
10882 * inferior.c (iterate_over_inferiors): Remove.
10883 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10884 Remove.
10885 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10886 use iterate_over_inferiors.
10887 (darwin_resume_inferior_it)
10888 (struct resume_inferior_threads_param)
10889 (darwin_resume_inferior_threads_it): Remove.
10890 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10891
10892 2020-04-23 Tom de Vries <tdevries@suse.de>
10893
10894 * blockframe.c (find_pc_partial_function): Use
10895 find_pc_sect_compunit_symtab rather than
10896 objfile->sf->qf->find_pc_sect_compunit_symtab.
10897
10898 2020-04-22 Tom de Vries <tdevries@suse.de>
10899
10900 PR symtab/25764
10901 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10902 in psymtabs.
10903
10904 2020-04-22 Tom de Vries <tdevries@suse.de>
10905
10906 PR symtab/25801
10907 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10908 symtabs.
10909
10910 2020-04-22 Tom de Vries <tdevries@suse.de>
10911
10912 PR symtab/25700
10913 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10914 CU if already created.
10915
10916 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10917
10918 * infrun.c (displaced_step_fixup): Switch to the event_thread
10919 before calling displaced_step_restore, not after.
10920
10921 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10922
10923 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10924 its inferior is not recorded by us.
10925 (record_btrace_target_open): Replace call to
10926 all_non_exited_threads () with call to current_inferior
10927 ()->non_exited_threads ().
10928 (record_btrace_target::stop_recording): Likewise.
10929 (record_btrace_target::close): Likewise.
10930 (record_btrace_target::wait): Likewise.
10931 (record_btrace_target::record_stop_replaying): Likewise.
10932
10933 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10934
10935 * btrace.c (btrace_enable): Throw an error on double enables and
10936 when enabling recording fails.
10937 (btrace_disable): Throw an error if the thread is not recorded.
10938
10939 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10940
10941 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10942 request if we do not have a thread_info.
10943
10944 2020-04-21 Tom de Vries <tdevries@suse.de>
10945
10946 PR gdb/25471
10947 * thread.c
10948 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10949 exception in get_frame_id.
10950
10951 2020-04-20 Tom Tromey <tromey@adacore.com>
10952
10953 * python/python.c (struct gdbpy_event): Mark move constructor as
10954 noexcept.
10955 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10956 constructor as noexcept.
10957 * completer.h (struct completion_result): Mark move constructor as
10958 noexcept.
10959 * completer.c (completion_result::completion_result): Use
10960 initialization style. Don't call reset_match_list.
10961
10962 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10963
10964 * MAINTAINERS (Write After Approval): Add myself.
10965
10966 2020-04-18 Tom Tromey <tom@tromey.com>
10967
10968 * windows-tdep.c (init_w32_command_list)
10969 (w32_prefix_command_valid): Restore.
10970 (_initialize_windows_tdep): Call init_w32_command_list.
10971
10972 2020-04-18 Tom Tromey <tom@tromey.com>
10973
10974 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10975 * value.c (value_fn_field): Update.
10976 * valops.c (find_function_in_inferior)
10977 (value_allocate_space_in_inferior): Update.
10978 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10979 Update.
10980 * tui/tui-source.c (tui_source_window::set_contents): Update.
10981 * symtab.c (lookup_global_or_static_symbol)
10982 (find_function_start_sal_1, skip_prologue_sal)
10983 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10984 * symmisc.c (dump_msymbols, dump_symtab_1)
10985 (maintenance_print_one_line_table): Update.
10986 * symfile.c (init_entry_point_info, section_is_mapped)
10987 (list_overlays_command, simple_read_overlay_table)
10988 (simple_overlay_update_1): Update.
10989 * stap-probe.c (handle_stap_probe): Update.
10990 * stabsread.c (dbx_init_float_type, define_symbol)
10991 (read_one_struct_field, read_enum_type, read_range_type): Update.
10992 * source.c (info_line_command): Update.
10993 * python/python.c (gdbpy_source_objfile_script)
10994 (gdbpy_execute_objfile_script): Update.
10995 * python/py-type.c (save_objfile_types): Update.
10996 * python/py-objfile.c (py_free_objfile): Update.
10997 * python/py-inferior.c (python_new_objfile): Update.
10998 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10999 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11000 (maintenance_check_psymtabs): Update.
11001 * printcmd.c (info_address_command): Update.
11002 * objfiles.h (struct objfile) <arch>: New method, from
11003 get_objfile_arch.
11004 (get_objfile_arch): Don't declare.
11005 * objfiles.c (get_objfile_arch): Remove.
11006 (filter_overlapping_sections): Update.
11007 * minsyms.c (msymbol_is_function): Update.
11008 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11009 (output_nondebug_symbol): Update.
11010 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11011 (mdebug_expand_psymtab): Update.
11012 * machoread.c (macho_add_oso_symfile): Update.
11013 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11014 Update.
11015 * linux-fork.c (checkpoint_command): Update.
11016 * linespec.c (convert_linespec_to_sals): Update.
11017 * jit.c (finalize_symtab): Update.
11018 * infrun.c (insert_exception_resume_from_probe): Update.
11019 * ia64-tdep.c (ia64_find_unwind_table): Update.
11020 * hppa-tdep.c (internalize_unwinds): Update.
11021 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11022 Update.
11023 * gcore.c (call_target_sbrk): Update.
11024 * elfread.c (record_minimal_symbol, elf_symtab_read)
11025 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11026 (elf_gnu_ifunc_resolve_by_got): Update.
11027 * dwarf2/read.c (create_addrmap_from_index)
11028 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11029 (read_debug_names_from_section)
11030 (process_psymtab_comp_unit_reader, add_partial_symbol)
11031 (add_partial_subprogram, process_full_comp_unit)
11032 (read_file_scope, read_func_scope, read_lexical_block_scope)
11033 (read_call_site_scope, dwarf2_ranges_read)
11034 (dwarf2_record_block_ranges, dwarf2_add_field)
11035 (mark_common_block_symbol_computed, read_tag_pointer_type)
11036 (read_tag_string_type, dwarf2_init_float_type)
11037 (dwarf2_init_complex_target_type, read_base_type)
11038 (partial_die_info::read, partial_die_info::read)
11039 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11040 (dwarf2_fetch_die_loc_sect_off): Update.
11041 * dwarf2/loc.c (dwarf2_find_location_expression)
11042 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11043 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11044 (dwarf2_loc_desc_get_symbol_read_needs)
11045 (locexpr_describe_location_piece, locexpr_describe_location_1)
11046 (loclist_describe_location): Update.
11047 * dwarf2/index-write.c (write_debug_names): Update.
11048 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11049 * dtrace-probe.c (dtrace_process_dof): Update.
11050 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11051 (process_one_symbol): Update.
11052 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11053 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11054 (coff_read_enum_type): Update.
11055 * cli/cli-cmds.c (edit_command, list_command): Update.
11056 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11057 * breakpoint.c (create_overlay_event_breakpoint)
11058 (create_longjmp_master_breakpoint)
11059 (create_std_terminate_master_breakpoint)
11060 (create_exception_master_breakpoint, get_sal_arch): Update.
11061 * block.c (block_gdbarch): Update.
11062 * annotate.c (annotate_source_line): Update.
11063
11064 2020-04-17 Tom Tromey <tromey@adacore.com>
11065
11066 * auto-load.c (show_auto_load_cmd): Remove.
11067 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11068 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11069 (maintenance_print_arc_command): Remove.
11070 * tui/tui-win.c (tui_command): Remove.
11071 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11072 * tui/tui-layout.c (tui_layout_command): Remove.
11073 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11074 * python/python.c (user_set_python, user_show_python): Remove.
11075 (_initialize_python): Use add_basic_prefix_cmd,
11076 add_show_prefix_cmd.
11077 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11078 (install_gdb_commands): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 (info_guile_command): Remove.
11081 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11082 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11083 add_show_prefix_cmd.
11084 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11085 Remove do_set and do_show parameters.
11086 * cli/cli-style.c (set_style, show_style): Remove.
11087 (_initialize_cli_style): Use add_basic_prefix_cmd,
11088 add_show_prefix_cmd.
11089 (cli_style_option::add_setshow_commands): Remove do_set and
11090 do_show parameters.
11091 (cli_style_option::add_setshow_commands): Use
11092 add_basic_prefix_cmd, add_show_prefix_cmd.
11093 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11094 (set_style_name): Remove.
11095 * cli/cli-dump.c (dump_command, append_command): Remove.
11096 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11097 (tekhex_dump_command, binary_dump_command)
11098 (binary_append_command): Remove.
11099 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11100 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11101 (init_w32_command_list): Remove; move into ...
11102 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11103 * valprint.c (set_print, show_print, set_print_raw)
11104 (show_print_raw): Remove.
11105 (_initialize_valprint): Use add_basic_prefix_cmd,
11106 add_show_prefix_cmd.
11107 * typeprint.c (set_print_type, show_print_type): Remove.
11108 (_initialize_typeprint): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * record.c (set_record_command, show_record_command): Remove.
11111 (_initialize_record): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 (info_command, show_command, set_debug, show_debug): Remove.
11116 * top.h (set_history, show_history): Don't declare.
11117 * top.c (set_history, show_history): Remove.
11118 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11119 (unset_tdesc_cmd): Remove.
11120 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11121 add_show_prefix_cmd.
11122 * symtab.c (info_module_command): Remove.
11123 (_initialize_symtab): Use add_basic_prefix_cmd.
11124 * symfile.c (overlay_command): Remove.
11125 (_initialize_symfile): Use add_basic_prefix_cmd.
11126 * sparc64-tdep.c (info_adi_command): Remove.
11127 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11128 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11129 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11130 add_show_prefix_cmd.
11131 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11132 (_initialize_serial): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11135 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11136 add_show_prefix_cmd.
11137 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11138 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11139 add_show_prefix_cmd.
11140 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11141 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11142 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11143 add_show_prefix_cmd.
11144 * remote.c (remote_command, set_remote_cmd): Remove.
11145 (_initialize_remote): Use add_basic_prefix_cmd.
11146 * record-full.c (set_record_full_command)
11147 (show_record_full_command): Remove.
11148 (_initialize_record_full): Use add_basic_prefix_cmd,
11149 add_show_prefix_cmd.
11150 * record-btrace.c (cmd_set_record_btrace)
11151 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11152 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11153 (cmd_show_record_btrace_pt): Remove.
11154 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11155 add_show_prefix_cmd.
11156 * ravenscar-thread.c (set_ravenscar_command)
11157 (show_ravenscar_command): Remove.
11158 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11159 add_show_prefix_cmd.
11160 * mips-tdep.c (show_mips_command, set_mips_command)
11161 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11162 add_show_prefix_cmd.
11163 * maint.c (maintenance_command, maintenance_info_command)
11164 (maintenance_check_command, maintenance_print_command)
11165 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11166 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11167 add_show_prefix_cmd.
11168 (show_per_command_cmd): Remove.
11169 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11170 Remove.
11171 (maintenance_show_test_settings_cmd): Remove.
11172 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11173 add_show_prefix_cmd.
11174 * maint-test-options.c (maintenance_test_options_command):
11175 Remove.
11176 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11177 * macrocmd.c (macro_command): Remove
11178 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11179 * language.c (set_check, show_check): Remove.
11180 (_initialize_language): Use add_basic_prefix_cmd,
11181 add_show_prefix_cmd.
11182 * infcmd.c (unset_command): Remove.
11183 (_initialize_infcmd): Use add_basic_prefix_cmd.
11184 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11185 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11186 add_show_prefix_cmd.
11187 * go32-nat.c (go32_info_dos_command): Remove.
11188 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11189 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11190 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11191 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11192 (_initialize_frame): Use add_basic_prefix_cmd,
11193 add_show_prefix_cmd.
11194 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11195 (_initialize_dcache): Use add_basic_prefix_cmd,
11196 add_show_prefix_cmd.
11197 * cp-support.c (maint_cplus_command): Remove.
11198 (_initialize_cp_support): Use add_basic_prefix_cmd.
11199 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11200 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11201 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11202 add_basic_prefix_cmd, add_show_prefix_cmd.
11203 * breakpoint.c (save_command): Remove.
11204 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11205 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11206 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11207 add_show_prefix_cmd.
11208 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11209 (set_ada_command, show_ada_command): Remove.
11210 (_initialize_ada_language): Use add_basic_prefix_cmd,
11211 add_show_prefix_cmd.
11212 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11213
11214 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11215
11216 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11217 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11218
11219 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11220
11221 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11222 warning messages.
11223
11224 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11225
11226 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11227 import table is not at beginning of .idata section.
11228
11229 2020-04-16 Pedro Alves <palves@redhat.com>
11230
11231 * inferior.c (delete_inferior): Use delete operator directly
11232 instead of delete_program_space.
11233 * progspace.c (add_program_space): New, factored out from
11234 program_space::program_space.
11235 (remove_program_space): New, factored out from
11236 delete_program_space.
11237 (program_space::program_space): Remove intro comment. Rewrite.
11238 (program_space::~program_space): Remove intro comment. Call
11239 remove_program_space.
11240 (delete_program_space): Delete.
11241 * progspace.h (program_space::program_space): Make explicit. Move
11242 intro comment here, adjusted.
11243 (program_space::~program_space): Move intro comment here,
11244 adjusted.
11245 (delete_program_space): Remove.
11246
11247 2020-04-16 Tom Tromey <tromey@adacore.com>
11248
11249 * windows-nat.c (windows_nat::handle_access_violation): New
11250 function.
11251 * nat/windows-nat.h (handle_access_violation): Declare.
11252 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11253 windows-nat.c. Call handle_access_violation.
11254
11255 2020-04-16 Tom de Vries <tdevries@suse.de>
11256
11257 PR symtab/25791
11258 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11259 CUs without psymtab.
11260
11261 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11262
11263 * python/python.c (do_start_initialization): Don't call
11264 PyEval_InitThreads for Python 3.9 and beyond.
11265
11266 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11267
11268 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11269 thread functions.
11270 (obsd_nat_target::wait): Likewise.
11271
11272 2020-04-15 Tom Tromey <tromey@adacore.com>
11273
11274 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11275 (DEBUG_EXCEPT): Use debug_printf.
11276
11277 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11278
11279 * completer.c (class completion_tracker::completion_hash_entry)
11280 <hash_name>: New member function.
11281 (completion_tracker::discard_completions): New callback to hash a
11282 completion_hash_entry, pass this to htab_create_alloc.
11283
11284 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11285
11286 * windows-nat.c (windows_make_so): Warn rather than stopping with
11287 an error if realpath() fails.
11288
11289 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11290
11291 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11292 (nbsd_nat_target::info_proc): Add do_status.
11293
11294 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11295 Tom de Vries <tdevries@suse.de>
11296
11297 PR symtab/25718
11298 * psympriv.h (struct partial_symtab::read_symtab)
11299 (struct partial_symtab::expand_psymtab)
11300 (struct partial_symtab::read_dependencies): Update comments.
11301 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11302 read_symtab for includer.
11303 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11304 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11305 (struct dwarf2_include_psymtab::m_readin): Remove.
11306 (struct dwarf2_include_psymtab::includer): New member function.
11307 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11308
11309 2020-04-14 Tom de Vries <tdevries@suse.de>
11310
11311 PR symtab/25720
11312 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11313 with NULL symbol_matcher and lookup_name.
11314 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11315 and lookup_name.
11316 * dwarf2/read.c (dw2_expand_symtabs_matching)
11317 (dw2_debug_names_expand_symtabs_matching): Same.
11318 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11319 Make lookup_name a pointer. Update comment.
11320 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11321 lookup_name being a pointer.
11322 * symfile.c (expand_symtabs_matching): Same.
11323 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11324 * linespec.c (iterate_over_all_matching_symtabs): Same.
11325
11326 2020-04-13 Tom Tromey <tom@tromey.com>
11327
11328 * run-on-main-thread.c: Update include.
11329 * unittests/main-thread-selftests.c: Update include.
11330 * tui/tui-win.c: Update include.
11331 * tui/tui-io.c: Update include.
11332 * tui/tui-interp.c: Update include.
11333 * tui/tui-hooks.c: Update include.
11334 * top.h: Update include.
11335 * top.c: Update include.
11336 * ser-base.c: Update include.
11337 * remote.c: Update include.
11338 * remote-notif.c: Update include.
11339 * remote-fileio.c: Update include.
11340 * record-full.c: Update include.
11341 * record-btrace.c: Update include.
11342 * python/python.c: Update include.
11343 * posix-hdep.c: Update include.
11344 * mingw-hdep.c: Update include.
11345 * mi/mi-main.c: Update include.
11346 * mi/mi-interp.c: Update include.
11347 * main.c: Update include.
11348 * linux-nat.c: Update include.
11349 * interps.c: Update include.
11350 * infrun.c: Update include.
11351 * inf-loop.c: Update include.
11352 * event-top.c: Update include.
11353 * event-loop.c: Move to ../gdbsupport/.
11354 * event-loop.h: Move to ../gdbsupport/.
11355 * async-event.h: Update include.
11356 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11357
11358 2020-04-13 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui-win.c: Include async-event.h.
11361 * remote.c: Include async-event.h.
11362 * remote-notif.c: Include async-event.h.
11363 * record-full.c: Include async-event.h.
11364 * record-btrace.c: Include async-event.h.
11365 * infrun.c: Include async-event.h.
11366 * event-top.c: Include async-event.h.
11367 * event-loop.h: Move some declarations to async-event.h.
11368 * event-loop.c: Don't include ser-event.h or top.h. Move some
11369 code to async-event.c.
11370 * async-event.h: New file.
11371 * async-event.c: New file.
11372 * Makefile.in (COMMON_SFILES): Add async-event.c.
11373 (HFILES_NO_SRCDIR): Add async-event.h.
11374
11375 2020-04-13 Tom Tromey <tom@tromey.com>
11376
11377 * utils.c (flush_streams): New function.
11378 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11379
11380 2020-04-13 Tom Tromey <tom@tromey.com>
11381
11382 * event-loop.c (handle_file_event): Use warning, not
11383 printf_unfiltered.
11384
11385 2020-04-13 Tom Tromey <tom@tromey.com>
11386
11387 * event-loop.c: Include <chrono>.
11388
11389 2020-04-13 Tom Tromey <tom@tromey.com>
11390
11391 * gdb_select.h: Move to ../gdbsupport/.
11392 * event-loop.c: Update include path.
11393 * top.c: Update include path.
11394 * ser-base.c: Update include path.
11395 * ui-file.c: Update include path.
11396 * ser-tcp.c: Update include path.
11397 * guile/scm-ports.c: Update include path.
11398 * posix-hdep.c: Update include path.
11399 * ser-unix.c: Update include path.
11400 * gdb_usleep.c: Update include path.
11401 * mingw-hdep.c: Update include path.
11402 * inflow.c: Update include path.
11403 * infrun.c: Update include path.
11404 * event-top.c: Update include path.
11405
11406 2020-04-13 Tom Tromey <tom@tromey.com>
11407
11408 * configure: Rebuild.
11409 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11410
11411 2020-04-13 Tom Tromey <tom@tromey.com>
11412
11413 * event-loop.h (start_event_loop): Don't declare.
11414 * event-loop.c (start_event_loop): Move...
11415 * main.c (start_event_loop): ...here. Now static.
11416
11417 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11418
11419 * MAINTAINERS: Update my email address.
11420
11421 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11422
11423 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11424 IP_ALL.
11425
11426 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11427
11428 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11429 (nbsd_nat_target::info_proc): Add do_cmdline.
11430
11431 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11432
11433 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11434 (nbsd_nat_target::info_proc): Add do_cwd.
11435
11436 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11437
11438 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11439
11440 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11441
11442 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11443 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11444 (nbsd_nat_target::info_proc): New functions.
11445 * nbsd-nat.c (kinfo_get_vmmap): New function.
11446 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11447 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11448 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11449 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11450 functions.
11451 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11452 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11453 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11454 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11455 (KINFO_VME_FLAG_GROWS_DOWN): New.
11456
11457 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11458
11459 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11460 bit shift.
11461
11462 2020-04-10 Tom Tromey <tromey@adacore.com>
11463
11464 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11465
11466 2020-04-10 Tom Tromey <tromey@adacore.com>
11467
11468 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11469 separate debug files.
11470
11471 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11472
11473 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11474 Move to...
11475 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11476 ... here.
11477 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11478 Check for STATUS_WX86_BREAKPOINT.
11479 (windows_nat_target::wait): Same.
11480
11481 2020-04-10 Tom de Vries <tdevries@suse.de>
11482
11483 PR cli/25808
11484 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11485
11486 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11487
11488 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11489 (Write After Approval): Remove Tom de Vries.
11490
11491 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11492
11493 revert partially:
11494 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11495
11496 * buildsym.c (record_line): Fix undefined behavior and preserve
11497 lines at eof.
11498
11499 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11500
11501 * auxv.h (svr4_auxv_parse): New.
11502 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11503 and generic_auxv_parse.
11504 (svr4_auxv_parse): Add.
11505 * obsd-tdep.c: Include "auxv.h".
11506 (obsd_auxv_parse): Remove.
11507 (obsd_init_abi): Remove comment.
11508 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11509 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11510 * nbsd-tdep.c: Include "auxv.h".
11511 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11512
11513 2020-04-08 Tom Tromey <tromey@adacore.com>
11514
11515 * nat/windows-nat.h (last_wait_event): Don't declare.
11516 (wait_for_debug_event): Update comment.
11517 * nat/windows-nat.c (last_wait_event): Now static.
11518
11519 2020-04-08 Tom Tromey <tromey@adacore.com>
11520
11521 * windows-nat.c (wait_for_debug_event): Move to
11522 nat/windows-nat.c.
11523 * nat/windows-nat.h (wait_for_debug_event): Declare.
11524 * nat/windows-nat.c (wait_for_debug_event): Move from
11525 windows-nat.c. No longer static.
11526
11527 2020-04-08 Tom Tromey <tromey@adacore.com>
11528
11529 * windows-nat.c (get_windows_debug_event): Use
11530 fetch_pending_stop.
11531 * nat/windows-nat.h (fetch_pending_stop): Declare.
11532 * nat/windows-nat.c (fetch_pending_stop): New function.
11533
11534 2020-04-08 Tom Tromey <tromey@adacore.com>
11535
11536 * windows-nat.c (windows_continue): Use matching_pending_stop and
11537 continue_last_debug_event.
11538 * nat/windows-nat.h (matching_pending_stop)
11539 (continue_last_debug_event): Declare.
11540 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11541 (matching_pending_stop, continue_last_debug_event): New
11542 functions.
11543
11544 2020-04-08 Tom Tromey <tromey@adacore.com>
11545
11546 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11547 (handle_exception_result): Move to nat/windows-nat.h.
11548 (DEBUG_EXCEPTION_SIMPLE): Remove.
11549 (windows_nat::handle_ms_vc_exception): New function.
11550 (handle_exception): Move to nat/windows-nat.c.
11551 (get_windows_debug_event): Update.
11552 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11553 nat/windows-nat.c.
11554 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11555 (handle_exception_result): Move from windows-nat.c.
11556 (handle_exception): Declare.
11557 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11558 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11559 windows-nat.c.
11560
11561 2020-04-08 Tom Tromey <tromey@adacore.com>
11562
11563 * windows-nat.c (exception_count, event_count): Remove.
11564 (handle_exception, get_windows_debug_event)
11565 (do_initial_windows_stuff): Update.
11566
11567 2020-04-08 Tom Tromey <tromey@adacore.com>
11568
11569 * windows-nat.c (windows_nat::handle_load_dll)
11570 (windows_nat::handle_unload_dll): Rename. No longer static.
11571 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11572 Declare.
11573
11574 2020-04-08 Tom Tromey <tromey@adacore.com>
11575
11576 * complaints.h (stop_whining): Declare at top-level.
11577 (complaint): Don't declare stop_whining.
11578
11579 2020-04-08 Tom Tromey <tromey@adacore.com>
11580
11581 * windows-nat.c (windows_nat::handle_output_debug_string):
11582 Rename. No longer static.
11583 * nat/windows-nat.h (handle_output_debug_string): Declare.
11584
11585 2020-04-08 Tom Tromey <tromey@adacore.com>
11586
11587 * windows-nat.c (current_process_handle, current_process_id)
11588 (main_thread_id, last_sig, current_event, last_wait_event)
11589 (current_windows_thread, desired_stop_thread_id, pending_stops)
11590 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11591 (display_selectors, fake_create_process)
11592 (get_windows_debug_event): Update.
11593 * nat/windows-nat.h (current_process_handle, current_process_id)
11594 (main_thread_id, last_sig, current_event, last_wait_event)
11595 (current_windows_thread, desired_stop_thread_id, pending_stops)
11596 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11597 * nat/windows-nat.c (current_process_handle, current_process_id)
11598 (main_thread_id, last_sig, current_event, last_wait_event)
11599 (current_windows_thread, desired_stop_thread_id, pending_stops)
11600 (siginfo_er): New globals. Move from windows-nat.c.
11601
11602 2020-04-08 Tom Tromey <tromey@adacore.com>
11603
11604 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11605 (handle_load_dll): Update.
11606 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11607
11608 2020-04-08 Tom Tromey <tromey@adacore.com>
11609
11610 * windows-nat.c (enum thread_disposition_type): Move to
11611 nat/windows-nat.h.
11612 (windows_nat::thread_rec): Rename from thread_rec. No longer
11613 static.
11614 (windows_add_thread, windows_nat_target::fetch_registers)
11615 (windows_nat_target::store_registers, handle_exception)
11616 (windows_nat_target::resume, get_windows_debug_event)
11617 (windows_nat_target::get_tib_address)
11618 (windows_nat_target::thread_name)
11619 (windows_nat_target::thread_alive): Update.
11620 * nat/windows-nat.h (enum thread_disposition_type): Move from
11621 windows-nat.c.
11622 (thread_rec): Declare.
11623
11624 2020-04-08 Tom Tromey <tromey@adacore.com>
11625
11626 * windows-nat.c: Add "using namespace".
11627 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11628 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11629
11630 2020-04-08 Tom Tromey <tromey@adacore.com>
11631
11632 * nat/windows-nat.h (struct windows_thread_info): Declare
11633 destructor.
11634 * nat/windows-nat.c (~windows_thread_info): New.
11635
11636 2020-04-08 Tom Tromey <tromey@adacore.com>
11637
11638 PR gdb/22992
11639 * windows-nat.c (current_event): Update comment.
11640 (last_wait_event, desired_stop_thread_id): New globals.
11641 (struct pending_stop): New.
11642 (pending_stops): New global.
11643 (windows_nat_target) <stopped_by_sw_breakpoint>
11644 <supports_stopped_by_sw_breakpoint>: New methods.
11645 (windows_fetch_one_register): Add assertions. Adjust PC.
11646 (windows_continue): Handle pending stops. Suspend other threads
11647 when stepping. Use last_wait_event
11648 (wait_for_debug_event): New function.
11649 (get_windows_debug_event): Use wait_for_debug_event. Handle
11650 pending stops. Queue spurious stops.
11651 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11652 (windows_nat_target::kill): Use wait_for_debug_event.
11653 * nat/windows-nat.h (struct windows_thread_info)
11654 <stopped_at_software_breakpoint>: New field.
11655 * nat/windows-nat.c (windows_thread_info::resume): Clear
11656 stopped_at_software_breakpoint.
11657
11658 2020-04-08 Tom Tromey <tromey@adacore.com>
11659
11660 * windows-nat.c (enum thread_disposition_type): New.
11661 (thread_rec): Replace "get_context" parameter with "disposition";
11662 change type.
11663 (windows_add_thread, windows_nat_target::fetch_registers)
11664 (windows_nat_target::store_registers, handle_exception)
11665 (windows_nat_target::resume, get_windows_debug_event)
11666 (windows_nat_target::get_tib_address)
11667 (windows_nat_target::thread_name)
11668 (windows_nat_target::thread_alive): Update.
11669
11670 2020-04-08 Tom Tromey <tromey@adacore.com>
11671
11672 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11673 (windows_continue): Use windows_continue::resume.
11674 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11675 resume>: Declare new methods.
11676 * nat/windows-nat.c: New file.
11677 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11678
11679 2020-04-08 Tom Tromey <tromey@adacore.com>
11680
11681 * windows-nat.c (windows_add_thread, windows_delete_thread)
11682 (windows_nat_target::fetch_registers)
11683 (windows_nat_target::store_registers, fake_create_process)
11684 (windows_nat_target::resume, windows_nat_target::resume)
11685 (get_windows_debug_event, windows_nat_target::wait)
11686 (windows_nat_target::pid_to_str)
11687 (windows_nat_target::get_tib_address)
11688 (windows_nat_target::get_ada_task_ptid)
11689 (windows_nat_target::thread_name)
11690 (windows_nat_target::thread_alive): Use lwp, not tid.
11691
11692 2020-04-08 Tom Tromey <tromey@adacore.com>
11693
11694 * windows-nat.c (handle_exception)
11695 (windows_nat_target::thread_name): Update.
11696 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11697 <name>: Now unique_xmalloc_ptr.
11698
11699 2020-04-08 Tom Tromey <tromey@adacore.com>
11700
11701 * windows-nat.c (thread_rec)
11702 (windows_nat_target::fetch_registers): Update.
11703 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11704 Update comment.
11705 <debug_registers_changed, reload_context>: Now bool.
11706
11707 2020-04-08 Tom Tromey <tromey@adacore.com>
11708
11709 * windows-nat.c (windows_add_thread): Use new.
11710 (windows_init_thread_list, windows_delete_thread): Use delete.
11711 (get_windows_debug_event): Update.
11712 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11713 destructor, and initializers.
11714
11715 2020-04-08 Tom Tromey <tromey@adacore.com>
11716
11717 * windows-nat.c (struct windows_thread_info): Remove.
11718 * nat/windows-nat.h: New file.
11719
11720 2020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11723 (thread_rec, windows_add_thread, windows_delete_thread)
11724 (windows_continue): Update.
11725
11726 2020-04-08 Tom Tromey <tromey@adacore.com>
11727
11728 * windows-nat.c (struct windows_thread_info): Remove typedef.
11729 (thread_head): Remove.
11730 (thread_list): New global.
11731 (thread_rec, windows_add_thread, windows_init_thread_list)
11732 (windows_delete_thread, windows_continue): Update.
11733
11734 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11735
11736 * windows-tdep.h (windows_init_abi): Add comment.
11737 (cygwin_init_abi): New declaration.
11738 * windows-tdep.c: Split signal enumeration in two, one for
11739 Windows and one for Cygwin.
11740 (windows_gdb_signal_to_target): Only deal with signal of the
11741 Windows OS ABI.
11742 (cygwin_gdb_signal_to_target): New function.
11743 (windows_init_abi): Rename to windows_init_abi_common, don't set
11744 gdb_signal_to_target gdbarch method. Add new new function with
11745 this name.
11746 (cygwin_init_abi): New function.
11747 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11748 comment. Don't call windows_init_abi.
11749 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11750 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11751 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11752 i386_windows_init_abi_common, don't call windows_init_abi. Add
11753 a new function of this name.
11754 (i386_cygwin_init_abi): New function.
11755 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11756 OS ABI Cygwin.
11757
11758 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11759
11760 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11761 parameter.c.
11762 (dwarf2_read_gdb_index): Update.
11763
11764 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11765
11766 * nbsd-tdep.c: Include "objfiles.h".
11767 (nbsd_skip_solib_resolver): New.
11768 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11769
11770 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11771
11772 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11773 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11774 with DW_LLE_base_addressx are being emitted in DWARFv5.
11775 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11776 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11777 unsigned integer.
11778
11779 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11780
11781 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11782 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11783 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11784 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11785 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11786 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11787 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11788
11789
11790 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11791
11792 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11793 (read_loclist_index): New function definition.
11794 (lookup_loclist_base): New function definition.
11795 (read_loclist_header): New function definition.
11796 (dwarf2_cu): Add loclist_base and loclist_header field.
11797 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11798 (read_full_die_1): Read the value of DW_AT_loclists_base.
11799 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11800 (read_attribute_value): Handle DW_FORM_loclistx.
11801 (skip_one_die): Handle DW_FORM_loclistx.
11802 (loclist_header): New structure declaration.
11803 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11804
11805 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11806
11807 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11808 constructor. Remove `addr` parameter from other constructor and
11809 add `per_cu` parameter.
11810 * dwarf2/read.c (create_partial_symtab): Update.
11811
11812 2020-04-07 Tom de Vries <tdevries@suse.de>
11813
11814 PR symtab/25796
11815 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11816 (partial_die_info::fixup): Inherit has_const_value.
11817
11818 2020-04-07 Tom de Vries <tdevries@suse.de>
11819
11820 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11821 symbols without address.
11822
11823 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11824
11825 * nbsd-nat.h (struct thread_info): Add forward declaration.
11826 (nbsd_nat_target::thread_alive): Add.
11827 (nbsd_nat_target::thread_name): Likewise.
11828 (nbsd_nat_target::update_thread_list): Likewise.
11829 (update_thread_list::post_attach): Likewise.
11830 (post_attach::pid_to_str): Likewise.
11831 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11832 (nbsd_thread_lister): Add.
11833 (nbsd_nat_target::thread_alive): Likewise.
11834 (nbsd_nat_target::thread_name): Likewise.
11835 (nbsd_add_threads): Likewise.
11836 (update_thread_list::post_attach): Likewise.
11837 (nbsd_nat_target::update_thread_list): Likewise.
11838 (post_attach::pid_to_str): Likewise.
11839
11840 2020-04-06 Tom Tromey <tromey@adacore.com>
11841
11842 * ada-valprint.c (print_variant_part): Extract the variant field.
11843 (print_field_values): Use the field as the outer value when
11844 recursing.
11845
11846 2020-04-06 Tom Tromey <tromey@adacore.com>
11847
11848 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11849 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11850 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11851 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11852 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11853
11854 2020-04-06 Tom Tromey <tromey@adacore.com>
11855
11856 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11857 TYPE_CODE_ERROR.
11858
11859 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11860
11861 * nbsd-tdep.c: Include "gdbarch.h".
11862 Define enum with NetBSD signal numbers.
11863 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11864 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11865 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11866 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11867 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11868 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11869 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11870 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11871 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11872 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11873 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11874 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11875
11876 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11877
11878 PR gdb/25325
11879 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11880
11881 2020-04-03 Tom Tromey <tromey@adacore.com>
11882
11883 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11884 Read constant block.
11885
11886 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11887
11888 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11889 (gdb_bfd_get_full_section_contents): New declaration.
11890 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11891 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11892 gdb_bfd_get_full_section_contents.
11893
11894 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11895
11896 * exec.c (build_section_table): Replace internal_error with
11897 gdb_assert.
11898 (section_table_xfer_memory_partial): Likewise.
11899 * mdebugread.c (parse_partial_symbols): Likewise.
11900 * psymtab.c (lookup_partial_symbol): Likewise.
11901 * utils.c (wrap_here): Likewise.
11902
11903 2020-04-02 Tom Tromey <tromey@adacore.com>
11904
11905 * f-lang.c (build_fortran_types): Use arch_type to initialize
11906 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11907
11908 2020-04-02 Tom Tromey <tromey@adacore.com>
11909
11910 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11911 of attributes.
11912
11913 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11914 Bernd Edlinger <bernd.edlinger@hotmail.de>
11915 Tom Tromey <tromey@adacore.com>
11916
11917 * buildsym.c (buildsym_compunit::record_line): Remove
11918 deduplication code.
11919
11920 2020-04-02 Tom de Vries <tdevries@suse.de>
11921
11922 PR ada/24671
11923 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11924
11925 2020-04-02 Tom de Vries <tdevries@suse.de>
11926
11927 * dwarf2/read.c (dwarf2_gdb_index_functions,
11928 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11929 NULL.
11930 * psymtab.c (psym_lookup_global_symbol_language): New function.
11931 (psym_functions): Init psym_lookup_global_symbol_language with
11932 psym_lookup_global_symbol_language.
11933 * symfile-debug.c (debug_sym_quick_functions): Init
11934 lookup_global_symbol_language with NULL.
11935 * symfile.c (set_initial_language): Remove fixme comment.
11936 * symfile.h (struct quick_symbol_functions): Add
11937 lookup_global_symbol_language.
11938 * symtab.c (find_quick_global_symbol_language): New function.
11939 (find_main_name): Use find_quick_global_symbol_language.
11940
11941 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11942
11943 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11944
11945 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11946
11947 * buildsym.c (record_line): Fix undefined behavior and preserve
11948 lines at eof.
11949
11950 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11951
11952 * buildsym.c (record_line): Fix the resizing condition.
11953
11954 2020-04-01 Tom Tromey <tom@tromey.com>
11955
11956 * value.h (value_literal_complex): Add comment.
11957 * valops.c (value_literal_complex): Refer to value.h.
11958
11959 2020-04-01 Tom Tromey <tom@tromey.com>
11960
11961 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11962 (scalar_type): New rule, from typebase.
11963 (typebase): Use scalar_type. Recognize complex types.
11964 (field_name): Handle FLOAT_KEYWORD.
11965 (ident_tokens): Add _Complex and __complex__.
11966
11967 2020-04-01 Tom Tromey <tom@tromey.com>
11968
11969 PR exp/25299:
11970 * valarith.c (promotion_type, complex_binop): New functions.
11971 (scalar_binop): Handle complex numbers. Use promotion_type.
11972 (value_pos, value_neg, value_complement): Handle complex numbers.
11973
11974 2020-04-01 Tom Tromey <tom@tromey.com>
11975
11976 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11977 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11978 (parse_number): Handle complex numbers.
11979
11980 2020-04-01 Tom Tromey <tom@tromey.com>
11981
11982 * c-valprint.c (c_decorations): Change complex suffix to "i".
11983
11984 2020-04-01 Tom Tromey <tom@tromey.com>
11985
11986 * valprint.c (generic_value_print_complex): Use accessors.
11987 * value.h (value_real_part, value_imaginary_part): Declare.
11988 * valops.c (value_real_part, value_imaginary_part): New
11989 functions.
11990 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11991
11992 2020-04-01 Tom Tromey <tom@tromey.com>
11993
11994 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11995 (read_range_type): Update.
11996 * mdebugread.c (basic_type): Update.
11997 * go-lang.c (build_go_types): Use init_complex_type.
11998 * gdbtypes.h (struct main_type) <complex_type>: New member.
11999 (init_complex_type): Update.
12000 (arch_complex_type): Don't declare.
12001 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12002 Make name if none given. Use alloc_type_copy. Look for cached
12003 complex type.
12004 (arch_complex_type): Remove.
12005 (gdbtypes_post_init): Use init_complex_type.
12006 * f-lang.c (build_fortran_types): Use init_complex_type.
12007 * dwarf2/read.c (read_base_type): Update.
12008 * d-lang.c (build_d_types): Use init_complex_type.
12009 * ctfread.c (read_base_type): Update.
12010
12011 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12012
12013 * infrun.c (stop_all_threads): Update assertion, plus when
12014 stopping threads, take into account that we might be trying
12015 to stop an all-stop target.
12016 (stop_waiting): Call 'stop_all_threads' if there exists a
12017 non-stop target.
12018
12019 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12020
12021 * target.h (exists_non_stop_target): New function declaration.
12022 * target.c (exists_non_stop_target): New function.
12023
12024 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12025
12026 PR gdb/24789
12027 * eval.c (is_integral_or_integral_reference): New function.
12028 (evaluate_subexp_standard): Allow integer references in
12029 pointer arithmetic.
12030
12031 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12032
12033 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12034 check for no ptid in the stop reply when the target is non-stop.
12035
12036 2020-04-01 Tom Tromey <tromey@adacore.com>
12037
12038 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12039 "name" parameter to rvalue reference. Initialize m_name_holder.
12040 <lookup_name_info>: New overloads.
12041 <name>: Return gdb::string_view.
12042 <c_str>: New method.
12043 <make_ignore_params>: Update.
12044 <search_name_hash>: Update.
12045 <language_lookup_name>: Return const char *.
12046 <m_name>: Change type.
12047 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12048 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12049 (lookup_name_info::match_any): Update.
12050 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12051 Update.
12052 * minsyms.c (linkage_name_str): Update.
12053 * language.c (default_symbol_name_matcher): Update.
12054 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12055 Update.
12056 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12057 (ada_lookup_name_info::ada_lookup_name_info): Update.
12058 (literal_symbol_name_matcher): Update.
12059
12060 2020-04-01 Tom Tromey <tromey@adacore.com>
12061
12062 * psymtab.c (psymtab_search_name): Remove function.
12063 (psym_lookup_symbol): Create search name and lookup name here.
12064 (lookup_partial_symbol): Remove "name" parameter; add
12065 lookup_name.
12066 (psym_expand_symtabs_for_function): Update.
12067
12068 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12069
12070 PR tui/25597:
12071 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12072
12073 2020-03-31 Tom Tromey <tromey@adacore.com>
12074
12075 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12076 memcpy.
12077
12078 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12079
12080 * features/riscv/32bit-csr.xml: Regenerated.
12081 * features/riscv/64bit-csr.xml: Regenerated.
12082
12083 2020-03-30 Tom Tromey <tromey@adacore.com>
12084
12085 * ada-valprint.c (print_variant_part): Update.
12086 * ada-lang.h (ada_which_variant_applies): Update.
12087 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12088 outer_valaddr parameters; replace with "outer" value parameter.
12089 (to_fixed_variant_branch_type): Update.
12090
12091 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12092
12093 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12094 <list>. Remove inclusion of observable.h.
12095 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12096 (struct arch_lwp_info): New struct.
12097 (class ppc_linux_dreg_interface): New class.
12098 (struct ppc_linux_process_info): New struct.
12099 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12100 <low_new_clone, low_forget_process, low_prepare_to_resume>
12101 <copy_thread_dreg_state, mark_thread_stale>
12102 <mark_debug_registers_changed, register_hw_breakpoint>
12103 <clear_hw_breakpoint, register_wp, clear_wp>
12104 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12105 <num_memory_accesses, get_trigger_type>
12106 <create_watchpoint_request, hwdebug_point_cmp>
12107 <init_arch_lwp_info, get_arch_lwp_info>
12108 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12109 methods.
12110 <struct ptid_hash>: New inner struct.
12111 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12112 members.
12113 (saved_dabr_value, hwdebug_info, max_slots_number)
12114 (struct hw_break_tuple, struct thread_points, ppc_threads)
12115 (have_ptrace_hwdebug_interface)
12116 (hwdebug_find_thread_points_by_tid)
12117 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12118 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12119 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12120 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12121 use m_dreg_interface.
12122 (hwdebug_point_cmp): Change to...
12123 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12124 reference arguments instead of pointers.
12125 (ppc_linux_nat_target::ranged_break_num_registers): Use
12126 m_dreg_interface.
12127 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12128 m_dreg_interface. Call register_hw_breakpoint.
12129 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12130 m_dreg_interface. Call clear_hw_breakpoint.
12131 (get_trigger_type): Change to...
12132 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12133 comment.
12134 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12135 use m_dreg_interface. Call register_hw_breakpoint.
12136 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12137 use m_dreg_interface. Call clear_hw_breakpoint.
12138 (can_use_watchpoint_cond_accel): Change to...
12139 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12140 method. Update comment, use m_dreg_interface and
12141 m_process_info.
12142 (calculate_dvc): Change to...
12143 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12144 m_dreg_interface.
12145 (num_memory_accesses): Change to...
12146 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12147 (check_condition): Change to...
12148 (ppc_linux_nat_target::check_condition): ...this method.
12149 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12150 comment, use m_dreg_interface.
12151 (create_watchpoint_request): Change to...
12152 (ppc_linux_nat_target::create_watchpoint_request): ...this
12153 method. Use m_dreg_interface.
12154 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12155 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12156 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12157 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12158 (ppc_linux_nat_target::low_forget_process)
12159 (ppc_linux_nat_target::low_new_fork)
12160 (ppc_linux_nat_target::low_new_clone)
12161 (ppc_linux_nat_target::low_delete_thread)
12162 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12163 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12164 only call mark_thread_stale.
12165 (ppc_linux_thread_exit): Remove.
12166 (ppc_linux_nat_target::stopped_data_address): Change to...
12167 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12168 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12169 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12170 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12171 comment. Call low_stopped_data_address.
12172 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12173 m_dreg_interface.
12174 (ppc_linux_nat_target::masked_watch_num_registers): Use
12175 m_dreg_interface.
12176 (ppc_linux_nat_target::copy_thread_dreg_state)
12177 (ppc_linux_nat_target::mark_thread_stale)
12178 (ppc_linux_nat_target::mark_debug_registers_changed)
12179 (ppc_linux_nat_target::register_hw_breakpoint)
12180 (ppc_linux_nat_target::clear_hw_breakpoint)
12181 (ppc_linux_nat_target::register_wp)
12182 (ppc_linux_nat_target::clear_wp)
12183 (ppc_linux_nat_target::init_arch_lwp_info)
12184 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12185 (_initialize_ppc_linux_nat): Remove observer callback.
12186
12187 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12188
12189 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12190 (ppc_linux_nat_target::auxv_parse)
12191 (ppc_linux_nat_target::read_description)
12192 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12193 Move up.
12194
12195 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12196
12197 * linux-nat.h (low_new_clone): New method.
12198 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12199
12200 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12201
12202 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12203 (dbx_expand_psymtab): ... this.
12204 (start_psymtab): Update.
12205 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12206 (mdebug_expand_psymtab): ... this.
12207 (parse_partial_symbols): Update.
12208 (new_psymtab): Update.
12209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12210 (xcoff_expand_psymtab): ... this.
12211 (xcoff_start_psymtab): Update.
12212
12213 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12214
12215 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12216 <expand_dependencies>: ... this.
12217 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12218 (partial_symtab::expand_dependencies): ... this.
12219 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12220 Update.
12221 (dwarf2_psymtab::expand_psymtab): Update.
12222 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12223 * mdebugread.c (psymtab_to_symtab_1): Update.
12224 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12225
12226 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12227
12228 * psympriv.h (discard_psymtab): Remove.
12229 * dbxread.c (dbx_end_psymtab): Update.
12230 * xcoffread.c (xcoff_end_psymtab): Update.
12231
12232 2020-03-28 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12235 comment.
12236
12237 2020-03-28 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12240
12241 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12242
12243 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12244
12245 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12246
12247 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12248
12249 2020-03-26 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12252 (mark_common_block_symbol_computed, read_tag_string_type)
12253 (attr_to_dynamic_prop, read_subrange_type): Update.
12254 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12255 to be methods on struct attribute.
12256 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12257 (read_call_site_scope, partial_die_info::read)
12258 (partial_die_info::read, lookup_die_type, follow_die_ref):
12259 Update.
12260 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12261 from dwarf2_get_ref_die_offset.
12262 (attribute::constant_value): New method, from
12263 dwarf2_get_attr_constant_value.
12264 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12265 Declare method.
12266 <constant_value>: New method.
12267
12268 2020-03-26 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12271 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12272 (dwarf_type_encoding_name): Move to stringify.c.
12273 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12274 * dwarf2/stringify.c: New file.
12275 * dwarf2/stringify.h: New file.
12276
12277 2020-03-26 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12280 Rewrite.
12281
12282 2020-03-26 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12285 methods.
12286 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12287 (lookup_ranges_base): Likewise.
12288 (read_cutu_die_from_dwo, read_full_die_1): Update.
12289
12290 2020-03-26 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2/read.c (read_import_statement, read_file_scope)
12293 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12294 (read_lexical_block_scope, read_call_site_scope)
12295 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12296 (handle_struct_member_die, process_structure_scope)
12297 (update_enumeration_type_from_children)
12298 (process_enumeration_scope, read_array_type, read_common_block)
12299 (read_namespace, read_module, read_subroutine_type): Update.
12300 (sibling_die): Remove.
12301
12302 2020-03-26 Tom Tromey <tom@tromey.com>
12303
12304 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12305 (build_type_psymtabs_reader, read_structure_type)
12306 (read_enumeration_type, read_full_die_1): Update.
12307 (dwarf2_attr_no_follow): Move to die.h.
12308 * dwarf2/die.h (struct die_info) <attr>: New method.
12309
12310 2020-03-26 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12313 <base_address>: Now an optional.
12314 (dwarf2_find_base_address, dwarf2_rnglists_process)
12315 (dwarf2_ranges_process, fill_in_loclist_baton)
12316 (dwarf2_symbol_mark_computed): Update.
12317
12318 2020-03-26 Tom Tromey <tom@tromey.com>
12319
12320 * dwarf2/read.c (struct die_info): Move to die.h.
12321 * dwarf2/die.h: New file.
12322
12323 2020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12326 * dwarf2/read.c
12327 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12328 Move to line-header.c.
12329 (read_checked_initial_length_and_offset, read_formatted_entries):
12330 Likewise.
12331 (dwarf_decode_line_header): Split into two.
12332 * dwarf2/line-header.c
12333 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12334 Move from read.c.
12335 (read_checked_initial_length_and_offset, read_formatted_entries):
12336 Likewise.
12337 (dwarf_decode_line_header): New function, split from read.c.
12338
12339 2020-03-26 Tom Tromey <tom@tromey.com>
12340
12341 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12342 Declare method.
12343 * dwarf2/read.c (read_attribute_value): Update.
12344 (dwarf2_per_objfile::read_line_string): Rename from
12345 read_indirect_line_string.
12346 (read_formatted_entries): Update.
12347
12348 2020-03-26 Tom Tromey <tom@tromey.com>
12349
12350 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12351 variable.
12352
12353 2020-03-26 Tom Tromey <tom@tromey.com>
12354
12355 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12356 const.
12357 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12358 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12359 parameter const.
12360
12361 2020-03-26 Tom Tromey <tom@tromey.com>
12362
12363 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12364 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12365 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12366 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12367
12368 2020-03-26 Tom Tromey <tom@tromey.com>
12369
12370 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12371 file_names_size, file_full_name, file_file_name>: Use const.
12372 <file_name_at, file_names>: Add const overload.
12373 * dwarf2/line-header.c (line_header::file_file_name)
12374 (line_header::file_full_name): Update.
12375
12376 2020-03-26 Tom Tromey <tom@tromey.com>
12377
12378 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12379 (macro_start_file, consume_improper_spaces)
12380 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12381 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12382 (dwarf_decode_macros): Move to macro.c.
12383 * dwarf2/macro.c: New file.
12384 * dwarf2/macro.h: New file.
12385 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12386
12387 2020-03-26 Tom Tromey <tom@tromey.com>
12388
12389 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12390 method.
12391 * dwarf2/section.c: New method. From
12392 read_indirect_string_at_offset_from.
12393 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12394 (read_indirect_string_at_offset_from): Move to section.c.
12395 (read_indirect_string_at_offset): Rewrite.
12396 (read_indirect_line_string_at_offset): Remove.
12397 (read_indirect_string, read_indirect_line_string)
12398 (dwarf_decode_macro_bytes): Update.
12399
12400 2020-03-26 Tom Tromey <tom@tromey.com>
12401
12402 * dwarf2/section.h (struct dwarf2_section_info)
12403 <overload_complaint>: Declare.
12404 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12405 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12406 Rename from dwarf2_section_buffer_overflow_complaint.
12407 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12408 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12409
12410 2020-03-26 Tom Tromey <tom@tromey.com>
12411
12412 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12413 Declare.
12414 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12415 Move from read.c.
12416 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12417 to section.c.
12418
12419 2020-03-26 Tom Tromey <tom@tromey.com>
12420
12421 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12422
12423 2020-03-26 Tom Tromey <tom@tromey.com>
12424
12425 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12426 "builder".
12427 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12428 parameter.
12429 (dwarf_decode_macros): Update.
12430
12431 2020-03-26 Tom Tromey <tom@tromey.com>
12432
12433 * dwarf2/read.c (read_attribute_value): Update.
12434 (read_indirect_string_from_dwz): Move to dwz.c; change into
12435 method.
12436 (dwarf_decode_macro_bytes): Update.
12437 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12438 * dwarf2/dwz.c: New file.
12439 * Makefile.in (COMMON_SFILES): Add dwz.c.
12440
12441 2020-03-26 Tom Tromey <tom@tromey.com>
12442
12443 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12444 * dwarf2/read.c: Add include.
12445 * dwarf2/index-write.c: Add include.
12446 * dwarf2/index-cache.c: Add include.
12447 * dwarf2/dwz.h: New file.
12448
12449 2020-03-25 Tom Tromey <tom@tromey.com>
12450
12451 * compile/compile-object-load.c (get_out_value_type): Mention
12452 correct symbol name in error message.
12453
12454 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12455
12456 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12457
12458 2020-03-25 Tom de Vries <tdevries@suse.de>
12459
12460 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12461 * symmisc.c (dump_symtab_1): Print user and includes fields.
12462 (maintenance_info_symtabs): Same.
12463
12464 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12465
12466 PR gdb/25534
12467 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12468 (riscv_regcache_cooked_write): New function.
12469 (riscv_push_dummy_call): Use new function.
12470 (riscv_return_value): Likewise.
12471
12472 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12473
12474 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12475 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12476 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12477 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12478 * infrun.c (follow_fork): Likewise.
12479 (follow_fork_inferior): Likewise.
12480 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12481 * linux-nat.h (class linux_nat_target): Likewise.
12482 * remote.c (class remote_target) <follow_fork>: Likewise.
12483 (remote_target::follow_fork): Likewise.
12484 * target-delegates.c: Re-generate.
12485 * target.c (default_follow_fork): Likewise.
12486 (target_follow_fork): Likewise.
12487 * target.h (struct target_ops) <follow_fork>: Likewise.
12488 (target_follow_fork): Likewise.
12489
12490 2020-03-24 Tom de Vries <tdevries@suse.de>
12491
12492 * psymtab.c (maintenance_info_psymtabs): Print user field.
12493
12494 2020-03-20 Tom Tromey <tromey@adacore.com>
12495
12496 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12497 const.
12498 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12499 const.
12500
12501 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12502
12503 * ptrace.m4: Don't check for ptrace declaration.
12504 * config.in: Re-generate.
12505 * configure: Re-generate.
12506 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12507 not defined.
12508
12509 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12510
12511 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12512 `PTRACE_TYPE_RET'.
12513 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12514 * sparc-nat.c (gdb_ptrace): Likewise.
12515 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12516
12517 2020-03-20 Tom Tromey <tromey@adacore.com>
12518
12519 * c-exp.y (lex_one_token): Fix assert.
12520
12521 2020-03-20 Tom Tromey <tromey@adacore.com>
12522
12523 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12524 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12525 strncpy call.
12526
12527 2020-03-20 Tom Tromey <tromey@adacore.com>
12528
12529 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12530
12531 2020-03-20 Tom Tromey <tromey@adacore.com>
12532
12533 * ada-valprint.c (print_variant_part): Remove parameters; switch
12534 to value-based API.
12535 (print_field_values): Likewise.
12536 (ada_val_print_struct_union): Likewise.
12537 (ada_value_print_1): Update.
12538
12539 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12540
12541 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12542 nbsd_nat_target instead of inf_ptrace_target.
12543 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12544 nbsd_nat_target.
12545
12546 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12547
12548 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12549 it to the ptrace call.
12550 * (store_registers): Likewise.
12551
12552 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12553
12554 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12555 it to the ptrace call.
12556 * (store_registers): Likewise.
12557
12558 2020-03-19 Luis Machado <luis.machado@linaro.org>
12559
12560 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12561 valid, fetch vg value from ptrace.
12562
12563 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12564 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12565 * inf-ptrace.c: Likewise.
12566 * (gdb_ptrace): Add.
12567 * (inf_ptrace_target::resume): Update.
12568 * (inf_ptrace_target::xfer_partial): Likewise.
12569 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12570 * (inf_ptrace_peek_poke): Update.
12571
12572 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12573
12574 * x86-bsd-nat.c (gdb_ptrace): New.
12575 * (x86bsd_dr_set): Add new argument `ptid'.
12576 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12577 x86bsd_dr_set_addr): Update.
12578
12579 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12580
12581 * remote.c (remote_target::process_stop_reply): Handle events for
12582 all threads differently.
12583
12584 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12585
12586 * completer.c (completion_tracker::remove_completion): Define new
12587 function.
12588 * completer.h (completion_tracker::remove_completion): Declare new
12589 function.
12590 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12591 when adding a C++ function symbol.
12592
12593 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12594
12595 * completer.c (completion_tracker::completion_hash_entry): Define
12596 new class.
12597 (advance_to_filename_complete_word_point): Call
12598 recompute_lowest_common_denominator.
12599 (completion_tracker::completion_tracker): Call discard_completions
12600 to setup the hash table.
12601 (completion_tracker::discard_completions): Allow for being called
12602 from the constructor, pass new equal function, and element deleter
12603 when constructing the hash table. Initialise new class member
12604 variables.
12605 (completion_tracker::maybe_add_completion): Remove use of
12606 m_entries_vec, and store more information into m_entries_hash.
12607 (completion_tracker::recompute_lcd_visitor): New function, most
12608 content taken from...
12609 (completion_tracker::recompute_lowest_common_denominator):
12610 ...here, this now just visits each item in the hash calling the
12611 above visitor.
12612 (completion_tracker::build_completion_result): Remove use of
12613 m_entries_vec, call recompute_lowest_common_denominator.
12614 * completer.h (completion_tracker::have_completions): Remove use
12615 of m_entries_vec.
12616 (completion_tracker::completion_hash_entry): Declare new class.
12617 (completion_tracker::recompute_lowest_common_denominator): Change
12618 function signature.
12619 (completion_tracker::recompute_lcd_visitor): Declare new function.
12620 (completion_tracker::m_entries_vec): Delete.
12621 (completion_tracker::m_entries_hash): Initialize to NULL.
12622 (completion_tracker::m_lowest_common_denominator_valid): New
12623 member variable.
12624 (completion_tracker::m_lowest_common_denominator_max_length): New
12625 member variable.
12626
12627 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12628
12629 * regformats/regdef.h: Put reg in gdb namespace.
12630
12631 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12632
12633 * i386-bsd-nat.c (gdb_ptrace): New.
12634 * (i386bsd_fetch_inferior_registers,
12635 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12636 * (i386bsd_fetch_inferior_registers,
12637 i386bsd_store_inferior_registers) Use gdb_ptrace.
12638
12639 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12640
12641 * amd64-bsd-nat.c (gdb_ptrace): New.
12642 * (amd64bsd_fetch_inferior_registers,
12643 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12644 * (amd64bsd_fetch_inferior_registers,
12645 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12646
12647 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12648
12649 * user-regs.c (user_reg::read): Rename to...
12650 (user_reg::xread): ...this.
12651 * (append_user_reg): Rename argument `read' to `xread'.
12652 * (user_reg_add_builtin): Likewise.
12653 * (user_reg_add): Likewise.
12654 * (value_of_user_reg): Likewise.
12655
12656 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12657
12658 * sparc-nat.c (gdb_ptrace): New.
12659 * sparc-nat.c (sparc_fetch_inferior_registers)
12660 (sparc_store_inferior_registers) Remove obsolete comment.
12661 * sparc-nat.c (sparc_fetch_inferior_registers)
12662 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12663 * sparc-nat.c (sparc_fetch_inferior_registers)
12664 (sparc_store_inferior_registers) Use gdb_ptrace.
12665
12666 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12667
12668 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12669 it to the ptrace call.
12670 * sh-nbsd-nat.c (store_registers): Likewise.
12671
12672 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12673
12674 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12675 nbsd_nat_target instead of inf_ptrace_target.
12676 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12677 nbsd_nat_target.
12678
12679 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12680
12681 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12682
12683 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12684
12685 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12686 <sys/sysctl.h>.
12687 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12688
12689 2020-03-17 Tom de Vries <tdevries@suse.de>
12690
12691 PR gdb/23710
12692 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12693 fields.
12694 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12695 fields.
12696 (process_imported_unit_die): Skip import of c++ CUs.
12697
12698 2020-03-16 Tom Tromey <tom@tromey.com>
12699
12700 * p-valprint.c (pascal_object_print_value): Initialize
12701 base_value.
12702
12703 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12704 Shahab Vahedi <shahab@synopsys.com>
12705
12706 * Makefile.in: Add arch/arc.o
12707 * configure.tgt: Likewise.
12708 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12709 (_initialize_arc_tdep): Don't initialize old target descriptions.
12710 (arc_read_description): New function to cache target descriptions.
12711 * arc-tdep.h (arc_read_description): Add proto type.
12712 * arch/arc.c: New file.
12713 * arch/arc.h: Likewise.
12714 * features/Makefile: Replace old target descriptions with new.
12715 * features/arc-arcompact.c: Remove.
12716 * features/arc-arcompact.xml: Likewise.
12717 * features/arc-v2.c: Likewise
12718 * features/arc-v2.xml: Likewise
12719 * features/arc/aux-arcompact.xml: New file.
12720 * features/arc/aux-v2.xml: Likewise.
12721 * features/arc/core-arcompact.xml: Likewise.
12722 * features/arc/core-v2.xml: Likewise.
12723 * features/arc/aux-arcompact.c: Generate.
12724 * features/arc/aux-v2.c: Likewise.
12725 * features/arc/core-arcompact.c: Likewise.
12726 * features/arc/core-v2.c: Likewise.
12727 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12728
12729 2020-03-16 Tom Tromey <tromey@adacore.com>
12730
12731 PR gdb/25663:
12732 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12733 putting value into bcache.
12734
12735 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12736
12737 PR gdb/21500
12738 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12739 to...
12740 (amd64_windows_init_abi_common): ... this. Don't set size of
12741 long type.
12742 (amd64_windows_init_abi): New function.
12743 (amd64_cygwin_init_abi): New function.
12744 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12745 the Cygwin OS ABI.
12746 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12747 comment.
12748
12749 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12752 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12753 (pe_import_directory_entry): New struct type.
12754 (is_linked_with_cygwin_dll): New function.
12755 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12756 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12757 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12758
12759 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12760
12761 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12762 i386_cygwin_core_osabi_sniffer.
12763
12764 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * i386-cygwin-tdep.c: Rename to...
12767 * i386-windows-tdep.c: ... this.
12768 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12769 i386-windows-tdep.c.
12770 * configure.tgt: Likewise.
12771
12772 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12773
12774 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12775 * osabi.c (gdb_osabi_names): Add "Windows".
12776 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12777 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12778 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12779 i386_cygwin_osabi_sniffer.
12780 (_initialize_i386_cygwin_tdep): Register OS ABI
12781 GDB_OSABI_WINDOWS for i386.
12782 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12783 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12784 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12785 for x86-64.
12786 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12787 when the target matches '*-*-mingw*'.
12788
12789 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12790
12791 * defs.h (enum gdb_osabi): Move to...
12792 * osabi.h (enum gdb_osabi): ... here.
12793 * gdbarch.sh: Include osabi.h in gdbarch.h.
12794 * gdbarch.h: Re-generate.
12795
12796 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12797
12798 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12799 function.
12800 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12801
12802 2020-03-14 Tom Tromey <tom@tromey.com>
12803
12804 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12805 for C++.
12806 (c_type_print_modifier): Likewise. Add "language" parameter.
12807 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12808 (c_type_print_base_1): Update.
12809 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12810 constants.
12811 * type-stack.c (type_stack::insert): Handle tp_atomic and
12812 tp_restrict.
12813 (type_stack::follow_type_instance_flags): Likewise.
12814 (type_stack::follow_types): Likewise. Merge type-following code.
12815 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12816 (space_identifier, cv_with_space_id)
12817 (const_or_volatile_or_space_identifier_noopt)
12818 (const_or_volatile_or_space_identifier): Remove.
12819 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12820 rules.
12821 (ptr_operator, typebase): Update.
12822 (enum token_flag) <FLAG_C>: New constant.
12823 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12824 "_Atomic".
12825 (lex_one_token): Handle FLAG_C.
12826
12827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12828
12829 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12830 it to the ptrace call.
12831 * m68k-bsd-nat.c (store_registers): Likewise.
12832
12833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12834
12835 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12836 gdb_byte *.
12837 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12838 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12839 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12840
12841 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12842
12843 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12844 nbsd_nat_target instead of inf_ptrace_target.
12845 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12846 nbsd_nat_target.
12847
12848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12849
12850 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12851 register_t.
12852
12853 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12854
12855 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12856 it to the ptrace call.
12857 * alpha-bsd-nat.c (store_registers): Likewise.
12858
12859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12860
12861 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12862 includes.
12863 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12864 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12865 fill_fpregset): Likewise.
12866
12867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12868
12869 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12870 nbsd_nat_target instead of inf_ptrace_target.
12871 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12872 nbsd_nat_target.
12873
12874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12875
12876 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12877 register_t.
12878
12879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12880
12881 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12882 it to the ptrace call.
12883 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12884 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12885 * arm-nbsd-nat.c (store_register): Likewise.
12886 * arm-nbsd-nat.c (store_regs): Likewise.
12887 * arm-nbsd-nat.c (store_fp_register): Likewise.
12888 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12889
12890 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12891
12892 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12893 nbsd_nat_target instead of inf_ptrace_target.
12894 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12895 nbsd_nat_target.
12896
12897 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12898
12899 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12900 it to the ptrace call.
12901 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12902
12903 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12904
12905 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12906 it to the ptrace call.
12907 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12908
12909 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12910
12911 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12912 gdb_byte *.
12913 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12914
12915 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12916
12917 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12918 instead of inf_ptrace_target.
12919 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12920 nbsd_nat_target.
12921
12922 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12923
12924 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12925 register_t.
12926
12927 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12928
12929 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12930 register_t.
12931
12932 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12933
12934 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12935 register_t.
12936
12937 2020-03-13 Tom Tromey <tom@tromey.com>
12938
12939 * value.h (val_print): Don't declare.
12940 * valprint.h (val_print_array_elements)
12941 (val_print_scalar_formatted, generic_val_print): Don't declare.
12942 * valprint.c (generic_val_print_array): Take a struct value.
12943 (generic_val_print_ptr, generic_val_print_memberptr)
12944 (generic_val_print_bool, generic_val_print_int)
12945 (generic_val_print_char, generic_val_print_complex)
12946 (generic_val_print): Remove.
12947 (generic_value_print): Update.
12948 (do_val_print): Remove unused parameters. Don't call
12949 la_val_print.
12950 (val_print): Remove.
12951 (common_val_print): Update. Don't call value_check_printable.
12952 (val_print_scalar_formatted, val_print_array_elements): Remove.
12953 * rust-lang.c (rust_val_print): Remove.
12954 (rust_language_defn): Update.
12955 * p-valprint.c (pascal_val_print): Remove.
12956 (pascal_value_print_inner): Update.
12957 (pascal_object_print_val_fields, pascal_object_print_val):
12958 Remove.
12959 (pascal_object_print_static_field): Update.
12960 * p-lang.h (pascal_val_print): Don't declare.
12961 * p-lang.c (pascal_language_defn): Update.
12962 * opencl-lang.c (opencl_language_defn): Update.
12963 * objc-lang.c (objc_language_defn): Update.
12964 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12965 * m2-lang.h (m2_val_print): Don't declare.
12966 * m2-lang.c (m2_language_defn): Update.
12967 * language.h (struct language_defn) <la_val_print>: Remove.
12968 * language.c (unk_lang_value_print_inner): Rename. Change
12969 argument types.
12970 (unknown_language_defn, auto_language_defn): Update.
12971 * go-valprint.c (go_val_print): Remove.
12972 * go-lang.h (go_val_print): Don't declare.
12973 * go-lang.c (go_language_defn): Update.
12974 * f-valprint.c (f_val_print): Remove.
12975 * f-lang.h (f_value_print): Don't declare.
12976 * f-lang.c (f_language_defn): Update.
12977 * d-valprint.c (d_val_print): Remove.
12978 * d-lang.h (d_value_print): Don't declare.
12979 * d-lang.c (d_language_defn): Update.
12980 * cp-valprint.c (cp_print_value_fields)
12981 (cp_print_value_fields_rtti, cp_print_value): Remove.
12982 (cp_print_static_field): Update.
12983 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12984 (c_val_print_struct, c_val_print_union, c_val_print_int)
12985 (c_val_print_memberptr, c_val_print): Remove.
12986 * c-lang.h (c_val_print_array, cp_print_value_fields)
12987 (cp_print_value_fields_rtti): Don't declare.
12988 * c-lang.c (c_language_defn, cplus_language_defn)
12989 (asm_language_defn, minimal_language_defn): Update.
12990 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12991 (ada_val_print_enum): Take a struct value.
12992 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12993 (ada_val_print): Remove.
12994 (ada_value_print_1): Update.
12995 (printable_val_type): Remove.
12996 * ada-lang.h (ada_val_print): Don't declare.
12997 * ada-lang.c (ada_language_defn): Update.
12998
12999 2020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * valprint.c (do_val_print): Update.
13002 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13003 a struct value.
13004 (value_to_value_object_no_release): Declare.
13005 * python/py-value.c (value_to_value_object_no_release): New
13006 function.
13007 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13008 struct value.
13009 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13010 function.
13011 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13012 a struct value.
13013 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13014 Declare.
13015 (gdbscm_apply_val_pretty_printer): Take a struct value.
13016 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13017 value.
13018 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13019 value.
13020 * extension-priv.h (struct extension_language_ops)
13021 <apply_val_pretty_printer>: Take a struct value.
13022 * cp-valprint.c (cp_print_value): Create a struct value.
13023 (cp_print_value): Update.
13024
13025 2020-03-13 Tom Tromey <tom@tromey.com>
13026
13027 * ada-valprint.c (print_field_values): Call common_val_print.
13028
13029 2020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * ada-valprint.c (val_print_packed_array_elements): Remove
13032 bitoffset and val parameters. Call common_val_print.
13033 (ada_val_print_string): Remove offset, address, and original_value
13034 parameters.
13035 (ada_val_print_array): Update.
13036 (ada_value_print_array): New function.
13037 (ada_value_print_1): Call it.
13038
13039 2020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * ada-valprint.c (ada_value_print): Use common_val_print.
13042
13043 2020-03-13 Tom Tromey <tom@tromey.com>
13044
13045 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13046
13047 2020-03-13 Tom Tromey <tom@tromey.com>
13048
13049 * ada-valprint.c (ada_value_print_num): New function.
13050 (ada_value_print_1): Use it.
13051
13052 2020-03-13 Tom Tromey <tom@tromey.com>
13053
13054 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13055
13056 2020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * ada-valprint.c (ada_value_print_ptr): New function.
13059 (ada_value_print_1): Use it.
13060
13061 2020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13064 call common_val_print.
13065 (ada_val_print_1): Update.
13066 (ada_value_print_1): New function.
13067 (ada_value_print_inner): Rewrite.
13068
13069 2020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * cp-valprint.c (cp_print_value_fields): Update.
13072 (cp_print_value): New function.
13073
13074 2020-03-13 Tom Tromey <tom@tromey.com>
13075
13076 * m2-valprint.c (m2_value_print_inner): Use
13077 cp_print_value_fields.
13078 * cp-valprint.c (cp_print_value_fields): New function.
13079 * c-valprint.c (c_value_print_struct): New function.
13080 (c_value_print_inner): Use c_value_print_struct.
13081 * c-lang.h (cp_print_value_fields): Declare.
13082
13083 2020-03-13 Tom Tromey <tom@tromey.com>
13084
13085 * c-valprint.c (c_value_print_array): New function.
13086 (c_value_print_inner): Use it.
13087
13088 2020-03-13 Tom Tromey <tom@tromey.com>
13089
13090 * c-valprint.c (c_value_print_memberptr): New function.
13091 (c_value_print_inner): Use it.
13092
13093 2020-03-13 Tom Tromey <tom@tromey.com>
13094
13095 * c-valprint.c (c_value_print_int): New function.
13096 (c_value_print_inner): Use it.
13097
13098 2020-03-13 Tom Tromey <tom@tromey.com>
13099
13100 * c-valprint.c (c_value_print_ptr): New function.
13101 (c_value_print_inner): Use it.
13102
13103 2020-03-13 Tom Tromey <tom@tromey.com>
13104
13105 * c-valprint.c (c_value_print_inner): Rewrite.
13106
13107 2020-03-13 Tom Tromey <tom@tromey.com>
13108
13109 * valprint.c (generic_value_print_complex): New function.
13110 (generic_value_print): Use it.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * valprint.c (generic_val_print_float): Don't call
13115 val_print_scalar_formatted.
13116 (generic_val_print, generic_value_print): Update.
13117
13118 2020-03-13 Tom Tromey <tom@tromey.com>
13119
13120 * valprint.c (generic_value_print_char): New function
13121 (generic_value_print): Use it.
13122
13123 2020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * valprint.c (generic_value_print_int): New function.
13126 (generic_value_print): Use it.
13127
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * valprint.c (generic_value_print_bool): New function.
13131 (generic_value_print): Use it.
13132
13133 2020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * valprint.c (generic_val_print_func): Simplify.
13136 (generic_val_print, generic_value_print): Update.
13137
13138 2020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * valprint.c (generic_val_print_flags): Remove.
13141 (generic_val_print, generic_value_print): Update.
13142 (val_print_type_code_flags): Add original_value parameter.
13143
13144 2020-03-13 Tom Tromey <tom@tromey.com>
13145
13146 * valprint.c (generic_val_print): Update.
13147 (generic_value_print): Update.
13148 * valprint.c (generic_val_print_enum): Don't call
13149 val_print_scalar_formatted.
13150
13151 2020-03-13 Tom Tromey <tom@tromey.com>
13152
13153 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13154 * valprint.c (generic_value_print_ptr): New function.
13155
13156 2020-03-13 Tom Tromey <tom@tromey.com>
13157
13158 * valprint.c (generic_value_print): Rewrite.
13159
13160 2020-03-13 Tom Tromey <tom@tromey.com>
13161
13162 * p-valprint.c (pascal_object_print_value_fields)
13163 (pascal_object_print_value): New functions.
13164
13165 2020-03-13 Tom Tromey <tom@tromey.com>
13166
13167 * p-valprint.c (pascal_value_print_inner): Rewrite.
13168
13169 2020-03-13 Tom Tromey <tom@tromey.com>
13170
13171 * f-valprint.c (f_value_print_innner): Rewrite.
13172
13173 2020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * m2-valprint.c (m2_print_unbounded_array): New overload.
13176 (m2_print_unbounded_array): Update.
13177 (m2_print_array_contents): Take a struct value.
13178 (m2_value_print_inner): Rewrite.
13179
13180 2020-03-13 Tom Tromey <tom@tromey.com>
13181
13182 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13183 (d_value_print_inner): New function.
13184 * d-lang.h (d_value_print_inner): Declare.
13185 * d-lang.c (d_language_defn): Use d_value_print_inner.
13186
13187 2020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * go-valprint.c (go_value_print_inner): New function.
13190 * go-lang.h (go_value_print_inner): Declare.
13191 * go-lang.c (go_language_defn): Use go_value_print_inner.
13192
13193 2020-03-13 Tom Tromey <tom@tromey.com>
13194
13195 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13196 API.
13197 (rust_val_print): Rewrite.
13198 (rust_value_print_inner): New function, from rust_val_print.
13199 (rust_language_defn): Use rust_value_print_inner.
13200
13201 2020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * ada-valprint.c (ada_value_print_inner): New function.
13204 * ada-lang.h (ada_value_print_inner): Declare.
13205 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13206
13207 2020-03-13 Tom Tromey <tom@tromey.com>
13208
13209 * f-valprint.c (f_value_print_innner): New function.
13210 * f-lang.h (f_value_print_innner): Declare.
13211 * f-lang.c (f_language_defn): Use f_value_print_innner.
13212
13213 2020-03-13 Tom Tromey <tom@tromey.com>
13214
13215 * p-valprint.c (pascal_value_print_inner): New function.
13216 * p-lang.h (pascal_value_print_inner): Declare.
13217 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13218
13219 2020-03-13 Tom Tromey <tom@tromey.com>
13220
13221 * m2-valprint.c (m2_value_print_inner): New function.
13222 * m2-lang.h (m2_value_print_inner): Declare.
13223 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13224
13225 2020-03-13 Tom Tromey <tom@tromey.com>
13226
13227 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13228 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13229 * c-valprint.c (c_value_print_inner): New function.
13230 * c-lang.h (c_value_print_inner): Declare.
13231 * c-lang.c (c_language_defn, cplus_language_defn)
13232 (asm_language_defn, minimal_language_defn): Use
13233 c_value_print_inner.
13234
13235 2020-03-13 Tom Tromey <tom@tromey.com>
13236
13237 * p-valprint.c (pascal_object_print_value_fields): Now static.
13238 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13239
13240 2020-03-13 Tom Tromey <tom@tromey.com>
13241
13242 * c-valprint.c (c_val_print_array): Simplify.
13243
13244 2020-03-13 Tom Tromey <tom@tromey.com>
13245
13246 * valprint.c (value_print_array_elements): New function.
13247 * valprint.h (value_print_array_elements): Declare.
13248
13249 2020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13252 * mips-tdep.c (mips_print_register): Use
13253 value_print_scalar_formatted.
13254
13255 2020-03-13 Tom Tromey <tom@tromey.com>
13256
13257 * valprint.h (value_print_scalar_formatted): Declare.
13258 * valprint.c (value_print_scalar_formatted): New function.
13259
13260 2020-03-13 Tom Tromey <tom@tromey.com>
13261
13262 * valprint.h (generic_value_print): Declare.
13263 * valprint.c (generic_value_print): New function.
13264
13265 2020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * valprint.c (do_val_print): Call la_value_print_inner, if
13268 available.
13269 * rust-lang.c (rust_language_defn): Update.
13270 * p-lang.c (pascal_language_defn): Update.
13271 * opencl-lang.c (opencl_language_defn): Update.
13272 * objc-lang.c (objc_language_defn): Update.
13273 * m2-lang.c (m2_language_defn): Update.
13274 * language.h (struct language_defn) <la_value_print_inner>: New
13275 member.
13276 * language.c (unknown_language_defn, auto_language_defn): Update.
13277 * go-lang.c (go_language_defn): Update.
13278 * f-lang.c (f_language_defn): Update.
13279 * d-lang.c (d_language_defn): Update.
13280 * c-lang.c (c_language_defn, cplus_language_defn)
13281 (asm_language_defn, minimal_language_defn): Update.
13282 * ada-lang.c (ada_language_defn): Update.
13283
13284 2020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * c-valprint.c (c_value_print): Use common_val_print.
13287
13288 2020-03-13 Tom Tromey <tom@tromey.com>
13289
13290 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13291
13292 2020-03-13 Tom Tromey <tom@tromey.com>
13293
13294 * f-valprint.c (f77_print_array_1, f_val_print): Use
13295 common_val_print.
13296
13297 2020-03-13 Tom Tromey <tom@tromey.com>
13298
13299 * riscv-tdep.c (riscv_print_one_register_info): Use
13300 common_val_print.
13301
13302 2020-03-13 Tom Tromey <tom@tromey.com>
13303
13304 * mi/mi-main.c (output_register): Use common_val_print.
13305
13306 2020-03-13 Tom Tromey <tom@tromey.com>
13307
13308 * infcmd.c (default_print_one_register_info): Use
13309 common_val_print.
13310
13311 2020-03-13 Tom Tromey <tom@tromey.com>
13312
13313 * valprint.h (common_val_print_checked): Declare.
13314 * valprint.c (common_val_print_checked): New function.
13315 * stack.c (print_frame_arg): Use common_val_print_checked.
13316
13317 2020-03-13 Tom Tromey <tom@tromey.com>
13318
13319 * valprint.c (do_val_print): New function, from val_print.
13320 (val_print): Use do_val_print.
13321 (common_val_print): Use do_val_print.
13322
13323 2020-03-13 Tom Tromey <tom@tromey.com>
13324
13325 * valprint.c (value_print): Use scoped_value_mark.
13326
13327 2020-03-13 Tom de Vries <tdevries@suse.de>
13328
13329 PR symtab/25646
13330 * psymtab.c (partial_symtab::partial_symtab): Don't set
13331 globals_offset and statics_offset. Push element onto
13332 current_global_psymbols and current_static_psymbols stacks.
13333 (concat): New function.
13334 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13335 element from current_global_psymbols and current_static_psymbols
13336 stacks. Concat popped elements to global_psymbols and
13337 static_symbols.
13338 (add_psymbol_to_list): Use current_global_psymbols and
13339 current_static_psymbols stacks.
13340 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13341 current_static_psymbols fields.
13342
13343 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13344
13345 * corelow.c (sniff_core_bfd): Remove.
13346 (class core_target) <m_core_vec>: Remove.
13347 (core_target::core_target): Update.
13348 (core_file_fns): Remove.
13349 (deprecated_add_core_fns): Remove.
13350 (default_core_sniffer): Remove.
13351 (sniff_core_bfd): Remove.
13352 (default_check_format): Remove.
13353 (gdb_check_format): Remove.
13354 (core_target_open): Update.
13355 (core_target::get_core_register_section): Update.
13356 (get_core_registers_cb): Update.
13357 (core_target::fetch_registers): Update.
13358 * gdbcore.h (struct core_fns): Remove.
13359 (deprecated_add_core_fns): Remove.
13360 (default_core_sniffer): Remove.
13361 (default_check_format): Remove.
13362
13363 2020-03-12 Tom Tromey <tom@tromey.com>
13364
13365 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13366 CORE_ADDR.
13367 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13368
13369 2020-03-12 Tom Tromey <tom@tromey.com>
13370
13371 * remote.c (remote_target::download_tracepoint)
13372 (remote_target::enable_tracepoint)
13373 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13374 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13375 sprintf_vma.
13376
13377 2020-03-12 Tom Tromey <tom@tromey.com>
13378
13379 * symfile-mem.c: Update CORE_ADDR size assert.
13380
13381 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13382
13383 * selftest.m4: Move to gdbsupport/.
13384 * acinclude.m4: Update path to selftest.m4.
13385
13386 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13387
13388 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13389 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13390 gdbarch-selfselftests.c and selftest-arch.c.
13391 (SUBDIR_UNITTESTS_OBS): Rename to...
13392 (SELFTESTS_OBS): ... this.
13393 (COMMON_SFILES): Remove disasm-selftests.c and
13394 gdbarch-selftests.c.
13395 * configure.ac: Don't add selftest-arch.{c,o} to
13396 CONFIG_{SRCS,OBS}.
13397 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13398 preprocessor conditions.
13399
13400 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13401
13402 * configure.ac: Don't source bfd/development.sh.
13403 * selftest.m4: Modify comment.
13404 * configure: Re-generate.
13405
13406 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13407
13408 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13409 not "true" or "false".
13410 * configure: Re-generate.
13411
13412 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13413
13414 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13415 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13416 renamed to arm_nbsd_supply_gregset.
13417 (fetch_register): Update to call arm_nbsd_supply_gregset.
13418 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13419 (arm_netbsd_nat_target::fetch_registers): Update.
13420 (fetch_elfcore_registers): Removed.
13421 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13422 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13423 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13424 not require NetBSD system headers.
13425 (arm_nbsd_regset): New struct.
13426 (arm_nbsd_iterate_over_regset_sections): New function.
13427 (arm_netbsd_init_abi_common): Updated to call
13428 set_gdbarch_iterate_over_regset_sections.
13429 * arm-nbsd-tdep.h: New file.
13430
13431 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13432
13433 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13434 recursion.
13435
13436 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13437
13438 * configure: Re-generate.
13439
13440 2020-03-11 Tom Tromey <tromey@adacore.com>
13441
13442 * ada-typeprint.c (print_choices): Fix comment.
13443
13444 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13445
13446 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13447 previous item in the list, when the list has no items.
13448
13449 2020-03-11 Tom de Vries <tdevries@suse.de>
13450
13451 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13452 PROP_LOCLIST handling code.
13453
13454 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13455
13456 * buildsym-legacy.c (record_line): Pass extra parameter to
13457 record_line.
13458 * buildsym.c (buildsym_compunit::record_line): Take an extra
13459 parameter, reduce duplication in the line table, and record the
13460 is_stmt flag in the line table.
13461 * buildsym.h (buildsym_compunit::record_line): Add extra
13462 parameter.
13463 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13464 non-statement lines.
13465 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13466 this to the symtab builder.
13467 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13468 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13469 through to dwarf_record_line_1.
13470 * infrun.c (process_event_stop_test): When stepping, don't stop at
13471 a non-statement instruction, and only refresh the step info when
13472 we land in the middle of a line's range. Also add an extra
13473 comment.
13474 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13475 field.
13476 * record-btrace.c (btrace_find_line_range): Only record lines
13477 marked as is-statement.
13478 * stack.c (frame_show_address): Show the frame address if we are
13479 in a non-statement sal.
13480 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13481 (maintenance_print_one_line_table): Print a header for the is_stmt
13482 column, and include is_stmt information in the output.
13483 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13484 preference to non-statements.
13485 (find_pcs_for_symtab_line): Prefer is-statement entries.
13486 (find_line_common): Likewise.
13487 * symtab.h (struct linetable_entry): Add is_stmt field.
13488 (struct symtab_and_line): Likewise.
13489 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13490 arranging the line table.
13491
13492 2020-03-07 Tom de Vries <tdevries@suse.de>
13493
13494 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13495 DIE.
13496
13497 2020-03-07 Tom Tromey <tom@tromey.com>
13498
13499 * valops.c (value_literal_complex): Remove obsolete comment.
13500 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13501 comment.
13502
13503 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13504
13505 * infrun.h: Forward-declare thread_info.
13506 (set_step_info): Add thread_info parameter, add doc.
13507 * infrun.c (set_step_info): Add thread_info parameter, move doc
13508 to header.
13509 * infrun.c (process_event_stop_test): Pass thread to
13510 set_step_info call.
13511 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13512 set_step_info.
13513 (prepare_one_step): Add thread_info parameter, pass it to
13514 set_step_frame and prepare_one_step (recursive) call.
13515 (step_1): Pass thread to prepare_one_step call.
13516 (step_command_fsm::should_stop): Pass thread to
13517 prepare_one_step.
13518 (until_next_fsm): Pass thread to set_step_frame call.
13519 (finish_command): Pass thread to set_step_info call.
13520
13521 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13522
13523 * windows-tdep.c (windows_solib_create_inferior_hook):
13524 Check if inferior is running.
13525
13526 2020-03-06 Tom de Vries <tdevries@suse.de>
13527
13528 * NEWS: Fix "the the".
13529 * ctfread.c: Same.
13530
13531 2020-03-06 Tom de Vries <tdevries@suse.de>
13532
13533 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13534
13535 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13536
13537 * .dir-locals.el: Add a comment referencing the other copies of
13538 this file.
13539
13540 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13541
13542 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13543 psargs.
13544
13545 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13546
13547 * .gitattributes: New file.
13548
13549 2020-03-04 Tom Tromey <tom@tromey.com>
13550
13551 * symmisc.c (print_symbol_bcache_statistics)
13552 (print_objfile_statistics): Update.
13553 * symfile.c (allocate_symtab): Use intern.
13554 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13555 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13556 macro_cache>: Remove.
13557 <string_cache>: New member.
13558 (struct objfile) <intern>: New methods.
13559 * elfread.c (elf_symtab_read): Use intern.
13560 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13561 (dwarf2_compute_name, dwarf2_physname)
13562 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13563 names.
13564 (guess_partial_die_structure_name): Update.
13565 (partial_die_info::fixup): Intern name.
13566 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13567 name.
13568 (dwarf2_name): Intern name. Update.
13569 * buildsym.c (buildsym_compunit::get_macro_table): Use
13570 string_cache.
13571
13572 2020-03-04 Tom Tromey <tom@tromey.com>
13573
13574 * jit.c (bfd_open_from_target_memory): Make "target" const.
13575 * corefile.c (gnutarget): Now const.
13576 * gdbcore.h (gnutarget): Now const.
13577
13578 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13579
13580 * NEWS: Mention support for WOW64 processes.
13581 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13582 (amd64_windows_segment_register_p): Remove static.
13583 (_initialize_amd64_windows_nat): Update.
13584 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13585 * i386-windows-nat.c (context_offset): Update.
13586 (i386_mappings): Rename and remove static.
13587 (i386_windows_segment_register_p): Remove static.
13588 (_initialize_i386_windows_nat): Update.
13589 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13590 (STATUS_WX86_SINGLE_STEP): New macro.
13591 (EnumProcessModulesEx): New macro.
13592 (Wow64SuspendThread): New macro.
13593 (Wow64GetThreadContext): New macro.
13594 (Wow64SetThreadContext): New macro.
13595 (Wow64GetThreadSelectorEntry): New macro.
13596 (windows_set_context_register_offsets): Add static.
13597 (windows_set_segment_register_p): Likewise.
13598 (windows_add_thread): Adapt for WOW64 processes.
13599 (windows_fetch_one_register): Likewise.
13600 (windows_nat_target::fetch_registers): Likewise.
13601 (windows_store_one_register): Likewise.
13602 (display_selector): Likewise.
13603 (display_selectors): Likewise.
13604 (handle_exception): Likewise.
13605 (windows_continue): Likewise.
13606 (windows_nat_target::resume): Likewise.
13607 (windows_add_all_dlls): Likewise.
13608 (do_initial_windows_stuff): Likewise.
13609 (windows_nat_target::attach): Likewise.
13610 (windows_get_exec_module_filename): Likewise.
13611 (windows_nat_target::create_inferior): Likewise.
13612 (windows_xfer_siginfo): Likewise.
13613 (_initialize_loadable): Initialize Wow64SuspendThread,
13614 Wow64GetThreadContext, Wow64SetThreadContext,
13615 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13616 * windows-nat.h (windows_set_context_register_offsets):
13617 Remove declaration.
13618 (windows_set_segment_register_p): Likewise.
13619 (i386_windows_segment_register_p): Add declaration.
13620 (amd64_windows_segment_register_p): Likewise.
13621
13622 2020-03-04 Luis Machado <luis.machado@linaro.org>
13623
13624 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13625 in "info registers" for AArch64/ARM.
13626
13627 The change caused "info registers" to not print GPR's.
13628
13629 gdb/ChangeLog:
13630
13631 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13632
13633 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13634 when reg->group is empty and reggroup is not.
13635
13636 2020-03-03 Tom Tromey <tromey@adacore.com>
13637
13638 * dwarf2/frame.c (struct dwarf2_frame_cache)
13639 <checked_tailcall_bottom, entry_cfa_sp_offset,
13640 entry_cfa_sp_offset_p>: Remove members.
13641 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13642 (dwarf2_frame_prev_register): Don't call
13643 dwarf2_tailcall_sniffer_first.
13644 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13645 * frame-unwind.c (add_unwinder): New fuction.
13646 (frame_unwind_init): Use it. Add tailcall unwinder.
13647
13648 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13649 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13650
13651 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13652 value should be printed as true.
13653
13654 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13655
13656 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13657 (windows_init_abi): Set and use windows_so_ops.
13658
13659 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13660
13661 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13662 when verifying if dealing with a convenience variable.
13663
13664 2020-03-03 Luis Machado <luis.machado@linaro.org>
13665
13666 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13667
13668 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13669
13670 * infrun.c (gdbarch_supports_displaced_stepping): New.
13671 (use_displaced_stepping): Break up conditions in smaller pieces.
13672 Use gdbarch_supports_displaced_stepping.
13673 (displaced_step_prepare_throw): Use
13674 gdbarch_supports_displaced_stepping.
13675
13676 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13677
13678 * NEWS: Mention new behaviour of the history filename.
13679 * top.c (write_history_p): Add comment.
13680 (show_write_history_p): Add header comment, give a different
13681 message when history writing is on, but the history filename is
13682 empty.
13683 (history_filename): Add comment.
13684 (history_filename_empty): New function.
13685 (show_history_filename): Add header comment, give a different
13686 message when the filename is empty.
13687 (init_history): Compare history_filename against nullptr, and only
13688 read history if the filename is not empty.
13689 (set_history_filename): Add header comment, and only make
13690 non-empty filenames absolute.
13691 (init_main): Make the filename argument to 'set history filename'
13692 optional.
13693
13694 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13695
13696 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13697 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13698 (fetch_fp_register): Update.
13699 (fetch_fp_regs): Update.
13700 (store_fp_register): Update.
13701 (store_fp_regs): Update.
13702 (arm_netbsd_nat_target::read_description): New function.
13703 (fetch_elfcore_registers): Update.
13704
13705 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13706
13707 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13708 general_thread if the stop reply is missing a thread-id.
13709 (remote_target::process_stop_reply): Use the first non-exited
13710 thread if the target didn't pass a thread-id.
13711 * infrun.c (do_target_wait): Move call to
13712 switch_to_inferior_no_thread to ....
13713 (do_target_wait_1): ... here.
13714
13715 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13716
13717 * debuginfod-support.c: Include defs.h first.
13718
13719 2020-02-28 Tom de Vries <tdevries@suse.de>
13720
13721 * symfile.c (set_initial_language): Use default language for lookup.
13722
13723 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13724
13725 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13726 reader variable, pass `this` to read_cutu_die_from_dwo.
13727
13728 2020-02-27 Aaron Merey <amerey@redhat.com>
13729
13730 * source.c (open_source_file): Check for nullptr when computing
13731 srcpath.
13732
13733 2020-02-27 Tom Tromey <tromey@adacore.com>
13734
13735 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13736 member.
13737 (dwarf2_add_field): Don't update nfields.
13738 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13739
13740 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13741
13742 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13743 abs.
13744
13745 2020-02-26 Tom Tromey <tom@tromey.com>
13746
13747 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13748 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13749 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13750 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13751 per_cu_data.
13752
13753 2020-02-26 Tom Tromey <tom@tromey.com>
13754
13755 * dwarf2/index-write.c (psym_index_map): Change type.
13756 (add_address_entry_worker, write_one_signatured_type)
13757 (recursively_count_psymbols, recursively_write_psymbols)
13758 (class debug_names, psyms_seen_size, write_gdbindex)
13759 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13760
13761 2020-02-26 Aaron Merey <amerey@redhat.com>
13762
13763 * Makefile.in: Handle optional debuginfod support.
13764 * NEWS: Update.
13765 * README: Add --with-debuginfod summary.
13766 * config.in: Regenerate.
13767 * configure: Regenerate.
13768 * configure.ac: Handle optional debuginfod support.
13769 * debuginfod-support.c: debuginfod helper functions.
13770 * debuginfod-support.h: Ditto.
13771 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13772 summary.
13773 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13774 when a dwz file cannot be found.
13775 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13776 debuginfo file cannot be found.
13777 * source.c (open_source_file): Query debuginfod servers when a
13778 source file cannot be found.
13779 * top.c (print_gdb_configuration): Include
13780 --{with,without}-debuginfod in the output.
13781
13782 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13783
13784 * thread.c (thr_try_catch_cmd): Print thread name.
13785
13786 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13787
13788 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13789 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13790 dwarf2_fetch_die_type_sect_off): Move to...
13791 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13792 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13793 dwarf2_fetch_die_type_sect_off): ... here.
13794 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13796 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13797
13798 2020-02-26 Tom de Vries <tdevries@suse.de>
13799
13800 PR gdb/25603
13801 * symfile.c (set_initial_language): Exit-early if
13802 language_mode == language_mode_manual.
13803
13804 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13805
13806 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13807 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13808 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13809
13810 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13811
13812 * gdbtypes.c (create_array_type_with_stride): Handle negative
13813 array strides.
13814 * valarith.c (value_subscripted_rvalue): Likewise.
13815
13816 2020-02-25 Luis Machado <luis.machado@linaro.org>
13817
13818 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13819
13820 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13821
13822 * loc.h (dwarf2_get_die_type): Move to...
13823 * read.h (dwarf2_get_die_type): ... here.
13824 * read.c (dwarf2_get_die_type): Move doc to header.
13825
13826 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13827
13828 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13829 'gnulib/Makefile.in' to the list.
13830
13831 2020-02-24 Tom Tromey <tom@tromey.com>
13832
13833 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13834 Remove.
13835 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13836 XOBNEWVEC.
13837
13838 2020-02-24 Tom Tromey <tom@tromey.com>
13839
13840 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13841 New method.
13842 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13843 (dw2_do_instantiate_symtab, dw2_get_file_names)
13844 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13845
13846 2020-02-24 Tom Tromey <tom@tromey.com>
13847
13848 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13849 make_scoped_restore.
13850 (dwarf2_psymtab::read_symtab): Don't clear
13851 reading_partial_symbols.
13852
13853 2020-02-24 Tom de Vries <tdevries@suse.de>
13854
13855 PR gdb/25592
13856 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13857
13858 2020-02-24 Tom de Vries <tdevries@suse.de>
13859
13860 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13861 commands layout next/prev/regs.
13862
13863 2020-02-22 Tom Tromey <tom@tromey.com>
13864
13865 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13866 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13867
13868 2020-02-22 Tom Tromey <tom@tromey.com>
13869
13870 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13871
13872 2020-02-22 Tom Tromey <tom@tromey.com>
13873
13874 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13875 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13876 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13877 * tui/tui.c (_initialize_tui): Add usage text.
13878
13879 2020-02-22 Tom Tromey <tom@tromey.com>
13880
13881 * tui/tui-win.c (tui_set_focus_command)
13882 (tui_set_win_height_command): Use error_no_arg.
13883 (_initialize_tui_win): Update help text.
13884 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13885
13886 2020-02-22 Tom Tromey <tom@tromey.com>
13887
13888 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13889 * tui/tui-disasm.h (struct tui_disasm_window)
13890 <display_start_addr>: Declare.
13891 * tui/tui-source.h (struct tui_source_window)
13892 <display_start_addr>: Declare.
13893 * tui/tui-winsource.h (struct tui_source_window_base)
13894 <show_source_line, display_start_addr>: New methods.
13895 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13896 Rename and move to protected section.
13897 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13898 (tui_source_window_base::do_erase_source_content): Update.
13899 (tui_source_window_base::show_source_line): Now a method.
13900 (tui_source_window_base::show_source_content)
13901 (tui_source_window_base::tui_source_window_base)
13902 (tui_source_window_base::rerender)
13903 (tui_source_window_base::refill)
13904 (tui_source_window_base::do_scroll_horizontal)
13905 (tui_source_window_base::set_is_exec_point_at)
13906 (tui_source_window_base::update_breakpoint_info)
13907 (tui_source_window_base::update_exec_info): Update.
13908 * tui/tui-source.c (tui_source_window::set_contents)
13909 (tui_source_window::showing_source_p)
13910 (tui_source_window::do_scroll_vertical)
13911 (tui_source_window::location_matches_p)
13912 (tui_source_window::line_is_displayed): Update.
13913 (tui_source_window::display_start_addr): New method.
13914 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13915 (tui_disasm_window::do_scroll_vertical)
13916 (tui_disasm_window::location_matches_p): Update.
13917 (tui_disasm_window::display_start_addr): New method.
13918
13919 2020-02-22 Tom Tromey <tom@tromey.com>
13920
13921 * NEWS: Add entry for gdb.register_window_type.
13922 * tui/tui-layout.h (window_factory): New typedef.
13923 (tui_register_window): Declare.
13924 * tui/tui-layout.c (saved_tui_windows): New global.
13925 (tui_apply_current_layout): Use it.
13926 (tui_register_window): New function.
13927 * python/python.c (do_start_initialization): Call
13928 gdbpy_initialize_tui.
13929 (python_GdbMethods): Add "register_window_type" function.
13930 * python/python-internal.h (gdbpy_register_tui_window)
13931 (gdbpy_initialize_tui): Declare.
13932 * python/py-tui.c: New file.
13933 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13934
13935 2020-02-22 Tom Tromey <tom@tromey.com>
13936
13937 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13938
13939 2020-02-22 Tom Tromey <tom@tromey.com>
13940
13941 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13942 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13943 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13944 (tui_set_win_focus_to): Move from tui-win.c.
13945
13946 2020-02-22 Tom Tromey <tom@tromey.com>
13947
13948 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13949 functions.
13950 (known_window_types): New global.
13951 (tui_get_window_by_name): Reimplement.
13952 (initialize_known_windows): New function.
13953 (validate_window_name): Rewrite.
13954 (_initialize_tui_layout): Call initialize_known_windows.
13955
13956 2020-02-22 Tom Tromey <tom@tromey.com>
13957
13958 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13959 Remove constants.
13960 * tui/tui-winsource.h (struct tui_source_window_base)
13961 <tui_source_window_base>: Remove parameter.
13962 * tui/tui-winsource.c
13963 (tui_source_window_base::tui_source_window_base): Remove
13964 parameter.
13965 (tui_source_window_base::refill): Update.
13966 * tui/tui-stack.h (struct tui_locator_window)
13967 <tui_locator_window>: Update.
13968 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13969 Default the constructor.
13970 * tui/tui-regs.h (struct tui_data_item_window)
13971 <tui_data_item_window>: Default the constructor.
13972 (struct tui_data_window) <tui_data_window>: Likewise.
13973 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13974 Default the constructor.
13975 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13976 Default the constructor.
13977 <type>: Remove.
13978 (struct tui_win_info) <tui_win_info>: Default the constructor.
13979 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13980 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13981 Default the constructor.
13982
13983 2020-02-22 Tom Tromey <tom@tromey.com>
13984
13985 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13986 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13987 * tui/tui-win.c (tui_resize_all): Don't call
13988 tui_delete_invisible_windows.
13989 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13990 done.
13991 (tui_set_layout): Update.
13992 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13993 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13994 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13995
13996 2020-02-22 Tom Tromey <tom@tromey.com>
13997
13998 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13999 correctly.
14000
14001 2020-02-22 Tom Tromey <tom@tromey.com>
14002
14003 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14004
14005 2020-02-22 Tom Tromey <tom@tromey.com>
14006
14007 * tui/tui-winsource.h (struct tui_source_window_iterator)
14008 <inner_iterator>: New etytypedef.
14009 <tui_source_window_iterator>: Take "end" parameter.
14010 <tui_source_window_iterator>: Take iterator.
14011 <operator*, advance>: Update.
14012 <m_iter>: Change type.
14013 <m_end>: New field.
14014 (struct tui_source_windows) <begin, end>: Update.
14015 * tui/tui-layout.c (tui_windows): New global.
14016 (tui_apply_current_layout): Clear tui_windows.
14017 (tui_layout_window::apply): Update tui_windows.
14018 * tui/tui-data.h (tui_windows): Declare.
14019 (all_tui_windows): Now inline function.
14020 (class tui_window_iterator, struct all_tui_windows): Remove.
14021
14022 2020-02-22 Tom Tromey <tom@tromey.com>
14023
14024 PR tui/17850:
14025 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14026 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14027 "height" argument.
14028 (class tui_layout_window) <get_sizes>: Likewise.
14029 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14030 argument.
14031 <get_sizes>: Add "height" argument.
14032 <m_vertical>: New field.
14033 * tui/tui-layout.c (tui_layout_split::clone): Update.
14034 (tui_layout_split::get_sizes): Add "height" argument.
14035 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14036 (tui_new_layout_command): Parse "-horizontal".
14037 (_initialize_tui_layout): Update help string.
14038 (tui_layout_split::specification): Add "-horizontal" when needed.
14039 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14040 argument.
14041 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14042 New methods.
14043
14044 2020-02-22 Tom Tromey <tom@tromey.com>
14045
14046 * tui/tui-layout.h (enum tui_adjust_result): New.
14047 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14048 (class tui_layout_window) <adjust_size>: Return
14049 tui_adjust_result. Rewrite.
14050 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14051 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14052
14053 2020-02-22 Tom Tromey <tom@tromey.com>
14054
14055 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14056 parameter and return types.
14057 (class tui_layout_base) <specification>: Add "depth".
14058 (class tui_layout_window) <specification>: Add "depth".
14059 (class tui_layout_split) <specification>: Add "depth".
14060 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14061 and return types.
14062 (tui_new_layout_command): Parse sub-layouts.
14063 (_initialize_tui_layout): Update help string.
14064 (tui_layout_window::specification): Add "depth".
14065 (add_layout_command): Update.
14066
14067 2020-02-22 Tom Tromey <tom@tromey.com>
14068
14069 * NEWS: Add "tui new-layout" item.
14070 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14071 Add new-layout command to help text.
14072 (validate_window_name): New function.
14073 (tui_new_layout_command): New function.
14074 (_initialize_tui_layout): Register "new-layout".
14075 (tui_layout_window::specification): New method.
14076 (tui_layout_window::specification): New method.
14077 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14078 method.
14079 (class tui_layout_window) <specification>: New method.
14080 (class tui_layout_split) <specification>: New method.
14081
14082 2020-02-22 Tom Tromey <tom@tromey.com>
14083
14084 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14085 * tui/tui-win.c (window_name_completer): Update comment.
14086 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14087 Declare method.
14088 (class tui_layout_window) <replace_window>: Likewise.
14089 (class tui_layout_split) <replace_window>: Likewise.
14090 (tui_set_layout): Don't declare.
14091 (tui_set_initial_layout): Declare function.
14092 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14093 (asm_regs_layout): New globals.
14094 (tui_current_layout, show_layout): Remove.
14095 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14096 (find_layout, tui_apply_layout): New function.
14097 (layout_completer): Remove.
14098 (tui_next_layout): Reimplement.
14099 (tui_next_layout_command): New function.
14100 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14101 (tui_regs_layout): Reimplement.
14102 (tui_regs_layout_command): New function.
14103 (extract_display_start_addr): Rewrite.
14104 (next_layout, prev_layout): Remove.
14105 (tui_layout_window::replace_window): New method.
14106 (tui_layout_split::replace_window): New method.
14107 (destroy_layout): New function.
14108 (layout_list): New global.
14109 (add_layout_command): New function.
14110 (initialize_layouts): Update.
14111 (tui_layout_command): New function.
14112 (_initialize_tui_layout): Install "layout" commands.
14113 * tui/tui-data.h (enum tui_layout_type): Remove.
14114 (tui_current_layout): Don't declare.
14115
14116 2020-02-22 Tom Tromey <tom@tromey.com>
14117
14118 * tui/tui-regs.c (tui_reg_layout): Remove.
14119 (tui_reg_command): Use tui_regs_layout.
14120 * tui/tui-layout.h (tui_reg_command): Declare.
14121 * tui/tui-layout.c (tui_reg_command): New function.
14122
14123 2020-02-22 Tom Tromey <tom@tromey.com>
14124
14125 * tui/tui.c (tui_rl_delete_other_windows): Call
14126 tui_remove_some_windows.
14127 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14128 Declare method.
14129 (class tui_layout_window) <remove_windows>: New method.
14130 (class tui_layout_split) <remove_windows>: Declare.
14131 (tui_remove_some_windows): Declare.
14132 * tui/tui-layout.c (tui_remove_some_windows): New function.
14133 (tui_layout_split::remove_windows): New method.
14134
14135 2020-02-22 Tom Tromey <tom@tromey.com>
14136
14137 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14138 * tui/tui-layout.h (tui_next_layout): Declare.
14139 * tui/tui-layout.c (tui_next_layout): New function.
14140
14141 2020-02-22 Tom Tromey <tom@tromey.com>
14142
14143 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14144 correct coordinates.
14145
14146 2020-02-22 Tom Tromey <tom@tromey.com>
14147
14148 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14149 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14150 DATA_WIN case.
14151
14152 2020-02-22 Tom Tromey <tom@tromey.com>
14153
14154 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14155 TUI_DISASM_WIN, not tui_win_list.
14156
14157 2020-02-22 Tom Tromey <tom@tromey.com>
14158
14159 * valprint.c (generic_val_print_enum_1)
14160 (val_print_type_code_flags): Style member names.
14161 * rust-lang.c (val_print_struct, rust_print_enum)
14162 (rust_print_struct_def, rust_internal_print_type): Style member
14163 names.
14164 * p-valprint.c (pascal_object_print_value_fields): Style member
14165 names. Only call fprintf_symbol_filtered for static members.
14166 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14167 * f-valprint.c (f_val_print): Style member names.
14168 * f-typeprint.c (f_type_print_base): Style member names.
14169 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14170 call fprintf_symbol_filtered for static members.
14171 (cp_print_class_member): Style member names.
14172 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14173 member names.
14174 * ada-valprint.c (ada_print_scalar): Style enum names.
14175 (ada_val_print_enum): Likewise.
14176 * ada-typeprint.c (print_enum_type): Style enum names.
14177
14178 2020-02-21 Tom Tromey <tom@tromey.com>
14179
14180 * psympriv.h (struct partial_symtab): Update comment.
14181
14182 2020-02-21 Tom Tromey <tromey@adacore.com>
14183
14184 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14185 type is CORE_ADDR.
14186
14187 2020-02-21 Tom de Vries <tdevries@suse.de>
14188
14189 PR gdb/25534
14190 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14191 if dependencies[i]->user != NULL.
14192
14193 2020-02-21 Ali Tamur <tamur@google.com>
14194
14195 * dwarf2/read.c (dwarf2_name): Add null check.
14196
14197 2020-02-20 Tom Tromey <tom@tromey.com>
14198
14199 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14200 ">=", in binary search.
14201 (dwarf2_find_containing_comp_unit): New overload.
14202 (run_test): New self-test.
14203 (_initialize_dwarf2_read): Register new test.
14204
14205 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14206
14207 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14208 * riscv-tdep.h: Likewise.
14209 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14210 rv32-only CSR.
14211 * features/riscv/64bit-csr.xml: Regenerated.
14212
14213 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14214 Tom Tromey <tom@tromey.com>
14215
14216 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14217 of 'fputc_unfiltered'.
14218 (putchar_unfiltered): Call 'fputc_unfiltered'.
14219 (fputc_unfiltered): Call 'fputs_unfiltered'.
14220
14221 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14222
14223 * config.in: Regenerate.
14224 * configure: Regenerate.
14225 * configure.ac: Add --with-python-libdir option.
14226 * main.c: Use WITH_PYTHON_LIBDIR.
14227
14228 2020-02-19 Tom Tromey <tom@tromey.com>
14229
14230 * symtab.c (general_symbol_info::compute_and_set_names): Use
14231 obstack_strndup. Simplify call to symbol_set_demangled_name.
14232
14233 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14234
14235 * dwarf2/read.c (allocate_signatured_type_table,
14236 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14237 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14238 Remove objfile parameter, update all callers.
14239
14240 2020-02-19 Doug Evans <dje@google.com>
14241
14242 PR rust/25535
14243 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14244 rust_enum_variant calculation.
14245
14246 2020-02-19 Tom Tromey <tromey@adacore.com>
14247
14248 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14249
14250 2020-02-19 Tom Tromey <tromey@adacore.com>
14251
14252 * ada-lang.c (cache_symbol): Use obstack_strdup.
14253
14254 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14255
14256 * configure: Regenerate.
14257
14258 2020-02-19 Tom Tromey <tromey@adacore.com>
14259
14260 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14261 NULL check.
14262
14263 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14264
14265 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14266
14267 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14268
14269 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14270 if GDBSERVER is not defined.
14271 (riscv_tdesc_cache): Likewise, also store const target_desc.
14272 (STATIC_IN_GDB): Define.
14273 (riscv_create_target_description): Update declaration with
14274 STATIC_IN_GDB.
14275 (riscv_lookup_target_description): New function, only define if
14276 GDBSERVER is not defined.
14277 * arch/riscv.h (riscv_create_target_description): Declare only
14278 when GDBSERVER is defined.
14279 (riscv_lookup_target_description): New declaration when GDBSERVER
14280 is not defined.
14281 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14282 (riscv_linux_read_features): ...this, and return
14283 riscv_gdbarch_features instead of target_desc.
14284 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14285 (riscv_linux_read_description): Rename to...
14286 (riscv_linux_read_features): ...this.
14287 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14288 Update to use riscv_gdbarch_features and
14289 riscv_lookup_target_description.
14290 * riscv-tdep.c (riscv_find_default_target_description): Use
14291 riscv_lookup_target_description instead of
14292 riscv_create_target_description.
14293
14294 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14295
14296 * valprint.c (generic_val_print_enum_1): When printing a flag
14297 enum with value 0 and there is no enumerator with value 0, print
14298 just "0" instead of "(unknown: 0x0)".
14299
14300 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14301
14302 * valprint.c (generic_val_print_enum_1): Print unknown part of
14303 flag enum in hex.
14304
14305 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14306
14307 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14308 flag enums to contain duplicate enumerators.
14309 * valprint.c (generic_val_print_enum_1): Update comment.
14310
14311 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14312
14313 * dwarf2/read.c: Include "count-one-bits.h".
14314 (update_enumeration_type_from_children): If an enumerator has
14315 multiple bits set, don't treat the enumeration as a "flag enum".
14316 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14317 of flag enums have 0 or 1 bit set.
14318
14319 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14320
14321 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14322 conversion.
14323 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14324 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14325 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14326 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14327 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14328
14329 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14330
14331 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14332
14333 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14334
14335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14336 displaced_step_closure_up.
14337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14338 (struct displaced_step_closure_up):
14339 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14340 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14341 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14342 Likewise.
14343 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14344 * gdbarch.c, gdbarch.h: Re-generate.
14345 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14346 displaced_step_closure_up.
14347 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14348 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14349 * infrun.h (displaced_step_closure_up): New type alias.
14350 (struct displaced_step_inferior_state) <step_closure>: Change
14351 type to displaced_step_closure_up.
14352 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14353 displaced_step_closure_up.
14354 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14355
14356 2020-02-14 Tom Tromey <tom@tromey.com>
14357
14358 * minidebug.c (gnu_debug_key): New global.
14359 (find_separate_debug_file_in_section): Use it.
14360
14361 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14362
14363 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14364 std::unique_ptr.
14365 * gdbarch.c: Re-generate.
14366 * gdbarch.h: Re-generate.
14367 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14368 change.
14369 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14370 type to std::unique_ptr.
14371 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14372 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14373 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14374 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14375 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14376 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14377 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14378 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14379 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14380
14381 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14382
14383 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14384 std::unique_ptr.
14385 (displaced_step_clear): Rename to...
14386 (displaced_step_reset): ... this. Just call displaced->reset ().
14387 (displaced_step_clear_cleanup): Rename to...
14388 (displaced_step_reset_cleanup): ... this.
14389 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14390 (displaced_step_fixup): Likewise.
14391 (resume_1): Likewise.
14392 (handle_inferior_event): Restore child's memory before calling
14393 displaced_step_fixup on the parent.
14394 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14395 to std::unique_ptr.
14396 <step_closure>: Change type to std::unique_ptr.
14397
14398 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14399
14400 * arm-tdep.c: Include count-one-bits.h.
14401 (cleanup_block_store_pc): Use count_one_bits.
14402 (cleanup_block_load_pc): Use count_one_bits.
14403 (arm_copy_block_xfer): Use count_one_bits.
14404 (thumb2_copy_block_xfer): Use count_one_bits.
14405 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14406 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14407 (thumb_get_next_pcs_raw): Use count_one_bits.
14408 (arm_get_next_pcs_raw): Use count_one_bits_l.
14409 * arch/arm.c (bitcount): Remove.
14410 * arch/arm.h (bitcount): Remove.
14411
14412 2020-02-14 Tom Tromey <tromey@adacore.com>
14413
14414 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14415 Update.
14416 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14417 * dwarf2/loc.c (call_site_find_chain_1): Return
14418 unique_xmalloc_ptr.
14419 (call_site_find_chain): Likewise.
14420
14421 2020-02-14 Richard Biener <rguenther@suse.de>
14422
14423 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14424 on expression with division operators.
14425
14426 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14427
14428 * MAINTAINERS (Write After Approval): Adding myself.
14429
14430 2020-02-12 Tom Tromey <tom@tromey.com>
14431
14432 * event-loop.c (event_data, gdb_event, event_handler_func):
14433 Remove.
14434
14435 2020-02-12 Tom Tromey <tom@tromey.com>
14436
14437 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14438 (dwarf2_frame_objfile_data): Add comment.
14439 (find_comp_unit, set_comp_unit): New functions.
14440 (dwarf2_frame_find_fde): Use find_comp_unit.
14441 (dwarf2_build_frame_info): Use set_comp_unit.
14442
14443 2020-02-12 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14446 (comp_unit): Don't initialize objfile.
14447 (execute_cfa_program): Add text_offset parameter.
14448 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14449 (dwarf2_frame_cache): Update.
14450 (dwarf2_build_frame_info): Don't set "objfile" member.
14451
14452 2020-02-12 Tom Tromey <tom@tromey.com>
14453
14454 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14455 (decode_frame_entry): Likewise.
14456 (dwarf2_build_frame_info): Update.
14457
14458 2020-02-12 Tom Tromey <tom@tromey.com>
14459
14460 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14461 (decode_frame_entry_1): Use the comp_unit obstack.
14462
14463 2020-02-12 Tom Tromey <tom@tromey.com>
14464
14465 * dwarf2/frame.c (struct comp_unit): Add initializers and
14466 constructor.
14467 (dwarf2_frame_objfile_data): Store a comp_unit.
14468 (dwarf2_frame_find_fde): Update.
14469 (dwarf2_build_frame_info): Use "new".
14470
14471 2020-02-12 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14474 (dwarf2_fde_table): Typedef for std::vector.
14475 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14476 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14477 (decode_frame_entry): Update.
14478 (dwarf2_build_frame_info): Use "new".
14479
14480 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14481
14482 * arm-tdep.c (arm_gdbarch_init): Update.
14483 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14484 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14485 have_neon, is_m>: Change to bool.
14486
14487 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14488
14489 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14490
14491 2020-02-12 Tom Tromey <tom@tromey.com>
14492
14493 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14494
14495 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14496
14497 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14498 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14499
14500 2020-02-11 Tom Tromey <tom@tromey.com>
14501
14502 * psymtab.h: Update comment.
14503
14504 2020-02-11 Tom Tromey <tom@tromey.com>
14505
14506 * gdb_obstack.h (struct auto_obstack): Use
14507 DISABLE_COPY_AND_ASSIGN.
14508
14509 2020-02-11 Tom Tromey <tom@tromey.com>
14510
14511 * dwarf2/frame.h (struct objfile): Don't forward declare.
14512
14513 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14514
14515 * cris-tdep.c (cris_supply_gregset): Change signature to match
14516 what struct regset expects.
14517 (cris_regset): New struct.
14518 (fetch_core_registers): Remove.
14519 (cris_iterate_over_regset_sections): New function.
14520 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14521 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14522
14523 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14524
14525 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14526 registers.
14527
14528 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14529
14530 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14531
14532 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14533
14534 * configure: Re-generate.
14535
14536 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14537
14538 * configure: Re-generate.
14539
14540 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14541
14542 * acinclude: Update warning.m4 path.
14543 * warning.m4: Move to gdbsupport.
14544
14545 2020-02-11 Tom Tromey <tromey@adacore.com>
14546
14547 * remote.c (remote_console_output): Update.
14548 * printcmd.c (printf_command): Update.
14549 * event-loop.c (gdb_wait_for_event): Update.
14550 * linux-nat.c (sigchld_handler): Update.
14551 * remote-sim.c (gdb_os_write_stdout): Update.
14552 (gdb_os_flush_stdout): Update.
14553 (gdb_os_flush_stderr): Update.
14554 (gdb_os_write_stderr): Update.
14555 * exceptions.c (print_exception): Update.
14556 * remote-fileio.c (remote_fileio_func_read): Update.
14557 (remote_fileio_func_write): Update.
14558 * tui/tui.c (tui_enable): Update.
14559 * tui/tui-interp.c (tui_interp::init): Update.
14560 * utils.c (init_page_info): Update.
14561 (putchar_unfiltered, fputc_unfiltered): Update.
14562 (gdb_flush): Update.
14563 (emit_style_escape): Update.
14564 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14565 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14566 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14567 (stderr_file::write): Update.
14568 (stderr_file::puts): Update.
14569 * ui-file.h (ui_file_isatty, ui_file_write)
14570 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14571 (ui_file_puts): Don't declare.
14572
14573 2020-02-10 Tom de Vries <tdevries@suse.de>
14574
14575 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14576 sentinel to char *.
14577
14578 2020-02-09 Tom de Vries <tdevries@suse.de>
14579
14580 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14581 filename if it matches "<artificial>".
14582
14583 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14584
14585 * windows-tdep.c (struct enum_value_name): New struct.
14586 (create_enum): New function.
14587 (windows_get_siginfo_type): Create and use enum types.
14588
14589 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14590
14591 * NEWS: Mention $_siginfo support for Windows.
14592 * windows-nat.c (handle_exception): Set siginfo_er.
14593 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14594 (windows_xfer_siginfo): New function.
14595 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14596 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14597 (init_windows_gdbarch_data): New function.
14598 (get_windows_gdbarch_data): New function.
14599 (windows_get_siginfo_type): New function.
14600 (windows_init_abi): Register windows_get_siginfo_type.
14601 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14602
14603 2020-02-08 Tom Tromey <tom@tromey.com>
14604
14605 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14606 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14607 <keep>: Declare method.
14608 <m_keep>: Remove member.
14609 <~cutu_reader>: Remove.
14610 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14611 (cutu_reader::cutu_reader): Update.
14612 (cutu_reader::keep): Rename from ~cutu_reader.
14613 (process_psymtab_comp_unit, build_type_psymtabs_1)
14614 (process_skeletonless_type_unit, load_partial_comp_unit)
14615 (load_full_comp_unit, dwarf2_read_addr_index)
14616 (read_signatured_type): Update.
14617
14618 2020-02-08 Tom Tromey <tom@tromey.com>
14619
14620 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14621 "want_partial_unit" parameter.
14622 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14623 Inline check for DW_TAG_partial_unit.
14624 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14625
14626 2020-02-08 Tom Tromey <tom@tromey.com>
14627
14628 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14629 read.c.
14630 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14631 read.c.
14632
14633 2020-02-08 Tom Tromey <tom@tromey.com>
14634
14635 * dwarf2/read.c (read_address): Move to comp-unit.c.
14636 (dwarf2_rnglists_process, dwarf2_ranges_process)
14637 (read_attribute_value, dwarf_decode_lines_1)
14638 (var_decode_location, decode_locdesc): Update.
14639 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14640 read.c. Remove "cu" parameter.
14641 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14642 method.
14643
14644 2020-02-08 Tom Tromey <tom@tromey.com>
14645
14646 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14647 (read_indirect_line_string): Update.
14648 * dwarf2/comp-unit.c (read_offset): Remove.
14649 (read_comp_unit_head): Update.
14650 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14651 method.
14652 (read_offset): Don't declare.
14653
14654 2020-02-08 Tom Tromey <tom@tromey.com>
14655
14656 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14657 * dwarf2/read.c (struct comp_unit_head): Move to
14658 dwarf2/comp-unit.h.
14659 (enum class rcuh_kind): Move to comp-unit.h.
14660 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14661 (read_comp_unit_head, error_check_comp_unit_head)
14662 (read_and_check_comp_unit_head): Move to comp-unit.c.
14663 (read_offset, dwarf_unit_type_name): Likewise.
14664 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14665 (cutu_reader::cutu_reader, read_call_site_scope)
14666 (find_partial_die, follow_die_offset): Update.
14667 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14668
14669 2020-02-08 Tom Tromey <tom@tromey.com>
14670
14671 * dwarf2/read.c (read_offset_1): Move to leb.c.
14672 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14673 (dwarf_decode_macro_bytes): Update.
14674 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14675 * dwarf2/leb.h (read_offset): Declare.
14676
14677 2020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2/read.c (dwarf2_section_size): Remove.
14680 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14681 Update.
14682 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14683
14684 2020-02-08 Tom Tromey <tom@tromey.com>
14685
14686 * dwarf2/read.c (read_initial_length): Move to leb.c.
14687 * dwarf2/leb.h (read_initial_length): Declare.
14688 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14689 handle_nonstd parameter.
14690 * dwarf2/frame.c (read_initial_length): Remove.
14691 (decode_frame_entry_1): Update.
14692
14693 2020-02-08 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/loc.c (dwarf2_find_location_expression)
14696 (dwarf_evaluate_loc_desc::get_tls_address)
14697 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14698 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14699 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14700 (dwarf2_compile_property_to_c)
14701 (dwarf2_loc_desc_get_symbol_read_needs)
14702 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14703 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14704 (loclist_describe_location, loclist_tracepoint_var_ref)
14705 (loclist_generate_c_location): Update.
14706 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14707 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14708 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14709 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14710 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14711 (dwarf2_per_cu_data::addr_size)
14712 (dwarf2_per_cu_data::ref_addr_size)
14713 (dwarf2_per_cu_data::text_offset)
14714 (dwarf2_per_cu_data::addr_type): Now methods.
14715 (per_cu_header_read_in): Make per_cu "const".
14716 (dwarf2_version): Remove.
14717 (dwarf2_per_cu_data::int_type): Now a method.
14718 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14719 (set_die_type, read_array_type, read_subrange_index_type)
14720 (read_tag_string_type, read_subrange_type): Update.
14721 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14722 offset_size, ref_addr_size, text_offset, addr_type, version,
14723 objfile, int_type, addr_sized_int_type>: Declare methods.
14724
14725 2020-02-08 Tom Tromey <tom@tromey.com>
14726
14727 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14728 Move earlier.
14729
14730 2020-02-08 Tom Tromey <tom@tromey.com>
14731
14732 * dwarf2/read.h (dwarf_line_debug): Declare.
14733 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14734 * dwarf2/read.c: Move line_header code to new files.
14735 (dwarf_line_debug): No longer static.
14736 * dwarf2/line-header.c: New file.
14737 * dwarf2/line-header.h: New file.
14738
14739 2020-02-08 Tom Tromey <tom@tromey.com>
14740
14741 * dwarf2/read.c (struct line_header) <file_full_name,
14742 file_file_name>: Return unique_xmalloc_ptr.
14743 (line_header::file_file_name): Update.
14744 (line_header::file_full_name): Update.
14745 (dw2_get_file_names_reader): Update.
14746 (macro_start_file): Update.
14747
14748 2020-02-08 Tom Tromey <tom@tromey.com>
14749
14750 * dwarf2/read.c (struct line_header) <file_full_name,
14751 file_file_name>: Declare methods.
14752 (dw2_get_file_names_reader): Update.
14753 (file_file_name): Now a method.
14754 (file_full_name): Likewise.
14755 (macro_start_file): Update.
14756
14757 2020-02-08 Tom Tromey <tom@tromey.com>
14758
14759 * dwarf2/read.c (dwarf_always_disassemble)
14760 (show_dwarf_always_disassemble): Move to loc.c.
14761 (_initialize_dwarf2_read): Move "always-disassemble" registration
14762 to loc.c.
14763 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14764 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14765 static.
14766 (show_dwarf_always_disassemble): Move from read.c.
14767 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14768
14769 2020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14772 (create_quick_file_names_table): Return htab_up.
14773 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14774 Update.
14775 * dwarf2/read.h (struct dwarf2_per_objfile)
14776 <quick_file_names_table>: Now htab_up.
14777
14778 2020-02-08 Tom Tromey <tom@tromey.com>
14779
14780 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14781
14782 2020-02-08 Tom Tromey <tom@tromey.com>
14783
14784 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14785 Rewrite.
14786 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14787 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14788 (abbrev_table::abbrev_table): No longer inline.
14789 (ABBREV_HASH_SIZE): Remove.
14790 (abbrev_table::m_abbrevs): Now an htab_up.
14791
14792 2020-02-08 Tom Tromey <tom@tromey.com>
14793
14794 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14795 (cutu_reader): Update.
14796 (build_type_psymtabs_1): Update.
14797 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14798 (abbrev_table::alloc_abbrev): Update.
14799 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14800 (abbrev_table::read): New static method, renamed from
14801 abbrev_table_read_table.
14802 (abbrev_table::alloc_abbrev)
14803 (abbrev_table::add_abbrev): Now private.
14804 (abbrev_table::abbrev_table): Now private.
14805 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14806
14807 2020-02-08 Tom Tromey <tom@tromey.com>
14808
14809 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14810 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14811 htab_up.
14812
14813 2020-02-08 Tom Tromey <tom@tromey.com>
14814
14815 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14816 htab_up.
14817 (lookup_dwo_unit_in_dwp): Update.
14818 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14819 on obstack.
14820
14821 2020-02-08 Tom Tromey <tom@tromey.com>
14822
14823 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14824 obstack.
14825
14826 2020-02-08 Tom Tromey <tom@tromey.com>
14827
14828 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14829 line_header_hash.
14830 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14831 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14832 Change type to htab_up.
14833
14834 2020-02-08 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14837 htab_up. Don't allocate on obstack.
14838 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14839 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14840 Change type to htab_up.
14841
14842 2020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14845 Change type to htab_up.
14846 * dwarf2/read.c (create_signatured_type_table_from_index)
14847 (create_signatured_type_table_from_debug_names)
14848 (create_all_type_units, add_type_unit)
14849 (lookup_dwo_signatured_type, lookup_signatured_type)
14850 (process_skeletonless_type_unit): Update.
14851 (create_debug_type_hash_table, create_debug_types_hash_table):
14852 Change type of types_htab.
14853 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14854 htab_up. Don't allocate on obstack.
14855 (create_cus_hash_table): Change type of cus_htab parameter.
14856 (struct dwo_file) <cus, tus>: Now htab_up.
14857 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14858 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14859 (queue_and_load_all_dwo_tus): Update.
14860 * dwarf2/index-write.c (write_gdbindex): Update.
14861 (write_debug_names): Update.
14862
14863 2020-02-08 Tom Tromey <tom@tromey.com>
14864
14865 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14866 dwarf2/read.c. Remove "next" member. Add constructor ntad
14867 destructor.
14868 (struct dwarf2_per_objfile) <queue>: New member.
14869 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14870 dwarf2/read.h.
14871 (dwarf2_queue, dwarf2_queue_tail): Remove.
14872 (class dwarf2_queue_guard): Add parameter to constructor. Use
14873 DISABLE_COPY_AND_ASSIGN.
14874 <m_per_objfile>: New member.
14875 <~dwarf2_queue_guard>: Rewrite.
14876 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14877 Update.
14878 (~dwarf2_queue_item): New.
14879
14880 2020-02-08 Tom Tromey <tom@tromey.com>
14881
14882 * dwarf2/read.c (struct die_info) <has_children>: New member.
14883 (dw2_get_file_names_reader): Remove has_children.
14884 (dw2_get_file_names): Update.
14885 (read_cutu_die_from_dwo): Remove has_children.
14886 (cutu_reader::init_tu_and_read_dwo_dies)
14887 (cutu_reader::cutu_reader): Update.
14888 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14889 Remove has_children.
14890 (build_type_psymtabs_1, process_skeletonless_type_unit)
14891 (load_partial_comp_unit, load_full_comp_unit): Update.
14892 (create_dwo_cu_reader): Remove has_children.
14893 (create_cus_hash_table, read_die_and_children): Update.
14894 (read_full_die_1,read_full_die): Remove has_children.
14895 (read_signatured_type): Update.
14896 (class cutu_reader) <has_children>: Remove.
14897
14898 2020-02-08 Tom Tromey <tom@tromey.com>
14899
14900 * dwarf2/expr.c: Rename from dwarf2expr.c.
14901 * dwarf2/expr.h: Rename from dwarf2expr.h.
14902 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14903 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14904 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14905 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14906 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14907 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14908 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14909 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14910 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14911 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14912 * dwarf2/loc.c: Rename from dwarf2loc.c.
14913 * dwarf2/loc.h: Rename from dwarf2loc.h.
14914 * dwarf2/read.c: Rename from dwarf2read.c.
14915 * dwarf2/read.h: Rename from dwarf2read.h.
14916 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14917 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14918 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14919 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14920 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14921 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14922 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14923 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14924 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14925 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14926 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14927 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14928 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14929 Update.
14930 * Makefile.in (COMMON_SFILES): Update.
14931 (HFILES_NO_SRCDIR): Update.
14932
14933 2020-02-08 Tom Tromey <tom@tromey.com>
14934
14935 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14936 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14937
14938 2020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2read.h (struct die_info): Don't declare.
14941
14942 2020-02-08 Tom Tromey <tom@tromey.com>
14943
14944 * dwarf2read.h (die_info_ptr): Remove typedef.
14945
14946 2020-02-08 Tom Tromey <tom@tromey.com>
14947
14948 * dwarf2read.c (read_call_site_scope)
14949 (handle_data_member_location, dwarf2_add_member_fn)
14950 (mark_common_block_symbol_computed, read_common_block)
14951 (attr_to_dynamic_prop, partial_die_info::read)
14952 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14953 (dwarf2_symbol_mark_computed, set_die_type): Update.
14954 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14955 method.
14956 (attr_form_is_block): Don't declare.
14957 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14958
14959 2020-02-08 Tom Tromey <tom@tromey.com>
14960
14961 * dwarf2read.c (dwarf2_find_base_address, )
14962 (read_call_site_scope, rust_containing_type)
14963 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14964 (handle_data_member_location, dwarf2_add_member_fn)
14965 (get_alignment, read_structure_type, process_structure_scope)
14966 (mark_common_block_symbol_computed, read_common_block)
14967 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14968 (partial_die_info::read, read_attribute_value, new_symbol)
14969 (lookup_die_type, dwarf2_get_ref_die_offset)
14970 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14971 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14972 (dwarf2_symbol_mark_computed): Update.
14973 * dwarf2/attribute.h (struct attribute) <value_as_address,
14974 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14975 methods.
14976 (value_as_address, attr_form_is_section_offset)
14977 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14978 * dwarf2/attribute.c (attribute::value_as_address)
14979 (attribute::form_is_section_offset, attribute::form_is_constant)
14980 (attribute::form_is_ref): Now methods.
14981
14982 2020-02-08 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2read.c (struct attribute, DW_STRING)
14985 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14986 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14987 (attr_form_is_block, attr_form_is_section_offset)
14988 (attr_form_is_constant, attr_form_is_ref): Move.
14989 * dwarf2/attribute.h: New file.
14990 * dwarf2/attribute.c: New file, from dwarf2read.c.
14991 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14992
14993 2020-02-08 Tom Tromey <tom@tromey.com>
14994
14995 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14996 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14997 Move.
14998 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14999 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15000 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15001 abbrev.c.
15002 * dwarf2/abbrev.h: New file.
15003 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15004 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15005
15006 2020-02-08 Tom Tromey <tom@tromey.com>
15007
15008 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15009 (dwarf2_section_size, dwarf2_get_section_info)
15010 (create_signatured_type_table_from_debug_names)
15011 (create_addrmap_from_aranges, read_debug_names_from_section)
15012 (get_gdb_index_contents_from_section, read_comp_unit_head)
15013 (error_check_comp_unit_head, read_abbrev_offset)
15014 (create_debug_type_hash_table, init_cu_die_reader)
15015 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15016 (read_comp_units_from_section, create_cus_hash_table)
15017 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15018 (create_dwp_v2_section, dwarf2_rnglists_process)
15019 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15020 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15021 (read_indirect_string_from_dwz, read_addr_index_1)
15022 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15023 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15024 (fill_in_loclist_baton): Update.
15025 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15026 get_containing_section, get_bfd_owner, get_bfd_section,
15027 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15028 (dwarf2_read_section, get_section_name, get_section_file_name)
15029 (get_containing_section, get_section_bfd_owner)
15030 (get_section_bfd_section, get_section_name, get_section_file_name)
15031 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15032 declare.
15033 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15034 (dwarf2_section_info::get_bfd_owner)
15035 (dwarf2_section_info::get_bfd_section)
15036 (dwarf2_section_info::get_name)
15037 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15038 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15039 (dwarf2_section_info::read): Now methods.
15040 * dwarf-index-write.c (class debug_names): Update.
15041
15042 2020-02-08 Tom Tromey <tom@tromey.com>
15043
15044 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15045 Move to dwarf2/section.h.
15046 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15047 (get_section_bfd_section, get_section_name)
15048 (get_section_file_name, get_section_id, get_section_flags)
15049 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15050 dwarf2/section.c.
15051 * dwarf2/section.h: New file.
15052 * dwarf2/section.c: New file, from dwarf2read.c.
15053 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15054
15055 2020-02-08 Tom Tromey <tom@tromey.com>
15056
15057 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15058 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15059 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15060 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15061 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15062 * dwarf2/leb.h: New file, from dwarf2read.c.
15063 * dwarf2/leb.c: New file, from dwarf2read.c.
15064 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15065 Remove.
15066 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15067 (COMMON_SFILES): Add dwarf2/leb.c.
15068
15069 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15070
15071 GDB 9.1 released.
15072
15073 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15074
15075 PR gdb/25190:
15076 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15077 * gdb/remote.c (remote_console_output): Update.
15078 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15079 (ui_file_puts): ...this.
15080 * gdb/ui-file.h (ui_file_puts): Add declaration.
15081 * gdb/utils.c (emit_style_escape): Update.
15082 (flush_wrap_buffer): Update.
15083 (fputs_maybe_filtered): Update.
15084 (fputs_unfiltered): Add function.
15085
15086 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15087
15088 * gdb/event-loop.c (gdb_wait_for_event): Update.
15089 * gdb/printcmd.c (printf_command): Update.
15090 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15091 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15092 (gdb_os_flush_stderr): Update.
15093 * gdb/remote.c (remote_console_output): Update.
15094 * gdb/ui-file.c (gdb_flush): Rename to...
15095 (ui_file_flush): ...this.
15096 (stderr_file::write): Update.
15097 (stderr_file::puts): Update.
15098 * gdb/ui-file.h (gdb_flush): Rename to...
15099 (ui_file_flush): ...this.
15100 * gdb/utils.c (gdb_flush): Add function.
15101 * gdb/utils.h (gdb_flush): Add declaration.
15102
15103 2020-02-07 Tom Tromey <tromey@adacore.com>
15104
15105 PR breakpoints/24915:
15106 * source.c (find_and_open_source): Do not check basenames_may_differ.
15107
15108 2020-02-07 Tom Tromey <tom@tromey.com>
15109
15110 * README: Update gdbserver documentation.
15111 * gdbserver: Move to top level.
15112 * configure.tgt (build_gdbserver): Remove.
15113 * configure.ac: Remove --enable-gdbserver.
15114 * configure: Rebuild.
15115 * Makefile.in (distclean): Don't mention gdbserver.
15116
15117 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15118
15119 * source-cache.c (source_cache::ensure): Surround
15120 get_plain_source_lines with a try/catch.
15121 (source_cache::get_line_charpos): Get rid of try/catch
15122 and only check for the return value of "ensure".
15123 * tui/tui-source.c (tui_source_window::set_contents):
15124 Simplify "nlines" calculation.
15125
15126 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15127
15128 * MAINTAINERS (Write After Approval): Add myself.
15129
15130 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15131
15132 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15133 function call.
15134
15135 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15136
15137 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15138
15139 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15140
15141 * nat/riscv-linux-tdesc.h: New file.
15142 * nat/riscv-linux-tdesc.c: New file, taking code from...
15143 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15144 ... here.
15145 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15146 NATDEPFILES.
15147
15148 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15149
15150 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15151 we don't set the fake simulator ptid to the null_ptid.
15152
15153 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15154
15155 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15156 * gdbthread.h (class thread_info) <resumed>: Likewise.
15157 * infrun.c (resume_1): Likewise.
15158 (proceed): Likewise.
15159 (infrun_thread_stop_requested): Likewise.
15160 (stop_all_threads): Likewise.
15161 (handle_inferior_event): Likewise.
15162 (restart_threads): Likewise.
15163 (finish_step_over): Likewise.
15164 (keep_going_stepped_thread): Likewise.
15165 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15166 (linux_handle_extended_wait): Likewise.
15167 * record-btrace.c (get_thread_current_frame_id): Likewise.
15168 * record-full.c (record_full_wait_1): Likewise.
15169 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15170 * target.c (target_resume): Likewise.
15171 * thread.c (set_running_thread): Likewise.
15172
15173 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15174
15175 * f-valprint.c (f77_print_array_1): Changed datatype of index
15176 variable to LONGEST from int to enable it to contain bound
15177 values correctly.
15178
15179 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15180
15181 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15182 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15183 offsets according to FLEN determined.
15184 (riscv_linux_nat_target::read_description): Determine FLEN
15185 dynamically.
15186 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15187 according to FLEN determined.
15188 (riscv_linux_nat_target::store_registers): Likewise.
15189
15190 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15191
15192 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15193 when reg->group is empty and reggroup is not.
15194
15195 2020-01-31 Tom Tromey <tromey@adacore.com>
15196
15197 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15198 Call beneath target's mourn_inferior after unpushing.
15199
15200 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15201
15202 PR tui/9765
15203 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15204 have enough lines to fill the screen, still return the lowest
15205 address we found.
15206
15207 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15208
15209 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15210 '-', '<', and '>' commands.
15211
15212 2020-01-29 Pedro Alves <palves@redhat.com>
15213 Sergio Durigan Junior <sergiodj@redhat.com>
15214
15215 * infcmd.c (construct_inferior_arguments): Assert that
15216 'argc' is greater than 0.
15217
15218 2020-01-29 Luis Machado <luis.machado@linaro.org>
15219
15220 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15221 (BRK_INSN_MASK): Define to 0xd4200000.
15222 (aarch64_program_breakpoint_here_p): New function.
15223 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15224 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15225 breakpoint.c.
15226 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15227 breakpoint.h
15228 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15229 call gdbarch_program_breakpoint_here_p.
15230 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15231 default_program_breakpoint_here_p, changed return type to bool and
15232 simplified.
15233 * breakpoint.h (program_breakpoint_here): Moved prototype to
15234 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15235 return type to bool.
15236 * gdbarch.c: Regenerate.
15237 * gdbarch.h: Regenerate.
15238 * gdbarch.sh (program_breakpoint_here_p): New method.
15239 * infrun.c (handle_signal_stop): Call
15240 gdbarch_program_breakpoint_here_p.
15241
15242 2020-01-26 Tom Tromey <tom@tromey.com>
15243
15244 * ctfread.c (struct ctf_fp_info): Reindent.
15245 (_initialize_ctfread): Remove.
15246
15247 2020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * psymtab.c (partial_map_expand_apply)
15250 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15251 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15252 (psym_print_stats, psym_expand_symtabs_for_function)
15253 (psym_map_symbol_filenames, psym_map_matching_symbols)
15254 (psym_expand_symtabs_matching)
15255 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15256 (maintenance_check_psymtabs): Use new methods.
15257 * psympriv.h (struct partial_symtab) <readin_p,
15258 get_compunit_symtab>: New methods.
15259 <readin, compunit_symtab>: Remove members.
15260 (struct standard_psymtab): New.
15261 (struct legacy_psymtab): Derive from standard_psymtab.
15262 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15263 standard_psymtab.
15264 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15265
15266 2020-01-26 Tom Tromey <tom@tromey.com>
15267
15268 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15269 read_dependencies. Add assert.
15270 * psymtab.c (partial_symtab::read_dependencies): New method.
15271 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15272 method.
15273 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15274 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15275 read_dependencies.
15276 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15277 Add assert.
15278
15279 2020-01-26 Tom Tromey <tom@tromey.com>
15280
15281 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15282 Call expand_psymtab.
15283 (xcoff_read_symtab): Call expand_psymtab.
15284 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15285 legacy_expand_psymtab.
15286 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15287 method.
15288 (struct legacy_psymtab) <expand_psymtab>: Implement.
15289 <legacy_expand_psymtab>: New member.
15290 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15291 (parse_partial_symbols): Set legacy_expand_psymtab.
15292 (psymtab_to_symtab_1): Change argument order. Call
15293 expand_psymtab.
15294 (new_psymtab): Set legacy_expand_psymtab.
15295 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15296 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15297 expand_psymtab.
15298 (dwarf2_psymtab::expand_psymtab): Rename from
15299 psymtab_to_symtab_1. Call expand_psymtab.
15300 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15301 (dbx_end_psymtab): Likewise.
15302 (dbx_psymtab_to_symtab_1): Change argument order. Call
15303 expand_psymtab.
15304 (dbx_read_symtab): Call expand_psymtab.
15305 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15306 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15307 (ctf_psymtab::read_symtab): Call expand_psymtab.
15308
15309 2020-01-26 Tom Tromey <tom@tromey.com>
15310
15311 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15312 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15313 messages.
15314 * mdebugread.c (mdebug_read_symtab): Remove prints.
15315 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15316 assert.
15317 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15318
15319 2020-01-26 Tom Tromey <tom@tromey.com>
15320
15321 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15322 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15323 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15324 legacy_symtab.
15325 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15326 * psymtab.c (psymtab_to_symtab): Call method.
15327 (dump_psymtab): Update.
15328 * psympriv.h (struct partial_symtab): Add virtual destructor.
15329 <read_symtab>: New method.
15330 (struct legacy_symtab): New.
15331 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15332 (struct pst_map) <pst>: Now a legacy_psymtab.
15333 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15334 (new_psymtab): Use legacy_psymtab.
15335 * dwarf2read.h (struct dwarf2_psymtab): New.
15336 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15337 * dwarf2read.c (dwarf2_create_include_psymtab)
15338 (dwarf2_build_include_psymtabs, create_type_unit_group)
15339 (create_partial_symtab, process_psymtab_comp_unit_reader)
15340 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15341 (set_partial_user): Use dwarf2_psymtab.
15342 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15343 (psymtab_to_symtab_1, process_full_comp_unit)
15344 (process_full_type_unit, dwarf2_ranges_read)
15345 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15346 (dwarf_decode_lines): Use dwarf2_psymtab.
15347 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15348 (add_address_entry_worker, write_one_signatured_type)
15349 (recursively_count_psymbols, recursively_write_psymbols)
15350 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15351 (write_debug_names): Likewise.
15352 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15353 <pst>: Now a legacy_psymtab.
15354 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15355 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15356 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15357 * ctfread.c (struct ctf_psymtab): New.
15358 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15359 ctf_psymtab.
15360 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15361 (create_partial_symtab): Return a ctf_psymtab.
15362 (scan_partial_symbols): Update.
15363
15364 2020-01-26 Tom Tromey <tom@tromey.com>
15365
15366 * xcoffread.c (xcoff_start_psymtab): Use new.
15367 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15368 renamed from start_psymtab_common.
15369 * psympriv.h (struct partial_symtab): Add new constructor.
15370 (start_psymtab_common): Don't declare.
15371 * mdebugread.c (parse_partial_symbols): Use new.
15372 * dwarf2read.c (create_partial_symtab): Use new.
15373 * dbxread.c (start_psymtab): Use new.
15374 * ctfread.c (create_partial_symtab): Use new.
15375
15376 2020-01-26 Tom Tromey <tom@tromey.com>
15377
15378 * xcoffread.c (xcoff_end_psymtab): Use new.
15379 * psymtab.c (start_psymtab_common): Use new.
15380 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15381 Update.
15382 * psympriv.h (struct partial_symtab): Add parameters to
15383 constructor. Don't inline.
15384 (allocate_psymtab): Don't declare.
15385 * mdebugread.c (new_psymtab): Use new.
15386 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15387 * dbxread.c (dbx_end_psymtab): Use new.
15388
15389 2020-01-26 Tom Tromey <tom@tromey.com>
15390
15391 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15392 allocate_psymtab. Update documentation.
15393 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15394 allocate_psymtab. Do not use new.
15395 (allocate_psymtab): Use new. Update.
15396
15397 2020-01-26 Tom Tromey <tom@tromey.com>
15398
15399 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15400 * psymtab.c (psym_print_stats): Update.
15401 * psympriv.h (struct partial_symtab) <readin,
15402 psymtabs_addrmap_supported, anonymous>: Now bool.
15403 * mdebugread.c (psymtab_to_symtab_1): Update.
15404 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15405 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15406 (process_full_comp_unit, process_full_type_unit): Update.
15407 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15408 * ctfread.c (psymtab_to_symtab): Update.
15409
15410 2020-01-26 Tom Tromey <tom@tromey.com>
15411
15412 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15413 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15414 * psymtab.c (psymtab_storage): Delete psymtabs.
15415 (psymtab_storage::allocate_psymtab): Use new.
15416 (psymtab_storage::discard_psymtab): Use delete.
15417 * psympriv.h (struct partial_symtab): Add constructor and
15418 initializers.
15419
15420 2020-01-26 Tom Tromey <tom@tromey.com>
15421
15422 * machoread.c: Do not include psympriv.h.
15423
15424 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15425
15426 * NEWS: Mention the new option and the set/show commands.
15427
15428 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15429
15430 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15431 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15432 (validate_exec_file): New variables, enums, functions.
15433 (exec_file_locate_attach, print_section_info): Style the filenames.
15434 (_initialize_exec): Install show_exec_file_mismatch_command and
15435 set_exec_file_mismatch_command.
15436 * gdbcore.h (validate_exec_file): Declare.
15437 * infcmd.c (attach_command): Call validate_exec_file.
15438 * remote.c ( remote_target::remote_add_inferior): Likewise.
15439
15440 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15441
15442 * frame.c (find_frame_sal): Move call to get_next_frame into more
15443 inner scope.
15444 * inline-frame.c (inilne_state) <inline_state>: Update argument
15445 types.
15446 (inilne_state) <skipped_symbol>: Rename to...
15447 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15448 (skip_inline_frames): Build vector of skipped symbols and use this
15449 to reate the inline_state.
15450 (inline_skipped_symbol): Add a comment and some assertions, fetch
15451 skipped symbol from the list.
15452
15453 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15454
15455 * buildsym.c (lte_is_less_than): Delete.
15456 (buildsym_compunit::end_symtab_with_blockvector): Create local
15457 lambda function to sort line table entries, and use
15458 std::stable_sort instead of std::sort.
15459 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15460 markers when looking for a previous line.
15461
15462 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15463
15464 * dwarf2read.c (lnp_state_machine::record_line): Include
15465 end_sequence parameter in debug print out. Record the line if we
15466 are at an end_sequence marker even if it's not the start of a
15467 statement.
15468 * symmisc.c (maintenance_print_one_line_table): Print end of
15469 sequence markers with 'END' not '0'.
15470
15471 2020-01-24 Pedro Alves <palves@redhat.com>
15472
15473 PR gdb/25410
15474 * thread.c (scoped_restore_current_thread::restore): Use
15475 switch_to_inferior_no_thread.
15476 * exec.c: Include "progspace-and-thread.h".
15477 (add_target_sections, remove_target_sections):
15478 scoped_restore_current_pspace_and_thread instead of
15479 scoped_restore_current_thread.
15480 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15481 and aspace to the inferior before calling clone_program_space.
15482 Remove stale comment.
15483
15484 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15485
15486 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15487 (arm_netbsd_nat_target::fetch_registers): ...this.
15488 (arm_nbsd_nat_target::store_registers): Rename to...
15489 (arm_netbsd_nat_target::store_registers): ...this.
15490
15491 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15492
15493 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15494 register_t.
15495
15496 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15497
15498 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15499 Update comment.
15500 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15501 Likewise.
15502 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15503 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15504 the correct replacement (iterate_over_regset_sections).
15505 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15506 Update comment.
15507
15508 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15509
15510 PR gdb/23718
15511 * gdb/python/python.c (execute_gdb_command): Call
15512 async_enable_stdin in catch block.
15513
15514 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15515
15516 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15517 SWITCH_THRU_ALL_UIS.
15518
15519 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15520
15521 PR tui/9765
15522 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15523 comment, add extra parameter, and update to store previous symbol
15524 when appropriate.
15525 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15526 add extra parameter.
15527 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15528 remove unneeded parameter, add try/catch around gdb_print_insn,
15529 rewrite to add items to asm_lines vector.
15530 (tui_find_backward_disassembly_start_address): New function.
15531 (tui_find_disassembly_address): Updated throughout.
15532 (tui_disasm_window::set_contents): Update for changes to
15533 tui_disassemble.
15534 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15535 number of lines to scroll.
15536
15537 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15538
15539 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15540 (SECT_OFF_DATA): Likewise.
15541 (SECT_OFF_RODATA): Likewise.
15542 (SECT_OFF_TEXT): Likewise.
15543 (SECT_OFF_BSS): Likewise.
15544 (struct objfile) <text_section_offset, data_section_offset>: New
15545 methods.
15546 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15547 objfile::text_section_offset.
15548 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15549 * coffread.c (coff_symtab_read): Likewise.
15550 (enter_linenos): Likewise.
15551 (process_coff_symbol): Likewise.
15552 * ctfread.c (get_objfile_text_range): Likewise.
15553 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15554 Use objfile::data_section_offset.
15555 * dwarf2-frame.c (execute_cfa_program): Use
15556 objfile::text_section_offset.
15557 (dwarf2_frame_find_fde): Likewise.
15558 * dwarf2read.c (create_addrmap_from_index): Likewise.
15559 (create_addrmap_from_aranges): Likewise.
15560 (dw2_find_pc_sect_compunit_symtab): Likewise.
15561 (process_psymtab_comp_unit_reader): Likewise.
15562 (add_partial_symbol): Likewise.
15563 (add_partial_subprogram): Likewise.
15564 (process_full_comp_unit): Likewise.
15565 (read_file_scope): Likewise.
15566 (read_func_scope): Likewise.
15567 (read_lexical_block_scope): Likewise.
15568 (read_call_site_scope): Likewise.
15569 (dwarf2_rnglists_process): Likewise.
15570 (dwarf2_ranges_process): Likewise.
15571 (dwarf2_ranges_read): Likewise.
15572 (dwarf_decode_lines_1): Likewise.
15573 (new_symbol): Likewise.
15574 (dwarf2_fetch_die_loc_sect_off): Likewise.
15575 (dwarf2_per_cu_text_offset): Likewise.
15576 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15577 * hppa-tdep.c (read_unwind_info): Likewise.
15578 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15579 * psympriv.h (struct partial_symtab): Likewise.
15580 * psymtab.c (find_pc_sect_psymtab): Likewise.
15581 * solib-svr4.c (enable_break): Likewise.
15582 * stap-probe.c (relocate_address): Use
15583 objfile::data_section_offset.
15584 * xcoffread.c (enter_line_range): Use
15585 objfile::text_section_offset.
15586 (read_xcoff_symtab): Likewise.
15587
15588 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15589
15590 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15591 declaration to narrower scopes.
15592
15593 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15594
15595 * darwin-nat.h (struct darwin_exception_msg, enum
15596 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15597 Move up.
15598 (class darwin_nat_target) <wait_1, check_new_threads,
15599 decode_exception_message, decode_message, stop_inferior,
15600 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15601 * darwin-nat.c (darwin_check_new_threads): Rename to...
15602 (darwin_nat_target::check_new_threads): ... this.
15603 (darwin_suspend_inferior_it): Remove.
15604 (darwin_decode_exception_message): Rename to...
15605 (darwin_nat_target::decode_exception_message): ... this.
15606 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15607 (darwin_decode_message): Rename to...
15608 (darwin_nat_target::decode_message): ... this.
15609 (cancel_breakpoint): Rename to...
15610 (darwin_nat_target::cancel_breakpoint): ... this.
15611 (darwin_wait): Rename to...
15612 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15613 instead of iterate_over_inferiors.
15614 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15615 (darwin_stop_inferior): Rename to...
15616 (darwin_nat_target::stop_inferior): ... this.
15617 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15618 (darwin_init_thread_list): Rename to...
15619 (darwin_nat_target::init_thread_list): ... this.
15620 (darwin_ptrace_him): Rename to...
15621 (darwin_nat_target::ptrace_him): ... this.
15622 (darwin_nat_target::create_inferior): Pass lambda function to
15623 fork_inferior.
15624 (darwin_nat_target::detach): Call stop_inferior instead of
15625 darwin_stop_inferior.
15626 * fork-inferior.h (fork_inferior): Change init_trace_fun
15627 parameter to gdb::function_view.
15628 * fork-inferior.c (fork_inferior): Likewise.
15629
15630 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15631
15632 * i386-cygwin-tdep.c (core_process_module_section): Update.
15633 * windows-nat.c (struct lm_info_windows): Add text_offset.
15634 (windows_xfer_shared_libraries): Update.
15635 * windows-tdep.c (windows_xfer_shared_library):
15636 Add text_offset_cached argument.
15637 * windows-tdep.h (windows_xfer_shared_library): Update.
15638
15639 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15640
15641 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15642
15643 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15644
15645 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15646 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15647 replace with range-based for.
15648 (gdbsim_interrupt_inferior): Remove.
15649 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15650 with a range-based for. Inline code from
15651 gdbsim_interrupt_inferior.
15652
15653 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15654
15655 * infrun.c (proceed): Fix indentation.
15656
15657 2020-01-21 Tom Tromey <tromey@adacore.com>
15658
15659 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15660 * python/python.c (python_extension_ops): Update.
15661 (gdbpy_colorize): New function.
15662 * python/lib/gdb/__init__.py (colorize): New function.
15663 * extension.h (ext_lang_colorize): Declare.
15664 * extension.c (ext_lang_colorize): New function.
15665 * extension-priv.h (struct extension_language_ops) <colorize>: New
15666 member.
15667 * cli/cli-style.c (_initialize_cli_style): Update help text.
15668
15669 2020-01-21 Luis Machado <luis.machado@linaro.org>
15670
15671 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15672 <cond>: Change type to bool.
15673 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15674 (aarch64_displaced_step_cb): Likewise.
15675 (aarch64_displaced_step_tb): Likewise.
15676
15677 2020-01-21 Luis Machado <luis.machado@linaro.org>
15678
15679 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15680 output.
15681
15682 2020-01-21 Luis Machado <luis.machado@linaro.org>
15683
15684 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15685 <pc_adjust>: Adjust the documentation.
15686 (aarch64_displaced_step_fixup): Check if PC really moved before
15687 adjusting it.
15688
15689 2020-01-19 Tom Tromey <tom@tromey.com>
15690
15691 * disasm.c (~gdb_disassembler): New destructor.
15692 (gdb_buffered_insn_length): Call disassemble_free_target.
15693 * disasm.h (class gdb_disassembler): Declare destructor. Use
15694 DISABLE_COPY_AND_ASSIGN.
15695
15696 2020-01-19 Tom Tromey <tom@tromey.com>
15697
15698 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15699 (die_reader_func_ftype): Remove.
15700 (cutu_reader): New class.
15701 (dw2_get_file_names_reader): Remove "data" parameter.
15702 (dw2_get_file_names): Use cutu_reader.
15703 (create_debug_type_hash_table): Update.
15704 (read_cutu_die_from_dwo): Update comment.
15705 (lookup_dwo_unit): Add dwo_name parameter.
15706 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15707 die_reader_func_ftype and data parameters.
15708 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15709 Remove die_reader_func_ftype and data parameters.
15710 (~cutu_reader): New; from init_cutu_and_read_dies.
15711 (cutu_reader::cutu_reader): Rename from
15712 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15713 and data parameters.
15714 (init_cutu_and_read_dies_simple): Remove.
15715 (struct process_psymtab_comp_unit_data): Remove.
15716 (process_psymtab_comp_unit_reader): Remove data parameter; add
15717 want_partial_unit and pretend_language parameters.
15718 (process_psymtab_comp_unit): Use cutu_reader.
15719 (build_type_psymtabs_reader): Remove data parameter.
15720 (build_type_psymtabs_1): Use cutu_reader.
15721 (process_skeletonless_type_unit): Likewise.
15722 (load_partial_comp_unit_reader): Remove.
15723 (load_partial_comp_unit): Use cutu_reader.
15724 (load_full_comp_unit_reader): Remove.
15725 (load_full_comp_unit): Use cutu_reader.
15726 (struct create_dwo_cu_data): Remove.
15727 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15728 dwo_unit parameters.
15729 (create_cus_hash_table): Use cutu_reader.
15730 (struct dwarf2_read_addr_index_data): Remove.
15731 (dwarf2_read_addr_index_reader): Remove.
15732 (dwarf2_read_addr_index): Use cutu_reader.
15733 (read_signatured_type_reader): Remove.
15734 (read_signatured_type): Use cutu_reader.
15735
15736 2020-01-19 Tom Tromey <tom@tromey.com>
15737
15738 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15739 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15740 (tui_wrefresh): Declare.
15741 * tui/tui-wingeneral.c (suppress_output): New global.
15742 (tui_suppress_output, ~tui_suppress_output): New constructor and
15743 destructor.
15744 (tui_wrefresh): New function.
15745 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15746 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15747 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15748 method.
15749 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15750 tui_wrefresh.
15751 (tui_data_window::no_refresh): New method.
15752 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15753 (tui_reg_command): Use tui_suppress_output
15754 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15755 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15756 method.
15757 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15758
15759 2020-01-19 Tom Tromey <tom@tromey.com>
15760
15761 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15762 Handle case where symtab is null.
15763
15764 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15765
15766 * linux-fork.c (one_fork_p): Simplify.
15767
15768 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15769
15770 * top.c (struct qt_args): Remove.
15771 (kill_or_detach): Change return type to void, replace `void *`
15772 parameter with a proper one.
15773 (print_inferior_quit_action): Likewise.
15774 (quit_confirm): Use range-based for loop to iterate over inferiors.
15775 (quit_force): Likewise.
15776
15777 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15778
15779 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15780 `void *` parameter with proper parameters.
15781 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15782 (print_one_inferior): Change return type to void, replace `void *`
15783 parameter with proper parameters.
15784 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15785 inferiors.
15786 (get_other_inferior): Remove.
15787 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15788 inferiors.
15789
15790 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15791
15792 * mi/mi-interp.c (report_initial_inferior): Remove.
15793 (mi_interp::init): Use range-based for to iterate over inferiors.
15794
15795 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15796
15797 * python/py-inferior.c (build_inferior_list): Remove.
15798 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15799
15800 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15801
15802 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15803 (btrace_stitch_trace): Likewise.
15804 * charset.c (intermediate_encoding): Likewise (vaild).
15805 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15806 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15807 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15808
15809 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15810
15811 * windows-tdep.c (windows_get_tlb_type):
15812 Add rtl_user_process_parameters type.
15813
15814 2020-01-16 Pedro Alves <palves@redhat.com>
15815 Norbert Lange <nolange79@gmail.com>
15816
15817 PR build/24805
15818 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15819 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15820 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15821 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15822 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15823 (ps_plog): Redeclare exported functions with default visibility.
15824
15825 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15826
15827 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15828 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15829
15830 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * infcmd.c (post_create_inferior): Use get_thread_regcache
15833 instead of get_current_regcache.
15834
15835 2020-01-14 Tom Tromey <tom@tromey.com>
15836
15837 PR symtab/12535:
15838 * python/python.c (gdbpy_decode_line): Treat empty string the same
15839 as no argument.
15840
15841 2020-01-14 Tom Tromey <tom@tromey.com>
15842
15843 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15844
15845 2020-01-14 Tom Tromey <tom@tromey.com>
15846
15847 * nat/linux-btrace.c: Don't include <config.h>.
15848 * nat/linux-ptrace.c: Don't include <config.h>.
15849 * nat/x86-linux-dregs.c: Don't include <config.h>.
15850
15851 2020-01-14 Tom Tromey <tom@tromey.com>
15852
15853 * configure: Rebuild.
15854 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15855
15856 2020-01-14 Tom Tromey <tom@tromey.com>
15857
15858 * nat/x86-linux-dregs.c: Include configh.h.
15859 * nat/linux-ptrace.c: Include configh.h.
15860 * nat/linux-btrace.c: Include configh.h.
15861 * defs.h: Include config.h, bfd.h.
15862 * configure.ac: Don't source common.host.
15863 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15864 * configure: Rebuild.
15865 * acinclude.m4: Update path.
15866 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15867 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15868 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15869 (CLIBS): Add LIBSUPPORT.
15870 (CDEPS): Likewise.
15871 (COMMON_SFILES): Remove gdbsupport files.
15872 (HFILES_NO_SRCDIR): Likewise.
15873 (stamp-version): Update path to create-version.sh.
15874 (ALLDEPFILES): Remove gdbsupport files.
15875
15876 2020-01-14 Tom Tromey <tom@tromey.com>
15877
15878 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15879 USE_WIN32API when needed.
15880 * configure.ac (USE_WIN32API): Don't define.
15881 (WIN32LIBS): Use WIN32APILIBS.
15882 * configure: Rebuild.
15883
15884 2020-01-14 Tom Tromey <tom@tromey.com>
15885
15886 * configure: Rebuild.
15887 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15888
15889 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15890
15891 * skip.c (skip_function_command): Make skip w/o arguments use the
15892 name of the inlined function if pc is inside any inlined function.
15893
15894 2020-01-14 Luis Machado <luis.machado@linaro.org>
15895
15896 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15897 * infrun.c (resume_1): Likewise.
15898 (handle_inferior_event): Remove stale comment.
15899 * linux-nat.c (linux_nat_target::resume): Update comments.
15900 (save_stop_reason): Likewise.
15901 (linux_nat_filter_event): Likewise.
15902 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15903
15904 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15905
15906 * elfread.c (record_minimal_symbol): Set section index to 0 for
15907 non-allocatable sections.
15908
15909
15910 2020-01-13 Ali Tamur <tamur@google.com>
15911
15912 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15913 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15914 to gdb::optional. Update comments.
15915 (dwo_file): Update comments.
15916 (read_attribute): Update API to take an additional out parameter,
15917 need_reprocess. This is used to mark attributes that need other
15918 attributes (e.g. str_offsets_base) for correct computation which may not
15919 have been read yet.
15920 (read_attribute_reprocess): New function declaration.
15921 (read_addr_index): Likewise.
15922 (read_dwo_str_index): Likewise.
15923 (read_stub_str_index): Likewise.
15924 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15925 (lookup_addr_base): New function definition.
15926 (lookup_ranges_base): Likewise.
15927 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15928 lookup_ranges_base.
15929 (init_cutu_and_read_dies): Update comments.
15930 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15931 unit. This is used to inherit parent's str_offsets_base and addr_base.
15932 Update comments.
15933 (init_cutu_and_read_dies_simple): Reflect API changes.
15934 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15935 (create_cus_hash_table): Change API to take parent compile unit.
15936 Reflect API changes.
15937 (open_and_init_dwo_file): Reflect API changes.
15938 (dwarf2_get_pc_bounds): Update comments.
15939 (dwarf2_record_block_ranges): Likewise.
15940 (read_full_die_1): Change implementation to reprocess attributes that
15941 need str_offsets_base and addr_base.
15942 (partial_die_info::read): Likewise.
15943 (read_attribute_reprocess): New function definition.
15944 (read_attribute_value): Change API to take an additional out parameter,
15945 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15946 when a non-dwo compile unit has index based attributes.
15947 (read_attribute): Reflect API changes.
15948 (read_addr_index_1): Reflect API changes. Update comments.
15949 (dwarf2_read_addr_index_data): Reflect API changes.
15950 (dwarf2_read_addr_index): Likewise.
15951 (read_str_index): Change API and implementation. This becomes a helper
15952 to be used by the new string index related methods. Update error
15953 message and comments.
15954 (read_dwo_str_index): New function definition.
15955 (read_stub_str_index): Likewise.
15956 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15957 * symfile.h (dwarf2_debug_sections): Likewise.
15958 * xcoffread.c (dwarf2_debug_sections): Likewise.
15959
15960 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15961
15962 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15963 core_reg_sect type to gdb_byte *.
15964 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15965 * cris-tdep.c (fetch_core_registers): Likewise.
15966 * corelow.c (core_target::get_core_register_section): Change
15967 type of `contents` to gdb::byte_vector.
15968
15969 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15970
15971 * tui/tui-wingeneral.c (box_win): Position the title in the center
15972 of the border.
15973
15974 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15975
15976 * corelow.c (core_target::get_core_register_section): Use
15977 std::vector instead of alloca.
15978
15979 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15980
15981 * warning.m4: Add -Wmissing-declarations to build_warnings.
15982 * configure: Re-generate.
15983
15984 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15985
15986 * python/python.c (init__gdb_module): Add declaration.
15987
15988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15989
15990 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15991 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15992 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15993 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15994 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15995 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15996 * ada-exp.y (_initialize_ada_exp): Add declaration.
15997 * ada-lang.c (_initialize_ada_language): Add declaration.
15998 * ada-tasks.c (_initialize_tasks): Add declaration.
15999 * agent.c (_initialize_agent): Add declaration.
16000 * aix-thread.c (_initialize_aix_thread): Add declaration.
16001 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16002 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16003 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16004 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16005 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16006 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16007 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16008 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16009 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16010 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16011 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16012 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16013 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16014 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16015 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16016 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16017 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16018 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16019 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16020 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16021 * annotate.c (_initialize_annotate): Add declaration.
16022 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16023 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16024 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16025 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16026 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16027 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16028 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16029 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16030 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16031 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16032 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16033 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16034 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16035 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16036 * auto-load.c (_initialize_auto_load): Add declaration.
16037 * auxv.c (_initialize_auxv): Add declaration.
16038 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16039 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16040 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16041 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16042 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16043 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16044 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16045 * breakpoint.c (_initialize_breakpoint): Add declaration.
16046 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16047 * btrace.c (_initialize_btrace): Add declaration.
16048 * charset.c (_initialize_charset): Add declaration.
16049 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16050 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16051 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16052 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16053 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16054 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16055 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16056 * coffread.c (_initialize_coffread): Add declaration.
16057 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16058 * compile/compile.c (_initialize_compile): Add declaration.
16059 * complaints.c (_initialize_complaints): Add declaration.
16060 * completer.c (_initialize_completer): Add declaration.
16061 * copying.c (_initialize_copying): Add declaration.
16062 * corefile.c (_initialize_core): Add declaration.
16063 * corelow.c (_initialize_corelow): Add declaration.
16064 * cp-abi.c (_initialize_cp_abi): Add declaration.
16065 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16066 * cp-support.c (_initialize_cp_support): Add declaration.
16067 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16068 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16069 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16070 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16071 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16072 * ctfread.c (_initialize_ctfread): Add declaration.
16073 * d-lang.c (_initialize_d_language): Add declaration.
16074 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16075 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16076 * dbxread.c (_initialize_dbxread): Add declaration.
16077 * dcache.c (_initialize_dcache): Add declaration.
16078 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16079 * disasm.c (_initialize_disasm): Add declaration.
16080 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16081 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16082 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16083 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16084 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16085 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16086 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16087 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16088 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16089 * elfread.c (_initialize_elfread): Add declaration.
16090 * exec.c (_initialize_exec): Add declaration.
16091 * extension.c (_initialize_extension): Add declaration.
16092 * f-lang.c (_initialize_f_language): Add declaration.
16093 * f-valprint.c (_initialize_f_valprint): Add declaration.
16094 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16095 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16096 * filesystem.c (_initialize_filesystem): Add declaration.
16097 * findcmd.c (_initialize_mem_search): Add declaration.
16098 * findvar.c (_initialize_findvar): Add declaration.
16099 * fork-child.c (_initialize_fork_child): Add declaration.
16100 * frame-base.c (_initialize_frame_base): Add declaration.
16101 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16102 * frame.c (_initialize_frame): Add declaration.
16103 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16104 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16105 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16106 * gcore.c (_initialize_gcore): Add declaration.
16107 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16108 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16109 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16110 * gdbarch.c (_initialize_gdbarch): Add declaration.
16111 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16112 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16113 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16114 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16115 * go-lang.c (_initialize_go_language): Add declaration.
16116 * go32-nat.c (_initialize_go32_nat): Add declaration.
16117 * guile/guile.c (_initialize_guile): Add declaration.
16118 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16119 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16120 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16121 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16122 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16123 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16124 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16125 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16126 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16127 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16128 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16129 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16130 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16131 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16132 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16133 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16134 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16135 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16136 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16137 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16138 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16139 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16140 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16141 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16142 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16143 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16144 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16145 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16146 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16147 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16148 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16149 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16150 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16151 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16152 * infcall.c (_initialize_infcall): Add declaration.
16153 * infcmd.c (_initialize_infcmd): Add declaration.
16154 * inflow.c (_initialize_inflow): Add declaration.
16155 * infrun.c (_initialize_infrun): Add declaration.
16156 * interps.c (_initialize_interpreter): Add declaration.
16157 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16158 * jit.c (_initialize_jit): Add declaration.
16159 * language.c (_initialize_language): Add declaration.
16160 * linux-fork.c (_initialize_linux_fork): Add declaration.
16161 * linux-nat.c (_initialize_linux_nat): Add declaration.
16162 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16163 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16164 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16165 * m2-lang.c (_initialize_m2_language): Add declaration.
16166 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16167 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16168 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16169 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16170 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16171 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16172 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16173 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16174 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16175 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16176 * machoread.c (_initialize_machoread): Add declaration.
16177 * macrocmd.c (_initialize_macrocmd): Add declaration.
16178 * macroscope.c (_initialize_macroscope): Add declaration.
16179 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16180 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16181 * maint.c (_initialize_maint_cmds): Add declaration.
16182 * mdebugread.c (_initialize_mdebugread): Add declaration.
16183 * memattr.c (_initialize_mem): Add declaration.
16184 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16185 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16186 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16187 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16188 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16189 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16190 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16191 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16192 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16193 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16194 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16195 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16196 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16197 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16198 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16199 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16200 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16201 * mipsread.c (_initialize_mipsread): Add declaration.
16202 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16203 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16204 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16205 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16206 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16207 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16208 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16209 * nto-procfs.c (_initialize_procfs): Add declaration.
16210 * objc-lang.c (_initialize_objc_language): Add declaration.
16211 * observable.c (_initialize_observer): Add declaration.
16212 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16213 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16214 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16215 * osabi.c (_initialize_gdb_osabi): Add declaration.
16216 * osdata.c (_initialize_osdata): Add declaration.
16217 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16218 * parse.c (_initialize_parse): Add declaration.
16219 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16220 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16221 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16222 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16223 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16224 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16225 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16226 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16227 * printcmd.c (_initialize_printcmd): Add declaration.
16228 * probe.c (_initialize_probe): Add declaration.
16229 * proc-api.c (_initialize_proc_api): Add declaration.
16230 * proc-events.c (_initialize_proc_events): Add declaration.
16231 * proc-service.c (_initialize_proc_service): Add declaration.
16232 * procfs.c (_initialize_procfs): Add declaration.
16233 * producer.c (_initialize_producer): Add declaration.
16234 * psymtab.c (_initialize_psymtab): Add declaration.
16235 * python/python.c (_initialize_python): Add declaration.
16236 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16237 * record-btrace.c (_initialize_record_btrace): Add declaration.
16238 * record-full.c (_initialize_record_full): Add declaration.
16239 * record.c (_initialize_record): Add declaration.
16240 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16241 * regcache.c (_initialize_regcache): Add declaration.
16242 * reggroups.c (_initialize_reggroup): Add declaration.
16243 * remote-notif.c (_initialize_notif): Add declaration.
16244 * remote-sim.c (_initialize_remote_sim): Add declaration.
16245 * remote.c (_initialize_remote): Add declaration.
16246 * reverse.c (_initialize_reverse): Add declaration.
16247 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16248 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16249 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16250 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16251 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16252 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16253 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16254 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16255 Add declaration.
16256 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16257 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16258 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16259 * rust-exp.y (_initialize_rust_exp): Add declaration.
16260 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16261 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16262 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16263 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16264 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16265 * score-tdep.c (_initialize_score_tdep): Add declaration.
16266 * ser-go32.c (_initialize_ser_dos): Add declaration.
16267 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16268 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16269 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16270 * ser-uds.c (_initialize_ser_socket): Add declaration.
16271 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16272 * serial.c (_initialize_serial): Add declaration.
16273 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16274 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16275 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16276 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16277 * skip.c (_initialize_step_skip): Add declaration.
16278 * sol-thread.c (_initialize_sol_thread): Add declaration.
16279 * solib-aix.c (_initialize_solib_aix): Add declaration.
16280 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16281 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16282 * solib-frv.c (_initialize_frv_solib): Add declaration.
16283 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16284 * solib-target.c (_initialize_solib_target): Add declaration.
16285 * solib.c (_initialize_solib): Add declaration.
16286 * source-cache.c (_initialize_source_cache): Add declaration.
16287 * source.c (_initialize_source): Add declaration.
16288 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16289 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16290 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16291 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16292 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16293 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16294 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16295 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16296 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16297 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16298 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16299 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16300 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16301 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16302 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16303 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16304 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16305 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16306 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16307 * stabsread.c (_initialize_stabsread): Add declaration.
16308 * stack.c (_initialize_stack): Add declaration.
16309 * stap-probe.c (_initialize_stap_probe): Add declaration.
16310 * std-regs.c (_initialize_frame_reg): Add declaration.
16311 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16312 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16313 * symfile.c (_initialize_symfile): Add declaration.
16314 * symmisc.c (_initialize_symmisc): Add declaration.
16315 * symtab.c (_initialize_symtab): Add declaration.
16316 * target.c (_initialize_target): Add declaration.
16317 * target-connection.c (_initialize_target_connection): Add
16318 declaration.
16319 * target-dcache.c (_initialize_target_dcache): Add declaration.
16320 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16321 * thread.c (_initialize_thread): Add declaration.
16322 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16323 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16324 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16325 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16326 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16327 * tracectf.c (_initialize_ctf): Add declaration.
16328 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16329 * tracefile.c (_initialize_tracefile): Add declaration.
16330 * tracepoint.c (_initialize_tracepoint): Add declaration.
16331 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16332 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16333 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16334 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16335 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16336 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16337 * tui/tui.c (_initialize_tui): Add declaration.
16338 * typeprint.c (_initialize_typeprint): Add declaration.
16339 * ui-style.c (_initialize_ui_style): Add declaration.
16340 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16341 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16342 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16343 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16344 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16345 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16346 * unittests/filtered_iterator-selftests.c
16347 (_initialize_filtered_iterator_selftests): Add declaration.
16348 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16349 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16350 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16351 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16352 * unittests/main-thread-selftests.c
16353 (_initialize_main_thread_selftests): Add declaration.
16354 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16355 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16356 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16357 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16358 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16359 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16360 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16361 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16362 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16363 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16364 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16365 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16366 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16367 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16368 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16369 declaration.
16370 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16371 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16372 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16373 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16374 * user-regs.c (_initialize_user_regs): Add declaration.
16375 * utils.c (_initialize_utils): Add declaration.
16376 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16377 * valops.c (_initialize_valops): Add declaration.
16378 * valprint.c (_initialize_valprint): Add declaration.
16379 * value.c (_initialize_values): Add declaration.
16380 * varobj.c (_initialize_varobj): Add declaration.
16381 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16382 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16383 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16384 * windows-nat.c (_initialize_windows_nat): Add declaration.
16385 (_initialize_check_for_gdb_ini): Add declaration.
16386 (_initialize_loadable): Add declaration.
16387 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16388 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16389 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16390 * xcoffread.c (_initialize_xcoffread): Add declaration.
16391 * xml-support.c (_initialize_xml_support): Add declaration.
16392 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16393 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16394 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16395 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16396
16397 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16398
16399 * regformats/regdat.sh: Generate declaration for init function.
16400
16401 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16402
16403 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16404 up.
16405 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16406 close_one_inferior>: New methods.
16407 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16408 pass down target to find_inferior_pid.
16409 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16410 Pass down target to find_inferior_ptid.
16411 (gdbsim_target::create_inferior): Pass down target to
16412 add_thread_silent.
16413 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16414 target down to find_inferior_ptid and switch_to_thread.
16415 (gdbsim_target::close): Update to call close_one_inferior.
16416 (struct resume_data): Remove.
16417 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16418 directly, rather than through a void pointer.
16419 (gdbsim_target::resume): Update to call resume_one_inferior.
16420
16421 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16422
16423 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16424
16425 2020-01-12 Pedro Alves <palves@redhat.com>
16426
16427 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16428 directly for the current inferior instead of
16429 discard_all_inferiors.
16430 (discard_all_inferiors): Delete.
16431
16432 2020-01-11 Tom Tromey <tom@tromey.com>
16433
16434 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16435 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16436 deprecated_safe_get_selected_frame.
16437
16438 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16439
16440 * inferior.c (print_inferior): Switch inferior before printing it.
16441
16442 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16443 Pedro Alves <palves@redhat.com>
16444
16445 * progspace-and-thread.c (switch_to_program_space_and_thread):
16446 Assert there's an inferior for PSPACE. Use
16447 switch_to_inferior_no_thread to switch the inferior too.
16448 * progspace.c (program_space::~program_space): Call
16449 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16450 (program_space::free_all_objfiles): Don't call clear_symtab_users
16451 here.
16452 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16453
16454 2020-01-10 Pedro Alves <palves@redhat.com>
16455
16456 * NEWS: Mention multi-target debugging, "info connections", and
16457 "add-inferior -no-connection".
16458
16459 2020-01-10 Pedro Alves <palves@redhat.com>
16460
16461 * infrun.c: Include "target-connection.h".
16462 (check_multi_target_resumption): New.
16463 (proceed): Call it.
16464 * target-connection.c (make_target_connection_string): Make
16465 extern.
16466 * target-connection.h (make_target_connection_string): Declare.
16467
16468 2020-01-10 Pedro Alves <palves@redhat.com>
16469
16470 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16471 * inferior.c (uiout_field_connection): New function.
16472 (print_inferior): Add new "connection-id" column.
16473 (add_inferior_command): Show connection number/string of added
16474 inferior.
16475 * process-stratum-target.h
16476 (process_stratum_target::connection_string): New virtual method.
16477 (process_stratum_target::connection_number): New field.
16478 * remote.c (remote_target::connection_string): New override.
16479 * target-connection.c: New file.
16480 * target-connection.h: New file.
16481 * target.c (decref_target): Remove process_stratum targets from
16482 the connection list.
16483 (target_stack::push): Add process_stratum targets to the
16484 connection list.
16485
16486 2020-01-10 Pedro Alves <palves@redhat.com>
16487
16488 Revert:
16489 2016-04-12 Pedro Alves <palves@redhat.com>
16490 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16491 Remove references to name.
16492 * serial.h (struct serial) <name>: Delete.
16493
16494 2020-01-10 Pedro Alves <palves@redhat.com>
16495
16496 * gdbarch-selftests.c (register_to_value_test): Remove "target
16497 already pushed" check.
16498
16499 2020-01-10 Pedro Alves <palves@redhat.com>
16500 John Baldwin <jhb@FreeBSD.org>
16501
16502 * aarch64-linux-nat.c
16503 (aarch64_linux_nat_target::thread_architecture): Adjust.
16504 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16505 (task_command_1): Likewise.
16506 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16507 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16508 (aix_thread_target::store_registers)
16509 (aix_thread_target::thread_alive): Adjust.
16510 * amd64-fbsd-tdep.c: Include "inferior.h".
16511 (amd64fbsd_get_thread_local_address): Pass down target.
16512 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16513 thread's gdbarch instead of target_gdbarch.
16514 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16515 get_last_target_status.
16516 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16517 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16518 inferiors.
16519 (update_inserted_breakpoint_locations): Skip if inferiors with no
16520 execution.
16521 (update_global_location_list): When handling moribund locations,
16522 find representative inferior for location's pspace, and use thread
16523 count of its process_stratum target.
16524 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16525 * bsd-uthread.c (bsd_uthread_target::wait): Use
16526 as_process_stratum_target and adjust thread_change_ptid and
16527 add_thread calls.
16528 (bsd_uthread_target::update_thread_list): Use
16529 as_process_stratum_target and adjust find_thread_ptid,
16530 thread_change_ptid and add_thread calls.
16531 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16532 find_thread_ptid call.
16533 * corelow.c (add_to_thread_list): Adjust add_thread call.
16534 (core_target_open): Adjust add_thread_silent and thread_count
16535 calls.
16536 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16537 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16538 * event-top.c (async_disconnect): Pop targets from all inferiors.
16539 * exec.c (add_target_sections): Push exec target on all inferiors
16540 sharing the program space.
16541 (remove_target_sections): Remove the exec target from all
16542 inferiors sharing the program space.
16543 (exec_on_vfork): New.
16544 * exec.h (exec_on_vfork): Declare.
16545 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16546 Pass it down.
16547 (fbsd_nat_target::update_thread_list): Adjust.
16548 (fbsd_nat_target::resume): Adjust.
16549 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16550 down.
16551 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16552 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16553 get_thread_arch_regcache call.
16554 * fork-child.c (gdb_startup_inferior): Pass target down to
16555 startup_inferior and set_executing.
16556 * gdbthread.h (struct process_stratum_target): Forward declare.
16557 (add_thread, add_thread_silent, add_thread_with_info)
16558 (in_thread_list): Add process_stratum_target parameter.
16559 (find_thread_ptid(inferior*, ptid_t)): New overload.
16560 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16561 parameter.
16562 (all_threads()): Delete overload.
16563 (all_threads, all_non_exited_threads): Add process_stratum_target
16564 parameter.
16565 (all_threads_safe): Use brace initialization.
16566 (thread_count): Add process_stratum_target parameter.
16567 (set_resumed, set_running, set_stop_requested, set_executing)
16568 (threads_are_executing, finish_thread_state): Add
16569 process_stratum_target parameter.
16570 (switch_to_thread): Use is_current_thread.
16571 * i386-fbsd-tdep.c: Include "inferior.h".
16572 (i386fbsd_get_thread_local_address): Pass down target.
16573 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16574 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16575 have_inferiors check.
16576 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16577 (inf_ptrace_target::attach): Adjust.
16578 * infcall.c (run_inferior_call): Adjust.
16579 * infcmd.c (run_command_1): Pass target to
16580 scoped_finish_thread_state.
16581 (proceed_thread_callback): Skip inferiors with no execution.
16582 (continue_command): Rename 'all_threads' local to avoid hiding
16583 'all_threads' function. Adjust get_last_target_status call.
16584 (prepare_one_step): Adjust set_running call.
16585 (signal_command): Use user_visible_resume_target. Compare thread
16586 pointers instead of inferior_ptid.
16587 (info_program_command): Adjust to pass down target.
16588 (attach_command): Mark target's 'thread_executing' flag.
16589 (stop_current_target_threads_ns): New, factored out from ...
16590 (interrupt_target_1): ... this. Switch inferior before making
16591 target calls.
16592 * inferior-iter.h
16593 (struct all_inferiors_iterator, struct all_inferiors_range)
16594 (struct all_inferiors_safe_range)
16595 (struct all_non_exited_inferiors_range): Filter on
16596 process_stratum_target too. Remove explicit.
16597 * inferior.c (inferior::inferior): Push dummy target on target
16598 stack.
16599 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16600 Add process_stratum_target parameter, and pass it down.
16601 (have_live_inferiors): Adjust.
16602 (switch_to_inferior_and_push_target): New.
16603 (add_inferior_command, clone_inferior_command): Handle
16604 "-no-connection" parameter. Use
16605 switch_to_inferior_and_push_target.
16606 (_initialize_inferior): Mention "-no-connection" option in
16607 the help of "add-inferior" and "clone-inferior" commands.
16608 * inferior.h: Include "process-stratum-target.h".
16609 (interrupt_target_1): Use bool.
16610 (struct inferior) <push_target, unpush_target, target_is_pushed,
16611 find_target_beneath, top_target, process_target, target_at,
16612 m_stack>: New.
16613 (discard_all_inferiors): Delete.
16614 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16615 (all_inferiors, all_non_exited_inferiors): Add
16616 process_stratum_target parameter.
16617 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16618 (target_last_proc_target): New global.
16619 (follow_fork_inferior): Push target on new inferior. Pass target
16620 to add_thread_silent. Call exec_on_vfork. Handle target's
16621 reference count.
16622 (follow_fork): Adjust get_last_target_status call. Also consider
16623 target.
16624 (follow_exec): Push target on new inferior.
16625 (struct execution_control_state) <target>: New field.
16626 (user_visible_resume_target): New.
16627 (do_target_resume): Call target_async.
16628 (resume_1): Set target's threads_executing flag. Consider resume
16629 target.
16630 (commit_resume_all_targets): New.
16631 (proceed): Also consider resume target. Skip threads of inferiors
16632 with no execution. Commit resumtion in all targets.
16633 (start_remote): Pass current inferior to wait_for_inferior.
16634 (infrun_thread_stop_requested): Consider target as well. Pass
16635 thread_info pointer to clear_inline_frame_state instead of ptid.
16636 (infrun_thread_thread_exit): Consider target as well.
16637 (random_pending_event_thread): New inferior parameter. Use it.
16638 (do_target_wait): Rename to ...
16639 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16640 down.
16641 (threads_are_resumed_pending_p, do_target_wait): New.
16642 (prepare_for_detach): Adjust calls.
16643 (wait_for_inferior): New inferior parameter. Handle it. Use
16644 do_target_wait_1 instead of do_target_wait.
16645 (fetch_inferior_event): Adjust. Switch to representative
16646 inferior. Pass target down.
16647 (set_last_target_status): Add process_stratum_target parameter.
16648 Save target in global.
16649 (get_last_target_status): Add process_stratum_target parameter and
16650 handle it.
16651 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16652 (context_switch): Check inferior_ptid == null_ptid before calling
16653 inferior_thread().
16654 (get_inferior_stop_soon): Pass down target.
16655 (wait_one): Rename to ...
16656 (poll_one_curr_target): ... this.
16657 (struct wait_one_event): New.
16658 (wait_one): New.
16659 (stop_all_threads): Adjust.
16660 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16661 event's target.
16662 (switch_back_to_stepped_thread): Also consider target.
16663 (print_stop_event): Update.
16664 (normal_stop): Update. Also consider the resume target.
16665 * infrun.h (wait_for_inferior): Remove declaration.
16666 (user_visible_resume_target): New declaration.
16667 (get_last_target_status, set_last_target_status): New
16668 process_stratum_target parameter.
16669 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16670 process_stratum_target parameter, and use it.
16671 (clear_inline_frame_state (thread_info*)): New.
16672 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16673 process_stratum_target parameter.
16674 (clear_inline_frame_state (thread_info*)): Declare.
16675 * linux-fork.c (delete_checkpoint_command): Pass target down to
16676 find_thread_ptid.
16677 (checkpoint_command): Adjust.
16678 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16679 instead of just tweaking inferior_ptid.
16680 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16681 (exit_lwp): Pass target down to find_thread_ptid.
16682 (attach_proc_task_lwp_callback): Pass target down to
16683 add_thread/set_running/set_executing.
16684 (linux_nat_target::attach): Pass target down to
16685 thread_change_ptid.
16686 (get_detach_signal): Pass target down to find_thread_ptid.
16687 Consider last target status's target.
16688 (linux_resume_one_lwp_throw, resume_lwp)
16689 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16690 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16691 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16692 (linux_nat_target::async_wait_fd): New.
16693 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16694 target down.
16695 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16696 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16697 * linux-thread-db.c (struct thread_db_info::process_target): New
16698 field.
16699 (add_thread_db_info): Save target.
16700 (get_thread_db_info): New process_stratum_target parameter. Also
16701 match target.
16702 (delete_thread_db_info): New process_stratum_target parameter.
16703 Also match target.
16704 (thread_from_lwp): Adjust to pass down target.
16705 (thread_db_notice_clone): Pass down target.
16706 (check_thread_db_callback): Pass down target.
16707 (try_thread_db_load_1): Always push the thread_db target.
16708 (try_thread_db_load, record_thread): Pass target down.
16709 (thread_db_target::detach): Pass target down. Always unpush the
16710 thread_db target.
16711 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16712 target down. Always unpush the thread_db target.
16713 (find_new_threads_callback, thread_db_find_new_threads_2)
16714 (thread_db_target::update_thread_list): Pass target down.
16715 (thread_db_target::pid_to_str): Pass current inferior down.
16716 (thread_db_target::get_thread_local_address): Pass target down.
16717 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16718 target down.
16719 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16720 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16721 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16722 (procfs_init_inferior): Rename to ...
16723 (procfs_target::procfs_init_inferior): ... this and adjust.
16724 (procfs_target::create_inferior, procfs_notice_thread)
16725 (procfs_do_thread_registers): Adjust.
16726 * ppc-fbsd-tdep.c: Include "inferior.h".
16727 (ppcfbsd_get_thread_local_address): Pass down target.
16728 * proc-service.c (ps_xfer_memory): Switch current inferior and
16729 program space as well.
16730 (get_ps_regcache): Pass target down.
16731 * process-stratum-target.c
16732 (process_stratum_target::thread_address_space)
16733 (process_stratum_target::thread_architecture): Pass target down.
16734 * process-stratum-target.h
16735 (process_stratum_target::threads_executing): New field.
16736 (as_process_stratum_target): New.
16737 * ravenscar-thread.c
16738 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16739 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16740 down.
16741 * record-btrace.c (record_btrace_target::info_record): Adjust.
16742 (record_btrace_target::record_method)
16743 (record_btrace_target::record_is_replaying)
16744 (record_btrace_target::fetch_registers)
16745 (get_thread_current_frame_id, record_btrace_target::resume)
16746 (record_btrace_target::wait, record_btrace_target::stop): Pass
16747 target down.
16748 * record-full.c (record_full_wait_1): Switch to event thread.
16749 Pass target down.
16750 * regcache.c (regcache::regcache)
16751 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16752 process_stratum_target parameter and handle it.
16753 (current_thread_target): New global.
16754 (get_thread_regcache): Add process_stratum_target parameter and
16755 handle it. Switch inferior before calling target method.
16756 (get_thread_regcache): Pass target down.
16757 (get_thread_regcache_for_ptid): Pass target down.
16758 (registers_changed_ptid): Add process_stratum_target parameter and
16759 handle it.
16760 (registers_changed_thread, registers_changed): Pass target down.
16761 (test_get_thread_arch_aspace_regcache): New.
16762 (current_regcache_test): Define a couple local test_target_ops
16763 instances and use them for testing.
16764 (readwrite_regcache): Pass process_stratum_target parameter.
16765 (cooked_read_test, cooked_write_test): Pass mock_target down.
16766 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16767 (get_thread_arch_aspace_regcache): Add process_stratum_target
16768 parameter.
16769 (regcache::target): New method.
16770 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16771 (regcache::registers_changed_ptid): Add process_stratum_target
16772 parameter.
16773 (regcache::m_target): New field.
16774 (registers_changed_ptid): Add process_stratum_target parameter.
16775 * remote.c (remote_state::supports_vCont_probed): New field.
16776 (remote_target::async_wait_fd): New method.
16777 (remote_unpush_and_throw): Add remote_target parameter.
16778 (get_current_remote_target): Adjust.
16779 (remote_target::remote_add_inferior): Push target.
16780 (remote_target::remote_add_thread)
16781 (remote_target::remote_notice_new_inferior)
16782 (get_remote_thread_info): Pass target down.
16783 (remote_target::update_thread_list): Skip threads of inferiors
16784 bound to other targets. (remote_target::close): Don't discard
16785 inferiors. (remote_target::add_current_inferior_and_thread)
16786 (remote_target::process_initial_stop_replies)
16787 (remote_target::start_remote)
16788 (remote_target::remote_serial_quit_handler): Pass down target.
16789 (remote_target::remote_unpush_target): New remote_target
16790 parameter. Unpush the target from all inferiors.
16791 (remote_target::remote_unpush_and_throw): New remote_target
16792 parameter. Pass it down.
16793 (remote_target::open_1): Check whether the current inferior has
16794 execution instead of checking whether any inferior is live. Pass
16795 target down.
16796 (remote_target::remote_detach_1): Pass down target. Use
16797 remote_unpush_target.
16798 (extended_remote_target::attach): Pass down target.
16799 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16800 (remote_target::append_resumption): Pass down target.
16801 (remote_target::append_pending_thread_resumptions)
16802 (remote_target::remote_resume_with_hc, remote_target::resume)
16803 (remote_target::commit_resume): Pass down target.
16804 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16805 (remote_target::interrupt_query)
16806 (remote_target::remove_new_fork_children)
16807 (remote_target::check_pending_events_prevent_wildcard_vcont)
16808 (remote_target::remote_parse_stop_reply)
16809 (remote_target::process_stop_reply): Pass down target.
16810 (first_remote_resumed_thread): New remote_target parameter. Pass
16811 it down.
16812 (remote_target::wait_as): Pass down target.
16813 (unpush_and_perror): New remote_target parameter. Pass it down.
16814 (remote_target::readchar, remote_target::remote_serial_write)
16815 (remote_target::getpkt_or_notif_sane_1)
16816 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16817 down target.
16818 (remote_target::mourn_inferior): Pass down target. Use
16819 remote_unpush_target.
16820 (remote_target::core_of_thread)
16821 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16822 (remote_target::pid_to_exec_file)
16823 (remote_target::thread_handle_to_thread_info): Pass down target.
16824 (remote_target::async_wait_fd): New.
16825 * riscv-fbsd-tdep.c: Include "inferior.h".
16826 (riscv_fbsd_get_thread_local_address): Pass down target.
16827 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16828 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16829 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16830 Adjust.
16831 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16832 * solib-svr4.c (enable_break): Pass down target.
16833 * spu-multiarch.c (parse_spufs_run): Pass down target.
16834 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16835 * target-delegates.c: Regenerate.
16836 * target.c (g_target_stack): Delete.
16837 (current_top_target): Return the current inferior's top target.
16838 (target_has_execution_1): Refer to the passed-in inferior's top
16839 target.
16840 (target_supports_terminal_ours): Check whether the initial
16841 inferior was already created.
16842 (decref_target): New.
16843 (target_stack::push): Incref/decref the target.
16844 (push_target, push_target, unpush_target): Adjust.
16845 (target_stack::unpush): Defref target.
16846 (target_is_pushed): Return bool. Adjust to refer to the current
16847 inferior's target stack.
16848 (dispose_inferior): Delete, and inline parts ...
16849 (target_preopen): ... here. Only dispose of the current inferior.
16850 (target_detach): Hold strong target reference while detaching.
16851 Pass target down.
16852 (target_thread_name): Add assertion.
16853 (target_resume): Pass down target.
16854 (target_ops::beneath, find_target_at): Adjust to refer to the
16855 current inferior's target stack.
16856 (get_dummy_target): New.
16857 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16858 has a thread running.
16859 (initialize_targets): Rename to ...
16860 (_initialize_target): ... this.
16861 * target.h: Include "gdbsupport/refcounted-object.h".
16862 (struct target_ops): Inherit refcounted_object.
16863 (target_ops::shortname, target_ops::longname): Make const.
16864 (target_ops::async_wait_fd): New method.
16865 (decref_target): Declare.
16866 (struct target_ops_ref_policy): New.
16867 (target_ops_ref): New typedef.
16868 (get_dummy_target): Declare function.
16869 (target_is_pushed): Return bool.
16870 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16871 (all_matching_threads_iterator::all_matching_threads_iterator):
16872 Handle filter target.
16873 * thread-iter.h (struct all_matching_threads_iterator, struct
16874 all_matching_threads_range, class all_non_exited_threads_range):
16875 Filter by target too. Remove explicit.
16876 * thread.c (threads_executing): Delete.
16877 (inferior_thread): Pass down current inferior.
16878 (clear_thread_inferior_resources): Pass down thread pointer
16879 instead of ptid_t.
16880 (add_thread_silent, add_thread_with_info, add_thread): Add
16881 process_stratum_target parameter. Use it for thread and inferior
16882 searches.
16883 (is_current_thread): New.
16884 (thread_info::deletable): Use it.
16885 (find_thread_ptid, thread_count, in_thread_list)
16886 (thread_change_ptid, set_resumed, set_running): New
16887 process_stratum_target parameter. Pass it down.
16888 (set_executing): New process_stratum_target parameter. Pass it
16889 down. Adjust reference to 'threads_executing'.
16890 (threads_are_executing): New process_stratum_target parameter.
16891 Adjust reference to 'threads_executing'.
16892 (set_stop_requested, finish_thread_state): New
16893 process_stratum_target parameter. Pass it down.
16894 (switch_to_thread): Also match inferior.
16895 (switch_to_thread): New process_stratum_target parameter. Pass it
16896 down.
16897 (update_threads_executing): Reimplement.
16898 * top.c (quit_force): Pop targets from all inferior.
16899 (gdb_init): Don't call initialize_targets.
16900 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16901 Declare.
16902 (windows_add_thread, windows_delete_thread): Adjust.
16903 (get_windows_debug_event): Rename to ...
16904 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16905 * tracefile-tfile.c (tfile_target_open): Pass down target.
16906 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16907 Forward declare.
16908 (switch_to_thread): Add process_stratum_target parameter.
16909 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16910 parameter. Use it.
16911 (mi_on_resume): Pass target down.
16912 * nat/fork-inferior.c (startup_inferior): Add
16913 process_stratum_target parameter. Pass it down.
16914 * nat/fork-inferior.h (startup_inferior): Add
16915 process_stratum_target parameter.
16916 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16917
16918 2020-01-10 Pedro Alves <palves@redhat.com>
16919
16920 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16921 directly. Instead find the first thread in the thread list and
16922 use switch_to_thread.
16923
16924 2020-01-10 Pedro Alves <palves@redhat.com>
16925
16926 * remote.c (remote_target::remote_add_inferior): Don't bind a
16927 process to the current inferior if the current inferior is already
16928 bound to a process.
16929
16930 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16931 Pedro Alves <palves@redhat.com>
16932
16933 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16934 If no process is specified, return null_ptid instead of
16935 inferior_ptid.
16936 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16937 TARGET_WAITKIND_SIGNALLED with no pid.
16938
16939 2020-01-10 Pedro Alves <palves@redhat.com>
16940
16941 * remote.c (first_remote_resumed_thread): New.
16942 (remote_target::wait_as): Use it as default event_ptid instead of
16943 inferior_ptid.
16944
16945 2020-01-10 Pedro Alves <palves@redhat.com>
16946
16947 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16948
16949 2020-01-10 Pedro Alves <palves@redhat.com>
16950
16951 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16952 not -1.
16953
16954 2020-01-10 Pedro Alves <palves@redhat.com>
16955
16956 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16957 ptid to get_last_target_status.
16958 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16959 ptid to get_last_target_status.
16960 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16961 get_last_target_status.
16962 (info_program_command): Don't pass a target_waitstatus to
16963 get_last_target_status.
16964 * infrun.c (init_wait_for_inferior): Use
16965 nullify_last_target_wait_ptid.
16966 (get_last_target_status): Handle nullptr arguments.
16967 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16968 (print_stop_event): Don't pass a ptid to get_last_target_status.
16969 (normal_stop): Don't pass a ptid to get_last_target_status.
16970 * infrun.h (get_last_target_status, set_last_target_status): Move
16971 comments here and update.
16972 (nullify_last_target_wait_ptid): Declare.
16973 * linux-fork.c (fork_load_infrun_state): Remove local extern
16974 declaration of nullify_last_target_wait_ptid.
16975 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16976 to get_last_target_status.
16977
16978 2020-01-10 Pedro Alves <palves@redhat.com>
16979
16980 * gdbthread.h (scoped_restore_current_thread)
16981 <dont_restore, restore, m_dont_restore>: Declare.
16982 * thread.c (thread_alive): Add assertion. Return bool.
16983 (switch_to_thread_if_alive): New.
16984 (prune_threads): Switch inferior/thread.
16985 (print_thread_info_1): Switch thread before calling target methods.
16986 (scoped_restore_current_thread::restore): New, factored out from
16987 ...
16988 (scoped_restore_current_thread::~scoped_restore_current_thread):
16989 ... this.
16990 (scoped_restore_current_thread::scoped_restore_current_thread):
16991 Add assertion.
16992 (thread_apply_all_command, thread_select): Use
16993 switch_to_thread_if_alive.
16994 * infrun.c (proceed, restart_threads, handle_signal_stop)
16995 (switch_back_to_stepped_thread): Switch current thread before
16996 calling target methods.
16997
16998 2020-01-10 Pedro Alves <palves@redhat.com>
16999
17000 * inferior.c (switch_to_inferior_no_thread): New function,
17001 factored out from ...
17002 (inferior_command): ... here.
17003 * inferior.h (switch_to_inferior_no_thread): Declare.
17004 * mi/mi-main.c (run_one_inferior): Use
17005 switch_to_inferior_no_thread.
17006
17007 2020-01-10 Pedro Alves <palves@redhat.com>
17008
17009 * infcmd.c (kill_command): Remove dead code.
17010
17011 2020-01-10 Pedro Alves <palves@redhat.com>
17012
17013 * remote.c (remote_target::mourn_inferior): No longer check
17014 whether the target is running.
17015
17016 2020-01-10 Pedro Alves <palves@redhat.com>
17017
17018 * corelow.c (core_target::has_execution): Change parameter type to
17019 inferior pointer.
17020 * inferior.c (number_of_live_inferiors): Use
17021 inferior::has_execution instead of target_has_execution_1.
17022 * inferior.h (inferior::has_execution): New.
17023 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17024 inferior::has_execution instead of target_has_execution_1.
17025 * process-stratum-target.c
17026 (process_stratum_target::has_execution): Change parameter type to
17027 inferior pointer. Check the inferior's PID instead of
17028 inferior_ptid.
17029 * process-stratum-target.h
17030 (process_stratum_target::has_execution): Change parameter type to
17031 inferior pointer.
17032 * record-full.c (record_full_core_target::has_execution): Change
17033 parameter type to inferior pointer.
17034 * target.c (target_has_execution_1): Change parameter type to
17035 inferior pointer.
17036 (target_has_execution_current): Adjust.
17037 * target.h (target_ops::has_execution): Change parameter type to
17038 inferior pointer.
17039 (target_has_execution_1): Change parameter type to inferior
17040 pointer. Change return type to bool.
17041 * tracefile.h (tracefile_target::has_execution): Change parameter
17042 type to inferior pointer.
17043
17044 2020-01-10 Pedro Alves <palves@redhat.com>
17045
17046 * exceptions.c (print_flush): Remove current_top_target() check.
17047
17048 2020-01-10 Pedro Alves <palves@redhat.com>
17049
17050 * remote.c (show_remote_exec_file): Show the current inferior's
17051 exec-file instead of the command variable's value.
17052
17053 2020-01-10 Pedro Alves <palves@redhat.com>
17054
17055 * record-full.c (record_full_resume_ptid): New global.
17056 (record_full_target::resume): Set it.
17057 (record_full_wait_1): Use record_full_resume_ptid instead of
17058 inferior_ptid.
17059
17060 2020-01-10 Pedro Alves <palves@redhat.com>
17061
17062 * gdbthread.h (scoped_restore_current_thread)
17063 <dont_restore, restore, m_dont_restore>: Declare.
17064 * thread.c (thread_alive): Add assertion. Return bool.
17065 (switch_to_thread_if_alive): New.
17066 (prune_threads): Switch inferior/thread.
17067 (print_thread_info_1): Switch thread before calling target methods.
17068 (scoped_restore_current_thread::restore): New, factored out from
17069 ...
17070 (scoped_restore_current_thread::~scoped_restore_current_thread):
17071 ... this.
17072 (scoped_restore_current_thread::scoped_restore_current_thread):
17073 Add assertion.
17074 (thread_apply_all_command, thread_select): Use
17075 switch_to_thread_if_alive.
17076
17077 2020-01-10 George Barrett <bob@bob131.so>
17078
17079 * stap-probe.c (stap_modify_semaphore): Don't check for null
17080 semaphores.
17081 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17082 for null semaphores.
17083
17084 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17085
17086 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17087 all source windows, and maintain horizontal scroll status while
17088 doing so.
17089
17090 2020-01-09 Tom Tromey <tom@tromey.com>
17091
17092 PR tui/18932:
17093 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17094 update_source_window, not print_source_lines.
17095
17096 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17097
17098 * tui/tui.c (tui_enable): Register tui hooks after calling
17099 tui_display_main.
17100
17101 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17102
17103 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17104
17105 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17106
17107 * thread.c (print_thread_info_1): Fix indentation.
17108
17109 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17110
17111 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17112 unique_xmalloc_ptr outside the if to always free the demangled name.
17113
17114 2020-01-08 Tom Tromey <tromey@adacore.com>
17115
17116 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17117 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17118 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17119 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17120 Remove.
17121 (section_offsets): New typedef.
17122 * symtab.c (fixup_section, get_msymbol_address): Update.
17123 * symmisc.c (dump_msymbols): Update.
17124 * symfile.h (relative_addr_info_to_section_offsets)
17125 (symfile_map_offsets_to_segments): Update.
17126 * symfile.c (build_section_addr_info_from_objfile)
17127 (init_objfile_sect_indices): Update.
17128 (struct place_section_arg): Change type of "offsets".
17129 (place_section): Update.
17130 (relative_addr_info_to_section_offsets): Change type of
17131 "section_offsets". Remove "num_sections" parameter.
17132 (default_symfile_offsets, syms_from_objfile_1)
17133 (set_objfile_default_section_offset): Update.
17134 (reread_symbols): No need to preserve section offsets by hand.
17135 (symfile_map_offsets_to_segments): Change type of "offsets".
17136 * stap-probe.c (relocate_address): Update.
17137 * stabsread.h (process_one_symbol): Update.
17138 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17139 (solib_target_relocate_section_addresses): Update.
17140 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17141 Update.
17142 * solib-frv.c (frv_relocate_main_executable): Update.
17143 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17144 * solib-aix.c (solib_aix_get_section_offsets): Change return
17145 type.
17146 (solib_aix_solib_create_inferior_hook): Update.
17147 * remote.c (remote_target::get_offsets): Update.
17148 * psymtab.c (find_pc_sect_psymtab): Update.
17149 * psympriv.h (struct partial_symbol) <address, text_low,
17150 text_high>: Update.
17151 * objfiles.h (obj_section_offset): Update.
17152 (struct objfile) <section_offsets>: Change type.
17153 <num_sections>: Remove.
17154 (objfile_relocate): Update.
17155 * objfiles.c (entry_point_address_query): Update
17156 (relocate_one_symbol): Change type of "section_offsets".
17157 (objfile_relocate1, objfile_relocate1): Change type of
17158 "new_offsets".
17159 (objfile_rebase1): Update.
17160 * mipsread.c (mipscoff_symfile_read): Update.
17161 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17162 parameter.
17163 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17164 (parse_external, psymtab_to_symtab_1): Update.
17165 * machoread.c (macho_symfile_offsets): Update.
17166 * ia64-tdep.c (ia64_find_unwind_table): Update.
17167 * hppa-tdep.c (read_unwind_info): Update.
17168 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17169 * dwarf2read.c (create_addrmap_from_index)
17170 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17171 (process_psymtab_comp_unit_reader, add_partial_symbol)
17172 (add_partial_subprogram, process_full_comp_unit)
17173 (read_file_scope, read_func_scope, read_lexical_block_scope)
17174 (read_call_site_scope, dwarf2_rnglists_process)
17175 (dwarf2_ranges_process, dwarf2_ranges_read)
17176 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17177 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17178 Update.
17179 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17180 Update.
17181 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17182 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17183 (process_one_symbol): Change type of "section_offsets".
17184 * ctfread.c (get_objfile_text_range): Update.
17185 * coffread.c (coff_symtab_read, enter_linenos)
17186 (process_coff_symbol): Update.
17187 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17188 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17189
17190 2020-01-08 Tom Tromey <tromey@adacore.com>
17191
17192 * dwarf2read.c (parse_macro_definition): Use std::string.
17193 (parse_macro_definition): Likewise.
17194
17195 2020-01-08 Tom Tromey <tromey@adacore.com>
17196
17197 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17198 (ATTR_ALLOC_CHUNK): Remove.
17199
17200 2020-01-08 Tom Tromey <tromey@adacore.com>
17201
17202 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17203
17204 2020-01-08 Tom Tromey <tromey@adacore.com>
17205
17206 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17207 (dwarf2_compute_name, open_dwo_file): Likewise.
17208 (process_enumeration_scope): Use std::vector.
17209 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17210 (partial_die_info::fixup, dwarf2_start_subfile)
17211 (guess_full_die_structure_name, dwarf2_name): Likewise.
17212 (determine_prefix): Update.
17213 (guess_full_die_structure_name): Make return type const.
17214 (partial_die_full_name): Return unique_xmalloc_ptr.
17215 (DW_FIELD_ALLOC_CHUNK): Remove.
17216
17217 2020-01-07 Tom Tromey <tromey@adacore.com>
17218
17219 PR build/24937:
17220 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17221
17222 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17223
17224 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17225
17226 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17227
17228 * stack.c (print_frame_info): Move disassemble_next_line code
17229 inside source_print block.
17230
17231 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17232
17233 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17234 gdb/signals.h, as we are now using native signal symbols.
17235
17236 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17237
17238 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17239 overflow by an early check of content vs threshold.
17240 * tui/tui-source.c (tui_source_window::line_is_displayed):
17241 Likewise.
17242
17243 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17244
17245 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17246
17247 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17248
17249 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17250 export table if no section contains it's RVA.
17251
17252 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17253
17254 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17255
17256 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17257
17258 * source.c (print_source_lines_base): Set last_line_listed.
17259
17260 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17261
17262 * tui/tui-disasm.c: Remove trailing spaces.
17263
17264 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17265 Pedro Alves <palves@redhat.com>
17266
17267 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17268 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17269 (windows_gdb_signal_to_target): New function, uses the above
17270 enumeration to convert GDB internal signal codes to equivalent
17271 Windows codes.
17272 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17273 * windows-nat.c: Include "gdb_wait.h".
17274 (get_windows_debug_event): Extract the fatal exception from the
17275 exit status and convert to the equivalent Posix signal number.
17276 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17277 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17278 * gdbsupport/gdb_wait.c: New file, implements
17279 windows_status_to_termsig.
17280 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17281 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17282
17283 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17284
17285 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17286 show_layout.
17287
17288 2020-01-05 Luis Machado <luis.machado@linaro.org>
17289
17290 * aarch64-linux-nat.c
17291 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17292 and bfd_mach_aarch64.
17293
17294 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17295
17296 * ui-file.c (stdio_file::can_emit_style_escape)
17297 (tee_file::can_emit_style_escape): Ensure style is used also on
17298 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17299 to gdb_stdout.
17300 * main.c (set_gdb_data_directory): Use file style to output the
17301 warning that the given pathname is not a directory.
17302 * top.c (show_history_filename, gdb_safe_append_history)
17303 (show_gdb_datadir): Use file style.
17304
17305 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17306
17307 * solib-target.c (struct lm_info_target):
17308 Change offsets to be a unique_xmalloc_ptr.
17309 (solib_target_relocate_section_addresses): Update.
17310
17311 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17312
17313 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17314
17315 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17316
17317 * MAINTAINERS (Write After Approval): Add myself.
17318
17319 2020-01-02 Luis Machado <luis.machado@linaro.org>
17320
17321 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17322 Cell BE architecture.
17323 * target.h (struct target_ops) <thread_architecture>: Likewise.
17324
17325 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17326
17327 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17328
17329 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17330
17331 * MAINTAINERS (Write After Approval): Add myself.
17332
17333 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17334
17335 * gdbarch.sh: Update copyright year range of generated files.
17336
17337 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17338
17339 Update copyright year range in all GDB files.
17340
17341 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17342
17343 * copyright.py: Convert to Python 3.
17344
17345 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17346
17347 * copyright.py: Adapt after move of gnulib directory from gdb
17348 directory to toplevel directory.
17349
17350 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17351
17352 * copyright.py (main): Exit if run from the wrong directory.
17353
17354 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17355
17356 * top.c (print_gdb_version): Change copyright year to 2020.
17357
17358 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17359
17360 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17361
17362 For older changes see ChangeLog-2019.
17363 \f
17364 Local Variables:
17365 mode: change-log
17366 left-margin: 8
17367 fill-column: 74
17368 version-control: never
17369 coding: utf-8
17370 End:
This page took 0.360227 seconds and 5 git commands to generate.