Use new+delete for struct expression
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-01 Tom Tromey <tom@tromey.com>
2
3 * parse.c (expr_builder::expr_builder): Initialize expout.
4 (expr_builder::release): Use expression::resize.
5 (expression::expression, expression::~expression)
6 (expression::resize): New methods.
7 (write_exp_elt): Use expression::resize.
8 (prefixify_expression): Update.
9 (increase_expout_size): Use expression::resize.
10 * expression.h (struct expression): Add constructor, destructor.
11 <resize>: New method.
12 (expression_up): Change type.
13
14 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
15 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
16 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
17 set region.
18
19 2020-11-30 Tom de Vries <tdevries@suse.de>
20
21 PR symtab/26905
22 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
23 is_reference parameter.
24 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
25
26 2020-11-30 Tom Tromey <tom@tromey.com>
27
28 * rust-lang.c (rust_op_name): Remove.
29 (exp_descriptor_rust): Update.
30 * parser-defs.h (op_name_standard): Don't declare.
31 (struct exp_descriptor) <op_name>: Remove.
32 * parse.c (exp_descriptor_standard): Update.
33 * opencl-lang.c (exp_descriptor_opencl): Update.
34 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
35 * f-lang.c (op_name_f): Remove.
36 (f_language::exp_descriptor_tab): Update.
37 * expression.h (op_name): Update.
38 * expprint.c (op_name): Rewrite.
39 (op_name_standard): Remove.
40 (dump_raw_expression, dump_subexp): Update.
41 * c-lang.c (exp_descriptor_c): Update.
42 * ax-gdb.c (gen_expr): Update.
43 * ada-lang.c (ada_op_name): Remove.
44 (ada_exp_descriptor): Update.
45
46 2020-11-30 Tom Tromey <tom@tromey.com>
47
48 * eval.c (init_array_element): Remove.
49 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
50
51 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
52
53 PR tui/26973
54 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
55 static locator win info.
56
57 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
58
59 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
60 program.
61
62 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
65 is always initialized.
66
67 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
68 * MAINTAINERS (Write After Approval): Add myself.
69
70 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
71
72 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
73 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
74
75 2020-11-25 Tom Tromey <tom@tromey.com>
76
77 * eval.c (evaluate_subexp_standard): Remove unnecessary
78 variables.
79
80 2020-11-25 Tom Tromey <tom@tromey.com>
81
82 * d-lang.c: Include parser-defs.h.
83 * rust-lang.c: Include parser-defs.h.
84 * c-lang.h: Do not include parser-defs.h.
85
86 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * regcache.h (struct cached_reg): Remove typedef.
89
90 2020-11-24 Joel Brobecker <brobecker@adacore.com>
91
92 * README: Fix the URL of the MPFR library.
93
94 2020-11-24 Joel Brobecker <brobecker@adacore.com>
95
96 * README: Document the --with-libgmp-prefix configure option.
97
98 2020-11-24 Joel Brobecker <brobecker@adacore.com>
99
100 * NEWS: Add entry documenting support for DWARF-based fixed
101 point types.
102
103 2020-11-24 Joel Brobecker <brobecker@adacore.com>
104
105 * NEWS: Document that building GDB now requires GMP.
106
107 2020-11-24 Joel Brobecker <brobecker@adacore.com>
108
109 * typeprint.c (print_type_scalar): Add handling of
110 TYPE_CODE_FIXED_POINT.
111
112 2020-11-24 Joel Brobecker <brobecker@adacore.com>
113
114 * valarith.c (fixed_point_binop): Replace the
115 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
116 users accordingly.
117
118 2020-11-24 Joel Brobecker <brobecker@adacore.com>
119
120 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
121 replacing fixed_point_scaling_factor. All callers updated
122 throughout this project.
123 (fixed_point_scaling_factor): Delete declaration.
124 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
125 fixed_point_scaling_factor. Adjust implementation accordingly.
126
127 2020-11-24 Joel Brobecker <brobecker@adacore.com>
128
129 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
130 replacing the fixed_point_type_base_type function. All callers
131 updated throughout this project.
132 (fixed_point_type_base_type): Remove declaration.
133 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
134 fixed_point_type_base_type. Adjust implementation accordingly.
135
136 2020-11-24 Joel Brobecker <brobecker@adacore.com>
137
138 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
139 New methods.
140 (INIT_FIXED_POINT_SPECIFIC): Adjust.
141 (TYPE_FIXED_POINT_INFO): Delete macro.
142 (allocate_fixed_point_type_info): Change return type to void.
143 * gdbtypes.c (copy_type_recursive): Replace the use of
144 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
145 (fixed_point_scaling_factor): Likewise.
146 (allocate_fixed_point_type_info): Change return type to void.
147 Adjust implementation accordingly.
148 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
149 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
150
151 2020-11-24 Joel Brobecker <brobecker@adacore.com>
152
153 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
154 into one single gdb::array_view parameter.
155 (gdb_mpz::write): Likewise.
156 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
157 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
158 into one single gdb::array_view parameter.
159 Adjust implementation accordingly.
160 (gdb_mpz::write): Likewise.
161 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
162 * unittests/gmp-utils-selftests.c: Adapt following changes above.
163 * valarith.c, valops.c, valprint.c, value.c: Likewise.
164
165 2020-11-24 Joel Brobecker <brobecker@adacore.com>
166
167 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
168 Change return type to std::string. Update all callers.
169 * gmp-utils.c (gmp_string_printf): Likewise.
170
171 2020-11-24 Joel Brobecker <brobecker@adacore.com>
172
173 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
174 instead of mpq_set_ui to initialize our GMP rational.
175
176 2020-11-23 Tom de Vries <tdevries@suse.de>
177
178 * debuginfod-support.c (debuginfod_source_query)
179 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
180
181 2020-11-21 Tom Tromey <tom@tromey.com>
182
183 * breakpoint.c (watchpoint_exp_is_const): Return bool.
184
185 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
188 Pass 2.0 to pow.
189 (gdb_mpz_write_all_from_small): Likewise.
190
191 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
194 of abs.
195
196 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
197
198 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
199 ctf_arc_open_by_name.
200
201 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
202
203 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
204 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
205
206 2020-11-20 Pedro Alves <pedro@palves.net>
207
208 * language.c (language_arch_info::lookup_primitive_type): Use
209 gdb::function_view instead of gdb::function.
210 (template language_lookup_primitive_type): Rename to ...
211 (language_lookup_primitive_type_1): ... this, and make static.
212 (language_lookup_primitive_type(const struct language_defn *,
213 struct gdbarch *, const char *): Make non-template.
214 (language_lookup_primitive_type(const struct language_defn *,
215 struct gdbarch *, std::function<bool (struct type *)>): Make
216 non-template and use gdb::function_view.
217 * language.h (language_arch_info::lookup_primitive_type): Use
218 gdb::function_view instead of std::function.
219 (language_lookup_primitive_type): No longer template.
220 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
221 lambda instead of a std::function.
222
223 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
224
225 PR tdep/26916
226 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
227 and STOCFH.
228
229 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
232
233 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
236 in `loop_cb` parameter.
237 * gdbarch.c: Re-generate.
238 * gdbarch.h: Re-generate.
239 * arch-utils.c (default_read_core_file_mappings): Remove `other`
240 parameter.
241 * arch-utils.h (default_read_core_file_mappings): Likewise.
242 * corelow.c (core_target::build_file_mappings): Likewise.
243 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
244 (linux_core_info_proc_mappings): Likewise.
245
246 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
249 * NEWS: Mention new options.
250 * f-array-walker.h: New file.
251 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
252 (repack_array_slices): New static global.
253 (show_repack_array_slices): New function.
254 (fortran_array_slicing_debug): New static global.
255 (show_fortran_array_slicing_debug): New function.
256 (value_f90_subarray): Delete.
257 (skip_undetermined_arglist): Delete.
258 (class fortran_array_repacker_base_impl): New class.
259 (class fortran_lazy_array_repacker_impl): New class.
260 (class fortran_array_repacker_impl): New class.
261 (fortran_value_subarray): Complete rewrite.
262 (set_fortran_list): New static global.
263 (show_fortran_list): Likewise.
264 (_initialize_f_language): Register new commands.
265 (fortran_adjust_dynamic_array_base_address_hack): New function.
266 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
267 Declare.
268 * f-valprint.c: Include 'f-array-walker.h'.
269 (class fortran_array_printer_impl): New class.
270 (f77_print_array_1): Delete.
271 (f77_print_array): Delete.
272 (fortran_print_array): New.
273 (f_value_print_inner): Update to call fortran_print_array.
274 * gdbtypes.c: Include 'f-lang.h'.
275 (resolve_dynamic_type_internal): Call
276 fortran_adjust_dynamic_array_base_address_hack.
277
278 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * breakpoint.c (struct watch_options): New struct.
281 (watch_option_defs): New static global.
282 (make_watch_options_def_group): New function.
283 (watch_maybe_just_location): Convert option parsing.
284 (watch_command_completer): New function.
285 (_initialize_breakpoint): Build help text using options mechanism.
286
287 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
290 (watch_command_1): Update parameter types. Convert locals to
291 bool.
292 (watch_command_wrapper): Change parameter type.
293 (watch_maybe_just_location): Change locals to bool.
294 (rwatch_command_wrapper): Update parameter type.
295 (awatch_command_wrapper): Update parameter type.
296 * breakpoint.h (watch_command_wrapper): Change parameter type.
297 (rwatch_command_wrapper): Update parameter type.
298 (awatch_command_wrapper): Update parameter type.
299 * eval.c (fetch_subexp_value): Change parameter type.
300 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
301 'false' not '0'.
302 * value.h (fetch_subexp_value): Change parameter type in
303 declaration.
304
305 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
308 skip_spaces.
309
310 2020-11-18 Keith Seitz <keiths@redhat.com>
311
312 * linux-tdep.c (dump_note_entry_p): Return true instead of
313 checking `filename'.
314
315 2020-11-18 Tom de Vries <tdevries@suse.de>
316
317 * debuginfod-support.c (debuginfod_source_query)
318 (debuginfod_debuginfo_query): Also do early exit if
319 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
320
321 2020-11-18 Tom de Vries <tdevries@suse.de>
322
323 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
324 warning.
325
326 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * gdbtypes.h (get_array_bounds): Return bool, adjust some
329 callers. Move doc here.
330 * gdbtypes.c (get_array_bounds): Return bool
331
332 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
335 assert.
336 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
337 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
338 case to the default.
339
340 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * printcmd.c: Include 'safe-ctype.c'.
343 (skip_over_slash_fmt): New function.
344 (print_command_completer): Call skip_over_slash_fmt.
345 (display_and_x_command_completer): New function.
346 (_initialize_printcmd): Add command completion for 'x' and
347 'display'.
348
349 2020-11-16 Pedro Alves <pedro@palves.net>
350
351 * frame.c (get_prev_frame): Move get_frame_id call from here ...
352 (get_prev_frame_always_1): ... to here.
353 * inline-frame.c (inline_frame_this_id): Mention
354 get_prev_frame_always_1 in comment.
355
356 2020-11-15 Joel Brobecker <brobecker@adacore.com>
357
358 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
359 handling.
360 (value_less): Add fixed-point handling.
361
362 2020-11-15 Joel Brobecker <brobecker@adacore.com>
363
364 * eval.c (binop_promote): Add fixed-point type handling.
365 * valarith.c (fixed_point_binop): New function.
366 (scalar_binop): Add fixed-point type handling.
367 (value_neg): Add fixed-point type handling.
368 * valops.c (value_cast_to_fixed_point): New function.
369 (value_cast): Add fixed-point type handling.
370
371 2020-11-15 Joel Brobecker <brobecker@adacore.com>
372
373 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
374 range types.
375 * c-typeprint.c (c_type_print_varspec_prefix)
376 (c_type_print_varspec_suffix, c_type_print_base_1): Add
377 TYPE_CODE_FIXED_POINT handling.
378 * p-typeprint.c (pascal_type_print_varspec_prefix)
379 (pascal_type_print_varspec_suffix): Likewise.
380 * typeprint.c (print_type_fixed_point): New function.
381 * typeprint.h (print_type_fixed_point): Add declaration.
382
383 2020-11-15 Joel Brobecker <brobecker@adacore.com>
384
385 * printcmd.c (print_scalar_formatted): Add fixed-point type
386 handling when options->format is set.
387
388 2020-11-15 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
391 * dwarf2/read.c (get_dwarf2_rational_constant)
392 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
393 (has_zero_over_zero_small_attribute): New functions.
394 read_base_type, set_die_type): Add fixed-point type handling.
395 * gdb-gdb.py.in: Add fixed-point type handling.
396 * gdbtypes.c: #include "gmp-utils.h".
397 (create_range_type, set_type_code): Add fixed-point type handling.
398 (init_fixed_point_type): New function.
399 (is_integral_type, is_scalar_type): Add fixed-point type handling.
400 (print_fixed_point_type_info): New function.
401 (recursive_dump_type, copy_type_recursive): Add fixed-point type
402 handling.
403 (fixed_point_type_storage): New typedef.
404 (fixed_point_objfile_key): New static global.
405 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
406 (fixed_point_type_base_type, fixed_point_scaling_factor): New
407 functions.
408 * gdbtypes.h: #include "gmp-utils.h".
409 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
410 (union type_specific) <fixed_point_info>: New field.
411 (struct fixed_point_type_info): New struct.
412 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
413 (init_fixed_point_type, is_fixed_point_type)
414 (fixed_point_type_base_type, fixed_point_scaling_factor)
415 (allocate_fixed_point_type_info): Add declarations.
416 * valprint.c (generic_val_print_fixed_point): New function.
417 (generic_value_print): Add fixed-point type handling.
418 * value.c (value_as_address, unpack_long): Add fixed-point type
419 handling.
420
421 2020-11-15 Joel Brobecker <brobecker@adacore.com>
422
423 * utils.h (uinteger_pow): Add declaration.
424 * utils.c (uinteger_pow): Moved here (without changes)...
425 * valarith.c (uinteger_pow): ... from here.
426
427 2020-11-15 Joel Brobecker <brobecker@adacore.com>
428
429 * gmp-utils.h, gmp-utils.c: New file.
430 * unittests/gmp-utils-selftests.c: New file.
431 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
432 unittests/gmp-utils-selftests.c.
433 (COMMON_SFILES) Add gmp-utils.c.
434 (HFILES_NO_SRCDIR): Add gmp-utils.h.
435
436 2020-11-15 Joel Brobecker <brobecker@adacore.com>
437
438 * configure.ac: Generate an error if a usable GMP library
439 could not be found.
440 * configure: Regenerate.
441
442 2020-11-15 Joel Brobecker <brobecker@adacore.com>
443
444 * configure.ac: Add support for --with-libgmp-prefix.
445 * Makefile.in (LIBGMP): New variable.
446 (CLIBS): Include $(LIBGMP).
447 * configure, config.in: Regenerate
448
449 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 PR cli/26879
452 * f-exp.y (COMPLETE): New token.
453 (exp): Two new rules for tab-completion.
454 (saw_name_at_eof): New static global.
455 (last_was_structop): Likewise.
456 (yylex): Set new variables, and return COMPLETE token at the end
457 of the input stream in some cases.
458
459 2020-11-14 Tom Tromey <tom@tromey.com>
460
461 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
462
463 2020-11-14 Tom Tromey <tom@tromey.com>
464
465 * opencl-lang.c (opencl_component_ref): Make "comps" const.
466
467 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
470
471 2020-11-13 Tom Tromey <tom@tromey.com>
472
473 * c-lang.c (convert_ucn, convert_octal, convert_hex)
474 (convert_escape, parse_one_string): Constify.
475
476 2020-11-13 Keith Seitz <keiths@redhat.com>
477
478 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
479 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
480 outside of ELF segments" warning for debugin
481
482 2020-11-13 Keith Seitz <keiths@redhat.com>
483
484 PR gdb/23034
485 * elfread.c (elf_symfile_segments): Output a BFD file name
486 for the "Loadable section ... outside of ELF segments" warning.
487
488 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
489
490 PR gdb/26835
491 * arm-tdep.c (class arm_instruction_reader): New.
492 (target_arm_instruction_reader): New.
493 (arm_analyze_prologue): Add instruction reader parameter and use
494 it. Use arm_expand_immediate.
495 (class target_arm_instruction_reader): Adjust.
496 (arm_skip_prologue): Adjust.
497 (arm_expand_immediate): New.
498 (arm_scan_prologue): Adjust.
499 (arm_analyze_prologue_test): New.
500 (class test_arm_instruction_reader): New.
501
502 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * f-lang.c (fortran_argument_convert): Add declaration. Add
505 header comment, taken from f-lang.h. Make static.
506 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
507 (fortran_argument_convert): Delete declaration.
508
509 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * ada-exp.y (find_primitive_type): Make parameter const.
512 * ada-lang.c (enum ada_primitive_types): Delete.
513 (ada_language::language_arch_info): Update.
514 * c-lang.c (enum c_primitive_types): Delete.
515 (c_language_arch_info): Update.
516 (enum cplus_primitive_types): Delete.
517 (cplus_language::language_arch_info): Update.
518 * d-lang.c (enum d_primitive_types): Delete.
519 (d_language::language_arch_info): Update.
520 * f-lang.c (enum f_primitive_types): Delete.
521 (f_language::language_arch_info): Update.
522 * go-lang.c (enum go_primitive_types): Delete.
523 (go_language::language_arch_info): Update.
524 * language.c (auto_or_unknown_language::language_arch_info):
525 Update.
526 (language_gdbarch_post_init): Use obstack_new, use array indexing.
527 (language_string_char_type): Add header comment, call function in
528 language_arch_info.
529 (language_bool_type): Likewise
530 (language_arch_info::bool_type): Define.
531 (language_lookup_primitive_type_1): Delete.
532 (language_lookup_primitive_type): Rewrite as a templated function
533 to call function in language_arch_info, then instantiate twice.
534 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
535 (language_arch_info::lookup_primitive_type_and_symbol): Define.
536 (language_arch_info::lookup_primitive_type): Define twice with
537 different signatures.
538 (language_arch_info::lookup_primitive_type_as_symbol): Define.
539 (language_lookup_primitive_type_as_symbol): Rewrite to call a
540 member function in language_arch_info.
541 * language.h (language_arch_info): Complete rewrite.
542 (language_lookup_primitive_type): Make templated.
543 * m2-lang.c (enum m2_primitive_types): Delete.
544 (m2_language::language_arch_info): Update.
545 * opencl-lang.c (OCL_P_TYPE): Delete.
546 (enum opencl_primitive_types): Delete.
547 (opencl_type_data): Delete.
548 (builtin_opencl_type): Delete.
549 (lookup_opencl_vector_type): Update.
550 (opencl_language::language_arch_info): Update, lots of content
551 moved from...
552 (build_opencl_types): ...here. This function is now deleted.
553 (_initialize_opencl_language): Delete.
554 * p-lang.c (enum pascal_primitive_types): Delete.
555 (pascal_language::language_arch_info): Update.
556 * rust-lang.c (enum rust_primitive_types): Delete.
557 (rust_language::language_arch_info): Update.
558
559 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
562 dwarf2_queue_guard.
563
564 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
567 comment.
568
569 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * dwarf2/read.c (dwarf_read_debug_printf,
572 dwarf_read_debug_printf_v): New macros, use throughout the file.
573
574 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
575
576 * arc-linux-tdep.c (collect_register): Populate "eret" by
577 "pc" value from the regcache when asked for "pc" value.
578
579 2020-11-12 Tom Tromey <tom@tromey.com>
580
581 PR rust/26799:
582 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
583 exist.
584
585 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * features/Makefile (XMLTOC): Add rx.xml.
588 (FEATURE_XMLFILES): Remove rx.xml.
589 (FEATURE_CFILES rule): Pass '-single-feature' flag.
590 * features/rx.c: Regenerate.
591 * features/rx.xml: Wrap in `target` tags, and reindent.
592 * target-descriptions.c (struct maint_print_c_tdesc_options): New
593 structure.
594 (maint_print_c_tdesc_opt_def): New typedef.
595 (maint_print_c_tdesc_opt_defs): New static global.
596 (make_maint_print_c_tdesc_options_def_group): New function.
597 (maint_print_c_tdesc_cmd): Make use of command line flags, only
598 print single feature C file for target descriptions containing a
599 single feature.
600 (maint_print_c_tdesc_cmd_completer): New function.
601 (_initialize_target_descriptions): Update call to register command
602 completer, and include command line flag in help text.
603
604 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
607 numbers.
608 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
609 enum values.
610
611 2020-11-10 Tom Tromey <tom@tromey.com>
612
613 * value.h (internalvar_name): Update.
614 * value.c (internalvar_name): Make return type const.
615
616 2020-11-10 Tom Tromey <tom@tromey.com>
617
618 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
619 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
620 const.
621
622 2020-11-10 Tom Tromey <tom@tromey.com>
623
624 * objc-lang.h (value_nsstring): Update.
625 * objc-lang.c (value_nsstring): Make "ptr" const.
626
627 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
628
629 * expprint.c (print_subexp_funcall): Increment expression position
630 after reading argument count.
631 * f-lang.c (print_subexp_f): Skip over opcode before calling
632 common function.
633 (dump_subexp_body_f): Likewise.
634
635 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
636
637 PR python/26832
638 * configure: Regenerate.
639 * configure.ac: Check for python modules ctypes instead of
640 itertools.
641
642 2020-11-06 Pedro Alves <pedro@palves.net>
643
644 * macroexp.c (struct macro_buffer): Split in two classes. Add
645 uses adjusted.
646 (struct shared_macro_buffer): New, factored out from struct
647 macro_buffer.
648 (struct growable_macro_buffer): New, factored out from struct
649 macro_buffer.
650 (set_token, get_comment, get_identifier, get_pp_number)
651 (get_character_constant, get_string_literal, get_punctuator)
652 (get_next_token_for_substitution): Constify parameters.
653 (substitute_args): Constify locals.
654
655 2020-11-05 Tom Tromey <tom@tromey.com>
656
657 * dwarf2/read.c (read_cutu_die_from_dwo)
658 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
659 (build_type_psymtabs_1): Update.
660 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
661 parameter.
662 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
663 Don't read section. Add assert.
664
665 2020-11-04 Tom Tromey <tromey@adacore.com>
666
667 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
668
669 2020-11-04 Tom Tromey <tromey@adacore.com>
670
671 * ada-typeprint.c (ada_print_type): Handle __T types.
672
673 2020-11-04 Tom Tromey <tromey@adacore.com>
674
675 * dwarf2/read.c (add_partial_symbol, process_die):
676 Handle DW_TAG_array_type.
677 (is_type_tag_for_partial): Add "lang" parameter.
678 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
679
680 2020-11-04 Tom Tromey <tromey@adacore.com>
681
682 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
683
684 2020-11-04 Tom Tromey <tromey@adacore.com>
685
686 * dwarf2/read.c (read_array_type): Only apply stride to innermost
687 array.
688
689 2020-11-04 Tom Tromey <tromey@adacore.com>
690
691 * gdbtypes.c (update_static_array_size): Handle bit stride.
692
693 2020-11-04 Tom Tromey <tromey@adacore.com>
694
695 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
696
697 2020-11-04 Tom Tromey <tromey@adacore.com>
698
699 * ada-lang.c (ada_is_any_packed_array_type): New function.
700 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
701
702 2020-11-04 Tom Tromey <tromey@adacore.com>
703
704 * dwarf2/read.c (recognize_bound_expression)
705 (quirk_ada_thick_pointer): New functions.
706 (read_array_type): Call quirk_ada_thick_pointer.
707 (set_die_type): Add "skip_data_location" parameter.
708 (quirk_ada_thick_pointer): New function.
709 (process_structure_scope): Call quirk_ada_thick_pointer.
710 * ada-lang.c (ada_is_unconstrained_packed_array_type)
711 (decode_packed_array_bitsize): Handle thick pointers without
712 parallel types.
713 (ada_is_gnat_encoded_packed_array_type): Rename from
714 ada_is_packed_array_type.
715 (ada_is_constrained_packed_array_type): Update.
716 * ada-valprint.c (ada_val_print_gnat_array): Remove.
717 (ada_value_print_1): Use ada_get_decoded_value.
718
719 2020-11-04 Tom Tromey <tromey@adacore.com>
720
721 * ada-lang.c (recursively_update_array_bitsize): New function.
722 (decode_constrained_packed_array_type): Call it.
723
724 2020-11-04 Tom Tromey <tromey@adacore.com>
725
726 * ada-lang.c (to_fixed_array_type): Error if
727 decode_constrained_packed_array_type returns NULL.
728
729 2020-11-04 Tom Tromey <tromey@adacore.com>
730
731 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
732
733 2020-11-02 Tom Tromey <tromey@adacore.com>
734
735 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
736 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
737 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
738 * amd64-ravenscar-thread.c: New file.
739 * amd64-ravenscar-thread.h: New file.
740 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
741 * configure.tgt (amd64_tobjs): Add ravenscar objects.
742
743 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * main.c (execute_cmdargs): New function.
746 (captured_main_1): Make use of execute_cmdargs.
747
748 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
749
750 * NEWS: Mention changes to config file search path.
751 * main.c
752
753 2020-11-02 Tom Tromey <tromey@adacore.com>
754
755 * python/python.c: Consolidate two HAVE_PYTHON blocks.
756 (python_GdbModuleDef): Move earlier. Now static.
757 (do_start_initialization): Consolidate some IS_PY3K blocks.
758
759 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
760
761 * aarch64-linux-tdep.c: Fix indentation.
762 * aarch64-ravenscar-thread.c: Fix indentation.
763 * aarch64-tdep.c: Fix indentation.
764 * aarch64-tdep.h: Fix indentation.
765 * ada-lang.c: Fix indentation.
766 * ada-lang.h: Fix indentation.
767 * ada-tasks.c: Fix indentation.
768 * ada-typeprint.c: Fix indentation.
769 * ada-valprint.c: Fix indentation.
770 * ada-varobj.c: Fix indentation.
771 * addrmap.c: Fix indentation.
772 * addrmap.h: Fix indentation.
773 * agent.c: Fix indentation.
774 * aix-thread.c: Fix indentation.
775 * alpha-bsd-nat.c: Fix indentation.
776 * alpha-linux-tdep.c: Fix indentation.
777 * alpha-mdebug-tdep.c: Fix indentation.
778 * alpha-nbsd-tdep.c: Fix indentation.
779 * alpha-obsd-tdep.c: Fix indentation.
780 * alpha-tdep.c: Fix indentation.
781 * amd64-bsd-nat.c: Fix indentation.
782 * amd64-darwin-tdep.c: Fix indentation.
783 * amd64-linux-nat.c: Fix indentation.
784 * amd64-linux-tdep.c: Fix indentation.
785 * amd64-nat.c: Fix indentation.
786 * amd64-obsd-tdep.c: Fix indentation.
787 * amd64-tdep.c: Fix indentation.
788 * amd64-windows-tdep.c: Fix indentation.
789 * annotate.c: Fix indentation.
790 * arc-tdep.c: Fix indentation.
791 * arch-utils.c: Fix indentation.
792 * arch/arm-get-next-pcs.c: Fix indentation.
793 * arch/arm.c: Fix indentation.
794 * arm-linux-nat.c: Fix indentation.
795 * arm-linux-tdep.c: Fix indentation.
796 * arm-nbsd-tdep.c: Fix indentation.
797 * arm-pikeos-tdep.c: Fix indentation.
798 * arm-tdep.c: Fix indentation.
799 * arm-tdep.h: Fix indentation.
800 * arm-wince-tdep.c: Fix indentation.
801 * auto-load.c: Fix indentation.
802 * auxv.c: Fix indentation.
803 * avr-tdep.c: Fix indentation.
804 * ax-gdb.c: Fix indentation.
805 * ax-general.c: Fix indentation.
806 * bfin-linux-tdep.c: Fix indentation.
807 * block.c: Fix indentation.
808 * block.h: Fix indentation.
809 * blockframe.c: Fix indentation.
810 * bpf-tdep.c: Fix indentation.
811 * break-catch-sig.c: Fix indentation.
812 * break-catch-syscall.c: Fix indentation.
813 * break-catch-throw.c: Fix indentation.
814 * breakpoint.c: Fix indentation.
815 * breakpoint.h: Fix indentation.
816 * bsd-uthread.c: Fix indentation.
817 * btrace.c: Fix indentation.
818 * build-id.c: Fix indentation.
819 * buildsym-legacy.h: Fix indentation.
820 * buildsym.c: Fix indentation.
821 * c-typeprint.c: Fix indentation.
822 * c-valprint.c: Fix indentation.
823 * c-varobj.c: Fix indentation.
824 * charset.c: Fix indentation.
825 * cli/cli-cmds.c: Fix indentation.
826 * cli/cli-decode.c: Fix indentation.
827 * cli/cli-decode.h: Fix indentation.
828 * cli/cli-script.c: Fix indentation.
829 * cli/cli-setshow.c: Fix indentation.
830 * coff-pe-read.c: Fix indentation.
831 * coffread.c: Fix indentation.
832 * compile/compile-cplus-types.c: Fix indentation.
833 * compile/compile-object-load.c: Fix indentation.
834 * compile/compile-object-run.c: Fix indentation.
835 * completer.c: Fix indentation.
836 * corefile.c: Fix indentation.
837 * corelow.c: Fix indentation.
838 * cp-abi.h: Fix indentation.
839 * cp-namespace.c: Fix indentation.
840 * cp-support.c: Fix indentation.
841 * cp-valprint.c: Fix indentation.
842 * cris-linux-tdep.c: Fix indentation.
843 * cris-tdep.c: Fix indentation.
844 * darwin-nat-info.c: Fix indentation.
845 * darwin-nat.c: Fix indentation.
846 * darwin-nat.h: Fix indentation.
847 * dbxread.c: Fix indentation.
848 * dcache.c: Fix indentation.
849 * disasm.c: Fix indentation.
850 * dtrace-probe.c: Fix indentation.
851 * dwarf2/abbrev.c: Fix indentation.
852 * dwarf2/attribute.c: Fix indentation.
853 * dwarf2/expr.c: Fix indentation.
854 * dwarf2/frame.c: Fix indentation.
855 * dwarf2/index-cache.c: Fix indentation.
856 * dwarf2/index-write.c: Fix indentation.
857 * dwarf2/line-header.c: Fix indentation.
858 * dwarf2/loc.c: Fix indentation.
859 * dwarf2/macro.c: Fix indentation.
860 * dwarf2/read.c: Fix indentation.
861 * dwarf2/read.h: Fix indentation.
862 * elfread.c: Fix indentation.
863 * eval.c: Fix indentation.
864 * event-top.c: Fix indentation.
865 * exec.c: Fix indentation.
866 * exec.h: Fix indentation.
867 * expprint.c: Fix indentation.
868 * f-lang.c: Fix indentation.
869 * f-typeprint.c: Fix indentation.
870 * f-valprint.c: Fix indentation.
871 * fbsd-nat.c: Fix indentation.
872 * fbsd-tdep.c: Fix indentation.
873 * findvar.c: Fix indentation.
874 * fork-child.c: Fix indentation.
875 * frame-unwind.c: Fix indentation.
876 * frame-unwind.h: Fix indentation.
877 * frame.c: Fix indentation.
878 * frv-linux-tdep.c: Fix indentation.
879 * frv-tdep.c: Fix indentation.
880 * frv-tdep.h: Fix indentation.
881 * ft32-tdep.c: Fix indentation.
882 * gcore.c: Fix indentation.
883 * gdb_bfd.c: Fix indentation.
884 * gdbarch.sh: Fix indentation.
885 * gdbarch.c: Re-generate
886 * gdbarch.h: Re-generate.
887 * gdbcore.h: Fix indentation.
888 * gdbthread.h: Fix indentation.
889 * gdbtypes.c: Fix indentation.
890 * gdbtypes.h: Fix indentation.
891 * glibc-tdep.c: Fix indentation.
892 * gnu-nat.c: Fix indentation.
893 * gnu-nat.h: Fix indentation.
894 * gnu-v2-abi.c: Fix indentation.
895 * gnu-v3-abi.c: Fix indentation.
896 * go32-nat.c: Fix indentation.
897 * guile/guile-internal.h: Fix indentation.
898 * guile/scm-cmd.c: Fix indentation.
899 * guile/scm-frame.c: Fix indentation.
900 * guile/scm-iterator.c: Fix indentation.
901 * guile/scm-math.c: Fix indentation.
902 * guile/scm-ports.c: Fix indentation.
903 * guile/scm-pretty-print.c: Fix indentation.
904 * guile/scm-value.c: Fix indentation.
905 * h8300-tdep.c: Fix indentation.
906 * hppa-linux-nat.c: Fix indentation.
907 * hppa-linux-tdep.c: Fix indentation.
908 * hppa-nbsd-nat.c: Fix indentation.
909 * hppa-nbsd-tdep.c: Fix indentation.
910 * hppa-obsd-nat.c: Fix indentation.
911 * hppa-tdep.c: Fix indentation.
912 * hppa-tdep.h: Fix indentation.
913 * i386-bsd-nat.c: Fix indentation.
914 * i386-darwin-nat.c: Fix indentation.
915 * i386-darwin-tdep.c: Fix indentation.
916 * i386-dicos-tdep.c: Fix indentation.
917 * i386-gnu-nat.c: Fix indentation.
918 * i386-linux-nat.c: Fix indentation.
919 * i386-linux-tdep.c: Fix indentation.
920 * i386-nto-tdep.c: Fix indentation.
921 * i386-obsd-tdep.c: Fix indentation.
922 * i386-sol2-nat.c: Fix indentation.
923 * i386-tdep.c: Fix indentation.
924 * i386-tdep.h: Fix indentation.
925 * i386-windows-tdep.c: Fix indentation.
926 * i387-tdep.c: Fix indentation.
927 * i387-tdep.h: Fix indentation.
928 * ia64-libunwind-tdep.c: Fix indentation.
929 * ia64-libunwind-tdep.h: Fix indentation.
930 * ia64-linux-nat.c: Fix indentation.
931 * ia64-linux-tdep.c: Fix indentation.
932 * ia64-tdep.c: Fix indentation.
933 * ia64-tdep.h: Fix indentation.
934 * ia64-vms-tdep.c: Fix indentation.
935 * infcall.c: Fix indentation.
936 * infcmd.c: Fix indentation.
937 * inferior.c: Fix indentation.
938 * infrun.c: Fix indentation.
939 * iq2000-tdep.c: Fix indentation.
940 * language.c: Fix indentation.
941 * linespec.c: Fix indentation.
942 * linux-fork.c: Fix indentation.
943 * linux-nat.c: Fix indentation.
944 * linux-tdep.c: Fix indentation.
945 * linux-thread-db.c: Fix indentation.
946 * lm32-tdep.c: Fix indentation.
947 * m2-lang.c: Fix indentation.
948 * m2-typeprint.c: Fix indentation.
949 * m2-valprint.c: Fix indentation.
950 * m32c-tdep.c: Fix indentation.
951 * m32r-linux-tdep.c: Fix indentation.
952 * m32r-tdep.c: Fix indentation.
953 * m68hc11-tdep.c: Fix indentation.
954 * m68k-bsd-nat.c: Fix indentation.
955 * m68k-linux-nat.c: Fix indentation.
956 * m68k-linux-tdep.c: Fix indentation.
957 * m68k-tdep.c: Fix indentation.
958 * machoread.c: Fix indentation.
959 * macrocmd.c: Fix indentation.
960 * macroexp.c: Fix indentation.
961 * macroscope.c: Fix indentation.
962 * macrotab.c: Fix indentation.
963 * macrotab.h: Fix indentation.
964 * main.c: Fix indentation.
965 * mdebugread.c: Fix indentation.
966 * mep-tdep.c: Fix indentation.
967 * mi/mi-cmd-catch.c: Fix indentation.
968 * mi/mi-cmd-disas.c: Fix indentation.
969 * mi/mi-cmd-env.c: Fix indentation.
970 * mi/mi-cmd-stack.c: Fix indentation.
971 * mi/mi-cmd-var.c: Fix indentation.
972 * mi/mi-cmds.c: Fix indentation.
973 * mi/mi-main.c: Fix indentation.
974 * mi/mi-parse.c: Fix indentation.
975 * microblaze-tdep.c: Fix indentation.
976 * minidebug.c: Fix indentation.
977 * minsyms.c: Fix indentation.
978 * mips-linux-nat.c: Fix indentation.
979 * mips-linux-tdep.c: Fix indentation.
980 * mips-nbsd-tdep.c: Fix indentation.
981 * mips-tdep.c: Fix indentation.
982 * mn10300-linux-tdep.c: Fix indentation.
983 * mn10300-tdep.c: Fix indentation.
984 * moxie-tdep.c: Fix indentation.
985 * msp430-tdep.c: Fix indentation.
986 * namespace.h: Fix indentation.
987 * nat/fork-inferior.c: Fix indentation.
988 * nat/gdb_ptrace.h: Fix indentation.
989 * nat/linux-namespaces.c: Fix indentation.
990 * nat/linux-osdata.c: Fix indentation.
991 * nat/netbsd-nat.c: Fix indentation.
992 * nat/x86-dregs.c: Fix indentation.
993 * nbsd-nat.c: Fix indentation.
994 * nbsd-tdep.c: Fix indentation.
995 * nios2-linux-tdep.c: Fix indentation.
996 * nios2-tdep.c: Fix indentation.
997 * nto-procfs.c: Fix indentation.
998 * nto-tdep.c: Fix indentation.
999 * objfiles.c: Fix indentation.
1000 * objfiles.h: Fix indentation.
1001 * opencl-lang.c: Fix indentation.
1002 * or1k-tdep.c: Fix indentation.
1003 * osabi.c: Fix indentation.
1004 * osabi.h: Fix indentation.
1005 * osdata.c: Fix indentation.
1006 * p-lang.c: Fix indentation.
1007 * p-typeprint.c: Fix indentation.
1008 * p-valprint.c: Fix indentation.
1009 * parse.c: Fix indentation.
1010 * ppc-linux-nat.c: Fix indentation.
1011 * ppc-linux-tdep.c: Fix indentation.
1012 * ppc-nbsd-nat.c: Fix indentation.
1013 * ppc-nbsd-tdep.c: Fix indentation.
1014 * ppc-obsd-nat.c: Fix indentation.
1015 * ppc-ravenscar-thread.c: Fix indentation.
1016 * ppc-sysv-tdep.c: Fix indentation.
1017 * ppc64-tdep.c: Fix indentation.
1018 * printcmd.c: Fix indentation.
1019 * proc-api.c: Fix indentation.
1020 * producer.c: Fix indentation.
1021 * producer.h: Fix indentation.
1022 * prologue-value.c: Fix indentation.
1023 * prologue-value.h: Fix indentation.
1024 * psymtab.c: Fix indentation.
1025 * python/py-arch.c: Fix indentation.
1026 * python/py-bpevent.c: Fix indentation.
1027 * python/py-event.c: Fix indentation.
1028 * python/py-event.h: Fix indentation.
1029 * python/py-finishbreakpoint.c: Fix indentation.
1030 * python/py-frame.c: Fix indentation.
1031 * python/py-framefilter.c: Fix indentation.
1032 * python/py-inferior.c: Fix indentation.
1033 * python/py-infthread.c: Fix indentation.
1034 * python/py-objfile.c: Fix indentation.
1035 * python/py-prettyprint.c: Fix indentation.
1036 * python/py-registers.c: Fix indentation.
1037 * python/py-signalevent.c: Fix indentation.
1038 * python/py-stopevent.c: Fix indentation.
1039 * python/py-stopevent.h: Fix indentation.
1040 * python/py-threadevent.c: Fix indentation.
1041 * python/py-tui.c: Fix indentation.
1042 * python/py-unwind.c: Fix indentation.
1043 * python/py-value.c: Fix indentation.
1044 * python/py-xmethods.c: Fix indentation.
1045 * python/python-internal.h: Fix indentation.
1046 * python/python.c: Fix indentation.
1047 * ravenscar-thread.c: Fix indentation.
1048 * record-btrace.c: Fix indentation.
1049 * record-full.c: Fix indentation.
1050 * record.c: Fix indentation.
1051 * reggroups.c: Fix indentation.
1052 * regset.h: Fix indentation.
1053 * remote-fileio.c: Fix indentation.
1054 * remote.c: Fix indentation.
1055 * reverse.c: Fix indentation.
1056 * riscv-linux-tdep.c: Fix indentation.
1057 * riscv-ravenscar-thread.c: Fix indentation.
1058 * riscv-tdep.c: Fix indentation.
1059 * rl78-tdep.c: Fix indentation.
1060 * rs6000-aix-tdep.c: Fix indentation.
1061 * rs6000-lynx178-tdep.c: Fix indentation.
1062 * rs6000-nat.c: Fix indentation.
1063 * rs6000-tdep.c: Fix indentation.
1064 * rust-lang.c: Fix indentation.
1065 * rx-tdep.c: Fix indentation.
1066 * s12z-tdep.c: Fix indentation.
1067 * s390-linux-tdep.c: Fix indentation.
1068 * score-tdep.c: Fix indentation.
1069 * ser-base.c: Fix indentation.
1070 * ser-mingw.c: Fix indentation.
1071 * ser-uds.c: Fix indentation.
1072 * ser-unix.c: Fix indentation.
1073 * serial.c: Fix indentation.
1074 * sh-linux-tdep.c: Fix indentation.
1075 * sh-nbsd-tdep.c: Fix indentation.
1076 * sh-tdep.c: Fix indentation.
1077 * skip.c: Fix indentation.
1078 * sol-thread.c: Fix indentation.
1079 * solib-aix.c: Fix indentation.
1080 * solib-darwin.c: Fix indentation.
1081 * solib-frv.c: Fix indentation.
1082 * solib-svr4.c: Fix indentation.
1083 * solib.c: Fix indentation.
1084 * source.c: Fix indentation.
1085 * sparc-linux-tdep.c: Fix indentation.
1086 * sparc-nbsd-tdep.c: Fix indentation.
1087 * sparc-obsd-tdep.c: Fix indentation.
1088 * sparc-ravenscar-thread.c: Fix indentation.
1089 * sparc-tdep.c: Fix indentation.
1090 * sparc64-linux-tdep.c: Fix indentation.
1091 * sparc64-nbsd-tdep.c: Fix indentation.
1092 * sparc64-obsd-tdep.c: Fix indentation.
1093 * sparc64-tdep.c: Fix indentation.
1094 * stabsread.c: Fix indentation.
1095 * stack.c: Fix indentation.
1096 * stap-probe.c: Fix indentation.
1097 * stubs/ia64vms-stub.c: Fix indentation.
1098 * stubs/m32r-stub.c: Fix indentation.
1099 * stubs/m68k-stub.c: Fix indentation.
1100 * stubs/sh-stub.c: Fix indentation.
1101 * stubs/sparc-stub.c: Fix indentation.
1102 * symfile-mem.c: Fix indentation.
1103 * symfile.c: Fix indentation.
1104 * symfile.h: Fix indentation.
1105 * symmisc.c: Fix indentation.
1106 * symtab.c: Fix indentation.
1107 * symtab.h: Fix indentation.
1108 * target-float.c: Fix indentation.
1109 * target.c: Fix indentation.
1110 * target.h: Fix indentation.
1111 * tic6x-tdep.c: Fix indentation.
1112 * tilegx-linux-tdep.c: Fix indentation.
1113 * tilegx-tdep.c: Fix indentation.
1114 * top.c: Fix indentation.
1115 * tracefile-tfile.c: Fix indentation.
1116 * tracepoint.c: Fix indentation.
1117 * tui/tui-disasm.c: Fix indentation.
1118 * tui/tui-io.c: Fix indentation.
1119 * tui/tui-regs.c: Fix indentation.
1120 * tui/tui-stack.c: Fix indentation.
1121 * tui/tui-win.c: Fix indentation.
1122 * tui/tui-winsource.c: Fix indentation.
1123 * tui/tui.c: Fix indentation.
1124 * typeprint.c: Fix indentation.
1125 * ui-out.h: Fix indentation.
1126 * unittests/copy_bitwise-selftests.c: Fix indentation.
1127 * unittests/memory-map-selftests.c: Fix indentation.
1128 * utils.c: Fix indentation.
1129 * v850-tdep.c: Fix indentation.
1130 * valarith.c: Fix indentation.
1131 * valops.c: Fix indentation.
1132 * valprint.c: Fix indentation.
1133 * valprint.h: Fix indentation.
1134 * value.c: Fix indentation.
1135 * value.h: Fix indentation.
1136 * varobj.c: Fix indentation.
1137 * vax-tdep.c: Fix indentation.
1138 * windows-nat.c: Fix indentation.
1139 * windows-tdep.c: Fix indentation.
1140 * xcoffread.c: Fix indentation.
1141 * xml-syscall.c: Fix indentation.
1142 * xml-tdesc.c: Fix indentation.
1143 * xstormy16-tdep.c: Fix indentation.
1144 * xtensa-config.c: Fix indentation.
1145 * xtensa-linux-nat.c: Fix indentation.
1146 * xtensa-linux-tdep.c: Fix indentation.
1147 * xtensa-tdep.c: Fix indentation.
1148
1149 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1150 Craig Blackmore <craig.blackmore@embecosm.com>
1151
1152 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1153 as an unsigned value.
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)
1159 (build_type_psymtabs_reader): Update.
1160 * xcoffread.c (xcoff_end_psymtab): Update.
1161 * ctfread.c (scan_partial_symbols): Update.
1162 * psymtab.c (sort_pst_symbols): Remove.
1163 (partial_symtab::end): Rename from end_psymtab_common. Inline
1164 sort_pst_symbols.
1165 * psympriv.h (struct partial_symtab) <end>: New method.
1166 (end_psymtab_common): Don't declare.
1167
1168 2020-11-01 Tom Tromey <tom@tromey.com>
1169
1170 * symmisc.c (count_psyms): New function.
1171 (print_objfile_statistics): Use it.
1172 * psymtab.c (append_psymbol_to_list): Remove.
1173 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1174 * objfiles.h (struct objstats) <n_psyms>: Remove.
1175
1176 2020-11-01 Tom Tromey <tom@tromey.com>
1177
1178 * dbxread.c (dbx_end_psymtab): Update.
1179 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1180 (build_type_psymtabs_reader): Update.
1181 * xcoffread.c (xcoff_end_psymtab): Update.
1182 * ctfread.c (scan_partial_symbols): Update.
1183 * psympriv.h (end_psymtab_common): Update.
1184 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1185 (sort_pst_symbols): Likewise.
1186
1187 2020-11-01 Tom Tromey <tom@tromey.com>
1188
1189 * dbxread.c (dbx_symfile_read): Update.
1190 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1191 * xcoffread.c (xcoff_initial_scan): Update.
1192 * psympriv.h (init_psymbol_list): Don't declare.
1193 * psymtab.c (init_psymbol_list): Remove.
1194
1195 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1196
1197 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1198 gnat_encoded_fixed_type_info. Update all callers.
1199
1200 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1201
1202 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1203 line too long.
1204
1205 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1206
1207 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1208 cast_from_fixed. Update all callers.
1209 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1210 Update all callers.
1211 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1212 Update all callers.
1213 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1214 ada_scaling_factor.
1215 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1216 to print_gnat_encoded_fixed_point_type.
1217 * ada-valprint.c: Likewise.
1218
1219 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1222 (debug_prefixed_printf): Add check of debug_displaced flag.
1223 * linux-nat.c (linux_nat_debug_printf): Add check of
1224 debug_linux_nat flag.
1225
1226 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * infrun.c (infrun_debug_printf_1): Remove.
1229 (displaced_debug_printf_1): Remove.
1230 (stop_all_threads): Use debug_prefixed_printf.
1231 * infrun.h (infrun_debug_printf_1): Remove.
1232 (infrun_debug_printf): Use debug_prefixed_printf.
1233 (displaced_debug_printf_1): Remove.
1234 (displaced_debug_printf): Use debug_prefixed_printf.
1235 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1236 (linux_nat_debug_printf): Use debug_prefixed_printf.
1237
1238 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * configure: Re-generate.
1241 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1242 AC_LANG_PROGRAM.
1243
1244 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * configure: Re-generate.
1247
1248 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1249
1250 * configure: Re-generate.
1251
1252 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * configure: Re-generate.
1255
1256 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * configure: Re-generate.
1259
1260 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * acinclude.m4: Modernize.
1263 * configure: Re-generate.
1264
1265 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 * configure.ac: Modernize.
1268 * configure: Re-generate.
1269
1270 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1273 * configure: Re-generate.
1274 * configure.ac: Remove AM_PROG_CC_STDC.
1275
1276 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1279 AC_CANONICAL_SYSTEM.
1280 * configure: Re-generate.
1281
1282 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * infrun.h (displaced_debug_printf): New macro. Replace
1285 displaced debug prints throughout to use it.
1286 (displaced_debug_printf_1): New declaration.
1287 (displaced_step_dump_bytes): Return string, remove ui_file
1288 parameter, update all callers.
1289 * infrun.c (displaced_debug_printf_1): New function.
1290 (displaced_step_dump_bytes): Return string, remove ui_file
1291 parameter
1292
1293 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1294
1295 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1296
1297 2020-10-30 Tom Tromey <tromey@adacore.com>
1298
1299 * Makefile.in (stamp-init): Depend on config.status.
1300
1301 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1302
1303 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1304
1305 2020-10-30 Pedro Alves <pedro@palves.net>
1306
1307 * thread.c (lookup_selected_frame): Move ...
1308 * frame.c (lookup_selected_frame): ... here.
1309
1310 2020-10-30 Pedro Alves <pedro@palves.net>
1311
1312 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1313 * frame.c
1314 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1315 Use save_selected_frame. Save language as well.
1316 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1317 Use restore_selected_frame, and restore language as well.
1318 (selected_frame_id, selected_frame_level): New.
1319 (selected_frame): Update comments.
1320 (save_selected_frame, restore_selected_frame): New.
1321 (get_selected_frame): Use lookup_selected_frame.
1322 (get_selected_frame_if_set): Delete.
1323 (select_frame): Record selected_frame_level and selected_frame_id.
1324 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1325 fields.
1326 (get_selected_frame): Make 'message' parameter optional.
1327 (get_selected_frame_if_set): Delete declaration.
1328 (select_frame): Update comments.
1329 (save_selected_frame, restore_selected_frame)
1330 (lookup_selected_frame): Declare.
1331 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1332 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1333 New field.
1334 (save_infcall_control_state): Use save_selected_frame.
1335 (restore_selected_frame): Delete.
1336 (restore_infcall_control_state): Use restore_selected_frame.
1337 * stack.c (select_frame_command_core, frame_command_core): Use
1338 get_selected_frame.
1339 * thread.c (restore_selected_frame): Rename to ...
1340 (lookup_selected_frame): ... this and make extern. Select the
1341 current frame if the frame level is -1.
1342 (scoped_restore_current_thread::restore): Also restore the
1343 language.
1344 (scoped_restore_current_thread::~scoped_restore_current_thread):
1345 Don't try/catch.
1346 (scoped_restore_current_thread::scoped_restore_current_thread):
1347 Save the language as well. Use save_selected_frame.
1348
1349 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1352 documentation.
1353 * gdbarch.h: Re-generate.
1354
1355 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1358 parameter.
1359 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1360 Likewise.
1361 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1362 Likewise.
1363 * arch-utils.c (default_displaced_step_hw_singlestep):
1364 Likewise.
1365 * arch-utils.h (default_displaced_step_hw_singlestep):
1366 Likewise.
1367 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1368 Likewise.
1369 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1370 Likewise.
1371 * gdbarch.c: Re-generate.
1372 * gdbarch.h: Re-generate.
1373 * infrun.c (resume_1): Adjust.
1374
1375 2020-10-29 Tom Tromey <tom@tromey.com>
1376
1377 * progspace.c (program_space::~program_space): Don't call
1378 exec_close.
1379
1380 2020-10-29 Tom Tromey <tom@tromey.com>
1381
1382 * exec.c (exec_target::close): Don't change current program
1383 space.
1384
1385 2020-10-29 Tom Tromey <tom@tromey.com>
1386
1387 * symfile.c (add_symbol_file_command): Update.
1388 * exec.c (program_space::add_target_sections): Rename.
1389 * symfile-mem.c (symbol_file_add_from_memory): Update.
1390 * progspace.h (struct program_space) <add_target_sections>:
1391 Declare new overload.
1392 * exec.h (add_target_sections_of_objfile): Don't declare.
1393
1394 2020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * solib.c (solib_map_sections): Update.
1397 * exec.c (program_space::add_target_sections): Now a method.
1398 (exec_file_attach): Update.
1399 * exec.h (add_target_sections): Don't declare.
1400 * progspace.h (struct program_space) <add_target_sections>:
1401 Declare.
1402
1403 2020-10-29 Tom Tromey <tom@tromey.com>
1404
1405 * progspace.h (struct program_space) <remove_target_sections>:
1406 Declare.
1407 * exec.c (program_space::remove_target_sections): Now a method.
1408 * exec.h (remove_target_sections): Don't declare.
1409
1410 2020-10-29 Tom Tromey <tom@tromey.com>
1411
1412 * inferior.c (delete_inferior): Update.
1413 * progspace.c (program_space::empty): Rename from
1414 program_space_empty_p. Return bool.
1415 * progspace.h (struct program_space) <empty>: New method.
1416 (program_space_empty_p): Don't declare.
1417
1418 2020-10-29 Tom Tromey <tom@tromey.com>
1419
1420 * progspace.c (program_space::~program_space): Don't call
1421 clear_program_space_solib_cache.
1422 (program_space::clear_solib_cache): Rename from
1423 clear_solib_cache.
1424 * solib.c (handle_solib_event): Update.
1425 * progspace.h (struct program_space) <clear_solib_cache>: New
1426 method.
1427 (clear_program_space_solib_cache): Don't declare.
1428
1429 2020-10-29 Tom Tromey <tom@tromey.com>
1430
1431 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1432 * target.c (info_target_command): Update.
1433 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1434 (symbol_file_clear, reread_symbols): Update.
1435 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1436 * stabsread.c (scan_file_globals): Update.
1437 * solib.c (update_solib_list): Update.
1438 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1439 (svr4_fetch_objfile_link_map, enable_break)
1440 (svr4_relocate_main_executable)
1441 (svr4_iterate_over_objfiles_in_search_order): Update.
1442 * solib-frv.c (lm_base, enable_break)
1443 (frv_relocate_main_executable): Update.
1444 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1445 (frv_fetch_objfile_link_map): Update.
1446 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1447 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1448 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1449 * remote.c (remote_target::get_offsets): Update.
1450 (remote_target::start_remote)
1451 (extended_remote_target::post_attach): Update.
1452 * objfiles.c (entry_point_address_query): Update.
1453 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1454 * minsyms.c (get_symbol_leading_char): Update.
1455 * frame.c (inside_main_func): Update.
1456 * progspace.h (symfile_objfile): Remove macro.
1457
1458 2020-10-29 Tom Tromey <tom@tromey.com>
1459
1460 * exec.c (exec_file_attach): Update.
1461 * progspace.c (program_space::exec_close): Update.
1462 * progspace.h (struct program_space) <ebfd>: Now a
1463 gdb_bfd_ref_ptr.
1464 <set_exec_bfd>: Change argument type.
1465 <exec_bfd>: Update.
1466
1467 2020-10-29 Tom Tromey <tom@tromey.com>
1468
1469 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1470 * symfile.c (reread_symbols): Update.
1471 * symfile-mem.c (add_symbol_file_from_memory_command)
1472 (add_vsyscall_page): Update.
1473 * source-cache.c (source_cache::get_plain_source_lines): Update.
1474 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1475 (svr4_current_sos_direct, svr4_exec_displacement)
1476 (svr4_relocate_main_executable): Update.
1477 (svr4_iterate_over_objfiles_in_search_order): Update.
1478 * solib-frv.c (enable_break2, enable_break): Update.
1479 * solib-dsbt.c (lm_base, enable_break): Update.
1480 * solib-darwin.c (find_program_interpreter)
1481 (darwin_solib_create_inferior_hook): Update.
1482 * sol-thread.c (rw_common, ps_pdmodel): Update.
1483 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1484 * remote.c (compare_sections_command)
1485 (remote_target::trace_set_readonly_regions): Update.
1486 * remote-sim.c (get_sim_inferior_data)
1487 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1488 (gdbsim_target_open, gdbsim_target::files_info): Update.
1489 * exec.h (exec_bfd): Remove macro.
1490 * progspace.c (initialize_progspace): Update.
1491 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1492 Update.
1493 * nto-procfs.c (nto_procfs_target::post_attach)
1494 (nto_procfs_target::create_inferior): Update.
1495 * maint.c (maintenance_info_sections): Update.
1496 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1497 Update.
1498 * infcmd.c (post_create_inferior): Update.
1499 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1500 (objfile_find_memory_regions): Update.
1501 * exec.c (validate_exec_file, exec_file_attach)
1502 (exec_read_partial_read_only, print_section_info): Update.
1503 * corelow.c (core_target_open): Update.
1504 * corefile.c (reopen_exec_file, validate_files): Update.
1505 * arm-tdep.c (gdb_print_insn_arm): Update.
1506 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1507 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1508 methods.
1509
1510 2020-10-29 Tom Tromey <tom@tromey.com>
1511
1512 * progspace.h (current_target_sections): Remove macro.
1513 * solib-svr4.c (scan_dyntag): Update.
1514 * solib-dsbt.c (scan_dyntag): Update.
1515 * exec.c (exec_target::close): Update.
1516 (add_target_sections, add_target_sections_of_objfile)
1517 (remove_target_sections, exec_target::get_section_table)
1518 (exec_target::files_info, set_section_command)
1519 (exec_set_section_address, exec_target::has_memory)
1520 (exec_target::has_memory): Update.
1521
1522 2020-10-29 Tom Tromey <tom@tromey.com>
1523
1524 * source-cache.c (source_cache::get_plain_source_lines): Use
1525 current_program_space.
1526 * corefile.c (reopen_exec_file): Use current_program_space.
1527 * exec.c (exec_file_attach): Use current_program_space.
1528 * exec.h (exec_bfd_mtime): Remove.
1529
1530 2020-10-29 Tom Tromey <tom@tromey.com>
1531
1532 * gcore.c (default_gcore_mach): Remove.
1533 (create_gcore_bfd): Update.
1534
1535 2020-10-29 Tom Tromey <tom@tromey.com>
1536
1537 * progspace.c (program_space::exec_close): New method, from
1538 exec_close in exec.c.
1539 * exec.c (exec_close): Move to progspace.c.
1540 (exec_target::close, exec_file_attach): Update.
1541 * progspace.h (struct program_space) <exec_close>: Declare
1542 method.
1543
1544 2020-10-29 Tom Tromey <tom@tromey.com>
1545
1546 * progspace.h (struct program_space) <exec_filename>: Rename from
1547 pspace_exec_filename. Now a unique_xmalloc_ptr.
1548 * inferior.c (print_selected_inferior): Update.
1549 (print_inferior): Update.
1550 * mi/mi-main.c (print_one_inferior): Update.
1551 * exec.h (exec_filename): Remove macro.
1552 * corefile.c (get_exec_file): Update.
1553 * exec.c (exec_close): Update.
1554 (exec_file_attach): Update.
1555 * progspace.c (clone_program_space): Update.
1556 (print_program_space): Update.
1557
1558 2020-10-29 Tom Tromey <tom@tromey.com>
1559
1560 * target-section.h (struct target_section): Add constructor.
1561 * exec.c (build_section_table, add_target_sections_of_objfile):
1562 Update.
1563 * corelow.c (core_target::build_file_mappings): Update.
1564
1565 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1566
1567 PR gdb/19318
1568 * inferior.c (detach_inferior_command): Restore the current thread.
1569 (kill_inferior_command): Ditto.
1570
1571 2020-10-28 Tom de Vries <tdevries@suse.de>
1572
1573 PR symtab/26772
1574 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1575 map, check it in the "best match" loop.
1576
1577 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * m32c-tdep.c: Remove unused includes.
1580
1581 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * xtensa-tdep.c: Remove includes.
1584
1585 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586
1587 * breakpoint.c (struct condition_command_opts): New struct.
1588 (condition_command_option_defs): New static global.
1589 (make_condition_command_options_def_group): New function.
1590 (condition_completer): Update to consider the '-force' flag.
1591 (condition_command): Use gdb::option for the '-force' flag.
1592
1593 2020-10-27 Tom de Vries <tdevries@suse.de>
1594
1595 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1596 symbols in section check.
1597
1598 2020-10-27 Tom de Vries <tdevries@suse.de>
1599
1600 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1601
1602 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1603
1604 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1605 * breakpoint.c: Update the help text of the 'condition' and 'break'
1606 commands.
1607 (set_breakpoint_condition): Take a new bool parameter
1608 to control whether condition definition should be forced even when
1609 the condition expression is invalid in all of the current locations.
1610 (condition_command): Update the call to 'set_breakpoint_condition'.
1611 (find_condition_and_thread): Take the "-force-condition" flag into
1612 account.
1613 * linespec.c (linespec_keywords): Add "-force-condition" as an
1614 element.
1615 (FORCE_KEYWORD_INDEX): New #define.
1616 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1617 as a keyword.
1618 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1619 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1620 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1621 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1622
1623 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1624
1625 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1626 * breakpoint.c (set_breakpoint_location_condition): New function.
1627 (set_breakpoint_condition): Disable a breakpoint location if parsing
1628 the condition string gives an error.
1629 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1630 (build_target_condition_list): Ditto.
1631 (build_target_command_list): Ditto.
1632 (build_bpstat_chain): Ditto.
1633 (print_one_breakpoint_location): Ditto.
1634 (print_one_breakpoint): Ditto.
1635 (breakpoint_1): Ditto.
1636 (bp_location::bp_location): Ditto.
1637 (locations_are_equal): Ditto.
1638 (update_breakpoint_locations): Ditto.
1639 (enable_disable_bp_num_loc): Ditto.
1640 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1641 (find_condition_and_thread_for_sals): New static function.
1642 (create_breakpoint): Call find_condition_and_thread_for_sals.
1643 (location_to_sals): Call find_condition_and_thread_for_sals instead
1644 of find_condition_and_thread.
1645
1646 2020-10-26 Tom de Vries <tdevries@suse.de>
1647
1648 * dwarf2/read.c (process_full_comp_unit): Call
1649 dwarf2_find_base_address.
1650
1651 2020-10-26 Tom Tromey <tromey@adacore.com>
1652
1653 * gdbtypes.c (create_range_type): Revert previous patch. Add
1654 comment.
1655
1656 2020-10-26 Pedro Alves <pedro@palves.net>
1657
1658 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1659 (my_waitpid): Use gdb::handle_eintr.
1660
1661 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 * acinclude.m4: Update ptrace.m4 path.
1664 * ptrace.m4: Moved to gdbsupport.
1665
1666 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1669 instead of target_gdbarch.
1670
1671 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1672
1673 * jit.c (jit_reader_load_command): Pass current inferior.
1674 (jit_inferior_init): Change parameter type to inferior, use it.
1675 (jit_inferior_created): Remove.
1676 (jit_inferior_created_hook): Pass inferior parameter down.
1677 (_initialize_jit): Use jit_inferior_created_hook instead of
1678 jit_inferior_created.
1679 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1680 * infrun.c (follow_exec): Pass inferior to
1681 jit_inferior_created_hook.
1682
1683 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1686 parameter and use it.
1687 (thread_db_inferior_created): Pass inferior argument.
1688
1689 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * aix-thread.c (aix_thread_inferior_created): Add inferior
1692 parameter.
1693 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1694 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1695 * jit.c (jit_inferior_created): Likewise.
1696 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1697 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1698 * observable.h (inferior_created): Likewise.
1699 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1700 * symfile-mem.c (add_vsyscall_page): Likewise.
1701 * infcmd.c (post_create_inferior): Pass inferior argument.
1702
1703 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1704
1705 GDB 10.1 released.
1706
1707 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1708
1709 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1710 to ada_check_typedef.
1711
1712 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * f-exp.y (f_parse): Rename to...
1715 (f_language::parser): ...this.
1716 * f-lang.c (f_get_encoding): Rename to...
1717 (f_language::get_encoding): ...this.
1718 (f_op_print_tab): Rename to...
1719 (f_language::op_print_tab): ...this.
1720 (exp_descriptor_f): Rename to...
1721 (f_language::exp_descriptor_tab): ...this.
1722 (class f_language): Moved to f-lang.h.
1723 (f_language::language_arch_info): New function, moved out of class
1724 declaration.
1725 (f_language::search_name_hash): Likewise.
1726 (f_language::lookup_symbol_nonlocal): Likewise.
1727 (f_language::get_symbol_name_matcher_inner): Likewise.
1728 * f-lang.h: Add 'valprint.h' include.
1729 (class f_language): Moved here from f-lang.c.
1730 * f-typeprint.c (f_type_print_args): Delete commented out
1731 declaration.
1732 (f_print_typedef): Rename to...
1733 (f_language::print_typedef): ...this.
1734 (f_print_type): Rename to...
1735 (f_language::print_type): ...this.
1736 (f_type_print_varspec_prefix): Delete declaration and rename to...
1737 (f_language::f_type_print_varspec_prefix): ...this.
1738 (f_type_print_varspec_suffix): Delete declaration and rename to...
1739 (f_language::f_type_print_varspec_suffix): ...this.
1740 (f_type_print_base): Delete declaration and rename to...
1741 (f_language::f_type_print_base): ...this.
1742 * f-valprint.c (f_value_print_inner): Rename to...
1743 (f_language::value_print_inner): ...this.
1744 * parse.c: Delete 'f-lang.h' include.
1745
1746 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1747
1748 * language.h (language_defn::print_type): Add variable names in
1749 declaration, and update header comment.
1750
1751 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language::demangle): Rename to...
1754 (ada_language::demangle_symbol): ...this.
1755 * c-lang.c (cplus_language::demangle): Rename to...
1756 (cplus_language::demangle_symbol): ...this.
1757 * d-lang.c (d_language::demangle): Rename to...
1758 (d_language::demangle_symbol): ...this.
1759 * f-lang.c (f_language::demangle): Rename to...
1760 (f_language::demangle_symbol): ...this.
1761 * go-lang.c (go_language::demangle): Rename to...
1762 (go_language::demangle_symbol): ...this.
1763 * language.c (language_demangle): Update call to demangle_symbol.
1764 (auto_or_unknown_language::demangle): Rename to...
1765 (auto_or_unknown_language::demangle_symbol): ...this.
1766 * language.h (language_defn::demangle): Rename to...
1767 (language_defn::demangle_symbol): ...this.
1768 * objc-lang.c (objc_language::demangle): Rename to...
1769 (objc_language::demangle_symbol): ...this.
1770 * rust-lang.c (rust_language::demangle): Rename to...
1771 (rust_language::demangle_symbol): ...this.
1772
1773 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1776 (iterate_over_file_blocks): Replace use of macro with the macros
1777 definition.
1778
1779 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1782 * valprint.c (maybe_print_array_index): Replace use of macro with
1783 the macros definition.
1784
1785 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * ada-lang.c (ada_language::print_array_index): Call value_print
1788 directly.
1789 * language.c (language_defn::print_array_index): Likewise.
1790 * language.h (LA_VALUE_PRINT): Delete.
1791 * valprint.c (value_print): Call value_print on the
1792 current_language directly.
1793
1794 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * language.h (LA_PRINT_TYPEDEF): Delete.
1797 * typeprint.c (typedef_print): Call print_typedef directly on the
1798 current_language object.
1799
1800 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * m2-exp.y (m2_parse): Rename to...
1803 (m2_language::parser): ...this. Update function signature.
1804 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1805 (m2_op_print): Rename to...
1806 (m2_language::op_print_tab): ...this, and make const.
1807 (exp_descriptor_modula2): Rename to...
1808 (m2_language::exp_descriptor_modula2): ...this.
1809 (class m2_language): Move to m2-lang.h.
1810 (m2_language::language_arch_info): New function, moved out of
1811 class declaration.
1812 (m2_language::printchar): New function, body from m2_printchar.
1813 (m2_language::printstr): New function, moved out of class
1814 declaration.
1815 (m2_language::emitchar): Likewise.
1816 * m2-lang.h (m2_parse): Delete declaration.
1817 (m2_print_typedef): Delete declaration.
1818 (m2_value_print_inner): Delete declaration.
1819 (class m2_language): Class declaration moved from m2-lang.c,
1820 larger functions are left in m2-lang.c.
1821 * m2-typeprint.c (m2_print_typedef): Rename to...
1822 (m2_language::print_typedef): ...this, and update function
1823 signature.
1824 * m2-valprint.c (m2_value_print_inner): Rename to...
1825 (m2_language::value_print_inner): ...this, replace use of
1826 LA_PRINT_STRING with a direct call to printstr member function,
1827 and update recursive call.
1828
1829 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * language.c (default_is_string_type_p): Delete, implementation
1832 moved into auto_or_unknown_language::is_string_type_p.
1833 (unk_op_print_tab): Moved into
1834 auto_or_unknown_language::opcode_print_table.
1835 (unknown_language_arch_info): Delete, implementation moved into
1836 auto_or_unknown_language::language_arch_info.
1837 (class auto_or_unknown_language): New class, member functions
1838 copied from unknown_language class, with some updates.
1839 (class unknown_language): Most member functions moved into
1840 auto_or_unknown_language class. Inherit from
1841 auto_or_unknown_language class.
1842 (class auto_language): Inherit from auto_or_unknown_language.
1843 Delete most member functions.
1844
1845 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1846
1847 * stabsread.c (read_member_functions): Remove gdb_assert.
1848
1849 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1850
1851 * gdbtypes.c (init_complex_type): Check target type name.
1852
1853 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * target-debug.h (target_debug_print_struct_target_ops_p):
1856 Remove.
1857 (target_debug_print_async_callback_ftype_p): Remove.
1858 (target_debug_print_struct_trace_state_variable_p): Remove.
1859 (target_debug_print_struct_traceframe_info_p): Remove.
1860 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1861 (target_debug_print_enum_btrace_format): Remove.
1862 (target_debug_print_enum_info_proc_what): Remove.
1863 (target_debug_print_thread_info_pp): Remove.
1864
1865 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * target.h (struct target_ops) <make_corefile_notes>:
1868 Change return type to unique pointer.
1869 * target.c (dummy_make_corefile_notes): Likewise.
1870 * exec.c (struct exec_target) <make_corefile_notes>:
1871 Likewise.
1872 (exec_target::make_corefile_notes): Likewise.
1873 * procfs.c (class procfs_target) <make_corefile_notes>:
1874 Likewise.
1875 (procfs_do_thread_registers): Adjust to unique pointer.
1876 (struct procfs_corefile_thread_data): Add constructor.
1877 <note_data>: Change type to unique pointer.
1878 (procfs_corefile_thread_callback): Adjust to unique pointer.
1879 (procfs_target::make_corefile_notes): Change return type to
1880 unique pointer.
1881 * target-delegates.c: Re-generate.
1882 * gcore.c (write_gcore_file_1): Adjust.
1883 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1884 New.
1885
1886 2020-10-22 Tom de Vries <tdevries@suse.de>
1887
1888 * block.c (find_block_in_blockvector): Make sure the returned block
1889 contains pc.
1890
1891 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 PR gdb/26693
1894 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1895 parameter.
1896 (load_cu): Pass existing CU.
1897 (process_imported_unit_die): Likewise.
1898 (follow_die_offset): Likewise.
1899
1900 2020-10-22 Luis Machado <luis.machado@linaro.org>
1901
1902 * corelow.c (core_target::xfer_partial): Also check for an empty
1903 m_core_unavailable_mappings vector.
1904
1905 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1908 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1909 * f-exp.y (arglist): Allow for a series of subranges.
1910 (subrange): Add cases for subranges with strides.
1911 * f-lang.c (value_f90_subarray): Catch use of array strides and
1912 throw an error.
1913 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1914
1915 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * expprint.c (print_subexp_standard): Change enum range_type to
1918 range_flag and rename variables to match.
1919 (dump_subexp_body_standard): Likewise.
1920 * expression.h (enum range_type): Rename to...
1921 (enum range_flag): ...this.
1922 (range_types): Rename to...
1923 (range_flags): ...this.
1924 * f-lang.c (value_f90_subarray): Change enum range_type to
1925 range_flag and rename variables to match.
1926 * parse.c (operator_length_standard): Likewise.
1927 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1928 range_type to range_flag.
1929 * rust-lang.c (rust_evaluate_funcall): Likewise.
1930 (rust_range): Likewise.
1931 (rust_compute_range): Likewise.
1932 (rust_subscript): Likewise.
1933
1934 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * expprint.c (print_subexp_standard): Update to reflect changes to
1937 enum range_type.
1938 (dump_subexp_body_standard): Likewise.
1939 * expression.h (enum range_type): Convert to a bit field enum, and
1940 make the enum unsigned.
1941 * f-exp.y (subrange): Update to reflect changes to enum
1942 range_type.
1943 * f-lang.c (value_f90_subarray): Likewise.
1944 * parse.c (operator_length_standard): Likewise.
1945 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1946 * rust-lang.c (rust_range): Likewise.
1947 (rust_compute_range): Likewise.
1948 (rust_subscript): Likewise.
1949
1950 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1951
1952 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1953 (displaced_step_in_progress): Fix comment.
1954
1955 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1958 * gdbarch.c: Re-generate.
1959 * gdbarch.h: Re-generate.
1960 * gcore.c (write_gcore_file_1): Adjust.
1961 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1962 constructor.
1963 <note_data>: Change type to unique pointer.
1964 <abort_iteration>: Change type to bool.
1965 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1966 (fbsd_collect_thread_registers): Return void, adjust.
1967 (struct fbsd_corefile_thread_data): Add construtor.
1968 <note_data>: Change type to unique pointer.
1969 (fbsd_corefile_thread): Adjust.
1970 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1971 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1972 to unique pointer, adjust.
1973 (struct linux_collect_regset_section_cb_data): Add constructor.
1974 <note_data>: Change type to unique pointer.
1975 <abort_iteration>: Change type to bool.
1976 (linux_collect_thread_registers): Return void, adjust.
1977 (struct linux_corefile_thread_data): Add constructor.
1978 <note_data>: Change type to unique pointer.
1979 (linux_corefile_thread): Adjust.
1980 (linux_make_corefile_notes): Return unique pointer, adjust.
1981
1982 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1985 * gdbarch.c: Re-generate.
1986 * gdbarch.h: Re-generate.
1987 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1988 bool.
1989 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1990 Likewise.
1991 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1992 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1993 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1994 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1995
1996 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * gdbarch.sh: Make generated predicates return bool.
1999 * gdbarch.c: Re-generate.
2000 * gdbarch.h: Re-generate.
2001
2002 2020-10-20 Tom Tromey <tom@tromey.com>
2003
2004 * varobj-iter.h (struct varobj_item): Remove typedef.
2005
2006 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2007
2008 * infrun.c (currently_stepping): Change int to bool
2009 (maybe_software_singlestep): Likewise.
2010 (show_stop_on_solib_events): Likewise.
2011 (stepping_past_nonsteppable_watchpoint): Likewise.
2012 (displaced_step_in_progress_any_inferior): Likewise.
2013 (displaced_step_in_progress_thread): Likewise.
2014 (keep_going_stepped_thread): Likewise.
2015 (thread_still_needs_step_over): Likewise.
2016 (start_step_over): Likewise.
2017 (do_target_resume): Likewise.
2018 (resume_1): Likewise.
2019 (clear_proceed_status): Likewise.
2020 (thread_still_needs_step_over_bp): Likewise.
2021 (proceed): Likewise.
2022 (switch_back_to_stepped_thread): Likewise.
2023 (adjust_pc_after_break): Likewise.
2024 (stepped_in_from): Likewise.
2025 (handle_stop_requested): Likewise.
2026 (handle_syscall_event): Likewise.
2027 (handle_no_resumed): Likewise.
2028 (handle_inferior_event): Likewise.
2029 (finish_step_over): Likewise.
2030 (handle_signal_stop): Likewise.
2031 (process_event_stop_test): Likewise.
2032
2033 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2034
2035 * infrun.c (get_displaced_stepping_state): Fix comment.
2036
2037 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2038
2039 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2040
2041 2020-10-19 Tom Tromey <tromey@adacore.com>
2042
2043 PR tui/26719
2044 * tui/tui-winsource.h (struct tui_source_window_base)
2045 <refresh_window>: Rename from refresh_pad.
2046 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2047 Rename from refresh_pad.
2048 (tui_source_window_base::show_source_content)
2049 (tui_source_window_base::do_scroll_horizontal): Update.
2050
2051 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052
2053 * thread.c (_initialize_thread): Fine-tune the help text of
2054 'info threads'.
2055
2056 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057
2058 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2059
2060 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2061
2062 * breakpoint.c (handle_jit_event): Add an argument, change how
2063 `jit_event_handler` is called.
2064
2065 2020-10-17 Tom Tromey <tom@tromey.com>
2066
2067 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2068 (scan_xcoff_symtab): Update.
2069 * psymtab.h (class psymtab_storage) <global_psymbols,
2070 static_psymbols, current_global_psymbols,
2071 current_static_psymbols>: Remove.
2072 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2073 (match_partial_symbol, lookup_partial_symbol): Update.
2074 (print_partial_symbols): Change parameters.
2075 (dump_psymtab, recursively_search_psymtabs)
2076 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2077 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2078 (concat): Remove.
2079 (end_psymtab_common): Simplify.
2080 (append_psymbol_to_list): Change parameters.
2081 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2082 (init_psymbol_list): Simplify.
2083 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2084 * psympriv.h (struct partial_symtab) <empty>: New method.
2085 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2086 Remove.
2087 <global_psymbols, static_psymbols>: New members.
2088 <add_psymbol>: New methods.
2089 (add_psymbol_to_list): Don't declare.
2090 (psymbol_placement): Move earlier.
2091 * mdebugread.c (parse_partial_symbols): Update.
2092 (handle_psymbol_enumerators): Change parameters.
2093 (mdebug_expand_psymtab): Update.
2094 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2095 (add_partial_symbol): Update.
2096 * dwarf2/index-write.c (write_psymbols): Change parameters.
2097 (write_one_signatured_type): Update.
2098 (recursively_count_psymbols): Update.
2099 (recursively_write_psymbols): Update.
2100 (class debug_names) <recursively_write_psymbols>: Update.
2101 <write_psymbols>: Change parameters.
2102 <write_one_signatured_type>: Update.
2103 * dbxread.c (read_dbx_symtab): Update.
2104 (dbx_end_psymtab): Use partial_symtab::empty.
2105 * ctfread.c (struct ctf_context) <pst>: New member.
2106 (create_partial_symtab): Set it.
2107 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2108 (scan_partial_symbols): Use the psymtab's context. Update.
2109
2110 2020-10-17 Tom Tromey <tom@tromey.com>
2111
2112 * valprint.c (generic_value_print): Remove comment.
2113 * m2-valprint.c (m2_value_print_inner): Remove comment.
2114 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2115 type.
2116
2117 2020-10-17 Tom de Vries <tdevries@suse.de>
2118
2119 PR symtab/26317
2120 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2121 symbol main.
2122
2123 2020-10-14 Tom de Vries <tdevries@suse.de>
2124
2125 PR gdb/26733
2126 * solib.c (solib_contains_address_p): Handle
2127 'solib->sections == nullptr'.
2128
2129 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 PR gdb/26642
2132 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2133 target can't do async.
2134 * target.c (target_wait): Assert that we don't pass
2135 TARGET_WNOHANG to a target that can't async.
2136
2137 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2138
2139 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2140 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2141 * alpha-bsd-nat.c: Adjust include.
2142 * alpha-bsd-tdep.h: Adjust comment.
2143 * alpha-nbsd-tdep.c: Rename to ...
2144 * alpha-netbsd-tdep.c: ... this, adjust include.
2145 * amd64-nbsd-nat.c: Rename to ...
2146 * amd64-netbsd-nat.c: ... this, adjust include.
2147 * amd64-nbsd-tdep.c: Rename to ...
2148 * amd64-netbsd-tdep.c: ... this, adjust include.
2149 * amd64-tdep.h: Adjust include.
2150 * arm-nbsd-nat.c: Rename to ...
2151 * arm-netbsd-nat.c: ... this, adjust include.
2152 * arm-nbsd-tdep.c: Rename to ...
2153 * arm-netbsd-tdep.c: ... this, adjust include.
2154 * arm-nbsd-tdep.h: Rename to ...
2155 * arm-netbsd-tdep.h: ... this, adjust include.
2156 * configure.nat: Adjust file lists.
2157 * configure.tgt: Likewise.
2158 * hppa-nbsd-nat.c: Rename to ...
2159 * hppa-netbsd-nat.c: ... this, adjust include.
2160 * hppa-nbsd-tdep.c: Rename to ...
2161 * hppa-netbsd-tdep.c: ... this, adjust include.
2162 * i386-nbsd-nat.c: Rename to ...
2163 * i386-netbsd-nat.c: ... this, adjust include.
2164 * i386-nbsd-tdep.c: Rename to ...
2165 * i386-netbsd-tdep.c: ... this, adjust include.
2166 * m68k-bsd-nat.c: Adjust include.
2167 * mips-nbsd-nat.c: Rename to ...
2168 * mips-netbsd-nat.c: ... this, adjust include.
2169 * mips-nbsd-tdep.c: Rename to ...
2170 * mips-netbsd-tdep.c: ... this, adjust include.
2171 * mips-nbsd-tdep.h: Rename to ...
2172 * mips-netbsd-tdep.h: ... this.
2173 * nbsd-nat.c: Rename to ...
2174 * netbsd-nat.c: ... this, adjust include.
2175 * nbsd-nat.h: Rename to ...
2176 * netbsd-nat.h: ... this, adjust include.
2177 * nbsd-tdep.c: Rename to ...
2178 * netbsd-tdep.c: ... this, adjust include.
2179 * nbsd-tdep.h: Rename to ...
2180 * netbsd-tdep.h: ... this.
2181 * ppc-nbsd-nat.c: Rename to ...
2182 * ppc-netbsd-nat.c: ... this, adjust include.
2183 * ppc-nbsd-tdep.c: Rename to ...
2184 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2185 * ppc-nbsd-tdep.h: Rename to ...
2186 * ppc-netbsd-tdep.h: ... this.
2187 * sh-nbsd-nat.c: Rename to ...
2188 * sh-netbsd-nat.c: ... this, adjust include.
2189 * sh-nbsd-tdep.c: Rename to ...
2190 * sh-netbsd-tdep.c: ... this, adjust include.
2191 * sparc-nbsd-nat.c: Rename to ...
2192 * sparc-netbsd-nat.c: ... this.
2193 * sparc-nbsd-tdep.c: Rename to ...
2194 * sparc-netbsd-tdep.c: ... this, adjust include.
2195 * sparc64-nbsd-nat.c: Rename to ...
2196 * sparc64-netbsd-nat.c: ... this.
2197 * sparc64-nbsd-tdep.c: Rename to ...
2198 * sparc64-netbsd-tdep.c: ... this, adjust include.
2199 * sparc64-tdep.h: Adjust comment.
2200 * vax-bsd-nat.c: Adjust include.
2201 * vax-nbsd-tdep.c: Rename to ...
2202 * vax-netbsd-tdep.c: ... this, adjust include.
2203
2204 2020-10-12 Tom Tromey <tom@tromey.com>
2205
2206 * target.h (struct target_ops) <get_section_table>: Update.
2207 (target_get_section_table): Update.
2208 * target.c (target_get_section_table, target_section_by_addr)
2209 (memory_xfer_partial_1): Update.
2210 * target-section.h (target_section_table): Now an alias.
2211 * target-delegates.c: Rebuild.
2212 * target-debug.h (target_debug_print_target_section_table_p):
2213 Rename from target_debug_print_struct_target_section_table_p.
2214 * symfile.c (build_section_addr_info_from_section_table): Update.
2215 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2216 * solib-svr4.c (scan_dyntag): Update.
2217 * solib-dsbt.c (scan_dyntag): Update.
2218 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2219 Update.
2220 * record-full.c (record_full_core_target::xfer_partial): Update.
2221 * progspace.h (struct program_space) <target_sections>: Update.
2222 * exec.h (print_section_info): Update.
2223 * exec.c (exec_target::close, build_section_table)
2224 (add_target_sections, add_target_sections_of_objfile)
2225 (remove_target_sections, exec_on_vfork)
2226 (section_table_available_memory)
2227 (section_table_xfer_memory_partial)
2228 (exec_target::get_section_table, exec_target::xfer_partial)
2229 (print_section_info, set_section_command)
2230 (exec_set_section_address, exec_target::has_memory): Update.
2231 * corelow.c (core_target::build_file_mappings)
2232 (core_target::xfer_partial, core_target::info_proc_mappings)
2233 (core_target::info_proc_mappings): Update.
2234 * bfd-target.c (class target_bfd): Update
2235
2236 2020-10-12 Tom Tromey <tom@tromey.com>
2237
2238 * progspace.c (program_space::~program_space): Don't call
2239 clear_section_table.
2240 * exec.h (clear_section_table): Don't declare.
2241 * exec.c (exec_target::close): Update.
2242 (clear_section_table): Remove.
2243
2244 2020-10-12 Tom Tromey <tom@tromey.com>
2245
2246 * exec.c (add_target_sections_of_objfile): Simplify.
2247
2248 2020-10-12 Tom Tromey <tom@tromey.com>
2249
2250 * solib.c (solib_map_sections): Update.
2251 * record-full.c (record_full_core_open_1): Update.
2252 * exec.h (build_section_table): Return a target_section_table.
2253 * exec.c (exec_file_attach): Update.
2254 (build_section_table): Return a target_section_table.
2255 * corelow.c (core_target::core_target): Update.
2256 * bfd-target.c (target_bfd::target_bfd): Update.
2257
2258 2020-10-12 Tom Tromey <tom@tromey.com>
2259
2260 * target.c (target_section_by_addr, memory_xfer_partial_1):
2261 Update.
2262 * target-section.h (struct target_section_table): Use
2263 std::vector.
2264 * symfile.h (build_section_addr_info_from_section_table): Take a
2265 target_section_table.
2266 * symfile.c (build_section_addr_info_from_section_table): Take a
2267 target_section_table.
2268 * solist.h (struct so_list) <sections>: Change type.
2269 <sections_end>: Remove.
2270 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2271 (solib_contains_address_p): Update.
2272 * solib-svr4.c (scan_dyntag): Update.
2273 * solib-dsbt.c (scan_dyntag): Update.
2274 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2275 Update.
2276 * record-full.c (record_full_core_start, record_full_core_end):
2277 Remove.
2278 (record_full_core_sections): New global.
2279 (record_full_core_open_1, record_full_core_target::xfer_partial):
2280 Update.
2281 * exec.h (build_section_table, section_table_xfer_memory_partial)
2282 (add_target_sections): Take a target_section_table.
2283 * exec.c (exec_file_attach, clear_section_table): Update.
2284 (resize_section_table): Remove.
2285 (build_section_table, add_target_sections): Take a
2286 target_section_table.
2287 (add_target_sections_of_objfile, remove_target_sections)
2288 (exec_on_vfork): Update.
2289 (section_table_available_memory): Take a target_section_table.
2290 (section_table_read_available_memory): Update.
2291 (section_table_xfer_memory_partial): Take a target_section_table.
2292 (print_section_info, set_section_command)
2293 (exec_set_section_address, exec_target::has_memory): Update.
2294 * corelow.c (class core_target) <m_core_section_table,
2295 m_core_file_mappings>: Remove braces.
2296 <~core_target>: Remove.
2297 (core_target::core_target): Update.
2298 (core_target::~core_target): Remove.
2299 (core_target::build_file_mappings)
2300 (core_target::xfer_memory_via_mappings)
2301 (core_target::xfer_partial, core_target::info_proc_mappings):
2302 Update.
2303 * bfd-target.c (target_bfd::xfer_partial): Update.
2304 (target_bfd::target_bfd): Update.
2305 (target_bfd::~target_bfd): Remove.
2306
2307 2020-10-12 Tom Tromey <tom@tromey.com>
2308
2309 * target.h (struct target_section, struct target_section_table):
2310 Move to target-section.h.
2311 * target-section.h: New file.
2312
2313 2020-10-12 Pedro Alves <pedro@palves.net>
2314
2315 PR exp/26602
2316 * valops.c (struct struct_field_searcher): New.
2317 (update_search_result): Rename to ...
2318 (struct_field_searcher::update_result): ... this. Simplify
2319 prototype. Record all found fields.
2320 (do_search_struct_field): Rename to ...
2321 (struct_field_searcher::search): ... this. Simplify prototype.
2322 Maintain stack of visited baseclass path. Call update_result for
2323 fields too. Keep searching fields in baseclasses instead of
2324 stopping at the first found field.
2325 (search_struct_field): Use struct_field_searcher. When looking
2326 for fields, report ambiguous access attempts.
2327
2328 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * frame.c (inside_main_func): Check full symbols as well as
2331 minimal symbols.
2332
2333 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2334
2335 * ada-lang.c (advance_wild_match): Rewrite the function's
2336 description. Change the type of target0, t0 and t1 to char.
2337
2338 2020-10-09 Tom Tromey <tromey@adacore.com>
2339
2340 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2341
2342 2020-10-09 Tom Tromey <tromey@adacore.com>
2343
2344 * ada-lang.h (ada_encode): Return std::string.
2345 * ada-lang.c (ada_encode_1): Return std::string.
2346 (ada_encode): Likewise.
2347 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2348 Update.
2349 * ada-exp.y (block_lookup, write_var_or_type): Update.
2350
2351 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2352
2353 PR exp/26714
2354 * printcmd.c (print_formatted): Handle void results as
2355 unformatted prints.
2356
2357 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * arch/aarch32.c (aarch32_create_target_description): Release the
2360 target_desc_up as late as possible.
2361 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2362 * arch/amd64.c (amd64_create_target_description): Likewise.
2363 * arch/arc.c (arc_create_target_description): Return a
2364 target_desc_up, don't release it.
2365 * arch/arc.h (arc_create_target_description): Update declaration.
2366 (arc_lookup_target_description): Move target_desc_up into the
2367 cache, and return a borrowed pointer.
2368 * arch/arm.c (arm_create_target_description): Release the
2369 target_desc_up as late as possible.
2370 * arch/i386.c (i386_create_target_description): Likewise.
2371 * arch/riscv.h (riscv_create_target_description): Update
2372 declaration to match definition.
2373 * arch/tic6x.c (tic6x_create_target_description): Release the
2374 target_desc_up as late as possible.
2375
2376 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2379 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2380
2381 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2382
2383 * source.c (directory_command): Notify observers that "directories"
2384 parameter has changed.
2385
2386 2020-10-08 Tom Tromey <tom@tromey.com>
2387
2388 * cli/cli-cmds.c (print_disassembly): Style function name and
2389 addresses. Add _() wrappers.
2390
2391 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2392
2393 * NEWS: Mention ARC support in GDBserver.
2394
2395 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2396
2397 * arch/aarch32.c (aarch32_create_target_description): Release
2398 unique_ptr returned from allocate_target_description.
2399 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2400 * arch/amd64.c (amd64_create_target_description): Likewise.
2401 * arch/arc.c (arc_create_target_description): Likewise.
2402 * arch/arm.c (arm_create_target_description): Likewise.
2403 * arch/i386.c (i386_create_target_description): Likewise.
2404 * arch/riscv.c (riscv_create_target_description): Update return
2405 type. Handle allocate_target_description returning a unique_ptr.
2406 (riscv_lookup_target_description): Update to handle unique_ptr.
2407 * arch/tic6x.c (tic6x_create_target_description): Release
2408 unique_ptr returned from allocate_target_description.
2409 * features/microblaze-with-stack-protect.c: Regenerate.
2410 * features/microblaze.c: Regenerate.
2411 * features/mips-dsp-linux.c: Regenerate.
2412 * features/mips-linux.c: Regenerate.
2413 * features/mips64-dsp-linux.c: Regenerate.
2414 * features/mips64-linux.c: Regenerate.
2415 * features/nds32.c: Regenerate.
2416 * features/nios2.c: Regenerate.
2417 * features/or1k.c: Regenerate.
2418 * features/rs6000/powerpc-32.c: Regenerate.
2419 * features/rs6000/powerpc-32l.c: Regenerate.
2420 * features/rs6000/powerpc-403.c: Regenerate.
2421 * features/rs6000/powerpc-403gc.c: Regenerate.
2422 * features/rs6000/powerpc-405.c: Regenerate.
2423 * features/rs6000/powerpc-505.c: Regenerate.
2424 * features/rs6000/powerpc-601.c: Regenerate.
2425 * features/rs6000/powerpc-602.c: Regenerate.
2426 * features/rs6000/powerpc-603.c: Regenerate.
2427 * features/rs6000/powerpc-604.c: Regenerate.
2428 * features/rs6000/powerpc-64.c: Regenerate.
2429 * features/rs6000/powerpc-64l.c: Regenerate.
2430 * features/rs6000/powerpc-7400.c: Regenerate.
2431 * features/rs6000/powerpc-750.c: Regenerate.
2432 * features/rs6000/powerpc-860.c: Regenerate.
2433 * features/rs6000/powerpc-altivec32.c: Regenerate.
2434 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2435 * features/rs6000/powerpc-altivec64.c: Regenerate.
2436 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2437 * features/rs6000/powerpc-e500.c: Regenerate.
2438 * features/rs6000/powerpc-e500l.c: Regenerate.
2439 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2440 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2441 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2442 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2443 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2444 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2445 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2446 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2447 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2448 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2449 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2450 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2451 * features/rs6000/powerpc-vsx32.c: Regenerate.
2452 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2453 * features/rs6000/powerpc-vsx64.c: Regenerate.
2454 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2455 * features/rs6000/rs6000.c: Regenerate.
2456 * features/rx.c: Regenerate.
2457 * features/s390-gs-linux64.c: Regenerate.
2458 * features/s390-linux32.c: Regenerate.
2459 * features/s390-linux32v1.c: Regenerate.
2460 * features/s390-linux32v2.c: Regenerate.
2461 * features/s390-linux64.c: Regenerate.
2462 * features/s390-linux64v1.c: Regenerate.
2463 * features/s390-linux64v2.c: Regenerate.
2464 * features/s390-te-linux64.c: Regenerate.
2465 * features/s390-tevx-linux64.c: Regenerate.
2466 * features/s390-vx-linux64.c: Regenerate.
2467 * features/s390x-gs-linux64.c: Regenerate.
2468 * features/s390x-linux64.c: Regenerate.
2469 * features/s390x-linux64v1.c: Regenerate.
2470 * features/s390x-linux64v2.c: Regenerate.
2471 * features/s390x-te-linux64.c: Regenerate.
2472 * features/s390x-tevx-linux64.c: Regenerate.
2473 * features/s390x-vx-linux64.c: Regenerate.
2474 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2475 from allocate_target_description.
2476 * target-descriptions.c (allocate_target_description): Update
2477 return type.
2478 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2479 allocate_target_description.
2480
2481 2020-10-07 Tom Tromey <tromey@adacore.com>
2482
2483 * unittests/search-memory-selftests.c: New file.
2484 * Makefile.in (SELFTESTS_SRCS): Add
2485 unittests/search-memory-selftests.c.
2486
2487 2020-10-07 Tom Tromey <tromey@adacore.com>
2488
2489 PR gdb/16930:
2490 * findcmd.c (_initialize_mem_search): Mention that the range is
2491 inclusive.
2492
2493 2020-10-07 Tom Tromey <tromey@adacore.com>
2494
2495 * target.h (simple_search_memory): Don't declare.
2496 * target.c (simple_search_memory): Move to gdbsupport.
2497 (default_search_memory): Update.
2498 * remote.c (remote_target::search_memory): Update.
2499
2500 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2501
2502 * Makefile.in (COMPILE): Add CXXFLAGS.
2503 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2504 (check-headers): Add CXXFLAGS.
2505
2506 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2507
2508 * arc-linux-tdep.h: New file.
2509 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2510 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2511 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2512 arc_linux_gregset, arc_linux_v2_regset,
2513 arc_linux_iterate_over_regset_sections,
2514 arc_linux_core_read_description): Implement.
2515 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2516 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2517 (arc_gdbarch_features_create): Add.
2518 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2519
2520 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2521
2522 * arch/arc.h: Rename "arc_gdbarch_features" to
2523 "arc_arch_features".
2524 * arc-tdep.h: Likewise.
2525 * arc-tdep.c: Likewise.
2526
2527 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2528
2529 * infcmd.c (attach_command): Remove the redundant call to
2530 `clear_proceed_status`.
2531
2532 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2533
2534 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2535
2536 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2537
2538 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2539 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2540 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2541
2542 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2545 (_initialize_break_catch_sig): Don't allocate array.
2546
2547 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 * symtab.c (find_pc_line): Return unmapped addresses when the
2550 requested address is also unmapped.
2551
2552 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2553
2554 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2555 tui/tui-out.h.
2556
2557 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2560 type::is_vector instead of TYPE_VECTOR.
2561
2562 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * auto-load.c (auto_load_objfile_script_1): Don't use
2565 debugfile_holder as temporary variable when stripping drive
2566 letter.
2567
2568 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2569
2570 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2571 Add TYPE_CODE_COMPLEX.
2572 (amd64_windows_return_value): Fix types returned via XMM0.
2573
2574 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2575
2576 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2577 AArch64/ARM maintainers.
2578
2579 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * NEWS: Mention set/show debug event-loop.
2582
2583 2020-10-02 Tom Tromey <tromey@adacore.com>
2584
2585 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2586 REG_EXTENDED.
2587
2588 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2591 * procfs.c (procfs_inferior_created): Remove.
2592 (_initialize_procfs): Don't register procfs_inferior_created.
2593
2594 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * async-event.c (invoke_async_signal_handlers): Add debug
2597 print.
2598 (check_async_event_handlers): Likewise.
2599 * event-top.c (show_debug_event_loop): New function.
2600 (_initialize_event_top): Register "set debug event-loop"
2601 setting.
2602
2603 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2606 * debug.h: Remove.
2607 * infrun.c: Include gdbsupport/common-debug.h.
2608 * linux-nat.c: Likewise.
2609
2610 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * async-event.h (create_async_signal_handler): Add name
2613 parameter.
2614 (create_async_event_handler): Likewise.
2615 * async-event.c (struct async_signal_handler) <name>: New field.
2616 (struct async_event_handler) <name>: New field.
2617 (create_async_signal_handler): Assign name.
2618 (create_async_event_handler): Assign name.
2619 * event-top.c (async_init_signals): Pass name when creating
2620 handler.
2621 * infrun.c (_initialize_infrun): Likewise.
2622 * record-btrace.c (record_btrace_push_target): Likewise.
2623 * record-full.c (record_full_open): Likewise.
2624 * remote-notif.c (remote_notif_state_allocate): Likewise.
2625 * remote.c (remote_target::open_1): Likewise.
2626 * tui/tui-win.c (tui_initialize_win): Likewise.
2627
2628 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2629
2630 * async-event.c (initialize_async_signal_handlers): Pass name to
2631 add_file_handler
2632 * event-top.c (ui_register_input_event_handler): Likewise.
2633 * linux-nat.c (linux_nat_target::async): Likewise.
2634 * run-on-main-thread.c (_initialize_run_on_main_thread):
2635 Likewise
2636 * ser-base.c (reschedule): Likewise.
2637 (ser_base_async): Likewise.
2638 * tui/tui-io.c: Likewise.
2639 * top.h (struct ui) <num>: New field.
2640 * top.c (highest_ui_num): New variable.
2641 (ui::ui): Initialize num.
2642
2643 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * observable.h <inferior_created>: Remove parameters. Update all
2646 listeners.
2647 * inferior.h (post_create_inferior): Remove target parameter.
2648 Update all callers.
2649
2650 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2651
2652 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2653 and DW_MACRO_undef_strx.
2654 (dwarf_decode_macros): Likewise
2655 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2656 which is the value of DW_AT_str_offsets_base.
2657 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2658 str_offsets_base.
2659
2660 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2661
2662 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2663
2664 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2665
2666 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2667 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2668
2669 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2670
2671 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2672
2673 2020-09-30 Tom de Vries <tdevries@suse.de>
2674
2675 PR symtab/26683
2676 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2677
2678 2020-09-30 Tom Tromey <tromey@adacore.com>
2679
2680 * dwarf2/read.c (handle_variant): Use constant_value.
2681
2682 2020-09-29 Tom Tromey <tom@tromey.com>
2683
2684 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2685 (read_file_scope, dwarf2_get_pc_bounds)
2686 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2687 (read_structure_type, handle_struct_member_die)
2688 (read_enumeration_type, read_array_type, read_set_type)
2689 (read_tag_pointer_type, read_tag_reference_type)
2690 (read_subroutine_type, read_base_type, read_subrange_type)
2691 (read_full_die_1, partial_die_info::read)
2692 (partial_die_info::read, by, new_symbol)
2693 (dwarf2_const_value_data, dwarf2_const_value_attr)
2694 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2695 (prepare_one_comp_unit): Update.
2696 * dwarf2/attribute.h (DW_UNSND): Remove.
2697
2698 2020-09-29 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2701 (read_subroutine_type, partial_die_info::read)
2702 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2703 (dwarf2_add_member_fn): Update.
2704 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2705 * dwarf2/attribute.c (attribute::as_boolean): New method.
2706
2707 2020-09-29 Tom Tromey <tom@tromey.com>
2708
2709 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2710 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2711 method.
2712 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2713
2714 2020-09-29 Tom Tromey <tom@tromey.com>
2715
2716 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2717 the attribute's form.
2718
2719 2020-09-29 Tom Tromey <tom@tromey.com>
2720
2721 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2722 (dwarf2_add_member_fn): Update.
2723 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2724 * dwarf2/attribute.c (attribute::defaulted): New method, from
2725 is_valid_DW_AT_defaulted.
2726
2727 2020-09-29 Tom Tromey <tom@tromey.com>
2728
2729 * dwarf2/read.c (dw2_get_file_names_reader)
2730 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2731 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2732 (dwarf2_symbol_mark_computed): Use as_unsigned.
2733 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2734 method.
2735 <form_is_section_offset>: Update comment.
2736
2737 2020-09-29 Tom Tromey <tom@tromey.com>
2738
2739 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2740 dwarf2_default_access_attribute. Look up attribute.
2741 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2742 Update.
2743
2744 2020-09-29 Tom Tromey <tom@tromey.com>
2745
2746 * dwarf2/read.c (skip_one_die): Update.
2747 (read_full_die_1): Change how reprocessing is done.
2748 (partial_die_info::read): Update.
2749 (read_attribute_value): Remove need_reprocess parameter.
2750 (read_attribute): Likewise.
2751 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2752 New method.
2753
2754 2020-09-29 Tom Tromey <tom@tromey.com>
2755
2756 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2757 (dwarf2_const_value_attr, dump_die_shallow)
2758 (dwarf2_fetch_constant_bytes): Update.
2759 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2760 comment.
2761 <set_address>: New method.
2762 (DW_ADDR): Remove.
2763 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2764 (attribute::as_string, attribute::as_address): Add assert.
2765
2766 2020-09-29 Tom Tromey <tom@tromey.com>
2767
2768 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2769 (read_attribute_reprocess, read_attribute_value): Update.
2770 (read_attribute): Clear requires_reprocessing.
2771 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2772 form_requires_reprocessing>: New methods.
2773 <string_init>: Clear requires_reprocessing.
2774 <set_unsigned_reprocess>: New method.
2775 <name>: Shrink by one bit.
2776 <requires_reprocessing>: New member.
2777 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2778 method.
2779
2780 2020-09-29 Tom Tromey <tom@tromey.com>
2781
2782 * dwarf2/read.c (read_attribute_value): Update.
2783 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2784 set_unsigned>: New methods.
2785 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2786
2787 2020-09-29 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (get_alignment, read_array_order)
2790 (read_attribute_value, dwarf2_const_value_attr)
2791 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2792 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2793 New methods.
2794 (DW_SND): Remove.
2795
2796 2020-09-29 Tom Tromey <tom@tromey.com>
2797
2798 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2799 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2800 Update.
2801 * dwarf2/attribute.h (struct attribute) <as_signature,
2802 set_signature>: New methods.
2803 (DW_SIGNATURE): Remove.
2804
2805 2020-09-29 Tom Tromey <tom@tromey.com>
2806
2807 * dwarf2/read.c (read_call_site_scope)
2808 (handle_data_member_location, dwarf2_add_member_fn)
2809 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2810 (partial_die_info::read, read_attribute_value)
2811 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2812 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2813 (dwarf2_symbol_mark_computed): Update.
2814 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2815 methods.
2816 (DW_BLOCK): Remove.
2817 * dwarf2/attribute.c (attribute::form_is_block): Add
2818 DW_FORM_data16.
2819
2820 2020-09-29 Tom Tromey <tom@tromey.com>
2821
2822 * dwarf2/read.c (read_cutu_die_from_dwo)
2823 (read_attribute_reprocess, read_attribute_value, read_attribute)
2824 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2825 (dwarf2_fetch_constant_bytes): Update.
2826 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2827 <set_string_noncanonical, set_string_canonical>: New methods.
2828 <string_is_canonical>: Update comment.
2829 <canonical_string_p>: Add assert.
2830 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2831 * dwarf2/attribute.c (attribute::form_is_string): New method.
2832 (attribute::string): Use it.
2833
2834 2020-09-29 Tom Tromey <tom@tromey.com>
2835
2836 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2837 (dump_die_shallow): Use canonical_string_p.
2838 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2839 method.
2840
2841 2020-09-29 Tom Tromey <tom@tromey.com>
2842
2843 * dwarf2/read.c (partial_die_info::read)
2844 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2845 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2846 attribute::as_string.
2847
2848 2020-09-29 Tom Tromey <tom@tromey.com>
2849
2850 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2851 DW_ADDR.
2852 (attribute::string): Don't use DW_STRING.
2853 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2854 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2855
2856 2020-09-29 Tom Tromey <tom@tromey.com>
2857
2858 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2859 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2860 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2861 * dwarf2/attribute.h (struct attribute): Rename methods.
2862 * dwarf2/attribute.c (attribute::as_address): Rename from
2863 value_as_address.
2864 (attribute::as_string): Rename from value_as_string.
2865
2866 2020-09-29 Tom Tromey <tom@tromey.com>
2867
2868 * dwarf2/read.c (partial_die_info::read) <case
2869 DW_AT_linkage_name>: Use value_as_string.
2870 (dwarf2_string_attr): Use value_as_string.
2871 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2872 method.
2873 * dwarf2/attribute.c (attribute::value_as_string): New method.
2874
2875 2020-09-29 Pedro Alves <pedro@palves.net>
2876
2877 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2878 defined before using '#pragma GCC diagnostic' instead of checking
2879 __clang__.
2880
2881 2020-09-28 Tom Tromey <tom@tromey.com>
2882
2883 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2884 (handle_signal_stop): Update.
2885 * procfs.c (procfs_target::insert_watchpoint): Update.
2886 * target.h (target_have_steppable_watchpoint): Now a function.
2887
2888 2020-09-28 Tom Tromey <tom@tromey.com>
2889
2890 * infrun.c (set_schedlock_func): Update.
2891 * target.h (target_can_lock_scheduler): Now a function.
2892
2893 2020-09-28 Tom Tromey <tom@tromey.com>
2894
2895 * inferior.h (class inferior) <has_execution>: Update.
2896 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2897 * valops.c (find_function_in_inferior)
2898 (value_allocate_space_in_inferior): Update.
2899 * top.c (kill_or_detach): Update.
2900 * target.c (target_preopen, set_target_permissions): Update.
2901 (target_has_execution_current): Remove.
2902 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2903 Update.
2904 * solib.c (update_solib_list, reload_shared_libraries): Update.
2905 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2906 * solib-dsbt.c (enable_break): Update.
2907 * score-tdep.c (score7_fetch_inst): Update.
2908 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2909 Update.
2910 * remote.c (remote_target::start_remote)
2911 (remote_target::remote_check_symbols, remote_target::open_1)
2912 (remote_target::remote_detach_1, remote_target::verify_memory)
2913 (remote_target::xfer_partial, remote_target::read_description)
2914 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2915 * record-full.c (record_full_open_1): Update.
2916 * record-btrace.c (record_btrace_target_open): Update.
2917 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2918 (value_nsstring): Update.
2919 * linux-thread-db.c (add_thread_db_info)
2920 (thread_db_find_new_threads_silently, check_thread_db_callback)
2921 (try_thread_db_load_1, record_thread): Update.
2922 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2923 Update.
2924 * linux-fork.c (checkpoint_command): Update.
2925 * infrun.c (set_non_stop, set_observer_mode)
2926 (check_multi_target_resumption, for_each_just_stopped_thread)
2927 (maybe_remove_breakpoints, normal_stop)
2928 (class infcall_suspend_state): Update.
2929 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2930 (info_program_command, attach_command): Update.
2931 * infcall.c (call_function_by_hand_dummy): Update.
2932 * inf-loop.c (inferior_event_handler): Update.
2933 * gcore.c (gcore_command, derive_heap_segment): Update.
2934 * exec.c (exec_file_command): Update.
2935 * eval.c (evaluate_subexp): Update.
2936 * compile/compile.c (compile_to_object): Update.
2937 * cli/cli-dump.c (restore_command): Update.
2938 * breakpoint.c (update_watchpoint)
2939 (update_inserted_breakpoint_locations)
2940 (insert_breakpoint_locations, get_bpstat_thread): Update.
2941 * target.h (target_has_execution): Remove macro.
2942 (target_has_execution_current): Don't declare.
2943 (target_has_execution): Rename from target_has_execution_1. Add
2944 argument default.
2945
2946 2020-09-28 Tom Tromey <tom@tromey.com>
2947
2948 * mi/mi-main.c (exec_reverse_continue)
2949 (mi_cmd_list_target_features): Update.
2950 * infrun.c (set_exec_direction_func): Update.
2951 * target.c (default_execution_direction): Update.
2952 * reverse.c (exec_reverse_once): Update.
2953 * target.h (target_can_execute_reverse): Now a function.
2954
2955 2020-09-28 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-regs.c (tui_get_register)
2958 (tui_data_window::show_registers): Update.
2959 * thread.c (scoped_restore_current_thread::restore)
2960 (scoped_restore_current_thread::scoped_restore_current_thread):
2961 Update.
2962 * regcache-dump.c (regcache_print): Update.
2963 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2964 Update.
2965 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2966 * mep-tdep.c (current_me_module, current_options): Update.
2967 * linux-thread-db.c (thread_db_load): Update.
2968 * infcmd.c (registers_info, info_vector_command)
2969 (info_float_command): Update.
2970 * ia64-tdep.c (ia64_frame_prev_register)
2971 (ia64_sigtramp_frame_prev_register): Update.
2972 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2973 * gcore.c (derive_stack_segment): Update.
2974 * frame.c (get_current_frame, has_stack_frames): Update.
2975 * findvar.c (language_defn::read_var_value): Update.
2976 * arm-tdep.c (arm_pc_is_thumb): Update.
2977 * target.c (target_has_registers): Rename from
2978 target_has_registers_1.
2979 * target.h (target_has_registers): Remove macro.
2980 (target_has_registers): Rename from target_has_registers_1.
2981
2982 2020-09-28 Tom Tromey <tom@tromey.com>
2983
2984 * windows-tdep.c (tlb_make_value): Update.
2985 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2986 * thread.c (scoped_restore_current_thread::restore)
2987 (scoped_restore_current_thread::scoped_restore_current_thread)
2988 (thread_command): Update.
2989 * stack.c (backtrace_command_1, frame_apply_level_command)
2990 (frame_apply_all_command, frame_apply_command): Update.
2991 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2992 Update.
2993 * gcore.c (derive_stack_segment): Update.
2994 * frame.c (get_current_frame, has_stack_frames): Update.
2995 * auxv.c (info_auxv_command): Update.
2996 * ada-tasks.c (ada_build_task_list): Update.
2997 * target.c (target_has_stack): Rename from target_has_stack_1.
2998 * target.h (target_has_stack): Remove macro.
2999 (target_has_stack): Rename from target_has_stack_1.
3000
3001 2020-09-28 Tom Tromey <tom@tromey.com>
3002
3003 * target.c (target_has_memory): Rename from target_has_memory_1.
3004 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3005 * thread.c (scoped_restore_current_thread::restore)
3006 (scoped_restore_current_thread::scoped_restore_current_thread):
3007 Update.
3008 * frame.c (get_current_frame, has_stack_frames): Update.
3009 * target.h (target_has_memory): Remove macro.
3010 (target_has_memory): Rename from target_has_memory_1.
3011
3012 2020-09-28 Tom Tromey <tom@tromey.com>
3013
3014 * target.c (target_has_all_memory_1): Remove.
3015 * target.h (target_has_all_memory): Remove define.
3016 (target_has_all_memory_1): Don't declare.
3017
3018 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * ser-base.c: Adjust comments formatting.
3021
3022 2020-09-27 Tom Tromey <tom@tromey.com>
3023
3024 PR tui/25342:
3025 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3026
3027 2020-09-27 Tom Tromey <tom@tromey.com>
3028
3029 PR tui/25342:
3030 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3031
3032 2020-09-27 Tom Tromey <tom@tromey.com>
3033
3034 * unittests/tui-selftests.c: Update.
3035 * tui/tui-winsource.h (struct tui_source_window_base)
3036 <extra_margin, show_line_number, refresh_pad>: New methods.
3037 <m_max_length, m_pad>: New members.
3038 (tui_copy_source_line): Update.
3039 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3040 first_col, line_width, ndigits parameters. Add length.
3041 (tui_source_window_base::show_source_line): Write to pad. Line
3042 number now 0-based.
3043 (tui_source_window_base::refresh_pad): New method.
3044 (tui_source_window_base::show_source_content): Write to pad. Call
3045 refresh_pad.
3046 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3047 not refill.
3048 (tui_source_window_base::update_exec_info): Call
3049 show_line_number.
3050 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3051 method.
3052 <m_digits>: New member.
3053 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3054 and m_max_length.
3055 (tui_source_window::show_line_number): New method.
3056 * tui/tui-io.h (tui_puts): Fix comment.
3057 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3058 m_max_length.
3059
3060 2020-09-27 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-winsource.c
3063 (tui_source_window_base::set_is_exec_point_at): Don't call
3064 show_source_line.
3065
3066 2020-09-27 Tom Tromey <tom@tromey.com>
3067
3068 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3069 method.
3070 <erase>: Update.
3071 <cursor_x, cursor_y>: Remove.
3072 <m_inner_window>: New member.
3073 (tui_py_window::rerender): Create inner window.
3074 (tui_py_window::output): Write to inner window.
3075
3076 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3077
3078 PR python/26586
3079 * cli/cli-script.c (execute_control_commands): don't set
3080 instream to nullptr here as this breaks the from_tty argument
3081 to gdb.execute in Python.
3082 (execute_user_command): set instream to nullptr here instead.
3083
3084 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * infrun.h (infrun_debug_printf): Fix formatting.
3087 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3088
3089 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3090
3091 * compile/compile-object-load.h (struct munmap_list): Add
3092 explicitly-defined move constructor.
3093
3094 2020-09-24 Tom Tromey <tromey@adacore.com>
3095
3096 PR tui/26638:
3097 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3098 method.
3099 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3100 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3101 (tui_prev_win): Rewrite.
3102
3103 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3104
3105 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3106 in WOW64 processes as SIGINT.
3107 * nat/windows-nat.h: Make wow64_process a shared variable.
3108 * windows-nat.c: Remove static wow64_process variable.
3109
3110 2020-09-23 Tom Tromey <tom@tromey.com>
3111
3112 PR symtab/25470:
3113 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3114 offset and bit size.
3115 * printcmd.c (print_scalar_formatted): Handle zero-length
3116 integer.
3117 (print_scalar_formatted): Use bit_size_differs_p.
3118 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3119 constant.
3120 (union type_specific): <int_stuff>: New member.
3121 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3122 methods.
3123 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3124 TYPE_SPECIFIC_FIELD.
3125 (recursive_dump_type, copy_type_recursive): Update.
3126 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3127 DW_AT_data_bit_offset.
3128
3129 2020-09-23 Tom Tromey <tom@tromey.com>
3130
3131 * utils.h (class gdb_argv): Add move operators.
3132 <append>: New methods.
3133 * compile/compile.c (build_argc_argv): Remove.
3134 (compile_args_argc): Remove.
3135 (compile_args_argv): Change type.
3136 (set_compile_args): Simplify.
3137 (append_args): Remove.
3138 (filter_args): Remove argcp parameter.
3139 (get_args): Return gdb_argv. Simplify.
3140 (compile_to_object): Update.
3141
3142 2020-09-23 Tom Tromey <tom@tromey.com>
3143
3144 * compile/compile-object-run.c (do_module_cleanup)
3145 <~do_module_cleanup> :Remove.
3146 (do_module_cleanup): Update.
3147 * compile/compile-object-load.h (struct munmap_list): Add move
3148 assignment operator.
3149 <source_file>: Now a std::string.
3150 <munmap_list>: Rename. No longer a pointer.
3151 * compile/compile-object-load.c (struct setup_sections_data): Add
3152 constructor.
3153 <setup_one_section>: Declare.
3154 <munmap_list>: Move earlier.
3155 <m_bfd>: New member.
3156 <m_last_size, m_last_section_first, m_last_prot,
3157 m_last_max_alignment>: Rename, add initializers where needed.
3158 (setup_sections_data::setup_one_section): Rename from
3159 setup_sections. Update.
3160 (compile_object_load): Update. Don't use bfd_map_over_sections.
3161
3162 2020-09-23 Tom Tromey <tom@tromey.com>
3163
3164 * compile/compile-object-run.c (struct do_module_cleanup): Add
3165 parameters to constructor. Update destructor.
3166 <source_file, scope, scope_data, out_value_type, out_value_addr,
3167 munmap_list_head, objfile_name_string>: Remove.
3168 <module>: New member.
3169 (do_module_cleanup): Update.
3170 (compile_object_run): Update.
3171
3172 2020-09-23 Tom Tromey <tom@tromey.com>
3173
3174 * compile/compile.c (eval_compile_command): Update.
3175 * compile/compile-object-run.h (compile_object_run): Take a
3176 compile_module_up.
3177 * compile/compile-object-run.c (compile_object_run): Take a
3178 compile_module_up.
3179 * compile/compile-object-load.h (struct compile_module): Add
3180 constructor, destructor.
3181 (compile_module_up): New typedef.
3182 (compile_object_load): Return compile_object_up.
3183 * compile/compile-object-load.c (compile_object_load): Return
3184 compile_module_up.
3185
3186 2020-09-23 Tom Tromey <tom@tromey.com>
3187
3188 * compile/compile-object-run.c (struct do_module_cleanup): Add
3189 constructor, destructor.
3190 <objfile_name_string>: Don't use struct hack.
3191 (do_module_cleanup): Use delete.
3192 (compile_object_run): Use new.
3193
3194 2020-09-23 Tom Tromey <tom@tromey.com>
3195
3196 * compile/compile-cplus-types.c
3197 (compile_cplus_convert_struct_or_union): Use std::vector.
3198 (compile_cplus_convert_func): Likewise.
3199 * compile/compile-c-types.c (convert_func): Use std::vector.
3200
3201 2020-09-21 Tom Tromey <tromey@adacore.com>
3202
3203 * sparc-tdep.c (sparc32_skip_prologue): Use
3204 skip_prologue_using_sal.
3205
3206 2020-09-19 Tom Tromey <tom@tromey.com>
3207
3208 * symfile.c (add_section_size_callback): Remove.
3209 (load_one_section): Rename from load_section_callback. Change
3210 parameters.
3211 (generic_load): Use foreach.
3212
3213 2020-09-19 Tom Tromey <tom@tromey.com>
3214
3215 * exec.c (add_to_section_table): Remove.
3216 (build_section_table): Use foreach.
3217
3218 2020-09-19 Tom Tromey <tom@tromey.com>
3219
3220 * elfread.c (elf_locate_sections): Change parameters.
3221 (elf_symfile_read): Use foreach.
3222
3223 2020-09-19 Tom Tromey <tom@tromey.com>
3224
3225 * cli/cli-dump.c (struct callback_data): Remove.
3226 (restore_one_section): Rename from restore_section_callback.
3227 Change parameters.
3228 (restore_binary_file): Change parameters.
3229 (restore_command): Use foreach.
3230
3231 2020-09-19 Tom Tromey <tom@tromey.com>
3232
3233 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3234 (gcore_copy_callback): Likewise.
3235 (gcore_memory_sections): Use foreach.
3236
3237 2020-09-19 Tom Tromey <tom@tromey.com>
3238
3239 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3240 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3241 parameters.
3242 (generic_elf_osabi_sniffer): Use foreach.
3243 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3244 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3245
3246 2020-09-19 Tom Tromey <tom@tromey.com>
3247
3248 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3249 (dwarf2_get_dwz_file): Use foreach.
3250 (dwarf2_locate_dwo_sections): Change parameters.
3251 (open_and_init_dwo_file): Use foreach.
3252 (dwarf2_locate_common_dwp_sections): Change parameters.
3253 (open_and_init_dwp_file): Use foreach.
3254
3255 2020-09-19 Tom Tromey <tom@tromey.com>
3256
3257 * symfile.h: (find_lowest_section): Don't declare.
3258 * symfile.c (find_lowest_section): Now static. Change
3259 parameters.
3260 (struct place_section_arg): Remove.
3261 (place_section): Change parameters.
3262 (addr_info_make_relative): Use foreach.
3263 (symfile_dummy_outputs): Remove.
3264 (default_symfile_relocate): Use foreach.
3265
3266 2020-09-19 Tom Tromey <tom@tromey.com>
3267
3268 * objfiles.c (add_to_objfile_sections): Rename from
3269 add_to_objfile_sections_full.
3270 (add_to_objfile_sections): Remove.
3271 (build_objfile_section_table): Use foreach.
3272
3273 2020-09-19 Tom Tromey <tom@tromey.com>
3274
3275 * stap-probe.c (get_stap_base_address_1): Remove.
3276 (get_stap_base_address): Use foreach.
3277
3278 2020-09-19 Tom Tromey <tom@tromey.com>
3279
3280 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3281 parameters.
3282 (gdb_bfd_close_or_warn): Use foreach.
3283
3284 2020-09-19 Tom Tromey <tom@tromey.com>
3285
3286 * corelow.c (add_to_thread_list): Change parameters.
3287 (core_target_open): Use foreach.
3288
3289 2020-09-19 Tom Tromey <tom@tromey.com>
3290
3291 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3292 existing function.
3293
3294 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3297 for arrays.
3298
3299 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * eval.c: Remove 'f-lang.h' include.
3302 (value_f90_subarray): Moved to f-lang.c.
3303 (eval_call): Renamed to...
3304 (evaluate_subexp_do_call): ...this, is no longer static, header
3305 comment moved into header file.
3306 (evaluate_funcall): Update call to eval_call.
3307 (skip_undetermined_arglist): Moved to f-lang.c.
3308 (fortran_value_subarray): Likewise.
3309 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3310 moved to evaluate_subexp_f.
3311 (calc_f77_array_dims): Moved to f-lang.c
3312 * expprint.c (print_subexp_funcall): New function.
3313 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3314 moved to print_subexp_f, OP_FUNCALL uses new function.
3315 (dump_subexp_body_funcall): New function.
3316 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3317 moved to dump_subexp_f, OP_FUNCALL uses new function.
3318 * expression.h (evaluate_subexp_do_call): Declare.
3319 * f-lang.c (value_f90_subarray): Moved from eval.c.
3320 (skip_undetermined_arglist): Likewise.
3321 (calc_f77_array_dims): Likewise.
3322 (fortran_value_subarray): Likewise.
3323 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3324 (operator_length_f): Likewise.
3325 (print_subexp_f): Likewise.
3326 (dump_subexp_body_f): Likewise.
3327 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3328 declaration of this operation to here.
3329 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3330 support moved to operator_length_f.
3331 * parser-defs.h (dump_subexp_body_funcall): Declare.
3332 (print_subexp_funcall): Declare.
3333 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3334 fortran-operator.def.
3335
3336 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3337
3338 * eval.c (fortran_value_subarray): New function, content is taken
3339 from...
3340 (evaluate_subexp_standard): ...here, in two places. Now arrays
3341 and strings both call the new function.
3342 (calc_f77_array_dims): Add header comment, handle strings.
3343
3344 2020-09-18 Victor Collod <vcollod@nvidia.com>
3345
3346 PR gdb/26635
3347 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3348 (i386_analyze_prologue): Call i386_skip_endbr.
3349
3350 2020-09-18 Tom Tromey <tromey@adacore.com>
3351
3352 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3353 (windows_nat_target::wait): Update.
3354 * target/wait.h (enum target_wait_flag): New. Use
3355 DEF_ENUM_FLAGS_TYPE.
3356 * target/target.h (target_wait): Change type of options.
3357 * target.h (target_options_to_string, default_target_wait):
3358 Update.
3359 (struct target_ops) <wait>: Change type of options.
3360 * target.c (target_wait, default_target_wait, do_option): Change
3361 type of "options".
3362 (target_options_to_string): Likewise.
3363 * target-delegates.c: Rebuild.
3364 * target-debug.h (target_debug_print_target_wait_flags): Rename
3365 from target_debug_print_options.
3366 * sol-thread.c (class sol_thread_target) <wait>: Update.
3367 (sol_thread_target::wait): Update.
3368 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3369 (rs6000_nat_target::wait): Update.
3370 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3371 Update.
3372 (remote_target::wait_ns, remote_target::wait_as): Change type of
3373 "options".
3374 (remote_target::wait): Update.
3375 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3376 (gdbsim_target::wait): Update.
3377 * record-full.c (class record_full_base_target) <wait>: Update.
3378 (record_full_wait_1): Change type of "options".
3379 (record_full_base_target::wait): Update.
3380 * record-btrace.c (class record_btrace_target) <wait>: Update.
3381 (record_btrace_target::wait): Update.
3382 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3383 Update.
3384 (ravenscar_thread_target::wait): Update.
3385 * procfs.c (class procfs_target) <wait>: Update.
3386 (procfs_target::wait): Update.
3387 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3388 * obsd-nat.c (obsd_nat_target::wait): Update.
3389 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3390 (nto_procfs_target::wait): Update.
3391 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3392 * nbsd-nat.c (nbsd_wait): Change type of "options".
3393 (nbsd_nat_target::wait): Update.
3394 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3395 (thread_db_target::wait): Update.
3396 * linux-nat.h (class linux_nat_target) <wait>: Update.
3397 * linux-nat.c (linux_nat_target::wait): Update.
3398 (linux_nat_wait_1): Update.
3399 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3400 "options".
3401 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3402 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3403 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3404 (go32_nat_target::wait): Update.
3405 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3406 * gnu-nat.c (gnu_nat_target::wait): Update.
3407 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3408 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3409 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3410 * darwin-nat.c (darwin_nat_target::wait): Update.
3411 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3412 (bsd_uthread_target::wait): Update.
3413 * aix-thread.c (class aix_thread_target) <wait>: Update.
3414 (aix_thread_target::wait): Update.
3415
3416 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * compile/compile-object-run.c (create_copied_type_recursive): New
3419 function.
3420 (compile_object_run): Use new function.
3421
3422 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3423
3424 * NEWS: Mention x86_64 Cygwin core file support.
3425
3426 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3427
3428 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3429 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3430
3431 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3432
3433 * windows-tdep.h: Add prototypes.
3434 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3435 (i386_windows_core_pid_to_str): Move and rename ...
3436 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3437 (windows_core_pid_to_str): ... and here.
3438 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3439
3440 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3441 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3442 (amd64_windows_init_abi_common): ... and register.
3443
3444 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3445
3446 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3447 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3448
3449 2020-09-18 Pedro Alves <pedro@palves.net>
3450
3451 PR gdb/26631
3452 * thread.c (thread_find_command): Switch inferior before calling
3453 target methods.
3454
3455 2020-09-17 Tom Tromey <tromey@adacore.com>
3456
3457 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3458 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3459 (tdesc_arch_data_up): New typedef.
3460 (tdesc_use_registers, tdesc_data_alloc): Update.
3461 (tdesc_data_cleanup): Don't declare.
3462 * target-descriptions.c (tdesc_data_alloc): Return a
3463 tdesc_arch_data_up.
3464 (tdesc_arch_data_deleter::operator()): Rename from
3465 tdesc_data_cleanup. Change argument type.
3466 (tdesc_use_registers): Change early_data to an rvalue reference.
3467 (tdesc_use_registers): Don't use delete.
3468 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3469 * s390-tdep.c (s390_gdbarch_init): Update.
3470 * rx-tdep.c (rx_gdbarch_init): Update.
3471 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3472 * riscv-tdep.c (riscv_gdbarch_init): Update.
3473 * or1k-tdep.c (or1k_gdbarch_init): Update.
3474 * nios2-tdep.c (nios2_gdbarch_init): Update.
3475 * nds32-tdep.c (nds32_gdbarch_init): Update.
3476 * mips-tdep.c (mips_gdbarch_init): Update.
3477 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3478 * m68k-tdep.c (m68k_gdbarch_init): Update.
3479 * i386-tdep.c (i386_gdbarch_init): Update.
3480 * arm-tdep.c (arm_gdbarch_init): Update.
3481 * arc-tdep.c (arc_tdesc_init): Update.
3482 (arc_gdbarch_init): Update.
3483 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3484
3485 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3486
3487 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3488 for WOW64 processes.
3489
3490 2020-09-17 Tom Tromey <tom@tromey.com>
3491
3492 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3493
3494 2020-09-17 Tom Tromey <tom@tromey.com>
3495
3496 * value.c (preserve_values): Update.
3497 * python/py-type.c (save_objfile_types): Update.
3498 * guile/scm-type.c (save_objfile_types): Update.
3499 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3500 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3501 * compile/compile-object-run.c (compile_object_run): Update.
3502
3503 2020-09-17 Tom Tromey <tom@tromey.com>
3504
3505 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3506 Remove.
3507 <m_table>: Now htab_up.
3508 * typeprint.c (typedef_hash_table::recursively_update)
3509 (typedef_hash_table::add_template_parameters)
3510 (typedef_hash_table::typedef_hash_table): Update.
3511 (typedef_hash_table::~typedef_hash_table): Remove.
3512 (typedef_hash_table::typedef_hash_table)
3513 (typedef_hash_table::find_global_typedef)
3514 (typedef_hash_table::find_typedef): Update.
3515
3516 2020-09-17 Tom Tromey <tom@tromey.com>
3517
3518 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3519
3520 2020-09-17 Tom Tromey <tom@tromey.com>
3521
3522 * linespec.c (class decode_compound_collector)
3523 <~decode_compound_collector>: Remove.
3524 <m_unique_syms>: Now htab_up.
3525 (decode_compound_collector::operator ()): Update.
3526 (class symtab_collector) <~symtab_collector>: Remove.
3527 <m_symtab_table>: Now htab_up.
3528 (symtab_collector::operator ()): Update.
3529
3530 2020-09-17 Tom Tromey <tom@tromey.com>
3531
3532 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3533 (filename_seen_cache::clear): Update.
3534 (~filename_seen_cache): Remove.
3535 (filename_seen_cache::seen): Update.
3536 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3537 htab_up.
3538 <~filename_seen_cache>: Remove.
3539 <traverse>: Update.
3540
3541 2020-09-17 Tom Tromey <tom@tromey.com>
3542
3543 * completer.c (completion_tracker::discard_completions)
3544 (completion_tracker::~completion_tracker)
3545 (completion_tracker::maybe_add_completion)
3546 (completion_tracker::remove_completion)
3547 (completion_tracker::recompute_lowest_common_denominator)
3548 (completion_tracker::build_completion_result): Update.
3549 * completer.h (class completion_tracker) <have_completions>:
3550 Update.
3551 <m_entries_hash>: Now htab_up.
3552
3553 2020-09-17 Tom Tromey <tom@tromey.com>
3554
3555 * breakpoint.c (ambiguous_names_p): Use htab_up.
3556
3557 2020-09-17 Tom Tromey <tom@tromey.com>
3558
3559 * auto-load.c (struct auto_load_pspace_info)
3560 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3561 <loaded_script_files, loaded_script_texts>: Change type to
3562 htab_up.
3563 (~auto_load_pspace_info) Remove.
3564 (init_loaded_scripts_info, maybe_add_script_file)
3565 (maybe_add_script_text, auto_load_info_scripts): Update.
3566
3567 2020-09-17 Tom Tromey <tromey@adacore.com>
3568
3569 * c-exp.y (name_obstack): Now static.
3570
3571 2020-09-17 Chungyi Chi <demonic@csie.io>
3572
3573 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3574
3575 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3578 (add_solib_catchpoint): Likewise.
3579 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3580 to bool.
3581 (add_solib_catchpoint): Change int parameter/variable to bool.
3582 (catch_load_or_unload): Likewise.
3583 (init_catchpoint): Likewise.
3584 (create_fork_vfork_event_catchpoint): Likewise.
3585 (catch_fork_command_1): Likewise.
3586 (catch_exec_command_1): Likewise.
3587
3588 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3591 Change instance_flags to m_instance_flags.
3592
3593 2020-09-16 Tom Tromey <tromey@adacore.com>
3594
3595 PR gdb/26598:
3596 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3597
3598 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3599
3600 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3601 PL_FLAG_EXEC.
3602 (fbsd_nat_target::insert_exec_catchpoint)
3603 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3604 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3605 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3606
3607 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3608
3609 * configure.ac: Remove check for kinfo_getvmmap().
3610 * configure, config.in: Regenerate.
3611 * fbsd-nat.c (fbsd_read_mapping): Remove
3612 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3613 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3614 kinfo_get_vmmap() are always present.
3615
3616 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3617
3618 * fbsd-nat.c: Always include support for
3619 TARGET_OBJECT_SIGNAL_INFO.
3620
3621 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3622
3623 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3624 sysctl and remove procfs fallback.
3625
3626 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3627
3628 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3629 * fbsd-nat.h: Likewise.
3630
3631 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632
3633 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3634 argument.
3635
3636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_data): Delete.
3639 (ada_language): Remove references to ada_language_data.
3640 * c-lang.c (c_language_data): Delete.
3641 (c_language): Remove references to c_language_data.
3642 (cplus_language_data): Delete.
3643 (cplus_language): Remove references to cplus_language_data.
3644 (asm_language_data): Delete.
3645 (asm_language): Remove references to asm_language_data.
3646 (minimal_language_data): Delete.
3647 (minimal_language): Remove references to minimal_language_data.
3648 * d-lang.c (d_language_data): Delete.
3649 (d_language): Remove references to d_language_data.
3650 * f-lang.c (f_language_data): Delete.
3651 (f_language): Remove references to f_language_data.
3652 * go-lang.c (go_language_data): Delete.
3653 (go_language): Remove references to go_language_data.
3654 * language.c (unknown_language_data): Delete.
3655 (unknown_language): Remove references to unknown_language_data.
3656 (auto_language_data): Delete.
3657 (auto_language): Remove references to auto_language_data.
3658 * language.h (language_data): Delete struct.
3659 (language_defn): No longer inherit from language_data.
3660 * m2-lang.c (m2_language_data): Delete.
3661 (m2_language): Remove references to m2_language_data.
3662 * objc-lang.c (objc_language_data): Delete.
3663 (objc_language): Remove references to objc_language_data.
3664 * opencl-lang.c (opencl_language_data): Delete.
3665 (opencl_language): Remove references to opencl_language_data.
3666 * p-lang.c (pascal_language_data): Delete.
3667 (pascal_language): Remove references to pascal_language_data.
3668 * rust-lang.c (rust_language_data): Delete.
3669 (rust_language): Remove references to rust_language_data.
3670
3671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3674 initializer.
3675 (ada_language::opcode_print_table): New member function.
3676 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3677 (c_language::opcode_print_table): New member function.
3678 (cplus_language_data): Remove la_op_print_tab initializer.
3679 (cplus_language::opcode_print_table): New member function.
3680 (asm_language_data): Remove la_op_print_tab initializer.
3681 (asm_language::opcode_print_table): New member function.
3682 (minimal_language_data): Remove la_op_print_tab initializer.
3683 (minimal_language::opcode_print_table): New member function.
3684 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3685 (d_language::opcode_print_table): New member function.
3686 * expprint.c (print_subexp_standard): Update call to
3687 opcode_print_table.
3688 (op_string): Likewise.
3689 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3690 (f_language::opcode_print_table): New member function.
3691 * go-lang.c (go_language_data): Remove la_op_print_tab
3692 initializer.
3693 (go_language::opcode_print_table): New member function.
3694 * language.c (unknown_language_data): Remove la_op_print_tab
3695 initializer.
3696 (unknown_language::opcode_print_table): New member function.
3697 (auto_language_data): Remove la_op_print_tab initializer.
3698 (auto_language::opcode_print_table): New member function.
3699 * language.h (language_data): Remove la_op_print_tab field.
3700 (language_defn::opcode_print_table): Declare new member function.
3701 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3702 initializer.
3703 (m2_language::opcode_print_table): New member function.
3704 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3705 initializer.
3706 (objc_language::opcode_print_table): New member function.
3707 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3708 initializer.
3709 (opencl_language::opcode_print_table): New member function.
3710 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3711 initializer.
3712 (pascal_language::opcode_print_table): New member function.
3713 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3714 initializer.
3715 (rust_language::opcode_print_table): New member function.
3716
3717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3720 (ada_language::expression_ops): New member function.
3721 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3722 (c_language::expression_ops): New member function.
3723 (cplus_language_data): Remove la_exp_desc initializer.
3724 (cplus_language::expression_ops): New member function.
3725 (asm_language_data): Remove la_exp_desc initializer.
3726 (asm_language::expression_ops): New member function.
3727 (minimal_language_data): Remove la_exp_desc initializer.
3728 (minimal_language::expression_ops): New member function.
3729 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3730 (d_language::expression_ops): New member function.
3731 * eval.c (evaluate_subexp): Update call to expression_ops.
3732 * expprint.c (print_subexp): Likewise.
3733 (op_name): Likewise.
3734 (dump_subexp_body): Likewise.
3735 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3736 (f_language::expression_ops): New member function.
3737 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3738 (go_language::expression_ops): New member function.
3739 * language.c (language_defn::expression_ops): New function.
3740 (unknown_language_data): Remove la_exp_desc initializer.
3741 (auto_language_data): Likewise.
3742 * language.h (language_data): Remove la_exp_desc field.
3743 (language_defn::expression_ops): Declare new member function.
3744 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3745 (m2_language::expression_ops): New member function.
3746 * objc-lang.c (objc_language_data): Remove la_exp_desc
3747 initializer.
3748 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3749 initializer.
3750 (opencl_language::expression_ops): New member function.
3751 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3752 * parse.c (operator_length): Update call to expression_ops.
3753 (exp_iterate): Likewise.
3754 * rust-lang.c (rust_language_data): Remove la_exp_desc
3755 initializer.
3756 (ruse_language::expression_ops): New member function.
3757
3758 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3761 initializer.
3762 (ada_language::varobj_ops): New member function.
3763 * c-lang.c (c_language_data): Remove la_varobj_ops
3764 initializer.
3765 (cplus_language_data): Likewise.
3766 (cplus_language::varobj_ops): New member function.
3767 (asm_language_data): Remove la_varobj_ops initializer.
3768 (minimal_language_data): Likewise.
3769 * d-lang.c (d_language_data): Likewise.
3770 * f-lang.c (f_language_data): Likewise.
3771 * go-lang.c (go_language_data): Likewise.
3772 * language.c (language_defn::varobj_ops): New function.
3773 (unknown_language_data): Remove la_varobj_ops
3774 initializer.
3775 (auto_language_data): Likewise.
3776 * language.h (language_data): Remove la_varobj_ops field.
3777 (language_defn::varobj_ops): Declare new member function.
3778 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3779 * objc-lang.c (objc_language_data): Likewise.
3780 * opencl-lang.c (opencl_language_data): Likewise.
3781 * p-lang.c (pascal_language_data): Likewise.
3782 * rust-lang.c (rust_language_data): Likewise.
3783 * varobj.c (varobj_create): Update call to varobj_ops.
3784 * varobj.h (default_varobj_ops): Delete define.
3785
3786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3789 initializer.
3790 * c-lang.c (c_language_data): Likewise.
3791 (c_language::macro_expansion): New member function.
3792 (cplus_language_data): Likewise.
3793 (cplus_language::macro_expansion): New member function.
3794 (asm_language_data): Likewise.
3795 (asm_language::macro_expansion): New member function.
3796 (minimal_language_data): Likewise.
3797 (minimal_language::macro_expansion): New member function.
3798 * d-lang.c (d_language_data): Remove la_macro_expansion
3799 initializer.
3800 * f-lang.c (f_language_data): Likewise.
3801 * go-lang.c (go_language_data): Likewise.
3802 * language.c (unknown_language_data): Likewise.
3803 (auto_language_data): Likewise.
3804 * language.h (language_data): Remove la_macro_expansion field.
3805 (language_defn::macro_expansion): New member function.
3806 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3807 initializer.
3808 * objc-lang.c (objc_language_data): Likewise.
3809 (objc_language::macro_expansion): New member function.
3810 * opencl-lang.c (opencl_language_data): Likewise.
3811 (opencl_language::macro_expansion): New member function.
3812 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3813 initializer.
3814 * rust-lang.c (rust_language_data): Likewise.
3815 * symtab.c (default_collect_symbol_completion_matches_break_on):
3816 Update call to macro_expansion.
3817
3818 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * ada-lang.c (ada_language_data): Remove la_array_ordering
3821 initializer.
3822 * c-lang.c (c_language_data): Likewise.
3823 (cplus_language_data): Likewise.
3824 (asm_language_data): Likewise.
3825 (minimal_language_data): Likewise.
3826 * d-lang.c (d_language_data): Likewise.
3827 * dwarf2/read.c (read_array_order): Update for call to
3828 array_ordering.
3829 * f-lang.c (f_language_data): Remove la_array_ordering
3830 initializer.
3831 (f_language::array_ordering): New member function.
3832 * go-lang.c (go_language_data): Remove la_array_ordering
3833 initializer.
3834 * language.c (unknown_language_data): Likewise.
3835 (auto_language_data): Likewise.
3836 * language.h (language_data): Delete la_array_ordering field.
3837 (language_defn::array_ordering): New member function.
3838 * m2-lang.c (m2_language_data): Remove la_array_ordering
3839 initializer.
3840 * objc-lang.c (objc_language_data): Likewise.
3841 * opencl-lang.c (opencl_language_data): Likewise.
3842 * p-lang.c (pascal_language_data): Likewise.
3843 * rust-lang.c (rust_language_data): Likewise.
3844
3845 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3846
3847 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3848 initializer.
3849 * c-lang.c (c_language_data): Likewise.
3850 (cplus_language_data): Likewise.
3851 (asm_language_data): Likewise.
3852 (minimal_language_data): Likewise.
3853 * d-lang.c (d_language_data): Likewise.
3854 * f-lang.c (f_language_data): Likewise.
3855 (f_language::case_sensitivity): New member function.
3856 * go-lang.c (go_language_data): Remove la_case_sensitivity
3857 initializer.
3858 * language.c (enum case_mode): Moved here from language.h.
3859 (case_mode): Make static.
3860 (show_case_command): Update for case_sensitivity being a method.
3861 (set_case_command): Likewise.
3862 (set_range_case): Likewise.
3863 (unknown_language_data): Remove la_case_sensitivity initializer.
3864 (auto_language_data): Likewise.
3865 * language.h (case_mode): Delete, move enum declaration to
3866 language.c.
3867 (language_data): Delete la_case_sensitivity field.
3868 (language_defn::case_sensitivity): New member function.
3869 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3870 initializer.
3871 * objc-lang.c (objc_language_data): Likewise.
3872 * opencl-lang.c (opencl_language_data): Likewise.
3873 * p-lang.c (pascal_language_data): Likewise.
3874 * rust-lang.c (rust_language_data): Likewise.
3875
3876 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * ada-lang.c (ada_language_data): Remove la_range_check
3879 initializer.
3880 * c-lang.c (c_language_data): Likewise.
3881 (cplus_language_data): Likewise.
3882 (asm_language_data): Likewise.
3883 (minimal_language_data): Likewise.
3884 * d-lang.c (d_language_data): Likewise.
3885 * f-lang.c (f_language_data): Likewise.
3886 (f_language::range_checking_on_by_default): New member function.
3887 * go-lang.c (go_language_data): Remove la_range_check initializer.
3888 * language.c (enum range_mode): Moved here from language.h.
3889 (range_mode): Made static.
3890 (show_range_command): Update to use
3891 range_checking_on_by_default.
3892 (set_range_command): Likewise.
3893 (set_range_case): Likewise.
3894 (unknown_language_data): Remove la_range_check initializer.
3895 (auto_language_data): Likewise.
3896 * language.h (range_mode): Delete. Enum definition moved to
3897 language.c.
3898 (language_data): Remove la_range_check field.
3899 (language_defn::range_checking_on_by_default): New member
3900 function.
3901 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3902 (m2_language::range_checking_on_by_default): New member function.
3903 * objc-lang.c (objc_language_data): Remove la_range_check
3904 initializer.
3905 * opencl-lang.c (opencl_language_data): Likewise.
3906 * p-lang.c (pascal_language_data): Likewise.
3907 (pascal_language::range_checking_on_by_default): New member
3908 function.
3909 * rust-lang.c (rust_language_data): Remove la_range_check
3910 initializer.
3911 (rust_language::range_checking_on_by_default): New member
3912 function.
3913
3914 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * dwarf2/read.c (dwarf2_physname): Remove special case for
3917 language_go.
3918 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3919 member function.
3920
3921 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * ada-lang.c (ada_language_data): Remove
3924 la_store_sym_names_in_linkage_form_p initializer.
3925 (ada_language::store_sym_names_in_linkage_form_p): New member
3926 function.
3927 * c-lang.c (c_language_data): Remove
3928 la_store_sym_names_in_linkage_form_p initializer.
3929 (c_language::store_sym_names_in_linkage_form_p): New member
3930 function.
3931 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3932 initializer.
3933 (asm_language_data): Likewise.
3934 (asm_language::store_sym_names_in_linkage_form_p): New member
3935 function.
3936 (minimal_language_data): Remove
3937 la_store_sym_names_in_linkage_form_p initializer.
3938 (minimal_language::store_sym_names_in_linkage_form_p): New member
3939 function.
3940 * d-lang.c (d_language_data): Remove
3941 la_store_sym_names_in_linkage_form_p initializer.
3942 * dwarf2/read.c (dwarf2_physname): Update call to
3943 store_sym_names_in_linkage_form_p.
3944 * f-lang.c (f_language_data): Remove
3945 la_store_sym_names_in_linkage_form_p initializer.
3946 * go-lang.c (go_language_data): Remove
3947 la_store_sym_names_in_linkage_form_p initializer.
3948 * language.c (unknown_language_data): Remove
3949 la_store_sym_names_in_linkage_form_p initializer.
3950 (unknown_language::store_sym_names_in_linkage_form_p): New member
3951 function.
3952 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3953 initializer.
3954 (auto_language::store_sym_names_in_linkage_form_p): New member
3955 function.
3956 * language.h (language_data): Remove
3957 la_store_sym_names_in_linkage_form_p member variable.
3958 (language_defn::store_sym_names_in_linkage_form_p): New member
3959 function.
3960 * m2-lang.c (m2_language_data): Remove
3961 la_store_sym_names_in_linkage_form_p initializer.
3962 * objc-lang.c (objc_language_data): Likewise.
3963 * opencl-lang.c (opencl_language_data): Likewise.
3964 * p-lang.c (pascal_language_data): Likewise.
3965 * rust-lang.c (rust_language_data): Likewise.
3966
3967 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * ada-lang.c (ada_language_data): Remove string_lower_bound
3970 initializer.
3971 * c-lang.c (c_language_data): Likewise.
3972 (cplus_language_data): Likewise.
3973 (asm_language_data): Likewise.
3974 (minimal_language_data): Likewise.
3975 * d-lang.c (d_language_data): Likewise.
3976 * f-lang.c (f_language_data): Likewise.
3977 * go-lang.c (go_language_data): Likewise.
3978 * language.c (unknown_language_data): Likewise.
3979 (auto_language_data): Likewise.
3980 * language.h (language_data): Remove string_lower_bound field.
3981 (language_defn::string_lower_bound): New member function.
3982 * m2-lang.c (m2_language_data): Remove string_lower_bound
3983 initializer.
3984 (m2_language::string_lower_bound): New member function.
3985 * objc-lang.c (objc_language_data): Remove string_lower_bound
3986 initializer.
3987 * opencl-lang.c (opencl_language_data): Likewise.
3988 * p-lang.c (pascal_language_data): Likewise.
3989 * rust-lang.c (rust_language_data): Likewise.
3990 * valops.c (value_cstring): Update call to string_lower_bound.
3991 (value_string): Likewise.
3992 * value.c (allocate_repeated_value): Likewise.
3993
3994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * valops.c (value_repeat): Fix incorrect argument name in comment.
3997
3998 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * ada-lang.c (ada_language_data): Remove c_style_arrays
4001 initializer.
4002 (ada_language::c_style_arrays_p): New member fuction.
4003 * c-lang.c (c_language_data): Remove c_style_arrays
4004 initializer.
4005 (cplus_language_data): Likewise.
4006 (asm_language_data): Likewise.
4007 (minimal_language_data): Likewise.
4008 * d-lang.c (d_language_data): Likewise.
4009 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4010 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4011 (f_language::c_style_arrays_p): New member function.
4012 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4013 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4014 * language.c (unknown_language_data): Remove c_style_arrays
4015 initializer.
4016 (auto_language_data): Likewise.
4017 * language.h (language_data): Remove c_style_arrays field.
4018 (language_defn::c_style_arrays_p): New member function.
4019 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4020 (m2_language::c_style_arrays_p): New member function.
4021 * objc-lang.c (objc_language_data): Remove c_style_arrays
4022 initializer.
4023 * opencl-lang.c (opencl_language_data): Likewise.
4024 * p-lang.c (pascal_language_data): Likewise.
4025 * rust-lang.c (rust_language_data): Likewise.
4026 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4027 and update local variable to a bool.
4028 * valops.c (value_cast): Update call to c_style_arrays_p.
4029 (value_array): Likewise.
4030 * value.c (coerce_array): Likewise.
4031
4032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * ada-lang.c (ada_language_data): Remove la_language initializer.
4035 * c-lang.c (c_language_data): Likewise.
4036 (cplus_language_data): Likewise.
4037 (asm_language_data): Likewise.
4038 (minimal_language_data): Likewise.
4039 * d-lang.c (d_language_data): Likewise.
4040 * f-lang.c (f_language_data): Likewise.
4041 * go-lang.c (go_language_data): Likewise.
4042 * language.c (unknown_language_data): Likewise.
4043 (auto_language_data): Likewise.
4044 * language.h (language_data): Remove la_language field.
4045 (language_defn::language_defn): Initialise la_language field.
4046 (language_defn::la_language): New member variable.
4047 * m2-lang.c (m2_language_data): Remove la_language field.
4048 * objc-lang.c (objc_language_data): Likewise.
4049 * opencl-lang.c (opencl_language_data): Likewise.
4050 * p-lang.c (pascal_language_data): Likewise.
4051 * rust-lang.c (rust_language_data): Likewise.
4052
4053 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4054
4055 * ada-lang.c (ada_extensions): Delete, moved into
4056 ada_language::filename_extensions.
4057 (ada_language_data): Remove la_filename_extensions initializer.
4058 (ada_language::filename_extensions): New member function.
4059 * c-lang.c (c_extensions): Delete, moved into
4060 c_language::filename_extensions.
4061 (c_language_data): Remove la_filename_extensions initializer.
4062 (c_language::filename_extensions): New member function.
4063 (cplus_extensions): Delete, moved into
4064 cplus_language::filename_extensions.
4065 (cplus_language_data): Remove la_filename_extensions initializer.
4066 (cplus_language::filename_extensions): New member function.
4067 (asm_extensions): Delete, moved into
4068 asm_language::filename_extensions.
4069 (asm_language_data): Remove la_filename_extensions initializer.
4070 (asm_language::filename_extensions): New member function.
4071 (minimal_language_data): Remove la_filename_extensions
4072 initializer.
4073 * d-lang.c (d_extensions): Delete, moved into
4074 d_language::filename_extensions.
4075 (d_language_data): Remove la_filename_extensions initializer.
4076 (d_language::filename_extensions): New member function.
4077 * f-lang.c (f_extensions): Delete, moved into
4078 f_language::filename_extensions.
4079 (f_language_data): Remove la_filename_extensions initializer.
4080 (f_language::filename_extensions): New member function.
4081 * go-lang.c (go_language_data): Remove la_filename_extensions
4082 initializer.
4083 * language.c (add_set_language_command): Update now that
4084 filename_extensions returns a vector.
4085 (unknown_language_data): Remove la_filename_extensions
4086 initializer.
4087 (auto_language_data): Likewise.
4088 * language.h (language_data): Remove la_filename_extensions field.
4089 (language_defn::filename_extensions): New member function.
4090 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4091 initializer.
4092 * objc-lang.c (objc_extensions): Delete, moved into
4093 objc_language::filename_extensions.
4094 (objc_language_data): Remove la_filename_extensions initializer.
4095 (objc_language::filename_extensions): New member function.
4096 * opencl-lang.c (opencl_language_data): Remove
4097 la_filename_extensions initializer.
4098 * p-lang.c (pascal_extensions): Delete, moved into
4099 pascal_language::filename_extensions.
4100 (pascal_language_data): Remove la_filename_extensions initializer.
4101 (pascal_language::filename_extensions): New member function.
4102 * rust-lang.c (rust_extensions): Delete, moved into
4103 rust_language::filename_extensions.
4104 (rust_language_data): Remove la_filename_extensions initializer.
4105 (rust_language::filename_extensions): New member function.
4106 * symfile.c (add_filename_language): Add new assert.
4107
4108 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * ada-lang.c (ada_language_data): Remove la_name and
4111 la_natural_name initializers.
4112 (ada_language::name): New member function.
4113 (ada_language::natural_name): New member function.
4114 * c-lang.c (c_language_data): Remove la_name and
4115 la_natural_name initializers.
4116 (c_language::name): New member function.
4117 (c_language::natural_name): New member function.
4118 (cplus_language_data): Remove la_name and
4119 la_natural_name initializers.
4120 (cplus_language::name): New member function.
4121 (cplus_language::natural_name): New member function.
4122 (asm_language_data): Remove la_name and
4123 la_natural_name initializers.
4124 (asm_language::name): New member function.
4125 (asm_language::natural_name): New member function.
4126 (minimal_language_data): Remove la_name and
4127 la_natural_name initializers.
4128 (minimal_language::name): New member function.
4129 (minimal_language::natural_name): New member function.
4130 * compile/compile.c (compile_to_object): Update call to
4131 lanugage_defn::name.
4132 * d-lang.c (d_language_data): Remove la_name and
4133 la_natural_name initializers.
4134 (d_language::name): New member function.
4135 (d_language::natural_name): New member function.
4136 * expprint.c (print_subexp_standard): Update call to
4137 language_defn::name.
4138 (dump_raw_expression): Likewise
4139 (dump_prefix_expression): Likewise.
4140 * f-lang.c (f_language_data): Remove la_name and
4141 la_natural_name initializers.
4142 (f_language::name): New member function.
4143 (f_language::natural_name): New member function.
4144 * go-lang.c (go_language_data): Remove la_name and
4145 la_natural_name initializers.
4146 (go_language::name): New member function.
4147 (go_language::natural_name): New member function.
4148 * language.c (show_language_command): Update call to
4149 language_defn::name.
4150 (set_language_command): Likewise.
4151 (language_enum): Likewise.
4152 (language_str): Likewise.
4153 (add_set_language_command): Likewise, use
4154 language_defn::natural_name in the doc string.
4155 (unknown_language_data): Remove la_name and
4156 la_natural_name initializers.
4157 (unknown_language::name): New member function.
4158 (unknown_language::natural_name): New member function.
4159 (auto_language_data): Remove la_name and
4160 la_natural_name initializers.
4161 (auto_language::name): New member function.
4162 (auto_language::natural_name): New member function.
4163 (language_lookup_primitive_type_as_symbol): Update call to
4164 language_defn::name.
4165 * language.h (language_data): Remove la_name and la_natural_name
4166 member variables.
4167 (language_defn::name): New member function.
4168 (language_defn::natural_name): New member function.
4169 * m2-lang.c (m2_language_data): Remove la_name and
4170 la_natural_name initializers.
4171 (m2_language::name): New member function.
4172 (m2_language::natural_name): New member function.
4173 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4174 language_defn::natural_name.
4175 * objc-lang.c (objc_language_data): Remove la_name and
4176 la_natural_name initializers.
4177 (objc_language::name): New member function.
4178 (objc_language::natural_name): New member function.
4179 * opencl-lang.c (opencl_language_data): Remove la_name and
4180 la_natural_name initializers.
4181 (opencl_language::name): New member function.
4182 (opencl_language::natural_name): New member function.
4183 * p-lang.c (pascal_language_data): Remove la_name and
4184 la_natural_name initializers.
4185 (pascal_language::name): New member function.
4186 (pascal_language::natural_name): New member function.
4187 * rust-lang.c (rust_language_data): Remove la_name and
4188 la_natural_name initializers.
4189 (rust_language::name): New member function.
4190 (rust_language::natural_name): New member function.
4191 * symtab.c (lookup_language_this): Update call to
4192 language_defn::name.
4193
4194 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * ada-lang.c (ada_language_data): Remove la_name_of_this
4197 initializer.
4198 * ax-gdb.c (gen_expr): Update call to name_of_this.
4199 * c-exp.y (classify_name): Likewise.
4200 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4201 (cplus_language_data): Likewise.
4202 (cplus_language::name_of_this): New member function.
4203 (asm_language_data): Remove la_name_of_this initializer.
4204 (minimal_language_data): Likewise.
4205 * d-lang.c (d_language_data): Likewise.
4206 (d_language::name_of_this): New member function.
4207 * expprint.c (print_subexp_standard): Update call to name_of_this.
4208 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4209 * go-lang.c (go_language_data): Likewise.
4210 * language.c (unknown_language_data): Likewise.
4211 (unknown_language::name_of_this): New member function.
4212 (auto_language_data): Remove la_name_of_this initializer.
4213 (auto_language::name_of_this): New member function.
4214 * language.h (language_data): Delete la_name_of_this member
4215 variable.
4216 (language_defn::name_of_this): New member function.
4217 * m2-lang.c (m2_language_data): Remove la_name_of_this
4218 initializer.
4219 * objc-lang.c (objc_language_data): Likewise.
4220 (objc_language::name_of_this): New member function.
4221 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4222 initializer.
4223 * p-lang.c (pascal_language_data): Likewise.
4224 (pascal_language::name_of_this): New member function.
4225 * rust-lang.c (rust_language_data): Remove la_name_of_this
4226 initializer.
4227 * symtab.c (lookup_language_this): Update call to name_of_this.
4228 (lookup_symbol_aux): Likewise.
4229 * valops.c (value_of_this): Likewise.
4230
4231 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * ada-lang.c (ada_language_data): Remove
4234 la_struct_too_deep_ellipsis initializer.
4235 (ada_language::struct_too_deep_ellipsis): New member function.
4236 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4237 initializer.
4238 (cplus_language_data): Likewise.
4239 (asm_language_data): Likewise.
4240 (minimal_language_data): Likewise.
4241 * cp-valprint.c (cp_print_value): Update call to
4242 struct_too_deep_ellipsis.
4243 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4244 initializer.
4245 * f-lang.c (f_language_data): Likewise.
4246 (f_language::struct_too_deep_ellipsis): New member function.
4247 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4248 initializer.
4249 * language.c (unknown_language_data): Likewise.
4250 (auto_language_data): Likewise.
4251 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4252 member variable.
4253 (language_defn::struct_too_deep_ellipsis): New member function.
4254 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4255 initializer.Q
4256 * objc-lang.c (objc_language_data): Likewise.
4257 * opencl-lang.c (opencl_language_data): Likewise.
4258 * p-lang.c (pascal_language_data): Likewise.
4259 * rust-lang.c (rust_language_data): Likewise.
4260 * valprint.c (val_print_check_max_depth): Update call to
4261 struct_too_deep_ellipsis.
4262
4263 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4264
4265 * MAINTAINERS (Write After Approval): Add myself.
4266
4267 2020-09-15 Tom Tromey <tom@tromey.com>
4268
4269 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4270 Remove.
4271
4272 2020-09-15 Tom Tromey <tom@tromey.com>
4273
4274 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4275 and TYPE_CODE_METHODPTR cases.
4276 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4277 (c_value_print_inner): Update.
4278 * valprint.c (generic_value_print_memberptr): New function, from
4279 c_value_print_memberptr.
4280 (generic_value_print): Use it. Call cplus_print_method_ptr.
4281
4282 2020-09-15 Tom Tromey <tromey@adacore.com>
4283
4284 * python/python-internal.h (PyInt_FromLong): Remove define.
4285 * python/py-value.c (convert_value_from_python): Use
4286 gdb_py_object_from_longest.
4287 * python/py-type.c (typy_get_code): Use
4288 gdb_py_object_from_longest.
4289 * python/py-symtab.c (salpy_get_line): Use
4290 gdb_py_object_from_longest.
4291 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4292 gdb_py_object_from_longest.
4293 * python/py-record.c (recpy_gap_reason_code): Use
4294 gdb_py_object_from_longest.
4295 * python/py-record-btrace.c (recpy_bt_insn_size)
4296 (recpy_bt_func_level, btpy_list_count): Use
4297 gdb_py_object_from_longest.
4298 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4299 gdb_py_object_from_longest. Fix error handling.
4300 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4301 gdb_py_object_from_longest.
4302 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4303 gdb_py_object_from_longest.
4304 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4305 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4306 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4307
4308 2020-09-15 Tom Tromey <tromey@adacore.com>
4309
4310 * python/python.c (gdbpy_parameter_value): Use
4311 gdb_py_object_from_ulongest.
4312
4313 2020-09-15 Tom Tromey <tromey@adacore.com>
4314
4315 * python/py-infevents.c (create_register_changed_event_object):
4316 Use gdb_py_object_from_longest.
4317 * python/py-exitedevent.c (create_exited_event_object): Use
4318 gdb_py_object_from_longest.
4319
4320 2020-09-15 Tom Tromey <tromey@adacore.com>
4321
4322 * python/python.c (gdbpy_parameter_value): Use
4323 gdb_py_object_from_longest.
4324 * python/py-type.c (convert_field, typy_range): Use
4325 gdb_py_object_from_longest.
4326 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4327 gdb_py_object_from_longest.
4328 * python/py-lazy-string.c (stpy_get_length): Use
4329 gdb_py_object_from_longest.
4330 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4331 gdb_py_object_from_longest.
4332 * python/py-infevents.c (create_memory_changed_event_object): Use
4333 gdb_py_object_from_longest.
4334 * python/py-inferior.c (infpy_get_num): Use
4335 gdb_py_object_from_longest.
4336 (infpy_get_pid): Likewise.
4337
4338 2020-09-15 Tom Tromey <tromey@adacore.com>
4339
4340 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4341 defines.
4342 * python/py-value.c (valpy_long): Use
4343 gdb_py_object_from_ulongest.
4344 * python/py-symtab.c (salpy_get_pc): Use
4345 gdb_py_object_from_ulongest.
4346 (salpy_get_last): Likewise.
4347 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4348 gdb_py_object_from_ulongest.
4349 * python/py-lazy-string.c (stpy_get_address): Use
4350 gdb_py_object_from_ulongest.
4351 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4352 * python/py-arch.c (archpy_disassemble): Use
4353 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4354 error handling.
4355
4356 2020-09-15 Tom Tromey <tromey@adacore.com>
4357
4358 * python/python-internal.h (gdb_py_long_from_longest): Remove
4359 defines.
4360 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4361 * python/py-type.c (convert_field, typy_get_sizeof): Use
4362 gdb_py_object_from_longest.
4363 * python/py-record-btrace.c (btpy_list_index): Use
4364 gdb_py_object_from_longest.
4365
4366 2020-09-15 Tom Tromey <tromey@adacore.com>
4367
4368 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4369 * python/py-record.c (recpy_element_number): Use
4370 gdb_py_object_from_longest.
4371 (recpy_gap_number): Likewise.
4372
4373 2020-09-15 Tom Tromey <tromey@adacore.com>
4374
4375 * top.c (ui::ui): Update.
4376 (highest_ui_num): Remove.
4377 * top.h (struct ui) <num>: Remove.
4378
4379 2020-09-15 Tom Tromey <tromey@adacore.com>
4380
4381 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4382 * ui-style.c (ansi_regex_text): Now array.
4383 * rust-exp.y (number_regex_text): Now array.
4384 * linespec.c (linespec_quote_characters): Now array.
4385 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4386 Now arrays.
4387
4388 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * debuginfod-support.c (debuginfod_client_deleter): New.
4391 (debuginfod_client_up): New.
4392 (debuginfod_init): Return debuginfod_client_up.
4393 (debuginfod_source_query): Adjust.
4394 (debuginfod_debuginfo_query): Adjust.
4395
4396 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4397
4398 * debuginfod-support.c (debuginfod_source_query): Use
4399 make_unique_xstrdup.
4400
4401 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4404 with `type::instance_flags`.
4405
4406 2020-09-14 Michael Mullin <masmullin@gmail.com>
4407
4408 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4409 Remove baton parameter.
4410
4411 2020-09-14 Pedro Alves <pedro@palves.net>
4412
4413 * Makefile.in (SELFTESTS_SRCS): Add
4414 unittests/enum-flags-selftests.c.
4415 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4416 btrace_function_flags instead of enum btrace_function_flag.
4417 * compile/compile-c-types.c (convert_qualified): Use
4418 enum_flags::raw.
4419 * compile/compile-cplus-symbols.c (convert_one_symbol)
4420 (convert_symbol_bmsym):
4421 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4422 (compile_cplus_convert_struct_or_union_methods)
4423 (compile_cplus_instance::convert_qualified_base):
4424 * go-exp.y (parse_string_or_char): Add cast to int.
4425 * unittests/enum-flags-selftests.c: New file.
4426 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4427 type to btrace_thread_flags from btrace_thread_flag.
4428 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4429 local's type to btrace_thread_flags from btrace_thread_flag. Add
4430 cast in DEBUG call.
4431
4432 2020-09-14 Pedro Alves <pedro@palves.net>
4433
4434 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4435 * gdbtypes.c (address_space_name_to_int): Rename to ...
4436 (address_space_name_to_type_instance_flags): ... this.
4437 (address_space_int_to_name): Rename to ...
4438 (address_space_type_instance_flags_to_name): ... this.
4439 * gdbtypes.h (address_space_name_to_int): Rename to ...
4440 (address_space_name_to_type_instance_flags): ... this.
4441 (address_space_int_to_name): Rename to ...
4442 (address_space_type_instance_flags_to_name): ... this.
4443 * type-stack.c (type_stack::insert): Adjust to rename.
4444 * type-stack.h (type_stack::insert): Likewise.
4445
4446 2020-09-14 Pedro Alves <pedro@palves.net>
4447 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * avr-tdep.c (avr_address_class_type_flags): Return
4450 type_instance_flags.
4451 (avr_address_class_type_flags_to_name): Take a
4452 type_instance_flags.
4453 (avr_address_class_name_to_type_flags): Return bool and take a
4454 type_instance_flags.
4455 * d-lang.c (build_d_types): Use type::set_instance_flags.
4456 * ft32-tdep.c (ft32_address_class_type_flags): Return
4457 type_instance_flags.
4458 (ft32_address_class_type_flags_to_name): Take a
4459 type_instance_flags.
4460 (ft32_address_class_name_to_type_flags): Return bool and take a
4461 type_instance_flags.
4462 (ft32_gdbarch_init): Use type::set_instance_flags.
4463 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4464 * gdbarch.h, gdbarch.c: Regenerate.
4465 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4466 (address_class_name_to_type_flags): Use type_instance_flags and
4467 bool.
4468 * gdbtypes.c (address_space_name_to_int)
4469 (address_space_int_to_name, make_qualified_type): Use
4470 type_instance_flags.
4471 (make_qualified_type): Use type_instance_flags and
4472 type::set_instance_flags.
4473 (make_type_with_address_space, make_cv_type, make_vector_type)
4474 (check_typedef): Use type_instance_flags.
4475 (recursive_dump_type): Cast type_instance_flags to unsigned for
4476 printing.
4477 (copy_type_recursive): Use type::set_instance_flags.
4478 (gdbtypes_post_init): Use type::set_instance_flags.
4479 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4480 <m_instance_flags>: ... this.
4481 <instance_flags, set_instance_flags>: New methods.
4482 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4483 (SET_TYPE_INSTANCE_FLAGS): New.
4484 (address_space_name_to_int, address_space_int_to_name)
4485 (make_type_with_address_space): Pass flags using
4486 type_instance_flags instead of int.
4487 * stabsread.c (cleanup_undefined_types_noname): Use
4488 type::set_instance_flags.
4489 * s390-tdep.c (s390_address_class_type_flags): Return
4490 type_instance_flags.
4491 (s390_address_class_type_flags_to_name): Take a
4492 type_instance_flags.
4493 (s390_address_class_name_to_type_flags): Return bool and take a
4494 type_instance_flags.
4495 * type-stack.c (type_stack::follow_types): Use
4496 type_instance_flags.
4497 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4498
4499 2020-09-14 Tom Tromey <tromey@adacore.com>
4500
4501 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4502 * x86-tdep.c (x86_is_thunk_register_name)
4503 (x86_in_indirect_branch_thunk): Update.
4504 * sparc64-tdep.c (sparc64_fpu_register_names)
4505 (sparc64_cp0_register_names, sparc64_register_names)
4506 (sparc64_pseudo_register_names): Now const.
4507 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4508 cp0_registers_num>: Now const.
4509 * sparc-tdep.c (sparc_core_register_names)
4510 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4511 (sparc32_pseudo_register_names): Now const.
4512 (validate_tdesc_registers): Update.
4513 * rust-lang.c (rust_extensions): Now const.
4514 * p-lang.c (p_extensions): Now const.
4515 * objc-lang.c (objc_extensions): Now const.
4516 * nto-tdep.c (nto_thread_state_str): Now const.
4517 * moxie-tdep.c (moxie_register_names): Now const.
4518 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4519 Now const.
4520 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4521 (mips_linux_reg_names): Now const.
4522 (mips_gdbarch_init): Update.
4523 * microblaze-tdep.c (microblaze_register_names): Now const.
4524 * m68k-tdep.c (m68k_register_names): Now const.
4525 * m32r-tdep.c (m32r_register_names): Now const.
4526 * ia64-tdep.c (ia64_register_names): Now const.
4527 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4528 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4529 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4530 ymm_avx512_register_names, pkeys_register_names>: Now const.
4531 * i386-tdep.c (i386_register_names, i386_zmm_names)
4532 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4533 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4534 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4535 * f-lang.c (f_extensions): Now const.
4536 * d-lang.c (d_extensions): Now const.
4537 * csky-tdep.c (csky_register_names): Now const.
4538 * charset.c (default_charset_names, charset_enum): Now const.
4539 (_initialize_charset): Update.
4540 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4541 const.
4542 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4543 (bsd_uthread_solib_loaded): Update.
4544 (bsd_uthread_state): Now const.
4545 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4546 (amd64_ymm_avx512_names, amd64_ymmh_names)
4547 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4548 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4549 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4550 (amd64_dword_names): Now const.
4551 * agent.c (can_use_agent_enum): Now const.
4552 * ada-tasks.c (task_states, long_task_states): Now const.
4553 * ada-lang.c (known_runtime_file_name_patterns)
4554 (known_auxiliary_function_name_patterns, attribute_names)
4555 (standard_exc, ada_extensions): Now const.
4556
4557 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4558
4559 * bcache.h (struct bcache) <bcache>: Remove constructor.
4560 <m_hash_function, m_compare_function>: Remove.
4561 <~bcache>: Make virtual.
4562 <compare>: Remove static method, introduce virtual method.
4563 <default_hash>: Remove.
4564 <hash>: New virtual method.
4565 * bcache.c (bcache::expand_hash_table): Update.
4566 (bcache::insert): Update.
4567 (bcache::hash): New.
4568 (bcache::compare): Update comment and parameter names.
4569 * gdbtypes.c (types_deeply_equal): Update.
4570 * psymtab.h (struct psymbol_bcache): New struct.
4571 (class psymtab_storage) <psymtab_storage>: Make default.
4572 <psymbol_cache>: Change type to psymbol_bcache.
4573 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4574 (psymbol_hash): Change to...
4575 (psymbol_bcache::hash): ... this.
4576 (psymbol_compare): Change to...
4577 (psymbol_bcache::compare): ... this.
4578
4579 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4582 checking for initial lwp.
4583
4584 2020-09-14 Tom Tromey <tromey@adacore.com>
4585
4586 * m68k-tdep.c (m68k_extract_return_value): Use
4587 pointer_result_regnum.
4588 (m68k_store_return_value): Likewise.
4589 (m68k_reg_struct_return_p): Handle vectors and arrays.
4590 (m68k_return_value): Handle arrays.
4591 (m68k_svr4_return_value): Fix single-element aggregate handling.
4592 Handle long double. Adjust for embedded ABI.
4593 (m68k_svr4_init_abi): Set pointer_result_regnum.
4594 (m68k_embedded_init_abi): New function.
4595 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4596 (m68k_osabi_sniffer): New function.
4597 (_initialize_m68k_tdep): Register osabi sniffer.
4598 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4599 member.
4600
4601 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4602
4603 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4604 with gdb::unique_xmalloc_ptr<char>.
4605
4606 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4607
4608 * xml-support.h (xml_fetch_another): Change type to be a
4609 function_view.
4610 (xml_process_xincludes): Remove baton parameter.
4611 (xml_fetch_content_from_file): Change baton parameter to
4612 dirname.
4613 * xml-support.c (struct xinclude_parsing_data)
4614 <xinclude_parsing_data>: Remove baton parameter.
4615 <fetcher_baton>: Remove.
4616 (xinclude_start_include): Adjust.
4617 (xml_process_xincludes): Adjust.
4618 (xml_fetch_content_from_file): Replace baton parameter with
4619 dirname.
4620 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4621 (xml_init_syscalls_info): Use a lambda.
4622 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4623 (file_read_description_xml): Use a lambda.
4624 (fetch_available_features_from_target): Change baton parameter
4625 to target_ops.
4626 (target_read_description_xml): Use a lambda.
4627 (target_fetch_description_xml): Use a lambda.
4628 (string_read_description_xml): Update.
4629
4630 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4631
4632 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4633 uses with type::endianity_is_not_default.
4634
4635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (struct type) <endianity_is_not_default,
4638 set_endianity_is_not_default>: New methods.
4639 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4640 type::endianity_is_not_default, change all write call sites to
4641 use type::set_endianity_is_not_default.
4642
4643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4646 uses with type::is_fixed_instance.
4647
4648 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (struct type) <is_fixed_instance,
4651 set_is_fixed_instance>: New methods.
4652 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4653 write call sites to use type::set_is_fixed_instance.
4654
4655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4658 uses with type::is_gnu_ifunc.
4659
4660 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4663 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4664 use type::set_is_gnu_ifunc.
4665
4666 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4669 uses with type::stub_is_supported.
4670
4671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4674 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4675 use type::set_stub_is_supported.
4676
4677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4680 uses with type::is_vector.
4681
4682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4685 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4686 use type::set_is_vector.
4687
4688 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4691 uses with type::has_varargs.
4692
4693 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4696 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4697 use type::set_has_varargs.
4698
4699 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4702 uses with type::is_prototyped.
4703
4704 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4707 New methods.
4708 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4709 call sites to use type::set_is_prototyped.
4710
4711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4714 uses with type::target_is_stub.
4715
4716 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4719 New methods.
4720 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4721 sites to use type::set_target_is_stub.
4722
4723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (TYPE_STUB): Remove, replace all
4726 uses with type::is_stub.
4727
4728 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4731 (TYPE_STUB): Use type::is_stub, change all write call sites to
4732 use type::set_is_stub.
4733
4734 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4737 type::has_no_signedness.
4738
4739 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * gdbtypes.h (struct type) <has_no_signedness,
4742 set_has_no_signedness>: New methods.
4743 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4744 call sites to use type::set_has_no_signedness.
4745
4746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4749 type::is_unsigned.
4750
4751 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4754 methods.
4755 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4756 sites to use type::set_is_unsigned.
4757
4758 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4759 Adam Renquinha <arenquinha@cimeq.qc.ca>
4760
4761 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4762 pointer and stack frame offset when unwinding.
4763
4764 2020-09-13 Pedro Alves <pedro@palves.net>
4765
4766 * NEWS: Document "-break-insert --qualified".
4767 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4768
4769 2020-09-13 Pedro Alves <pedro@palves.net>
4770
4771 * linespec.c (classify_mtype, compare_msyms): Delete.
4772 (search_minsyms_for_name): Remove classification logic. Instead
4773 filter out trampoline symbols if we also found an external
4774 function of the same name.
4775
4776 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4777
4778 * NEWS: Create a new section for the next release branch.
4779 Rename the section of the current branch, now that it has
4780 been cut.
4781
4782 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4783
4784 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4785 * version.in: Bump version to 11.0.50.DATE-git.
4786
4787 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4788
4789 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4790
4791 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4792 Felix Willgerodt <Felix.Willgerodt@intel.com>
4793
4794 * gdbarch.sh: Added bfloat16 type.
4795 * gdbarch.c: Regenerated.
4796 * gdbarch.h: Regenerated.
4797 * gdbtypes.c (floatformats_bfloat16): New struct.
4798 (gdbtypes_post_init): Add builtin_bfloat16.
4799 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4800 (floatformats_bfloat16): New struct.
4801 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4802 (i386_ymm_type): Add field "v16_bfloat16"
4803 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4804 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4805 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4806 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4807 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4808 * features/i386/64bit-avx512.c: Regenerated.
4809 * features/i386/64bit-sse.xml: Add bfloat16 type.
4810 * features/i386/64bit-sse.c: Regenerated.
4811
4812 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4813
4814 * i386-tdep.c (i386_zmm_type): Fix field names.
4815 (i386_ymm_type): Fix field names.
4816
4817 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4818
4819 * breakpoint.c: Fix typo in the help message of the
4820 "set breakpoint condition-evaluation" command.
4821
4822 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4823
4824 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4825 * (nbsd_nat_target::pid_to_exec_file)
4826 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4827 (nbsd_nat_target::post_startup_inferior)
4828 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4829 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4830 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4831 * (nbsd_thread_lister): Remove.
4832
4833 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4834
4835 * fork-inferior.c (startup_inferior): Avoid double free.
4836
4837 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4838
4839 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4840 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4841
4842 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4843
4844 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4845 * netbsd-nat.c: Include <sys/ptrace.h>.
4846 * (netbsd_nat::enable_proc_events): Add.
4847
4848 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4849
4850 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4851 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4852 (netbsd_nat::for_each_thread): Add.
4853 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4854 "gdbsupport/common-debug.h".
4855 * (netbsd_nat::netbsd_thread_lister)
4856 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4857 (netbsd_nat::for_each_thread): Add.
4858
4859 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4860
4861 * netbsd-nat.h: Include <unistd.h>.
4862 * (netbsd_nat::pid_to_exec_file): Add.
4863 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4864 * (netbsd_nat::pid_to_exec_file) Add.
4865
4866 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4867
4868 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4869
4870 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4871
4872 * netbsd-nat.h: New file.
4873 * netbsd-nat.c: Likewise.
4874
4875 2020-09-09 Tom Tromey <tromey@adacore.com>
4876
4877 * ada-lang.c (remove_extra_symbols): Do not increment when
4878 removing an element
4879
4880 2020-09-08 Tom Tromey <tromey@adacore.com>
4881
4882 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4883
4884 2020-09-08 Tom Tromey <tromey@adacore.com>
4885
4886 PR win32/25302:
4887 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4888 (gdb_bfd_init_data): New function.
4889 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4890
4891 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4892
4893 * infrun.c (fetch_inferior_event): Use
4894 `switch_to_target_no_thread` to switch the target.
4895
4896 2020-09-06 Tom Tromey <tom@tromey.com>
4897
4898 * symfile.h (dwarf2_free_objfile): Don't declare.
4899
4900 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4901
4902 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4903 to match 16 byte real/complex type generated by Flang compiler.
4904
4905 2020-09-03 Tom de Vries <tdevries@suse.de>
4906
4907 PR breakpoint/26546
4908 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4909 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4910
4911 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4912
4913 * maint.c (index_digits): New function.
4914 (struct maint_print_section_data): Remove.
4915 (print_bfd_section_info): Remove print_data parameter, add arg
4916 and index_digits.
4917 (print_objfile_section_info): Likewise.
4918 (print_bfd_section_info_maybe_relocated): Likewise (plus
4919 objfile).
4920 (maintenance_info_sections): Adjust calls.
4921
4922 2020-09-02 Tom Tromey <tromey@adacore.com>
4923
4924 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4925 for null pointers.
4926 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4927
4928 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4929
4930 * bcache.h (struct bcache) <insert>: Change type of `added` to
4931 pointer to bool.
4932 * bcache.c (bcache::insert): Likewise.
4933 * gdbtypes.c (check_types_worklist): Adjust.
4934 * psymtab.c (add_psymbol_to_bcache): Adjust.
4935
4936 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4937
4938 * corelow.c (unordered_set): Include.
4939 (class core_target): Add field 'm_core_unavailable_mappings'.
4940 (core_target::build_file_mappings): Print only one warning
4941 per inaccessible file. Add unavailable/broken mappings
4942 to m_core_unavailable_mappings.
4943 (core_target::xfer_partial): Call...
4944 (core_target::xfer_memory_via_mappings): New method.
4945
4946 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4947
4948 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4949 type to bool.
4950
4951 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4952
4953 * dwarf2/read.c (struct field_info): Fix indentation.
4954
4955 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4958 ordering in comment.
4959 * frame.c (frame_id_eq): Fix indentation.
4960
4961 2020-08-31 Scott Linder <scott@scottlinder.com>
4962 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4965 inline frame ids in outer frame.
4966
4967 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4970 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4971 (outer_frame_id): Use FID_STACK_OUTER instead of
4972 FID_STACK_INVALID.
4973 (frame_id_p): Don't check for outer_frame_id.
4974
4975 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4978 regnum/frame in value. Call allocate_value_lazy.
4979 * frame.c (frame_unwind_register_value): Use
4980 val_print_not_saved.
4981
4982 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4985
4986 2020-08-29 Pedro Alves <pedro@palves.net>
4987
4988 * progspace.c (print_program_space): Use all_inferiors. Switch to
4989 the inferior before calling target_pid_to_str.
4990
4991 2020-08-28 Tom Tromey <tom@tromey.com>
4992
4993 * xcoffread.c (xcoff_end_psymtab): Update comment.
4994 * dbxread.c (dbx_end_psymtab): Update comment.
4995
4996 2020-08-28 Tom de Vries <tdevries@suse.de>
4997
4998 PR breakpoint/26544
4999 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5000 event_location.
5001 (create_breakpoint): Same.
5002 (base_breakpoint_decode_location): Same.
5003 (bkpt_create_sals_from_location): Same.
5004 (bkpt_decode_location): Same.
5005 (bkpt_probe_create_sals_from_location): Same.
5006 (bkpt_probe_decode_location): Same.
5007 (tracepoint_create_sals_from_location): Same.
5008 (tracepoint_decode_location): Same.
5009 (tracepoint_probe_decode_location): Same.
5010 (strace_marker_create_sals_from_location): Same.
5011 (strace_marker_decode_location): Same.
5012 (create_sals_from_location_default): Same.
5013 (decode_location_default): Same.
5014 * breakpoint.h (struct breakpoint_ops): Same.
5015 (create_breakpoint): Same.
5016 * linespec.h (decode_line_full): Same.
5017 * linespec.c (decode_line_full): Same. Throw error if
5018 result.size () == 0.
5019
5020 2020-08-27 Pedro Alves <pedro@palves.net>
5021
5022 PR gdb/26524
5023 * breakpoint.c (until_break_fsm) <location_breakpoint,
5024 caller_breakpoint>: Delete fields.
5025 <breakpoints>: New field.
5026 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5027 two individual breakpoints.
5028 (until_break_fsm::should_stop): Loop over breakpoints in the
5029 breakpoint vector.
5030 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5031 vector.
5032 (until_break_command): Handle location expanding into multiple
5033 sals.
5034
5035 2020-08-27 Pedro Alves <pedro@palves.net>
5036
5037 PR gdb/26523
5038 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5039 bp_until breakpoints user-specified locations. Update intro
5040 comment.
5041
5042 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5043
5044 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5045 gdb_bfd_sections): New.
5046 * maint.c (print_bfd_section_info): Change param type to
5047 maint_print_section_data.
5048 (print_objfile_section_info): Likewise.
5049 (print_bfd_section_info_maybe_relocated): Likewise.
5050 (maintenance_info_sections): Use gdb_bfd_sections.
5051
5052 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5053
5054 * MAINTAINERS: Add ARC target and maintainer.
5055
5056 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5057
5058 * configure.tgt: ARC support for GNU/Linux.
5059 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5060 * arc-linux-tdep.c: New file.
5061 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5062 * arc-tdep.c (arc_write_pc): Use it.
5063
5064 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5065
5066 * arc-tdep.c (arc_check_for_hardware_loop): New.
5067 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5068
5069 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5070
5071 * arc-tdep.h: Include "gdbarch.h".
5072
5073 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5074
5075 * arch/arc.h
5076 (arc_gdbarch_features): New class to stir the selection of target XML.
5077 (arc_create_target_description): Use FEATURES to choose XML target.
5078 (arc_lookup_target_description): Use arc_create_target_description
5079 to create _new_ target descriptions or return the already created
5080 ones if the FEATURES is the same.
5081 * arch/arc.c: Implementation of prototypes described above.
5082 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5083 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5084 * arc-tdep.c (*_feature_name): Make feature names consistent.
5085 (arc_register_feature): A new struct to hold information about
5086 registers of a particular target/feature.
5087 (arc_check_tdesc_feature): Check if XML provides registers in
5088 compliance with ARC_REGISTER_FEATURE structs.
5089 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5090 (determine_*_reg_feature_set): Which feature name to look for.
5091 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5092 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5093 to expected ISA enums to be used in arc_gdbarch_features structs.
5094 * features/Makefile (FEATURE_XMLFILES): Add new files.
5095 * gdb/features/arc/v1-aux.c: New file.
5096 * gdb/features/arc/v1-aux.xml: Likewise.
5097 * gdb/features/arc/v1-core.c: Likewise.
5098 * gdb/features/arc/v1-core.xml: Likewise.
5099 * gdb/features/arc/v2-aux.c: Likewise.
5100 * gdb/features/arc/v2-aux.xml: Likewise.
5101 * gdb/features/arc/v2-core.c: Likewise.
5102 * gdb/features/arc/v2-core.xml: Likewise.
5103 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5104
5105 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5106 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 PR m2/26372
5109 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5110 an assert. Remove single element array indexing pattern as the
5111 MULTI_SUBSCRIPT support will handle this case too.
5112
5113 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * value.h (valprint_check_validity): Move declaration from
5116 here...
5117 * valprint.h (valprint_check_validity): ... to here.
5118
5119 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5120
5121 * debug.h: New file.
5122 * debug.c (debug_prefixed_vprintf): New function.
5123 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5124 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5125
5126 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * infrun.h (infrun_debug_printf_1): New function declaration.
5129 (infrun_debug_printf): New macro.
5130 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5131 throughout.
5132 (infrun_debug_printf): New function.
5133 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5134 (handle_jit_event): Likewise.
5135
5136 2020-08-21 Mark Wielaard <mark@klomp.org>
5137
5138 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5139
5140 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * frame.c (enum class frame_id_status): New.
5143 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5144 (fprintf_frame): Update.
5145 (compute_frame_id): Set frame id status to "computing" on entry.
5146 Set it back to "not_computed" on failure and to "computed" on
5147 success.
5148 (get_frame_id): Assert the frame id is not being computed.
5149 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5150 (create_new_frame): Likewise.
5151 (frame_cleanup_after_sniffer): Update assert.
5152
5153 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * regcache.c (pid_ptid_regcache_map): New type.
5156 (target_ptid_regcache_map): Remove.
5157 (target_pid_ptid_regcache_map): New type.
5158 (regcaches): Change type to target_pid_ptid_regcache_map.
5159 (get_thread_arch_aspace_regcache): Update.
5160 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5161 case.
5162 (regcaches_size): Update.
5163 (regcache_count): Update.
5164 (registers_changed_ptid_target_pid_test): New.
5165 (_initialize_regcache): Register new test.
5166
5167 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5168
5169 * regcache.c (regcache_count): New.
5170 (struct regcache_test_data): New.
5171 (regcache_test_data_up): New.
5172 (populate_regcaches_for_test): New.
5173 (regcaches_test): Remove.
5174 (get_thread_arch_aspace_regcache_test): New.
5175 (registers_changed_ptid_all_test): New.
5176 (registers_changed_ptid_target_test): New.
5177 (registers_changed_ptid_target_ptid_test): New.
5178 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5179 (_initialize_regcache): Register new tests.
5180
5181 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5184 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5185 gdbarch and aspace parameter. Use current inferior's aspace.
5186 Validate regcache's arch value.
5187 (regcaches_test): Update.
5188
5189 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * regcache.c (regcaches_test): Call registers_changed.
5192
5193 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5194
5195 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5196
5197 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5198
5199 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5200 to find the end of prologue for flang compiled binaries.
5201 * arm-tdep.c (arm_skip_prologue): Likewise.
5202 * i386-tdep.c (i386_skip_prologue): Likewise.
5203 * producer.c (producer_is_llvm): New function.
5204 (producer_parsing_tests): Added new tests for clang/flang.
5205 * producer.h (producer_is_llvm): New declaration.
5206
5207 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * linux-nat.c (linux_nat_debug_printf): New function.
5210 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5211
5212 2020-08-18 Aaron Merey <amerey@redhat.com>
5213
5214 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5215 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5216 (CLIBS): Add DEBUGINFOD_LIBS.
5217
5218 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5219
5220 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5221 'gdbarch_num_regs'.
5222
5223 2020-08-17 Tom Tromey <tromey@adacore.com>
5224
5225 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5226 ada_get_decoded_value returns NULL.
5227
5228 2020-08-17 Tom Tromey <tromey@adacore.com>
5229
5230 * python/py-inferior.c (infpy_search_memory): Use
5231 gdb_py_object_from_ulongest.
5232 * python/py-infevents.c (create_inferior_call_event_object)
5233 (create_memory_changed_event_object): Use
5234 gdb_py_object_from_ulongest.
5235 * python/py-linetable.c (ltpy_entry_get_pc): Use
5236 gdb_py_object_from_ulongest.
5237
5238 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * loc.c (class symbol_needs_eval_context): Fix indentation.
5241
5242 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5243
5244 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5245 bool.
5246
5247 2020-08-17 Tom de Vries <tdevries@suse.de>
5248
5249 PR gdb/26393
5250 * gdbtypes.c (dump_dynamic_prop): New function.
5251 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5252
5253 2020-08-15 Tom de Vries <tdevries@suse.de>
5254
5255 PR backtrace/26390
5256 * stack.c (print_frame_args): Temporarily set the selected
5257 frame to FRAME while printing the frame's arguments.
5258
5259 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5260
5261 PR breakpoints/26385
5262 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5263 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5264
5265 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5266
5267 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5268 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5269 and >= to check return value instead of == -1 and != -1.
5270
5271 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5272
5273 * utils.h (class gdb_argv) <as_array_view>: New method.
5274 * utils.c (gdb_argv_as_array_view_test): New.
5275 (_initialize_utils): Register selftest.
5276 * maint.c (maintenance_selftest): Use the new method.
5277
5278 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5279
5280 * target.h (supports_dumpcore, dumpcore): New
5281 function declarations.
5282 * target.c (supports_dumpcore, dumpcore): New
5283 functions.
5284 * target-delegates.c: Rebuild.
5285 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5286 and target_dumpcore ().
5287
5288 2020-08-13 Aaron Merey <amerey@redhat.com>
5289
5290 * debuginfod-support.c: Replace global variables with user_data.
5291
5292 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5293
5294 * maint.c (maintenance_selftest): Split args and pass array_view
5295 to run_tests.
5296
5297 2020-08-12 Luis Machado <luis.machado@linaro.org>
5298
5299 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5300 type's length.
5301 Use %s and pulongest to print the length.
5302
5303 2020-08-12 Pedro Alves <palves@redhat.com>
5304
5305 * NEWS: Move "Multi-target debugging support" item to the
5306 "Changes since GDB 9" section.
5307
5308 2020-08-12 Pedro Alves <palves@redhat.com>
5309
5310 PR gdb/26336
5311 * progspace.c (program_space::remove_objfile): Invalidate the
5312 frame cache.
5313
5314 2020-08-11 Tom de Vries <tdevries@suse.de>
5315
5316 * MAINTAINERS: Mark ms1 as deleted.
5317
5318 2020-08-10 Luis Machado <luis.machado@linaro.org>
5319
5320 PR gdb/26310
5321
5322 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5323 act accordingly.
5324 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5325 movz/str/stur/stp skipping behavior.
5326
5327 2020-08-10 Luis Machado <luis.machado@linaro.org>
5328
5329 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5330 struct user_sve_header instead of struct sve_context.
5331
5332 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5333
5334 * read.h (dwarf2_fetch_die_loc_sect_off,
5335 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5336 `void *` parameter with function_view.
5337 * read.c (dwarf2_fetch_die_loc_sect_off,
5338 dwarf2_fetch_die_loc_cu_off): Likewise.
5339 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5340 (per_cu_dwarf_call): Adjust.
5341 (get_frame_address_in_block_wrapper): Remove.
5342 (indirect_synthetic_pointer): Adjust.
5343 (get_ax_pc): Remove.
5344 (dwarf2_compile_expr_to_ax): Adjust.
5345
5346 2020-08-08 Tom de Vries <tdevries@suse.de>
5347
5348 PR build/26344
5349 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5350 constructor.
5351 * regcache.c (get_thread_arch_aspace_regcache): Same.
5352
5353 2020-08-07 Tom Tromey <tromey@adacore.com>
5354
5355 * ravenscar-thread.c
5356 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5357 New method.
5358 (ravenscar_thread_target::wait): Check
5359 runtime_initialized.
5360 (ravenscar_thread_target::prepare_to_store)
5361 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5362 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5363 (ravenscar_thread_target::stopped_by_watchpoint)
5364 (ravenscar_thread_target::stopped_data_address)
5365 (ravenscar_thread_target::core_of_thread): Use
5366 scoped_restore_current_thread and
5367 set_base_thread_from_ravenscar_task.
5368
5369 2020-08-07 Tom Tromey <tromey@adacore.com>
5370
5371 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5372
5373 2020-08-07 Tom Tromey <tromey@adacore.com>
5374
5375 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5376 update_inferior_ptid before update_thread_list.
5377 (temporarily_change_regcache_ptid): New class.
5378 (ravenscar_thread_target::fetch_registers)
5379 (ravenscar_thread_target::store_registers)
5380 (ravenscar_thread_target::prepare_to_store): Use base thread when
5381 forwarding operation.
5382
5383 2020-08-07 Tom Tromey <tromey@adacore.com>
5384
5385 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5386 "is_pid" case.
5387
5388 2020-08-07 Tom Tromey <tromey@adacore.com>
5389
5390 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5391 New methods.
5392 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5393 first.
5394 (ravenscar_thread_target::add_thread): Rename from
5395 ravenscar_add_thread.
5396 (ravenscar_thread_target::update_thread_list): Use a lambda.
5397 (ravenscar_thread_target::xfer_partial): New method.
5398
5399 2020-08-07 Tom Tromey <tromey@adacore.com>
5400
5401 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5402 gdb::function_view.
5403 (iterate_over_live_ada_tasks): Change type of argument.
5404 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5405 of argument.
5406
5407 2020-08-07 Tom Tromey <tromey@adacore.com>
5408
5409 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5410 Remove.
5411 (ravenscar_thread_target::extra_thread_info): Remove.
5412 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5413 defer to target beneath for non-Ravenscar threads.
5414
5415 2020-08-07 Tom Tromey <tromey@adacore.com>
5416
5417 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5418 get_base_thread_from_ravenscar_task>: Now methods.
5419 <m_cpu_map>: New member.
5420 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5421 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5422 (ravenscar_thread_target::task_is_currently_active): Update.
5423 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5424 Now a method.
5425 (ravenscar_thread_target::add_active_thread): Put initial thread
5426 into the m_cpu_map.
5427
5428 2020-08-07 Tom Tromey <tromey@adacore.com>
5429
5430 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5431 event_ptid.
5432
5433 2020-08-07 Tom Tromey <tromey@adacore.com>
5434
5435 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5436 runtime_initialized.
5437
5438 2020-08-07 Tom Tromey <tromey@adacore.com>
5439
5440 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5441 add_active_thread.
5442 (ravenscar_thread_target::add_active_thread): Now public.
5443 (ravenscar_inferior_created): Call add_active_thread after pushing
5444 the target.
5445
5446 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5447
5448 * regcache.c (ptid_regcache_map): New type.
5449 (target_ptid_regcache_map): New type.
5450 (regcaches): Change type to target_ptid_regcache_map.
5451 (get_thread_arch_aspace_regcache): Update to regcaches' new
5452 type.
5453 (regcache_thread_ptid_changed): Likewise.
5454 (registers_changed_ptid): Likewise.
5455 (regcaches_size): Likewise.
5456 (regcaches_test): Update.
5457 (regcache_thread_ptid_changed): Update.
5458 * regcache.h (regcache_up): New type.
5459 * gdbsupport/ptid.h (hash_ptid): New struct.
5460
5461 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * observable.h (thread_ptid_changed): Add parameter
5464 `process_stratum_target *`.
5465 * infrun.c (infrun_thread_ptid_changed): Add parameter
5466 `process_stratum_target *` and use it.
5467 (selftests): New namespace.
5468 (infrun_thread_ptid_changed): New function.
5469 (_initialize_infrun): Register selftest.
5470 * regcache.c (regcache_thread_ptid_changed): Add parameter
5471 `process_stratum_target *` and use it.
5472 (regcache_thread_ptid_changed): New function.
5473 (_initialize_regcache): Register selftest.
5474 * thread.c (thread_change_ptid): Pass target to
5475 thread_ptid_changed observable.
5476
5477 2020-08-06 Caroline Tice <cmtice@google.com>
5478
5479 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5480 (struct dwp_sections): Update field comments. Add loclists and
5481 rnglists fields.
5482 (struct virtual_v2_dwo_sections): Rename struct to
5483 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5484 size & offset fields for loclists and rnglists.
5485 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5486 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5487 skipping dummy type units.
5488 (create_dwp_hash_table): Update the large comment above the function to
5489 discuss Version 5 DWP files as well, with references. Update all the
5490 version checks in the function to check for version 5 as well. Add new
5491 section at the end to create dwp hash table for version 5.
5492 (create_dwp_v2_section): Rename function to
5493 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5494 Add V5 to error message text.
5495 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5496 into calls to create_dwp_v2_or_v5_section.
5497 (create_dwo_unit_in_dwp_v5): New function.
5498 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5499 check for version2; add else clause to handle version 5.
5500 (open_and_init_dwo_file): Add code to check dwarf version & only call
5501 create_debug_types_hash_table (with sections.types) if version is not 5;
5502 else call create_debug_type_hash_table, with sections.info.
5503 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5504 version 5.
5505 (dwarf2_locate_v5_dwp_sections): New function.
5506 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5507 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5508
5509 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5510
5511 * regcache.h (class regcache): Remove friend
5512 registers_changed_ptid.
5513 <regcache_thread_ptid_changed>: Remove.
5514 <regcaches>: Remove.
5515 * regcache.c (regcache::regcaches): Rename to...
5516 (regcaches): ... this. Make static.
5517 (get_thread_arch_aspace_regcache): Update.
5518 (regcache::regcache_thread_ptid_changed): Rename to...
5519 (regcache_thread_ptid_changed): ... this. Update.
5520 (class regcache_access): Remove.
5521 (regcaches_test): Update.
5522 (_initialize_regcache): Update.
5523 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5524 <forward_list>.
5525
5526 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * regcache.h (class regcache) <current_regcache>: Rename to...
5529 <regcaches>: ... this. Move doc here.
5530 * regcache.c (regcache::current_regcache) Rename to...
5531 (regcache::regcaches): ... this. Move doc to header.
5532 (get_thread_arch_aspace_regcache): Update.
5533 (regcache::regcache_thread_ptid_changed): Update.
5534 (registers_changed_ptid): Update.
5535 (class regcache_access) <current_regcache_size>: Rename to...
5536 <regcaches_size>: ... this.
5537 (current_regcache_test): Rename to...
5538 (regcaches_test): ... this.
5539 (_initialize_regcache): Update.
5540
5541 2020-08-06 Victor Collod <vcollod@nvidia.com>
5542
5543 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5544
5545 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5546
5547 * corelow.c (core_target::build_file_mappings): Don't output
5548 null pathname in warning.
5549
5550 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5551
5552 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5553 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5554 gdb.dwarf2/dw2-single-line-discriminators.exp,
5555 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5556
5557 2020-08-05 Tom Tromey <tromey@adacore.com>
5558
5559 PR rust/26197:
5560 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5561 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5562 Fix off-by-one and type size errors in ordinary case.
5563
5564 2020-08-05 Tom de Vries <tdevries@suse.de>
5565
5566 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5567 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5568
5569 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * frame.h (frame_id_p): Return bool.
5572 (frame_id_artificial_p): Return bool.
5573 (frame_id_eq): Return bool.
5574 (has_stack_frames): Return bool.
5575 (get_selected_frame): Fix typo in comment.
5576 (get_frame_pc_if_available): Return bool.
5577 (get_frame_address_in_block_if_available): Return bool.
5578 (get_frame_func_if_available): Return bool.
5579 (read_frame_register_unsigned): Return bool.
5580 (get_frame_register_bytes): Return bool.
5581 (safe_frame_unwind_memory): Return bool.
5582 (deprecated_frame_register_read): Return bool.
5583 (frame_unwinder_is): Return bool.
5584 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5585 bool.
5586 <this_id::p>: Likewise.
5587 <prev_p>: Likewise.
5588 (frame_stash_add): Return bool.
5589 (get_frame_id): Use bool.
5590 (frame_id_build_special) Use bool.
5591 (frame_id_build_unavailable_stack): Use bool.
5592 (frame_id_build): Use bool.
5593 (frame_id_p): Return bool, use true/false instead of 1/0.
5594 (frame_id_artificial_p): Likewise.
5595 (frame_id_eq): Likewise.
5596 (frame_id_inner): Likewise.
5597 (get_frame_func_if_available): Likewise.
5598 (read_frame_register_unsigned): Likewise.
5599 (deprecated_frame_register_read): Likewise.
5600 (get_frame_register_bytes): Likewise.
5601 (has_stack_frames): Likewise.
5602 (inside_main_func): Likewise.
5603 (inside_entry_func): Likewise.
5604 (get_frame_pc_if_available): Likewise.
5605 (get_frame_address_in_block_if_available): Likewise.
5606 (frame_unwinder_is): Likewise.
5607 (safe_frame_unwind_memory): Likewise.
5608 (frame_unwind_arch): Likewise.
5609
5610 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5613 type to cached_copy_status.
5614 (fprintf_frame): Adjust.
5615 (get_frame_func_if_available): Adjust.
5616 (frame_cleanup_after_sniffer): Adjust.
5617
5618 2020-08-04 Mark Wielaard <mark@klomp.org>
5619
5620 * MAINTAINERS (Write After Approval): Update email address.
5621
5622 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5625 dynamic_prop::const_val.
5626
5627 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5628
5629 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5630 dynamic_prop::kind.
5631
5632 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5635
5636 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5637
5638 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5639
5640 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5641 Jose E. Marchesi <jose.marchesi@oracle.com>
5642
5643 * configure.tgt: Add entry for bpf-*-*.
5644 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5645 (ALLDEPFILES): Add bpf-tdep.c.
5646 * bpf-tdep.c: New file.
5647 * MAINTAINERS: Add bpf target and maintainer.
5648 * NEWS: Mention the support for the new target.
5649
5650 2020-08-04 Tom de Vries <tdevries@suse.de>
5651
5652 PR symtab/23270
5653 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5654 Error.
5655
5656 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5657
5658 * syscalls/freebsd.xml: Regenerate.
5659
5660 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5661
5662 * syscalls/update-freebsd.sh: Fix usage and year range.
5663
5664 2020-08-03 Tom de Vries <tdevries@suse.de>
5665
5666 PR symtab/26333
5667 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5668 DW_LNE_lo_user/DW_LNE_hi_user range.
5669
5670 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 PR ada/26318
5673 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5674 kind.
5675
5676 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5677
5678 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5679
5680 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5681
5682 * breakpoint.c (set_breakpoint_condition): Update the condition
5683 expressions after checking that the input condition string parses
5684 successfully and does not contain junk at the end.
5685
5686 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5687
5688 * breakpoint.c (set_breakpoint_condition): Update the
5689 condition string after parsing the new condition successfully.
5690
5691 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5692
5693 * proc-api.c (_STRUCTURED_PROC): Don't define.
5694 * proc-events.c: Likewise.
5695 * proc-flags.c: Likewise.
5696 * proc-why.c: Likewise.
5697 * procfs.c: Likewise.
5698
5699 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5700 * configure, config.in: Regenerate.
5701
5702 2020-07-30 Tom de Vries <tdevries@suse.de>
5703
5704 PR build/26320
5705 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5706 m_red/m_green/m_blue in a union.
5707
5708 2020-07-29 Tom de Vries <tdevries@suse.de>
5709
5710 PR tdep/26280
5711 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5712
5713 2020-07-28 Tom Tromey <tromey@adacore.com>
5714
5715 PR symtab/26270:
5716 * symtab.h (find_pc_partial_function_sym): Declare.
5717 * cli/cli-cmds.c (disassemble_command): Use
5718 find_pc_partial_function_sym. Check asm_demangle.
5719 * blockframe.c (cache_pc_function_sym): New global.
5720 (cache_pc_function_name): Remove.
5721 (clear_pc_function_cache): Update.
5722 (find_pc_partial_function_sym): New function, from
5723 find_pc_partial_function.
5724 (find_pc_partial_function): Rewrite using
5725 find_pc_partial_function_sym.
5726
5727 2020-07-28 Tom Tromey <tromey@adacore.com>
5728
5729 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5730 help. Add usage.
5731
5732 2020-07-28 Tom Tromey <tromey@adacore.com>
5733
5734 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5735 <DW_OP_GNU_variable_value>: Cast to address type.
5736
5737 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5738
5739 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5740 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5741 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5742 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5743 (nbsd_get_siginfo_type): New.
5744 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5745 (_initialize_nbsd_tdep): New.
5746
5747 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5748
5749 PR binutils/26301
5750 * configure: Regenerated.
5751
5752 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5753
5754 PR binutils/26301
5755 * configure: Regenerated.
5756
5757 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5758
5759 * python/py-frame.c: Remove 'user-regs.h' include.
5760 (frapy_read_register): Rewrite to make use of
5761 gdbpy_parse_register_id.
5762 * python/py-registers.c (gdbpy_parse_register_id): New function,
5763 moved here from python/py-unwind.c. Updated the return type, and
5764 also accepts register descriptor objects.
5765 * python/py-unwind.c: Remove 'user-regs.h' include.
5766 (pyuw_parse_register_id): Moved to python/py-registers.c.
5767 (unwind_infopy_add_saved_register): Update to use
5768 gdbpy_parse_register_id.
5769 (pending_framepy_read_register): Likewise.
5770 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5771
5772 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * python/py-registers.c: Add 'user-regs.h' include.
5775 (register_descriptor_iter_find): New function.
5776 (register_descriptor_iterator_object_methods): New static global
5777 methods array.
5778 (register_descriptor_iterator_object_type): Add pointer to methods
5779 array.
5780
5781 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5782
5783 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5784 for all architectures on FreeBSD 11.3 and later.
5785
5786 2020-07-27 Tom Tromey <tromey@adacore.com>
5787
5788 * gcore.h (load_corefile): Don't declare.
5789
5790 2020-07-27 Tom de Vries <tdevries@suse.de>
5791
5792 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5793 * config.in: Regenerate.
5794 * configure: Regenerate.
5795
5796 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5797
5798 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5799 ws2tcpip.h. When checking whether socklen_t type is defined, use
5800 ws2tcpip.h if it is available and sys/socket.h isn't.
5801 * configure: Regenerate.
5802 * config.in: Regenerate.
5803
5804 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 PR fortran/23051
5807 PR fortran/26139
5808 * valops.c (value_ind): Pass address to
5809 readjust_indirect_value_type.
5810 * value.c (readjust_indirect_value_type): Make parameter
5811 non-const, and add extra address parameter. Resolve original type
5812 before using it.
5813 * value.h (readjust_indirect_value_type): Update function
5814 signature and comment.
5815
5816 2020-07-25 Tom de Vries <tdevries@suse.de>
5817
5818 PR symtab/26243
5819 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5820 entries.
5821
5822 2020-07-24 Aaron Merey <amerey@redhat.com>
5823
5824 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5825 * configure: Rebuild.
5826
5827 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5828
5829 PR corefiles/26294
5830 * corelow.c (_initialize_corelow): Add period to help text
5831 for "maintenance print core-file-backed-mappings".
5832
5833 2020-07-23 Pedro Alves <pedro@palves.net>
5834
5835 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5836 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5837 meanwhile.
5838 * frame.c (frame_cache_generation, get_frame_cache_generation):
5839 New.
5840 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5841 (get_prev_frame_if_no_cycle): On exception, don't touch
5842 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5843 * frame.h (get_frame_cache_generation): Declare.
5844
5845 2020-07-23 Tom de Vries <tdevries@suse.de>
5846
5847 PR tui/26282
5848 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5849 New default constructor.
5850
5851 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5852
5853 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5854 exclude non-statement entries.
5855
5856 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5857
5858 * NEWS (New commands): Mention new command
5859 "maintenance print core-file-backed-mappings".
5860
5861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5862
5863 * corelow.c (gdbcmd.h): Include.
5864 (core_target::info_proc_mappings): New method.
5865 (get_current_core_target): New function.
5866 (maintenance_print_core_file_backed_mappings): New function.
5867 (_initialize_corelow): Add core-file-backed-mappings to
5868 "maint print" commands.
5869
5870 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5871
5872 * linux-tdep.c (dump_note_entry_p): New function.
5873 (linux_dump_mapping_p_ftype): New typedef.
5874 (linux_find_memory_regions_full): Add new parameter,
5875 should_dump_mapping_p.
5876 (linux_find_memory_regions): Adjust call to
5877 linux_find_memory_regions_full.
5878 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5879 call to linux_find_memory_regions_full.
5880
5881 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5882
5883 * corelow.c (solist.h, unordered_map): Include.
5884 (class core_target): Add field m_core_file_mappings and
5885 method build_file_mappings.
5886 (core_target::core_target): Call build_file_mappings.
5887 (core_target::~core_target): Free memory associated with
5888 m_core_file_mappings.
5889 (core_target::build_file_mappings): New method.
5890 (core_target::xfer_partial): Use m_core_file_mappings
5891 for memory transfers.
5892 * linux-tdep.c (linux_read_core_file_mappings): New
5893 function.
5894 (linux_core_info_proc_mappings): Rewrite to use
5895 linux_read_core_file_mappings.
5896 (linux_init_abi): Register linux_read_core_file_mappings.
5897
5898 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5899
5900 * arch-utils.c (default_read_core_file_mappings): New function.
5901 * arch-utils.c (default_read_core_file_mappings): Declare.
5902 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5903 * gdbarch.h, gdbarch.c: Regenerate.
5904
5905 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5906
5907 PR corefiles/25631
5908 * corelow.c (core_target:xfer_partial): Revise
5909 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5910 case after first checking the stratum beneath the core
5911 target.
5912 (has_all_memory): Return true.
5913 * target.c (raw_memory_xfer_partial): Revise comment
5914 regarding use of has_all_memory.
5915
5916 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5917
5918 * exec.h (section_table_xfer_memory): Revise declaration,
5919 replacing section name parameter with an optional callback
5920 predicate.
5921 * exec.c (section_table_xfer_memory): Likewise.
5922 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5923 of section_table_xfer_memory.
5924
5925 2020-07-22 Tom Tromey <tromey@adacore.com>
5926
5927 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5928 lookup_symbol_search_name.
5929
5930 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5933 redundant local variable.
5934 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5935 reference, not pointer, update code accordingly.
5936
5937 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5938 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5939
5940 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5941 * jit.c (jit_breakpoint_re_set_internal): Use the
5942 `skip_jit_symbol_lookup` field.
5943
5944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5945 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5946
5947 * jit.c (jit_read_descriptor): Define the descriptor address once,
5948 use twice.
5949 (jit_breakpoint_deleted): Move the declaration of the loop variable
5950 `iter` into the loop header.
5951 (jit_breakpoint_re_set_internal): Move the declaration of the local
5952 variable `objf_data` to the first point of definition.
5953 (jit_event_handler): Move the declaration of local variables
5954 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5955 Rename `objf` to `jited`.
5956
5957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5960 Remove.
5961 * jit.c (get_jiter_objfile_data): Update.
5962
5963 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5964 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * jit.c (struct jit_program_space_data): Remove.
5967 (jit_program_space_key): Remove.
5968 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5969 stuff.
5970 (get_jit_program_space_data): Remove.
5971 (jit_breakpoint_deleted): Iterate on all of the program space's
5972 objfiles.
5973 (jit_inferior_init): Likewise.
5974 (jit_breakpoint_re_set_internal): Likewise. Also change return
5975 type to void.
5976 (jit_breakpoint_re_set): Pass current_program_space to
5977 jit_breakpoint_re_set_internal.
5978
5979 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * jit.h (struct jiter_objfile_data) <cached_code_address,
5982 jit_breakpoint>: Move to here from ...
5983 * jit.c (jit_program_space_data): ... here.
5984 (jiter_objfile_data::~jiter_objfile_data): Update.
5985 (jit_breakpoint_deleted): Update.
5986 (jit_breakpoint_re_set_internal): Update.
5987
5988 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5991 checks.
5992 (jit_read_descriptor): Remove NULL check.
5993 (jit_event_handler): Add an assertion.
5994
5995 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * jit.h (struct jit_objfile_data): Split into...
5998 (struct jiter_objfile_data): ... this ...
5999 (struct jited_objfile_data): ... and this.
6000 * objfiles.h (struct objfile) <jit_data>: Remove.
6001 <jiter_data, jited_data>: New fields.
6002 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6003 (jiter_objfile_data::~jiter_objfile_data): ... this.
6004 (get_jit_objfile_data): Rename to ...
6005 (get_jiter_objfile_data): ... this.
6006 (add_objfile_entry): Update.
6007 (jit_read_descriptor): Use get_jiter_objfile_data.
6008 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6009 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6010 (jit_inferior_exit_hook): Use objfile's jited_data field.
6011
6012 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * jit.h: Forward-declare `struct minimal_symbol`.
6015 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6016 constructor, destructor, and an objfile* field.
6017 * jit.c (jit_objfile_data): Remove.
6018 (struct jit_objfile_data): Migrate from here to jit.h.
6019 (jit_objfile_data::~jit_objfile_data): New destructor
6020 implementation with code moved from free_objfile_data.
6021 (free_objfile_data): Delete.
6022 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6023 (jit_find_objf_with_entry_addr): Ditto.
6024 (jit_inferior_exit_hook): Ditto.
6025 (_initialize_jit): Remove the call to
6026 register_objfile_data_with_cleanup.
6027 * objfiles.h (struct objfile) <jit_data>: New field.
6028
6029 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6030
6031 * jit.h: Forward-declare `struct objfile`.
6032 (jit_event_handler): Add a second parameter, the JITer objfile.
6033 * jit.c (jit_read_descriptor): Change the signature to take the
6034 JITer objfile as an argument instead of the jit_program_space_data.
6035 (jit_inferior_init): Update the call to jit_read_descriptor.
6036 (jit_event_handler): Use the new JITer objfile argument when calling
6037 jit_read_descriptor.
6038 * breakpoint.c (handle_jit_event): Update the call to
6039 jit_event_handler to pass the JITer objfile.
6040
6041 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6042
6043 * gdbarch.c: Regenerate.
6044 * gdbarch.h: Regenerate.
6045 * gdbarch.sh (handle_segmentation_fault): Remove method.
6046 * infrun.c (handle_segmentation_fault): Remove.
6047 (print_signal_received_reason): Remove call to
6048 handle_segmentation_fault.
6049
6050 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6051
6052 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6053 Rename to sparc64_linux_report_signal_info and add siggnal
6054 argument.
6055 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6056 instead of sparc64_linux_handle_segmentation_fault.
6057
6058 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6059
6060 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6061 i386_linux_report_signal_info instead of
6062 i386_linux_handle_segmentation_fault.
6063 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6064 to i386_linux_report_signal_info and add siggnal argument.
6065 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6066 of i386_linux_handle_segmentation_fault.
6067 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6068 to i386_linux_report_signal_info and add siggnal argument.
6069
6070 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6071
6072 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6073 hook if present.
6074
6075 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6076
6077 * gdbarch.c: Regenerate.
6078 * gdbarch.h: Regenerate.
6079 * gdbarch.sh (report_signal_info): New method.
6080 * infrun.c (print_signal_received_reason): Invoke gdbarch
6081 report_signal_info hook if present.
6082
6083 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6084
6085 * python/py-registers.c : Add 'unordered_map' include.
6086 (gdbpy_new_reggroup): Renamed to...
6087 (gdbpy_get_reggroup): ...this. Update to only create register
6088 group descriptors when needed.
6089 (gdbpy_reggroup_iter_next): Update.
6090
6091 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6092
6093 * python/py-registers.c (gdbpy_register_object_data): New static
6094 global.
6095 (gdbpy_register_object_data_init): New function.
6096 (gdbpy_new_register_descriptor): Renamed to...
6097 (gdbpy_get_register_descriptor): ...this, and update to reuse
6098 existing register descriptors where possible.
6099 (gdbpy_register_descriptor_iter_next): Update.
6100 (gdbpy_initialize_registers): Register new gdbarch data.
6101
6102 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * linux-nat.c (stopped_pids): Make static.
6105
6106 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 PR ada/26235
6109 * gdbtypes.c (ada_discrete_type_low_bound,
6110 ada_discrete_type_high_bound): Handle undefined bounds.
6111
6112 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6113
6114 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6115 declaration.
6116 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6117 function.
6118
6119 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6120
6121 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6122 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6123 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6124 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6125 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6126 method.
6127
6128 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6129
6130 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6131 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6132 which are deprecated in Guile 3.0.
6133 * configure.ac (try_guile_versions): Add "guile-3.0".
6134 * configure (try_guile_versions): Regenerate.
6135 * NEWS: Update entry.
6136
6137 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6138 Doug Evans <dje@google.com>
6139
6140 PR gdb/21104
6141 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6142 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6143 USING_GUILE_BEFORE_2_2.
6144 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6145 Change type to 'scm_t_port_type *'.
6146 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6147 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6148 parameter and honor it. Update callers.
6149 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6150 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6151 functions.
6152 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6153 USING_GUILE_BEFORE_2_2.
6154 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6155 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6156 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6157 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6158 and 'SCM_PORT_TYPE'.
6159 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6160 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6161 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6162 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6163 [!USING_GUILE_BEFORE_2_2]: New functions.
6164 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6165 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6166 'gdbscm_memory_port_read'.
6167 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6168 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6169 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6170 function.
6171 (ioscm_init_memory_port): Remove.
6172 (ioscm_init_memory_port_stream): New function
6173 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6174 function.
6175 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6176 Return scm_from_uint (0).
6177 (gdbscm_set_memory_port_read_buffer_size_x)
6178 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6179 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6180 Return scm_from_uint (0).
6181 (gdbscm_set_memory_port_write_buffer_size_x)
6182 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6183 * configure.ac (try_guile_versions): Add "guile-2.2".
6184 * configure: Regenerate.
6185 * NEWS: Add entry.
6186
6187 2020-07-18 Tom Tromey <tom@tromey.com>
6188
6189 * linux-nat.c (linux_multi_process): Remove.
6190 (linux_nat_target::supports_multi_process): Return true.
6191
6192 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6195 (riscv_lookup_target_description): Return pointer out of
6196 unique_ptr.
6197 * target-descriptions.c (allocate_target_description): Add
6198 comment.
6199 (target_desc_deleter::operator()): Likewise.
6200 * target-descriptions.h (struct target_desc_deleter): Moved to
6201 gdbsupport/tdesc.h.
6202 (target_desc_up): Likewise.
6203
6204 2020-07-17 Tom Tromey <tromey@adacore.com>
6205
6206 * linux-nat.c (linux_nat_target::supports_non_stop)
6207 (linux_nat_target::always_non_stop_p): Use "true".
6208 (linux_nat_target::supports_disable_randomization): Use "true" and
6209 "false".
6210
6211 2020-07-16 Caroline Tice <cmtice@google.com>
6212
6213 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6214 (RNGLIST_HEADER_SIZE64): New constant definition.
6215 (struct dwop_section_names): Add rnglists_dwo.
6216 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6217 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6218 (struct dwo_sections): Add rnglists field.
6219 (read_attribut_reprocess): Add tag parameter.
6220 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6221 (cu_debug_rnglists_section): New function (decl & definition).
6222 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6223 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6224 die whose range is being checked; get rnglist section from
6225 cu_debug_rnglists_section, to get from either objfile or dwo file as
6226 appropriate. Add cases for DW_RLE_base_addressx,
6227 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6228 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6229 test inside if-condition and updating complaint message.
6230 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6231 dwarf2_rnglists_process.
6232 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6233 dwarf2_ranges_process.
6234 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6235 need_ranges_base and update comment appropriately. Also pass die tag
6236 to dwarf2_ranges_read.
6237 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6238 need_ranges_base and update comment appropriately. Also pass die tag
6239 to dwarf2_ranges_process.
6240 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6241 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6242 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6243 need_ranges_base and update comment appropriately. Also pass die tag
6244 to read_attribute_reprocess and dwarf2_ranges_read.
6245 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6246 and update function comment appropriately.
6247 (read_loclist_index): Call read_loclists_rnglists_header instead of
6248 read_loclist_header.
6249 (read_rnglist_index): New function.
6250 (read_attribute_reprocess): Add tag parameter. Add code for
6251 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6252 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6253
6254 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6255
6256 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6257 being resolved.
6258
6259 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * arch-utils.c (show_architecture): Update formatting of messages.
6262
6263 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6264
6265 * gdbtypes.h (struct type) <bounds>: Handle array and string
6266 types.
6267 * ada-lang.c (assign_aggregate): Use type::bounds on
6268 array/string type.
6269 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6270 * c-varobj.c (c_number_of_children): Likewise.
6271 (c_describe_child): Likewise.
6272 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6273 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6274 (f_type_print_base): Likewise.
6275 * f-valprint.c (f77_array_offset_tbl): Likewise.
6276 (f77_get_upperbound): Likewise.
6277 (f77_print_array_1): Likewise.
6278 * guile/scm-type.c (gdbscm_type_range): Likewise.
6279 * m2-typeprint.c (m2_array): Likewise.
6280 (m2_is_long_set_of_type): Likewise.
6281 * m2-valprint.c (get_long_set_bounds): Likewise.
6282 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6283 * python/py-type.c (typy_range): Likewise.
6284 * rust-lang.c (rust_internal_print_type): Likewise.
6285 * type-stack.c (type_stack::follow_types): Likewise.
6286 * valarith.c (value_subscripted_rvalue): Likewise.
6287 * valops.c (value_cast): Likewise.
6288
6289 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6290
6291 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6292 callers to use the equivalent accessor methods.
6293
6294 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6297 (struct type) <bit_stride>: New method.
6298 (TYPE_BIT_STRIDE): Remove.
6299 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6300
6301 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6304 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6305 callers to use the equivalent accessor methods instead.
6306
6307 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6310 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6311 callers to use the equivalent accessor methods instead.
6312
6313 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6316 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6317 to use dynamic_prop::kind.
6318
6319 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6322 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6323 to get the bound property's kind and check against
6324 PROP_UNDEFINED.
6325
6326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6329 all callers to use type::range_bounds followed by
6330 dynamic_prop::{low,high}.
6331
6332 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6335 const_val, set_const_val, baton, set_locexpr, set_loclist,
6336 set_addr_offset, variant_parts, set_variant_parts,
6337 original_type, set_original_type>: New methods.
6338 <kind>: Rename to...
6339 <m_kind>: ... this. Update all users to use the new methods
6340 instead.
6341 <data>: Rename to...
6342 <m_data>: ... this. Update all users to use the new methods
6343 instead.
6344
6345 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * gdbtypes.c (get_discrete_bounds): Return failure if
6348 the range type's bounds are not both defined and constant
6349 values.
6350 (get_array_bounds): Update comment. Remove undefined bound check.
6351
6352 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6353
6354 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6355 the type::bounds method directly.
6356
6357 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6360 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6361 are used to set the range type's bounds to use set_bounds.
6362
6363 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6364
6365 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6366
6367 2020-07-10 Pedro Alves <pedro@palves.net>
6368
6369 * gdbthread.h (inferior_ref): Define.
6370 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6371 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6372 * thread.c
6373 (scoped_restore_current_thread::restore):
6374 Adjust to gdb::ref_ptr.
6375 (scoped_restore_current_thread::~scoped_restore_current_thread):
6376 Remove manual decref handling.
6377 (scoped_restore_current_thread::scoped_restore_current_thread):
6378 Adjust to use
6379 inferior_ref::new_reference/thread_info_ref::new_reference.
6380 Incref the thread before calling get_frame_id instead of after.
6381 Let TARGET_CLOSE_ERROR propagate.
6382
6383 2020-07-10 Pedro Alves <pedro@palves.net>
6384
6385 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6386 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6387 NOT_AVAILABLE_ERROR.
6388 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6389 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6390
6391 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6392 Pedro Alves <pedro@palves.net>
6393
6394 PR gdb/26199
6395 * infrun.c (threads_are_resumed_pending_p): Delete.
6396 (do_target_wait): Remove threads_are_executing and
6397 threads_are_resumed_pending_p checks from the inferior_matches
6398 lambda. Update comments.
6399
6400 2020-07-10 Pedro Alves <pedro@palves.net>
6401
6402 PR gdb/26199
6403 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6404 executing threads.
6405
6406 2020-07-10 Pedro Alves <pedro@palves.net>
6407
6408 PR gdb/26199
6409 * infrun.c (handle_no_resumed): Handle multiple targets.
6410
6411 2020-07-10 Pedro Alves <pedro@palves.net>
6412
6413 PR gdb/26199
6414 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6415 target_is_async_p.
6416
6417 2020-07-10 Pedro Alves <pedro@palves.net>
6418
6419 PR gdb/26199
6420 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6421 threads, not all threads.
6422
6423 2020-07-10 Pedro Alves <pedro@palves.net>
6424
6425 PR gdb/26199
6426 * remote.c (remote_target::open_1): Pass remote target pointer as
6427 data to create_async_event_handler.
6428 (remote_async_inferior_event_handler): Mark async event handler
6429 before returning if the remote target still has either pending
6430 events or unacknowledged notifications.
6431
6432 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6433
6434 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6435 declaration.
6436 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6437 function.
6438
6439 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6440
6441 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6442 inferior_ptid.
6443
6444 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6445
6446 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6447 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6448 AT_FREEBSD_PS_STRINGS.
6449
6450 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6451
6452 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6453 of debugfile path on Windows.
6454
6455 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6456
6457 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6458 argument to 'data'.
6459
6460 2020-07-08 Tom Tromey <tromey@adacore.com>
6461
6462 * ada-lang.c (ada_exception_message_1): Use read_memory.
6463
6464 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 PR python/22748
6467 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6468 special handling for inline frames.
6469 * findvar.c (value_of_register_lazy): Skip inline frames when
6470 creating lazy register values.
6471 * frame.c (frame_id_computed_p): Delete definition.
6472 * frame.h (frame_id_computed_p): Delete declaration.
6473
6474 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6475
6476 * NEWS: Mention additions to Python API.
6477 * python/py-arch.c (archpy_register_groups): New function.
6478 (arch_object_methods): Add 'register_groups' method.
6479 * python/py-registers.c (reggroup_iterator_object): New struct.
6480 (reggroup_object): New struct.
6481 (gdbpy_new_reggroup): New function.
6482 (gdbpy_reggroup_to_string): New function.
6483 (gdbpy_reggroup_name): New function.
6484 (gdbpy_reggroup_iter): New function.
6485 (gdbpy_reggroup_iter_next): New function.
6486 (gdbpy_new_reggroup_iterator): New function
6487 (gdbpy_initialize_registers): Register new types.
6488 (reggroup_iterator_object_type): Define new Python type.
6489 (gdbpy_reggroup_getset): New static global.
6490 (reggroup_object_type): Define new Python type.
6491 * python/python-internal.h
6492
6493 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6496 * python/py-arch.c (archpy_registers): New function.
6497 (arch_object_methods): Add 'registers' method.
6498 * python/py-registers.c: New file.
6499 * python/python-internal.h
6500 (gdbpy_new_register_descriptor_iterator): Declare.
6501 (gdbpy_initialize_registers): Declare.
6502 * python/python.c (do_start_initialization): Call
6503 gdbpy_initialize_registers.
6504 * NEWS: Mention additions to the Python API.
6505
6506 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6507
6508 * NEWS: Mention new Python API method.
6509 * python/py-unwind.c (pending_framepy_architecture): New function.
6510 (pending_frame_object_methods): Add architecture method.
6511
6512 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * gdbarch.c: Regenerate.
6515 * gdbarch.h: Regenerate.
6516 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6517 (gdbarch_data): Use internal_error for the case where
6518 deprecated_set_gdbarch_data was originally needed.
6519 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6520 and use passed in obstack.
6521 (libunwind_frame_set_descr): Should no longer get back NULL from
6522 gdbarch_data.
6523 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6524 type.
6525 * user-regs.c (user_regs_init): Update parameters, and use passed
6526 in obstack.
6527 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6528 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6529
6530 2020-07-06 Tom de Vries <tdevries@suse.de>
6531
6532 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6533 End-Of-Sequence in lte_is_less_than.
6534 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6535 "gdb: Don't reorder line table entries too much when sorting".
6536
6537 2020-07-06 Tom de Vries <tdevries@suse.de>
6538
6539 PR tui/26205
6540 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6541
6542 2020-07-05 Tom de Vries <tdevries@suse.de>
6543
6544 PR build/26187
6545 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6546 std::uncaught_exceptions instead of deprecated
6547 std::uncaught_exception.
6548
6549 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * macroexp.h (macro_stringify): Return
6552 gdb::unique_xmalloc_ptr<char>.
6553 * macroexp.c (macro_stringify): Likewise.
6554 * macrotab.c (fixup_definition): Update.
6555
6556 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6557
6558 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6559 (lex_one_token): Update.
6560 * macroexp.c (struct macro_buffer) <release>: Return
6561 gdb::unique_xmalloc_ptr<char>.
6562 (macro_stringify): Update.
6563 (macro_expand): Update.
6564 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6565 * macroexp.h (macro_expand_next): Likewise.
6566
6567 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * macroexp.h (macro_lookup_ftype): Remove.
6570 (macro_expand, macro_expand_once, macro_expand_next): Remove
6571 lookup function parameters, add scope parameter.
6572 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6573 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6574 * macroscope.h (standard_macro_lookup): Change parameter type
6575 to macro_scope.
6576 * macroscope.c (standard_macro_lookup): Likewise.
6577 * c-exp.y (lex_one_token): Update.
6578 * macrocmd.c (macro_expand_command): Likewise.
6579 (macro_expand_once_command): Likewise.
6580
6581 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6582
6583 * inf-loop.c (inferior_event_handler): Remove client_data param.
6584 * inf-loop.h (inferior_event_handler): Likewise.
6585 * infcmd.c (step_1): Adjust.
6586 * infrun.c (proceed): Adjust.
6587 (fetch_inferior_event): Remove client_data param.
6588 (infrun_async_inferior_event_handler): Adjust.
6589 * infrun.h (fetch_inferior_event): Remove `void *` param.
6590 * linux-nat.c (handle_target_event): Adjust.
6591 * record-btrace.c (record_btrace_handle_async_inferior_event):
6592 Adjust.
6593 * record-full.c (record_full_async_inferior_event_handler):
6594 Adjust.
6595 * remote.c (remote_async_inferior_event_handler): Adjust.
6596
6597 2020-07-01 Tom Tromey <tom@tromey.com>
6598
6599 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6600 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6601
6602 2020-07-01 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6605 tui_gen_win_info.
6606 (tui_win_info::make_window): Merge with
6607 tui_gen_win_info::make_window.
6608 (tui_win_info::make_visible): Move from tui_gen_win_info.
6609 * tui/tui-win.c (tui_win_info::max_width): Move from
6610 tui_gen_win_info.
6611 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6612 type.
6613 <window_factory>: Likewise.
6614 * tui/tui-layout.c (tui_win_info::resize): Move from
6615 tui_gen_win_info.
6616 (make_standard_window): Change return type.
6617 (get_locator_window, tui_get_window_by_name): Likewise.
6618 (tui_layout_window::apply): Remove a cast.
6619 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6620 (struct tui_win_info): Merge with tui_gen_win_info.
6621 (struct tui_gen_win_info): Remove.
6622
6623 2020-07-01 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-stack.h (struct tui_locator_window): Derive from
6626 tui_win_info.
6627 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6628 <can_box>: New method.
6629
6630 2020-07-01 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6633
6634 2020-07-01 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-regs.c (tui_data_window::display_registers_from)
6637 (tui_data_window::display_registers_from)
6638 (tui_data_window::first_data_item_displayed)
6639 (tui_data_window::delete_data_content_windows): Update.
6640 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6641 Remove.
6642 (tui_data_window::check_register_values): Update.
6643 (tui_data_item_window::rerender): Add parameters. Update.
6644 (tui_data_item_window::refresh_window): Remove.
6645 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6646 virtual.
6647 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6648 tui_gen_win_info.
6649 <refresh_window, max_height, min_height>: Remove.
6650 <rerender>: Add parameters.
6651 <x, y, visible>: New members.
6652 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6653 <m_item_width>: New member.
6654
6655 2020-07-01 Tom Tromey <tom@tromey.com>
6656
6657 * tui/tui-regs.c (tui_data_window::show_register_group)
6658 (tui_data_window::check_register_values): Update.
6659 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6660 from item_no.
6661
6662 2020-07-01 Tom Tromey <tom@tromey.com>
6663
6664 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6665 useless "if".
6666
6667 2020-07-01 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6670 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6671
6672 2020-07-01 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6675 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6676 (struct tui_line_or_address): Move from tui-data.h.
6677 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6678 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6679 (tui_cmd_window, tui_source_window_base, tui_source_window)
6680 (tui_disasm_window): Don't declare.
6681 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6682 to tui-winsource.h.
6683 (SINGLE_KEY): Move to tui-stack.c.
6684
6685 2020-07-01 Tom Tromey <tom@tromey.com>
6686
6687 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6688 std::string.
6689 * tui/tui-regs.c (class tab_expansion_file): New.
6690 (tab_expansion_file::write): New method.
6691 (tui_register_format): Change return type. Use
6692 tab_expansion_file.
6693 (tui_get_register, tui_data_window::display_registers_from)
6694 (tui_data_item_window::rerender): Update.
6695 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6696 * tui/tui-io.c (tui_expand_tabs): Remove.
6697
6698 2020-07-01 Tom Tromey <tom@tromey.com>
6699
6700 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6701
6702 2020-07-01 Fangrui Song <maskray@google.com>
6703
6704 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6705
6706 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6707
6708 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6709 forms for DW_AT_associated and DW_AT_allocated attributes,
6710 which is already checked in function attr_to_dynamic_prop.
6711
6712 2020-06-30 Tom Tromey <tromey@adacore.com>
6713
6714 * dwarf2/read.c (quirk_rust_enum): Correctly call
6715 alloc_rust_variant for default-less enum.
6716
6717 2020-06-30 Tom Tromey <tromey@adacore.com>
6718
6719 PR build/26183:
6720 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6721 gdb::to_string.
6722
6723 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6726 * gdbarch.h: Re-generate.
6727
6728 2020-06-28 Tom Tromey <tom@tromey.com>
6729
6730 * command.h (cmd_types): Remove.
6731 (cmd_type): Don't declare.
6732 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6733 typedef.
6734 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6735 * cli/cli-decode.c (cmd_type): Remove.
6736
6737 2020-06-27 Pedro Alves <palves@redhat.com>
6738
6739 * fork-child.c (prefork_hook): Adjust.
6740 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6741 Delete.
6742 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6743 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6744 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6745 Remove declarations.
6746 (struct inferior) <set_tty, tty>: New methods.
6747 (struct inferior) <terminal>: Rename to ...
6748 (struct inferior) <m_terminal>: ... this and make private.
6749 * main.c (captured_main_1): Adjust.
6750 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6751 (mi_cmd_inferior_tty_show): Adjust.
6752 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6753 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6754
6755 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6756
6757 * configure.ac: Add --enable-libctf: handle --disable-static
6758 properly.
6759 * acinclude.m4: sinclude ../config/enable.m4.
6760 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6761 (LIBCTF): Substitute in.
6762 (CTF_DEPS): New, likewise.
6763 (CLIBS): libctf needs symbols from libbfd: move earlier.
6764 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6765 flags.
6766 * ctfread.c: Surround in ENABLE_LIBCTF.
6767 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6768 * configure: Regenerate.
6769 * config.in: Likewise.
6770
6771 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6772
6773 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6774
6775 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * inferior.h (struct inferior) <terminal>: Change type to
6778 gdb::unique_xmalloc_ptr<char>.
6779 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6780 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6781 field, adjust to unique pointer.
6782 (get_inferior_io_terminal): Adjust to unique pointer.
6783
6784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6787 registers, not just the known core set of registers.
6788
6789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6790
6791 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6792 fflags, frm, and fcsr registers.
6793 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6794 restore groups.
6795 (riscv_tdesc_unknown_reg): New function.
6796 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6797 tdesc_use_registers.
6798 * riscv-tdep.h (struct gdbarch_tdep): Add
6799 unknown_csrs_first_regnum, unknown_csrs_count,
6800 duplicate_fflags_regnum, duplicate_frm_regnum, and
6801 duplicate_fcsr_regnum fields.
6802
6803 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6804
6805 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6806 callback, use the callback (when not null) to help number unknown
6807 registers.
6808 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6809 (tdesc_use_registers): Add extra parameter to declaration.
6810
6811 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6814 in the file.
6815 (class riscv_pending_register_alias): Likewise.
6816 (riscv_register_feature::register_info): Change 'required_p' field
6817 to 'required', and change its type. Add 'check' member function.
6818 (riscv_register_feature::register_info::check): Define new member
6819 function.
6820 (riscv_xreg_feature): Change initialisation of 'required' field.
6821 (riscv_freg_feature): Likewise.
6822 (riscv_virtual_feature): Likewise.
6823 (riscv_csr_feature): Likewise.
6824 (riscv_check_tdesc_feature): Take extra parameter, the csr
6825 tdesc_feature, rewrite the function to use the new
6826 riscv_register_feature::register_info::check function.
6827 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6828
6829 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * features/Makefile: Remove all references to the deleted files
6832 below.
6833 * features/riscv/32bit-csr.c: Deleted.
6834 * features/riscv/32bit-csr.xml: Deleted.
6835 * features/riscv/64bit-csr.c: Deleted.
6836 * features/riscv/64bit-csr.xml: Deleted.
6837 * features/riscv/rebuild-csr-xml.sh: Deleted.
6838
6839 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6842 whitespace error for declaration of names member variable.
6843 (struct riscv_register_feature): Add new prefer_first_name member
6844 variable, and fix whitespace error in declaration of registers.
6845 (riscv_xreg_feature): Initialize prefer_first_name field.
6846 (riscv_freg_feature): Likewise.
6847 (riscv_virtual_feature): Likewise.
6848 (riscv_csr_feature): Likewise.
6849 (riscv_register_name): Expand on comments. Remove register name
6850 modifications for CSR and virtual registers.
6851
6852 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6855 errors.
6856
6857 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6860 riscv-opc.h.
6861 (class riscv_pending_register_alias): New class.
6862 (riscv_check_tdesc_feature): Take vector of pending aliases and
6863 populate it as appropriate.
6864 (riscv_setup_register_aliases): Delete.
6865 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6866 to riscv_check_tdesc_feature in all cases. Use the vector to
6867 create the register aliases.
6868
6869 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6870
6871 * sol2-tdep.c (sol2_static_transform_name): Remove.
6872 (sol2_init_abi): Don't register it.
6873 * gdbarch.sh (static_transform_name): Remove.
6874 * gdbarch.c, gdbarch.h: Regenerate.
6875
6876 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6877 gdbarch_static_transform_name.
6878 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6879 * stabsread.c (define_symbol) <'X'>: Remove.
6880 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6881 handling.
6882 <'V'>: Likewise.
6883 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6884 <'S'>: Remove call to gdbarch_static_transform_name.
6885
6886 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6887
6888 * procfs.c (procfs_pre_trace): New function.
6889 (procfs_target::create_inferior): Pass it to fork_inferior.
6890
6891 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6892
6893 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6894 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6895 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6896 sol2-tdep.o, sparc-sol2-tdep.o.
6897 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6898 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6899 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6900 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6901
6902 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6903
6904 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6905 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6906 Call sol2_init_abi.
6907 Remove calls to set_gdbarch_skip_solib_resolver,
6908 set_gdbarch_core_pid_to_str.
6909 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6910 (i386_sol2_static_transform_name): Remove.
6911 (i386_sol2_init_abi): Call sol2_init_abi.
6912 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6913 set_gdbarch_static_transform_name,
6914 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6915 Use sol2_sigtramp_p.
6916 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6917 (sol2_sigtramp_p): New function.
6918 (sol2_static_transform_name): New function.
6919 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6920 (sol2_init_abi): New function.
6921 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6922 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6923 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6924 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6925 (sparc_sol2_static_transform_name): Remove.
6926 (sparc32_sol2_init_abi): Call sol2_init_abi.
6927 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6928 set_gdbarch_static_transform_name,
6929 set_gdbarch_skip_solib_resolver,
6930 set_gdbarch_core_pid_to_str.
6931 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6932 (sparc_sol2_static_transform_name): Remove
6933 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6934 call sol2_sigtramp_p.
6935 (sparc64_sol2_init_abi): Call sol2_init_abi.
6936 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6937 set_gdbarch_static_transform_name,
6938 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6939
6940 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6941
6942 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6943 * exec.c (validate_exec_file): If from_tty, set both
6944 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6945 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6946 and from_tty, unconditionally ask a confirmation.
6947
6948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * target-descriptions.c (tdesc_architecture_name): Protect against
6951 NULL pointer dereference.
6952 (maint_print_xml_tdesc_cmd): New function.
6953 (_initialize_target_descriptions): Register new 'maint print
6954 xml-tdesc' command and give it the filename completer.
6955 * NEWS: Mention new 'maint print xml-tdesc' command.
6956
6957 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6958
6959 * target-descriptions.c (class tdesc_compatible_info): New class.
6960 (struct target_desc): Change type of compatible vector.
6961 (tdesc_compatible_p): Update for change in type of
6962 target_desc::compatible.
6963 (tdesc_compatible_info_list): New function.
6964 (tdesc_compatible_info_arch_name): New function.
6965 (tdesc_add_compatible): Update for change in type of
6966 target_desc::compatible.
6967 (print_c_tdesc::visit_pre): Likewise.
6968
6969 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6970
6971 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6972 whitespace to underscore.
6973 (maint_print_c_tdesc_cmd): Use fake filename for target
6974 descriptions that came from the target.
6975 (_initialize_target_descriptions): Add filename command completion
6976 for 'maint print c-tdesc'.
6977
6978 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6981 lines.
6982
6983 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6986 lines.
6987 (dwarf2_find_location_expression): Likewise.
6988 (call_site_parameter_matches): Likewise.
6989 (dwarf2_compile_expr_to_ax): Likewise.
6990 (disassemble_dwarf_expression): Likewise.
6991 (loclist_describe_location): Likewise.
6992
6993 2020-06-23 Pedro Alves <palves@redhat.com>
6994
6995 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6996 progspace-and-thread.h. Include scoped-mock-context.h instead.
6997 (register_to_value_test): Use scoped_mock_context.
6998 * regcache.c: Include "scoped-mock-context.h".
6999 (cooked_read_test): Don't error out if a target is already pushed.
7000 Use scoped_mock_context. Adjust.
7001 * scoped-mock-context.h: New file.
7002
7003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7006 initializer.
7007 (ada_language::is_string_type_p): New member function.
7008 * c-lang.c (c_language_data): Delete la_is_string_type_p
7009 initializer.
7010 (cplus_language_data): Likewise.
7011 (asm_language_data): Likewise.
7012 (minimal_language_data): Likewise.
7013 * d-lang.c (d_language_data): Likewise.
7014 * f-lang.c (f_is_string_type_p): Delete function, implementation
7015 moved to f_language::is_string_type_p.
7016 (f_language_data): Delete la_is_string_type_p initializer.
7017 (f_language::is_string_type_p): New member function,
7018 implementation from f_is_string_type_p.
7019 * go-lang.c (go_is_string_type_p): Delete function, implementation
7020 moved to go_language::is_string_type_p.
7021 (go_language_data): Delete la_is_string_type_p initializer.
7022 (go_language::is_string_type_p): New member function,
7023 implementation from go_is_string_type_p.
7024 * language.c (language_defn::is_string_type_p): Define new member
7025 function.
7026 (default_is_string_type_p): Make static, add comment copied from
7027 header file.
7028 (unknown_language_data): Delete la_is_string_type_p initializer.
7029 (unknown_language::is_string_type_p): New member function.
7030 (auto_language_data): Delete la_is_string_type_p initializer.
7031 (auto_language::is_string_type_p): New member function.
7032 * language.h (language_data): Delete la_is_string_type_p field.
7033 (language_defn::is_string_type_p): Declare new function.
7034 (default_is_string_type_p): Delete desclaration, move comment to
7035 definition.
7036 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7037 moved to m2_language::is_string_type_p.
7038 (m2_language_data): Delete la_is_string_type_p initializer.
7039 (m2_language::is_string_type_p): New member function,
7040 implementation from m2_is_string_type_p.
7041 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7042 initializer.
7043 * opencl-lang.c (opencl_language_data): Likewise.
7044 * p-lang.c (pascal_is_string_type_p): Delete function,
7045 implementation moved to pascal_language::is_string_type_p.
7046 (pascal_language_data): Delete la_is_string_type_p initializer.
7047 (pascal_language::is_string_type_p): New member function,
7048 implementation from pascal_is_string_type_p.
7049 * rust-lang.c (rust_is_string_type_p): Delete function,
7050 implementation moved to rust_language::is_string_type_p.
7051 (rust_language_data): Delete la_is_string_type_p initializer.
7052 (rust_language::is_string_type_p): New member function,
7053 implementation from rust_is_string_type_p.
7054 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7055 is_string_type_p.
7056
7057 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * ada-lang.c (ada_language_data): Delete la_print_typedef
7060 initializer.
7061 (ada_language::print_typedef): New member function.
7062 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7063 (cplus_language_data): Likewise.
7064 (asm_language_data): Likewise.
7065 (minimal_language_data): Likewise.
7066 * d-lang.c (d_language_data): Likewise.
7067 * f-lang.c (f_language_data): Likewise.
7068 (f_language::print_typedef): New member function.
7069 * go-lang.c (go_language_data): Delete la_print_typedef
7070 initializer.
7071 * language.c (language_defn::print_typedef): Define member
7072 function.
7073 (unknown_language_data): Delete la_print_typedef initializer.
7074 (unknown_language::print_typedef): New member function.
7075 (auto_language_data): Delete la_print_typedef initializer.
7076 (auto_language::print_typedef): New member function.
7077 * language.h (language_data): Delete la_print_typedef field.
7078 (language_defn::print_typedef): Declare new member function.
7079 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7080 (default_print_typedef): Delete declaration.
7081 * m2-lang.c (m2_language_data): Delete la_print_typedef
7082 initializer.
7083 (m2_language::print_typedef): New member function.
7084 * objc-lang.c (objc_language_data): Delete la_print_typedef
7085 initializer.
7086 * opencl-lang.c (opencl_language_data): Likewise.
7087 * p-lang.c (pascal_language_data): Likewise.
7088 (pascal_language::print_typedef): New member function.
7089 * rust-lang.c (rust_print_typedef): Delete function,
7090 implementation moved to rust_language::print_typedef.
7091 (rust_language): Delete la_print_typedef initializer.
7092 (rust_language::print_typedef): New member function,
7093 implementation from rust_print_typedef.
7094 * typeprint.c (default_print_typedef): Delete.
7095
7096 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7097
7098 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7099 (ada_language::printstr): New member function.
7100 * c-lang.c (c_language_data): Delete la_printstr initializer.
7101 (cplus_language_data): Likewise.
7102 (asm_language_data): Likewise.
7103 (minimal_language_data): Likewise.
7104 * d-lang.c (d_language_data): Likewise.
7105 * f-lang.c (f_printstr): Rename to f_language::printstr.
7106 (f_language_data): Delete la_printstr initializer.
7107 (f_language::printstr): New member function, implementation from
7108 f_printstr.
7109 * go-lang.c (go_language_data): Delete la_printstr initializer.
7110 * language.c (language_defn::printstr): Define new member
7111 function.
7112 (unk_lang_printstr): Delete.
7113 (unknown_language_data): Delete la_printstr initializer.
7114 (unknown_language::printstr): New member function.
7115 (auto_language_data): Delete la_printstr initializer.
7116 (auto_language::printstr): New member function.
7117 * language.h (language_data): Delete la_printstr field.
7118 (language_defn::printstr): Declare new member function.
7119 (LA_PRINT_STRING): Update call to printstr.
7120 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7121 (m2_language_data): Delete la_printstr initializer.
7122 (m2_language::printstr): New member function, implementation from
7123 m2_printstr.
7124 * objc-lang.c (objc_language_data): Delete la_printstr
7125 initializer.
7126 * opencl-lang.c (opencl_language_data): Likewise.
7127 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7128 (pascal_language_data): Delete la_printstr initializer.
7129 (pascal_language::printstr): New member function, implementation
7130 from pascal_printstr.
7131 * p-lang.h (pascal_printstr): Delete declaration.
7132 * rust-lang.c (rust_printstr): Update header comment.
7133 (rust_language_data): Delete la_printstr initializer.
7134 (rust_language::printstr): New member function.
7135
7136 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7137
7138 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7139 (ada_language::printchar): New member function.
7140 * c-lang.c (c_language_data): Delete la_printchar initializer.
7141 (cplus_language_data): Likewise.
7142 (asm_language_data): Likewise.
7143 (minimal_language_data): Likewise.
7144 * d-lang.c (d_language_data): Likewise.
7145 * f-lang.c (f_printchar): Rename to f_language::printchar.
7146 (f_language_data): Delete la_printchar initializer.
7147 (f_language::printchar): New member function, implementation from
7148 f_printchar.
7149 * go-lang.c (go_language_data): Delete la_printchar initializer.
7150 * language.c (unk_lang_printchar): Delete.
7151 (language_defn::printchar): Define new member function.
7152 (unknown_language_data): Delete la_printchar initializer.
7153 (unknown_language::printchar): New member function.
7154 (auto_language_data): Delete la_printchar initializer.
7155 (auto_language::printchar): New member function.
7156 * language.h (language_data): Delete la_printchar field.
7157 (language_defn::printchar): Declare new member function.
7158 (LA_PRINT_CHAR): Update call to printchar.
7159 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7160 (m2_language::printchar): New member function.
7161 * objc-lang.c (objc_language_data): Delete la_printchar
7162 initializer.
7163 * opencl-lang.c (opencl_language_data): Likewise.
7164 * p-lang.c (pascal_language_data): Delete la_printchar
7165 initializer.
7166 (pascal_language::printchar): New member function.
7167 * rust-lang.c (rust_printchar): Rename to
7168 rust_language::printchar.
7169 (rust_language_data): Delete la_printchar initializer.
7170 (rust_language::printchar): New member function, implementation
7171 from rust_printchar.
7172
7173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7174
7175 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7176 (ada_language_data): Delete la_emitchar initializer.
7177 (ada_language::emitchar): New member function, implementation from
7178 emit_char.
7179 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7180 (cplus_language_data): Likewise.
7181 (asm_language_data): Likewise.
7182 (minimal_language_data): Likewise.
7183 * d-lang.c (d_language_data): Likewise.
7184 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7185 (f_language_data): Delete la_emitchar initializer.
7186 (f_language::emitchar): New member function, implementation from
7187 f_emit_char.
7188 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7189 * language.c (unk_lang_emit_char): Delete.
7190 (language_defn::emitchar): New member function definition.
7191 (unknown_language_data): Delete la_emitchar initializer.
7192 (unknown_language::emitchar): New member function.
7193 (auto_language_data): Delete la_emitchar initializer.
7194 (auto_language::emitchar): New member function.
7195 * language.h (language_data): Delete la_emitchar field.
7196 (language_defn::emitchar): New member field declaration.
7197 (LA_EMIT_CHAR): Update call to emitchar.
7198 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7199 (m2_language_data): Delete la_emitchar initializer.
7200 (m2_language::emitchar): New member function, implementation from
7201 m2_emit_char.
7202 * objc-lang.c (objc_language_data): Delete la_emitchar
7203 initializer.
7204 * opencl-lang.c (opencl_language_data): Likewise.
7205 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7206 (pascal_language_data): Delete la_emitchar initializer.
7207 (pascal_language::emitchar): New member function, implementation
7208 from pascal_emit_char.
7209 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7210 (rust_language_data): Delete la_emitchar initializer.
7211 (rust_language::emitchar): New member function, implementation
7212 from rust_emitchar.
7213
7214 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7215
7216 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7217 (ada_language_data): Delete la_post_parser initializer.
7218 (ada_language::post_parser): New member function.
7219 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7220 (cplus_language_data): Likewise.
7221 (asm_language_data): Likewise.
7222 (minimal_language_data): Likewise.
7223 * d-lang.c (d_language_data): Likewise.
7224 * f-lang.c (f_language_data): Likewise.
7225 * go-lang.c (go_language_data): Likewise.
7226 * language.c (unknown_language_data): Likewise.
7227 (auto_language_data): Likewise.
7228 * language.h (language_data): Delete la_post_parser field.
7229 (language_defn::post_parser): New member function.
7230 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7231 * objc-lang.c (objc_language_data): Likewise.
7232 * opencl-lang.c (opencl_language_data): Likewise.
7233 * p-lang.c (pascal_language_data): Likewise.
7234 * parse.c (parse_exp_in_context): Update call to post_parser.
7235 (null_post_parser): Delete definition.
7236 * parser-defs.h (null_post_parser): Delete declaration.
7237 * rust-lang.c (rust_language_data): Delete la_post_parser
7238 initializer.
7239
7240 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * ada-lang.c (parse): Rename to ada_language::parser.
7243 (ada_language_data): Delete la_parser initializer.
7244 (ada_language::parser): New member function, implementation from
7245 parse.
7246 * c-lang.c (c_language_data): Delete la_parser initializer.
7247 (cplus_language_data): Likewise.
7248 (asm_language_data): Likewise.
7249 (minimal_language_data): Likewise.
7250 * d-lang.c (d_language_data): Likewise.
7251 (d_language::parser): New member function.
7252 * f-lang.c (f_language_data): Delete la_parser initializer.
7253 (f_language::parser): New member function.
7254 * go-lang.c (go_language_data): Delete la_parser initializer.
7255 (go_language::parser): New member function.
7256 * language.c (unk_lang_parser): Delete.
7257 (language_defn::parser): Define new member function.
7258 (unknown_language_data): Delete la_parser initializer.
7259 (unknown_language::parser): New member function.
7260 (auto_language_data): Delete la_parser initializer.
7261 (auto_language::parser): New member function.
7262 * language.h (language_data): Delete la_parser field.
7263 (language_defn::parser): Declare new member function.
7264 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7265 (m2_language::parser): New member function.
7266 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7267 * opencl-lang.c (opencl_language_data): Likewise.
7268 * p-lang.c (pascal_language_data): Likewise.
7269 (pascal_language::parser): New member function.
7270 * parse.c (parse_exp_in_context): Update call to parser.
7271 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7272 (rust_language::parser): New member function.
7273
7274 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * top.c (print_gdb_configuration): Print --with-python-libdir
7277 configuration value.
7278
7279 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7280
7281 * NEWS: Mention change to the alias command.
7282
7283 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7284
7285 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7286 (alias_command_completer)
7287 (make_alias_options_def_group): New functions.
7288 (alias_opts, alias_option_defs): New struct and array.
7289 (alias_usage_error): Update usage.
7290 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7291 Use option framework.
7292 (_initialize_cli_cmds): Update alias command help.
7293 Update aliases command help.
7294 (show_user):
7295 Add NULL for new default_args lookup_cmd argument.
7296 (valid_command_p): Rename to validate_aliased_command.
7297 Add NULL for new default_args lookup_cmd argument. Verify that the
7298 aliased_command has no default args.
7299 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7300 (lookup_cmd_1, lookup_cmd): New argument default_args.
7301 (add_alias_cmd):
7302 Add NULL for new default_args lookup_cmd argument.
7303 (print_help_for_command): Show default args under the layout
7304 alias some_alias = some_aliased_cmd some_alias_default_arg.
7305 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7306 xfree default_args in destructor.
7307 * cli/cli-script.c (process_next_line, do_define_command):
7308 Add NULL for new default_args lookup_cmd argument.
7309 * command.h: Declare new default_args argument in lookup_cmd
7310 and lookup_cmd_1.
7311 * completer.c (complete_line_internal_1):
7312 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7313 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7314 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7315 Likewise.
7316 * infcmd.c (_initialize_infcmd): Likewise.
7317 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7318 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7319 * python/py-param.c (add_setshow_generic): Likewise.
7320 * remote.c (_initialize_remote): Likewise.
7321 * top.c (execute_command): Prepend default_args if command has some.
7322 (set_verbose):
7323 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7324 * tracepoint.c (validate_actionline, encode_actions_1):
7325 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7326
7327 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7328
7329 * jit.c (jit_read_descriptor): Use bool as the return type.
7330 (jit_breakpoint_re_set_internal): Use bool as the return type.
7331 Invert the return value logic; return true if the jit breakpoint
7332 has been successfully initialized.
7333 (jit_inferior_init): Update the call to
7334 jit_breakpoint_re_set_internal.
7335
7336 2020-06-22 Pedro Alves <palves@redhat.com>
7337
7338 PR gdb/25939
7339 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7340 Use the current inferior instead. Don't return
7341 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7342 wait again.
7343 * sol-thread.c (sol_thread_target::wait): Don't reference
7344 inferior_ptid.
7345 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7346 (sol_update_thread_list_callback): Use the current inferior's pid
7347 instead of inferior_ptid.
7348
7349 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7350
7351 * procfs.c: Cleanup many comments.
7352
7353 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7354 (AFTER_WATCHFLAG): Replace by value.
7355
7356 (MAIN_PROC_NAME_FORMAT): Inline ...
7357 (create_procinfo): ... here.
7358
7359 (procfs_debug_inferior): Remove SYS_exec handling.
7360 (syscall_is_exec): Likewise.
7361 (procfs_set_exec_trap): Likewise.
7362
7363 (syscall_is_lwp_exit): Inline in callers.
7364 (syscall_is_exit): Likewise.
7365 (syscall_is_exec): Likewise.
7366 (syscall_is_lwp_create): Likewise.
7367
7368 (invalidate_cache): Remove #if 0 code.
7369
7370 (make_signal_thread_runnable): Remove.
7371 (procfs_target::resume): Remove #if 0 code.
7372
7373 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7374
7375 PR gdb/25939
7376 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7377 call ...
7378 (procfs_target::create_inferior): ... here.
7379
7380 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7381
7382 * exec.c (validate_exec_file): Ensure the build-id is up to
7383 date by calling reopen_exec_file (that checks file timestamp
7384 to decide to re-read the file).
7385
7386 2020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 PR gdb/25412
7389 * gdbthread.h (delete_thread, delete_thread_silent)
7390 (find_thread_ptid): Update comments.
7391 * thread.c (current_thread_): New global.
7392 (is_current_thread): Move higher, and reimplement.
7393 (inferior_thread): Reimplement.
7394 (set_thread_exited): Use bool. Add assertions.
7395 (add_thread_silent): Simplify thread-reuse handling by always
7396 calling delete_thread.
7397 (delete_thread): Remove intro comment.
7398 (find_thread_ptid): Skip exited threads.
7399 (switch_to_thread_no_regs): Write to current_thread_.
7400 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7401 INFERIOR_PTID. Clear current_thread_.
7402
7403 2020-06-18 Pedro Alves <palves@redhat.com>
7404
7405 * aix-thread.c (pd_update): Use switch_to_thread.
7406
7407 2020-06-18 Pedro Alves <palves@redhat.com>
7408
7409 * ravenscar-thread.c (ravenscar_thread_target): Update.
7410 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7411 (ravenscar_thread_target::add_active_thread): ... this. Don't
7412 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7413 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7414
7415 2020-06-18 Pedro Alves <palves@redhat.com>
7416
7417 * nat/windows-nat.c (current_windows_thread): Remove.
7418 * nat/windows-nat.h (current_windows_thread): Remove.
7419 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7420 Adjust.
7421 (display_selectors): Adjust to fetch the current
7422 windows_thread_info based on inferior_ptid.
7423 (fake_create_process): No longer write to current_windows_thread.
7424 (windows_nat_target::get_windows_debug_event):
7425 Don't set inferior_ptid or current_windows_thread.
7426 (windows_nat_target::wait): Adjust to not rely on
7427 current_windows_thread.
7428 (do_initial_windows_stuff): Now a method of windows_nat_target.
7429 Switch to the last_ptid thread.
7430 (windows_nat_target::attach): Adjust.
7431 (windows_nat_target::detach): Use switch_to_no_thread instead of
7432 writing to inferior_ptid directly.
7433 (windows_nat_target::create_inferior): Adjust.
7434
7435 2020-06-18 Pedro Alves <palves@redhat.com>
7436
7437 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7438
7439 2020-06-18 Pedro Alves <palves@redhat.com>
7440
7441 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7442 after creating it, instead of writing to inferior_ptid. Don't
7443 write to inferior_ptid.
7444
7445 2020-06-18 Pedro Alves <palves@redhat.com>
7446
7447 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7448
7449 2020-06-18 Pedro Alves <palves@redhat.com>
7450
7451 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7452 it, instead of writing to inferior_ptid.
7453
7454 2020-06-18 Pedro Alves <palves@redhat.com>
7455
7456 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7457 to inferior_ptid.
7458
7459 2020-06-18 Pedro Alves <palves@redhat.com>
7460
7461 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7462 instead of writing to inferior_ptid directly.
7463
7464 2020-06-18 Pedro Alves <palves@redhat.com>
7465
7466 * corelow.c (core_target::close): Use switch_to_no_thread instead
7467 of writing to inferior_ptid directly.
7468 (add_to_thread_list, core_target_open): Use switch_to_thread
7469 instead of writing to inferior_ptid directly.
7470
7471 2020-06-18 Pedro Alves <palves@redhat.com>
7472
7473 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7474 inferior_ptid.
7475 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7476 inferior_ptid.
7477 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7478 inferior_ptid directly.
7479 (darwin_nat_target::init_thread_list): Switch to thread, instead
7480 of writing to inferior_ptid.
7481 (darwin_nat_target::attach): Don't write to inferior_ptid.
7482 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7483
7484 2020-06-18 Pedro Alves <palves@redhat.com>
7485
7486 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7487 thread.
7488 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7489 Instead use switch_to_thread.
7490 (gnu_nat_target::detach): Use switch_to_no_thread
7491 instead of writing to inferior_ptid directly. Used passed-in
7492 inferior instead of looking up the inferior by pid.
7493
7494 2020-06-18 Pedro Alves <palves@redhat.com>
7495
7496 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7497 inferior_ptid.
7498
7499 2020-06-18 Pedro Alves <palves@redhat.com>
7500
7501 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7502 inferior_ptid.
7503 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7504 thread.
7505 (nto_procfs_target::detach): Avoid referencing
7506 inferior_ptid. Use switch_to_no_thread instead of writing to
7507 inferior_ptid directly.
7508 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7509 instead of writing to inferior_ptid directly.
7510 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7511 to thread.
7512
7513 2020-06-18 Pedro Alves <palves@redhat.com>
7514
7515 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7516 after creating it, instead of writing to inferior_ptid.
7517 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7518 to inferior_ptid directly.
7519 (gdbsim_target::wait): Don't write to inferior_ptid.
7520
7521 2020-06-18 Pedro Alves <palves@redhat.com>
7522
7523 * remote.c (remote_target::remote_notice_new_inferior): Use
7524 switch_to_thread instead of writing to inferior_ptid directly.
7525 (remote_target::add_current_inferior_and_thread): Use
7526 switch_to_no_thread instead of writing to inferior_ptid directly.
7527 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7528 and switch_to_thread instead of using set_current_inferior or
7529 writing to inferior_ptid directly.
7530
7531 2020-06-18 Pedro Alves <palves@redhat.com>
7532
7533 * tracectf.c (ctf_target_open): Switch to added thread instead of
7534 writing to inferior_ptid directly.
7535 (ctf_target::close): Use switch_to_no_thread instead of writing to
7536 inferior_ptid directly.
7537
7538 2020-06-18 Pedro Alves <palves@redhat.com>
7539
7540 * tracefile-tfile.c (tfile_target_open): Don't write to
7541 inferior_ptid directly, instead switch to added thread.
7542 (tfile_target::close): Use switch_to_no_thread instead of writing
7543 to inferior_ptid directly.
7544
7545 2020-06-18 Pedro Alves <palves@redhat.com>
7546
7547 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7548 (procfs_target::detach): Use switch_to_no_thread
7549 instead of writing to inferior_ptid directly.
7550 (do_attach): Change return type to void. Switch to the added
7551 thread.
7552 (procfs_target::create_inferior): Switch to the added thread.
7553 (procfs_do_thread_registers): Don't write to inferior_ptid.
7554
7555 2020-06-18 Pedro Alves <palves@redhat.com>
7556
7557 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7558 of writing to inferior_ptid.
7559 (scoped_restore_exited_inferior): Delete.
7560 (handle_vfork_child_exec_or_exit): Simplify using
7561 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7562 instead of writing to inferior_ptid.
7563 (THREAD_STOPPED_BY): Delete.
7564 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7565 (thread_stopped_by_hw_breakpoint): Delete.
7566 (save_waitstatus): Use
7567 scoped_restore_current_thread+switch_to_thread, and call
7568 target_stopped_by_watchpoint instead of
7569 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7570 instead of thread_stopped_by_sw_breakpoint, and
7571 target_stopped_by_hw_breakpoint instead of
7572 thread_stopped_by_hw_breakpoint.
7573 (handle_inferior_event)
7574 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7575 inferior_ptid directly, nor
7576 set_current_inferior/set_current_program_space. Use
7577 switch_to_thread / switch_to_inferior_no_thread instead.
7578
7579 2020-06-18 Pedro Alves <palves@redhat.com>
7580
7581 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7582 instead of writing to inferior_ptid.
7583
7584 2020-06-18 Pedro Alves <palves@redhat.com>
7585
7586 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7587 added thread.
7588 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7589 to the added thread.
7590 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7591 instead of writing to inferior_ptid.
7592
7593 2020-06-18 Pedro Alves <palves@redhat.com>
7594
7595 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7596 (register_to_value_test): Mock a program_space too. Heap-allocate
7597 the address space. Don't write to inferior_ptid. Use
7598 switch_to_thread instead.
7599
7600 2020-06-18 Pedro Alves <palves@redhat.com>
7601
7602 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7603 Delete.
7604 (find_signalled_thread()): New, factored out from
7605 linux_make_corefile_notes and adjusted to handle exited threads.
7606 (linux_make_corefile_notes): Adjust to use the new
7607 find_signalled_thread.
7608
7609 2020-06-18 Pedro Alves <palves@redhat.com>
7610
7611 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7612 of saving/restoring inferior_ptid.
7613
7614 2020-06-17 Tom Tromey <tom@tromey.com>
7615
7616 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7617 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7618 declare.
7619 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7620
7621 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7624 of partial symtabs.
7625
7626 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * regformats/reg-arm.dat: Remove.
7629 * regformats/reg-bfin.dat: Remove.
7630 * regformats/reg-cris.dat: Remove.
7631 * regformats/reg-crisv32.dat: Remove.
7632 * regformats/reg-m32r.dat: Remove.
7633 * regformats/reg-tilegx.dat: Remove.
7634 * regformats/reg-tilegx32.dat: Remove.
7635
7636 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * features/Makefile (WHICH): Remove arm files.
7639 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7640 * regformats/arm/arm-with-neon.dat: Remove.
7641 * regformats/arm/arm-with-vfpv2.dat: Remove.
7642 * regformats/arm/arm-with-vfpv3.dat: Remove.
7643
7644 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * features/Makefile (XMLTOC): Remove rx.xml.
7647
7648 2020-06-17 Pedro Alves <palves@redhat.com>
7649
7650 * gdbthread.h (thread_control_state) <trap_expected> Update
7651 comments.
7652
7653 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7656 ada_language::lookup_symbol_nonlocal.
7657 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7658 (ada_language::lookup_symbol_nonlocal): New member function,
7659 implementation from ada_lookup_symbol_nonlocal.
7660 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7661 initializer.
7662 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7663 initializer.
7664 (cplus_language::lookup_symbol_nonlocal): New member function.
7665 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7666 (minimal_language_data) Likewise.
7667 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7668 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7669 initializer.
7670 (d_language::lookup_symbol_nonlocal): New member function.
7671 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7672 initializer.
7673 (f_language::lookup_symbol_nonlocal): New member function.
7674 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7675 initializer.
7676 * language.c (unknown_language_data): Likewise.
7677 (auto_language_data): Likewise.
7678 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7679 field.
7680 (language_defn::lookup_symbol_nonlocal): New member function.
7681 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7682 initializer.
7683 * objc-lang.c (objc_language_data): Likewise.
7684 * opencl-lang.c (opencl_language_data): Likewise.
7685 * p-lang.c (pascal_language_data): Likewise.
7686 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7687 rust_language::lookup_symbol_nonlocal.
7688 (rust_language_data): Delete la_lookup_symbol_nonlocal
7689 initializer.
7690 (rust_language::lookup_symbol_nonlocal): New member function,
7691 implementation from rust_lookup_symbol_nonlocal.
7692 * symtab.c (lookup_symbol_aux): Update call to
7693 lookup_symbol_nonlocal.
7694 (basic_lookup_symbol_nonlocal): Rename to...
7695 (language_defn::lookup_symbol_nonlocal): ...this, and update
7696 header comment. Remove language_defn parameter, and replace with
7697 uses of `this'.
7698 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7699
7700 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7701
7702 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7703 initializer.
7704 (ada_language::value_print_inner): New member function.
7705 * c-lang.c (c_language_data): Delete la_value_print_inner
7706 initializer.
7707 (cplus_language_data): Likewise.
7708 (asm_language_data): Likewise.
7709 (minimal_language_data): Likewise.
7710 * d-lang.c (d_language_data): Likewise.
7711 (d_language::value_print_inner): New member function.
7712 * f-lang.c (f_language_data): Delete la_value_print_inner
7713 initializer.
7714 (f_language::value_print_inner): New member function.
7715 * f-lang.h (f_value_print_innner): Rename to...
7716 (f_value_print_inner): ...this (note spelling of 'inner').
7717 * f-valprint.c (f_value_print_innner): Rename to...
7718 (f_value_print_inner): ...this (note spelling of 'inner').
7719 * go-lang.c (go_language_data): Delete la_value_print_inner
7720 initializer.
7721 (go_language::value_print_inner): New member function.
7722 * language.c (language_defn::value_print_inner): Define new member
7723 function.
7724 (unk_lang_value_print_inner): Delete.
7725 (unknown_language_data): Delete la_value_print_inner initializer.
7726 (unknown_language::value_print_inner): New member function.
7727 (auto_language_data): Delete la_value_print_inner initializer.
7728 (auto_language::value_print_inner): New member function.
7729 * language.h (language_data): Delete la_value_print_inner field.
7730 (language_defn::value_print_inner): Delcare new member function.
7731 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7732 initializer.
7733 (m2_language::value_print_inner): New member function.
7734 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7735 initializer.
7736 * opencl-lang.c (opencl_language_data): Likewise.
7737 * p-lang.c (pascal_language_data): Likewise.
7738 (pascal_language::value_print_inner): New member function.
7739 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7740 initializer.
7741 (rust_language::value_print_inner): New member function.
7742 * valprint.c (do_val_print): Update call to value_print_inner.
7743
7744 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7745
7746 * ada-lang.c (ada_language_data): Delete la_value_print
7747 initializer.
7748 (ada_language::value_print): New member function.
7749 * c-lang.c (c_language_data): Delete la_value_print initializer.
7750 (cplus_language_data): Likewise.
7751 (asm_language_data): Likewise.
7752 (minimal_language_data): Likewise.
7753 * d-lang.c (d_language_data): Likewise.
7754 * f-lang.c (f_language_data): Likewise.
7755 * go-lang.c (go_language_data): Likewise.
7756 * language.c (unk_lang_value_print): Delete.
7757 (language_defn::value_print): Define new member function.
7758 (unknown_language_data): Delete la_value_print initializer.
7759 (unknown_language::value_print): New member function.
7760 (auto_language_data): Delete la_value_print initializer.
7761 (auto_language::value_print): New member function.
7762 * language.h (language_data): Delete la_value_print field.
7763 (language_defn::value_print): Declare new member function.
7764 (LA_VALUE_PRINT): Update call to value_print.
7765 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7766 * objc-lang.c (objc_language_data): Likewise.
7767 * opencl-lang.c (opencl_language_data): Likewise.
7768 * p-lang.c (pascal_language_data): Likewise.
7769 (pascal_language::value_print): New member function.
7770 * rust-lang.c (rust_language_data): Delete la_value_print
7771 initializer.
7772
7773 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * ada-lang.c (ada_watch_location_expression): Rename to
7776 ada_language::watch_location_expression.
7777 (ada_language_data): Delete la_watch_location_expression
7778 initializer.
7779 (ada_language::watch_location_expression): New member function,
7780 implementation from ada_watch_location_expression.
7781 * breakpoint.c (watch_command_1): Update call to
7782 watch_location_expression.
7783 * c-lang.c (c_watch_location_expression): Rename to
7784 language_defn::watch_location_expression.
7785 (c_language_data): Delete la_watch_location_expression
7786 initializer.
7787 (cplus_language_data): Likewise.
7788 (asm_language_data): Likewise.
7789 (minimal_language_data): Likewise.
7790 * c-lang.h (c_watch_location_expression): Delete declaration.
7791 * d-lang.c (d_language_data): Delete la_watch_location_expression
7792 initializer.
7793 * f-lang.c (f_language_data): Likewise.
7794 * go-lang.c (go_language_data): Likewise.
7795 * language.c (language_defn::watch_location_expression): Member
7796 function implementation from c_watch_location_expression.
7797 (unknown_language_data): Delete la_watch_location_expression
7798 initializer.
7799 (auto_language_data): Likewise.
7800 * language.h (language_data): Delete la_watch_location_expression
7801 field.
7802 (language_defn::watch_location_expression): Declare new member
7803 function.
7804 * m2-lang.c (m2_language_data): Delete
7805 la_watch_location_expression initializer.
7806 * objc-lang.c (objc_language_data): Likewise.
7807 * opencl-lang.c (opencl_language_data): Likewise.
7808 * p-lang.c (pascal_language_data): Likewise.
7809 * rust-lang.c (rust_watch_location_expression): Rename to
7810 rust_language::watch_location_expression.
7811 (rust_language_data): Delete la_watch_location_expression
7812 initializer.
7813 (rust_language::watch_location_expression): New member function,
7814 implementation from rust_watch_location_expression.
7815
7816 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7819 ada_language::collect_symbol_completion_matches.
7820 (ada_language_data): Delete la_collect_symbol_completion_matches
7821 initializer.
7822 (ada_language::collect_symbol_completion_matches): New member
7823 function, implementation from
7824 ada_collect_symbol_completion_matches.
7825 * c-lang.c (c_language_data): Delete
7826 la_collect_symbol_completion_matches initializer.
7827 (cplus_language_data): Likewise.
7828 (asm_language_data): Likewise.
7829 (minimal_language_data): Likewise.
7830 * d-lang.c (d_language_data): Likewise.
7831 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7832 f_language::collect_symbol_completion_matches.
7833 (f_language_data): Delete la_collect_symbol_completion_matches
7834 initializer.
7835 (f_language::collect_symbol_completion_matches) New member
7836 function, implementation from f_collect_symbol_completion_matches.
7837 * go-lang.c (go_language_data): Delete
7838 la_collect_symbol_completion_matches initializer.
7839 * language.c (unknown_language_data): Likewise.
7840 (auto_language_data): Likewise.
7841 * language.h (language_data): Delete
7842 la_collect_symbol_completion_matches field.
7843 (language_defn::collect_symbol_completion_matches): New member
7844 function.
7845 * m2-lang.c (m2_language_data): Delete
7846 la_collect_symbol_completion_matches initializer.
7847 * objc-lang.c (objc_language_data): Likewise.
7848 * opencl-lang.c (opencl_language_data): Likewise.
7849 * p-lang.c (pascal_language_data): Likewise.
7850 * rust-lang.c (rust_language_data): Likewise.
7851 * symtab.c (default_collect_symbol_completion_matches): Delete.
7852 (collect_symbol_completion_matches): Update call to
7853 collect_symbol_completion_matches.
7854 (collect_symbol_completion_matches_type): Likewise.
7855 * symtab.h (default_collect_symbol_completion_matches): Delete
7856 declaration.
7857
7858 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7859
7860 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7861 (ada_language_data): Delete la_word_break_characters initializer.
7862 (ada_language::word_break_characters): New member function.
7863 * c-lang.c (c_language_data): Delete la_word_break_characters
7864 initializer.
7865 (cplus_language_data): Likewise.
7866 (asm_language_data): Likewise.
7867 (minimal_language_data): Likewise.
7868 * completer.c: Update global comment.
7869 (advance_to_expression_complete_word_point): Update call to
7870 word_break_characters.
7871 (complete_files_symbols): Likewise.
7872 (complete_line_internal_1): Likewise.
7873 (default_completer_handle_brkchars): Likewise.
7874 (skip_quoted_chars): Likewise.
7875 * d-lang.c (d_language_data): Delete la_word_break_characters
7876 initializer.
7877 * f-lang.c (f_word_break_characters): Delete.
7878 (f_language_data): Delete la_word_break_characters initializer.
7879 (f_language::word_break_characters): New member function.
7880 * go-lang.c (go_language_data): Delete la_word_break_characters
7881 initializer.
7882 * language.c (unknown_language_data): Likewise.
7883 (auto_language_data): Likewise.
7884 * language.h (default_word_break_characters): Move declaration to
7885 earlier in the file.
7886 (language_data): Delete la_word_break_characters field.
7887 (language_defn::word_break_characters): New member function.
7888 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7889 initializer.
7890 * objc-lang.c (objc_language_data): Likewise.
7891 * opencl-lang.c (opencl_language_data): Likewise.
7892 * p-lang.c (pascal_language_data): Likewise.
7893 * rust-lang.c (rust_language_data): Likewise.
7894
7895 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7898 (ada_language_data): Delete la_get_symbol_name_matcher
7899 initializer.
7900 (language_defn::get_symbol_name_matcher_inner): New member
7901 function.
7902 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7903 initializer.
7904 (cplus_language_data): Likewise.
7905 (cplus_language::get_symbol_name_matcher_inner): New member
7906 function.
7907 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7908 (minimal_language_data): Likewise.
7909 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7910 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7911 initializer.
7912 * dictionary.c (iter_match_first_hashed): Update call to
7913 get_symbol_name_matcher.
7914 (iter_match_next_hashed): Likewise.
7915 (iter_match_next_linear): Likewise.
7916 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7917 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7918 initializer.
7919 (f_language::get_symbol_name_matcher_inner): New member function.
7920 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7921 initializer.
7922 * language.c (default_symbol_name_matcher): Update header comment,
7923 make static.
7924 (language_defn::get_symbol_name_matcher): New definition.
7925 (language_defn::get_symbol_name_matcher_inner): Likewise.
7926 (get_symbol_name_matcher): Delete.
7927 (unknown_language_data): Delete la_get_symbol_name_matcher
7928 initializer.
7929 (auto_language_data): Likewise.
7930 * language.h (language_data): Delete la_get_symbol_name_matcher
7931 field.
7932 (language_defn::get_symbol_name_matcher): New member function.
7933 (language_defn::get_symbol_name_matcher_inner): Likewise.
7934 (default_symbol_name_matcher): Delete declaration.
7935 * linespec.c (find_methods): Update call to
7936 get_symbol_name_matcher.
7937 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7938 initializer.
7939 * minsyms.c (lookup_minimal_symbol): Update call to
7940 get_symbol_name_matcher.
7941 (iterate_over_minimal_symbols): Likewise.
7942 * objc-lang.c (objc_language_data): Delete
7943 la_get_symbol_name_matcher initializer.
7944 * opencl-lang.c (opencl_language_data): Likewise.
7945 * p-lang.c (pascal_language_data): Likewise.
7946 * psymtab.c (psymbol_name_matches): Update call to
7947 get_symbol_name_matcher.
7948 * rust-lang.c (rust_language_data): Delete
7949 la_get_symbol_name_matcher initializer.
7950 * symtab.c (symbol_matches_search_name): Update call to
7951 get_symbol_name_matcher.
7952 (compare_symbol_name): Likewise.
7953
7954 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * ada-lang.c (ada_language_data): Delete la_compute_program
7957 initializer.
7958 * c-lang.c (c_language_data): Likewise.
7959 (c_language::compute_program): New member function.
7960 (cplus_language_data): Delete la_compute_program initializer.
7961 (cplus_language::compute_program): New member function.
7962 (asm_language_data): Delete la_compute_program initializer.
7963 (minimal_language_data): Likewise.
7964 * c-lang.h (c_compute_program): Update comment.
7965 (cplus_compute_program): Likewise.
7966 * compile/compile-c-support.c (c_compute_program): Likewise.
7967 (cplus_compute_program): Likewise.
7968 * compile/compile.c (compile_to_object): Update call to
7969 la_compute_program.
7970 * d-lang.c (d_language_data): Delete la_compute_program
7971 initializer.
7972 * f-lang.c (f_language_data): Likewise.
7973 * go-lang.c (go_language_data): Likewise.
7974 * language.c (unknown_language_data): Likewise.
7975 (auto_language_data): Likewise.
7976 * language.h (language_data): Delete la_compute_program field.
7977 (language_defn::compute_program): New member function.
7978 * m2-lang.c (m2_language_data): Delete la_compute_program
7979 initializer.
7980 * objc-lang.c (objc_language_data): Likewise.
7981 * opencl-lang.c (opencl_language_data): Likewise.
7982 * p-lang.c (pascal_language_data): Likewise.
7983 * rust-lang.c (rust_language_data): Likewise.
7984
7985 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * ada-lang.c (ada_language_data) Delete
7988 la_class_name_from_physname initializer.
7989 * c-lang.c (c_language_data): Likewise.
7990 (cplus_language_data): Likewise.
7991 (cplus_language::class_name_from_physname): New member function.
7992 (asm_language_data): Delete la_class_name_from_physname
7993 initializer.
7994 (minimal_language_data): Likewise.
7995 * d-lang.c (d_language_data): Likewise.
7996 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7997 method on language_defn class.
7998 (guess_full_die_structure_name): Likewise.
7999 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8000 initializer.
8001 * go-lang.c (go_language_data): Likewise.
8002 * language.c (language_class_name_from_physname): Delete.
8003 (unk_lang_class_name): Delete.
8004 (unknown_language_data): Delete la_class_name_from_physname
8005 initializer.
8006 (auto_language_data): Likewise.
8007 * language.h (language_data): Delete la_class_name_from_physname
8008 field.
8009 (language_defn::class_name_from_physname): New function.
8010 (language_class_name_from_physname): Delete declaration.
8011 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8012 initializer.
8013 * objc-lang.c (objc_language_data): Likewise.
8014 * opencl-lang.c (opencl_language_data): Likewise.
8015 * p-lang.c (pascal_language_data): Likewise.
8016 * rust-lang.c (rust_language_data): Likewise.
8017
8018 2020-06-16 Tom Tromey <tom@tromey.com>
8019
8020 * tui/tui-data.h (STATUS_NAME): New macro.
8021 * tui/tui-layout.c (tui_remove_some_windows)
8022 (initialize_known_windows, tui_register_window)
8023 (tui_layout_split::remove_windows, initialize_layouts)
8024 (tui_new_layout_command): Don't use hard-coded window names.
8025
8026 2020-06-16 Tom Tromey <tom@tromey.com>
8027
8028 PR tui/25348:
8029 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8030 tui_initialize_readline. Only run once. Call rl_initialize.
8031 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8032 tui_initialize_readline.
8033 * tui/tui-io.c (tui_setup_io): Call
8034 tui_ensure_readline_initialized.
8035 * tui/tui-interp.c (tui_interp::init): Update.
8036
8037 2020-06-16 Tom Tromey <tom@tromey.com>
8038
8039 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8040 Also preserve the status window.
8041
8042 2020-06-16 Tom Tromey <tom@tromey.com>
8043
8044 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8045 where m_window==nullptr.
8046
8047 2020-06-15 Tom Tromey <tromey@adacore.com>
8048
8049 * windows-nat.c (windows_nat::handle_output_debug_string):
8050 Update.
8051 (windows_nat::handle_ms_vc_exception): Update.
8052 * target.h (target_read_string): Change API.
8053 * target.c (target_read_string): Change API.
8054 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8055 Update.
8056 * solib-frv.c (frv_current_sos): Update.
8057 * solib-dsbt.c (dsbt_current_sos): Update.
8058 * solib-darwin.c (darwin_current_sos): Update.
8059 * linux-thread-db.c (inferior_has_bug): Update.
8060 * expprint.c (print_subexp_standard): Update.
8061 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8062 (ada_exception_message_1): Update.
8063
8064 2020-06-15 Tom Tromey <tromey@adacore.com>
8065
8066 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8067
8068 2020-06-15 Tom Tromey <tromey@adacore.com>
8069
8070 * valprint.c (read_string): Update comment.
8071 * target.c (MIN): Remove.
8072 (target_read_string): Rewrite.
8073
8074 2020-06-15 Tom Tromey <tromey@adacore.com>
8075
8076 * corefile.c (read_memory_string): Remove.
8077 * ada-valprint.c (ada_value_print_ptr): Update.
8078 * ada-lang.h (ada_tag_name): Change return type.
8079 * ada-lang.c (type_from_tag): Update.
8080 (ada_tag_name_from_tsd): Change return type. Use
8081 target_read_string.
8082 (ada_tag_name): Likewise.
8083 * gdbcore.h (read_memory_string): Don't declare.
8084
8085 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8086
8087 * symtab.c (rbreak_command): Ignore Windows drive colon.
8088
8089 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * NEWS: Mention removed GDBserver host support.
8092
8093 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8094
8095 * features/riscv/rebuild-csr-xml.sh: Updated.
8096
8097 2020-06-11 Tom Tromey <tom@tromey.com>
8098
8099 PR gdb/18318:
8100 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8101
8102 2020-06-09 Jonny Grant <jg@jguk.org>
8103 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8104
8105 * main.c (captured_main_1): Don't print new line after help.
8106 (print_gdb_help): add mailing list and IRC channel information
8107 to --help. Add new lines between items in the footer. Remove
8108 quotes around bug url.
8109
8110 2020-06-11 Keith Seitz <keiths@redhat.com>
8111
8112 PR gdb/21356
8113 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8114 Resolve typedefs for type length calculations.
8115
8116 2020-06-10 Tom de Vries <tdevries@suse.de>
8117
8118 PR ada/24713
8119 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8120 (write_psymbols): Enable .gdb_index for ada.
8121 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8122 ada.
8123
8124 2020-06-10 Tom de Vries <tdevries@suse.de>
8125
8126 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8127 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8128 namei" instead of "const char *name" argument.
8129 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8130 dw2_symtab_iter_init.
8131
8132 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8135 to use type::field and field::type instead.
8136
8137 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8140 to use field::type instead.
8141
8142 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * gdbtypes.h (struct field) <type, set_type>: New methods.
8145 Rename `type` field to...
8146 <m_type>: ... this. Change references throughout to use type or
8147 set_type methods.
8148 (FIELD_TYPE): Use field::type. Change call sites that modify
8149 the field's type to use field::set_type instead.
8150
8151 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8154 to use type::index_type instead.
8155
8156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8159 methods.
8160 (TYPE_INDEX_TYPE): Use type::index_type.
8161 * gdbtypes.c (create_array_type_with_stride): Likewise.
8162
8163 2020-06-07 Tom Tromey <tom@tromey.com>
8164
8165 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8166 parameter.
8167 (generic_value_print): Update.
8168
8169 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 Revert commit 982a38f60b0.
8172 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8173
8174 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8175
8176 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8177 avoid use after free.
8178
8179 2020-06-05 Tom de Vries <tdevries@suse.de>
8180
8181 * NEWS: Fix typos.
8182
8183 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8186 the per_bfd object.
8187 (dwarf2_read_debug_names): Likewise.
8188 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8189 object when re-using a per_bfd object with an index.
8190
8191 2020-06-03 Tom de Vries <tdevries@suse.de>
8192
8193 PR symtab/26046
8194 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8195 children for C++.
8196 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8197 DW_TAG_subprogram.
8198
8199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * ada-lang.c (ada_language_data): Delete skip_trampoline
8202 initializer.
8203 * c-lang.c (c_language_data): Likewise.
8204 (cplus_language_data): Likewise.
8205 (cplus_language::skip_trampoline): New member function.
8206 (asm_language_data): Delete skip_trampoline initializer.
8207 (minimal_language_data): Likewise.
8208 * d-lang.c (d_language_data): Likewise.
8209 * f-lang.c (f_language_data): Likewise.
8210 * go-lang.c (go_language_data): Likewise.
8211 * language.c (unk_lang_trampoline): Delete function.
8212 (skip_language_trampoline): Update.
8213 (unknown_language_data): Delete skip_trampoline initializer.
8214 (auto_language_data): Likewise.
8215 * language.h (language_data): Delete skip_trampoline field.
8216 (language_defn::skip_trampoline): New function.
8217 * m2-lang.c (m2_language_data): Delete skip_trampoline
8218 initializer.
8219 * objc-lang.c (objc_skip_trampoline): Delete function, move
8220 implementation to objc_language::skip_trampoline.
8221 (objc_language_data): Delete skip_trampoline initializer.
8222 (objc_language::skip_trampoline): New member function with
8223 implementation from objc_skip_trampoline.
8224 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8225 initializer.
8226 * p-lang.c (pascal_language_data): Likewise.
8227 * rust-lang.c (rust_language_data): Likewise.
8228
8229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8230
8231 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8232 (ada_language::demangle): New member function.
8233 * c-lang.c (c_language_data): Delete la_demangle initializer.
8234 (cplus_language_data): Delete la_demangle initializer.
8235 (cplus_language::demangle): New member function.
8236 (asm_language_data): Delete la_demangle initializer.
8237 (minimal_language_data): Delete la_demangle initializer.
8238 * d-lang.c (d_language_data): Delete la_demangle initializer.
8239 (d_language::demangle): New member function.
8240 * f-lang.c (f_language_data): Delete la_demangle initializer.
8241 (f_language::demangle): New member function.
8242 * go-lang.c (go_language_data): Delete la_demangle initializer.
8243 (go_language::demangle): New member function.
8244 * language.c (language_demangle): Update.
8245 (unk_lang_demangle): Delete.
8246 (unknown_language_data): Delete la_demangle initializer.
8247 (unknown_language::demangle): New member function.
8248 (auto_language_data): Delete la_demangle initializer.
8249 (auto_language::demangle): New member function.
8250 * language.h (language_data): Delete la_demangle field.
8251 (language_defn::demangle): New function.
8252 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8253 * objc-lang.c (objc_language_data): Delete la_demangle
8254 initializer.
8255 (objc_language::demangle): New member function.
8256 * opencl-lang.c (opencl_language_data): Delete la_demangle
8257 initializer.
8258 * p-lang.c (pascal_language_data): Likewise.
8259 * rust-lang.c (rust_language_data): Likewise.
8260 (rust_language::demangle): New member function.
8261
8262 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * ada-lang.c (ada_language_data): Delete la_print_type
8265 initializer.
8266 (ada_language::print_type): New member function.
8267 * c-lang.c (c_language_data): Delete la_print_type initializer.
8268 (c_language::print_type): New member function.
8269 (cplus_language_data): Delete la_print_type initializer.
8270 (cplus_language::print_type): New member function.
8271 (asm_language_data): Delete la_print_type initializer.
8272 (asm_language::print_type): New member function.
8273 (minimal_language_data): Delete la_print_type initializer.
8274 (minimal_language::print_type): New member function.
8275 * d-lang.c (d_language_data): Delete la_print_type initializer.
8276 (d_language::print_type): New member function.
8277 * f-lang.c (f_language_data): Delete la_print_type initializer.
8278 (f_language::print_type): New member function.
8279 * go-lang.c (go_language_data): Delete la_print_type initializer.
8280 (go_language::print_type): New member function.
8281 * language.c (unk_lang_print_type): Delete.
8282 (unknown_language_data): Delete la_print_type initializer.
8283 (unknown_language::print_type): New member function.
8284 (auto_language_data): Delete la_print_type initializer.
8285 (auto_language::print_type): New member function.
8286 * language.h (language_data): Delete la_print_type field.
8287 (language_defn::print_type): New function.
8288 (LA_PRINT_TYPE): Update.
8289 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8290 (m2_language::print_type): New member function.
8291 * objc-lang.c (objc_language_data): Delete la_print_type
8292 initializer.
8293 (objc_language::print_type): New member function.
8294 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8295 to opencl_language::print_type.
8296 (opencl_language_data): Delete la_print_type initializer.
8297 (opencl_language::print_type): New member function, implementation
8298 from opencl_print_type.
8299 * p-lang.c (pascal_language_data): Delete la_print_type
8300 initializer.
8301 (pascal_language::print_type): New member function.
8302 * rust-lang.c (rust_print_type): Delete, implementation moved to
8303 rust_language::print_type.
8304 (rust_language_data): Delete la_print_type initializer.
8305 (rust_language::print_type): New member function, implementation
8306 from rust_print_type.
8307
8308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8309
8310 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8311 implementation moves to...
8312 (ada_language::sniff_from_mangled_name): ...here. Update return
8313 type.
8314 (ada_language_data): Delete la_sniff_from_mangled_name
8315 initializer.
8316 * c-lang.c (c_language_data): Likewise.
8317 (cplus_language_data): Likewise.
8318 (cplus_language::sniff_from_mangled_name): New member function,
8319 implementation taken from gdb_sniff_from_mangled_name.
8320 (asm_language_data): Delete la_sniff_from_mangled_name
8321 initializer.
8322 (minimal_language_data): Likewise.
8323 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8324 implementation moves to cplus_language::sniff_from_mangled_name.
8325 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8326 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8327 moves to...
8328 (d_language::sniff_from_mangled_name): ...here.
8329 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8330 * f-lang.c (f_language_data): Likewise.
8331 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8332 moves to...
8333 (go_language::sniff_from_mangled_name): ...here.
8334 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8335 * language.c (language_sniff_from_mangled_name): Delete.
8336 (unknown_language_data): Delete la_sniff_from_mangled_name
8337 initializer.
8338 (auto_language_data): Likewise.
8339 * language.h (language_data): Delete la_sniff_from_mangled_name
8340 field.
8341 (language_defn::sniff_from_mangled_name): New function.
8342 (language_sniff_from_mangled_name): Delete declaration.
8343 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8344 field.
8345 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8346 implementation moves to...
8347 (objc_language::sniff_from_mangled_name): ...here.
8348 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8349 * opencl-lang.c (opencl_language_data): Likewise.
8350 * p-lang.c (pascal_language_data): Likewise.
8351 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8352 implementation moves to...
8353 (rust_language::sniff_from_mangled_name): ...here.
8354 (rust_language_data): Delete la_sniff_from_mangled_name
8355 initializer.
8356 * symtab.c (symbol_find_demangled_name): Call
8357 sniff_from_mangled_name member function.
8358
8359 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8360
8361 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8362 initializer.
8363 * c-lang.c (c_language_data): Likewise.
8364 (cplus_language_data): Likewise.
8365 (cplus_language::search_name_hash): New member function.
8366 (asm_language_data): Delete la_search_name_hash initializer.
8367 (minimal_language_data): Likewise.
8368 * d-lang.c (d_language_data): Likewise.
8369 * dictionary.c (default_search_name_hash): Rename to...
8370 (language_defn::search_name_hash): ...this.
8371 * f-lang.c (f_language_data): Likewise.
8372 (f_language::search_name_hash): New member function.
8373 * go-lang.c (go_language_data): Delete la_search_name_hash
8374 initializer.
8375 * language.c (unknown_language_data): Likewise.
8376 (auto_language_data): Likewise.
8377 * language.h (struct language_data): Delete la_search_name_hash
8378 field.
8379 (language_defn::search_name_hash): Declare new member function.
8380 (default_search_name_hash): Delete declaration.
8381 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8382 initializer.
8383 * objc-lang.c (objc_language_data): Likewise.
8384 * opencl-lang.c (opencl_language_data): Likewise.
8385 * p-lang.c (pascal_language_data): Likewise.
8386 * rust-lang.c (rust_language_data): Likewise.
8387 * symtab.c (search_name_hash): Update call.
8388
8389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8390
8391 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8392 initializer.
8393 * c-lang.c (class compile_instance): Declare.
8394 (c_language_data): Delete la_get_compile_instance initializer.
8395 (c_language::get_compile_instance): New member function.
8396 (cplus_language_data): Delete la_get_compile_instance initializer.
8397 (cplus_language::get_compile_instance): New member function.
8398 (asm_language_data): Delete la_get_compile_instance initializer.
8399 (minimal_language_data): Likewise.
8400 * c-lang.h (c_get_compile_context): Update comment.
8401 (cplus_get_compile_context): Update comment.
8402 * compile/compile.c (compile_to_object): Update calls, don't rely
8403 on function pointer being NULL.
8404 * d-lang.c (d_language_data): Delete la_get_compile_instance
8405 initializer.
8406 * f-lang.c (f_language_data): Likewise.
8407 * go-lang.c (go_language_data): Likewise.
8408 * language.c (unknown_language_data): Likewise.
8409 (auto_language_data): Likewise.
8410 * language.h (language_data): Delete la_get_compile_instance field.
8411 (language_defn::get_compile_instance): New member function.
8412 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8413 initializer.
8414 * objc-lang.c (objc_language_data): Likewise.
8415 * opencl-lang.c (opencl_language_data): Likewise.
8416 * p-lang.c (pascal_language_data): Likewise.
8417 * rust-lang.c (rust_language_data): Likewise.
8418
8419 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (ada_add_all_symbols): Update comment.
8422 (ada_iterate_over_symbols): Delete, move implementation to...
8423 (ada_language::iterate_over_symbols): ...here, a new member
8424 function, rewrite to use range based for loop.
8425 (ada_language_data): Delete la_iterate_over_symbols initializer.
8426 * c-lang.c (c_language_data): Likewise.
8427 (cplus_language_data): Likewise.
8428 (asm_language_data): Likewise.
8429 (minimal_language_data): Likewise.
8430 * d-lang.c (d_language_data): Likewise.
8431 * f-lang.c (f_language_data): Likewise.
8432 * go-lang.c (go_language_data): Likewise.
8433 * language.c (unknown_language_data): Likewise.
8434 (auto_language_data): Likewise.
8435 * language.h (language_data): Delete la_iterate_over_symbols field.
8436 (language_defn::iterate_over_symbols): New member function.
8437 (LA_ITERATE_OVER_SYMBOLS): Update.
8438 * linespec.c (iterate_over_all_matching_symtabs): Update.
8439 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8440 initializer.
8441 * objc-lang.c (objc_language_data): Likewise.
8442 * opencl-lang.c (opencl_language_data): Likewise.
8443 * p-lang.c (pascal_language_data): Likewise.
8444 * rust-lang.c (rust_language_data): Likewise.
8445
8446 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8447
8448 * ada-lang.c (ada_language_data): Delete
8449 la_lookup_transparent_type initializer.
8450 * c-lang.c (c_language_data): Likewise.
8451 (cplus_language_data): Likewise.
8452 (cplus_language::lookup_transparent_type): New member function.
8453 (asm_language_data): Delete la_lookup_transparent_type
8454 initializer.
8455 (minimal_language_data): Likewise.
8456 * d-lang.c (d_language_data): Likewise.
8457 * f-lang.c (f_language_data): Likewise.
8458 * go-lang.c (go_language_data): Likewise.
8459 * language.c (unknown_language_data): Likewise.
8460 (auto_language_data): Likewise.
8461 * language.h (struct language_data): Delete
8462 la_lookup_transparent_type field.
8463 (language_defn::lookup_transparent_type): New member function.
8464 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8465 initializer.
8466 * objc-lang.c (objc_language_data): Likewise.
8467 * opencl-lang.c (opencl_language_data): Likewise.
8468 * p-lang.c (pascal_language_data): Likewise.
8469 * rust-lang.c (rust_language_data): Likewise.
8470 * symtab.c (symbol_matches_domain): Update call.
8471
8472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8473
8474 * ada-lang.c (ada_language_arch_info): Delete function, move
8475 implementation to...
8476 (ada_language::language_arch_info): ...here, a new member
8477 function.
8478 (ada_language_data): Delete la_language_arch_info.
8479 * c-lang.c (c_language_data): Likewise.
8480 (c_language::language_arch_info): New member function.
8481 (cplus_language_arch_info): Delete function, move
8482 implementation to...
8483 (cplus_language::language_arch_info): ...here, a new member
8484 function.
8485 (cplus_language_data): Delete la_language_arch_info.
8486 (asm_language_data): Likewise.
8487 (asm_language::language_arch_info): New member function.
8488 (minimal_language_data): Delete la_language_arch_info.
8489 (minimal_language::language_arch_info): New member function.
8490 * d-lang.c (d_language_arch_info): Delete function, move
8491 implementation to...
8492 (d_language::language_arch_info): ...here, a new member
8493 function.
8494 (d_language_data): Delete la_language_arch_info.
8495 * f-lang.c (f_language_arch_info): Delete function, move
8496 implementation to...
8497 (f_language::language_arch_info): ...here, a new member
8498 function.
8499 (f_language_data): Delete la_language_arch_info.
8500 * go-lang.c (go_language_arch_info): Delete function, move
8501 implementation to...
8502 (go_language::language_arch_info): ...here, a new member
8503 function.
8504 (go_language_data): Delete la_language_arch_info.
8505 * language.c (unknown_language_data): Likewise.
8506 (unknown_language::language_arch_info): New member function.
8507 (auto_language_data): Delete la_language_arch_info.
8508 (auto_language::language_arch_info): New member function.
8509 (language_gdbarch_post_init): Update call to
8510 la_language_arch_info.
8511 * language.h (language_data): Delete la_language_arch_info
8512 function pointer.
8513 (language_defn::language_arch_info): New function.
8514 * m2-lang.c (m2_language_arch_info): Delete function, move
8515 implementation to...
8516 (m2_language::language_arch_info): ...here, a new member
8517 function.
8518 (m2_language_data): Delete la_language_arch_info.
8519 * objc-lang.c (objc_language_arch_info): Delete function, move
8520 implementation to...
8521 (objc_language::language_arch_info): ...here, a new member
8522 function.
8523 (objc_language_data): Delete la_language_arch_info.
8524 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8525 implementation to...
8526 (opencl_language::language_arch_info): ...here, a new member
8527 function.
8528 (opencl_language_data): Delete la_language_arch_info.
8529 * p-lang.c (pascal_language_arch_info): Delete function, move
8530 implementation to...
8531 (pascal_language::language_arch_info): ...here, a new member
8532 function.
8533 (pascal_language_data): Delete la_language_arch_info.
8534 * rust-lang.c (rust_language_arch_info): Delete function, move
8535 implementation to...
8536 (rust_language::language_arch_info): ...here, a new member
8537 function.
8538 (rust_language_data): Delete la_language_arch_info.
8539
8540 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8541
8542 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8543 initializer.
8544 * c-lang.c (c_language_data): Likewise.
8545 (cplus_language_data): Likewise.
8546 (cplus_language::pass_by_reference_info): New method.
8547 (asm_language_data): Delete la_pass_by_reference initializer.
8548 (minimal_language_data): Likewise.
8549 * cp-abi.c (cp_pass_by_reference): Remove use of
8550 default_pass_by_reference.
8551 * d-lang.c (d_language_data): Likewise.
8552 * f-lang.c (f_language_data): Likewise.
8553 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8554 default_pass_by_reference.
8555 * go-lang.c (go_language_data): Likewise.
8556 * language.c (language_pass_by_reference): Update.
8557 (default_pass_by_reference): Delete.
8558 (unknown_language_data): Delete la_pass_by_reference
8559 initializer.
8560 (auto_language_data): Likewise.
8561 * language.h (struct language_data): Delete la_pass_by_reference
8562 field.
8563 (language_defn::pass_by_reference_info): New member function.
8564 (default_pass_by_reference): Delete declaration.
8565 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8566 initializer.
8567 * objc-lang.c (objc_language_data): Likewise.
8568 * opencl-lang.c (opencl_language_data): Likewise.
8569 * p-lang.c (pascal_language_data): Likewise.
8570 * rust-lang.c (rust_language_data): Likewise.
8571
8572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * ada-lang.c (ada_read_var_value): Delete function, move
8575 implementation to...
8576 (ada_language::read_var_value): ...here.
8577 (ada_language_data): Delete la_read_var_value initializer.
8578 * c-lang.c (c_language_data): Likewise.
8579 (cplus_language_data): Likewise.
8580 (minimal_language_data): Likewise.
8581 * d-lang.c (d_language_data): Likewise.
8582 * f-lang.c (f_language_data): Likewise.
8583 * findvar.c (default_read_var_value): Rename to...
8584 (language_defn::read_var_value): ...this.
8585 * findvar.c (read_var_value): Update header comment, and change to
8586 call member function instead of function pointer.
8587 * go-lang.c (go_language_data): Likewise.
8588 * language.c (unknown_language_data): Delete la_read_var_value
8589 initializer.
8590 (auto_language_data): Likewise.
8591 * language.h (struct language_data): Delete la_read_var_value
8592 field.
8593 (language_defn::read_var_value): New member function.
8594 (default_read_var_value): Delete declaration.
8595 * m2-lang.c (m2_language_data): Delete la_read_var_value
8596 initializer.
8597 * objc-lang.c (objc_language_data): Likewise.
8598 * opencl-lang.c (opencl_language_data): Likewise.
8599 * p-lang.c (pascal_language_data): Likewise.
8600 * rust-lang.c (rust_language_data): Likewise.
8601 * value.h (default_read_var_value): Delete declaration.
8602
8603 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * ada-lang.c (ada_print_array_index): Delete function, move
8606 implementation to...
8607 (ada_language::print_array_index): ...here.
8608 (ada_language_data): Delete la_print_array_index initializer.
8609 * c-lang.c (c_language_data): Likewise.
8610 (cplus_language_data): Likewise.
8611 (minimal_language_data): Likewise.
8612 * d-lang.c (d_language_data): Likewise.
8613 * f-lang.c (f_language_data): Likewise.
8614 * go-lang.c (go_language_data): Likewise.
8615 * language.c (default_print_array_index): Delete function, move
8616 implementation to...
8617 (language_defn::print_array_index): ...here.
8618 (unknown_language_data): Delete la_print_array_index initializer.
8619 (auto_language_data): Likewise.
8620 * language.h (struct language_data): Delete la_print_array_index
8621 field.
8622 (language_defn::print_array_index): New member function.
8623 (LA_PRINT_ARRAY_INDEX): Update.
8624 (default_print_array_index): Delete declaration.
8625 * m2-lang.c (m2_language_data): Delete la_print_array_index
8626 initializer.
8627 * objc-lang.c (objc_language_data): Likewise.
8628 * opencl-lang.c (opencl_language_data): Likewise.
8629 * p-lang.c (pascal_language_data): Likewise.
8630 * rust-lang.c (rust_language_data): Likewise.
8631
8632 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * gdb/ada-lang.c (ada_language_defn): Convert to...
8635 (ada_language_data): ...this.
8636 (class ada_language): New class.
8637 (ada_language_defn): New static global.
8638 * gdb/c-lang.c (c_language_defn): Convert to...
8639 (c_language_data): ...this.
8640 (class c_language): New class.
8641 (c_language_defn): New static global.
8642 (cplus_language_defn): Convert to...
8643 (cplus_language_data): ...this.
8644 (class cplus_language): New class.
8645 (cplus_language_defn): New static global.
8646 (asm_language_defn): Convert to...
8647 (asm_language_data): ...this.
8648 (class asm_language): New class.
8649 (asm_language_defn): New static global.
8650 (minimal_language_defn): Convert to...
8651 (minimal_language_data): ...this.
8652 (class minimal_language): New class.
8653 (minimal_language_defn): New static global.
8654 * gdb/d-lang.c (d_language_defn): Convert to...
8655 (d_language_data): ...this.
8656 (class d_language): New class.
8657 (d_language_defn): New static global.
8658 * gdb/f-lang.c (f_language_defn): Convert to...
8659 (f_language_data): ...this.
8660 (class f_language): New class.
8661 (f_language_defn): New static global.
8662 * gdb/go-lang.c (go_language_defn): Convert to...
8663 (go_language_data): ...this.
8664 (class go_language): New class.
8665 (go_language_defn): New static global.
8666 * gdb/language.c (unknown_language_defn): Remove declaration.
8667 (current_language): Initialize to nullptr, real initialization is
8668 moved to _initialize_language.
8669 (languages): Delete global.
8670 (language_defn::languages): Define.
8671 (set_language_command): Use language_defn::languages.
8672 (set_language): Likewise.
8673 (range_error): Likewise.
8674 (language_enum): Likewise.
8675 (language_def): Likewise.
8676 (add_set_language_command): Use language_def::languages for the
8677 language list, and language_def to lookup language pointers.
8678 (skip_language_trampoline): Use language_defn::languages.
8679 (unknown_language_defn): Convert to...
8680 (unknown_language_data): ...this.
8681 (class unknown_language): New class.
8682 (unknown_language_defn): New static global.
8683 (auto_language_defn): Convert to...
8684 (auto_language_data): ...this.
8685 (class auto_language): New class.
8686 (auto_language_defn): New static global.
8687 (language_gdbarch_post_init): Use language_defn::languages.
8688 (_initialize_language): Initialize current_language.
8689 * gdb/language.h (struct language_defn): Rename to...
8690 (struct language_data): ...this.
8691 (struct language_defn): New.
8692 (auto_language_defn): Delete.
8693 (unknown_language_defn): Delete.
8694 (minimal_language_defn): Delete.
8695 (ada_language_defn): Delete.
8696 (asm_language_defn): Delete.
8697 (c_language_defn): Delete.
8698 (cplus_language_defn): Delete.
8699 (d_language_defn): Delete.
8700 (f_language_defn): Delete.
8701 (go_language_defn): Delete.
8702 (m2_language_defn): Delete.
8703 (objc_language_defn): Delete.
8704 (opencl_language_defn): Delete.
8705 (pascal_language_defn): Delete.
8706 (rust_language_defn): Delete.
8707 * gdb/m2-lang.c (m2_language_defn): Convert to...
8708 (m2_language_data): ...this.
8709 (class m2_language): New class.
8710 (m2_language_defn): New static global.
8711 * gdb/objc-lang.c (objc_language_defn): Convert to...
8712 (objc_language_data): ...this.
8713 (class objc_language): New class.
8714 (objc_language_defn): New static global.
8715 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8716 (opencl_language_data): ...this.
8717 (class opencl_language): New class.
8718 (opencl_language_defn): New static global.
8719 * gdb/p-lang.c (pascal_language_defn): Convert to...
8720 (pascal_language_data): ...this.
8721 (class pascal_language): New class.
8722 (pascal_language_defn): New static global.
8723 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8724 language pointer, update comment format.
8725 * gdb/rust-lang.c (rust_language_defn): Convert to...
8726 (rust_language_data): ...this.
8727 (class rust_language): New class.
8728 (rust_language_defn): New static global.
8729
8730 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8733 member variable.
8734 <m_stmt_at_address>: New member variable.
8735 (lnp_state_machine::record_line): Don't record some lines, update
8736 tracking of is_stmt at the same address.
8737 (lnp_state_machine::lnp_state_machine): Initialise new member
8738 variables.
8739
8740 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8741
8742 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8743 "-include gnu-nat-mig.h".
8744 * gnu-nat-mig.h: New file.
8745 * gnu-nat.c: Include "gnu-nat-mig.h".
8746 (exc_server, msg_reply_server, notify_server,
8747 process_reply_server): Remove declarations.
8748
8749 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8750
8751 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8752 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8753 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8754 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8755 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8756 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8757 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8758 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8759 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8760 to gnu_nat_target class.
8761 * gnu-nat.c: Likewise.
8762 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8763 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8764 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8765 object.
8766 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8767 instead of `gnu_target'.
8768
8769 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8770
8771 * i386-gnu-tdep.c: Include "gdbcore.h"
8772 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8773 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8774 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8775 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8776 i386_gnu_sigcontext_addr): New functions
8777 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8778 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8779 tdep.
8780
8781 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8782
8783 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8784 before fork_inferior call. Avoid calling it if target_is_pushed returns
8785 true.
8786
8787 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8788
8789 * gnu-nat.h (gnu_target): New variable declaration.
8790 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8791 gnu_target.
8792 * gnu-nat.c (gnu_target): New variable.
8793 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8794 add_thread_silent, and add_thread calls.
8795 (gnu_nat_target::create_inferior): Pass gnu_target to
8796 add_thread_silent, thread_change_ptid call.
8797 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8798 call.
8799
8800 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8801
8802 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8803 (gnu_nat_target::find_memory_regions): Remove unused
8804 `old_address' variable.
8805
8806 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8807
8808 * gnu-nat.c: Include "gdbarch.h".
8809
8810 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8811
8812 * reply_mig_hack.awk (Error return): Cast function through
8813 void *, to bypass compiler function call check.
8814
8815 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8816
8817 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8818 $(srcdir)/reply_mig_hack.awk.
8819
8820 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8821
8822 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8823
8824 2020-05-30 Jonny Grant <jg@jguk.org>
8825
8826 * configure.ac (ACX_BUGURL): change bug URL to https.
8827
8828 2020-05-30 Pedro Alves <palves@redhat.com>
8829
8830 * cp-support.c (replace_typedefs_template): New.
8831 (replace_typedefs_qualified_name): Handle
8832 DEMANGLE_COMPONENT_TEMPLATE.
8833
8834 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8835
8836 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8837 dwarf2/index-cache.h, dwarf2/index-write.c,
8838 dwarf2/index-write.h, dwarf2/line-header.c,
8839 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8840 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8841 variables and fields from `dwarf2_per_objfile` to just
8842 `per_objfile` throughout.
8843
8844 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8845
8846 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8847 <push_dwarf_reg_entry_value>: Add comment.
8848
8849 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8850 Keith Seitz <keiths@redhat.com>
8851
8852 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8853 instead of PyEval_ReleaseLock.
8854 (class gdbpy_gil): Move to earlier in file.
8855 (finalize_python): Set gdb_python_initialized.
8856 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8857 when not initialized.
8858
8859 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8860
8861 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8862 <push_dwarf_reg_entry_value>: Remove assert. Override
8863 per_objfile with caller_per_objfile.
8864
8865 2020-05-28 Tom de Vries <tdevries@suse.de>
8866
8867 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8868 PR gold/15646 workaround to symbol kind "type".
8869
8870 2020-05-27 Tom Tromey <tromey@adacore.com>
8871
8872 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8873
8874 2020-05-27 Tom Tromey <tromey@adacore.com>
8875
8876 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8877 Use htab_find_with_hash.
8878 <add_abbrev>: Remove "abbrev_number" parameter.
8879 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8880 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8881 (hash_abbrev): Add comment.
8882 (abbrev_table::lookup_abbrev): Move to header file.
8883 (abbrev_table::read): Update.
8884
8885 2020-05-27 Tom Tromey <tromey@adacore.com>
8886
8887 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8888 method.
8889 <canonical_name>: New member.
8890 <raw_name>: Rename from "name".
8891 (partial_die_info): Initialize canonical_name.
8892 (scan_partial_symbols): Check raw_name.
8893 (partial_die_parent_scope, partial_die_full_name)
8894 (add_partial_symbol, add_partial_subprogram)
8895 (add_partial_enumeration, load_partial_dies): Use "name" method.
8896 (partial_die_info::name): New method.
8897 (partial_die_info::read, guess_partial_die_structure_name)
8898 (partial_die_info::fixup): Update.
8899
8900 2020-05-27 Tom Tromey <tromey@adacore.com>
8901
8902 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8903 <get_ref_die_offset>: Inline.
8904 <get_ref_die_offset_complaint>: New method.
8905 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8906 (attribute::get_ref_die_offset_complaint): Rename from
8907 get_ref_die_offset. Just issue complaint.
8908
8909 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8910
8911 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8912
8913 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8914
8915 * exec.c (exec_file_attach): Use errno value of first openp failure.
8916
8917 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8918
8919 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8920 Don't close thread handle.
8921
8922 2020-05-27 Tom Tromey <tom@tromey.com>
8923 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8926 shared_ptr.
8927 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8928 member.
8929 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8930 dwarf2_per_bfd_objfile_data_key>: New globals.
8931 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8932 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8933 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8934 shared.
8935 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8936 short-circuit when sharing.
8937 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8938 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8939
8940 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8943 to...
8944 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8945 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8946
8947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8950 build_name_components, find_name_components_bounds>:
8951 Add per_objfile parameter.
8952 (struct mapped_index) <symbol_name_at>: Likewise.
8953 (struct mapped_debug_names): Remove constructor.
8954 <dwarf2_per_objfile>: Remove field.
8955 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8956 (mapped_index_base::find_name_components_bounds,
8957 mapped_index_base::build_name_components,
8958 dw2_expand_symtabs_matching_symbol): Likewise.
8959 (class mock_mapped_index) <symbol_name_at>: Likewise.
8960 (check_match): Likewise.
8961 (check_find_bounds_finds): Likewise.
8962 (test_mapped_index_find_name_component_bounds): Update.
8963 (CHECK_MATCH): Update.
8964 (dw2_expand_symtabs_matching): Update.
8965 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8966 per_objfile parameter.
8967 <find_vec_in_debug_names>: Likewise.
8968 <m_per_objfile>: New field.
8969 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8970 parameter.
8971 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8972 (dw2_debug_names_iterator::next): Update.
8973 (dw2_debug_names_lookup_symbol): Update.
8974 (dw2_debug_names_expand_symtabs_for_function): Update.
8975 (dw2_debug_names_map_matching_symbols): Update.
8976 (dw2_debug_names_expand_symtabs_matching): Update.
8977 (dwarf2_read_debug_names): Update.
8978
8979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8980
8981 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8982 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8983 move to dwarf2_per_objfile.
8984 <read_in_chain>: Remove.
8985 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8986 remove_all_cus, age_comp_units>: New methods.
8987 <m_dwarf2_cus>: New member.
8988 (struct dwarf2_per_cu_data) <cu>: Remove.
8989 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8990 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8991 moved to methods of dwarf2_per_objfile.
8992 (dwarf2_clear_marks): Remove.
8993 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8994 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8995 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8996 (dwarf2_per_objfile::remove_all_cus): New.
8997 (class free_cached_comp_units) <~free_cached_comp_units>:
8998 Update.
8999 (load_cu): Update.
9000 (dw2_do_instantiate_symtab): Adjust.
9001 (fill_in_sig_entry_from_dwo_entry): Adjust.
9002 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9003 (cutu_reader::cutu_reader): Likewise.
9004 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9005 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9006 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9007 and dwarf2_per_objfile::age_comp_units.
9008 (load_partial_comp_unit): Update.
9009 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9010 (process_queue): Likewise.
9011 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9012 backlink.
9013 (dwarf2_read_addr_index): Likewise.
9014 (follow_die_offset): Likewise.
9015 (dwarf2_fetch_die_loc_sect_off): Likewise.
9016 (dwarf2_fetch_constant_bytes): Likewise.
9017 (dwarf2_fetch_die_type_sect_off): Likewise.
9018 (follow_die_sig_1): Likewise.
9019 (load_full_type_unit): Likewise.
9020 (read_signatured_type): Likewise.
9021 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9022 (dwarf2_cu::~dwarf2_cu): Remove.
9023 (dwarf2_per_objfile::get_cu): New.
9024 (dwarf2_per_objfile::set_cu): New.
9025 (age_cached_comp_units): Rename to...
9026 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9027 to std::unordered_map.
9028 (free_one_cached_comp_unit): Rename to...
9029 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9030 to std::unordered_map.
9031 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9032 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9033 a dwarf2_per_objfile in data.
9034 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9035 (dwarf2_clear_marks): Remove.
9036
9037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9040 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9041 (init_tu_and_read_dwo_dies): Likewise.
9042 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9043 (cutu_reader::cutu_reader): Likewise.
9044 (load_partial_comp_unit): Likewise.
9045 (process_psymtab_comp_unit): Update.
9046 (build_type_psymtabs_1): Update.
9047 (process_skeletonless_type_unit): Update.
9048 (load_full_comp_unit): Update.
9049 (find_partial_die): Update.
9050 (dwarf2_read_addr_index): Update.
9051 (read_signatured_type): Update.
9052
9053 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9054
9055 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9056 m_header_read_in>: New fields.
9057 <get_header>: New method.
9058 * dwarf2/read.c (per_cu_header_read_in): Remove.
9059 (dwarf2_per_cu_data::get_header): New.
9060 (dwarf2_per_cu_data::addr_size): Update.
9061 (dwarf2_per_cu_data::offset_size): Update.
9062 (dwarf2_per_cu_data::ref_addr_size): Update.
9063
9064 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9065
9066 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9067 (dw2_do_instantiate_symtab): Update.
9068 (queue_and_load_all_dwo_tus): Change parameter from
9069 dwarf2_per_cu_data to dwarf2_cu.
9070 (dwarf2_fetch_die_loc_sect_off): Update.
9071 (dwarf2_fetch_constant_bytes): Update.
9072 (dwarf2_fetch_die_type_sect_off): Update.
9073
9074 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9075
9076 * dwarf2/read.c (process_full_comp_unit,
9077 process_full_type_unit): Remove per_cu, per_objfile paramters.
9078 Add dwarf2_cu parameter.
9079 (process_queue): Update.
9080
9081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9082
9083 * dwarf2/read.c (create_cu_from_index_list): Replace
9084 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9085 (create_cus_from_index_list): Likewise.
9086 (create_cus_from_index): Likewise.
9087 (create_signatured_type_table_from_index): Likewise.
9088 (create_cus_from_debug_names_list): Likewise.
9089 (create_cus_from_debug_names): Likewise.
9090 (dwarf2_read_gdb_index): Update.
9091 (dwarf2_read_debug_names): Update.
9092
9093 2020-05-27 Tom Tromey <tom@tromey.com>
9094 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * dwarf2/read.h (struct dwarf2_per_objfile)
9097 <get_type_for_signatured_type, set_type_for_signatured_type>:
9098 New methods.
9099 <m_type_map>: New member.
9100 (struct signatured_type) <type>: Remove.
9101 * dwarf2/read.c
9102 (dwarf2_per_objfile::get_type_for_signatured_type,
9103 dwarf2_per_objfile::set_type_for_signatured_type): New.
9104 (get_signatured_type): Use new methods.
9105
9106 2020-05-27 Tom Tromey <tom@tromey.com>
9107 Simon Marchi <simon.marchi@efficios.com>
9108
9109 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9110 (struct dwarf2_per_objfile) <type_units>: New member.
9111 <get_type_unit_group_unshareable>: New method.
9112 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9113 num_symtabs, symtabs>: Remove; move to
9114 type_unit_group_unshareable.
9115 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9116 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9117 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9118
9119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * dwarf2/read.h (struct dwarf2_per_cu_data):
9122 <dwarf2_per_objfile>: Remove.
9123 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9124 dwarf2_per_objfile.
9125 (create_signatured_type_table_from_index): Likewise.
9126 (create_signatured_type_table_from_debug_names): Likewise.
9127 (create_debug_type_hash_table): Likewise.
9128 (fill_in_sig_entry_from_dwo_entry): Likewise.
9129 (create_type_unit_group): Likewise.
9130 (read_comp_units_from_section): Likewise.
9131 (create_cus_hash_table): Likewise.
9132
9133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9136 dwarf2_per_cu_data::dwarf2_per_objfile.
9137 (compute_compunit_symtab_includes): Likewise.
9138 (dwarf2_cu::start_symtab): Likewise.
9139
9140 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9141
9142 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9143 parameter.
9144 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9145 (read_namespace_alias): Update.
9146 (lookup_die_type): Update.
9147 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9148 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9149 Update.
9150 (disassemble_dwarf_expression): Update.
9151
9152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * dwarf2/read.h (struct dwarf2_queue_item): Add
9155 dwarf2_per_objfile parameter, assign new parameter.
9156 <per_objfile>: New field.
9157 * dwarf2/read.c (free_one_cached_comp_unit): Add
9158 dwarf2_per_objfile parameter.
9159 (queue_comp_unit): Likewise.
9160 (dw2_do_instantiate_symtab): Update.
9161 (process_psymtab_comp_unit): Update.
9162 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9163 (process_imported_unit_die): Update.
9164 (queue_and_load_dwo_tu): Update.
9165 (follow_die_offset): Update.
9166 (follow_die_sig_1): Update.
9167
9168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9171 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9172 (read_call_site_scope): Assign per_objfile.
9173 (dwarf2_per_cu_data::objfile): Remove.
9174 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9175 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9176 dwarf2_per_objfile parameter.
9177 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9178 dwarf2_per_objfile parameter.
9179 (dwarf_expr_reg_to_entry_parameter): Add output
9180 dwarf2_per_objfile parameter.
9181 (locexpr_get_frame_base): Update.
9182 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9183 <push_dwarf_reg_entry_value>: Update.
9184 <call_site_to_target_addr>: Update.
9185 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9186 parameter.
9187 (value_of_dwarf_reg_entry): Update.
9188 (rw_pieced_value): Update.
9189 (indirect_synthetic_pointer): Update.
9190 (dwarf2_evaluate_property): Update.
9191 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9192 parameter.
9193 (locexpr_read_variable): Update.
9194 (locexpr_get_symbol_read_needs): Update.
9195 (loclist_read_variable): Update.
9196
9197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9200 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9201 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9202 parameter.
9203 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9204 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9205 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9206 parameter.
9207 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9208 sect_variable_value): Add dwarf2_per_objfile parameter.
9209 (class dwarf_evaluate_loc_desc) <dwarf_call,
9210 dwarf_variable_value>: Update.
9211 (fetch_const_value_from_synthetic_pointer): Add
9212 dwarf2_per_objfile parameter.
9213 (fetch_const_value_from_synthetic_pointer): Update.
9214 (coerced_pieced_ref): Update.
9215 (class symbol_needs_eval_context) <dwarf_call,
9216 dwarf_variable_value>: Update.
9217 (dwarf2_compile_expr_to_ax): Update.
9218
9219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9222 parameter.
9223 (dwarf2_evaluate_loc_desc_full): Update.
9224
9225 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9226
9227 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9228 parameter.
9229 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9230 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9231 dwarf2_per_objfile parameter.
9232 (decode_debug_loc_dwo_addresses): Likewise.
9233 (dwarf2_find_location_expression): Update.
9234 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9235 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9236 parameter.
9237 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9238 parameter.
9239 (locexpr_describe_location_1): Likewise.
9240 (locexpr_describe_location): Update.
9241
9242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9245 Remove.
9246 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9247 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9248 (dwarf2_compile_property_to_c): Update.
9249 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9250 use text offset from objfile.
9251 (locexpr_tracepoint_var_ref): Update.
9252 (locexpr_generate_c_location): Update.
9253 (loclist_describe_location): Update.
9254 (loclist_tracepoint_var_ref): Update.
9255 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9256 dwarf2_per_objfile parameter.
9257 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9258 use text offset from objfile.
9259 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9260
9261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * dwarf2/expr.h (struct dwarf_expr_context)
9264 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9265 <offset>: Remove.
9266 <per_objfile>: New member.
9267 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9268 dwarf2_per_objfile parameter. Don't set offset, set
9269 per_objfile.
9270 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9271 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9272 a dwarf2_per_objfile object instead of an offset.
9273 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9274 constructor.
9275 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9276 to dwarf2_expr_executor constructor. Don't set offset.
9277 (dwarf2_fetch_cfa_info): Update.
9278 (struct dwarf2_frame_cache) <text_offset>: Remove.
9279 <per_objfile>: New field.
9280 (dwarf2_frame_cache): Update.
9281 (dwarf2_frame_prev_register): Update.
9282 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9283 <dwarf_evaluate_loc_desc>: Add constructor.
9284 (dwarf2_evaluate_loc_desc_full): Update.
9285 (dwarf2_locexpr_baton_eval): Update.
9286 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9287 Add constructor.
9288 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9289
9290 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9291
9292 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9293 addr_sized_int_type>: Move to dwarf2_cu.
9294 <int_type>: Move to dwarf2_per_objfile.
9295 (struct dwarf2_per_objfile) <int_type>: Move here.
9296 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9297 addr_sized_int_type>: Move here.
9298 (read_func_scope): Update.
9299 (read_array_type): Update.
9300 (read_tag_string_type): Update.
9301 (attr_to_dynamic_prop): Update.
9302 (dwarf2_per_cu_data::int_type): Rename to...
9303 (dwarf2_per_objfile::int_type): ... this.
9304 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9305 (dwarf2_cu::addr_sized_int_type): ... this.
9306 (read_subrange_type): Update.
9307 (dwarf2_per_cu_data::addr_type): Rename to...
9308 (dwarf2_cu::addr_type): ... this.
9309 (set_die_type): Update.
9310
9311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9314 data through per_cu->cu.
9315
9316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9319 dwarf2_per_cu_data parameter fo dwarf2_cu.
9320 (lookup_dwo_type_unit): Likewise.
9321 (read_cutu_die_from_dwo): Likewise.
9322 (lookup_dwo_unit): Likewise.
9323 (open_and_init_dwo_file): Likewise.
9324 (lookup_dwo_cutu): Likewise.
9325 (lookup_dwo_comp_unit): Likewise.
9326 (lookup_dwo_type_unit): Likewise.
9327 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9328 (cutu_reader::cutu_reader): Update.
9329
9330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9333 parameter.
9334 (process_full_type_unit): Likewise.
9335 (process_queue): Update.
9336
9337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * dwarf2/read.c (recursively_compute_inclusions): Add
9340 dwarf2_per_objfile parameter.
9341 (compute_compunit_symtab_includes): Likewise.
9342 (process_cu_includes): Update.
9343
9344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9347 parameter.
9348 (create_type_unit_group): Update.
9349 (process_psymtab_comp_unit_reader): Update.
9350 (build_type_psymtabs_reader): Update.
9351
9352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9355 object through m_this_cu->cu.
9356
9357 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9358
9359 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9360 the info parameter.
9361 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9362
9363 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9366 per_objfile parameter.
9367 (load_full_type_unit): Add per_objfile parameter.
9368 (read_signatured_type): Likewise.
9369 (load_full_comp_unit): Likewise.
9370 (load_cu): Likewise.
9371 (dw2_do_instantiate_symtab): Likewise.
9372 (dw2_get_file_names): Likewise.
9373 (dw2_map_symtabs_matching_filename): Update.
9374 (dw_expand_symtabs_matching_file_matcher): Update.
9375 (dw2_map_symbol_filenames): Update.
9376 (process_psymtab_comp_unit): Add per_objfile parameter.
9377 (build_type_psymtabs_1): Update.
9378 (process_skeletonless_type_unit): Update.
9379 (dwarf2_build_psymtabs_hard): Update.
9380 (load_partial_comp_unit): Add per_objfile parameter.
9381 (scan_partial_symbols): Update.
9382 (load_full_comp_unit): Add per_objfile parameter.
9383 (process_imported_unit_die): Update.
9384 (create_cus_hash_table): Update.
9385 (find_partial_die): Update.
9386 (dwarf2_read_addr_index): Update.
9387 (follow_die_offset): Update.
9388 (dwarf2_fetch_die_loc_sect_off): Update.
9389 (dwarf2_fetch_constant_bytes): Update.
9390 (dwarf2_fetch_die_type_sect_off): Update.
9391 (follow_die_sig_1): Update.
9392 (load_full_type_unit): Add per_objfile parameter.
9393 (read_signatured_type): Likewise.
9394
9395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9398 of objfile_name.
9399
9400 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9403 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9404 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9405 field.
9406 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9407 (create_cus_from_index): Update.
9408 (dwarf2_read_gdb_index): Update.
9409 (create_cus_from_debug_names): Update.
9410 (dwarf2_read_debug_names): Update.
9411 (get_abbrev_section_for_cu): Update.
9412 (create_all_comp_units): Update.
9413 (read_attribute_value): Update.
9414 (get_debug_line_section): Update.
9415 * dwarf2/index-cache.c (index_cache::store): Update.
9416 * dwarf2/index-write.c (save_gdb_index_command): Update.
9417 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9418
9419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9422 member.
9423 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9424 dwarf2_per_cu_data::per_bfd.
9425 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9426 (create_type_unit_group): Likewise.
9427 (queue_comp_unit): Remove reference to
9428 per_cu->dwarf2_per_objfile.
9429 (maybe_queue_comp_unit): Likewise.
9430 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9431 (create_cus_hash_table): Assign new field.
9432
9433 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * dwarf2/read.c: Replace
9436 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9437 dwarf2_cu->per_objfile throughout.
9438
9439 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9442 parameter, don't use per_cu->dwarf2_per_objfile.
9443 (dw2_instantiate_symtab): Likewise.
9444 (dw2_find_last_source_symtab): Update.
9445 (dw2_map_expand_apply): Update.
9446 (dw2_lookup_symbol): Update.
9447 (dw2_expand_symtabs_for_function): Update.
9448 (dw2_expand_all_symtabs): Update.
9449 (dw2_expand_symtabs_with_fullname): Update.
9450 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9451 don't use per_cu->dwarf2_per_objfile.
9452 (dw2_expand_marked_cus): Update.
9453 (dw2_find_pc_sect_compunit_symtab): Update.
9454 (dw2_debug_names_lookup_symbol): Update.
9455 (dw2_debug_names_expand_symtabs_for_function): Update.
9456 (dw2_debug_names_map_matching_symbols): Update.
9457 (dwarf2_psymtab::expand_psymtab): Update.
9458
9459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9460
9461 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9462 <per_objfile>: New member.
9463 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9464 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9465 call to dwarf2_cu.
9466 (cutu_reader::cutu_reader): Update.
9467 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9468
9469 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9470
9471 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9472 struct dwarf2_per_objfile.
9473 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9474 dwarf2_per_bfd.
9475 * dwarf2/read.c (set_die_type): Update.
9476 (get_die_type_at_offset): Update.
9477
9478 2020-05-27 Tom Tromey <tom@tromey.com>
9479 Simon Marchi <simon.marchi@efficios.com>
9480
9481 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9482 method.
9483 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9484 get_symtab, set_symtab>: New methods.
9485 <m_symtabs>: New field.
9486 (struct dwarf2_psymtab): Derive from partial_symtab.
9487 <readin_p, get_compunit_symtab>: Declare methods.
9488 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9489 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9490 New methods.
9491 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9492 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9493 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9494 (dw2_symtab_iter_next, dw2_print_stats)
9495 (dw2_expand_symtabs_with_fullname)
9496 (dw2_expand_symtabs_matching_one)
9497 (dw_expand_symtabs_matching_file_matcher)
9498 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9499 (dw2_debug_names_iterator::next)
9500 (dw2_debug_names_map_matching_symbols)
9501 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9502 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9503 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9504 New methods.
9505 (get_compunit_symtab, process_full_comp_unit)
9506 (process_full_type_unit): Update.
9507 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9508
9509 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9510
9511 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9512 then introduce a new dwarf2_per_objfile type.
9513 <read_line_string>: Move to the new dwarf2_per_objfile type.
9514 <objfile>: Likewise.
9515 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9516 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9517 dwarf2_per_objfile->per_bfd.
9518 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9519 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9520 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9521 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9522 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9523 (dwarf2_per_objfile::locate_sections): Rename to...
9524 (dwarf2_per_bfd::locate_sections): ... this.
9525 (dwarf2_per_objfile::get_cutu): Rename to...
9526 (dwarf2_per_bfd::get_cutu): ... this.
9527 (dwarf2_per_objfile::get_cu): Rename to...
9528 (dwarf2_per_bfd::get_cu): ... this.
9529 (dwarf2_per_objfile::get_tu): Rename to...
9530 (dwarf2_per_bfd::get_tu): ... this.
9531 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9532 (dwarf2_per_bfd::allocate_per_cu): ... this.
9533 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9534 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9535 (get_gdb_index_contents_ftype): Change parameter from
9536 dwarf2_per_objfile to dwarf2_per_bfd.
9537 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9538 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9539
9540 2020-05-27 Tom Tromey <tom@tromey.com>
9541 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9544 (allocate_piece_closure): Set "per_objfile" member.
9545 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9546 (locexpr_describe_location, loclist_describe_location): Use new
9547 member.
9548 * dwarf2/read.c (read_call_site_scope)
9549 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9550 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9551 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9552 handle_data_member_location): Set per_objfile member.
9553 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9554 member.
9555 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9556
9557 2020-05-27 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9560 allocate_signatured_type>: Declare new methods.
9561 <m_num_psymtabs>: New member.
9562 (struct dwarf2_per_cu_data) <index>: New member.
9563 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9564 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9565 (create_cu_from_index_list): Use allocate_per_cu.
9566 (create_signatured_type_table_from_index)
9567 (create_signatured_type_table_from_debug_names)
9568 (create_debug_type_hash_table, add_type_unit)
9569 (read_comp_units_from_section): Use allocate_signatured_type.
9570
9571 2020-05-27 Tom Tromey <tom@tromey.com>
9572
9573 * psymtab.c (partial_map_expand_apply)
9574 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9575 (psym_lookup_global_symbol_language)
9576 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9577 (psym_print_stats, psym_expand_symtabs_for_function)
9578 (psym_map_symbol_filenames, psym_map_matching_symbols)
9579 (psym_expand_symtabs_matching)
9580 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9581 (maintenance_check_psymtabs): Update.
9582 * psympriv.h (struct partial_symtab) <readin_p,
9583 get_compunit_symtab>: Add objfile parameter.
9584 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9585 Likewise.
9586 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9587 get_compunit_symtab>: Likewise.
9588 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9589
9590 2020-05-27 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9593 member.
9594 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9595 (create_cu_from_index_list)
9596 (create_signatured_type_table_from_index)
9597 (create_signatured_type_table_from_debug_names)
9598 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9599 (dwarf2_create_include_psymtab)
9600 (create_debug_type_hash_table, add_type_unit)
9601 (create_type_unit_group, read_comp_units_from_section)
9602 (dwarf2_compute_name, create_cus_hash_table)
9603 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9604 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9605 obstack.
9606 (dw2_get_real_path): Likewise. Change argument to
9607 dwarf2_per_objfile.
9608
9609 2020-05-27 Luis Machado <luis.machado@linaro.org>
9610
9611 PR tdep/26000
9612 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9613 for ldrd (immediate).
9614
9615 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9616
9617 * command.h: Add comment giving the name of class_tui.
9618 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9619 create the fake command for the help for class_tui.
9620
9621 2020-05-26 Tom Tromey <tromey@adacore.com>
9622
9623 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9624 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9625 (val_atr): New function.
9626 (value_val_atr): Use it.
9627 * ada-valprint.c (print_optional_low_bound): Change low bound
9628 handling for enums.
9629 (val_print_packed_array_elements): Don't call discrete_position.
9630 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9631 discrete_position for enum types.
9632 * language.c (default_print_array_index): Change type.
9633 * language.h (struct language_defn) <la_print_array_index>: Add
9634 index_type parameter, change type of index_value.
9635 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9636 (default_print_array_index): Update.
9637 * valprint.c (maybe_print_array_index): Don't call
9638 value_from_longest. Update.
9639 (value_print_array_elements): Don't call discrete_position.
9640
9641 2020-05-26 Tom Tromey <tromey@adacore.com>
9642
9643 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9644 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9645
9646 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9647
9648 PR gdb/13519
9649 * avr-tdep.c (avr_integer_to_address): Return data or code
9650 address accordingly to the second 'type' argument of the
9651 function.
9652
9653 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9654
9655 * infcmd.c, inferior.h: (construct_inferior_arguments):
9656 Moved function from here to gdbsupport/common-inferior.{h,cc}
9657
9658 2020-05-23 Tom Tromey <tom@tromey.com>
9659
9660 Revert commit eca1f90c:
9661 * NEWS: Remove entry for completion styling.
9662 * completer.c (_rl_completion_prefix_display_length): Move
9663 declaration later.
9664 (gdb_fnprint): Revert.
9665 (gdb_display_match_list_1): Likewise.
9666 * cli/cli-style.c (completion_prefix_style)
9667 (completion_difference_style, completion_suffix_style): Remove.
9668 (_initialize_cli_style): Revert.
9669 * cli/cli-style.h (completion_prefix_style)
9670 (completion_difference_style, completion_suffix_style): Don't
9671 declare.
9672
9673 2020-05-24 Pedro Alves <palves@redhat.com>
9674
9675 * symtab.c (completion_list_add_name): Return boolean indication
9676 of whether the symbol matched.
9677 (completion_list_add_symbol): Don't try to remove C++ aliases if
9678 the symbol didn't match in the first place.
9679 * symtab.h (completion_list_add_name): Return bool.
9680
9681 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9682
9683 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9684 type::field.
9685
9686 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9687
9688 GDB 9.2 released.
9689
9690 2020-05-23 Tom Tromey <tom@tromey.com>
9691
9692 * NEWS: Add entry for completion styling.
9693 * completer.c (_rl_completion_prefix_display_length): Move
9694 declaration earlier.
9695 (gdb_fnprint): Use completion_style.
9696 (gdb_display_match_list_1): Likewise.
9697 * cli/cli-style.c (completion_prefix_style)
9698 (completion_difference_style, completion_suffix_style): New
9699 globals.
9700 (_initialize_cli_style): Register new globals.
9701 * cli/cli-style.h (completion_prefix_style)
9702 (completion_difference_style, completion_suffix_style): Declare.
9703
9704 2020-05-23 Pedro Alves <palves@redhat.com>
9705
9706 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9707 (parse_escape): Use ISDIGIT instead of isdigit.
9708 (puts_debug): Use gdb_isprint instead of isprint.
9709 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9710 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9711 ISSPACE instead of isspace.
9712 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9713 instead of isspace.
9714 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9715 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9716 instead of isxdigit and ISDIGIT instead of isdigit.
9717
9718 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * gdbtypes.h (struct type) <field>: New method.
9721 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9722 or type::field.
9723
9724 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9725
9726 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9727 (TYPE_FIELDS): Use type::fields. Change all call sites that
9728 modify the propery to use type::set_fields instead.
9729
9730 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9731
9732 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9733 type::num_fields instead.
9734
9735 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9736
9737 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9738 methods.
9739 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9740 that modify the number of fields to use type::set_num_fields
9741 instead.
9742
9743 2020-05-22 Tom Tromey <tromey@adacore.com>
9744
9745 * compile/compile-object-load.h (munmap_list_free): Don't
9746 declare.
9747
9748 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9749
9750 * annotate.c (annotate_source_line): Update return type, add call
9751 to update current symtab and line.
9752 * annotate.h (annotate_source_line): Update return type, and
9753 extend header comment.
9754 * source.c (info_line_command): Check annotation_level before
9755 calling annotate_source_line.
9756 * stack.c (print_frame_info): If calling annotate_source_line
9757 returns true, then don't print any other source line information.
9758
9759 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9762
9763 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * coffread.c (patch_type): Remove NULL check before xfree.
9766 * corefile.c (set_gnutarget): Likewise.
9767 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9768 * exec.c (build_section_table): Likewise.
9769 * remote.c (remote_target::pass_signals): Likewise.
9770 * utils.c (n_spaces): Likewise.
9771 * cli/cli-script.c (document_command): Likewise.
9772 * i386-windows-tdep.c (core_process_module_section): Likewise.
9773 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9774
9775 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9776
9777 * symfile.c (reread_symbols): Clear objfile's section_offsets
9778 vector and section indices, re-compute them by calling
9779 sym_offsets.
9780
9781 2020-05-20 Tom Tromey <tromey@adacore.com>
9782
9783 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9784 (desc_one_bound, desc_index_type): Compute field name.
9785
9786 2020-05-20 Tom de Vries <tdevries@suse.de>
9787
9788 PR symtab/25833
9789 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9790
9791 2020-05-20 Alan Modra <amodra@gmail.com>
9792
9793 PR 25993
9794 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9795 bfd_set_filename.
9796 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9797 passed to bfd_set_filename.
9798 * symfile-mem.c (add_vsyscall_page): Likewise for string
9799 passed to symbol_file_add_from_memory.
9800 (symbol_file_add_from_memory): Make name param a const char* and
9801 don't strdup.
9802
9803 2020-05-20 Alan Modra <amodra@gmail.com>
9804
9805 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9806 rather than accessing bfd->filename directly.
9807 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9808 and use bfd_section_name.
9809 * dwarf2/frame.c (decode_frame_entry): Likewise.
9810 * exec.c (exec_set_section_address): Likewise.
9811 * solib-aix.c (solib_aix_bfd_open): Likewise.
9812 * stap-probe.c (get_stap_base_address): Likewise.
9813 * symfile.c (reread_symbols): Likewise.
9814
9815 2020-05-19 Tom Tromey <tromey@adacore.com>
9816
9817 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9818
9819 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9822
9823 2020-05-19 Pedro Alves <palves@redhat.com>
9824
9825 * NEWS (set exec-file-mismatch): Adjust entry.
9826 * exec.c: Include "build-id.h".
9827 (validate_exec_file): Try to match build IDs instead of filenames.
9828 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9829 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9830 and pass down 'warn_if_slow'.
9831 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9832 gdb_bfd_open_closure to pass it down.
9833 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9834
9835 2020-05-19 Pedro Alves <palves@redhat.com>
9836
9837 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9838 * target.c (target_fileio_open_1): Rename to target_fileio_open
9839 and make extern. Use bool.
9840 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9841 (target_fileio_read_alloc_1): Adjust.
9842 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9843 (target_fileio_open_warn_if_slow): Delete declaration.
9844
9845 2020-05-19 Pedro Alves <palves@redhat.com>
9846
9847 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9848 Adjust all callers.
9849
9850 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9851
9852 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9853 whether disp is negative.
9854
9855 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * symfile.h (struct symfile_segment_data)
9858 <~symfile_segment_data>: Remove.
9859 <segment_info>: Change to std::vector.
9860 * symfile.c (default_symfile_segments): Update.
9861 * elfread.c (elf_symfile_segments): Update.
9862
9863 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9866 <segments>: New.
9867 <segment_bases, segment_sizes>: Remove.
9868 * symfile.c (default_symfile_segments): Update.
9869 * elfread.c (elf_symfile_segments): Update.
9870 * remote.c (remote_target::get_offsets): Update.
9871 * solib-target.c (solib_target_relocate_section_addresses):
9872 Update.
9873
9874 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * symfile.h (struct symfile_segment_data): Initialize fields.
9877 <~symfile_segment_data>: Add.
9878 (symfile_segment_data_up): New.
9879 (struct sym_fns) <sym_segments>: Return a
9880 symfile_segment_data_up.
9881 (default_symfile_segments): Return a symfile_segment_data_up.
9882 (free_symfile_segment_data): Remove.
9883 (get_symfile_segment_data): Return a symfile_segment_data_up.
9884 * symfile.c (default_symfile_segments): Likewise.
9885 (get_symfile_segment_data): Likewise.
9886 (free_symfile_segment_data): Remove.
9887 (symfile_find_segment_sections): Update.
9888 * elfread.c (elf_symfile_segments): Return a
9889 symfile_segment_data_up.
9890 * remote.c (remote_target::get_offsets): Update.
9891 * solib-target.c (solib_target_relocate_section_addresses):
9892 Update.
9893 * symfile-debug.c (debug_sym_segments): Return a
9894 symfile_segment_data_up.
9895
9896 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9897
9898 PR build/25981
9899 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9900 Hardcode register numbers.
9901
9902 PR build/25981
9903 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9904 procfs_find_LDT_entry): Remove.
9905 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9906 procfs_find_LDT_entry): Remove.
9907 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9908 Remove.
9909
9910 2020-05-17 Pedro Alves <palves@redhat.com>
9911 Andrew Burgess <andrew.burgess@embecosm.com>
9912 Keno Fischer <keno@juliacomputing.com>
9913
9914 PR gdb/25741
9915 * breakpoint.c (build_target_condition_list): Update comments.
9916 (build_target_command_list): Update comments and skip matching
9917 locations.
9918 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9919 a separate function. Simplify "set breakpoint auto-hw off"
9920 handling.
9921 (insert_breakpoints): Update comment.
9922 (tracepoint_locations_match): New parameter. For breakpoints,
9923 compare location types too, if the caller wants to.
9924 (handle_automatic_hardware_breakpoints): New functions.
9925 (bp_location_is_less_than): Also sort by location type and
9926 hardware breakpoint length.
9927 (update_global_location_list): Handle "set breakpoint auto-hw on"
9928 here.
9929 (update_breakpoint_locations): Ask breakpoint_locations_match to
9930 ignore location types.
9931
9932 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9935 type::name instead.
9936
9937 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbtypes.h (struct type) <name, set_name>: New methods.
9940 (TYPE_CODE): Use type::name. Change all call sites used to set
9941 the name to use type::set_name instead.
9942
9943 2020-05-16 Tom Tromey <tom@tromey.com>
9944
9945 * top.c (quit_force): Update.
9946 * infrun.c (handle_no_resumed): Update.
9947 * top.h (all_uis): New function.
9948 (ALL_UIS): Remove.
9949
9950 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9953
9954 2020-05-16 Pedro Alves <palves@redhat.com>
9955
9956 * ia64-linux-nat.c
9957 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9958 Declare method.
9959 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9960
9961 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9964 (sparc64_adi_info): Likewise.
9965
9966 2020-05-15 Tom Tromey <tom@tromey.com>
9967
9968 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9969 block_objfile.
9970 (lookup_objfile_from_block): Remove.
9971 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9972 (lookup_global_symbol): Use block_objfile.
9973 * symtab.h (lookup_objfile_from_block): Don't declare.
9974 * printcmd.c (clear_dangling_display_expressions): Use
9975 block_objfile.
9976 * parse.c (operator_check_standard): Use block_objfile.
9977
9978 2020-05-15 Tom Tromey <tom@tromey.com>
9979
9980 * language.c (language_alloc_type_symbol): Set
9981 SYMBOL_SECTION.
9982 * symtab.c (initialize_objfile_symbol): Remove.
9983 (allocate_symbol): Remove.
9984 (allocate_template_symbol): Remove.
9985 * dwarf2/read.c (fixup_go_packaging): Use "new".
9986 (new_symbol): Use "new".
9987 (read_variable): Don't call initialize_objfile_symbol. Use
9988 "new".
9989 (read_func_scope): Use "new".
9990 * xcoffread.c (process_xcoff_symbol): Don't call
9991 initialize_objfile_symbol.
9992 (SYMBOL_DUP): Remove.
9993 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9994 "new".
9995 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9996 (allocate_template_symbol): Don't declare.
9997 (struct symbol): Add copy constructor. Change defaults.
9998 * jit.c (finalize_symtab): Use "new".
9999 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10000 Use "new".
10001 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10002 (common_block_end): Use "new".
10003 * mdebugread.c (parse_symbol): Use "new".
10004 (new_symbol): Likewise.
10005
10006 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10007
10008 * NEWS: Mention changes to help and apropos.
10009
10010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10011
10012 * command.h (enum command_class): Improve comments, document
10013 that class_alias is for user-defined aliases, give the class
10014 name for each class, remove unused class_xdb.
10015 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10016 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10017 by a precise class.
10018 * infcmd.c (_initialize_infcmd): Likewise.
10019 * reverse.c (_initialize_reverse): Likewise.
10020 * stack.c (_initialize_stack): Likewise.
10021 * symfile.c (_initialize_symfile): Likewise.
10022 * tracepoint.c (_initialize_tracepoint): Likewise.
10023
10024 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10025
10026 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10027 when their aliased command is traversed.
10028 (help_cmd): Add fput_command_names_styled call to
10029 output command name and aliases when command has an alias.
10030
10031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10032
10033 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10034 * cli/cli-decode.c (help_cmd_list): Declare as static,
10035 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10036 a command together with the command.
10037 (fput_command_name_styled, fput_command_names_styled): New functions.
10038 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10039 fput_command_name_styled.
10040 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10041 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10042
10043 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10044
10045 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10046 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10047 * command.h (cmd_show_list): Likewise.
10048 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10049 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10050
10051 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10052
10053 * unittests/command-def-selftests.c (traverse_command_structure):
10054 Verify all commands of a list have the same prefix command and
10055 that only the top cmdlist commands have a null prefix.
10056
10057 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10058
10059 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10060 as prefix, not one of its aliases.
10061 (set_cmd_prefix): Remove.
10062 (do_add_cmd): Centralize the setting of the prefix of a command, when
10063 command is defined after its full chain of prefix commands.
10064 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10065 (add_setshow_cmd_full): Likewise.
10066 (update_prefix_field_of_prefixed_commands): New function.
10067 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10068 update_prefix_field_of_prefixed_commands.
10069 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10070 addresses of remote_set_cmdlist and remote_show_cmdlist given
10071 as argument, not the address of an argument.
10072 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10073 * gdb/remote.c (_initialize_remote): Likewise.
10074
10075 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10076
10077 * cli/cli-cmds.c (alias_command): Check for an existing alias
10078 using lookup_cmd_composition, as valid_command_p is too strict
10079 and forbids aliases that are the prefix of an existing alias
10080 or command.
10081 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10082 command is properly recognised as a valid command.
10083
10084 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10085
10086 * unittests/help-doc-selftests.c: Rename to
10087 unittests/command-def-selftests.c
10088 * unittests/command-def-selftests.c (help_doc_tests): Update some
10089 comments.
10090 (command_structure_tests, traverse_command_structure): New namespace
10091 and function.
10092 (command_structure_invariants_tests): New function.
10093 (_initialize_command_def_selftests) Renamed from
10094 _initialize_help_doc_selftests, register command_structure_invariants
10095 selftest.
10096
10097 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10098
10099 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10100 an alias of 'show'.
10101
10102 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10103
10104 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10105 ada_is_fixed_point_type. Update all callers.
10106 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10107 all callers.
10108 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10109 Update all callers.
10110 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10111 print_fixed_point_type. Update all callers.
10112 * ada-valprint.c (ada_value_print_num): Replace call to
10113 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10114
10115 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10116
10117 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10118 processors.
10119 (cpu_supports_bts): Add CV_AMD case.
10120
10121 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10122 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * infrun.c (stop_all_threads): Collect multiple wait events at
10125 each pass.
10126
10127 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10128
10129 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10130 type::code instead.
10131
10132 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10133
10134 * gdbtypes.h (struct type) <code, set_code>: New methods.
10135 (TYPE_CODE): Use type::code. Change all call sites used to set
10136 the code to use type::set_code instead.
10137
10138 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10139 Tom de Vries <tdevries@suse.de>
10140 Pedro Alves <palves@redhat.com>
10141
10142 PR threads/25478
10143 * infrun.c (stop_all_threads): Do NOT ignore
10144 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10145 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10146 received.
10147 (handle_no_resumed): Remove code handling a live inferior with no
10148 threads.
10149 * remote.c (has_single_non_exited_thread): New.
10150 (remote_target::update_thread_list): Do not delete a thread if is
10151 the last thread of the process.
10152 * thread.c (thread_select): Call delete_exited_threads instead of
10153 prune_threads.
10154
10155 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10156
10157 * infrun.c (stop_all_threads): Enable/disable thread events of all
10158 targets. Move a debug message denoting the end of the function
10159 into the SCOPED_EXIT block.
10160
10161 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10162
10163 * process-stratum-target.h: Include <set>.
10164 (all_non_exited_process_targets, switch_to_target_no_thread): New
10165 function declarations.
10166 * process-stratum-target.c (all_non_exited_process_targets)
10167 (switch_to_target_no_thread): New function implementations.
10168
10169 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10170
10171 * infrun.c (handle_inferior_event): Extract out a piece of code
10172 into...
10173 (mark_non_executing_threads): ...this new function.
10174
10175 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10176
10177 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10178 use.
10179
10180 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10181
10182 * regcache.c (regcache_read_pc_protected): New function
10183 implementation that returns 0 if the PC cannot read via
10184 'regcache_read_pc'.
10185 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10186 instead of 'regcache_read_pc'.
10187 (keep_going_pass_signal): Ditto.
10188
10189 2020-05-13 Tom Tromey <tromey@adacore.com>
10190
10191 * ada-lang.c (align_value): Remove.
10192 (ada_template_to_fixed_record_type_1): Use align_up.
10193
10194 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10195
10196 * async-event.c: Update the copyright year.
10197 * async-event.h: Update the copyright year.
10198
10199 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * objfiles.h (is_addr_in_objfile,
10202 shared_objfile_contains_address_p): Return bool.
10203 * objfile.c (is_addr_in_objfile,
10204 shared_objfile_contains_address_p): Return bool.
10205
10206 2020-05-11 Tom Tromey <tromey@adacore.com>
10207
10208 * cli/cli-cmds.c (info_command): Restore.
10209 (_initialize_cli_cmds): Use add_prefix_command for "info".
10210 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10211
10212 2020-05-11 Tom Tromey <tromey@adacore.com>
10213
10214 * ada-lang.c (ada_value_primitive_field): Now public.
10215 * ada-lang.h (ada_value_primitive_field): Declare.
10216 * ada-valprint.c (print_field_values): Use
10217 ada_value_primitive_field for wrapper fields.
10218
10219 2020-05-11 Tom de Vries <tdevries@suse.de>
10220
10221 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10222 MODULE_DOMAIN.
10223
10224 2020-05-11 Tom de Vries <tdevries@suse.de>
10225
10226 PR symtab/25941
10227 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10228 with length 0, if not gdb-produced.
10229 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10230
10231 2020-05-09 Tom de Vries <tdevries@suse.de>
10232
10233 PR gdb/25955
10234 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10235 calculation.
10236
10237 2020-05-09 Tom Tromey <tom@tromey.com>
10238
10239 * top.c (server_command): Now bool.
10240 * top.h (server_command): Now bool.
10241
10242 2020-05-08 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10245 already being processed.
10246
10247 2020-05-08 Tom Tromey <tom@tromey.com>
10248
10249 * printcmd.c (struct display) <next>: Remove.
10250 <display>: New constructor.
10251 <exp_string>: Now a std::string.
10252 <enabled_p>: Now a bool.
10253 (display_number): Move definition earlier.
10254 (displays): Rename from display_chain. Now a std::vector.
10255 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10256 (display_command): Update.
10257 (do_one_display, disable_display)
10258 (enable_disable_display_command, do_enable_disable_display):
10259 Update.
10260 (free_display): Remove.
10261 (clear_displays): Rewrite.
10262 (delete_display): Update.
10263 (map_display_numbers): Use function_view. Remove "data"
10264 parameter. Update.
10265 (do_delete_display): Remove.
10266 (undisplay_command): Update.
10267 (do_one_display, do_displays, disable_display)
10268 (info_display_command): Update.
10269 (do_enable_disable_display): Remove.
10270 (enable_disable_display_command)
10271 (clear_dangling_display_expressions): Update.
10272
10273 2020-05-08 Tom Tromey <tom@tromey.com>
10274
10275 * symtab.c (set_symbol_cache_size)
10276 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10277 (maintenance_print_symbol_cache_statistics): Update.
10278 * symmisc.c (print_symbol_bcache_statistics)
10279 (print_objfile_statistics, maintenance_print_objfiles)
10280 (maintenance_info_symtabs, maintenance_check_symtabs)
10281 (maintenance_expand_symtabs, maintenance_info_line_tables):
10282 Update.
10283 * symfile-debug.c (set_debug_symfile): Update.
10284 * source.c (forget_cached_source_info): Update.
10285 * python/python.c (gdbpy_progspaces): Update.
10286 * psymtab.c (maintenance_info_psymtabs): Update.
10287 * probe.c (parse_probes): Update.
10288 * linespec.c (iterate_over_all_matching_symtabs)
10289 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10290 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10291 * exec.c (exec_target::close): Update.
10292 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10293 * breakpoint.c (print_one_breakpoint_location)
10294 (create_longjmp_master_breakpoint)
10295 (create_std_terminate_master_breakpoint): Update.
10296 * progspace.c (program_spaces): Now a std::vector.
10297 (maybe_new_address_space): Update.
10298 (add_program_space): Remove.
10299 (program_space::program_space): Update.
10300 (remove_program_space): Update.
10301 (number_of_program_spaces): Remove.
10302 (print_program_space, update_address_spaces): Update.
10303 * progspace.h (program_spaces): Change type.
10304 (ALL_PSPACES): Remove.
10305 (number_of_program_spaces): Don't declare.
10306 (struct program_space) <next>: Remove.
10307
10308 2020-05-08 Tom Tromey <tom@tromey.com>
10309
10310 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10311 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10312 (enable_break): Update.
10313 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10314 (frv_fdpic_find_canonical_descriptor): Update.
10315 (frv_fetch_objfile_link_map): Update.
10316 * progspace.c (program_space::free_all_objfiles): Update.
10317 (program_space::solibs): New method.
10318 * progspace.h (struct program_space) <solibs>: New method.
10319 * solist.h (master_so_list): Don't declare.
10320 (ALL_SO_LIBS): Remove.
10321 * solib.h (so_list_head): Remove.
10322 (update_solib_list): Update comment.
10323 * solib.c (master_so_list): Remove.
10324 (solib_used, update_solib_list, solib_add)
10325 (info_sharedlibrary_command, clear_solib)
10326 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10327
10328 2020-05-08 Tom Tromey <tom@tromey.com>
10329
10330 * extension.c (extension_languages): Now a std::array.
10331 (ALL_EXTENSION_LANGUAGES): Remove.
10332 (get_ext_lang_defn, get_ext_lang_of_file)
10333 (eval_ext_lang_from_control_command): Update.
10334 (finish_ext_lang_initialization)
10335 (auto_load_ext_lang_scripts_for_objfile)
10336 (ext_lang_type_printers::ext_lang_type_printers)
10337 (apply_ext_lang_type_printers)
10338 (ext_lang_type_printers::~ext_lang_type_printers)
10339 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10340 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10341 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10342 (get_matching_xmethod_workers, ext_lang_colorize)
10343 (ext_lang_before_prompt): Update.
10344 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10345
10346 2020-05-08 Tom Tromey <tom@tromey.com>
10347
10348 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10349 overload.
10350 <swap_string, m_string>: Remove.
10351 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10352 Update.
10353 * stabsread.c (define_symbol, read_type): Update.
10354 * linespec.c (find_linespec_symbols): Update.
10355 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10356 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10357 * dbxread.c (read_dbx_symtab): Update.
10358 * cp-support.h (cp_canonicalize_string_full)
10359 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10360 Return unique_xmalloc_ptr.
10361 * cp-support.c (inspect_type): Update.
10362 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10363 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10364 Likewise.
10365 * c-typeprint.c (print_name_maybe_canonical): Update.
10366 * break-catch-throw.c (check_status_exception_catchpoint):
10367 Update.
10368
10369 2020-05-08 Tom de Vries <tdevries@suse.de>
10370
10371 * infrun.c (follow_fork): Copy current_line and current_symtab to
10372 child thread.
10373
10374 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * async-event.c (struct async_signal_handler, struct
10377 async_event_handler): Reformat, remove typedef.
10378
10379 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10382 access thistype->main_type->dyn_prop_list directly.
10383
10384 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10387 (remove_dyn_prop): Remove. Update all users to use
10388 type::remove_dyn_prop.
10389 * gdbtypes.c (remove_dyn_prop): Rename to...
10390 (type::remove_dyn_prop): ... this.
10391
10392 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10393
10394 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10395 (add_dyn_prop): Remove. Update all users to use
10396 type::add_dyn_prop.
10397 * gdbtypes.c (add_dyn_prop): Rename to...
10398 (type::add_dyn_prop): ... this.
10399
10400 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10403 (get_dyn_prop): Remove. Update all users to use
10404 type::dyn_prop.
10405 * gdbtypes.c (get_dyn_prop): Rename to...
10406 (type::dyn_prop): ... this.
10407
10408 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10411
10412 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10413
10414 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10415 instruction, skip it if it's there.
10416
10417 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10420
10421 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10424 * gdbtypes.c (recursive_dump_type): Remove use of
10425 TYPE_INCOMPLETE.
10426
10427 2020-05-03 Tom Tromey <tom@tromey.com>
10428
10429 * breakpoint.c (catch_command, tcatch_command): Remove.
10430 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10431 add_show_prefix_cmd.
10432 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10433 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10434 Remove.
10435 (add_internal_problem_command): Use add_basic_prefix_cmd,
10436 add_show_prefix_cmd.
10437 * mips-tdep.c (set_mipsfpu_command): Remove.
10438 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10439 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10440 (_initialize_index_cache): Use add_basic_prefix_cmd.
10441 * memattr.c (dummy_cmd): Remove.
10442 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10443 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10444 (_initialize_tui_win): Use add_basic_prefix_cmd,
10445 add_show_prefix_cmd.
10446 * cli/cli-logging.c (set_logging_command): Remove.
10447 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10448 add_show_prefix_cmd.
10449 (show_logging_command): Remove.
10450 * target.c (target_command): Remove.
10451 (add_target): Use add_basic_prefix_cmd.
10452
10453 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10454
10455 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10456
10457 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10458
10459 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10460 info_command.
10461
10462 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10463
10464 * nbsd-nat.c (nbsd_enable_proc_events)
10465 (nbsd_nat_target::post_startup_inferior): Add.
10466 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10467 (nbsd_nat_target::update_thread_list): Rewrite.
10468 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10469 "PTRACE_LWP_CREATE".
10470 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10471
10472 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10473
10474 * stack.c (_initialize_stack): Remove duplicated creation
10475 of "frame" command and "f" alias.
10476
10477 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10478
10479 PR gdb/18706
10480 * gdbtypes.c (check_typedef): Calculate size of array of
10481 stubbed type.
10482
10483 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10484
10485 PR gdb/15559
10486 * i386-tdep.c (i386_push_dummy_call): Call
10487 i386_thiscall_push_dummy_call.
10488 (i386_thiscall_push_dummy_call): New function.
10489 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10490 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10491 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10492
10493 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * gdbarch.sh (do_read): Add shellcheck disable directive for
10496 warning SC2162.
10497
10498 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10501 "referenced but not assigned" warning.
10502
10503 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * gdbarch.sh: Remove code that sets fallbackdefault.
10506
10507 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbarch.sh: Use shell operators && and || instead of
10510 -a and -o.
10511
10512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbarch.sh: Use $(...) instead of `...`.
10515
10516 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10517
10518 * gdbarch.sh: Use double quotes around variables.
10519
10520 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * gdbarch.sh: Use %s with printf, instead of variables in the
10523 format string.
10524
10525 2020-04-29 Tom Tromey <tromey@adacore.com>
10526
10527 PR ada/25875:
10528 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10529 type fields here.
10530 (read_enumeration_type): Call
10531 update_enumeration_type_from_children later. Update comments.
10532 (process_enumeration_scope): Don't create type fields.
10533
10534 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10535
10536 * nbsd-tdep.c: Include "xml-syscall.h".
10537 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10538
10539 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10540
10541 * nbsd-nat.c: Include "sys/wait.h".
10542 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10543 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10544 (nbsd_nat_target::remove_exec_catchpoint)
10545 (nbsd_nat_target::set_syscall_catchpoint): Add.
10546 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10547 (nbsd_nat_target::insert_exec_catchpoint)
10548 (nbsd_nat_target::remove_exec_catchpoint)
10549 (nbsd_nat_target::set_syscall_catchpoint): Add.
10550 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10551 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10552 `nbsd_get_syscall_number'.
10553
10554 2020-04-29 Tom Tromey <tom@tromey.com>
10555
10556 * stack.c (print_block_frame_labels): Remove.
10557
10558 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10559
10560 PR gdb/17320
10561 * ada-valprint.c (val_print_packed_array_elements): Move array
10562 end bracket to new line.
10563 (ada_val_print_string): Remove extra spaces before first array
10564 element.
10565 * c-valprint.c (c_value_print_array): Likewise.
10566 * m2-valprint.c (m2_print_array_contents): Likewise.
10567 (m2_value_print_inner): Likewise.
10568 * p-valprint.c (pascal_value_print_inner): Likewise.
10569 * valprint.c (generic_val_print_array): Likewise.
10570 (value_print_array_elements): Move first array element and array
10571 end bracket to new line.
10572
10573 2020-04-29 Tom de Vries <tdevries@suse.de>
10574
10575 PR symtab/25889
10576 * linespec.c (find_method): Fix ix calculation.
10577
10578 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10579
10580 * syscalls/update-netbsd.sh: New file.
10581 * syscalls/netbsd.xml: Regenerate.
10582 * data-directory/Makefile.in: Register `netbsd.xml' in
10583 `SYSCALLS_FILES'.
10584
10585 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * syscalls/update-freebsd.sh: Add double quotes.
10588
10589 2020-04-28 Tom Tromey <tom@tromey.com>
10590
10591 * NEWS: Update.
10592 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10593 (cmdpy_init): Allow class_tui.
10594
10595 2020-04-28 Mark Williams <mark@myosotissp.com>
10596
10597 PR gdb/24480
10598 * dwarf2read.c: Add missing assingments to list_in_scope when
10599 start_symtab was already called.
10600
10601 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10602
10603 PR gdb/25881
10604 * dwarf2/read.c (offset_map_type): Use
10605 gdb:hash_enum<sect_offset> as hash function.
10606
10607 2020-04-28 Tom de Vries <tdevries@suse.de>
10608
10609 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10610 with DW_AT_signature.
10611
10612 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * configure.ac: Remove check for fs_base/gs_base in
10615 user_regs_struct.
10616 * configure: Re-generate.
10617 * config.in: Re-generate.
10618 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10619 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10620 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10621
10622 2020-04-27 Luis Machado <luis.machado@linaro.org>
10623
10624 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10625 problematic inline frame unwinding situation.
10626 * frame.c (frame_id_computed_p): New function.
10627 * frame.h (frame_id_computed_p): New prototype.
10628
10629 2020-04-26 Tom Tromey <tom@tromey.com>
10630
10631 * command.h (enum command_class) <class_pseudo>: Remove.
10632
10633 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10634
10635 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10636 and whitespace.
10637
10638 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10639
10640 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10641 `PT_GET_PROCESS_STATE' block.
10642
10643 2020-04-24 Tom Tromey <tom@tromey.com>
10644
10645 * symtab.h (symbol_get_demangled_name): Don't declare.
10646 * symtab.c (symbol_get_demangled_name): Remove.
10647 (general_symbol_info::natural_name)
10648 (general_symbol_info::demangled_name): Update.
10649
10650 2020-04-24 Tom Tromey <tom@tromey.com>
10651
10652 PR rust/25025:
10653 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10654
10655 2020-04-24 Tom Tromey <tom@tromey.com>
10656
10657 PR symtab/12707:
10658 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10659 exists.
10660 (new_symbol): Likewise.
10661 * compile/compile-object-load.c (get_out_value_type): Use
10662 symbol_matches_search_name.
10663
10664 2020-04-24 Tom Tromey <tom@tromey.com>
10665
10666 * dwarf2/read.c (add_partial_symbol): Do not call
10667 compute_and_set_names.
10668
10669 2020-04-24 Tom Tromey <tom@tromey.com>
10670
10671 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10672 overload.
10673
10674 2020-04-24 Tom Tromey <tom@tromey.com>
10675
10676 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10677 (add_psymbol_to_list): New overload. Make old overload call new
10678 one.
10679 * psympriv.h (add_psymbol_to_list): New overload.
10680
10681 2020-04-24 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/read.c (partial_die_info::read) <case
10684 DW_AT_linkage_name>: Use value_as_string.
10685 (dwarf2_string_attr): Use value_as_string.
10686 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10687 method.
10688 * dwarf2/attribute.c (attribute::value_as_string): New method.
10689
10690 2020-04-24 Tom Tromey <tom@tromey.com>
10691
10692 * symtab.c (general_symbol_info::natural_name)
10693 (general_symbol_info::demangled_name): Check for language_rust.
10694
10695 2020-04-24 Tom Tromey <tom@tromey.com>
10696
10697 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10698 (dwarf2_physname): ... from here.
10699 (partial_die_info::read): Add Rust "{" hack.
10700
10701 2020-04-24 Tom Tromey <tom@tromey.com>
10702
10703 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10704 method.
10705 (symbol_set_demangled_name): Don't declare.
10706 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10707 symbol_set_demangled_name.
10708 (general_symbol_info::set_language)
10709 (general_symbol_info::compute_and_set_names): Update.
10710 * minsyms.c (minimal_symbol_reader::install): Update.
10711 * dwarf2/read.c (new_symbol): Update.
10712
10713 2020-04-24 Tom Tromey <tromey@adacore.com>
10714
10715 PR python/23662:
10716 * python/py-type.c (convert_field): Handle
10717 FIELD_LOC_KIND_DWARF_BLOCK.
10718 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10719 (typy_get_dynamic): Nw function.
10720 (type_object_getset): Add "dynamic".
10721 * NEWS: Add entry.
10722
10723 2020-04-24 Tom Tromey <tromey@adacore.com>
10724
10725 * ada-typeprint.c (print_choices, print_variant_part)
10726 (print_record_field_types_dynamic): New functions.
10727 (print_record_field_types): Use print_record_field_types_dynamic.
10728
10729 2020-04-24 Tom Tromey <tromey@adacore.com>
10730
10731 * dwarf2/read.c (handle_data_member_location): New overload.
10732 (dwarf2_add_field): Use it.
10733 (decode_locdesc): Add "computed" parameter. Update comment.
10734 * gdbtypes.c (is_dynamic_type_internal): Also look for
10735 FIELD_LOC_KIND_DWARF_BLOCK.
10736 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10737 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10738 virtual base classes.
10739 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10740 FIELD_LOC_KIND_DWARF_BLOCK.
10741
10742 2020-04-24 Tom Tromey <tromey@adacore.com>
10743
10744 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10745 * gdbtypes.c (is_dynamic_type_internal): Check
10746 TYPE_HAS_DYNAMIC_LENGTH.
10747 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10748 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10749 New macros.
10750 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10751 constant.
10752
10753 2020-04-24 Tom Tromey <tromey@adacore.com>
10754
10755 * dwarf2/read.c (struct variant_field): Rewrite.
10756 (struct variant_part_builder): New.
10757 (struct nextfield): Remove "variant" field. Add "offset".
10758 (struct field_info): Add "current_variant_part" and
10759 "variant_parts".
10760 (alloc_discriminant_info): Remove.
10761 (alloc_rust_variant): New function.
10762 (quirk_rust_enum): Update.
10763 (dwarf2_add_field): Set "offset" member. Don't handle
10764 DW_TAG_variant_part.
10765 (offset_map_type): New typedef.
10766 (convert_variant_range, create_one_variant)
10767 (create_one_variant_part, create_variant_parts)
10768 (add_variant_property): New functions.
10769 (dwarf2_attach_fields_to_type): Call add_variant_property.
10770 (read_structure_type): Don't handle DW_TAG_variant_part.
10771 (handle_variant_part, handle_variant): New functions.
10772 (handle_struct_member_die): Use them.
10773 (process_structure_scope): Don't handle variant parts.
10774 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10775 (struct discriminant_info): Remove.
10776 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10777 (struct main_type) <flag_discriminated_union>: Remove.
10778 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10779 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10780 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10781 Update.
10782 * valops.c (value_union_variant): Remove.
10783 * value.h (value_union_variant): Don't declare.
10784
10785 2020-04-24 Tom Tromey <tromey@adacore.com>
10786
10787 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10788 (ada_value_primitive_packed_val): Update.
10789 * ada-valprint.c (ada_value_print_1): Update.
10790 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10791 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10792 just an address. Use evaluate_for_locexpr_baton.
10793 (dwarf2_evaluate_property): Update.
10794 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10795 array_view.
10796 * findvar.c (default_read_var_value): Update.
10797 * gdbtypes.c (compute_variant_fields_inner)
10798 (resolve_dynamic_type_internal): Update.
10799 (resolve_dynamic_type): Change type of valaddr parameter.
10800 * gdbtypes.h (resolve_dynamic_type): Update.
10801 * valarith.c (value_subscripted_rvalue): Update.
10802 * value.c (value_from_contents_and_address): Update.
10803
10804 2020-04-24 Tom Tromey <tromey@adacore.com>
10805
10806 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10807 "push_initial_value" parameter.
10808 (dwarf2_evaluate_property): Likewise.
10809 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10810
10811 2020-04-24 Tom Tromey <tromey@adacore.com>
10812
10813 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10814 (variant::matches, compute_variant_fields_recurse)
10815 (compute_variant_fields_inner, compute_variant_fields): New
10816 functions.
10817 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10818 Use resolved_type after type is made.
10819 (operator==): Add new cases.
10820 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10821 (struct discriminant_range, struct variant, struct variant_part):
10822 New.
10823 (union dynamic_prop_data) <variant_parts, original_type>: New
10824 members.
10825 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10826 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10827 constants.
10828 * value.c (unpack_bits_as_long): Now public.
10829 * value.h (unpack_bits_as_long): Declare.
10830
10831 2020-04-24 Tom Tromey <tromey@adacore.com>
10832
10833 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10834 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10835
10836 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10837
10838 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10839
10840 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10841
10842 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10843 (remove_fork_catchpoint, post_startup_inferior)
10844 (post_attach): Move...
10845 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10846 (remove_fork_catchpoint, post_startup_inferior)
10847 (post_attach): ...here.
10848 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10849 (remove_fork_catchpoint, post_startup_inferior)
10850 (post_attach): Move...
10851 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10852 (remove_fork_catchpoint, post_startup_inferior)
10853 (post_attach): ...here.
10854
10855 2020-04-24 Tom Tromey <tromey@adacore.com>
10856
10857 * nat/windows-nat.h (struct windows_thread_info)
10858 <pc_adjusted>: New member.
10859 * windows-nat.c (windows_fetch_one_register): Check
10860 pc_adjusted.
10861 (windows_nat_target::get_windows_debug_event)
10862 (windows_nat_target::wait): Set pc_adjusted.
10863
10864 2020-04-24 Tom de Vries <tdevries@suse.de>
10865
10866 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10867 Run gdb-add-index inside temp dir.
10868
10869 2020-04-23 Tom Tromey <tromey@adacore.com>
10870
10871 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10872 in loop.
10873
10874 2020-04-23 Luis Machado <luis.machado@linaro.org>
10875
10876 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10877 get_frame_register instead of gdbarch_unwind_pc.
10878
10879 2020-04-23 Tom de Vries <tdevries@suse.de>
10880
10881 * symtab.c (lookup_global_symbol): Prefer def over decl.
10882
10883 2020-04-23 Tom de Vries <tdevries@suse.de>
10884
10885 PR symtab/25807
10886 * block.c (best_symbol, better_symbol): Promote to external.
10887 * block.h (best_symbol, better_symbol): Declare.
10888 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10889 decl.
10890
10891 2020-04-23 Tom Tromey <tromey@adacore.com>
10892
10893 PR ada/25837:
10894 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10895 "const char *", not a "const std::string &".
10896 <name_and_matcher::operator==>: Update.
10897 * unittests/lookup_name_info-selftests.c: Change type of
10898 "result".
10899
10900 2020-04-23 Tom Tromey <tom@tromey.com>
10901
10902 * inferior.h (iterate_over_inferiors): Don't declare.
10903 * inferior.c (iterate_over_inferiors): Remove.
10904 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10905 Remove.
10906 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10907 use iterate_over_inferiors.
10908 (darwin_resume_inferior_it)
10909 (struct resume_inferior_threads_param)
10910 (darwin_resume_inferior_threads_it): Remove.
10911 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10912
10913 2020-04-23 Tom de Vries <tdevries@suse.de>
10914
10915 * blockframe.c (find_pc_partial_function): Use
10916 find_pc_sect_compunit_symtab rather than
10917 objfile->sf->qf->find_pc_sect_compunit_symtab.
10918
10919 2020-04-22 Tom de Vries <tdevries@suse.de>
10920
10921 PR symtab/25764
10922 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10923 in psymtabs.
10924
10925 2020-04-22 Tom de Vries <tdevries@suse.de>
10926
10927 PR symtab/25801
10928 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10929 symtabs.
10930
10931 2020-04-22 Tom de Vries <tdevries@suse.de>
10932
10933 PR symtab/25700
10934 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10935 CU if already created.
10936
10937 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10938
10939 * infrun.c (displaced_step_fixup): Switch to the event_thread
10940 before calling displaced_step_restore, not after.
10941
10942 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10945 its inferior is not recorded by us.
10946 (record_btrace_target_open): Replace call to
10947 all_non_exited_threads () with call to current_inferior
10948 ()->non_exited_threads ().
10949 (record_btrace_target::stop_recording): Likewise.
10950 (record_btrace_target::close): Likewise.
10951 (record_btrace_target::wait): Likewise.
10952 (record_btrace_target::record_stop_replaying): Likewise.
10953
10954 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10955
10956 * btrace.c (btrace_enable): Throw an error on double enables and
10957 when enabling recording fails.
10958 (btrace_disable): Throw an error if the thread is not recorded.
10959
10960 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10961
10962 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10963 request if we do not have a thread_info.
10964
10965 2020-04-21 Tom de Vries <tdevries@suse.de>
10966
10967 PR gdb/25471
10968 * thread.c
10969 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10970 exception in get_frame_id.
10971
10972 2020-04-20 Tom Tromey <tromey@adacore.com>
10973
10974 * python/python.c (struct gdbpy_event): Mark move constructor as
10975 noexcept.
10976 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10977 constructor as noexcept.
10978 * completer.h (struct completion_result): Mark move constructor as
10979 noexcept.
10980 * completer.c (completion_result::completion_result): Use
10981 initialization style. Don't call reset_match_list.
10982
10983 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10984
10985 * MAINTAINERS (Write After Approval): Add myself.
10986
10987 2020-04-18 Tom Tromey <tom@tromey.com>
10988
10989 * windows-tdep.c (init_w32_command_list)
10990 (w32_prefix_command_valid): Restore.
10991 (_initialize_windows_tdep): Call init_w32_command_list.
10992
10993 2020-04-18 Tom Tromey <tom@tromey.com>
10994
10995 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10996 * value.c (value_fn_field): Update.
10997 * valops.c (find_function_in_inferior)
10998 (value_allocate_space_in_inferior): Update.
10999 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11000 Update.
11001 * tui/tui-source.c (tui_source_window::set_contents): Update.
11002 * symtab.c (lookup_global_or_static_symbol)
11003 (find_function_start_sal_1, skip_prologue_sal)
11004 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11005 * symmisc.c (dump_msymbols, dump_symtab_1)
11006 (maintenance_print_one_line_table): Update.
11007 * symfile.c (init_entry_point_info, section_is_mapped)
11008 (list_overlays_command, simple_read_overlay_table)
11009 (simple_overlay_update_1): Update.
11010 * stap-probe.c (handle_stap_probe): Update.
11011 * stabsread.c (dbx_init_float_type, define_symbol)
11012 (read_one_struct_field, read_enum_type, read_range_type): Update.
11013 * source.c (info_line_command): Update.
11014 * python/python.c (gdbpy_source_objfile_script)
11015 (gdbpy_execute_objfile_script): Update.
11016 * python/py-type.c (save_objfile_types): Update.
11017 * python/py-objfile.c (py_free_objfile): Update.
11018 * python/py-inferior.c (python_new_objfile): Update.
11019 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11020 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11021 (maintenance_check_psymtabs): Update.
11022 * printcmd.c (info_address_command): Update.
11023 * objfiles.h (struct objfile) <arch>: New method, from
11024 get_objfile_arch.
11025 (get_objfile_arch): Don't declare.
11026 * objfiles.c (get_objfile_arch): Remove.
11027 (filter_overlapping_sections): Update.
11028 * minsyms.c (msymbol_is_function): Update.
11029 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11030 (output_nondebug_symbol): Update.
11031 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11032 (mdebug_expand_psymtab): Update.
11033 * machoread.c (macho_add_oso_symfile): Update.
11034 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11035 Update.
11036 * linux-fork.c (checkpoint_command): Update.
11037 * linespec.c (convert_linespec_to_sals): Update.
11038 * jit.c (finalize_symtab): Update.
11039 * infrun.c (insert_exception_resume_from_probe): Update.
11040 * ia64-tdep.c (ia64_find_unwind_table): Update.
11041 * hppa-tdep.c (internalize_unwinds): Update.
11042 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11043 Update.
11044 * gcore.c (call_target_sbrk): Update.
11045 * elfread.c (record_minimal_symbol, elf_symtab_read)
11046 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11047 (elf_gnu_ifunc_resolve_by_got): Update.
11048 * dwarf2/read.c (create_addrmap_from_index)
11049 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11050 (read_debug_names_from_section)
11051 (process_psymtab_comp_unit_reader, add_partial_symbol)
11052 (add_partial_subprogram, process_full_comp_unit)
11053 (read_file_scope, read_func_scope, read_lexical_block_scope)
11054 (read_call_site_scope, dwarf2_ranges_read)
11055 (dwarf2_record_block_ranges, dwarf2_add_field)
11056 (mark_common_block_symbol_computed, read_tag_pointer_type)
11057 (read_tag_string_type, dwarf2_init_float_type)
11058 (dwarf2_init_complex_target_type, read_base_type)
11059 (partial_die_info::read, partial_die_info::read)
11060 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11061 (dwarf2_fetch_die_loc_sect_off): Update.
11062 * dwarf2/loc.c (dwarf2_find_location_expression)
11063 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11064 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11065 (dwarf2_loc_desc_get_symbol_read_needs)
11066 (locexpr_describe_location_piece, locexpr_describe_location_1)
11067 (loclist_describe_location): Update.
11068 * dwarf2/index-write.c (write_debug_names): Update.
11069 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11070 * dtrace-probe.c (dtrace_process_dof): Update.
11071 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11072 (process_one_symbol): Update.
11073 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11074 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11075 (coff_read_enum_type): Update.
11076 * cli/cli-cmds.c (edit_command, list_command): Update.
11077 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11078 * breakpoint.c (create_overlay_event_breakpoint)
11079 (create_longjmp_master_breakpoint)
11080 (create_std_terminate_master_breakpoint)
11081 (create_exception_master_breakpoint, get_sal_arch): Update.
11082 * block.c (block_gdbarch): Update.
11083 * annotate.c (annotate_source_line): Update.
11084
11085 2020-04-17 Tom Tromey <tromey@adacore.com>
11086
11087 * auto-load.c (show_auto_load_cmd): Remove.
11088 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11089 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11090 (maintenance_print_arc_command): Remove.
11091 * tui/tui-win.c (tui_command): Remove.
11092 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11093 * tui/tui-layout.c (tui_layout_command): Remove.
11094 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11095 * python/python.c (user_set_python, user_show_python): Remove.
11096 (_initialize_python): Use add_basic_prefix_cmd,
11097 add_show_prefix_cmd.
11098 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11099 (install_gdb_commands): Use add_basic_prefix_cmd,
11100 add_show_prefix_cmd.
11101 (info_guile_command): Remove.
11102 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11103 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11104 add_show_prefix_cmd.
11105 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11106 Remove do_set and do_show parameters.
11107 * cli/cli-style.c (set_style, show_style): Remove.
11108 (_initialize_cli_style): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 (cli_style_option::add_setshow_commands): Remove do_set and
11111 do_show parameters.
11112 (cli_style_option::add_setshow_commands): Use
11113 add_basic_prefix_cmd, add_show_prefix_cmd.
11114 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11115 (set_style_name): Remove.
11116 * cli/cli-dump.c (dump_command, append_command): Remove.
11117 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11118 (tekhex_dump_command, binary_dump_command)
11119 (binary_append_command): Remove.
11120 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11121 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11122 (init_w32_command_list): Remove; move into ...
11123 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11124 * valprint.c (set_print, show_print, set_print_raw)
11125 (show_print_raw): Remove.
11126 (_initialize_valprint): Use add_basic_prefix_cmd,
11127 add_show_prefix_cmd.
11128 * typeprint.c (set_print_type, show_print_type): Remove.
11129 (_initialize_typeprint): Use add_basic_prefix_cmd,
11130 add_show_prefix_cmd.
11131 * record.c (set_record_command, show_record_command): Remove.
11132 (_initialize_record): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 (info_command, show_command, set_debug, show_debug): Remove.
11137 * top.h (set_history, show_history): Don't declare.
11138 * top.c (set_history, show_history): Remove.
11139 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11140 (unset_tdesc_cmd): Remove.
11141 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11142 add_show_prefix_cmd.
11143 * symtab.c (info_module_command): Remove.
11144 (_initialize_symtab): Use add_basic_prefix_cmd.
11145 * symfile.c (overlay_command): Remove.
11146 (_initialize_symfile): Use add_basic_prefix_cmd.
11147 * sparc64-tdep.c (info_adi_command): Remove.
11148 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11149 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11150 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11151 add_show_prefix_cmd.
11152 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11153 (_initialize_serial): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11156 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11157 add_show_prefix_cmd.
11158 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11159 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11160 add_show_prefix_cmd.
11161 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11162 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11163 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11164 add_show_prefix_cmd.
11165 * remote.c (remote_command, set_remote_cmd): Remove.
11166 (_initialize_remote): Use add_basic_prefix_cmd.
11167 * record-full.c (set_record_full_command)
11168 (show_record_full_command): Remove.
11169 (_initialize_record_full): Use add_basic_prefix_cmd,
11170 add_show_prefix_cmd.
11171 * record-btrace.c (cmd_set_record_btrace)
11172 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11173 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11174 (cmd_show_record_btrace_pt): Remove.
11175 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11176 add_show_prefix_cmd.
11177 * ravenscar-thread.c (set_ravenscar_command)
11178 (show_ravenscar_command): Remove.
11179 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11180 add_show_prefix_cmd.
11181 * mips-tdep.c (show_mips_command, set_mips_command)
11182 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11183 add_show_prefix_cmd.
11184 * maint.c (maintenance_command, maintenance_info_command)
11185 (maintenance_check_command, maintenance_print_command)
11186 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11187 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11188 add_show_prefix_cmd.
11189 (show_per_command_cmd): Remove.
11190 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11191 Remove.
11192 (maintenance_show_test_settings_cmd): Remove.
11193 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11194 add_show_prefix_cmd.
11195 * maint-test-options.c (maintenance_test_options_command):
11196 Remove.
11197 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11198 * macrocmd.c (macro_command): Remove
11199 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11200 * language.c (set_check, show_check): Remove.
11201 (_initialize_language): Use add_basic_prefix_cmd,
11202 add_show_prefix_cmd.
11203 * infcmd.c (unset_command): Remove.
11204 (_initialize_infcmd): Use add_basic_prefix_cmd.
11205 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11206 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11207 add_show_prefix_cmd.
11208 * go32-nat.c (go32_info_dos_command): Remove.
11209 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11210 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11211 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11212 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11213 (_initialize_frame): Use add_basic_prefix_cmd,
11214 add_show_prefix_cmd.
11215 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11216 (_initialize_dcache): Use add_basic_prefix_cmd,
11217 add_show_prefix_cmd.
11218 * cp-support.c (maint_cplus_command): Remove.
11219 (_initialize_cp_support): Use add_basic_prefix_cmd.
11220 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11221 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11222 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11223 add_basic_prefix_cmd, add_show_prefix_cmd.
11224 * breakpoint.c (save_command): Remove.
11225 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11226 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11227 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11228 add_show_prefix_cmd.
11229 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11230 (set_ada_command, show_ada_command): Remove.
11231 (_initialize_ada_language): Use add_basic_prefix_cmd,
11232 add_show_prefix_cmd.
11233 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11234
11235 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11236
11237 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11238 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11239
11240 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11241
11242 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11243 warning messages.
11244
11245 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11246
11247 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11248 import table is not at beginning of .idata section.
11249
11250 2020-04-16 Pedro Alves <palves@redhat.com>
11251
11252 * inferior.c (delete_inferior): Use delete operator directly
11253 instead of delete_program_space.
11254 * progspace.c (add_program_space): New, factored out from
11255 program_space::program_space.
11256 (remove_program_space): New, factored out from
11257 delete_program_space.
11258 (program_space::program_space): Remove intro comment. Rewrite.
11259 (program_space::~program_space): Remove intro comment. Call
11260 remove_program_space.
11261 (delete_program_space): Delete.
11262 * progspace.h (program_space::program_space): Make explicit. Move
11263 intro comment here, adjusted.
11264 (program_space::~program_space): Move intro comment here,
11265 adjusted.
11266 (delete_program_space): Remove.
11267
11268 2020-04-16 Tom Tromey <tromey@adacore.com>
11269
11270 * windows-nat.c (windows_nat::handle_access_violation): New
11271 function.
11272 * nat/windows-nat.h (handle_access_violation): Declare.
11273 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11274 windows-nat.c. Call handle_access_violation.
11275
11276 2020-04-16 Tom de Vries <tdevries@suse.de>
11277
11278 PR symtab/25791
11279 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11280 CUs without psymtab.
11281
11282 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11283
11284 * python/python.c (do_start_initialization): Don't call
11285 PyEval_InitThreads for Python 3.9 and beyond.
11286
11287 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11288
11289 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11290 thread functions.
11291 (obsd_nat_target::wait): Likewise.
11292
11293 2020-04-15 Tom Tromey <tromey@adacore.com>
11294
11295 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11296 (DEBUG_EXCEPT): Use debug_printf.
11297
11298 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11299
11300 * completer.c (class completion_tracker::completion_hash_entry)
11301 <hash_name>: New member function.
11302 (completion_tracker::discard_completions): New callback to hash a
11303 completion_hash_entry, pass this to htab_create_alloc.
11304
11305 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11306
11307 * windows-nat.c (windows_make_so): Warn rather than stopping with
11308 an error if realpath() fails.
11309
11310 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11311
11312 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11313 (nbsd_nat_target::info_proc): Add do_status.
11314
11315 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11316 Tom de Vries <tdevries@suse.de>
11317
11318 PR symtab/25718
11319 * psympriv.h (struct partial_symtab::read_symtab)
11320 (struct partial_symtab::expand_psymtab)
11321 (struct partial_symtab::read_dependencies): Update comments.
11322 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11323 read_symtab for includer.
11324 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11325 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11326 (struct dwarf2_include_psymtab::m_readin): Remove.
11327 (struct dwarf2_include_psymtab::includer): New member function.
11328 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11329
11330 2020-04-14 Tom de Vries <tdevries@suse.de>
11331
11332 PR symtab/25720
11333 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11334 with NULL symbol_matcher and lookup_name.
11335 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11336 and lookup_name.
11337 * dwarf2/read.c (dw2_expand_symtabs_matching)
11338 (dw2_debug_names_expand_symtabs_matching): Same.
11339 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11340 Make lookup_name a pointer. Update comment.
11341 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11342 lookup_name being a pointer.
11343 * symfile.c (expand_symtabs_matching): Same.
11344 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11345 * linespec.c (iterate_over_all_matching_symtabs): Same.
11346
11347 2020-04-13 Tom Tromey <tom@tromey.com>
11348
11349 * run-on-main-thread.c: Update include.
11350 * unittests/main-thread-selftests.c: Update include.
11351 * tui/tui-win.c: Update include.
11352 * tui/tui-io.c: Update include.
11353 * tui/tui-interp.c: Update include.
11354 * tui/tui-hooks.c: Update include.
11355 * top.h: Update include.
11356 * top.c: Update include.
11357 * ser-base.c: Update include.
11358 * remote.c: Update include.
11359 * remote-notif.c: Update include.
11360 * remote-fileio.c: Update include.
11361 * record-full.c: Update include.
11362 * record-btrace.c: Update include.
11363 * python/python.c: Update include.
11364 * posix-hdep.c: Update include.
11365 * mingw-hdep.c: Update include.
11366 * mi/mi-main.c: Update include.
11367 * mi/mi-interp.c: Update include.
11368 * main.c: Update include.
11369 * linux-nat.c: Update include.
11370 * interps.c: Update include.
11371 * infrun.c: Update include.
11372 * inf-loop.c: Update include.
11373 * event-top.c: Update include.
11374 * event-loop.c: Move to ../gdbsupport/.
11375 * event-loop.h: Move to ../gdbsupport/.
11376 * async-event.h: Update include.
11377 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11378
11379 2020-04-13 Tom Tromey <tom@tromey.com>
11380
11381 * tui/tui-win.c: Include async-event.h.
11382 * remote.c: Include async-event.h.
11383 * remote-notif.c: Include async-event.h.
11384 * record-full.c: Include async-event.h.
11385 * record-btrace.c: Include async-event.h.
11386 * infrun.c: Include async-event.h.
11387 * event-top.c: Include async-event.h.
11388 * event-loop.h: Move some declarations to async-event.h.
11389 * event-loop.c: Don't include ser-event.h or top.h. Move some
11390 code to async-event.c.
11391 * async-event.h: New file.
11392 * async-event.c: New file.
11393 * Makefile.in (COMMON_SFILES): Add async-event.c.
11394 (HFILES_NO_SRCDIR): Add async-event.h.
11395
11396 2020-04-13 Tom Tromey <tom@tromey.com>
11397
11398 * utils.c (flush_streams): New function.
11399 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11400
11401 2020-04-13 Tom Tromey <tom@tromey.com>
11402
11403 * event-loop.c (handle_file_event): Use warning, not
11404 printf_unfiltered.
11405
11406 2020-04-13 Tom Tromey <tom@tromey.com>
11407
11408 * event-loop.c: Include <chrono>.
11409
11410 2020-04-13 Tom Tromey <tom@tromey.com>
11411
11412 * gdb_select.h: Move to ../gdbsupport/.
11413 * event-loop.c: Update include path.
11414 * top.c: Update include path.
11415 * ser-base.c: Update include path.
11416 * ui-file.c: Update include path.
11417 * ser-tcp.c: Update include path.
11418 * guile/scm-ports.c: Update include path.
11419 * posix-hdep.c: Update include path.
11420 * ser-unix.c: Update include path.
11421 * gdb_usleep.c: Update include path.
11422 * mingw-hdep.c: Update include path.
11423 * inflow.c: Update include path.
11424 * infrun.c: Update include path.
11425 * event-top.c: Update include path.
11426
11427 2020-04-13 Tom Tromey <tom@tromey.com>
11428
11429 * configure: Rebuild.
11430 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11431
11432 2020-04-13 Tom Tromey <tom@tromey.com>
11433
11434 * event-loop.h (start_event_loop): Don't declare.
11435 * event-loop.c (start_event_loop): Move...
11436 * main.c (start_event_loop): ...here. Now static.
11437
11438 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11439
11440 * MAINTAINERS: Update my email address.
11441
11442 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11443
11444 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11445 IP_ALL.
11446
11447 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11448
11449 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11450 (nbsd_nat_target::info_proc): Add do_cmdline.
11451
11452 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11453
11454 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11455 (nbsd_nat_target::info_proc): Add do_cwd.
11456
11457 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11458
11459 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11460
11461 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11462
11463 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11464 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11465 (nbsd_nat_target::info_proc): New functions.
11466 * nbsd-nat.c (kinfo_get_vmmap): New function.
11467 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11468 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11469 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11470 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11471 functions.
11472 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11473 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11474 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11475 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11476 (KINFO_VME_FLAG_GROWS_DOWN): New.
11477
11478 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11479
11480 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11481 bit shift.
11482
11483 2020-04-10 Tom Tromey <tromey@adacore.com>
11484
11485 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11486
11487 2020-04-10 Tom Tromey <tromey@adacore.com>
11488
11489 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11490 separate debug files.
11491
11492 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11493
11494 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11495 Move to...
11496 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11497 ... here.
11498 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11499 Check for STATUS_WX86_BREAKPOINT.
11500 (windows_nat_target::wait): Same.
11501
11502 2020-04-10 Tom de Vries <tdevries@suse.de>
11503
11504 PR cli/25808
11505 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11506
11507 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11508
11509 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11510 (Write After Approval): Remove Tom de Vries.
11511
11512 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11513
11514 revert partially:
11515 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11516
11517 * buildsym.c (record_line): Fix undefined behavior and preserve
11518 lines at eof.
11519
11520 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11521
11522 * auxv.h (svr4_auxv_parse): New.
11523 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11524 and generic_auxv_parse.
11525 (svr4_auxv_parse): Add.
11526 * obsd-tdep.c: Include "auxv.h".
11527 (obsd_auxv_parse): Remove.
11528 (obsd_init_abi): Remove comment.
11529 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11530 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11531 * nbsd-tdep.c: Include "auxv.h".
11532 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11533
11534 2020-04-08 Tom Tromey <tromey@adacore.com>
11535
11536 * nat/windows-nat.h (last_wait_event): Don't declare.
11537 (wait_for_debug_event): Update comment.
11538 * nat/windows-nat.c (last_wait_event): Now static.
11539
11540 2020-04-08 Tom Tromey <tromey@adacore.com>
11541
11542 * windows-nat.c (wait_for_debug_event): Move to
11543 nat/windows-nat.c.
11544 * nat/windows-nat.h (wait_for_debug_event): Declare.
11545 * nat/windows-nat.c (wait_for_debug_event): Move from
11546 windows-nat.c. No longer static.
11547
11548 2020-04-08 Tom Tromey <tromey@adacore.com>
11549
11550 * windows-nat.c (get_windows_debug_event): Use
11551 fetch_pending_stop.
11552 * nat/windows-nat.h (fetch_pending_stop): Declare.
11553 * nat/windows-nat.c (fetch_pending_stop): New function.
11554
11555 2020-04-08 Tom Tromey <tromey@adacore.com>
11556
11557 * windows-nat.c (windows_continue): Use matching_pending_stop and
11558 continue_last_debug_event.
11559 * nat/windows-nat.h (matching_pending_stop)
11560 (continue_last_debug_event): Declare.
11561 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11562 (matching_pending_stop, continue_last_debug_event): New
11563 functions.
11564
11565 2020-04-08 Tom Tromey <tromey@adacore.com>
11566
11567 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11568 (handle_exception_result): Move to nat/windows-nat.h.
11569 (DEBUG_EXCEPTION_SIMPLE): Remove.
11570 (windows_nat::handle_ms_vc_exception): New function.
11571 (handle_exception): Move to nat/windows-nat.c.
11572 (get_windows_debug_event): Update.
11573 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11574 nat/windows-nat.c.
11575 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11576 (handle_exception_result): Move from windows-nat.c.
11577 (handle_exception): Declare.
11578 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11579 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11580 windows-nat.c.
11581
11582 2020-04-08 Tom Tromey <tromey@adacore.com>
11583
11584 * windows-nat.c (exception_count, event_count): Remove.
11585 (handle_exception, get_windows_debug_event)
11586 (do_initial_windows_stuff): Update.
11587
11588 2020-04-08 Tom Tromey <tromey@adacore.com>
11589
11590 * windows-nat.c (windows_nat::handle_load_dll)
11591 (windows_nat::handle_unload_dll): Rename. No longer static.
11592 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11593 Declare.
11594
11595 2020-04-08 Tom Tromey <tromey@adacore.com>
11596
11597 * complaints.h (stop_whining): Declare at top-level.
11598 (complaint): Don't declare stop_whining.
11599
11600 2020-04-08 Tom Tromey <tromey@adacore.com>
11601
11602 * windows-nat.c (windows_nat::handle_output_debug_string):
11603 Rename. No longer static.
11604 * nat/windows-nat.h (handle_output_debug_string): Declare.
11605
11606 2020-04-08 Tom Tromey <tromey@adacore.com>
11607
11608 * windows-nat.c (current_process_handle, current_process_id)
11609 (main_thread_id, last_sig, current_event, last_wait_event)
11610 (current_windows_thread, desired_stop_thread_id, pending_stops)
11611 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11612 (display_selectors, fake_create_process)
11613 (get_windows_debug_event): Update.
11614 * nat/windows-nat.h (current_process_handle, current_process_id)
11615 (main_thread_id, last_sig, current_event, last_wait_event)
11616 (current_windows_thread, desired_stop_thread_id, pending_stops)
11617 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11618 * nat/windows-nat.c (current_process_handle, current_process_id)
11619 (main_thread_id, last_sig, current_event, last_wait_event)
11620 (current_windows_thread, desired_stop_thread_id, pending_stops)
11621 (siginfo_er): New globals. Move from windows-nat.c.
11622
11623 2020-04-08 Tom Tromey <tromey@adacore.com>
11624
11625 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11626 (handle_load_dll): Update.
11627 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11628
11629 2020-04-08 Tom Tromey <tromey@adacore.com>
11630
11631 * windows-nat.c (enum thread_disposition_type): Move to
11632 nat/windows-nat.h.
11633 (windows_nat::thread_rec): Rename from thread_rec. No longer
11634 static.
11635 (windows_add_thread, windows_nat_target::fetch_registers)
11636 (windows_nat_target::store_registers, handle_exception)
11637 (windows_nat_target::resume, get_windows_debug_event)
11638 (windows_nat_target::get_tib_address)
11639 (windows_nat_target::thread_name)
11640 (windows_nat_target::thread_alive): Update.
11641 * nat/windows-nat.h (enum thread_disposition_type): Move from
11642 windows-nat.c.
11643 (thread_rec): Declare.
11644
11645 2020-04-08 Tom Tromey <tromey@adacore.com>
11646
11647 * windows-nat.c: Add "using namespace".
11648 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11649 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11650
11651 2020-04-08 Tom Tromey <tromey@adacore.com>
11652
11653 * nat/windows-nat.h (struct windows_thread_info): Declare
11654 destructor.
11655 * nat/windows-nat.c (~windows_thread_info): New.
11656
11657 2020-04-08 Tom Tromey <tromey@adacore.com>
11658
11659 PR gdb/22992
11660 * windows-nat.c (current_event): Update comment.
11661 (last_wait_event, desired_stop_thread_id): New globals.
11662 (struct pending_stop): New.
11663 (pending_stops): New global.
11664 (windows_nat_target) <stopped_by_sw_breakpoint>
11665 <supports_stopped_by_sw_breakpoint>: New methods.
11666 (windows_fetch_one_register): Add assertions. Adjust PC.
11667 (windows_continue): Handle pending stops. Suspend other threads
11668 when stepping. Use last_wait_event
11669 (wait_for_debug_event): New function.
11670 (get_windows_debug_event): Use wait_for_debug_event. Handle
11671 pending stops. Queue spurious stops.
11672 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11673 (windows_nat_target::kill): Use wait_for_debug_event.
11674 * nat/windows-nat.h (struct windows_thread_info)
11675 <stopped_at_software_breakpoint>: New field.
11676 * nat/windows-nat.c (windows_thread_info::resume): Clear
11677 stopped_at_software_breakpoint.
11678
11679 2020-04-08 Tom Tromey <tromey@adacore.com>
11680
11681 * windows-nat.c (enum thread_disposition_type): New.
11682 (thread_rec): Replace "get_context" parameter with "disposition";
11683 change type.
11684 (windows_add_thread, windows_nat_target::fetch_registers)
11685 (windows_nat_target::store_registers, handle_exception)
11686 (windows_nat_target::resume, get_windows_debug_event)
11687 (windows_nat_target::get_tib_address)
11688 (windows_nat_target::thread_name)
11689 (windows_nat_target::thread_alive): Update.
11690
11691 2020-04-08 Tom Tromey <tromey@adacore.com>
11692
11693 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11694 (windows_continue): Use windows_continue::resume.
11695 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11696 resume>: Declare new methods.
11697 * nat/windows-nat.c: New file.
11698 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11699
11700 2020-04-08 Tom Tromey <tromey@adacore.com>
11701
11702 * windows-nat.c (windows_add_thread, windows_delete_thread)
11703 (windows_nat_target::fetch_registers)
11704 (windows_nat_target::store_registers, fake_create_process)
11705 (windows_nat_target::resume, windows_nat_target::resume)
11706 (get_windows_debug_event, windows_nat_target::wait)
11707 (windows_nat_target::pid_to_str)
11708 (windows_nat_target::get_tib_address)
11709 (windows_nat_target::get_ada_task_ptid)
11710 (windows_nat_target::thread_name)
11711 (windows_nat_target::thread_alive): Use lwp, not tid.
11712
11713 2020-04-08 Tom Tromey <tromey@adacore.com>
11714
11715 * windows-nat.c (handle_exception)
11716 (windows_nat_target::thread_name): Update.
11717 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11718 <name>: Now unique_xmalloc_ptr.
11719
11720 2020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * windows-nat.c (thread_rec)
11723 (windows_nat_target::fetch_registers): Update.
11724 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11725 Update comment.
11726 <debug_registers_changed, reload_context>: Now bool.
11727
11728 2020-04-08 Tom Tromey <tromey@adacore.com>
11729
11730 * windows-nat.c (windows_add_thread): Use new.
11731 (windows_init_thread_list, windows_delete_thread): Use delete.
11732 (get_windows_debug_event): Update.
11733 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11734 destructor, and initializers.
11735
11736 2020-04-08 Tom Tromey <tromey@adacore.com>
11737
11738 * windows-nat.c (struct windows_thread_info): Remove.
11739 * nat/windows-nat.h: New file.
11740
11741 2020-04-08 Tom Tromey <tromey@adacore.com>
11742
11743 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11744 (thread_rec, windows_add_thread, windows_delete_thread)
11745 (windows_continue): Update.
11746
11747 2020-04-08 Tom Tromey <tromey@adacore.com>
11748
11749 * windows-nat.c (struct windows_thread_info): Remove typedef.
11750 (thread_head): Remove.
11751 (thread_list): New global.
11752 (thread_rec, windows_add_thread, windows_init_thread_list)
11753 (windows_delete_thread, windows_continue): Update.
11754
11755 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11756
11757 * windows-tdep.h (windows_init_abi): Add comment.
11758 (cygwin_init_abi): New declaration.
11759 * windows-tdep.c: Split signal enumeration in two, one for
11760 Windows and one for Cygwin.
11761 (windows_gdb_signal_to_target): Only deal with signal of the
11762 Windows OS ABI.
11763 (cygwin_gdb_signal_to_target): New function.
11764 (windows_init_abi): Rename to windows_init_abi_common, don't set
11765 gdb_signal_to_target gdbarch method. Add new new function with
11766 this name.
11767 (cygwin_init_abi): New function.
11768 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11769 comment. Don't call windows_init_abi.
11770 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11771 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11772 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11773 i386_windows_init_abi_common, don't call windows_init_abi. Add
11774 a new function of this name.
11775 (i386_cygwin_init_abi): New function.
11776 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11777 OS ABI Cygwin.
11778
11779 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11780
11781 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11782 parameter.c.
11783 (dwarf2_read_gdb_index): Update.
11784
11785 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11786
11787 * nbsd-tdep.c: Include "objfiles.h".
11788 (nbsd_skip_solib_resolver): New.
11789 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11790
11791 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11792
11793 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11794 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11795 with DW_LLE_base_addressx are being emitted in DWARFv5.
11796 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11797 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11798 unsigned integer.
11799
11800 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11801
11802 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11803 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11804 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11805 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11806 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11807 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11808 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11809
11810
11811 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11812
11813 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11814 (read_loclist_index): New function definition.
11815 (lookup_loclist_base): New function definition.
11816 (read_loclist_header): New function definition.
11817 (dwarf2_cu): Add loclist_base and loclist_header field.
11818 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11819 (read_full_die_1): Read the value of DW_AT_loclists_base.
11820 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11821 (read_attribute_value): Handle DW_FORM_loclistx.
11822 (skip_one_die): Handle DW_FORM_loclistx.
11823 (loclist_header): New structure declaration.
11824 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11825
11826 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11827
11828 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11829 constructor. Remove `addr` parameter from other constructor and
11830 add `per_cu` parameter.
11831 * dwarf2/read.c (create_partial_symtab): Update.
11832
11833 2020-04-07 Tom de Vries <tdevries@suse.de>
11834
11835 PR symtab/25796
11836 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11837 (partial_die_info::fixup): Inherit has_const_value.
11838
11839 2020-04-07 Tom de Vries <tdevries@suse.de>
11840
11841 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11842 symbols without address.
11843
11844 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11845
11846 * nbsd-nat.h (struct thread_info): Add forward declaration.
11847 (nbsd_nat_target::thread_alive): Add.
11848 (nbsd_nat_target::thread_name): Likewise.
11849 (nbsd_nat_target::update_thread_list): Likewise.
11850 (update_thread_list::post_attach): Likewise.
11851 (post_attach::pid_to_str): Likewise.
11852 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11853 (nbsd_thread_lister): Add.
11854 (nbsd_nat_target::thread_alive): Likewise.
11855 (nbsd_nat_target::thread_name): Likewise.
11856 (nbsd_add_threads): Likewise.
11857 (update_thread_list::post_attach): Likewise.
11858 (nbsd_nat_target::update_thread_list): Likewise.
11859 (post_attach::pid_to_str): Likewise.
11860
11861 2020-04-06 Tom Tromey <tromey@adacore.com>
11862
11863 * ada-valprint.c (print_variant_part): Extract the variant field.
11864 (print_field_values): Use the field as the outer value when
11865 recursing.
11866
11867 2020-04-06 Tom Tromey <tromey@adacore.com>
11868
11869 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11870 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11871 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11872 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11873 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11874
11875 2020-04-06 Tom Tromey <tromey@adacore.com>
11876
11877 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11878 TYPE_CODE_ERROR.
11879
11880 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11881
11882 * nbsd-tdep.c: Include "gdbarch.h".
11883 Define enum with NetBSD signal numbers.
11884 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11885 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11886 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11887 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11888 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11889 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11890 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11891 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11892 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11893 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11894 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11895 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11896
11897 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11898
11899 PR gdb/25325
11900 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11901
11902 2020-04-03 Tom Tromey <tromey@adacore.com>
11903
11904 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11905 Read constant block.
11906
11907 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11908
11909 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11910 (gdb_bfd_get_full_section_contents): New declaration.
11911 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11912 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11913 gdb_bfd_get_full_section_contents.
11914
11915 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11916
11917 * exec.c (build_section_table): Replace internal_error with
11918 gdb_assert.
11919 (section_table_xfer_memory_partial): Likewise.
11920 * mdebugread.c (parse_partial_symbols): Likewise.
11921 * psymtab.c (lookup_partial_symbol): Likewise.
11922 * utils.c (wrap_here): Likewise.
11923
11924 2020-04-02 Tom Tromey <tromey@adacore.com>
11925
11926 * f-lang.c (build_fortran_types): Use arch_type to initialize
11927 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11928
11929 2020-04-02 Tom Tromey <tromey@adacore.com>
11930
11931 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11932 of attributes.
11933
11934 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11935 Bernd Edlinger <bernd.edlinger@hotmail.de>
11936 Tom Tromey <tromey@adacore.com>
11937
11938 * buildsym.c (buildsym_compunit::record_line): Remove
11939 deduplication code.
11940
11941 2020-04-02 Tom de Vries <tdevries@suse.de>
11942
11943 PR ada/24671
11944 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11945
11946 2020-04-02 Tom de Vries <tdevries@suse.de>
11947
11948 * dwarf2/read.c (dwarf2_gdb_index_functions,
11949 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11950 NULL.
11951 * psymtab.c (psym_lookup_global_symbol_language): New function.
11952 (psym_functions): Init psym_lookup_global_symbol_language with
11953 psym_lookup_global_symbol_language.
11954 * symfile-debug.c (debug_sym_quick_functions): Init
11955 lookup_global_symbol_language with NULL.
11956 * symfile.c (set_initial_language): Remove fixme comment.
11957 * symfile.h (struct quick_symbol_functions): Add
11958 lookup_global_symbol_language.
11959 * symtab.c (find_quick_global_symbol_language): New function.
11960 (find_main_name): Use find_quick_global_symbol_language.
11961
11962 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11963
11964 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11965
11966 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11967
11968 * buildsym.c (record_line): Fix undefined behavior and preserve
11969 lines at eof.
11970
11971 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11972
11973 * buildsym.c (record_line): Fix the resizing condition.
11974
11975 2020-04-01 Tom Tromey <tom@tromey.com>
11976
11977 * value.h (value_literal_complex): Add comment.
11978 * valops.c (value_literal_complex): Refer to value.h.
11979
11980 2020-04-01 Tom Tromey <tom@tromey.com>
11981
11982 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11983 (scalar_type): New rule, from typebase.
11984 (typebase): Use scalar_type. Recognize complex types.
11985 (field_name): Handle FLOAT_KEYWORD.
11986 (ident_tokens): Add _Complex and __complex__.
11987
11988 2020-04-01 Tom Tromey <tom@tromey.com>
11989
11990 PR exp/25299:
11991 * valarith.c (promotion_type, complex_binop): New functions.
11992 (scalar_binop): Handle complex numbers. Use promotion_type.
11993 (value_pos, value_neg, value_complement): Handle complex numbers.
11994
11995 2020-04-01 Tom Tromey <tom@tromey.com>
11996
11997 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11998 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11999 (parse_number): Handle complex numbers.
12000
12001 2020-04-01 Tom Tromey <tom@tromey.com>
12002
12003 * c-valprint.c (c_decorations): Change complex suffix to "i".
12004
12005 2020-04-01 Tom Tromey <tom@tromey.com>
12006
12007 * valprint.c (generic_value_print_complex): Use accessors.
12008 * value.h (value_real_part, value_imaginary_part): Declare.
12009 * valops.c (value_real_part, value_imaginary_part): New
12010 functions.
12011 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12012
12013 2020-04-01 Tom Tromey <tom@tromey.com>
12014
12015 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12016 (read_range_type): Update.
12017 * mdebugread.c (basic_type): Update.
12018 * go-lang.c (build_go_types): Use init_complex_type.
12019 * gdbtypes.h (struct main_type) <complex_type>: New member.
12020 (init_complex_type): Update.
12021 (arch_complex_type): Don't declare.
12022 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12023 Make name if none given. Use alloc_type_copy. Look for cached
12024 complex type.
12025 (arch_complex_type): Remove.
12026 (gdbtypes_post_init): Use init_complex_type.
12027 * f-lang.c (build_fortran_types): Use init_complex_type.
12028 * dwarf2/read.c (read_base_type): Update.
12029 * d-lang.c (build_d_types): Use init_complex_type.
12030 * ctfread.c (read_base_type): Update.
12031
12032 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12033
12034 * infrun.c (stop_all_threads): Update assertion, plus when
12035 stopping threads, take into account that we might be trying
12036 to stop an all-stop target.
12037 (stop_waiting): Call 'stop_all_threads' if there exists a
12038 non-stop target.
12039
12040 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12041
12042 * target.h (exists_non_stop_target): New function declaration.
12043 * target.c (exists_non_stop_target): New function.
12044
12045 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12046
12047 PR gdb/24789
12048 * eval.c (is_integral_or_integral_reference): New function.
12049 (evaluate_subexp_standard): Allow integer references in
12050 pointer arithmetic.
12051
12052 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12053
12054 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12055 check for no ptid in the stop reply when the target is non-stop.
12056
12057 2020-04-01 Tom Tromey <tromey@adacore.com>
12058
12059 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12060 "name" parameter to rvalue reference. Initialize m_name_holder.
12061 <lookup_name_info>: New overloads.
12062 <name>: Return gdb::string_view.
12063 <c_str>: New method.
12064 <make_ignore_params>: Update.
12065 <search_name_hash>: Update.
12066 <language_lookup_name>: Return const char *.
12067 <m_name>: Change type.
12068 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12069 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12070 (lookup_name_info::match_any): Update.
12071 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12072 Update.
12073 * minsyms.c (linkage_name_str): Update.
12074 * language.c (default_symbol_name_matcher): Update.
12075 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12076 Update.
12077 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12078 (ada_lookup_name_info::ada_lookup_name_info): Update.
12079 (literal_symbol_name_matcher): Update.
12080
12081 2020-04-01 Tom Tromey <tromey@adacore.com>
12082
12083 * psymtab.c (psymtab_search_name): Remove function.
12084 (psym_lookup_symbol): Create search name and lookup name here.
12085 (lookup_partial_symbol): Remove "name" parameter; add
12086 lookup_name.
12087 (psym_expand_symtabs_for_function): Update.
12088
12089 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12090
12091 PR tui/25597:
12092 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12093
12094 2020-03-31 Tom Tromey <tromey@adacore.com>
12095
12096 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12097 memcpy.
12098
12099 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12100
12101 * features/riscv/32bit-csr.xml: Regenerated.
12102 * features/riscv/64bit-csr.xml: Regenerated.
12103
12104 2020-03-30 Tom Tromey <tromey@adacore.com>
12105
12106 * ada-valprint.c (print_variant_part): Update.
12107 * ada-lang.h (ada_which_variant_applies): Update.
12108 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12109 outer_valaddr parameters; replace with "outer" value parameter.
12110 (to_fixed_variant_branch_type): Update.
12111
12112 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12113
12114 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12115 <list>. Remove inclusion of observable.h.
12116 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12117 (struct arch_lwp_info): New struct.
12118 (class ppc_linux_dreg_interface): New class.
12119 (struct ppc_linux_process_info): New struct.
12120 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12121 <low_new_clone, low_forget_process, low_prepare_to_resume>
12122 <copy_thread_dreg_state, mark_thread_stale>
12123 <mark_debug_registers_changed, register_hw_breakpoint>
12124 <clear_hw_breakpoint, register_wp, clear_wp>
12125 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12126 <num_memory_accesses, get_trigger_type>
12127 <create_watchpoint_request, hwdebug_point_cmp>
12128 <init_arch_lwp_info, get_arch_lwp_info>
12129 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12130 methods.
12131 <struct ptid_hash>: New inner struct.
12132 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12133 members.
12134 (saved_dabr_value, hwdebug_info, max_slots_number)
12135 (struct hw_break_tuple, struct thread_points, ppc_threads)
12136 (have_ptrace_hwdebug_interface)
12137 (hwdebug_find_thread_points_by_tid)
12138 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12139 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12140 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12141 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12142 use m_dreg_interface.
12143 (hwdebug_point_cmp): Change to...
12144 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12145 reference arguments instead of pointers.
12146 (ppc_linux_nat_target::ranged_break_num_registers): Use
12147 m_dreg_interface.
12148 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12149 m_dreg_interface. Call register_hw_breakpoint.
12150 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12151 m_dreg_interface. Call clear_hw_breakpoint.
12152 (get_trigger_type): Change to...
12153 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12154 comment.
12155 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12156 use m_dreg_interface. Call register_hw_breakpoint.
12157 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12158 use m_dreg_interface. Call clear_hw_breakpoint.
12159 (can_use_watchpoint_cond_accel): Change to...
12160 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12161 method. Update comment, use m_dreg_interface and
12162 m_process_info.
12163 (calculate_dvc): Change to...
12164 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12165 m_dreg_interface.
12166 (num_memory_accesses): Change to...
12167 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12168 (check_condition): Change to...
12169 (ppc_linux_nat_target::check_condition): ...this method.
12170 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12171 comment, use m_dreg_interface.
12172 (create_watchpoint_request): Change to...
12173 (ppc_linux_nat_target::create_watchpoint_request): ...this
12174 method. Use m_dreg_interface.
12175 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12176 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12177 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12178 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12179 (ppc_linux_nat_target::low_forget_process)
12180 (ppc_linux_nat_target::low_new_fork)
12181 (ppc_linux_nat_target::low_new_clone)
12182 (ppc_linux_nat_target::low_delete_thread)
12183 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12184 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12185 only call mark_thread_stale.
12186 (ppc_linux_thread_exit): Remove.
12187 (ppc_linux_nat_target::stopped_data_address): Change to...
12188 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12189 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12190 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12191 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12192 comment. Call low_stopped_data_address.
12193 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12194 m_dreg_interface.
12195 (ppc_linux_nat_target::masked_watch_num_registers): Use
12196 m_dreg_interface.
12197 (ppc_linux_nat_target::copy_thread_dreg_state)
12198 (ppc_linux_nat_target::mark_thread_stale)
12199 (ppc_linux_nat_target::mark_debug_registers_changed)
12200 (ppc_linux_nat_target::register_hw_breakpoint)
12201 (ppc_linux_nat_target::clear_hw_breakpoint)
12202 (ppc_linux_nat_target::register_wp)
12203 (ppc_linux_nat_target::clear_wp)
12204 (ppc_linux_nat_target::init_arch_lwp_info)
12205 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12206 (_initialize_ppc_linux_nat): Remove observer callback.
12207
12208 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12209
12210 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12211 (ppc_linux_nat_target::auxv_parse)
12212 (ppc_linux_nat_target::read_description)
12213 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12214 Move up.
12215
12216 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12217
12218 * linux-nat.h (low_new_clone): New method.
12219 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12220
12221 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12222
12223 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12224 (dbx_expand_psymtab): ... this.
12225 (start_psymtab): Update.
12226 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12227 (mdebug_expand_psymtab): ... this.
12228 (parse_partial_symbols): Update.
12229 (new_psymtab): Update.
12230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12231 (xcoff_expand_psymtab): ... this.
12232 (xcoff_start_psymtab): Update.
12233
12234 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12235
12236 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12237 <expand_dependencies>: ... this.
12238 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12239 (partial_symtab::expand_dependencies): ... this.
12240 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12241 Update.
12242 (dwarf2_psymtab::expand_psymtab): Update.
12243 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12244 * mdebugread.c (psymtab_to_symtab_1): Update.
12245 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12246
12247 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12248
12249 * psympriv.h (discard_psymtab): Remove.
12250 * dbxread.c (dbx_end_psymtab): Update.
12251 * xcoffread.c (xcoff_end_psymtab): Update.
12252
12253 2020-03-28 Tom Tromey <tom@tromey.com>
12254
12255 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12256 comment.
12257
12258 2020-03-28 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12261
12262 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12263
12264 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12265
12266 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12267
12268 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12269
12270 2020-03-26 Tom Tromey <tom@tromey.com>
12271
12272 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12273 (mark_common_block_symbol_computed, read_tag_string_type)
12274 (attr_to_dynamic_prop, read_subrange_type): Update.
12275 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12276 to be methods on struct attribute.
12277 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12278 (read_call_site_scope, partial_die_info::read)
12279 (partial_die_info::read, lookup_die_type, follow_die_ref):
12280 Update.
12281 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12282 from dwarf2_get_ref_die_offset.
12283 (attribute::constant_value): New method, from
12284 dwarf2_get_attr_constant_value.
12285 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12286 Declare method.
12287 <constant_value>: New method.
12288
12289 2020-03-26 Tom Tromey <tom@tromey.com>
12290
12291 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12292 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12293 (dwarf_type_encoding_name): Move to stringify.c.
12294 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12295 * dwarf2/stringify.c: New file.
12296 * dwarf2/stringify.h: New file.
12297
12298 2020-03-26 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12301 Rewrite.
12302
12303 2020-03-26 Tom Tromey <tom@tromey.com>
12304
12305 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12306 methods.
12307 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12308 (lookup_ranges_base): Likewise.
12309 (read_cutu_die_from_dwo, read_full_die_1): Update.
12310
12311 2020-03-26 Tom Tromey <tom@tromey.com>
12312
12313 * dwarf2/read.c (read_import_statement, read_file_scope)
12314 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12315 (read_lexical_block_scope, read_call_site_scope)
12316 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12317 (handle_struct_member_die, process_structure_scope)
12318 (update_enumeration_type_from_children)
12319 (process_enumeration_scope, read_array_type, read_common_block)
12320 (read_namespace, read_module, read_subroutine_type): Update.
12321 (sibling_die): Remove.
12322
12323 2020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12326 (build_type_psymtabs_reader, read_structure_type)
12327 (read_enumeration_type, read_full_die_1): Update.
12328 (dwarf2_attr_no_follow): Move to die.h.
12329 * dwarf2/die.h (struct die_info) <attr>: New method.
12330
12331 2020-03-26 Tom Tromey <tom@tromey.com>
12332
12333 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12334 <base_address>: Now an optional.
12335 (dwarf2_find_base_address, dwarf2_rnglists_process)
12336 (dwarf2_ranges_process, fill_in_loclist_baton)
12337 (dwarf2_symbol_mark_computed): Update.
12338
12339 2020-03-26 Tom Tromey <tom@tromey.com>
12340
12341 * dwarf2/read.c (struct die_info): Move to die.h.
12342 * dwarf2/die.h: New file.
12343
12344 2020-03-26 Tom Tromey <tom@tromey.com>
12345
12346 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12347 * dwarf2/read.c
12348 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12349 Move to line-header.c.
12350 (read_checked_initial_length_and_offset, read_formatted_entries):
12351 Likewise.
12352 (dwarf_decode_line_header): Split into two.
12353 * dwarf2/line-header.c
12354 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12355 Move from read.c.
12356 (read_checked_initial_length_and_offset, read_formatted_entries):
12357 Likewise.
12358 (dwarf_decode_line_header): New function, split from read.c.
12359
12360 2020-03-26 Tom Tromey <tom@tromey.com>
12361
12362 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12363 Declare method.
12364 * dwarf2/read.c (read_attribute_value): Update.
12365 (dwarf2_per_objfile::read_line_string): Rename from
12366 read_indirect_line_string.
12367 (read_formatted_entries): Update.
12368
12369 2020-03-26 Tom Tromey <tom@tromey.com>
12370
12371 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12372 variable.
12373
12374 2020-03-26 Tom Tromey <tom@tromey.com>
12375
12376 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12377 const.
12378 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12379 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12380 parameter const.
12381
12382 2020-03-26 Tom Tromey <tom@tromey.com>
12383
12384 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12385 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12386 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12387 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12388
12389 2020-03-26 Tom Tromey <tom@tromey.com>
12390
12391 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12392 file_names_size, file_full_name, file_file_name>: Use const.
12393 <file_name_at, file_names>: Add const overload.
12394 * dwarf2/line-header.c (line_header::file_file_name)
12395 (line_header::file_full_name): Update.
12396
12397 2020-03-26 Tom Tromey <tom@tromey.com>
12398
12399 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12400 (macro_start_file, consume_improper_spaces)
12401 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12402 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12403 (dwarf_decode_macros): Move to macro.c.
12404 * dwarf2/macro.c: New file.
12405 * dwarf2/macro.h: New file.
12406 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12407
12408 2020-03-26 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12411 method.
12412 * dwarf2/section.c: New method. From
12413 read_indirect_string_at_offset_from.
12414 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12415 (read_indirect_string_at_offset_from): Move to section.c.
12416 (read_indirect_string_at_offset): Rewrite.
12417 (read_indirect_line_string_at_offset): Remove.
12418 (read_indirect_string, read_indirect_line_string)
12419 (dwarf_decode_macro_bytes): Update.
12420
12421 2020-03-26 Tom Tromey <tom@tromey.com>
12422
12423 * dwarf2/section.h (struct dwarf2_section_info)
12424 <overload_complaint>: Declare.
12425 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12426 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12427 Rename from dwarf2_section_buffer_overflow_complaint.
12428 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12429 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12430
12431 2020-03-26 Tom Tromey <tom@tromey.com>
12432
12433 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12434 Declare.
12435 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12436 Move from read.c.
12437 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12438 to section.c.
12439
12440 2020-03-26 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12443
12444 2020-03-26 Tom Tromey <tom@tromey.com>
12445
12446 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12447 "builder".
12448 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12449 parameter.
12450 (dwarf_decode_macros): Update.
12451
12452 2020-03-26 Tom Tromey <tom@tromey.com>
12453
12454 * dwarf2/read.c (read_attribute_value): Update.
12455 (read_indirect_string_from_dwz): Move to dwz.c; change into
12456 method.
12457 (dwarf_decode_macro_bytes): Update.
12458 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12459 * dwarf2/dwz.c: New file.
12460 * Makefile.in (COMMON_SFILES): Add dwz.c.
12461
12462 2020-03-26 Tom Tromey <tom@tromey.com>
12463
12464 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12465 * dwarf2/read.c: Add include.
12466 * dwarf2/index-write.c: Add include.
12467 * dwarf2/index-cache.c: Add include.
12468 * dwarf2/dwz.h: New file.
12469
12470 2020-03-25 Tom Tromey <tom@tromey.com>
12471
12472 * compile/compile-object-load.c (get_out_value_type): Mention
12473 correct symbol name in error message.
12474
12475 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12476
12477 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12478
12479 2020-03-25 Tom de Vries <tdevries@suse.de>
12480
12481 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12482 * symmisc.c (dump_symtab_1): Print user and includes fields.
12483 (maintenance_info_symtabs): Same.
12484
12485 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12486
12487 PR gdb/25534
12488 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12489 (riscv_regcache_cooked_write): New function.
12490 (riscv_push_dummy_call): Use new function.
12491 (riscv_return_value): Likewise.
12492
12493 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12494
12495 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12496 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12497 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12498 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12499 * infrun.c (follow_fork): Likewise.
12500 (follow_fork_inferior): Likewise.
12501 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12502 * linux-nat.h (class linux_nat_target): Likewise.
12503 * remote.c (class remote_target) <follow_fork>: Likewise.
12504 (remote_target::follow_fork): Likewise.
12505 * target-delegates.c: Re-generate.
12506 * target.c (default_follow_fork): Likewise.
12507 (target_follow_fork): Likewise.
12508 * target.h (struct target_ops) <follow_fork>: Likewise.
12509 (target_follow_fork): Likewise.
12510
12511 2020-03-24 Tom de Vries <tdevries@suse.de>
12512
12513 * psymtab.c (maintenance_info_psymtabs): Print user field.
12514
12515 2020-03-20 Tom Tromey <tromey@adacore.com>
12516
12517 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12518 const.
12519 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12520 const.
12521
12522 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12523
12524 * ptrace.m4: Don't check for ptrace declaration.
12525 * config.in: Re-generate.
12526 * configure: Re-generate.
12527 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12528 not defined.
12529
12530 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12531
12532 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12533 `PTRACE_TYPE_RET'.
12534 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12535 * sparc-nat.c (gdb_ptrace): Likewise.
12536 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12537
12538 2020-03-20 Tom Tromey <tromey@adacore.com>
12539
12540 * c-exp.y (lex_one_token): Fix assert.
12541
12542 2020-03-20 Tom Tromey <tromey@adacore.com>
12543
12544 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12545 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12546 strncpy call.
12547
12548 2020-03-20 Tom Tromey <tromey@adacore.com>
12549
12550 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12551
12552 2020-03-20 Tom Tromey <tromey@adacore.com>
12553
12554 * ada-valprint.c (print_variant_part): Remove parameters; switch
12555 to value-based API.
12556 (print_field_values): Likewise.
12557 (ada_val_print_struct_union): Likewise.
12558 (ada_value_print_1): Update.
12559
12560 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12561
12562 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12563 nbsd_nat_target instead of inf_ptrace_target.
12564 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12565 nbsd_nat_target.
12566
12567 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12568
12569 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12570 it to the ptrace call.
12571 * (store_registers): Likewise.
12572
12573 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12574
12575 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12576 it to the ptrace call.
12577 * (store_registers): Likewise.
12578
12579 2020-03-19 Luis Machado <luis.machado@linaro.org>
12580
12581 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12582 valid, fetch vg value from ptrace.
12583
12584 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12585 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12586 * inf-ptrace.c: Likewise.
12587 * (gdb_ptrace): Add.
12588 * (inf_ptrace_target::resume): Update.
12589 * (inf_ptrace_target::xfer_partial): Likewise.
12590 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12591 * (inf_ptrace_peek_poke): Update.
12592
12593 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12594
12595 * x86-bsd-nat.c (gdb_ptrace): New.
12596 * (x86bsd_dr_set): Add new argument `ptid'.
12597 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12598 x86bsd_dr_set_addr): Update.
12599
12600 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12601
12602 * remote.c (remote_target::process_stop_reply): Handle events for
12603 all threads differently.
12604
12605 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12606
12607 * completer.c (completion_tracker::remove_completion): Define new
12608 function.
12609 * completer.h (completion_tracker::remove_completion): Declare new
12610 function.
12611 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12612 when adding a C++ function symbol.
12613
12614 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12615
12616 * completer.c (completion_tracker::completion_hash_entry): Define
12617 new class.
12618 (advance_to_filename_complete_word_point): Call
12619 recompute_lowest_common_denominator.
12620 (completion_tracker::completion_tracker): Call discard_completions
12621 to setup the hash table.
12622 (completion_tracker::discard_completions): Allow for being called
12623 from the constructor, pass new equal function, and element deleter
12624 when constructing the hash table. Initialise new class member
12625 variables.
12626 (completion_tracker::maybe_add_completion): Remove use of
12627 m_entries_vec, and store more information into m_entries_hash.
12628 (completion_tracker::recompute_lcd_visitor): New function, most
12629 content taken from...
12630 (completion_tracker::recompute_lowest_common_denominator):
12631 ...here, this now just visits each item in the hash calling the
12632 above visitor.
12633 (completion_tracker::build_completion_result): Remove use of
12634 m_entries_vec, call recompute_lowest_common_denominator.
12635 * completer.h (completion_tracker::have_completions): Remove use
12636 of m_entries_vec.
12637 (completion_tracker::completion_hash_entry): Declare new class.
12638 (completion_tracker::recompute_lowest_common_denominator): Change
12639 function signature.
12640 (completion_tracker::recompute_lcd_visitor): Declare new function.
12641 (completion_tracker::m_entries_vec): Delete.
12642 (completion_tracker::m_entries_hash): Initialize to NULL.
12643 (completion_tracker::m_lowest_common_denominator_valid): New
12644 member variable.
12645 (completion_tracker::m_lowest_common_denominator_max_length): New
12646 member variable.
12647
12648 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12649
12650 * regformats/regdef.h: Put reg in gdb namespace.
12651
12652 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12653
12654 * i386-bsd-nat.c (gdb_ptrace): New.
12655 * (i386bsd_fetch_inferior_registers,
12656 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12657 * (i386bsd_fetch_inferior_registers,
12658 i386bsd_store_inferior_registers) Use gdb_ptrace.
12659
12660 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12661
12662 * amd64-bsd-nat.c (gdb_ptrace): New.
12663 * (amd64bsd_fetch_inferior_registers,
12664 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12665 * (amd64bsd_fetch_inferior_registers,
12666 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12667
12668 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12669
12670 * user-regs.c (user_reg::read): Rename to...
12671 (user_reg::xread): ...this.
12672 * (append_user_reg): Rename argument `read' to `xread'.
12673 * (user_reg_add_builtin): Likewise.
12674 * (user_reg_add): Likewise.
12675 * (value_of_user_reg): Likewise.
12676
12677 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12678
12679 * sparc-nat.c (gdb_ptrace): New.
12680 * sparc-nat.c (sparc_fetch_inferior_registers)
12681 (sparc_store_inferior_registers) Remove obsolete comment.
12682 * sparc-nat.c (sparc_fetch_inferior_registers)
12683 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12684 * sparc-nat.c (sparc_fetch_inferior_registers)
12685 (sparc_store_inferior_registers) Use gdb_ptrace.
12686
12687 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12688
12689 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12690 it to the ptrace call.
12691 * sh-nbsd-nat.c (store_registers): Likewise.
12692
12693 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12694
12695 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12696 nbsd_nat_target instead of inf_ptrace_target.
12697 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12698 nbsd_nat_target.
12699
12700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12701
12702 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12703
12704 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12705
12706 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12707 <sys/sysctl.h>.
12708 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12709
12710 2020-03-17 Tom de Vries <tdevries@suse.de>
12711
12712 PR gdb/23710
12713 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12714 fields.
12715 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12716 fields.
12717 (process_imported_unit_die): Skip import of c++ CUs.
12718
12719 2020-03-16 Tom Tromey <tom@tromey.com>
12720
12721 * p-valprint.c (pascal_object_print_value): Initialize
12722 base_value.
12723
12724 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12725 Shahab Vahedi <shahab@synopsys.com>
12726
12727 * Makefile.in: Add arch/arc.o
12728 * configure.tgt: Likewise.
12729 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12730 (_initialize_arc_tdep): Don't initialize old target descriptions.
12731 (arc_read_description): New function to cache target descriptions.
12732 * arc-tdep.h (arc_read_description): Add proto type.
12733 * arch/arc.c: New file.
12734 * arch/arc.h: Likewise.
12735 * features/Makefile: Replace old target descriptions with new.
12736 * features/arc-arcompact.c: Remove.
12737 * features/arc-arcompact.xml: Likewise.
12738 * features/arc-v2.c: Likewise
12739 * features/arc-v2.xml: Likewise
12740 * features/arc/aux-arcompact.xml: New file.
12741 * features/arc/aux-v2.xml: Likewise.
12742 * features/arc/core-arcompact.xml: Likewise.
12743 * features/arc/core-v2.xml: Likewise.
12744 * features/arc/aux-arcompact.c: Generate.
12745 * features/arc/aux-v2.c: Likewise.
12746 * features/arc/core-arcompact.c: Likewise.
12747 * features/arc/core-v2.c: Likewise.
12748 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12749
12750 2020-03-16 Tom Tromey <tromey@adacore.com>
12751
12752 PR gdb/25663:
12753 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12754 putting value into bcache.
12755
12756 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12757
12758 PR gdb/21500
12759 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12760 to...
12761 (amd64_windows_init_abi_common): ... this. Don't set size of
12762 long type.
12763 (amd64_windows_init_abi): New function.
12764 (amd64_cygwin_init_abi): New function.
12765 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12766 the Cygwin OS ABI.
12767 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12768 comment.
12769
12770 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12771
12772 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12773 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12774 (pe_import_directory_entry): New struct type.
12775 (is_linked_with_cygwin_dll): New function.
12776 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12777 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12778 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12779
12780 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12783 i386_cygwin_core_osabi_sniffer.
12784
12785 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * i386-cygwin-tdep.c: Rename to...
12788 * i386-windows-tdep.c: ... this.
12789 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12790 i386-windows-tdep.c.
12791 * configure.tgt: Likewise.
12792
12793 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12794
12795 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12796 * osabi.c (gdb_osabi_names): Add "Windows".
12797 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12798 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12799 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12800 i386_cygwin_osabi_sniffer.
12801 (_initialize_i386_cygwin_tdep): Register OS ABI
12802 GDB_OSABI_WINDOWS for i386.
12803 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12804 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12805 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12806 for x86-64.
12807 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12808 when the target matches '*-*-mingw*'.
12809
12810 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12811
12812 * defs.h (enum gdb_osabi): Move to...
12813 * osabi.h (enum gdb_osabi): ... here.
12814 * gdbarch.sh: Include osabi.h in gdbarch.h.
12815 * gdbarch.h: Re-generate.
12816
12817 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12818
12819 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12820 function.
12821 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12822
12823 2020-03-14 Tom Tromey <tom@tromey.com>
12824
12825 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12826 for C++.
12827 (c_type_print_modifier): Likewise. Add "language" parameter.
12828 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12829 (c_type_print_base_1): Update.
12830 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12831 constants.
12832 * type-stack.c (type_stack::insert): Handle tp_atomic and
12833 tp_restrict.
12834 (type_stack::follow_type_instance_flags): Likewise.
12835 (type_stack::follow_types): Likewise. Merge type-following code.
12836 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12837 (space_identifier, cv_with_space_id)
12838 (const_or_volatile_or_space_identifier_noopt)
12839 (const_or_volatile_or_space_identifier): Remove.
12840 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12841 rules.
12842 (ptr_operator, typebase): Update.
12843 (enum token_flag) <FLAG_C>: New constant.
12844 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12845 "_Atomic".
12846 (lex_one_token): Handle FLAG_C.
12847
12848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12849
12850 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12851 it to the ptrace call.
12852 * m68k-bsd-nat.c (store_registers): Likewise.
12853
12854 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12855
12856 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12857 gdb_byte *.
12858 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12859 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12860 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12861
12862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12863
12864 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12865 nbsd_nat_target instead of inf_ptrace_target.
12866 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12867 nbsd_nat_target.
12868
12869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12870
12871 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12872 register_t.
12873
12874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12875
12876 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12877 it to the ptrace call.
12878 * alpha-bsd-nat.c (store_registers): Likewise.
12879
12880 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12881
12882 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12883 includes.
12884 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12885 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12886 fill_fpregset): Likewise.
12887
12888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12889
12890 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12891 nbsd_nat_target instead of inf_ptrace_target.
12892 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12893 nbsd_nat_target.
12894
12895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12898 register_t.
12899
12900 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12901
12902 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12903 it to the ptrace call.
12904 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12905 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12906 * arm-nbsd-nat.c (store_register): Likewise.
12907 * arm-nbsd-nat.c (store_regs): Likewise.
12908 * arm-nbsd-nat.c (store_fp_register): Likewise.
12909 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12910
12911 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12912
12913 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12914 nbsd_nat_target instead of inf_ptrace_target.
12915 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12916 nbsd_nat_target.
12917
12918 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12919
12920 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12921 it to the ptrace call.
12922 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12923
12924 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12925
12926 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12927 it to the ptrace call.
12928 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12929
12930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12931
12932 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12933 gdb_byte *.
12934 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12935
12936 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12937
12938 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12939 instead of inf_ptrace_target.
12940 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12941 nbsd_nat_target.
12942
12943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12944
12945 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12946 register_t.
12947
12948 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12949
12950 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12951 register_t.
12952
12953 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12954
12955 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12956 register_t.
12957
12958 2020-03-13 Tom Tromey <tom@tromey.com>
12959
12960 * value.h (val_print): Don't declare.
12961 * valprint.h (val_print_array_elements)
12962 (val_print_scalar_formatted, generic_val_print): Don't declare.
12963 * valprint.c (generic_val_print_array): Take a struct value.
12964 (generic_val_print_ptr, generic_val_print_memberptr)
12965 (generic_val_print_bool, generic_val_print_int)
12966 (generic_val_print_char, generic_val_print_complex)
12967 (generic_val_print): Remove.
12968 (generic_value_print): Update.
12969 (do_val_print): Remove unused parameters. Don't call
12970 la_val_print.
12971 (val_print): Remove.
12972 (common_val_print): Update. Don't call value_check_printable.
12973 (val_print_scalar_formatted, val_print_array_elements): Remove.
12974 * rust-lang.c (rust_val_print): Remove.
12975 (rust_language_defn): Update.
12976 * p-valprint.c (pascal_val_print): Remove.
12977 (pascal_value_print_inner): Update.
12978 (pascal_object_print_val_fields, pascal_object_print_val):
12979 Remove.
12980 (pascal_object_print_static_field): Update.
12981 * p-lang.h (pascal_val_print): Don't declare.
12982 * p-lang.c (pascal_language_defn): Update.
12983 * opencl-lang.c (opencl_language_defn): Update.
12984 * objc-lang.c (objc_language_defn): Update.
12985 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12986 * m2-lang.h (m2_val_print): Don't declare.
12987 * m2-lang.c (m2_language_defn): Update.
12988 * language.h (struct language_defn) <la_val_print>: Remove.
12989 * language.c (unk_lang_value_print_inner): Rename. Change
12990 argument types.
12991 (unknown_language_defn, auto_language_defn): Update.
12992 * go-valprint.c (go_val_print): Remove.
12993 * go-lang.h (go_val_print): Don't declare.
12994 * go-lang.c (go_language_defn): Update.
12995 * f-valprint.c (f_val_print): Remove.
12996 * f-lang.h (f_value_print): Don't declare.
12997 * f-lang.c (f_language_defn): Update.
12998 * d-valprint.c (d_val_print): Remove.
12999 * d-lang.h (d_value_print): Don't declare.
13000 * d-lang.c (d_language_defn): Update.
13001 * cp-valprint.c (cp_print_value_fields)
13002 (cp_print_value_fields_rtti, cp_print_value): Remove.
13003 (cp_print_static_field): Update.
13004 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13005 (c_val_print_struct, c_val_print_union, c_val_print_int)
13006 (c_val_print_memberptr, c_val_print): Remove.
13007 * c-lang.h (c_val_print_array, cp_print_value_fields)
13008 (cp_print_value_fields_rtti): Don't declare.
13009 * c-lang.c (c_language_defn, cplus_language_defn)
13010 (asm_language_defn, minimal_language_defn): Update.
13011 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13012 (ada_val_print_enum): Take a struct value.
13013 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13014 (ada_val_print): Remove.
13015 (ada_value_print_1): Update.
13016 (printable_val_type): Remove.
13017 * ada-lang.h (ada_val_print): Don't declare.
13018 * ada-lang.c (ada_language_defn): Update.
13019
13020 2020-03-13 Tom Tromey <tom@tromey.com>
13021
13022 * valprint.c (do_val_print): Update.
13023 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13024 a struct value.
13025 (value_to_value_object_no_release): Declare.
13026 * python/py-value.c (value_to_value_object_no_release): New
13027 function.
13028 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13029 struct value.
13030 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13031 function.
13032 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13033 a struct value.
13034 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13035 Declare.
13036 (gdbscm_apply_val_pretty_printer): Take a struct value.
13037 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13038 value.
13039 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13040 value.
13041 * extension-priv.h (struct extension_language_ops)
13042 <apply_val_pretty_printer>: Take a struct value.
13043 * cp-valprint.c (cp_print_value): Create a struct value.
13044 (cp_print_value): Update.
13045
13046 2020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * ada-valprint.c (print_field_values): Call common_val_print.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * ada-valprint.c (val_print_packed_array_elements): Remove
13053 bitoffset and val parameters. Call common_val_print.
13054 (ada_val_print_string): Remove offset, address, and original_value
13055 parameters.
13056 (ada_val_print_array): Update.
13057 (ada_value_print_array): New function.
13058 (ada_value_print_1): Call it.
13059
13060 2020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * ada-valprint.c (ada_value_print): Use common_val_print.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13067
13068 2020-03-13 Tom Tromey <tom@tromey.com>
13069
13070 * ada-valprint.c (ada_value_print_num): New function.
13071 (ada_value_print_1): Use it.
13072
13073 2020-03-13 Tom Tromey <tom@tromey.com>
13074
13075 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13076
13077 2020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * ada-valprint.c (ada_value_print_ptr): New function.
13080 (ada_value_print_1): Use it.
13081
13082 2020-03-13 Tom Tromey <tom@tromey.com>
13083
13084 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13085 call common_val_print.
13086 (ada_val_print_1): Update.
13087 (ada_value_print_1): New function.
13088 (ada_value_print_inner): Rewrite.
13089
13090 2020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * cp-valprint.c (cp_print_value_fields): Update.
13093 (cp_print_value): New function.
13094
13095 2020-03-13 Tom Tromey <tom@tromey.com>
13096
13097 * m2-valprint.c (m2_value_print_inner): Use
13098 cp_print_value_fields.
13099 * cp-valprint.c (cp_print_value_fields): New function.
13100 * c-valprint.c (c_value_print_struct): New function.
13101 (c_value_print_inner): Use c_value_print_struct.
13102 * c-lang.h (cp_print_value_fields): Declare.
13103
13104 2020-03-13 Tom Tromey <tom@tromey.com>
13105
13106 * c-valprint.c (c_value_print_array): New function.
13107 (c_value_print_inner): Use it.
13108
13109 2020-03-13 Tom Tromey <tom@tromey.com>
13110
13111 * c-valprint.c (c_value_print_memberptr): New function.
13112 (c_value_print_inner): Use it.
13113
13114 2020-03-13 Tom Tromey <tom@tromey.com>
13115
13116 * c-valprint.c (c_value_print_int): New function.
13117 (c_value_print_inner): Use it.
13118
13119 2020-03-13 Tom Tromey <tom@tromey.com>
13120
13121 * c-valprint.c (c_value_print_ptr): New function.
13122 (c_value_print_inner): Use it.
13123
13124 2020-03-13 Tom Tromey <tom@tromey.com>
13125
13126 * c-valprint.c (c_value_print_inner): Rewrite.
13127
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * valprint.c (generic_value_print_complex): 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_float): Don't call
13136 val_print_scalar_formatted.
13137 (generic_val_print, generic_value_print): Update.
13138
13139 2020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * valprint.c (generic_value_print_char): New function
13142 (generic_value_print): Use it.
13143
13144 2020-03-13 Tom Tromey <tom@tromey.com>
13145
13146 * valprint.c (generic_value_print_int): New function.
13147 (generic_value_print): Use it.
13148
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * valprint.c (generic_value_print_bool): New function.
13152 (generic_value_print): Use it.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * valprint.c (generic_val_print_func): Simplify.
13157 (generic_val_print, generic_value_print): Update.
13158
13159 2020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * valprint.c (generic_val_print_flags): Remove.
13162 (generic_val_print, generic_value_print): Update.
13163 (val_print_type_code_flags): Add original_value parameter.
13164
13165 2020-03-13 Tom Tromey <tom@tromey.com>
13166
13167 * valprint.c (generic_val_print): Update.
13168 (generic_value_print): Update.
13169 * valprint.c (generic_val_print_enum): Don't call
13170 val_print_scalar_formatted.
13171
13172 2020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13175 * valprint.c (generic_value_print_ptr): New function.
13176
13177 2020-03-13 Tom Tromey <tom@tromey.com>
13178
13179 * valprint.c (generic_value_print): Rewrite.
13180
13181 2020-03-13 Tom Tromey <tom@tromey.com>
13182
13183 * p-valprint.c (pascal_object_print_value_fields)
13184 (pascal_object_print_value): New functions.
13185
13186 2020-03-13 Tom Tromey <tom@tromey.com>
13187
13188 * p-valprint.c (pascal_value_print_inner): Rewrite.
13189
13190 2020-03-13 Tom Tromey <tom@tromey.com>
13191
13192 * f-valprint.c (f_value_print_innner): Rewrite.
13193
13194 2020-03-13 Tom Tromey <tom@tromey.com>
13195
13196 * m2-valprint.c (m2_print_unbounded_array): New overload.
13197 (m2_print_unbounded_array): Update.
13198 (m2_print_array_contents): Take a struct value.
13199 (m2_value_print_inner): Rewrite.
13200
13201 2020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13204 (d_value_print_inner): New function.
13205 * d-lang.h (d_value_print_inner): Declare.
13206 * d-lang.c (d_language_defn): Use d_value_print_inner.
13207
13208 2020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * go-valprint.c (go_value_print_inner): New function.
13211 * go-lang.h (go_value_print_inner): Declare.
13212 * go-lang.c (go_language_defn): Use go_value_print_inner.
13213
13214 2020-03-13 Tom Tromey <tom@tromey.com>
13215
13216 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13217 API.
13218 (rust_val_print): Rewrite.
13219 (rust_value_print_inner): New function, from rust_val_print.
13220 (rust_language_defn): Use rust_value_print_inner.
13221
13222 2020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * ada-valprint.c (ada_value_print_inner): New function.
13225 * ada-lang.h (ada_value_print_inner): Declare.
13226 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13227
13228 2020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * f-valprint.c (f_value_print_innner): New function.
13231 * f-lang.h (f_value_print_innner): Declare.
13232 * f-lang.c (f_language_defn): Use f_value_print_innner.
13233
13234 2020-03-13 Tom Tromey <tom@tromey.com>
13235
13236 * p-valprint.c (pascal_value_print_inner): New function.
13237 * p-lang.h (pascal_value_print_inner): Declare.
13238 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13239
13240 2020-03-13 Tom Tromey <tom@tromey.com>
13241
13242 * m2-valprint.c (m2_value_print_inner): New function.
13243 * m2-lang.h (m2_value_print_inner): Declare.
13244 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13245
13246 2020-03-13 Tom Tromey <tom@tromey.com>
13247
13248 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13249 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13250 * c-valprint.c (c_value_print_inner): New function.
13251 * c-lang.h (c_value_print_inner): Declare.
13252 * c-lang.c (c_language_defn, cplus_language_defn)
13253 (asm_language_defn, minimal_language_defn): Use
13254 c_value_print_inner.
13255
13256 2020-03-13 Tom Tromey <tom@tromey.com>
13257
13258 * p-valprint.c (pascal_object_print_value_fields): Now static.
13259 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13260
13261 2020-03-13 Tom Tromey <tom@tromey.com>
13262
13263 * c-valprint.c (c_val_print_array): Simplify.
13264
13265 2020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * valprint.c (value_print_array_elements): New function.
13268 * valprint.h (value_print_array_elements): Declare.
13269
13270 2020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13273 * mips-tdep.c (mips_print_register): Use
13274 value_print_scalar_formatted.
13275
13276 2020-03-13 Tom Tromey <tom@tromey.com>
13277
13278 * valprint.h (value_print_scalar_formatted): Declare.
13279 * valprint.c (value_print_scalar_formatted): New function.
13280
13281 2020-03-13 Tom Tromey <tom@tromey.com>
13282
13283 * valprint.h (generic_value_print): Declare.
13284 * valprint.c (generic_value_print): New function.
13285
13286 2020-03-13 Tom Tromey <tom@tromey.com>
13287
13288 * valprint.c (do_val_print): Call la_value_print_inner, if
13289 available.
13290 * rust-lang.c (rust_language_defn): Update.
13291 * p-lang.c (pascal_language_defn): Update.
13292 * opencl-lang.c (opencl_language_defn): Update.
13293 * objc-lang.c (objc_language_defn): Update.
13294 * m2-lang.c (m2_language_defn): Update.
13295 * language.h (struct language_defn) <la_value_print_inner>: New
13296 member.
13297 * language.c (unknown_language_defn, auto_language_defn): Update.
13298 * go-lang.c (go_language_defn): Update.
13299 * f-lang.c (f_language_defn): Update.
13300 * d-lang.c (d_language_defn): Update.
13301 * c-lang.c (c_language_defn, cplus_language_defn)
13302 (asm_language_defn, minimal_language_defn): Update.
13303 * ada-lang.c (ada_language_defn): Update.
13304
13305 2020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * c-valprint.c (c_value_print): Use common_val_print.
13308
13309 2020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13312
13313 2020-03-13 Tom Tromey <tom@tromey.com>
13314
13315 * f-valprint.c (f77_print_array_1, f_val_print): Use
13316 common_val_print.
13317
13318 2020-03-13 Tom Tromey <tom@tromey.com>
13319
13320 * riscv-tdep.c (riscv_print_one_register_info): Use
13321 common_val_print.
13322
13323 2020-03-13 Tom Tromey <tom@tromey.com>
13324
13325 * mi/mi-main.c (output_register): Use common_val_print.
13326
13327 2020-03-13 Tom Tromey <tom@tromey.com>
13328
13329 * infcmd.c (default_print_one_register_info): Use
13330 common_val_print.
13331
13332 2020-03-13 Tom Tromey <tom@tromey.com>
13333
13334 * valprint.h (common_val_print_checked): Declare.
13335 * valprint.c (common_val_print_checked): New function.
13336 * stack.c (print_frame_arg): Use common_val_print_checked.
13337
13338 2020-03-13 Tom Tromey <tom@tromey.com>
13339
13340 * valprint.c (do_val_print): New function, from val_print.
13341 (val_print): Use do_val_print.
13342 (common_val_print): Use do_val_print.
13343
13344 2020-03-13 Tom Tromey <tom@tromey.com>
13345
13346 * valprint.c (value_print): Use scoped_value_mark.
13347
13348 2020-03-13 Tom de Vries <tdevries@suse.de>
13349
13350 PR symtab/25646
13351 * psymtab.c (partial_symtab::partial_symtab): Don't set
13352 globals_offset and statics_offset. Push element onto
13353 current_global_psymbols and current_static_psymbols stacks.
13354 (concat): New function.
13355 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13356 element from current_global_psymbols and current_static_psymbols
13357 stacks. Concat popped elements to global_psymbols and
13358 static_symbols.
13359 (add_psymbol_to_list): Use current_global_psymbols and
13360 current_static_psymbols stacks.
13361 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13362 current_static_psymbols fields.
13363
13364 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13365
13366 * corelow.c (sniff_core_bfd): Remove.
13367 (class core_target) <m_core_vec>: Remove.
13368 (core_target::core_target): Update.
13369 (core_file_fns): Remove.
13370 (deprecated_add_core_fns): Remove.
13371 (default_core_sniffer): Remove.
13372 (sniff_core_bfd): Remove.
13373 (default_check_format): Remove.
13374 (gdb_check_format): Remove.
13375 (core_target_open): Update.
13376 (core_target::get_core_register_section): Update.
13377 (get_core_registers_cb): Update.
13378 (core_target::fetch_registers): Update.
13379 * gdbcore.h (struct core_fns): Remove.
13380 (deprecated_add_core_fns): Remove.
13381 (default_core_sniffer): Remove.
13382 (default_check_format): Remove.
13383
13384 2020-03-12 Tom Tromey <tom@tromey.com>
13385
13386 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13387 CORE_ADDR.
13388 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13389
13390 2020-03-12 Tom Tromey <tom@tromey.com>
13391
13392 * remote.c (remote_target::download_tracepoint)
13393 (remote_target::enable_tracepoint)
13394 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13395 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13396 sprintf_vma.
13397
13398 2020-03-12 Tom Tromey <tom@tromey.com>
13399
13400 * symfile-mem.c: Update CORE_ADDR size assert.
13401
13402 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13403
13404 * selftest.m4: Move to gdbsupport/.
13405 * acinclude.m4: Update path to selftest.m4.
13406
13407 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13408
13409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13410 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13411 gdbarch-selfselftests.c and selftest-arch.c.
13412 (SUBDIR_UNITTESTS_OBS): Rename to...
13413 (SELFTESTS_OBS): ... this.
13414 (COMMON_SFILES): Remove disasm-selftests.c and
13415 gdbarch-selftests.c.
13416 * configure.ac: Don't add selftest-arch.{c,o} to
13417 CONFIG_{SRCS,OBS}.
13418 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13419 preprocessor conditions.
13420
13421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * configure.ac: Don't source bfd/development.sh.
13424 * selftest.m4: Modify comment.
13425 * configure: Re-generate.
13426
13427 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13430 not "true" or "false".
13431 * configure: Re-generate.
13432
13433 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13434
13435 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13436 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13437 renamed to arm_nbsd_supply_gregset.
13438 (fetch_register): Update to call arm_nbsd_supply_gregset.
13439 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13440 (arm_netbsd_nat_target::fetch_registers): Update.
13441 (fetch_elfcore_registers): Removed.
13442 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13443 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13444 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13445 not require NetBSD system headers.
13446 (arm_nbsd_regset): New struct.
13447 (arm_nbsd_iterate_over_regset_sections): New function.
13448 (arm_netbsd_init_abi_common): Updated to call
13449 set_gdbarch_iterate_over_regset_sections.
13450 * arm-nbsd-tdep.h: New file.
13451
13452 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13453
13454 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13455 recursion.
13456
13457 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13458
13459 * configure: Re-generate.
13460
13461 2020-03-11 Tom Tromey <tromey@adacore.com>
13462
13463 * ada-typeprint.c (print_choices): Fix comment.
13464
13465 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13466
13467 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13468 previous item in the list, when the list has no items.
13469
13470 2020-03-11 Tom de Vries <tdevries@suse.de>
13471
13472 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13473 PROP_LOCLIST handling code.
13474
13475 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * buildsym-legacy.c (record_line): Pass extra parameter to
13478 record_line.
13479 * buildsym.c (buildsym_compunit::record_line): Take an extra
13480 parameter, reduce duplication in the line table, and record the
13481 is_stmt flag in the line table.
13482 * buildsym.h (buildsym_compunit::record_line): Add extra
13483 parameter.
13484 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13485 non-statement lines.
13486 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13487 this to the symtab builder.
13488 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13489 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13490 through to dwarf_record_line_1.
13491 * infrun.c (process_event_stop_test): When stepping, don't stop at
13492 a non-statement instruction, and only refresh the step info when
13493 we land in the middle of a line's range. Also add an extra
13494 comment.
13495 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13496 field.
13497 * record-btrace.c (btrace_find_line_range): Only record lines
13498 marked as is-statement.
13499 * stack.c (frame_show_address): Show the frame address if we are
13500 in a non-statement sal.
13501 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13502 (maintenance_print_one_line_table): Print a header for the is_stmt
13503 column, and include is_stmt information in the output.
13504 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13505 preference to non-statements.
13506 (find_pcs_for_symtab_line): Prefer is-statement entries.
13507 (find_line_common): Likewise.
13508 * symtab.h (struct linetable_entry): Add is_stmt field.
13509 (struct symtab_and_line): Likewise.
13510 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13511 arranging the line table.
13512
13513 2020-03-07 Tom de Vries <tdevries@suse.de>
13514
13515 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13516 DIE.
13517
13518 2020-03-07 Tom Tromey <tom@tromey.com>
13519
13520 * valops.c (value_literal_complex): Remove obsolete comment.
13521 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13522 comment.
13523
13524 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13525
13526 * infrun.h: Forward-declare thread_info.
13527 (set_step_info): Add thread_info parameter, add doc.
13528 * infrun.c (set_step_info): Add thread_info parameter, move doc
13529 to header.
13530 * infrun.c (process_event_stop_test): Pass thread to
13531 set_step_info call.
13532 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13533 set_step_info.
13534 (prepare_one_step): Add thread_info parameter, pass it to
13535 set_step_frame and prepare_one_step (recursive) call.
13536 (step_1): Pass thread to prepare_one_step call.
13537 (step_command_fsm::should_stop): Pass thread to
13538 prepare_one_step.
13539 (until_next_fsm): Pass thread to set_step_frame call.
13540 (finish_command): Pass thread to set_step_info call.
13541
13542 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13543
13544 * windows-tdep.c (windows_solib_create_inferior_hook):
13545 Check if inferior is running.
13546
13547 2020-03-06 Tom de Vries <tdevries@suse.de>
13548
13549 * NEWS: Fix "the the".
13550 * ctfread.c: Same.
13551
13552 2020-03-06 Tom de Vries <tdevries@suse.de>
13553
13554 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13555
13556 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13557
13558 * .dir-locals.el: Add a comment referencing the other copies of
13559 this file.
13560
13561 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13562
13563 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13564 psargs.
13565
13566 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13567
13568 * .gitattributes: New file.
13569
13570 2020-03-04 Tom Tromey <tom@tromey.com>
13571
13572 * symmisc.c (print_symbol_bcache_statistics)
13573 (print_objfile_statistics): Update.
13574 * symfile.c (allocate_symtab): Use intern.
13575 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13576 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13577 macro_cache>: Remove.
13578 <string_cache>: New member.
13579 (struct objfile) <intern>: New methods.
13580 * elfread.c (elf_symtab_read): Use intern.
13581 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13582 (dwarf2_compute_name, dwarf2_physname)
13583 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13584 names.
13585 (guess_partial_die_structure_name): Update.
13586 (partial_die_info::fixup): Intern name.
13587 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13588 name.
13589 (dwarf2_name): Intern name. Update.
13590 * buildsym.c (buildsym_compunit::get_macro_table): Use
13591 string_cache.
13592
13593 2020-03-04 Tom Tromey <tom@tromey.com>
13594
13595 * jit.c (bfd_open_from_target_memory): Make "target" const.
13596 * corefile.c (gnutarget): Now const.
13597 * gdbcore.h (gnutarget): Now const.
13598
13599 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13600
13601 * NEWS: Mention support for WOW64 processes.
13602 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13603 (amd64_windows_segment_register_p): Remove static.
13604 (_initialize_amd64_windows_nat): Update.
13605 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13606 * i386-windows-nat.c (context_offset): Update.
13607 (i386_mappings): Rename and remove static.
13608 (i386_windows_segment_register_p): Remove static.
13609 (_initialize_i386_windows_nat): Update.
13610 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13611 (STATUS_WX86_SINGLE_STEP): New macro.
13612 (EnumProcessModulesEx): New macro.
13613 (Wow64SuspendThread): New macro.
13614 (Wow64GetThreadContext): New macro.
13615 (Wow64SetThreadContext): New macro.
13616 (Wow64GetThreadSelectorEntry): New macro.
13617 (windows_set_context_register_offsets): Add static.
13618 (windows_set_segment_register_p): Likewise.
13619 (windows_add_thread): Adapt for WOW64 processes.
13620 (windows_fetch_one_register): Likewise.
13621 (windows_nat_target::fetch_registers): Likewise.
13622 (windows_store_one_register): Likewise.
13623 (display_selector): Likewise.
13624 (display_selectors): Likewise.
13625 (handle_exception): Likewise.
13626 (windows_continue): Likewise.
13627 (windows_nat_target::resume): Likewise.
13628 (windows_add_all_dlls): Likewise.
13629 (do_initial_windows_stuff): Likewise.
13630 (windows_nat_target::attach): Likewise.
13631 (windows_get_exec_module_filename): Likewise.
13632 (windows_nat_target::create_inferior): Likewise.
13633 (windows_xfer_siginfo): Likewise.
13634 (_initialize_loadable): Initialize Wow64SuspendThread,
13635 Wow64GetThreadContext, Wow64SetThreadContext,
13636 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13637 * windows-nat.h (windows_set_context_register_offsets):
13638 Remove declaration.
13639 (windows_set_segment_register_p): Likewise.
13640 (i386_windows_segment_register_p): Add declaration.
13641 (amd64_windows_segment_register_p): Likewise.
13642
13643 2020-03-04 Luis Machado <luis.machado@linaro.org>
13644
13645 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13646 in "info registers" for AArch64/ARM.
13647
13648 The change caused "info registers" to not print GPR's.
13649
13650 gdb/ChangeLog:
13651
13652 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13653
13654 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13655 when reg->group is empty and reggroup is not.
13656
13657 2020-03-03 Tom Tromey <tromey@adacore.com>
13658
13659 * dwarf2/frame.c (struct dwarf2_frame_cache)
13660 <checked_tailcall_bottom, entry_cfa_sp_offset,
13661 entry_cfa_sp_offset_p>: Remove members.
13662 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13663 (dwarf2_frame_prev_register): Don't call
13664 dwarf2_tailcall_sniffer_first.
13665 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13666 * frame-unwind.c (add_unwinder): New fuction.
13667 (frame_unwind_init): Use it. Add tailcall unwinder.
13668
13669 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13670 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13671
13672 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13673 value should be printed as true.
13674
13675 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13676
13677 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13678 (windows_init_abi): Set and use windows_so_ops.
13679
13680 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13681
13682 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13683 when verifying if dealing with a convenience variable.
13684
13685 2020-03-03 Luis Machado <luis.machado@linaro.org>
13686
13687 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13688
13689 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13690
13691 * infrun.c (gdbarch_supports_displaced_stepping): New.
13692 (use_displaced_stepping): Break up conditions in smaller pieces.
13693 Use gdbarch_supports_displaced_stepping.
13694 (displaced_step_prepare_throw): Use
13695 gdbarch_supports_displaced_stepping.
13696
13697 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13698
13699 * NEWS: Mention new behaviour of the history filename.
13700 * top.c (write_history_p): Add comment.
13701 (show_write_history_p): Add header comment, give a different
13702 message when history writing is on, but the history filename is
13703 empty.
13704 (history_filename): Add comment.
13705 (history_filename_empty): New function.
13706 (show_history_filename): Add header comment, give a different
13707 message when the filename is empty.
13708 (init_history): Compare history_filename against nullptr, and only
13709 read history if the filename is not empty.
13710 (set_history_filename): Add header comment, and only make
13711 non-empty filenames absolute.
13712 (init_main): Make the filename argument to 'set history filename'
13713 optional.
13714
13715 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13716
13717 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13718 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13719 (fetch_fp_register): Update.
13720 (fetch_fp_regs): Update.
13721 (store_fp_register): Update.
13722 (store_fp_regs): Update.
13723 (arm_netbsd_nat_target::read_description): New function.
13724 (fetch_elfcore_registers): Update.
13725
13726 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13727
13728 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13729 general_thread if the stop reply is missing a thread-id.
13730 (remote_target::process_stop_reply): Use the first non-exited
13731 thread if the target didn't pass a thread-id.
13732 * infrun.c (do_target_wait): Move call to
13733 switch_to_inferior_no_thread to ....
13734 (do_target_wait_1): ... here.
13735
13736 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13737
13738 * debuginfod-support.c: Include defs.h first.
13739
13740 2020-02-28 Tom de Vries <tdevries@suse.de>
13741
13742 * symfile.c (set_initial_language): Use default language for lookup.
13743
13744 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13745
13746 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13747 reader variable, pass `this` to read_cutu_die_from_dwo.
13748
13749 2020-02-27 Aaron Merey <amerey@redhat.com>
13750
13751 * source.c (open_source_file): Check for nullptr when computing
13752 srcpath.
13753
13754 2020-02-27 Tom Tromey <tromey@adacore.com>
13755
13756 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13757 member.
13758 (dwarf2_add_field): Don't update nfields.
13759 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13760
13761 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13762
13763 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13764 abs.
13765
13766 2020-02-26 Tom Tromey <tom@tromey.com>
13767
13768 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13769 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13770 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13771 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13772 per_cu_data.
13773
13774 2020-02-26 Tom Tromey <tom@tromey.com>
13775
13776 * dwarf2/index-write.c (psym_index_map): Change type.
13777 (add_address_entry_worker, write_one_signatured_type)
13778 (recursively_count_psymbols, recursively_write_psymbols)
13779 (class debug_names, psyms_seen_size, write_gdbindex)
13780 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13781
13782 2020-02-26 Aaron Merey <amerey@redhat.com>
13783
13784 * Makefile.in: Handle optional debuginfod support.
13785 * NEWS: Update.
13786 * README: Add --with-debuginfod summary.
13787 * config.in: Regenerate.
13788 * configure: Regenerate.
13789 * configure.ac: Handle optional debuginfod support.
13790 * debuginfod-support.c: debuginfod helper functions.
13791 * debuginfod-support.h: Ditto.
13792 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13793 summary.
13794 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13795 when a dwz file cannot be found.
13796 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13797 debuginfo file cannot be found.
13798 * source.c (open_source_file): Query debuginfod servers when a
13799 source file cannot be found.
13800 * top.c (print_gdb_configuration): Include
13801 --{with,without}-debuginfod in the output.
13802
13803 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13804
13805 * thread.c (thr_try_catch_cmd): Print thread name.
13806
13807 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13808
13809 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13810 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13811 dwarf2_fetch_die_type_sect_off): Move to...
13812 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13813 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13814 dwarf2_fetch_die_type_sect_off): ... here.
13815 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13816 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13817 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13818
13819 2020-02-26 Tom de Vries <tdevries@suse.de>
13820
13821 PR gdb/25603
13822 * symfile.c (set_initial_language): Exit-early if
13823 language_mode == language_mode_manual.
13824
13825 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13826
13827 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13828 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13829 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13830
13831 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13832
13833 * gdbtypes.c (create_array_type_with_stride): Handle negative
13834 array strides.
13835 * valarith.c (value_subscripted_rvalue): Likewise.
13836
13837 2020-02-25 Luis Machado <luis.machado@linaro.org>
13838
13839 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13840
13841 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13842
13843 * loc.h (dwarf2_get_die_type): Move to...
13844 * read.h (dwarf2_get_die_type): ... here.
13845 * read.c (dwarf2_get_die_type): Move doc to header.
13846
13847 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13848
13849 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13850 'gnulib/Makefile.in' to the list.
13851
13852 2020-02-24 Tom Tromey <tom@tromey.com>
13853
13854 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13855 Remove.
13856 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13857 XOBNEWVEC.
13858
13859 2020-02-24 Tom Tromey <tom@tromey.com>
13860
13861 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13862 New method.
13863 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13864 (dw2_do_instantiate_symtab, dw2_get_file_names)
13865 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13866
13867 2020-02-24 Tom Tromey <tom@tromey.com>
13868
13869 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13870 make_scoped_restore.
13871 (dwarf2_psymtab::read_symtab): Don't clear
13872 reading_partial_symbols.
13873
13874 2020-02-24 Tom de Vries <tdevries@suse.de>
13875
13876 PR gdb/25592
13877 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13878
13879 2020-02-24 Tom de Vries <tdevries@suse.de>
13880
13881 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13882 commands layout next/prev/regs.
13883
13884 2020-02-22 Tom Tromey <tom@tromey.com>
13885
13886 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13887 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13888
13889 2020-02-22 Tom Tromey <tom@tromey.com>
13890
13891 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13892
13893 2020-02-22 Tom Tromey <tom@tromey.com>
13894
13895 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13896 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13897 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13898 * tui/tui.c (_initialize_tui): Add usage text.
13899
13900 2020-02-22 Tom Tromey <tom@tromey.com>
13901
13902 * tui/tui-win.c (tui_set_focus_command)
13903 (tui_set_win_height_command): Use error_no_arg.
13904 (_initialize_tui_win): Update help text.
13905 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13906
13907 2020-02-22 Tom Tromey <tom@tromey.com>
13908
13909 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13910 * tui/tui-disasm.h (struct tui_disasm_window)
13911 <display_start_addr>: Declare.
13912 * tui/tui-source.h (struct tui_source_window)
13913 <display_start_addr>: Declare.
13914 * tui/tui-winsource.h (struct tui_source_window_base)
13915 <show_source_line, display_start_addr>: New methods.
13916 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13917 Rename and move to protected section.
13918 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13919 (tui_source_window_base::do_erase_source_content): Update.
13920 (tui_source_window_base::show_source_line): Now a method.
13921 (tui_source_window_base::show_source_content)
13922 (tui_source_window_base::tui_source_window_base)
13923 (tui_source_window_base::rerender)
13924 (tui_source_window_base::refill)
13925 (tui_source_window_base::do_scroll_horizontal)
13926 (tui_source_window_base::set_is_exec_point_at)
13927 (tui_source_window_base::update_breakpoint_info)
13928 (tui_source_window_base::update_exec_info): Update.
13929 * tui/tui-source.c (tui_source_window::set_contents)
13930 (tui_source_window::showing_source_p)
13931 (tui_source_window::do_scroll_vertical)
13932 (tui_source_window::location_matches_p)
13933 (tui_source_window::line_is_displayed): Update.
13934 (tui_source_window::display_start_addr): New method.
13935 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13936 (tui_disasm_window::do_scroll_vertical)
13937 (tui_disasm_window::location_matches_p): Update.
13938 (tui_disasm_window::display_start_addr): New method.
13939
13940 2020-02-22 Tom Tromey <tom@tromey.com>
13941
13942 * NEWS: Add entry for gdb.register_window_type.
13943 * tui/tui-layout.h (window_factory): New typedef.
13944 (tui_register_window): Declare.
13945 * tui/tui-layout.c (saved_tui_windows): New global.
13946 (tui_apply_current_layout): Use it.
13947 (tui_register_window): New function.
13948 * python/python.c (do_start_initialization): Call
13949 gdbpy_initialize_tui.
13950 (python_GdbMethods): Add "register_window_type" function.
13951 * python/python-internal.h (gdbpy_register_tui_window)
13952 (gdbpy_initialize_tui): Declare.
13953 * python/py-tui.c: New file.
13954 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13955
13956 2020-02-22 Tom Tromey <tom@tromey.com>
13957
13958 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13959
13960 2020-02-22 Tom Tromey <tom@tromey.com>
13961
13962 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13963 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13964 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13965 (tui_set_win_focus_to): Move from tui-win.c.
13966
13967 2020-02-22 Tom Tromey <tom@tromey.com>
13968
13969 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13970 functions.
13971 (known_window_types): New global.
13972 (tui_get_window_by_name): Reimplement.
13973 (initialize_known_windows): New function.
13974 (validate_window_name): Rewrite.
13975 (_initialize_tui_layout): Call initialize_known_windows.
13976
13977 2020-02-22 Tom Tromey <tom@tromey.com>
13978
13979 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13980 Remove constants.
13981 * tui/tui-winsource.h (struct tui_source_window_base)
13982 <tui_source_window_base>: Remove parameter.
13983 * tui/tui-winsource.c
13984 (tui_source_window_base::tui_source_window_base): Remove
13985 parameter.
13986 (tui_source_window_base::refill): Update.
13987 * tui/tui-stack.h (struct tui_locator_window)
13988 <tui_locator_window>: Update.
13989 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13990 Default the constructor.
13991 * tui/tui-regs.h (struct tui_data_item_window)
13992 <tui_data_item_window>: Default the constructor.
13993 (struct tui_data_window) <tui_data_window>: Likewise.
13994 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13995 Default the constructor.
13996 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13997 Default the constructor.
13998 <type>: Remove.
13999 (struct tui_win_info) <tui_win_info>: Default the constructor.
14000 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14001 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14002 Default the constructor.
14003
14004 2020-02-22 Tom Tromey <tom@tromey.com>
14005
14006 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14007 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14008 * tui/tui-win.c (tui_resize_all): Don't call
14009 tui_delete_invisible_windows.
14010 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14011 done.
14012 (tui_set_layout): Update.
14013 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14014 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14015 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14016
14017 2020-02-22 Tom Tromey <tom@tromey.com>
14018
14019 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14020 correctly.
14021
14022 2020-02-22 Tom Tromey <tom@tromey.com>
14023
14024 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14025
14026 2020-02-22 Tom Tromey <tom@tromey.com>
14027
14028 * tui/tui-winsource.h (struct tui_source_window_iterator)
14029 <inner_iterator>: New etytypedef.
14030 <tui_source_window_iterator>: Take "end" parameter.
14031 <tui_source_window_iterator>: Take iterator.
14032 <operator*, advance>: Update.
14033 <m_iter>: Change type.
14034 <m_end>: New field.
14035 (struct tui_source_windows) <begin, end>: Update.
14036 * tui/tui-layout.c (tui_windows): New global.
14037 (tui_apply_current_layout): Clear tui_windows.
14038 (tui_layout_window::apply): Update tui_windows.
14039 * tui/tui-data.h (tui_windows): Declare.
14040 (all_tui_windows): Now inline function.
14041 (class tui_window_iterator, struct all_tui_windows): Remove.
14042
14043 2020-02-22 Tom Tromey <tom@tromey.com>
14044
14045 PR tui/17850:
14046 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14047 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14048 "height" argument.
14049 (class tui_layout_window) <get_sizes>: Likewise.
14050 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14051 argument.
14052 <get_sizes>: Add "height" argument.
14053 <m_vertical>: New field.
14054 * tui/tui-layout.c (tui_layout_split::clone): Update.
14055 (tui_layout_split::get_sizes): Add "height" argument.
14056 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14057 (tui_new_layout_command): Parse "-horizontal".
14058 (_initialize_tui_layout): Update help string.
14059 (tui_layout_split::specification): Add "-horizontal" when needed.
14060 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14061 argument.
14062 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14063 New methods.
14064
14065 2020-02-22 Tom Tromey <tom@tromey.com>
14066
14067 * tui/tui-layout.h (enum tui_adjust_result): New.
14068 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14069 (class tui_layout_window) <adjust_size>: Return
14070 tui_adjust_result. Rewrite.
14071 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14072 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14073
14074 2020-02-22 Tom Tromey <tom@tromey.com>
14075
14076 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14077 parameter and return types.
14078 (class tui_layout_base) <specification>: Add "depth".
14079 (class tui_layout_window) <specification>: Add "depth".
14080 (class tui_layout_split) <specification>: Add "depth".
14081 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14082 and return types.
14083 (tui_new_layout_command): Parse sub-layouts.
14084 (_initialize_tui_layout): Update help string.
14085 (tui_layout_window::specification): Add "depth".
14086 (add_layout_command): Update.
14087
14088 2020-02-22 Tom Tromey <tom@tromey.com>
14089
14090 * NEWS: Add "tui new-layout" item.
14091 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14092 Add new-layout command to help text.
14093 (validate_window_name): New function.
14094 (tui_new_layout_command): New function.
14095 (_initialize_tui_layout): Register "new-layout".
14096 (tui_layout_window::specification): New method.
14097 (tui_layout_window::specification): New method.
14098 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14099 method.
14100 (class tui_layout_window) <specification>: New method.
14101 (class tui_layout_split) <specification>: New method.
14102
14103 2020-02-22 Tom Tromey <tom@tromey.com>
14104
14105 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14106 * tui/tui-win.c (window_name_completer): Update comment.
14107 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14108 Declare method.
14109 (class tui_layout_window) <replace_window>: Likewise.
14110 (class tui_layout_split) <replace_window>: Likewise.
14111 (tui_set_layout): Don't declare.
14112 (tui_set_initial_layout): Declare function.
14113 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14114 (asm_regs_layout): New globals.
14115 (tui_current_layout, show_layout): Remove.
14116 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14117 (find_layout, tui_apply_layout): New function.
14118 (layout_completer): Remove.
14119 (tui_next_layout): Reimplement.
14120 (tui_next_layout_command): New function.
14121 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14122 (tui_regs_layout): Reimplement.
14123 (tui_regs_layout_command): New function.
14124 (extract_display_start_addr): Rewrite.
14125 (next_layout, prev_layout): Remove.
14126 (tui_layout_window::replace_window): New method.
14127 (tui_layout_split::replace_window): New method.
14128 (destroy_layout): New function.
14129 (layout_list): New global.
14130 (add_layout_command): New function.
14131 (initialize_layouts): Update.
14132 (tui_layout_command): New function.
14133 (_initialize_tui_layout): Install "layout" commands.
14134 * tui/tui-data.h (enum tui_layout_type): Remove.
14135 (tui_current_layout): Don't declare.
14136
14137 2020-02-22 Tom Tromey <tom@tromey.com>
14138
14139 * tui/tui-regs.c (tui_reg_layout): Remove.
14140 (tui_reg_command): Use tui_regs_layout.
14141 * tui/tui-layout.h (tui_reg_command): Declare.
14142 * tui/tui-layout.c (tui_reg_command): New function.
14143
14144 2020-02-22 Tom Tromey <tom@tromey.com>
14145
14146 * tui/tui.c (tui_rl_delete_other_windows): Call
14147 tui_remove_some_windows.
14148 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14149 Declare method.
14150 (class tui_layout_window) <remove_windows>: New method.
14151 (class tui_layout_split) <remove_windows>: Declare.
14152 (tui_remove_some_windows): Declare.
14153 * tui/tui-layout.c (tui_remove_some_windows): New function.
14154 (tui_layout_split::remove_windows): New method.
14155
14156 2020-02-22 Tom Tromey <tom@tromey.com>
14157
14158 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14159 * tui/tui-layout.h (tui_next_layout): Declare.
14160 * tui/tui-layout.c (tui_next_layout): New function.
14161
14162 2020-02-22 Tom Tromey <tom@tromey.com>
14163
14164 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14165 correct coordinates.
14166
14167 2020-02-22 Tom Tromey <tom@tromey.com>
14168
14169 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14170 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14171 DATA_WIN case.
14172
14173 2020-02-22 Tom Tromey <tom@tromey.com>
14174
14175 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14176 TUI_DISASM_WIN, not tui_win_list.
14177
14178 2020-02-22 Tom Tromey <tom@tromey.com>
14179
14180 * valprint.c (generic_val_print_enum_1)
14181 (val_print_type_code_flags): Style member names.
14182 * rust-lang.c (val_print_struct, rust_print_enum)
14183 (rust_print_struct_def, rust_internal_print_type): Style member
14184 names.
14185 * p-valprint.c (pascal_object_print_value_fields): Style member
14186 names. Only call fprintf_symbol_filtered for static members.
14187 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14188 * f-valprint.c (f_val_print): Style member names.
14189 * f-typeprint.c (f_type_print_base): Style member names.
14190 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14191 call fprintf_symbol_filtered for static members.
14192 (cp_print_class_member): Style member names.
14193 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14194 member names.
14195 * ada-valprint.c (ada_print_scalar): Style enum names.
14196 (ada_val_print_enum): Likewise.
14197 * ada-typeprint.c (print_enum_type): Style enum names.
14198
14199 2020-02-21 Tom Tromey <tom@tromey.com>
14200
14201 * psympriv.h (struct partial_symtab): Update comment.
14202
14203 2020-02-21 Tom Tromey <tromey@adacore.com>
14204
14205 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14206 type is CORE_ADDR.
14207
14208 2020-02-21 Tom de Vries <tdevries@suse.de>
14209
14210 PR gdb/25534
14211 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14212 if dependencies[i]->user != NULL.
14213
14214 2020-02-21 Ali Tamur <tamur@google.com>
14215
14216 * dwarf2/read.c (dwarf2_name): Add null check.
14217
14218 2020-02-20 Tom Tromey <tom@tromey.com>
14219
14220 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14221 ">=", in binary search.
14222 (dwarf2_find_containing_comp_unit): New overload.
14223 (run_test): New self-test.
14224 (_initialize_dwarf2_read): Register new test.
14225
14226 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14227
14228 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14229 * riscv-tdep.h: Likewise.
14230 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14231 rv32-only CSR.
14232 * features/riscv/64bit-csr.xml: Regenerated.
14233
14234 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14235 Tom Tromey <tom@tromey.com>
14236
14237 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14238 of 'fputc_unfiltered'.
14239 (putchar_unfiltered): Call 'fputc_unfiltered'.
14240 (fputc_unfiltered): Call 'fputs_unfiltered'.
14241
14242 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14243
14244 * config.in: Regenerate.
14245 * configure: Regenerate.
14246 * configure.ac: Add --with-python-libdir option.
14247 * main.c: Use WITH_PYTHON_LIBDIR.
14248
14249 2020-02-19 Tom Tromey <tom@tromey.com>
14250
14251 * symtab.c (general_symbol_info::compute_and_set_names): Use
14252 obstack_strndup. Simplify call to symbol_set_demangled_name.
14253
14254 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14255
14256 * dwarf2/read.c (allocate_signatured_type_table,
14257 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14258 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14259 Remove objfile parameter, update all callers.
14260
14261 2020-02-19 Doug Evans <dje@google.com>
14262
14263 PR rust/25535
14264 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14265 rust_enum_variant calculation.
14266
14267 2020-02-19 Tom Tromey <tromey@adacore.com>
14268
14269 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14270
14271 2020-02-19 Tom Tromey <tromey@adacore.com>
14272
14273 * ada-lang.c (cache_symbol): Use obstack_strdup.
14274
14275 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14276
14277 * configure: Regenerate.
14278
14279 2020-02-19 Tom Tromey <tromey@adacore.com>
14280
14281 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14282 NULL check.
14283
14284 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14285
14286 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14287
14288 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14289
14290 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14291 if GDBSERVER is not defined.
14292 (riscv_tdesc_cache): Likewise, also store const target_desc.
14293 (STATIC_IN_GDB): Define.
14294 (riscv_create_target_description): Update declaration with
14295 STATIC_IN_GDB.
14296 (riscv_lookup_target_description): New function, only define if
14297 GDBSERVER is not defined.
14298 * arch/riscv.h (riscv_create_target_description): Declare only
14299 when GDBSERVER is defined.
14300 (riscv_lookup_target_description): New declaration when GDBSERVER
14301 is not defined.
14302 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14303 (riscv_linux_read_features): ...this, and return
14304 riscv_gdbarch_features instead of target_desc.
14305 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14306 (riscv_linux_read_description): Rename to...
14307 (riscv_linux_read_features): ...this.
14308 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14309 Update to use riscv_gdbarch_features and
14310 riscv_lookup_target_description.
14311 * riscv-tdep.c (riscv_find_default_target_description): Use
14312 riscv_lookup_target_description instead of
14313 riscv_create_target_description.
14314
14315 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14316
14317 * valprint.c (generic_val_print_enum_1): When printing a flag
14318 enum with value 0 and there is no enumerator with value 0, print
14319 just "0" instead of "(unknown: 0x0)".
14320
14321 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14322
14323 * valprint.c (generic_val_print_enum_1): Print unknown part of
14324 flag enum in hex.
14325
14326 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14329 flag enums to contain duplicate enumerators.
14330 * valprint.c (generic_val_print_enum_1): Update comment.
14331
14332 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14333
14334 * dwarf2/read.c: Include "count-one-bits.h".
14335 (update_enumeration_type_from_children): If an enumerator has
14336 multiple bits set, don't treat the enumeration as a "flag enum".
14337 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14338 of flag enums have 0 or 1 bit set.
14339
14340 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14341
14342 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14343 conversion.
14344 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14345 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14346 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14347 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14348 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14349
14350 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14353
14354 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14355
14356 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14357 displaced_step_closure_up.
14358 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14359 (struct displaced_step_closure_up):
14360 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14361 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14362 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14363 Likewise.
14364 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14365 * gdbarch.c, gdbarch.h: Re-generate.
14366 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14367 displaced_step_closure_up.
14368 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14369 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14370 * infrun.h (displaced_step_closure_up): New type alias.
14371 (struct displaced_step_inferior_state) <step_closure>: Change
14372 type to displaced_step_closure_up.
14373 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14374 displaced_step_closure_up.
14375 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14376
14377 2020-02-14 Tom Tromey <tom@tromey.com>
14378
14379 * minidebug.c (gnu_debug_key): New global.
14380 (find_separate_debug_file_in_section): Use it.
14381
14382 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14383
14384 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14385 std::unique_ptr.
14386 * gdbarch.c: Re-generate.
14387 * gdbarch.h: Re-generate.
14388 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14389 change.
14390 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14391 type to std::unique_ptr.
14392 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14393 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14394 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14395 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14396 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14397 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14398 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14399 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14400 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14401
14402 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14403
14404 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14405 std::unique_ptr.
14406 (displaced_step_clear): Rename to...
14407 (displaced_step_reset): ... this. Just call displaced->reset ().
14408 (displaced_step_clear_cleanup): Rename to...
14409 (displaced_step_reset_cleanup): ... this.
14410 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14411 (displaced_step_fixup): Likewise.
14412 (resume_1): Likewise.
14413 (handle_inferior_event): Restore child's memory before calling
14414 displaced_step_fixup on the parent.
14415 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14416 to std::unique_ptr.
14417 <step_closure>: Change type to std::unique_ptr.
14418
14419 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14420
14421 * arm-tdep.c: Include count-one-bits.h.
14422 (cleanup_block_store_pc): Use count_one_bits.
14423 (cleanup_block_load_pc): Use count_one_bits.
14424 (arm_copy_block_xfer): Use count_one_bits.
14425 (thumb2_copy_block_xfer): Use count_one_bits.
14426 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14427 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14428 (thumb_get_next_pcs_raw): Use count_one_bits.
14429 (arm_get_next_pcs_raw): Use count_one_bits_l.
14430 * arch/arm.c (bitcount): Remove.
14431 * arch/arm.h (bitcount): Remove.
14432
14433 2020-02-14 Tom Tromey <tromey@adacore.com>
14434
14435 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14436 Update.
14437 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14438 * dwarf2/loc.c (call_site_find_chain_1): Return
14439 unique_xmalloc_ptr.
14440 (call_site_find_chain): Likewise.
14441
14442 2020-02-14 Richard Biener <rguenther@suse.de>
14443
14444 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14445 on expression with division operators.
14446
14447 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14448
14449 * MAINTAINERS (Write After Approval): Adding myself.
14450
14451 2020-02-12 Tom Tromey <tom@tromey.com>
14452
14453 * event-loop.c (event_data, gdb_event, event_handler_func):
14454 Remove.
14455
14456 2020-02-12 Tom Tromey <tom@tromey.com>
14457
14458 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14459 (dwarf2_frame_objfile_data): Add comment.
14460 (find_comp_unit, set_comp_unit): New functions.
14461 (dwarf2_frame_find_fde): Use find_comp_unit.
14462 (dwarf2_build_frame_info): Use set_comp_unit.
14463
14464 2020-02-12 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14467 (comp_unit): Don't initialize objfile.
14468 (execute_cfa_program): Add text_offset parameter.
14469 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14470 (dwarf2_frame_cache): Update.
14471 (dwarf2_build_frame_info): Don't set "objfile" member.
14472
14473 2020-02-12 Tom Tromey <tom@tromey.com>
14474
14475 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14476 (decode_frame_entry): Likewise.
14477 (dwarf2_build_frame_info): Update.
14478
14479 2020-02-12 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14482 (decode_frame_entry_1): Use the comp_unit obstack.
14483
14484 2020-02-12 Tom Tromey <tom@tromey.com>
14485
14486 * dwarf2/frame.c (struct comp_unit): Add initializers and
14487 constructor.
14488 (dwarf2_frame_objfile_data): Store a comp_unit.
14489 (dwarf2_frame_find_fde): Update.
14490 (dwarf2_build_frame_info): Use "new".
14491
14492 2020-02-12 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14495 (dwarf2_fde_table): Typedef for std::vector.
14496 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14497 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14498 (decode_frame_entry): Update.
14499 (dwarf2_build_frame_info): Use "new".
14500
14501 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14502
14503 * arm-tdep.c (arm_gdbarch_init): Update.
14504 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14505 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14506 have_neon, is_m>: Change to bool.
14507
14508 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14509
14510 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14511
14512 2020-02-12 Tom Tromey <tom@tromey.com>
14513
14514 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14515
14516 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14517
14518 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14519 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14520
14521 2020-02-11 Tom Tromey <tom@tromey.com>
14522
14523 * psymtab.h: Update comment.
14524
14525 2020-02-11 Tom Tromey <tom@tromey.com>
14526
14527 * gdb_obstack.h (struct auto_obstack): Use
14528 DISABLE_COPY_AND_ASSIGN.
14529
14530 2020-02-11 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/frame.h (struct objfile): Don't forward declare.
14533
14534 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14535
14536 * cris-tdep.c (cris_supply_gregset): Change signature to match
14537 what struct regset expects.
14538 (cris_regset): New struct.
14539 (fetch_core_registers): Remove.
14540 (cris_iterate_over_regset_sections): New function.
14541 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14542 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14543
14544 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14545
14546 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14547 registers.
14548
14549 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14550
14551 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14552
14553 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14554
14555 * configure: Re-generate.
14556
14557 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14558
14559 * configure: Re-generate.
14560
14561 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14562
14563 * acinclude: Update warning.m4 path.
14564 * warning.m4: Move to gdbsupport.
14565
14566 2020-02-11 Tom Tromey <tromey@adacore.com>
14567
14568 * remote.c (remote_console_output): Update.
14569 * printcmd.c (printf_command): Update.
14570 * event-loop.c (gdb_wait_for_event): Update.
14571 * linux-nat.c (sigchld_handler): Update.
14572 * remote-sim.c (gdb_os_write_stdout): Update.
14573 (gdb_os_flush_stdout): Update.
14574 (gdb_os_flush_stderr): Update.
14575 (gdb_os_write_stderr): Update.
14576 * exceptions.c (print_exception): Update.
14577 * remote-fileio.c (remote_fileio_func_read): Update.
14578 (remote_fileio_func_write): Update.
14579 * tui/tui.c (tui_enable): Update.
14580 * tui/tui-interp.c (tui_interp::init): Update.
14581 * utils.c (init_page_info): Update.
14582 (putchar_unfiltered, fputc_unfiltered): Update.
14583 (gdb_flush): Update.
14584 (emit_style_escape): Update.
14585 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14586 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14587 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14588 (stderr_file::write): Update.
14589 (stderr_file::puts): Update.
14590 * ui-file.h (ui_file_isatty, ui_file_write)
14591 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14592 (ui_file_puts): Don't declare.
14593
14594 2020-02-10 Tom de Vries <tdevries@suse.de>
14595
14596 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14597 sentinel to char *.
14598
14599 2020-02-09 Tom de Vries <tdevries@suse.de>
14600
14601 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14602 filename if it matches "<artificial>".
14603
14604 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14605
14606 * windows-tdep.c (struct enum_value_name): New struct.
14607 (create_enum): New function.
14608 (windows_get_siginfo_type): Create and use enum types.
14609
14610 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14611
14612 * NEWS: Mention $_siginfo support for Windows.
14613 * windows-nat.c (handle_exception): Set siginfo_er.
14614 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14615 (windows_xfer_siginfo): New function.
14616 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14617 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14618 (init_windows_gdbarch_data): New function.
14619 (get_windows_gdbarch_data): New function.
14620 (windows_get_siginfo_type): New function.
14621 (windows_init_abi): Register windows_get_siginfo_type.
14622 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14623
14624 2020-02-08 Tom Tromey <tom@tromey.com>
14625
14626 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14627 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14628 <keep>: Declare method.
14629 <m_keep>: Remove member.
14630 <~cutu_reader>: Remove.
14631 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14632 (cutu_reader::cutu_reader): Update.
14633 (cutu_reader::keep): Rename from ~cutu_reader.
14634 (process_psymtab_comp_unit, build_type_psymtabs_1)
14635 (process_skeletonless_type_unit, load_partial_comp_unit)
14636 (load_full_comp_unit, dwarf2_read_addr_index)
14637 (read_signatured_type): Update.
14638
14639 2020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14642 "want_partial_unit" parameter.
14643 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14644 Inline check for DW_TAG_partial_unit.
14645 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14646
14647 2020-02-08 Tom Tromey <tom@tromey.com>
14648
14649 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14650 read.c.
14651 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14652 read.c.
14653
14654 2020-02-08 Tom Tromey <tom@tromey.com>
14655
14656 * dwarf2/read.c (read_address): Move to comp-unit.c.
14657 (dwarf2_rnglists_process, dwarf2_ranges_process)
14658 (read_attribute_value, dwarf_decode_lines_1)
14659 (var_decode_location, decode_locdesc): Update.
14660 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14661 read.c. Remove "cu" parameter.
14662 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14663 method.
14664
14665 2020-02-08 Tom Tromey <tom@tromey.com>
14666
14667 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14668 (read_indirect_line_string): Update.
14669 * dwarf2/comp-unit.c (read_offset): Remove.
14670 (read_comp_unit_head): Update.
14671 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14672 method.
14673 (read_offset): Don't declare.
14674
14675 2020-02-08 Tom Tromey <tom@tromey.com>
14676
14677 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14678 * dwarf2/read.c (struct comp_unit_head): Move to
14679 dwarf2/comp-unit.h.
14680 (enum class rcuh_kind): Move to comp-unit.h.
14681 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14682 (read_comp_unit_head, error_check_comp_unit_head)
14683 (read_and_check_comp_unit_head): Move to comp-unit.c.
14684 (read_offset, dwarf_unit_type_name): Likewise.
14685 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14686 (cutu_reader::cutu_reader, read_call_site_scope)
14687 (find_partial_die, follow_die_offset): Update.
14688 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14689
14690 2020-02-08 Tom Tromey <tom@tromey.com>
14691
14692 * dwarf2/read.c (read_offset_1): Move to leb.c.
14693 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14694 (dwarf_decode_macro_bytes): Update.
14695 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14696 * dwarf2/leb.h (read_offset): Declare.
14697
14698 2020-02-08 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/read.c (dwarf2_section_size): Remove.
14701 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14702 Update.
14703 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14704
14705 2020-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2/read.c (read_initial_length): Move to leb.c.
14708 * dwarf2/leb.h (read_initial_length): Declare.
14709 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14710 handle_nonstd parameter.
14711 * dwarf2/frame.c (read_initial_length): Remove.
14712 (decode_frame_entry_1): Update.
14713
14714 2020-02-08 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2/loc.c (dwarf2_find_location_expression)
14717 (dwarf_evaluate_loc_desc::get_tls_address)
14718 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14719 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14720 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14721 (dwarf2_compile_property_to_c)
14722 (dwarf2_loc_desc_get_symbol_read_needs)
14723 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14724 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14725 (loclist_describe_location, loclist_tracepoint_var_ref)
14726 (loclist_generate_c_location): Update.
14727 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14728 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14729 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14730 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14731 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14732 (dwarf2_per_cu_data::addr_size)
14733 (dwarf2_per_cu_data::ref_addr_size)
14734 (dwarf2_per_cu_data::text_offset)
14735 (dwarf2_per_cu_data::addr_type): Now methods.
14736 (per_cu_header_read_in): Make per_cu "const".
14737 (dwarf2_version): Remove.
14738 (dwarf2_per_cu_data::int_type): Now a method.
14739 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14740 (set_die_type, read_array_type, read_subrange_index_type)
14741 (read_tag_string_type, read_subrange_type): Update.
14742 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14743 offset_size, ref_addr_size, text_offset, addr_type, version,
14744 objfile, int_type, addr_sized_int_type>: Declare methods.
14745
14746 2020-02-08 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14749 Move earlier.
14750
14751 2020-02-08 Tom Tromey <tom@tromey.com>
14752
14753 * dwarf2/read.h (dwarf_line_debug): Declare.
14754 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14755 * dwarf2/read.c: Move line_header code to new files.
14756 (dwarf_line_debug): No longer static.
14757 * dwarf2/line-header.c: New file.
14758 * dwarf2/line-header.h: New file.
14759
14760 2020-02-08 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/read.c (struct line_header) <file_full_name,
14763 file_file_name>: Return unique_xmalloc_ptr.
14764 (line_header::file_file_name): Update.
14765 (line_header::file_full_name): Update.
14766 (dw2_get_file_names_reader): Update.
14767 (macro_start_file): Update.
14768
14769 2020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2/read.c (struct line_header) <file_full_name,
14772 file_file_name>: Declare methods.
14773 (dw2_get_file_names_reader): Update.
14774 (file_file_name): Now a method.
14775 (file_full_name): Likewise.
14776 (macro_start_file): Update.
14777
14778 2020-02-08 Tom Tromey <tom@tromey.com>
14779
14780 * dwarf2/read.c (dwarf_always_disassemble)
14781 (show_dwarf_always_disassemble): Move to loc.c.
14782 (_initialize_dwarf2_read): Move "always-disassemble" registration
14783 to loc.c.
14784 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14785 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14786 static.
14787 (show_dwarf_always_disassemble): Move from read.c.
14788 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14789
14790 2020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14793 (create_quick_file_names_table): Return htab_up.
14794 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14795 Update.
14796 * dwarf2/read.h (struct dwarf2_per_objfile)
14797 <quick_file_names_table>: Now htab_up.
14798
14799 2020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14802
14803 2020-02-08 Tom Tromey <tom@tromey.com>
14804
14805 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14806 Rewrite.
14807 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14808 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14809 (abbrev_table::abbrev_table): No longer inline.
14810 (ABBREV_HASH_SIZE): Remove.
14811 (abbrev_table::m_abbrevs): Now an htab_up.
14812
14813 2020-02-08 Tom Tromey <tom@tromey.com>
14814
14815 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14816 (cutu_reader): Update.
14817 (build_type_psymtabs_1): Update.
14818 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14819 (abbrev_table::alloc_abbrev): Update.
14820 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14821 (abbrev_table::read): New static method, renamed from
14822 abbrev_table_read_table.
14823 (abbrev_table::alloc_abbrev)
14824 (abbrev_table::add_abbrev): Now private.
14825 (abbrev_table::abbrev_table): Now private.
14826 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14827
14828 2020-02-08 Tom Tromey <tom@tromey.com>
14829
14830 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14831 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14832 htab_up.
14833
14834 2020-02-08 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14837 htab_up.
14838 (lookup_dwo_unit_in_dwp): Update.
14839 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14840 on obstack.
14841
14842 2020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14845 obstack.
14846
14847 2020-02-08 Tom Tromey <tom@tromey.com>
14848
14849 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14850 line_header_hash.
14851 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14852 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14853 Change type to htab_up.
14854
14855 2020-02-08 Tom Tromey <tom@tromey.com>
14856
14857 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14858 htab_up. Don't allocate on obstack.
14859 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14860 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14861 Change type to htab_up.
14862
14863 2020-02-08 Tom Tromey <tom@tromey.com>
14864
14865 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14866 Change type to htab_up.
14867 * dwarf2/read.c (create_signatured_type_table_from_index)
14868 (create_signatured_type_table_from_debug_names)
14869 (create_all_type_units, add_type_unit)
14870 (lookup_dwo_signatured_type, lookup_signatured_type)
14871 (process_skeletonless_type_unit): Update.
14872 (create_debug_type_hash_table, create_debug_types_hash_table):
14873 Change type of types_htab.
14874 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14875 htab_up. Don't allocate on obstack.
14876 (create_cus_hash_table): Change type of cus_htab parameter.
14877 (struct dwo_file) <cus, tus>: Now htab_up.
14878 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14879 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14880 (queue_and_load_all_dwo_tus): Update.
14881 * dwarf2/index-write.c (write_gdbindex): Update.
14882 (write_debug_names): Update.
14883
14884 2020-02-08 Tom Tromey <tom@tromey.com>
14885
14886 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14887 dwarf2/read.c. Remove "next" member. Add constructor ntad
14888 destructor.
14889 (struct dwarf2_per_objfile) <queue>: New member.
14890 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14891 dwarf2/read.h.
14892 (dwarf2_queue, dwarf2_queue_tail): Remove.
14893 (class dwarf2_queue_guard): Add parameter to constructor. Use
14894 DISABLE_COPY_AND_ASSIGN.
14895 <m_per_objfile>: New member.
14896 <~dwarf2_queue_guard>: Rewrite.
14897 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14898 Update.
14899 (~dwarf2_queue_item): New.
14900
14901 2020-02-08 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2/read.c (struct die_info) <has_children>: New member.
14904 (dw2_get_file_names_reader): Remove has_children.
14905 (dw2_get_file_names): Update.
14906 (read_cutu_die_from_dwo): Remove has_children.
14907 (cutu_reader::init_tu_and_read_dwo_dies)
14908 (cutu_reader::cutu_reader): Update.
14909 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14910 Remove has_children.
14911 (build_type_psymtabs_1, process_skeletonless_type_unit)
14912 (load_partial_comp_unit, load_full_comp_unit): Update.
14913 (create_dwo_cu_reader): Remove has_children.
14914 (create_cus_hash_table, read_die_and_children): Update.
14915 (read_full_die_1,read_full_die): Remove has_children.
14916 (read_signatured_type): Update.
14917 (class cutu_reader) <has_children>: Remove.
14918
14919 2020-02-08 Tom Tromey <tom@tromey.com>
14920
14921 * dwarf2/expr.c: Rename from dwarf2expr.c.
14922 * dwarf2/expr.h: Rename from dwarf2expr.h.
14923 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14924 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14925 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14926 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14927 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14928 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14929 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14930 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14931 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14932 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14933 * dwarf2/loc.c: Rename from dwarf2loc.c.
14934 * dwarf2/loc.h: Rename from dwarf2loc.h.
14935 * dwarf2/read.c: Rename from dwarf2read.c.
14936 * dwarf2/read.h: Rename from dwarf2read.h.
14937 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14938 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14939 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14940 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14941 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14942 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14943 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14944 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14945 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14946 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14947 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14948 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14949 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14950 Update.
14951 * Makefile.in (COMMON_SFILES): Update.
14952 (HFILES_NO_SRCDIR): Update.
14953
14954 2020-02-08 Tom Tromey <tom@tromey.com>
14955
14956 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14957 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14958
14959 2020-02-08 Tom Tromey <tom@tromey.com>
14960
14961 * dwarf2read.h (struct die_info): Don't declare.
14962
14963 2020-02-08 Tom Tromey <tom@tromey.com>
14964
14965 * dwarf2read.h (die_info_ptr): Remove typedef.
14966
14967 2020-02-08 Tom Tromey <tom@tromey.com>
14968
14969 * dwarf2read.c (read_call_site_scope)
14970 (handle_data_member_location, dwarf2_add_member_fn)
14971 (mark_common_block_symbol_computed, read_common_block)
14972 (attr_to_dynamic_prop, partial_die_info::read)
14973 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14974 (dwarf2_symbol_mark_computed, set_die_type): Update.
14975 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14976 method.
14977 (attr_form_is_block): Don't declare.
14978 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14979
14980 2020-02-08 Tom Tromey <tom@tromey.com>
14981
14982 * dwarf2read.c (dwarf2_find_base_address, )
14983 (read_call_site_scope, rust_containing_type)
14984 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14985 (handle_data_member_location, dwarf2_add_member_fn)
14986 (get_alignment, read_structure_type, process_structure_scope)
14987 (mark_common_block_symbol_computed, read_common_block)
14988 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14989 (partial_die_info::read, read_attribute_value, new_symbol)
14990 (lookup_die_type, dwarf2_get_ref_die_offset)
14991 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14992 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14993 (dwarf2_symbol_mark_computed): Update.
14994 * dwarf2/attribute.h (struct attribute) <value_as_address,
14995 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14996 methods.
14997 (value_as_address, attr_form_is_section_offset)
14998 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14999 * dwarf2/attribute.c (attribute::value_as_address)
15000 (attribute::form_is_section_offset, attribute::form_is_constant)
15001 (attribute::form_is_ref): Now methods.
15002
15003 2020-02-08 Tom Tromey <tom@tromey.com>
15004
15005 * dwarf2read.c (struct attribute, DW_STRING)
15006 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15007 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15008 (attr_form_is_block, attr_form_is_section_offset)
15009 (attr_form_is_constant, attr_form_is_ref): Move.
15010 * dwarf2/attribute.h: New file.
15011 * dwarf2/attribute.c: New file, from dwarf2read.c.
15012 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15013
15014 2020-02-08 Tom Tromey <tom@tromey.com>
15015
15016 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15017 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15018 Move.
15019 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15020 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15021 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15022 abbrev.c.
15023 * dwarf2/abbrev.h: New file.
15024 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15025 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15026
15027 2020-02-08 Tom Tromey <tom@tromey.com>
15028
15029 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15030 (dwarf2_section_size, dwarf2_get_section_info)
15031 (create_signatured_type_table_from_debug_names)
15032 (create_addrmap_from_aranges, read_debug_names_from_section)
15033 (get_gdb_index_contents_from_section, read_comp_unit_head)
15034 (error_check_comp_unit_head, read_abbrev_offset)
15035 (create_debug_type_hash_table, init_cu_die_reader)
15036 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15037 (read_comp_units_from_section, create_cus_hash_table)
15038 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15039 (create_dwp_v2_section, dwarf2_rnglists_process)
15040 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15041 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15042 (read_indirect_string_from_dwz, read_addr_index_1)
15043 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15044 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15045 (fill_in_loclist_baton): Update.
15046 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15047 get_containing_section, get_bfd_owner, get_bfd_section,
15048 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15049 (dwarf2_read_section, get_section_name, get_section_file_name)
15050 (get_containing_section, get_section_bfd_owner)
15051 (get_section_bfd_section, get_section_name, get_section_file_name)
15052 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15053 declare.
15054 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15055 (dwarf2_section_info::get_bfd_owner)
15056 (dwarf2_section_info::get_bfd_section)
15057 (dwarf2_section_info::get_name)
15058 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15059 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15060 (dwarf2_section_info::read): Now methods.
15061 * dwarf-index-write.c (class debug_names): Update.
15062
15063 2020-02-08 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15066 Move to dwarf2/section.h.
15067 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15068 (get_section_bfd_section, get_section_name)
15069 (get_section_file_name, get_section_id, get_section_flags)
15070 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15071 dwarf2/section.c.
15072 * dwarf2/section.h: New file.
15073 * dwarf2/section.c: New file, from dwarf2read.c.
15074 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15075
15076 2020-02-08 Tom Tromey <tom@tromey.com>
15077
15078 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15079 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15080 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15081 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15082 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15083 * dwarf2/leb.h: New file, from dwarf2read.c.
15084 * dwarf2/leb.c: New file, from dwarf2read.c.
15085 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15086 Remove.
15087 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15088 (COMMON_SFILES): Add dwarf2/leb.c.
15089
15090 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15091
15092 GDB 9.1 released.
15093
15094 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15095
15096 PR gdb/25190:
15097 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15098 * gdb/remote.c (remote_console_output): Update.
15099 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15100 (ui_file_puts): ...this.
15101 * gdb/ui-file.h (ui_file_puts): Add declaration.
15102 * gdb/utils.c (emit_style_escape): Update.
15103 (flush_wrap_buffer): Update.
15104 (fputs_maybe_filtered): Update.
15105 (fputs_unfiltered): Add function.
15106
15107 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15108
15109 * gdb/event-loop.c (gdb_wait_for_event): Update.
15110 * gdb/printcmd.c (printf_command): Update.
15111 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15112 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15113 (gdb_os_flush_stderr): Update.
15114 * gdb/remote.c (remote_console_output): Update.
15115 * gdb/ui-file.c (gdb_flush): Rename to...
15116 (ui_file_flush): ...this.
15117 (stderr_file::write): Update.
15118 (stderr_file::puts): Update.
15119 * gdb/ui-file.h (gdb_flush): Rename to...
15120 (ui_file_flush): ...this.
15121 * gdb/utils.c (gdb_flush): Add function.
15122 * gdb/utils.h (gdb_flush): Add declaration.
15123
15124 2020-02-07 Tom Tromey <tromey@adacore.com>
15125
15126 PR breakpoints/24915:
15127 * source.c (find_and_open_source): Do not check basenames_may_differ.
15128
15129 2020-02-07 Tom Tromey <tom@tromey.com>
15130
15131 * README: Update gdbserver documentation.
15132 * gdbserver: Move to top level.
15133 * configure.tgt (build_gdbserver): Remove.
15134 * configure.ac: Remove --enable-gdbserver.
15135 * configure: Rebuild.
15136 * Makefile.in (distclean): Don't mention gdbserver.
15137
15138 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15139
15140 * source-cache.c (source_cache::ensure): Surround
15141 get_plain_source_lines with a try/catch.
15142 (source_cache::get_line_charpos): Get rid of try/catch
15143 and only check for the return value of "ensure".
15144 * tui/tui-source.c (tui_source_window::set_contents):
15145 Simplify "nlines" calculation.
15146
15147 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15148
15149 * MAINTAINERS (Write After Approval): Add myself.
15150
15151 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15152
15153 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15154 function call.
15155
15156 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15157
15158 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15159
15160 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15161
15162 * nat/riscv-linux-tdesc.h: New file.
15163 * nat/riscv-linux-tdesc.c: New file, taking code from...
15164 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15165 ... here.
15166 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15167 NATDEPFILES.
15168
15169 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15170
15171 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15172 we don't set the fake simulator ptid to the null_ptid.
15173
15174 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15175
15176 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15177 * gdbthread.h (class thread_info) <resumed>: Likewise.
15178 * infrun.c (resume_1): Likewise.
15179 (proceed): Likewise.
15180 (infrun_thread_stop_requested): Likewise.
15181 (stop_all_threads): Likewise.
15182 (handle_inferior_event): Likewise.
15183 (restart_threads): Likewise.
15184 (finish_step_over): Likewise.
15185 (keep_going_stepped_thread): Likewise.
15186 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15187 (linux_handle_extended_wait): Likewise.
15188 * record-btrace.c (get_thread_current_frame_id): Likewise.
15189 * record-full.c (record_full_wait_1): Likewise.
15190 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15191 * target.c (target_resume): Likewise.
15192 * thread.c (set_running_thread): Likewise.
15193
15194 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15195
15196 * f-valprint.c (f77_print_array_1): Changed datatype of index
15197 variable to LONGEST from int to enable it to contain bound
15198 values correctly.
15199
15200 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15201
15202 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15203 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15204 offsets according to FLEN determined.
15205 (riscv_linux_nat_target::read_description): Determine FLEN
15206 dynamically.
15207 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15208 according to FLEN determined.
15209 (riscv_linux_nat_target::store_registers): Likewise.
15210
15211 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15212
15213 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15214 when reg->group is empty and reggroup is not.
15215
15216 2020-01-31 Tom Tromey <tromey@adacore.com>
15217
15218 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15219 Call beneath target's mourn_inferior after unpushing.
15220
15221 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15222
15223 PR tui/9765
15224 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15225 have enough lines to fill the screen, still return the lowest
15226 address we found.
15227
15228 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15229
15230 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15231 '-', '<', and '>' commands.
15232
15233 2020-01-29 Pedro Alves <palves@redhat.com>
15234 Sergio Durigan Junior <sergiodj@redhat.com>
15235
15236 * infcmd.c (construct_inferior_arguments): Assert that
15237 'argc' is greater than 0.
15238
15239 2020-01-29 Luis Machado <luis.machado@linaro.org>
15240
15241 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15242 (BRK_INSN_MASK): Define to 0xd4200000.
15243 (aarch64_program_breakpoint_here_p): New function.
15244 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15245 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15246 breakpoint.c.
15247 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15248 breakpoint.h
15249 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15250 call gdbarch_program_breakpoint_here_p.
15251 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15252 default_program_breakpoint_here_p, changed return type to bool and
15253 simplified.
15254 * breakpoint.h (program_breakpoint_here): Moved prototype to
15255 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15256 return type to bool.
15257 * gdbarch.c: Regenerate.
15258 * gdbarch.h: Regenerate.
15259 * gdbarch.sh (program_breakpoint_here_p): New method.
15260 * infrun.c (handle_signal_stop): Call
15261 gdbarch_program_breakpoint_here_p.
15262
15263 2020-01-26 Tom Tromey <tom@tromey.com>
15264
15265 * ctfread.c (struct ctf_fp_info): Reindent.
15266 (_initialize_ctfread): Remove.
15267
15268 2020-01-26 Tom Tromey <tom@tromey.com>
15269
15270 * psymtab.c (partial_map_expand_apply)
15271 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15272 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15273 (psym_print_stats, psym_expand_symtabs_for_function)
15274 (psym_map_symbol_filenames, psym_map_matching_symbols)
15275 (psym_expand_symtabs_matching)
15276 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15277 (maintenance_check_psymtabs): Use new methods.
15278 * psympriv.h (struct partial_symtab) <readin_p,
15279 get_compunit_symtab>: New methods.
15280 <readin, compunit_symtab>: Remove members.
15281 (struct standard_psymtab): New.
15282 (struct legacy_psymtab): Derive from standard_psymtab.
15283 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15284 standard_psymtab.
15285 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15286
15287 2020-01-26 Tom Tromey <tom@tromey.com>
15288
15289 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15290 read_dependencies. Add assert.
15291 * psymtab.c (partial_symtab::read_dependencies): New method.
15292 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15293 method.
15294 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15295 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15296 read_dependencies.
15297 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15298 Add assert.
15299
15300 2020-01-26 Tom Tromey <tom@tromey.com>
15301
15302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15303 Call expand_psymtab.
15304 (xcoff_read_symtab): Call expand_psymtab.
15305 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15306 legacy_expand_psymtab.
15307 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15308 method.
15309 (struct legacy_psymtab) <expand_psymtab>: Implement.
15310 <legacy_expand_psymtab>: New member.
15311 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15312 (parse_partial_symbols): Set legacy_expand_psymtab.
15313 (psymtab_to_symtab_1): Change argument order. Call
15314 expand_psymtab.
15315 (new_psymtab): Set legacy_expand_psymtab.
15316 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15317 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15318 expand_psymtab.
15319 (dwarf2_psymtab::expand_psymtab): Rename from
15320 psymtab_to_symtab_1. Call expand_psymtab.
15321 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15322 (dbx_end_psymtab): Likewise.
15323 (dbx_psymtab_to_symtab_1): Change argument order. Call
15324 expand_psymtab.
15325 (dbx_read_symtab): Call expand_psymtab.
15326 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15327 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15328 (ctf_psymtab::read_symtab): Call expand_psymtab.
15329
15330 2020-01-26 Tom Tromey <tom@tromey.com>
15331
15332 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15333 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15334 messages.
15335 * mdebugread.c (mdebug_read_symtab): Remove prints.
15336 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15337 assert.
15338 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15339
15340 2020-01-26 Tom Tromey <tom@tromey.com>
15341
15342 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15343 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15344 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15345 legacy_symtab.
15346 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15347 * psymtab.c (psymtab_to_symtab): Call method.
15348 (dump_psymtab): Update.
15349 * psympriv.h (struct partial_symtab): Add virtual destructor.
15350 <read_symtab>: New method.
15351 (struct legacy_symtab): New.
15352 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15353 (struct pst_map) <pst>: Now a legacy_psymtab.
15354 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15355 (new_psymtab): Use legacy_psymtab.
15356 * dwarf2read.h (struct dwarf2_psymtab): New.
15357 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15358 * dwarf2read.c (dwarf2_create_include_psymtab)
15359 (dwarf2_build_include_psymtabs, create_type_unit_group)
15360 (create_partial_symtab, process_psymtab_comp_unit_reader)
15361 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15362 (set_partial_user): Use dwarf2_psymtab.
15363 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15364 (psymtab_to_symtab_1, process_full_comp_unit)
15365 (process_full_type_unit, dwarf2_ranges_read)
15366 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15367 (dwarf_decode_lines): Use dwarf2_psymtab.
15368 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15369 (add_address_entry_worker, write_one_signatured_type)
15370 (recursively_count_psymbols, recursively_write_psymbols)
15371 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15372 (write_debug_names): Likewise.
15373 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15374 <pst>: Now a legacy_psymtab.
15375 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15376 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15377 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15378 * ctfread.c (struct ctf_psymtab): New.
15379 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15380 ctf_psymtab.
15381 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15382 (create_partial_symtab): Return a ctf_psymtab.
15383 (scan_partial_symbols): Update.
15384
15385 2020-01-26 Tom Tromey <tom@tromey.com>
15386
15387 * xcoffread.c (xcoff_start_psymtab): Use new.
15388 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15389 renamed from start_psymtab_common.
15390 * psympriv.h (struct partial_symtab): Add new constructor.
15391 (start_psymtab_common): Don't declare.
15392 * mdebugread.c (parse_partial_symbols): Use new.
15393 * dwarf2read.c (create_partial_symtab): Use new.
15394 * dbxread.c (start_psymtab): Use new.
15395 * ctfread.c (create_partial_symtab): Use new.
15396
15397 2020-01-26 Tom Tromey <tom@tromey.com>
15398
15399 * xcoffread.c (xcoff_end_psymtab): Use new.
15400 * psymtab.c (start_psymtab_common): Use new.
15401 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15402 Update.
15403 * psympriv.h (struct partial_symtab): Add parameters to
15404 constructor. Don't inline.
15405 (allocate_psymtab): Don't declare.
15406 * mdebugread.c (new_psymtab): Use new.
15407 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15408 * dbxread.c (dbx_end_psymtab): Use new.
15409
15410 2020-01-26 Tom Tromey <tom@tromey.com>
15411
15412 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15413 allocate_psymtab. Update documentation.
15414 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15415 allocate_psymtab. Do not use new.
15416 (allocate_psymtab): Use new. Update.
15417
15418 2020-01-26 Tom Tromey <tom@tromey.com>
15419
15420 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15421 * psymtab.c (psym_print_stats): Update.
15422 * psympriv.h (struct partial_symtab) <readin,
15423 psymtabs_addrmap_supported, anonymous>: Now bool.
15424 * mdebugread.c (psymtab_to_symtab_1): Update.
15425 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15426 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15427 (process_full_comp_unit, process_full_type_unit): Update.
15428 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15429 * ctfread.c (psymtab_to_symtab): Update.
15430
15431 2020-01-26 Tom Tromey <tom@tromey.com>
15432
15433 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15434 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15435 * psymtab.c (psymtab_storage): Delete psymtabs.
15436 (psymtab_storage::allocate_psymtab): Use new.
15437 (psymtab_storage::discard_psymtab): Use delete.
15438 * psympriv.h (struct partial_symtab): Add constructor and
15439 initializers.
15440
15441 2020-01-26 Tom Tromey <tom@tromey.com>
15442
15443 * machoread.c: Do not include psympriv.h.
15444
15445 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15446
15447 * NEWS: Mention the new option and the set/show commands.
15448
15449 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15450
15451 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15452 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15453 (validate_exec_file): New variables, enums, functions.
15454 (exec_file_locate_attach, print_section_info): Style the filenames.
15455 (_initialize_exec): Install show_exec_file_mismatch_command and
15456 set_exec_file_mismatch_command.
15457 * gdbcore.h (validate_exec_file): Declare.
15458 * infcmd.c (attach_command): Call validate_exec_file.
15459 * remote.c ( remote_target::remote_add_inferior): Likewise.
15460
15461 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15462
15463 * frame.c (find_frame_sal): Move call to get_next_frame into more
15464 inner scope.
15465 * inline-frame.c (inilne_state) <inline_state>: Update argument
15466 types.
15467 (inilne_state) <skipped_symbol>: Rename to...
15468 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15469 (skip_inline_frames): Build vector of skipped symbols and use this
15470 to reate the inline_state.
15471 (inline_skipped_symbol): Add a comment and some assertions, fetch
15472 skipped symbol from the list.
15473
15474 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15475
15476 * buildsym.c (lte_is_less_than): Delete.
15477 (buildsym_compunit::end_symtab_with_blockvector): Create local
15478 lambda function to sort line table entries, and use
15479 std::stable_sort instead of std::sort.
15480 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15481 markers when looking for a previous line.
15482
15483 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15484
15485 * dwarf2read.c (lnp_state_machine::record_line): Include
15486 end_sequence parameter in debug print out. Record the line if we
15487 are at an end_sequence marker even if it's not the start of a
15488 statement.
15489 * symmisc.c (maintenance_print_one_line_table): Print end of
15490 sequence markers with 'END' not '0'.
15491
15492 2020-01-24 Pedro Alves <palves@redhat.com>
15493
15494 PR gdb/25410
15495 * thread.c (scoped_restore_current_thread::restore): Use
15496 switch_to_inferior_no_thread.
15497 * exec.c: Include "progspace-and-thread.h".
15498 (add_target_sections, remove_target_sections):
15499 scoped_restore_current_pspace_and_thread instead of
15500 scoped_restore_current_thread.
15501 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15502 and aspace to the inferior before calling clone_program_space.
15503 Remove stale comment.
15504
15505 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15506
15507 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15508 (arm_netbsd_nat_target::fetch_registers): ...this.
15509 (arm_nbsd_nat_target::store_registers): Rename to...
15510 (arm_netbsd_nat_target::store_registers): ...this.
15511
15512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15513
15514 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15515 register_t.
15516
15517 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15518
15519 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15520 Update comment.
15521 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15522 Likewise.
15523 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15524 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15525 the correct replacement (iterate_over_regset_sections).
15526 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15527 Update comment.
15528
15529 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15530
15531 PR gdb/23718
15532 * gdb/python/python.c (execute_gdb_command): Call
15533 async_enable_stdin in catch block.
15534
15535 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15536
15537 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15538 SWITCH_THRU_ALL_UIS.
15539
15540 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15541
15542 PR tui/9765
15543 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15544 comment, add extra parameter, and update to store previous symbol
15545 when appropriate.
15546 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15547 add extra parameter.
15548 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15549 remove unneeded parameter, add try/catch around gdb_print_insn,
15550 rewrite to add items to asm_lines vector.
15551 (tui_find_backward_disassembly_start_address): New function.
15552 (tui_find_disassembly_address): Updated throughout.
15553 (tui_disasm_window::set_contents): Update for changes to
15554 tui_disassemble.
15555 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15556 number of lines to scroll.
15557
15558 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15559
15560 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15561 (SECT_OFF_DATA): Likewise.
15562 (SECT_OFF_RODATA): Likewise.
15563 (SECT_OFF_TEXT): Likewise.
15564 (SECT_OFF_BSS): Likewise.
15565 (struct objfile) <text_section_offset, data_section_offset>: New
15566 methods.
15567 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15568 objfile::text_section_offset.
15569 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15570 * coffread.c (coff_symtab_read): Likewise.
15571 (enter_linenos): Likewise.
15572 (process_coff_symbol): Likewise.
15573 * ctfread.c (get_objfile_text_range): Likewise.
15574 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15575 Use objfile::data_section_offset.
15576 * dwarf2-frame.c (execute_cfa_program): Use
15577 objfile::text_section_offset.
15578 (dwarf2_frame_find_fde): Likewise.
15579 * dwarf2read.c (create_addrmap_from_index): Likewise.
15580 (create_addrmap_from_aranges): Likewise.
15581 (dw2_find_pc_sect_compunit_symtab): Likewise.
15582 (process_psymtab_comp_unit_reader): Likewise.
15583 (add_partial_symbol): Likewise.
15584 (add_partial_subprogram): Likewise.
15585 (process_full_comp_unit): Likewise.
15586 (read_file_scope): Likewise.
15587 (read_func_scope): Likewise.
15588 (read_lexical_block_scope): Likewise.
15589 (read_call_site_scope): Likewise.
15590 (dwarf2_rnglists_process): Likewise.
15591 (dwarf2_ranges_process): Likewise.
15592 (dwarf2_ranges_read): Likewise.
15593 (dwarf_decode_lines_1): Likewise.
15594 (new_symbol): Likewise.
15595 (dwarf2_fetch_die_loc_sect_off): Likewise.
15596 (dwarf2_per_cu_text_offset): Likewise.
15597 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15598 * hppa-tdep.c (read_unwind_info): Likewise.
15599 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15600 * psympriv.h (struct partial_symtab): Likewise.
15601 * psymtab.c (find_pc_sect_psymtab): Likewise.
15602 * solib-svr4.c (enable_break): Likewise.
15603 * stap-probe.c (relocate_address): Use
15604 objfile::data_section_offset.
15605 * xcoffread.c (enter_line_range): Use
15606 objfile::text_section_offset.
15607 (read_xcoff_symtab): Likewise.
15608
15609 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15610
15611 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15612 declaration to narrower scopes.
15613
15614 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15615
15616 * darwin-nat.h (struct darwin_exception_msg, enum
15617 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15618 Move up.
15619 (class darwin_nat_target) <wait_1, check_new_threads,
15620 decode_exception_message, decode_message, stop_inferior,
15621 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15622 * darwin-nat.c (darwin_check_new_threads): Rename to...
15623 (darwin_nat_target::check_new_threads): ... this.
15624 (darwin_suspend_inferior_it): Remove.
15625 (darwin_decode_exception_message): Rename to...
15626 (darwin_nat_target::decode_exception_message): ... this.
15627 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15628 (darwin_decode_message): Rename to...
15629 (darwin_nat_target::decode_message): ... this.
15630 (cancel_breakpoint): Rename to...
15631 (darwin_nat_target::cancel_breakpoint): ... this.
15632 (darwin_wait): Rename to...
15633 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15634 instead of iterate_over_inferiors.
15635 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15636 (darwin_stop_inferior): Rename to...
15637 (darwin_nat_target::stop_inferior): ... this.
15638 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15639 (darwin_init_thread_list): Rename to...
15640 (darwin_nat_target::init_thread_list): ... this.
15641 (darwin_ptrace_him): Rename to...
15642 (darwin_nat_target::ptrace_him): ... this.
15643 (darwin_nat_target::create_inferior): Pass lambda function to
15644 fork_inferior.
15645 (darwin_nat_target::detach): Call stop_inferior instead of
15646 darwin_stop_inferior.
15647 * fork-inferior.h (fork_inferior): Change init_trace_fun
15648 parameter to gdb::function_view.
15649 * fork-inferior.c (fork_inferior): Likewise.
15650
15651 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15652
15653 * i386-cygwin-tdep.c (core_process_module_section): Update.
15654 * windows-nat.c (struct lm_info_windows): Add text_offset.
15655 (windows_xfer_shared_libraries): Update.
15656 * windows-tdep.c (windows_xfer_shared_library):
15657 Add text_offset_cached argument.
15658 * windows-tdep.h (windows_xfer_shared_library): Update.
15659
15660 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15661
15662 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15663
15664 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15665
15666 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15667 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15668 replace with range-based for.
15669 (gdbsim_interrupt_inferior): Remove.
15670 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15671 with a range-based for. Inline code from
15672 gdbsim_interrupt_inferior.
15673
15674 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15675
15676 * infrun.c (proceed): Fix indentation.
15677
15678 2020-01-21 Tom Tromey <tromey@adacore.com>
15679
15680 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15681 * python/python.c (python_extension_ops): Update.
15682 (gdbpy_colorize): New function.
15683 * python/lib/gdb/__init__.py (colorize): New function.
15684 * extension.h (ext_lang_colorize): Declare.
15685 * extension.c (ext_lang_colorize): New function.
15686 * extension-priv.h (struct extension_language_ops) <colorize>: New
15687 member.
15688 * cli/cli-style.c (_initialize_cli_style): Update help text.
15689
15690 2020-01-21 Luis Machado <luis.machado@linaro.org>
15691
15692 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15693 <cond>: Change type to bool.
15694 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15695 (aarch64_displaced_step_cb): Likewise.
15696 (aarch64_displaced_step_tb): Likewise.
15697
15698 2020-01-21 Luis Machado <luis.machado@linaro.org>
15699
15700 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15701 output.
15702
15703 2020-01-21 Luis Machado <luis.machado@linaro.org>
15704
15705 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15706 <pc_adjust>: Adjust the documentation.
15707 (aarch64_displaced_step_fixup): Check if PC really moved before
15708 adjusting it.
15709
15710 2020-01-19 Tom Tromey <tom@tromey.com>
15711
15712 * disasm.c (~gdb_disassembler): New destructor.
15713 (gdb_buffered_insn_length): Call disassemble_free_target.
15714 * disasm.h (class gdb_disassembler): Declare destructor. Use
15715 DISABLE_COPY_AND_ASSIGN.
15716
15717 2020-01-19 Tom Tromey <tom@tromey.com>
15718
15719 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15720 (die_reader_func_ftype): Remove.
15721 (cutu_reader): New class.
15722 (dw2_get_file_names_reader): Remove "data" parameter.
15723 (dw2_get_file_names): Use cutu_reader.
15724 (create_debug_type_hash_table): Update.
15725 (read_cutu_die_from_dwo): Update comment.
15726 (lookup_dwo_unit): Add dwo_name parameter.
15727 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15728 die_reader_func_ftype and data parameters.
15729 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15730 Remove die_reader_func_ftype and data parameters.
15731 (~cutu_reader): New; from init_cutu_and_read_dies.
15732 (cutu_reader::cutu_reader): Rename from
15733 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15734 and data parameters.
15735 (init_cutu_and_read_dies_simple): Remove.
15736 (struct process_psymtab_comp_unit_data): Remove.
15737 (process_psymtab_comp_unit_reader): Remove data parameter; add
15738 want_partial_unit and pretend_language parameters.
15739 (process_psymtab_comp_unit): Use cutu_reader.
15740 (build_type_psymtabs_reader): Remove data parameter.
15741 (build_type_psymtabs_1): Use cutu_reader.
15742 (process_skeletonless_type_unit): Likewise.
15743 (load_partial_comp_unit_reader): Remove.
15744 (load_partial_comp_unit): Use cutu_reader.
15745 (load_full_comp_unit_reader): Remove.
15746 (load_full_comp_unit): Use cutu_reader.
15747 (struct create_dwo_cu_data): Remove.
15748 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15749 dwo_unit parameters.
15750 (create_cus_hash_table): Use cutu_reader.
15751 (struct dwarf2_read_addr_index_data): Remove.
15752 (dwarf2_read_addr_index_reader): Remove.
15753 (dwarf2_read_addr_index): Use cutu_reader.
15754 (read_signatured_type_reader): Remove.
15755 (read_signatured_type): Use cutu_reader.
15756
15757 2020-01-19 Tom Tromey <tom@tromey.com>
15758
15759 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15760 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15761 (tui_wrefresh): Declare.
15762 * tui/tui-wingeneral.c (suppress_output): New global.
15763 (tui_suppress_output, ~tui_suppress_output): New constructor and
15764 destructor.
15765 (tui_wrefresh): New function.
15766 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15767 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15768 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15769 method.
15770 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15771 tui_wrefresh.
15772 (tui_data_window::no_refresh): New method.
15773 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15774 (tui_reg_command): Use tui_suppress_output
15775 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15776 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15777 method.
15778 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15779
15780 2020-01-19 Tom Tromey <tom@tromey.com>
15781
15782 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15783 Handle case where symtab is null.
15784
15785 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15786
15787 * linux-fork.c (one_fork_p): Simplify.
15788
15789 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15790
15791 * top.c (struct qt_args): Remove.
15792 (kill_or_detach): Change return type to void, replace `void *`
15793 parameter with a proper one.
15794 (print_inferior_quit_action): Likewise.
15795 (quit_confirm): Use range-based for loop to iterate over inferiors.
15796 (quit_force): Likewise.
15797
15798 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15799
15800 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15801 `void *` parameter with proper parameters.
15802 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15803 (print_one_inferior): Change return type to void, replace `void *`
15804 parameter with proper parameters.
15805 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15806 inferiors.
15807 (get_other_inferior): Remove.
15808 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15809 inferiors.
15810
15811 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15812
15813 * mi/mi-interp.c (report_initial_inferior): Remove.
15814 (mi_interp::init): Use range-based for to iterate over inferiors.
15815
15816 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15817
15818 * python/py-inferior.c (build_inferior_list): Remove.
15819 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15820
15821 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15822
15823 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15824 (btrace_stitch_trace): Likewise.
15825 * charset.c (intermediate_encoding): Likewise (vaild).
15826 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15827 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15828 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15829
15830 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15831
15832 * windows-tdep.c (windows_get_tlb_type):
15833 Add rtl_user_process_parameters type.
15834
15835 2020-01-16 Pedro Alves <palves@redhat.com>
15836 Norbert Lange <nolange79@gmail.com>
15837
15838 PR build/24805
15839 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15840 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15841 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15842 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15843 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15844 (ps_plog): Redeclare exported functions with default visibility.
15845
15846 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15847
15848 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15849 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15850
15851 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15852
15853 * infcmd.c (post_create_inferior): Use get_thread_regcache
15854 instead of get_current_regcache.
15855
15856 2020-01-14 Tom Tromey <tom@tromey.com>
15857
15858 PR symtab/12535:
15859 * python/python.c (gdbpy_decode_line): Treat empty string the same
15860 as no argument.
15861
15862 2020-01-14 Tom Tromey <tom@tromey.com>
15863
15864 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15865
15866 2020-01-14 Tom Tromey <tom@tromey.com>
15867
15868 * nat/linux-btrace.c: Don't include <config.h>.
15869 * nat/linux-ptrace.c: Don't include <config.h>.
15870 * nat/x86-linux-dregs.c: Don't include <config.h>.
15871
15872 2020-01-14 Tom Tromey <tom@tromey.com>
15873
15874 * configure: Rebuild.
15875 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15876
15877 2020-01-14 Tom Tromey <tom@tromey.com>
15878
15879 * nat/x86-linux-dregs.c: Include configh.h.
15880 * nat/linux-ptrace.c: Include configh.h.
15881 * nat/linux-btrace.c: Include configh.h.
15882 * defs.h: Include config.h, bfd.h.
15883 * configure.ac: Don't source common.host.
15884 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15885 * configure: Rebuild.
15886 * acinclude.m4: Update path.
15887 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15888 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15889 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15890 (CLIBS): Add LIBSUPPORT.
15891 (CDEPS): Likewise.
15892 (COMMON_SFILES): Remove gdbsupport files.
15893 (HFILES_NO_SRCDIR): Likewise.
15894 (stamp-version): Update path to create-version.sh.
15895 (ALLDEPFILES): Remove gdbsupport files.
15896
15897 2020-01-14 Tom Tromey <tom@tromey.com>
15898
15899 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15900 USE_WIN32API when needed.
15901 * configure.ac (USE_WIN32API): Don't define.
15902 (WIN32LIBS): Use WIN32APILIBS.
15903 * configure: Rebuild.
15904
15905 2020-01-14 Tom Tromey <tom@tromey.com>
15906
15907 * configure: Rebuild.
15908 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15909
15910 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15911
15912 * skip.c (skip_function_command): Make skip w/o arguments use the
15913 name of the inlined function if pc is inside any inlined function.
15914
15915 2020-01-14 Luis Machado <luis.machado@linaro.org>
15916
15917 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15918 * infrun.c (resume_1): Likewise.
15919 (handle_inferior_event): Remove stale comment.
15920 * linux-nat.c (linux_nat_target::resume): Update comments.
15921 (save_stop_reason): Likewise.
15922 (linux_nat_filter_event): Likewise.
15923 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15924
15925 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15926
15927 * elfread.c (record_minimal_symbol): Set section index to 0 for
15928 non-allocatable sections.
15929
15930
15931 2020-01-13 Ali Tamur <tamur@google.com>
15932
15933 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15934 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15935 to gdb::optional. Update comments.
15936 (dwo_file): Update comments.
15937 (read_attribute): Update API to take an additional out parameter,
15938 need_reprocess. This is used to mark attributes that need other
15939 attributes (e.g. str_offsets_base) for correct computation which may not
15940 have been read yet.
15941 (read_attribute_reprocess): New function declaration.
15942 (read_addr_index): Likewise.
15943 (read_dwo_str_index): Likewise.
15944 (read_stub_str_index): Likewise.
15945 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15946 (lookup_addr_base): New function definition.
15947 (lookup_ranges_base): Likewise.
15948 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15949 lookup_ranges_base.
15950 (init_cutu_and_read_dies): Update comments.
15951 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15952 unit. This is used to inherit parent's str_offsets_base and addr_base.
15953 Update comments.
15954 (init_cutu_and_read_dies_simple): Reflect API changes.
15955 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15956 (create_cus_hash_table): Change API to take parent compile unit.
15957 Reflect API changes.
15958 (open_and_init_dwo_file): Reflect API changes.
15959 (dwarf2_get_pc_bounds): Update comments.
15960 (dwarf2_record_block_ranges): Likewise.
15961 (read_full_die_1): Change implementation to reprocess attributes that
15962 need str_offsets_base and addr_base.
15963 (partial_die_info::read): Likewise.
15964 (read_attribute_reprocess): New function definition.
15965 (read_attribute_value): Change API to take an additional out parameter,
15966 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15967 when a non-dwo compile unit has index based attributes.
15968 (read_attribute): Reflect API changes.
15969 (read_addr_index_1): Reflect API changes. Update comments.
15970 (dwarf2_read_addr_index_data): Reflect API changes.
15971 (dwarf2_read_addr_index): Likewise.
15972 (read_str_index): Change API and implementation. This becomes a helper
15973 to be used by the new string index related methods. Update error
15974 message and comments.
15975 (read_dwo_str_index): New function definition.
15976 (read_stub_str_index): Likewise.
15977 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15978 * symfile.h (dwarf2_debug_sections): Likewise.
15979 * xcoffread.c (dwarf2_debug_sections): Likewise.
15980
15981 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15982
15983 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15984 core_reg_sect type to gdb_byte *.
15985 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15986 * cris-tdep.c (fetch_core_registers): Likewise.
15987 * corelow.c (core_target::get_core_register_section): Change
15988 type of `contents` to gdb::byte_vector.
15989
15990 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15991
15992 * tui/tui-wingeneral.c (box_win): Position the title in the center
15993 of the border.
15994
15995 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15996
15997 * corelow.c (core_target::get_core_register_section): Use
15998 std::vector instead of alloca.
15999
16000 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16001
16002 * warning.m4: Add -Wmissing-declarations to build_warnings.
16003 * configure: Re-generate.
16004
16005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16006
16007 * python/python.c (init__gdb_module): Add declaration.
16008
16009 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16010
16011 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16012 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16013 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16014 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16015 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16016 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16017 * ada-exp.y (_initialize_ada_exp): Add declaration.
16018 * ada-lang.c (_initialize_ada_language): Add declaration.
16019 * ada-tasks.c (_initialize_tasks): Add declaration.
16020 * agent.c (_initialize_agent): Add declaration.
16021 * aix-thread.c (_initialize_aix_thread): Add declaration.
16022 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16023 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16024 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16025 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16026 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16027 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16028 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16029 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16030 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16031 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16032 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16033 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16034 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16035 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16036 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16037 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16038 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16039 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16040 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16041 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16042 * annotate.c (_initialize_annotate): Add declaration.
16043 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16044 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16045 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16046 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16047 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16048 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16049 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16050 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16051 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16052 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16053 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16054 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16055 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16056 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16057 * auto-load.c (_initialize_auto_load): Add declaration.
16058 * auxv.c (_initialize_auxv): Add declaration.
16059 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16060 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16061 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16062 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16063 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16064 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16065 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16066 * breakpoint.c (_initialize_breakpoint): Add declaration.
16067 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16068 * btrace.c (_initialize_btrace): Add declaration.
16069 * charset.c (_initialize_charset): Add declaration.
16070 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16071 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16072 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16073 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16074 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16075 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16076 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16077 * coffread.c (_initialize_coffread): Add declaration.
16078 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16079 * compile/compile.c (_initialize_compile): Add declaration.
16080 * complaints.c (_initialize_complaints): Add declaration.
16081 * completer.c (_initialize_completer): Add declaration.
16082 * copying.c (_initialize_copying): Add declaration.
16083 * corefile.c (_initialize_core): Add declaration.
16084 * corelow.c (_initialize_corelow): Add declaration.
16085 * cp-abi.c (_initialize_cp_abi): Add declaration.
16086 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16087 * cp-support.c (_initialize_cp_support): Add declaration.
16088 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16089 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16090 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16091 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16092 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16093 * ctfread.c (_initialize_ctfread): Add declaration.
16094 * d-lang.c (_initialize_d_language): Add declaration.
16095 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16096 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16097 * dbxread.c (_initialize_dbxread): Add declaration.
16098 * dcache.c (_initialize_dcache): Add declaration.
16099 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16100 * disasm.c (_initialize_disasm): Add declaration.
16101 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16102 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16103 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16104 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16105 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16106 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16107 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16108 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16109 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16110 * elfread.c (_initialize_elfread): Add declaration.
16111 * exec.c (_initialize_exec): Add declaration.
16112 * extension.c (_initialize_extension): Add declaration.
16113 * f-lang.c (_initialize_f_language): Add declaration.
16114 * f-valprint.c (_initialize_f_valprint): Add declaration.
16115 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16116 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16117 * filesystem.c (_initialize_filesystem): Add declaration.
16118 * findcmd.c (_initialize_mem_search): Add declaration.
16119 * findvar.c (_initialize_findvar): Add declaration.
16120 * fork-child.c (_initialize_fork_child): Add declaration.
16121 * frame-base.c (_initialize_frame_base): Add declaration.
16122 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16123 * frame.c (_initialize_frame): Add declaration.
16124 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16125 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16126 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16127 * gcore.c (_initialize_gcore): Add declaration.
16128 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16129 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16130 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16131 * gdbarch.c (_initialize_gdbarch): Add declaration.
16132 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16133 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16134 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16135 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16136 * go-lang.c (_initialize_go_language): Add declaration.
16137 * go32-nat.c (_initialize_go32_nat): Add declaration.
16138 * guile/guile.c (_initialize_guile): Add declaration.
16139 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16140 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16141 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16142 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16143 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16144 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16145 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16146 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16147 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16148 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16149 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16150 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16151 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16152 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16153 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16154 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16155 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16156 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16157 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16158 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16159 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16160 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16161 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16162 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16163 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16164 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16165 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16166 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16167 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16168 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16169 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16170 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16171 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16172 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16173 * infcall.c (_initialize_infcall): Add declaration.
16174 * infcmd.c (_initialize_infcmd): Add declaration.
16175 * inflow.c (_initialize_inflow): Add declaration.
16176 * infrun.c (_initialize_infrun): Add declaration.
16177 * interps.c (_initialize_interpreter): Add declaration.
16178 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16179 * jit.c (_initialize_jit): Add declaration.
16180 * language.c (_initialize_language): Add declaration.
16181 * linux-fork.c (_initialize_linux_fork): Add declaration.
16182 * linux-nat.c (_initialize_linux_nat): Add declaration.
16183 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16184 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16185 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16186 * m2-lang.c (_initialize_m2_language): Add declaration.
16187 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16188 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16189 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16190 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16191 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16192 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16193 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16194 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16195 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16196 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16197 * machoread.c (_initialize_machoread): Add declaration.
16198 * macrocmd.c (_initialize_macrocmd): Add declaration.
16199 * macroscope.c (_initialize_macroscope): Add declaration.
16200 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16201 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16202 * maint.c (_initialize_maint_cmds): Add declaration.
16203 * mdebugread.c (_initialize_mdebugread): Add declaration.
16204 * memattr.c (_initialize_mem): Add declaration.
16205 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16206 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16207 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16208 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16209 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16210 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16211 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16212 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16213 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16214 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16215 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16216 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16217 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16218 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16219 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16220 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16221 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16222 * mipsread.c (_initialize_mipsread): Add declaration.
16223 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16224 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16225 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16226 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16227 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16228 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16229 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16230 * nto-procfs.c (_initialize_procfs): Add declaration.
16231 * objc-lang.c (_initialize_objc_language): Add declaration.
16232 * observable.c (_initialize_observer): Add declaration.
16233 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16234 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16235 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16236 * osabi.c (_initialize_gdb_osabi): Add declaration.
16237 * osdata.c (_initialize_osdata): Add declaration.
16238 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16239 * parse.c (_initialize_parse): Add declaration.
16240 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16241 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16242 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16243 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16244 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16245 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16246 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16247 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16248 * printcmd.c (_initialize_printcmd): Add declaration.
16249 * probe.c (_initialize_probe): Add declaration.
16250 * proc-api.c (_initialize_proc_api): Add declaration.
16251 * proc-events.c (_initialize_proc_events): Add declaration.
16252 * proc-service.c (_initialize_proc_service): Add declaration.
16253 * procfs.c (_initialize_procfs): Add declaration.
16254 * producer.c (_initialize_producer): Add declaration.
16255 * psymtab.c (_initialize_psymtab): Add declaration.
16256 * python/python.c (_initialize_python): Add declaration.
16257 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16258 * record-btrace.c (_initialize_record_btrace): Add declaration.
16259 * record-full.c (_initialize_record_full): Add declaration.
16260 * record.c (_initialize_record): Add declaration.
16261 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16262 * regcache.c (_initialize_regcache): Add declaration.
16263 * reggroups.c (_initialize_reggroup): Add declaration.
16264 * remote-notif.c (_initialize_notif): Add declaration.
16265 * remote-sim.c (_initialize_remote_sim): Add declaration.
16266 * remote.c (_initialize_remote): Add declaration.
16267 * reverse.c (_initialize_reverse): Add declaration.
16268 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16269 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16270 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16271 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16272 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16273 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16274 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16275 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16276 Add declaration.
16277 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16278 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16279 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16280 * rust-exp.y (_initialize_rust_exp): Add declaration.
16281 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16282 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16283 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16284 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16285 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16286 * score-tdep.c (_initialize_score_tdep): Add declaration.
16287 * ser-go32.c (_initialize_ser_dos): Add declaration.
16288 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16289 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16290 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16291 * ser-uds.c (_initialize_ser_socket): Add declaration.
16292 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16293 * serial.c (_initialize_serial): Add declaration.
16294 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16295 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16296 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16297 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16298 * skip.c (_initialize_step_skip): Add declaration.
16299 * sol-thread.c (_initialize_sol_thread): Add declaration.
16300 * solib-aix.c (_initialize_solib_aix): Add declaration.
16301 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16302 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16303 * solib-frv.c (_initialize_frv_solib): Add declaration.
16304 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16305 * solib-target.c (_initialize_solib_target): Add declaration.
16306 * solib.c (_initialize_solib): Add declaration.
16307 * source-cache.c (_initialize_source_cache): Add declaration.
16308 * source.c (_initialize_source): Add declaration.
16309 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16310 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16311 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16312 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16313 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16314 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16315 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16316 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16317 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16318 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16319 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16320 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16321 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16322 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16323 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16324 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16325 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16326 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16327 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16328 * stabsread.c (_initialize_stabsread): Add declaration.
16329 * stack.c (_initialize_stack): Add declaration.
16330 * stap-probe.c (_initialize_stap_probe): Add declaration.
16331 * std-regs.c (_initialize_frame_reg): Add declaration.
16332 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16333 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16334 * symfile.c (_initialize_symfile): Add declaration.
16335 * symmisc.c (_initialize_symmisc): Add declaration.
16336 * symtab.c (_initialize_symtab): Add declaration.
16337 * target.c (_initialize_target): Add declaration.
16338 * target-connection.c (_initialize_target_connection): Add
16339 declaration.
16340 * target-dcache.c (_initialize_target_dcache): Add declaration.
16341 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16342 * thread.c (_initialize_thread): Add declaration.
16343 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16344 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16345 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16346 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16347 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16348 * tracectf.c (_initialize_ctf): Add declaration.
16349 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16350 * tracefile.c (_initialize_tracefile): Add declaration.
16351 * tracepoint.c (_initialize_tracepoint): Add declaration.
16352 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16353 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16354 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16355 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16356 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16357 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16358 * tui/tui.c (_initialize_tui): Add declaration.
16359 * typeprint.c (_initialize_typeprint): Add declaration.
16360 * ui-style.c (_initialize_ui_style): Add declaration.
16361 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16362 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16363 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16364 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16365 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16366 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16367 * unittests/filtered_iterator-selftests.c
16368 (_initialize_filtered_iterator_selftests): Add declaration.
16369 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16370 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16371 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16372 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16373 * unittests/main-thread-selftests.c
16374 (_initialize_main_thread_selftests): Add declaration.
16375 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16376 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16377 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16378 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16379 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16380 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16381 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16382 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16383 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16384 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16385 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16386 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16387 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16388 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16389 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16390 declaration.
16391 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16392 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16393 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16394 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16395 * user-regs.c (_initialize_user_regs): Add declaration.
16396 * utils.c (_initialize_utils): Add declaration.
16397 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16398 * valops.c (_initialize_valops): Add declaration.
16399 * valprint.c (_initialize_valprint): Add declaration.
16400 * value.c (_initialize_values): Add declaration.
16401 * varobj.c (_initialize_varobj): Add declaration.
16402 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16403 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16404 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16405 * windows-nat.c (_initialize_windows_nat): Add declaration.
16406 (_initialize_check_for_gdb_ini): Add declaration.
16407 (_initialize_loadable): Add declaration.
16408 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16409 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16410 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16411 * xcoffread.c (_initialize_xcoffread): Add declaration.
16412 * xml-support.c (_initialize_xml_support): Add declaration.
16413 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16414 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16415 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16416 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16417
16418 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16419
16420 * regformats/regdat.sh: Generate declaration for init function.
16421
16422 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16423
16424 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16425 up.
16426 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16427 close_one_inferior>: New methods.
16428 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16429 pass down target to find_inferior_pid.
16430 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16431 Pass down target to find_inferior_ptid.
16432 (gdbsim_target::create_inferior): Pass down target to
16433 add_thread_silent.
16434 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16435 target down to find_inferior_ptid and switch_to_thread.
16436 (gdbsim_target::close): Update to call close_one_inferior.
16437 (struct resume_data): Remove.
16438 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16439 directly, rather than through a void pointer.
16440 (gdbsim_target::resume): Update to call resume_one_inferior.
16441
16442 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16443
16444 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16445
16446 2020-01-12 Pedro Alves <palves@redhat.com>
16447
16448 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16449 directly for the current inferior instead of
16450 discard_all_inferiors.
16451 (discard_all_inferiors): Delete.
16452
16453 2020-01-11 Tom Tromey <tom@tromey.com>
16454
16455 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16456 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16457 deprecated_safe_get_selected_frame.
16458
16459 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16460
16461 * inferior.c (print_inferior): Switch inferior before printing it.
16462
16463 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16464 Pedro Alves <palves@redhat.com>
16465
16466 * progspace-and-thread.c (switch_to_program_space_and_thread):
16467 Assert there's an inferior for PSPACE. Use
16468 switch_to_inferior_no_thread to switch the inferior too.
16469 * progspace.c (program_space::~program_space): Call
16470 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16471 (program_space::free_all_objfiles): Don't call clear_symtab_users
16472 here.
16473 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16474
16475 2020-01-10 Pedro Alves <palves@redhat.com>
16476
16477 * NEWS: Mention multi-target debugging, "info connections", and
16478 "add-inferior -no-connection".
16479
16480 2020-01-10 Pedro Alves <palves@redhat.com>
16481
16482 * infrun.c: Include "target-connection.h".
16483 (check_multi_target_resumption): New.
16484 (proceed): Call it.
16485 * target-connection.c (make_target_connection_string): Make
16486 extern.
16487 * target-connection.h (make_target_connection_string): Declare.
16488
16489 2020-01-10 Pedro Alves <palves@redhat.com>
16490
16491 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16492 * inferior.c (uiout_field_connection): New function.
16493 (print_inferior): Add new "connection-id" column.
16494 (add_inferior_command): Show connection number/string of added
16495 inferior.
16496 * process-stratum-target.h
16497 (process_stratum_target::connection_string): New virtual method.
16498 (process_stratum_target::connection_number): New field.
16499 * remote.c (remote_target::connection_string): New override.
16500 * target-connection.c: New file.
16501 * target-connection.h: New file.
16502 * target.c (decref_target): Remove process_stratum targets from
16503 the connection list.
16504 (target_stack::push): Add process_stratum targets to the
16505 connection list.
16506
16507 2020-01-10 Pedro Alves <palves@redhat.com>
16508
16509 Revert:
16510 2016-04-12 Pedro Alves <palves@redhat.com>
16511 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16512 Remove references to name.
16513 * serial.h (struct serial) <name>: Delete.
16514
16515 2020-01-10 Pedro Alves <palves@redhat.com>
16516
16517 * gdbarch-selftests.c (register_to_value_test): Remove "target
16518 already pushed" check.
16519
16520 2020-01-10 Pedro Alves <palves@redhat.com>
16521 John Baldwin <jhb@FreeBSD.org>
16522
16523 * aarch64-linux-nat.c
16524 (aarch64_linux_nat_target::thread_architecture): Adjust.
16525 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16526 (task_command_1): Likewise.
16527 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16528 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16529 (aix_thread_target::store_registers)
16530 (aix_thread_target::thread_alive): Adjust.
16531 * amd64-fbsd-tdep.c: Include "inferior.h".
16532 (amd64fbsd_get_thread_local_address): Pass down target.
16533 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16534 thread's gdbarch instead of target_gdbarch.
16535 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16536 get_last_target_status.
16537 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16538 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16539 inferiors.
16540 (update_inserted_breakpoint_locations): Skip if inferiors with no
16541 execution.
16542 (update_global_location_list): When handling moribund locations,
16543 find representative inferior for location's pspace, and use thread
16544 count of its process_stratum target.
16545 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16546 * bsd-uthread.c (bsd_uthread_target::wait): Use
16547 as_process_stratum_target and adjust thread_change_ptid and
16548 add_thread calls.
16549 (bsd_uthread_target::update_thread_list): Use
16550 as_process_stratum_target and adjust find_thread_ptid,
16551 thread_change_ptid and add_thread calls.
16552 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16553 find_thread_ptid call.
16554 * corelow.c (add_to_thread_list): Adjust add_thread call.
16555 (core_target_open): Adjust add_thread_silent and thread_count
16556 calls.
16557 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16558 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16559 * event-top.c (async_disconnect): Pop targets from all inferiors.
16560 * exec.c (add_target_sections): Push exec target on all inferiors
16561 sharing the program space.
16562 (remove_target_sections): Remove the exec target from all
16563 inferiors sharing the program space.
16564 (exec_on_vfork): New.
16565 * exec.h (exec_on_vfork): Declare.
16566 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16567 Pass it down.
16568 (fbsd_nat_target::update_thread_list): Adjust.
16569 (fbsd_nat_target::resume): Adjust.
16570 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16571 down.
16572 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16573 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16574 get_thread_arch_regcache call.
16575 * fork-child.c (gdb_startup_inferior): Pass target down to
16576 startup_inferior and set_executing.
16577 * gdbthread.h (struct process_stratum_target): Forward declare.
16578 (add_thread, add_thread_silent, add_thread_with_info)
16579 (in_thread_list): Add process_stratum_target parameter.
16580 (find_thread_ptid(inferior*, ptid_t)): New overload.
16581 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16582 parameter.
16583 (all_threads()): Delete overload.
16584 (all_threads, all_non_exited_threads): Add process_stratum_target
16585 parameter.
16586 (all_threads_safe): Use brace initialization.
16587 (thread_count): Add process_stratum_target parameter.
16588 (set_resumed, set_running, set_stop_requested, set_executing)
16589 (threads_are_executing, finish_thread_state): Add
16590 process_stratum_target parameter.
16591 (switch_to_thread): Use is_current_thread.
16592 * i386-fbsd-tdep.c: Include "inferior.h".
16593 (i386fbsd_get_thread_local_address): Pass down target.
16594 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16595 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16596 have_inferiors check.
16597 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16598 (inf_ptrace_target::attach): Adjust.
16599 * infcall.c (run_inferior_call): Adjust.
16600 * infcmd.c (run_command_1): Pass target to
16601 scoped_finish_thread_state.
16602 (proceed_thread_callback): Skip inferiors with no execution.
16603 (continue_command): Rename 'all_threads' local to avoid hiding
16604 'all_threads' function. Adjust get_last_target_status call.
16605 (prepare_one_step): Adjust set_running call.
16606 (signal_command): Use user_visible_resume_target. Compare thread
16607 pointers instead of inferior_ptid.
16608 (info_program_command): Adjust to pass down target.
16609 (attach_command): Mark target's 'thread_executing' flag.
16610 (stop_current_target_threads_ns): New, factored out from ...
16611 (interrupt_target_1): ... this. Switch inferior before making
16612 target calls.
16613 * inferior-iter.h
16614 (struct all_inferiors_iterator, struct all_inferiors_range)
16615 (struct all_inferiors_safe_range)
16616 (struct all_non_exited_inferiors_range): Filter on
16617 process_stratum_target too. Remove explicit.
16618 * inferior.c (inferior::inferior): Push dummy target on target
16619 stack.
16620 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16621 Add process_stratum_target parameter, and pass it down.
16622 (have_live_inferiors): Adjust.
16623 (switch_to_inferior_and_push_target): New.
16624 (add_inferior_command, clone_inferior_command): Handle
16625 "-no-connection" parameter. Use
16626 switch_to_inferior_and_push_target.
16627 (_initialize_inferior): Mention "-no-connection" option in
16628 the help of "add-inferior" and "clone-inferior" commands.
16629 * inferior.h: Include "process-stratum-target.h".
16630 (interrupt_target_1): Use bool.
16631 (struct inferior) <push_target, unpush_target, target_is_pushed,
16632 find_target_beneath, top_target, process_target, target_at,
16633 m_stack>: New.
16634 (discard_all_inferiors): Delete.
16635 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16636 (all_inferiors, all_non_exited_inferiors): Add
16637 process_stratum_target parameter.
16638 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16639 (target_last_proc_target): New global.
16640 (follow_fork_inferior): Push target on new inferior. Pass target
16641 to add_thread_silent. Call exec_on_vfork. Handle target's
16642 reference count.
16643 (follow_fork): Adjust get_last_target_status call. Also consider
16644 target.
16645 (follow_exec): Push target on new inferior.
16646 (struct execution_control_state) <target>: New field.
16647 (user_visible_resume_target): New.
16648 (do_target_resume): Call target_async.
16649 (resume_1): Set target's threads_executing flag. Consider resume
16650 target.
16651 (commit_resume_all_targets): New.
16652 (proceed): Also consider resume target. Skip threads of inferiors
16653 with no execution. Commit resumtion in all targets.
16654 (start_remote): Pass current inferior to wait_for_inferior.
16655 (infrun_thread_stop_requested): Consider target as well. Pass
16656 thread_info pointer to clear_inline_frame_state instead of ptid.
16657 (infrun_thread_thread_exit): Consider target as well.
16658 (random_pending_event_thread): New inferior parameter. Use it.
16659 (do_target_wait): Rename to ...
16660 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16661 down.
16662 (threads_are_resumed_pending_p, do_target_wait): New.
16663 (prepare_for_detach): Adjust calls.
16664 (wait_for_inferior): New inferior parameter. Handle it. Use
16665 do_target_wait_1 instead of do_target_wait.
16666 (fetch_inferior_event): Adjust. Switch to representative
16667 inferior. Pass target down.
16668 (set_last_target_status): Add process_stratum_target parameter.
16669 Save target in global.
16670 (get_last_target_status): Add process_stratum_target parameter and
16671 handle it.
16672 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16673 (context_switch): Check inferior_ptid == null_ptid before calling
16674 inferior_thread().
16675 (get_inferior_stop_soon): Pass down target.
16676 (wait_one): Rename to ...
16677 (poll_one_curr_target): ... this.
16678 (struct wait_one_event): New.
16679 (wait_one): New.
16680 (stop_all_threads): Adjust.
16681 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16682 event's target.
16683 (switch_back_to_stepped_thread): Also consider target.
16684 (print_stop_event): Update.
16685 (normal_stop): Update. Also consider the resume target.
16686 * infrun.h (wait_for_inferior): Remove declaration.
16687 (user_visible_resume_target): New declaration.
16688 (get_last_target_status, set_last_target_status): New
16689 process_stratum_target parameter.
16690 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16691 process_stratum_target parameter, and use it.
16692 (clear_inline_frame_state (thread_info*)): New.
16693 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16694 process_stratum_target parameter.
16695 (clear_inline_frame_state (thread_info*)): Declare.
16696 * linux-fork.c (delete_checkpoint_command): Pass target down to
16697 find_thread_ptid.
16698 (checkpoint_command): Adjust.
16699 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16700 instead of just tweaking inferior_ptid.
16701 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16702 (exit_lwp): Pass target down to find_thread_ptid.
16703 (attach_proc_task_lwp_callback): Pass target down to
16704 add_thread/set_running/set_executing.
16705 (linux_nat_target::attach): Pass target down to
16706 thread_change_ptid.
16707 (get_detach_signal): Pass target down to find_thread_ptid.
16708 Consider last target status's target.
16709 (linux_resume_one_lwp_throw, resume_lwp)
16710 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16711 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16712 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16713 (linux_nat_target::async_wait_fd): New.
16714 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16715 target down.
16716 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16717 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16718 * linux-thread-db.c (struct thread_db_info::process_target): New
16719 field.
16720 (add_thread_db_info): Save target.
16721 (get_thread_db_info): New process_stratum_target parameter. Also
16722 match target.
16723 (delete_thread_db_info): New process_stratum_target parameter.
16724 Also match target.
16725 (thread_from_lwp): Adjust to pass down target.
16726 (thread_db_notice_clone): Pass down target.
16727 (check_thread_db_callback): Pass down target.
16728 (try_thread_db_load_1): Always push the thread_db target.
16729 (try_thread_db_load, record_thread): Pass target down.
16730 (thread_db_target::detach): Pass target down. Always unpush the
16731 thread_db target.
16732 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16733 target down. Always unpush the thread_db target.
16734 (find_new_threads_callback, thread_db_find_new_threads_2)
16735 (thread_db_target::update_thread_list): Pass target down.
16736 (thread_db_target::pid_to_str): Pass current inferior down.
16737 (thread_db_target::get_thread_local_address): Pass target down.
16738 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16739 target down.
16740 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16741 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16742 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16743 (procfs_init_inferior): Rename to ...
16744 (procfs_target::procfs_init_inferior): ... this and adjust.
16745 (procfs_target::create_inferior, procfs_notice_thread)
16746 (procfs_do_thread_registers): Adjust.
16747 * ppc-fbsd-tdep.c: Include "inferior.h".
16748 (ppcfbsd_get_thread_local_address): Pass down target.
16749 * proc-service.c (ps_xfer_memory): Switch current inferior and
16750 program space as well.
16751 (get_ps_regcache): Pass target down.
16752 * process-stratum-target.c
16753 (process_stratum_target::thread_address_space)
16754 (process_stratum_target::thread_architecture): Pass target down.
16755 * process-stratum-target.h
16756 (process_stratum_target::threads_executing): New field.
16757 (as_process_stratum_target): New.
16758 * ravenscar-thread.c
16759 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16760 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16761 down.
16762 * record-btrace.c (record_btrace_target::info_record): Adjust.
16763 (record_btrace_target::record_method)
16764 (record_btrace_target::record_is_replaying)
16765 (record_btrace_target::fetch_registers)
16766 (get_thread_current_frame_id, record_btrace_target::resume)
16767 (record_btrace_target::wait, record_btrace_target::stop): Pass
16768 target down.
16769 * record-full.c (record_full_wait_1): Switch to event thread.
16770 Pass target down.
16771 * regcache.c (regcache::regcache)
16772 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16773 process_stratum_target parameter and handle it.
16774 (current_thread_target): New global.
16775 (get_thread_regcache): Add process_stratum_target parameter and
16776 handle it. Switch inferior before calling target method.
16777 (get_thread_regcache): Pass target down.
16778 (get_thread_regcache_for_ptid): Pass target down.
16779 (registers_changed_ptid): Add process_stratum_target parameter and
16780 handle it.
16781 (registers_changed_thread, registers_changed): Pass target down.
16782 (test_get_thread_arch_aspace_regcache): New.
16783 (current_regcache_test): Define a couple local test_target_ops
16784 instances and use them for testing.
16785 (readwrite_regcache): Pass process_stratum_target parameter.
16786 (cooked_read_test, cooked_write_test): Pass mock_target down.
16787 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16788 (get_thread_arch_aspace_regcache): Add process_stratum_target
16789 parameter.
16790 (regcache::target): New method.
16791 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16792 (regcache::registers_changed_ptid): Add process_stratum_target
16793 parameter.
16794 (regcache::m_target): New field.
16795 (registers_changed_ptid): Add process_stratum_target parameter.
16796 * remote.c (remote_state::supports_vCont_probed): New field.
16797 (remote_target::async_wait_fd): New method.
16798 (remote_unpush_and_throw): Add remote_target parameter.
16799 (get_current_remote_target): Adjust.
16800 (remote_target::remote_add_inferior): Push target.
16801 (remote_target::remote_add_thread)
16802 (remote_target::remote_notice_new_inferior)
16803 (get_remote_thread_info): Pass target down.
16804 (remote_target::update_thread_list): Skip threads of inferiors
16805 bound to other targets. (remote_target::close): Don't discard
16806 inferiors. (remote_target::add_current_inferior_and_thread)
16807 (remote_target::process_initial_stop_replies)
16808 (remote_target::start_remote)
16809 (remote_target::remote_serial_quit_handler): Pass down target.
16810 (remote_target::remote_unpush_target): New remote_target
16811 parameter. Unpush the target from all inferiors.
16812 (remote_target::remote_unpush_and_throw): New remote_target
16813 parameter. Pass it down.
16814 (remote_target::open_1): Check whether the current inferior has
16815 execution instead of checking whether any inferior is live. Pass
16816 target down.
16817 (remote_target::remote_detach_1): Pass down target. Use
16818 remote_unpush_target.
16819 (extended_remote_target::attach): Pass down target.
16820 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16821 (remote_target::append_resumption): Pass down target.
16822 (remote_target::append_pending_thread_resumptions)
16823 (remote_target::remote_resume_with_hc, remote_target::resume)
16824 (remote_target::commit_resume): Pass down target.
16825 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16826 (remote_target::interrupt_query)
16827 (remote_target::remove_new_fork_children)
16828 (remote_target::check_pending_events_prevent_wildcard_vcont)
16829 (remote_target::remote_parse_stop_reply)
16830 (remote_target::process_stop_reply): Pass down target.
16831 (first_remote_resumed_thread): New remote_target parameter. Pass
16832 it down.
16833 (remote_target::wait_as): Pass down target.
16834 (unpush_and_perror): New remote_target parameter. Pass it down.
16835 (remote_target::readchar, remote_target::remote_serial_write)
16836 (remote_target::getpkt_or_notif_sane_1)
16837 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16838 down target.
16839 (remote_target::mourn_inferior): Pass down target. Use
16840 remote_unpush_target.
16841 (remote_target::core_of_thread)
16842 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16843 (remote_target::pid_to_exec_file)
16844 (remote_target::thread_handle_to_thread_info): Pass down target.
16845 (remote_target::async_wait_fd): New.
16846 * riscv-fbsd-tdep.c: Include "inferior.h".
16847 (riscv_fbsd_get_thread_local_address): Pass down target.
16848 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16849 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16850 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16851 Adjust.
16852 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16853 * solib-svr4.c (enable_break): Pass down target.
16854 * spu-multiarch.c (parse_spufs_run): Pass down target.
16855 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16856 * target-delegates.c: Regenerate.
16857 * target.c (g_target_stack): Delete.
16858 (current_top_target): Return the current inferior's top target.
16859 (target_has_execution_1): Refer to the passed-in inferior's top
16860 target.
16861 (target_supports_terminal_ours): Check whether the initial
16862 inferior was already created.
16863 (decref_target): New.
16864 (target_stack::push): Incref/decref the target.
16865 (push_target, push_target, unpush_target): Adjust.
16866 (target_stack::unpush): Defref target.
16867 (target_is_pushed): Return bool. Adjust to refer to the current
16868 inferior's target stack.
16869 (dispose_inferior): Delete, and inline parts ...
16870 (target_preopen): ... here. Only dispose of the current inferior.
16871 (target_detach): Hold strong target reference while detaching.
16872 Pass target down.
16873 (target_thread_name): Add assertion.
16874 (target_resume): Pass down target.
16875 (target_ops::beneath, find_target_at): Adjust to refer to the
16876 current inferior's target stack.
16877 (get_dummy_target): New.
16878 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16879 has a thread running.
16880 (initialize_targets): Rename to ...
16881 (_initialize_target): ... this.
16882 * target.h: Include "gdbsupport/refcounted-object.h".
16883 (struct target_ops): Inherit refcounted_object.
16884 (target_ops::shortname, target_ops::longname): Make const.
16885 (target_ops::async_wait_fd): New method.
16886 (decref_target): Declare.
16887 (struct target_ops_ref_policy): New.
16888 (target_ops_ref): New typedef.
16889 (get_dummy_target): Declare function.
16890 (target_is_pushed): Return bool.
16891 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16892 (all_matching_threads_iterator::all_matching_threads_iterator):
16893 Handle filter target.
16894 * thread-iter.h (struct all_matching_threads_iterator, struct
16895 all_matching_threads_range, class all_non_exited_threads_range):
16896 Filter by target too. Remove explicit.
16897 * thread.c (threads_executing): Delete.
16898 (inferior_thread): Pass down current inferior.
16899 (clear_thread_inferior_resources): Pass down thread pointer
16900 instead of ptid_t.
16901 (add_thread_silent, add_thread_with_info, add_thread): Add
16902 process_stratum_target parameter. Use it for thread and inferior
16903 searches.
16904 (is_current_thread): New.
16905 (thread_info::deletable): Use it.
16906 (find_thread_ptid, thread_count, in_thread_list)
16907 (thread_change_ptid, set_resumed, set_running): New
16908 process_stratum_target parameter. Pass it down.
16909 (set_executing): New process_stratum_target parameter. Pass it
16910 down. Adjust reference to 'threads_executing'.
16911 (threads_are_executing): New process_stratum_target parameter.
16912 Adjust reference to 'threads_executing'.
16913 (set_stop_requested, finish_thread_state): New
16914 process_stratum_target parameter. Pass it down.
16915 (switch_to_thread): Also match inferior.
16916 (switch_to_thread): New process_stratum_target parameter. Pass it
16917 down.
16918 (update_threads_executing): Reimplement.
16919 * top.c (quit_force): Pop targets from all inferior.
16920 (gdb_init): Don't call initialize_targets.
16921 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16922 Declare.
16923 (windows_add_thread, windows_delete_thread): Adjust.
16924 (get_windows_debug_event): Rename to ...
16925 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16926 * tracefile-tfile.c (tfile_target_open): Pass down target.
16927 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16928 Forward declare.
16929 (switch_to_thread): Add process_stratum_target parameter.
16930 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16931 parameter. Use it.
16932 (mi_on_resume): Pass target down.
16933 * nat/fork-inferior.c (startup_inferior): Add
16934 process_stratum_target parameter. Pass it down.
16935 * nat/fork-inferior.h (startup_inferior): Add
16936 process_stratum_target parameter.
16937 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16938
16939 2020-01-10 Pedro Alves <palves@redhat.com>
16940
16941 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16942 directly. Instead find the first thread in the thread list and
16943 use switch_to_thread.
16944
16945 2020-01-10 Pedro Alves <palves@redhat.com>
16946
16947 * remote.c (remote_target::remote_add_inferior): Don't bind a
16948 process to the current inferior if the current inferior is already
16949 bound to a process.
16950
16951 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16952 Pedro Alves <palves@redhat.com>
16953
16954 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16955 If no process is specified, return null_ptid instead of
16956 inferior_ptid.
16957 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16958 TARGET_WAITKIND_SIGNALLED with no pid.
16959
16960 2020-01-10 Pedro Alves <palves@redhat.com>
16961
16962 * remote.c (first_remote_resumed_thread): New.
16963 (remote_target::wait_as): Use it as default event_ptid instead of
16964 inferior_ptid.
16965
16966 2020-01-10 Pedro Alves <palves@redhat.com>
16967
16968 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16969
16970 2020-01-10 Pedro Alves <palves@redhat.com>
16971
16972 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16973 not -1.
16974
16975 2020-01-10 Pedro Alves <palves@redhat.com>
16976
16977 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16978 ptid to get_last_target_status.
16979 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16980 ptid to get_last_target_status.
16981 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16982 get_last_target_status.
16983 (info_program_command): Don't pass a target_waitstatus to
16984 get_last_target_status.
16985 * infrun.c (init_wait_for_inferior): Use
16986 nullify_last_target_wait_ptid.
16987 (get_last_target_status): Handle nullptr arguments.
16988 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16989 (print_stop_event): Don't pass a ptid to get_last_target_status.
16990 (normal_stop): Don't pass a ptid to get_last_target_status.
16991 * infrun.h (get_last_target_status, set_last_target_status): Move
16992 comments here and update.
16993 (nullify_last_target_wait_ptid): Declare.
16994 * linux-fork.c (fork_load_infrun_state): Remove local extern
16995 declaration of nullify_last_target_wait_ptid.
16996 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16997 to get_last_target_status.
16998
16999 2020-01-10 Pedro Alves <palves@redhat.com>
17000
17001 * gdbthread.h (scoped_restore_current_thread)
17002 <dont_restore, restore, m_dont_restore>: Declare.
17003 * thread.c (thread_alive): Add assertion. Return bool.
17004 (switch_to_thread_if_alive): New.
17005 (prune_threads): Switch inferior/thread.
17006 (print_thread_info_1): Switch thread before calling target methods.
17007 (scoped_restore_current_thread::restore): New, factored out from
17008 ...
17009 (scoped_restore_current_thread::~scoped_restore_current_thread):
17010 ... this.
17011 (scoped_restore_current_thread::scoped_restore_current_thread):
17012 Add assertion.
17013 (thread_apply_all_command, thread_select): Use
17014 switch_to_thread_if_alive.
17015 * infrun.c (proceed, restart_threads, handle_signal_stop)
17016 (switch_back_to_stepped_thread): Switch current thread before
17017 calling target methods.
17018
17019 2020-01-10 Pedro Alves <palves@redhat.com>
17020
17021 * inferior.c (switch_to_inferior_no_thread): New function,
17022 factored out from ...
17023 (inferior_command): ... here.
17024 * inferior.h (switch_to_inferior_no_thread): Declare.
17025 * mi/mi-main.c (run_one_inferior): Use
17026 switch_to_inferior_no_thread.
17027
17028 2020-01-10 Pedro Alves <palves@redhat.com>
17029
17030 * infcmd.c (kill_command): Remove dead code.
17031
17032 2020-01-10 Pedro Alves <palves@redhat.com>
17033
17034 * remote.c (remote_target::mourn_inferior): No longer check
17035 whether the target is running.
17036
17037 2020-01-10 Pedro Alves <palves@redhat.com>
17038
17039 * corelow.c (core_target::has_execution): Change parameter type to
17040 inferior pointer.
17041 * inferior.c (number_of_live_inferiors): Use
17042 inferior::has_execution instead of target_has_execution_1.
17043 * inferior.h (inferior::has_execution): New.
17044 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17045 inferior::has_execution instead of target_has_execution_1.
17046 * process-stratum-target.c
17047 (process_stratum_target::has_execution): Change parameter type to
17048 inferior pointer. Check the inferior's PID instead of
17049 inferior_ptid.
17050 * process-stratum-target.h
17051 (process_stratum_target::has_execution): Change parameter type to
17052 inferior pointer.
17053 * record-full.c (record_full_core_target::has_execution): Change
17054 parameter type to inferior pointer.
17055 * target.c (target_has_execution_1): Change parameter type to
17056 inferior pointer.
17057 (target_has_execution_current): Adjust.
17058 * target.h (target_ops::has_execution): Change parameter type to
17059 inferior pointer.
17060 (target_has_execution_1): Change parameter type to inferior
17061 pointer. Change return type to bool.
17062 * tracefile.h (tracefile_target::has_execution): Change parameter
17063 type to inferior pointer.
17064
17065 2020-01-10 Pedro Alves <palves@redhat.com>
17066
17067 * exceptions.c (print_flush): Remove current_top_target() check.
17068
17069 2020-01-10 Pedro Alves <palves@redhat.com>
17070
17071 * remote.c (show_remote_exec_file): Show the current inferior's
17072 exec-file instead of the command variable's value.
17073
17074 2020-01-10 Pedro Alves <palves@redhat.com>
17075
17076 * record-full.c (record_full_resume_ptid): New global.
17077 (record_full_target::resume): Set it.
17078 (record_full_wait_1): Use record_full_resume_ptid instead of
17079 inferior_ptid.
17080
17081 2020-01-10 Pedro Alves <palves@redhat.com>
17082
17083 * gdbthread.h (scoped_restore_current_thread)
17084 <dont_restore, restore, m_dont_restore>: Declare.
17085 * thread.c (thread_alive): Add assertion. Return bool.
17086 (switch_to_thread_if_alive): New.
17087 (prune_threads): Switch inferior/thread.
17088 (print_thread_info_1): Switch thread before calling target methods.
17089 (scoped_restore_current_thread::restore): New, factored out from
17090 ...
17091 (scoped_restore_current_thread::~scoped_restore_current_thread):
17092 ... this.
17093 (scoped_restore_current_thread::scoped_restore_current_thread):
17094 Add assertion.
17095 (thread_apply_all_command, thread_select): Use
17096 switch_to_thread_if_alive.
17097
17098 2020-01-10 George Barrett <bob@bob131.so>
17099
17100 * stap-probe.c (stap_modify_semaphore): Don't check for null
17101 semaphores.
17102 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17103 for null semaphores.
17104
17105 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17106
17107 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17108 all source windows, and maintain horizontal scroll status while
17109 doing so.
17110
17111 2020-01-09 Tom Tromey <tom@tromey.com>
17112
17113 PR tui/18932:
17114 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17115 update_source_window, not print_source_lines.
17116
17117 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17118
17119 * tui/tui.c (tui_enable): Register tui hooks after calling
17120 tui_display_main.
17121
17122 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17123
17124 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17125
17126 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17127
17128 * thread.c (print_thread_info_1): Fix indentation.
17129
17130 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17131
17132 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17133 unique_xmalloc_ptr outside the if to always free the demangled name.
17134
17135 2020-01-08 Tom Tromey <tromey@adacore.com>
17136
17137 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17138 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17139 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17140 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17141 Remove.
17142 (section_offsets): New typedef.
17143 * symtab.c (fixup_section, get_msymbol_address): Update.
17144 * symmisc.c (dump_msymbols): Update.
17145 * symfile.h (relative_addr_info_to_section_offsets)
17146 (symfile_map_offsets_to_segments): Update.
17147 * symfile.c (build_section_addr_info_from_objfile)
17148 (init_objfile_sect_indices): Update.
17149 (struct place_section_arg): Change type of "offsets".
17150 (place_section): Update.
17151 (relative_addr_info_to_section_offsets): Change type of
17152 "section_offsets". Remove "num_sections" parameter.
17153 (default_symfile_offsets, syms_from_objfile_1)
17154 (set_objfile_default_section_offset): Update.
17155 (reread_symbols): No need to preserve section offsets by hand.
17156 (symfile_map_offsets_to_segments): Change type of "offsets".
17157 * stap-probe.c (relocate_address): Update.
17158 * stabsread.h (process_one_symbol): Update.
17159 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17160 (solib_target_relocate_section_addresses): Update.
17161 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17162 Update.
17163 * solib-frv.c (frv_relocate_main_executable): Update.
17164 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17165 * solib-aix.c (solib_aix_get_section_offsets): Change return
17166 type.
17167 (solib_aix_solib_create_inferior_hook): Update.
17168 * remote.c (remote_target::get_offsets): Update.
17169 * psymtab.c (find_pc_sect_psymtab): Update.
17170 * psympriv.h (struct partial_symbol) <address, text_low,
17171 text_high>: Update.
17172 * objfiles.h (obj_section_offset): Update.
17173 (struct objfile) <section_offsets>: Change type.
17174 <num_sections>: Remove.
17175 (objfile_relocate): Update.
17176 * objfiles.c (entry_point_address_query): Update
17177 (relocate_one_symbol): Change type of "section_offsets".
17178 (objfile_relocate1, objfile_relocate1): Change type of
17179 "new_offsets".
17180 (objfile_rebase1): Update.
17181 * mipsread.c (mipscoff_symfile_read): Update.
17182 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17183 parameter.
17184 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17185 (parse_external, psymtab_to_symtab_1): Update.
17186 * machoread.c (macho_symfile_offsets): Update.
17187 * ia64-tdep.c (ia64_find_unwind_table): Update.
17188 * hppa-tdep.c (read_unwind_info): Update.
17189 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17190 * dwarf2read.c (create_addrmap_from_index)
17191 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17192 (process_psymtab_comp_unit_reader, add_partial_symbol)
17193 (add_partial_subprogram, process_full_comp_unit)
17194 (read_file_scope, read_func_scope, read_lexical_block_scope)
17195 (read_call_site_scope, dwarf2_rnglists_process)
17196 (dwarf2_ranges_process, dwarf2_ranges_read)
17197 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17198 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17199 Update.
17200 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17201 Update.
17202 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17203 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17204 (process_one_symbol): Change type of "section_offsets".
17205 * ctfread.c (get_objfile_text_range): Update.
17206 * coffread.c (coff_symtab_read, enter_linenos)
17207 (process_coff_symbol): Update.
17208 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17209 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17210
17211 2020-01-08 Tom Tromey <tromey@adacore.com>
17212
17213 * dwarf2read.c (parse_macro_definition): Use std::string.
17214 (parse_macro_definition): Likewise.
17215
17216 2020-01-08 Tom Tromey <tromey@adacore.com>
17217
17218 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17219 (ATTR_ALLOC_CHUNK): Remove.
17220
17221 2020-01-08 Tom Tromey <tromey@adacore.com>
17222
17223 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17224
17225 2020-01-08 Tom Tromey <tromey@adacore.com>
17226
17227 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17228 (dwarf2_compute_name, open_dwo_file): Likewise.
17229 (process_enumeration_scope): Use std::vector.
17230 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17231 (partial_die_info::fixup, dwarf2_start_subfile)
17232 (guess_full_die_structure_name, dwarf2_name): Likewise.
17233 (determine_prefix): Update.
17234 (guess_full_die_structure_name): Make return type const.
17235 (partial_die_full_name): Return unique_xmalloc_ptr.
17236 (DW_FIELD_ALLOC_CHUNK): Remove.
17237
17238 2020-01-07 Tom Tromey <tromey@adacore.com>
17239
17240 PR build/24937:
17241 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17242
17243 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17244
17245 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17246
17247 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17248
17249 * stack.c (print_frame_info): Move disassemble_next_line code
17250 inside source_print block.
17251
17252 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17253
17254 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17255 gdb/signals.h, as we are now using native signal symbols.
17256
17257 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17258
17259 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17260 overflow by an early check of content vs threshold.
17261 * tui/tui-source.c (tui_source_window::line_is_displayed):
17262 Likewise.
17263
17264 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17265
17266 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17267
17268 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17269
17270 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17271 export table if no section contains it's RVA.
17272
17273 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17274
17275 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17276
17277 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17278
17279 * source.c (print_source_lines_base): Set last_line_listed.
17280
17281 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17282
17283 * tui/tui-disasm.c: Remove trailing spaces.
17284
17285 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17286 Pedro Alves <palves@redhat.com>
17287
17288 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17289 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17290 (windows_gdb_signal_to_target): New function, uses the above
17291 enumeration to convert GDB internal signal codes to equivalent
17292 Windows codes.
17293 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17294 * windows-nat.c: Include "gdb_wait.h".
17295 (get_windows_debug_event): Extract the fatal exception from the
17296 exit status and convert to the equivalent Posix signal number.
17297 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17298 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17299 * gdbsupport/gdb_wait.c: New file, implements
17300 windows_status_to_termsig.
17301 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17302 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17303
17304 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17305
17306 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17307 show_layout.
17308
17309 2020-01-05 Luis Machado <luis.machado@linaro.org>
17310
17311 * aarch64-linux-nat.c
17312 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17313 and bfd_mach_aarch64.
17314
17315 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17316
17317 * ui-file.c (stdio_file::can_emit_style_escape)
17318 (tee_file::can_emit_style_escape): Ensure style is used also on
17319 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17320 to gdb_stdout.
17321 * main.c (set_gdb_data_directory): Use file style to output the
17322 warning that the given pathname is not a directory.
17323 * top.c (show_history_filename, gdb_safe_append_history)
17324 (show_gdb_datadir): Use file style.
17325
17326 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17327
17328 * solib-target.c (struct lm_info_target):
17329 Change offsets to be a unique_xmalloc_ptr.
17330 (solib_target_relocate_section_addresses): Update.
17331
17332 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17333
17334 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17335
17336 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17337
17338 * MAINTAINERS (Write After Approval): Add myself.
17339
17340 2020-01-02 Luis Machado <luis.machado@linaro.org>
17341
17342 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17343 Cell BE architecture.
17344 * target.h (struct target_ops) <thread_architecture>: Likewise.
17345
17346 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17347
17348 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17349
17350 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17351
17352 * MAINTAINERS (Write After Approval): Add myself.
17353
17354 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17355
17356 * gdbarch.sh: Update copyright year range of generated files.
17357
17358 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17359
17360 Update copyright year range in all GDB files.
17361
17362 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17363
17364 * copyright.py: Convert to Python 3.
17365
17366 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17367
17368 * copyright.py: Adapt after move of gnulib directory from gdb
17369 directory to toplevel directory.
17370
17371 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17372
17373 * copyright.py (main): Exit if run from the wrong directory.
17374
17375 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17376
17377 * top.c (print_gdb_version): Change copyright year to 2020.
17378
17379 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17380
17381 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17382
17383 For older changes see ChangeLog-2019.
17384 \f
17385 Local Variables:
17386 mode: change-log
17387 left-margin: 8
17388 fill-column: 74
17389 version-control: never
17390 coding: utf-8
17391 End:
This page took 0.354972 seconds and 5 git commands to generate.