[gdb] Improve early exits for env var in debuginfod-support.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-18 Tom de Vries <tdevries@suse.de>
2
3 * debuginfod-support.c (debuginfod_source_query)
4 (debuginfod_debuginfo_query): Also do early exit if
5 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
6
7 2020-11-18 Tom de Vries <tdevries@suse.de>
8
9 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
10 warning.
11
12 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * gdbtypes.h (get_array_bounds): Return bool, adjust some
15 callers. Move doc here.
16 * gdbtypes.c (get_array_bounds): Return bool
17
18 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
21 assert.
22 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
23 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
24 case to the default.
25
26 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * printcmd.c: Include 'safe-ctype.c'.
29 (skip_over_slash_fmt): New function.
30 (print_command_completer): Call skip_over_slash_fmt.
31 (display_and_x_command_completer): New function.
32 (_initialize_printcmd): Add command completion for 'x' and
33 'display'.
34
35 2020-11-16 Pedro Alves <pedro@palves.net>
36
37 * frame.c (get_prev_frame): Move get_frame_id call from here ...
38 (get_prev_frame_always_1): ... to here.
39 * inline-frame.c (inline_frame_this_id): Mention
40 get_prev_frame_always_1 in comment.
41
42 2020-11-15 Joel Brobecker <brobecker@adacore.com>
43
44 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
45 handling.
46 (value_less): Add fixed-point handling.
47
48 2020-11-15 Joel Brobecker <brobecker@adacore.com>
49
50 * eval.c (binop_promote): Add fixed-point type handling.
51 * valarith.c (fixed_point_binop): New function.
52 (scalar_binop): Add fixed-point type handling.
53 (value_neg): Add fixed-point type handling.
54 * valops.c (value_cast_to_fixed_point): New function.
55 (value_cast): Add fixed-point type handling.
56
57 2020-11-15 Joel Brobecker <brobecker@adacore.com>
58
59 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
60 range types.
61 * c-typeprint.c (c_type_print_varspec_prefix)
62 (c_type_print_varspec_suffix, c_type_print_base_1): Add
63 TYPE_CODE_FIXED_POINT handling.
64 * p-typeprint.c (pascal_type_print_varspec_prefix)
65 (pascal_type_print_varspec_suffix): Likewise.
66 * typeprint.c (print_type_fixed_point): New function.
67 * typeprint.h (print_type_fixed_point): Add declaration.
68
69 2020-11-15 Joel Brobecker <brobecker@adacore.com>
70
71 * printcmd.c (print_scalar_formatted): Add fixed-point type
72 handling when options->format is set.
73
74 2020-11-15 Joel Brobecker <brobecker@adacore.com>
75
76 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
77 * dwarf2/read.c (get_dwarf2_rational_constant)
78 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
79 (has_zero_over_zero_small_attribute): New functions.
80 read_base_type, set_die_type): Add fixed-point type handling.
81 * gdb-gdb.py.in: Add fixed-point type handling.
82 * gdbtypes.c: #include "gmp-utils.h".
83 (create_range_type, set_type_code): Add fixed-point type handling.
84 (init_fixed_point_type): New function.
85 (is_integral_type, is_scalar_type): Add fixed-point type handling.
86 (print_fixed_point_type_info): New function.
87 (recursive_dump_type, copy_type_recursive): Add fixed-point type
88 handling.
89 (fixed_point_type_storage): New typedef.
90 (fixed_point_objfile_key): New static global.
91 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
92 (fixed_point_type_base_type, fixed_point_scaling_factor): New
93 functions.
94 * gdbtypes.h: #include "gmp-utils.h".
95 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
96 (union type_specific) <fixed_point_info>: New field.
97 (struct fixed_point_type_info): New struct.
98 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
99 (init_fixed_point_type, is_fixed_point_type)
100 (fixed_point_type_base_type, fixed_point_scaling_factor)
101 (allocate_fixed_point_type_info): Add declarations.
102 * valprint.c (generic_val_print_fixed_point): New function.
103 (generic_value_print): Add fixed-point type handling.
104 * value.c (value_as_address, unpack_long): Add fixed-point type
105 handling.
106
107 2020-11-15 Joel Brobecker <brobecker@adacore.com>
108
109 * utils.h (uinteger_pow): Add declaration.
110 * utils.c (uinteger_pow): Moved here (without changes)...
111 * valarith.c (uinteger_pow): ... from here.
112
113 2020-11-15 Joel Brobecker <brobecker@adacore.com>
114
115 * gmp-utils.h, gmp-utils.c: New file.
116 * unittests/gmp-utils-selftests.c: New file.
117 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
118 unittests/gmp-utils-selftests.c.
119 (COMMON_SFILES) Add gmp-utils.c.
120 (HFILES_NO_SRCDIR): Add gmp-utils.h.
121
122 2020-11-15 Joel Brobecker <brobecker@adacore.com>
123
124 * configure.ac: Generate an error if a usable GMP library
125 could not be found.
126 * configure: Regenerate.
127
128 2020-11-15 Joel Brobecker <brobecker@adacore.com>
129
130 * configure.ac: Add support for --with-libgmp-prefix.
131 * Makefile.in (LIBGMP): New variable.
132 (CLIBS): Include $(LIBGMP).
133 * configure, config.in: Regenerate
134
135 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 PR cli/26879
138 * f-exp.y (COMPLETE): New token.
139 (exp): Two new rules for tab-completion.
140 (saw_name_at_eof): New static global.
141 (last_was_structop): Likewise.
142 (yylex): Set new variables, and return COMPLETE token at the end
143 of the input stream in some cases.
144
145 2020-11-14 Tom Tromey <tom@tromey.com>
146
147 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
148
149 2020-11-14 Tom Tromey <tom@tromey.com>
150
151 * opencl-lang.c (opencl_component_ref): Make "comps" const.
152
153 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
156
157 2020-11-13 Tom Tromey <tom@tromey.com>
158
159 * c-lang.c (convert_ucn, convert_octal, convert_hex)
160 (convert_escape, parse_one_string): Constify.
161
162 2020-11-13 Keith Seitz <keiths@redhat.com>
163
164 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
165 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
166 outside of ELF segments" warning for debugin
167
168 2020-11-13 Keith Seitz <keiths@redhat.com>
169
170 PR gdb/23034
171 * elfread.c (elf_symfile_segments): Output a BFD file name
172 for the "Loadable section ... outside of ELF segments" warning.
173
174 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
175
176 PR gdb/26835
177 * arm-tdep.c (class arm_instruction_reader): New.
178 (target_arm_instruction_reader): New.
179 (arm_analyze_prologue): Add instruction reader parameter and use
180 it. Use arm_expand_immediate.
181 (class target_arm_instruction_reader): Adjust.
182 (arm_skip_prologue): Adjust.
183 (arm_expand_immediate): New.
184 (arm_scan_prologue): Adjust.
185 (arm_analyze_prologue_test): New.
186 (class test_arm_instruction_reader): New.
187
188 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * f-lang.c (fortran_argument_convert): Add declaration. Add
191 header comment, taken from f-lang.h. Make static.
192 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
193 (fortran_argument_convert): Delete declaration.
194
195 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * ada-exp.y (find_primitive_type): Make parameter const.
198 * ada-lang.c (enum ada_primitive_types): Delete.
199 (ada_language::language_arch_info): Update.
200 * c-lang.c (enum c_primitive_types): Delete.
201 (c_language_arch_info): Update.
202 (enum cplus_primitive_types): Delete.
203 (cplus_language::language_arch_info): Update.
204 * d-lang.c (enum d_primitive_types): Delete.
205 (d_language::language_arch_info): Update.
206 * f-lang.c (enum f_primitive_types): Delete.
207 (f_language::language_arch_info): Update.
208 * go-lang.c (enum go_primitive_types): Delete.
209 (go_language::language_arch_info): Update.
210 * language.c (auto_or_unknown_language::language_arch_info):
211 Update.
212 (language_gdbarch_post_init): Use obstack_new, use array indexing.
213 (language_string_char_type): Add header comment, call function in
214 language_arch_info.
215 (language_bool_type): Likewise
216 (language_arch_info::bool_type): Define.
217 (language_lookup_primitive_type_1): Delete.
218 (language_lookup_primitive_type): Rewrite as a templated function
219 to call function in language_arch_info, then instantiate twice.
220 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
221 (language_arch_info::lookup_primitive_type_and_symbol): Define.
222 (language_arch_info::lookup_primitive_type): Define twice with
223 different signatures.
224 (language_arch_info::lookup_primitive_type_as_symbol): Define.
225 (language_lookup_primitive_type_as_symbol): Rewrite to call a
226 member function in language_arch_info.
227 * language.h (language_arch_info): Complete rewrite.
228 (language_lookup_primitive_type): Make templated.
229 * m2-lang.c (enum m2_primitive_types): Delete.
230 (m2_language::language_arch_info): Update.
231 * opencl-lang.c (OCL_P_TYPE): Delete.
232 (enum opencl_primitive_types): Delete.
233 (opencl_type_data): Delete.
234 (builtin_opencl_type): Delete.
235 (lookup_opencl_vector_type): Update.
236 (opencl_language::language_arch_info): Update, lots of content
237 moved from...
238 (build_opencl_types): ...here. This function is now deleted.
239 (_initialize_opencl_language): Delete.
240 * p-lang.c (enum pascal_primitive_types): Delete.
241 (pascal_language::language_arch_info): Update.
242 * rust-lang.c (enum rust_primitive_types): Delete.
243 (rust_language::language_arch_info): Update.
244
245 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
248 dwarf2_queue_guard.
249
250 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
253 comment.
254
255 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * dwarf2/read.c (dwarf_read_debug_printf,
258 dwarf_read_debug_printf_v): New macros, use throughout the file.
259
260 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
261
262 * arc-linux-tdep.c (collect_register): Populate "eret" by
263 "pc" value from the regcache when asked for "pc" value.
264
265 2020-11-12 Tom Tromey <tom@tromey.com>
266
267 PR rust/26799:
268 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
269 exist.
270
271 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * features/Makefile (XMLTOC): Add rx.xml.
274 (FEATURE_XMLFILES): Remove rx.xml.
275 (FEATURE_CFILES rule): Pass '-single-feature' flag.
276 * features/rx.c: Regenerate.
277 * features/rx.xml: Wrap in `target` tags, and reindent.
278 * target-descriptions.c (struct maint_print_c_tdesc_options): New
279 structure.
280 (maint_print_c_tdesc_opt_def): New typedef.
281 (maint_print_c_tdesc_opt_defs): New static global.
282 (make_maint_print_c_tdesc_options_def_group): New function.
283 (maint_print_c_tdesc_cmd): Make use of command line flags, only
284 print single feature C file for target descriptions containing a
285 single feature.
286 (maint_print_c_tdesc_cmd_completer): New function.
287 (_initialize_target_descriptions): Update call to register command
288 completer, and include command line flag in help text.
289
290 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
291
292 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
293 numbers.
294 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
295 enum values.
296
297 2020-11-10 Tom Tromey <tom@tromey.com>
298
299 * value.h (internalvar_name): Update.
300 * value.c (internalvar_name): Make return type const.
301
302 2020-11-10 Tom Tromey <tom@tromey.com>
303
304 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
305 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
306 const.
307
308 2020-11-10 Tom Tromey <tom@tromey.com>
309
310 * objc-lang.h (value_nsstring): Update.
311 * objc-lang.c (value_nsstring): Make "ptr" const.
312
313 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * expprint.c (print_subexp_funcall): Increment expression position
316 after reading argument count.
317 * f-lang.c (print_subexp_f): Skip over opcode before calling
318 common function.
319 (dump_subexp_body_f): Likewise.
320
321 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
322
323 PR python/26832
324 * configure: Regenerate.
325 * configure.ac: Check for python modules ctypes instead of
326 itertools.
327
328 2020-11-06 Pedro Alves <pedro@palves.net>
329
330 * macroexp.c (struct macro_buffer): Split in two classes. Add
331 uses adjusted.
332 (struct shared_macro_buffer): New, factored out from struct
333 macro_buffer.
334 (struct growable_macro_buffer): New, factored out from struct
335 macro_buffer.
336 (set_token, get_comment, get_identifier, get_pp_number)
337 (get_character_constant, get_string_literal, get_punctuator)
338 (get_next_token_for_substitution): Constify parameters.
339 (substitute_args): Constify locals.
340
341 2020-11-05 Tom Tromey <tom@tromey.com>
342
343 * dwarf2/read.c (read_cutu_die_from_dwo)
344 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
345 (build_type_psymtabs_1): Update.
346 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
347 parameter.
348 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
349 Don't read section. Add assert.
350
351 2020-11-04 Tom Tromey <tromey@adacore.com>
352
353 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
354
355 2020-11-04 Tom Tromey <tromey@adacore.com>
356
357 * ada-typeprint.c (ada_print_type): Handle __T types.
358
359 2020-11-04 Tom Tromey <tromey@adacore.com>
360
361 * dwarf2/read.c (add_partial_symbol, process_die):
362 Handle DW_TAG_array_type.
363 (is_type_tag_for_partial): Add "lang" parameter.
364 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
365
366 2020-11-04 Tom Tromey <tromey@adacore.com>
367
368 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
369
370 2020-11-04 Tom Tromey <tromey@adacore.com>
371
372 * dwarf2/read.c (read_array_type): Only apply stride to innermost
373 array.
374
375 2020-11-04 Tom Tromey <tromey@adacore.com>
376
377 * gdbtypes.c (update_static_array_size): Handle bit stride.
378
379 2020-11-04 Tom Tromey <tromey@adacore.com>
380
381 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
382
383 2020-11-04 Tom Tromey <tromey@adacore.com>
384
385 * ada-lang.c (ada_is_any_packed_array_type): New function.
386 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
387
388 2020-11-04 Tom Tromey <tromey@adacore.com>
389
390 * dwarf2/read.c (recognize_bound_expression)
391 (quirk_ada_thick_pointer): New functions.
392 (read_array_type): Call quirk_ada_thick_pointer.
393 (set_die_type): Add "skip_data_location" parameter.
394 (quirk_ada_thick_pointer): New function.
395 (process_structure_scope): Call quirk_ada_thick_pointer.
396 * ada-lang.c (ada_is_unconstrained_packed_array_type)
397 (decode_packed_array_bitsize): Handle thick pointers without
398 parallel types.
399 (ada_is_gnat_encoded_packed_array_type): Rename from
400 ada_is_packed_array_type.
401 (ada_is_constrained_packed_array_type): Update.
402 * ada-valprint.c (ada_val_print_gnat_array): Remove.
403 (ada_value_print_1): Use ada_get_decoded_value.
404
405 2020-11-04 Tom Tromey <tromey@adacore.com>
406
407 * ada-lang.c (recursively_update_array_bitsize): New function.
408 (decode_constrained_packed_array_type): Call it.
409
410 2020-11-04 Tom Tromey <tromey@adacore.com>
411
412 * ada-lang.c (to_fixed_array_type): Error if
413 decode_constrained_packed_array_type returns NULL.
414
415 2020-11-04 Tom Tromey <tromey@adacore.com>
416
417 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
418
419 2020-11-02 Tom Tromey <tromey@adacore.com>
420
421 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
422 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
423 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
424 * amd64-ravenscar-thread.c: New file.
425 * amd64-ravenscar-thread.h: New file.
426 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
427 * configure.tgt (amd64_tobjs): Add ravenscar objects.
428
429 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * main.c (execute_cmdargs): New function.
432 (captured_main_1): Make use of execute_cmdargs.
433
434 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * NEWS: Mention changes to config file search path.
437 * main.c
438
439 2020-11-02 Tom Tromey <tromey@adacore.com>
440
441 * python/python.c: Consolidate two HAVE_PYTHON blocks.
442 (python_GdbModuleDef): Move earlier. Now static.
443 (do_start_initialization): Consolidate some IS_PY3K blocks.
444
445 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
446
447 * aarch64-linux-tdep.c: Fix indentation.
448 * aarch64-ravenscar-thread.c: Fix indentation.
449 * aarch64-tdep.c: Fix indentation.
450 * aarch64-tdep.h: Fix indentation.
451 * ada-lang.c: Fix indentation.
452 * ada-lang.h: Fix indentation.
453 * ada-tasks.c: Fix indentation.
454 * ada-typeprint.c: Fix indentation.
455 * ada-valprint.c: Fix indentation.
456 * ada-varobj.c: Fix indentation.
457 * addrmap.c: Fix indentation.
458 * addrmap.h: Fix indentation.
459 * agent.c: Fix indentation.
460 * aix-thread.c: Fix indentation.
461 * alpha-bsd-nat.c: Fix indentation.
462 * alpha-linux-tdep.c: Fix indentation.
463 * alpha-mdebug-tdep.c: Fix indentation.
464 * alpha-nbsd-tdep.c: Fix indentation.
465 * alpha-obsd-tdep.c: Fix indentation.
466 * alpha-tdep.c: Fix indentation.
467 * amd64-bsd-nat.c: Fix indentation.
468 * amd64-darwin-tdep.c: Fix indentation.
469 * amd64-linux-nat.c: Fix indentation.
470 * amd64-linux-tdep.c: Fix indentation.
471 * amd64-nat.c: Fix indentation.
472 * amd64-obsd-tdep.c: Fix indentation.
473 * amd64-tdep.c: Fix indentation.
474 * amd64-windows-tdep.c: Fix indentation.
475 * annotate.c: Fix indentation.
476 * arc-tdep.c: Fix indentation.
477 * arch-utils.c: Fix indentation.
478 * arch/arm-get-next-pcs.c: Fix indentation.
479 * arch/arm.c: Fix indentation.
480 * arm-linux-nat.c: Fix indentation.
481 * arm-linux-tdep.c: Fix indentation.
482 * arm-nbsd-tdep.c: Fix indentation.
483 * arm-pikeos-tdep.c: Fix indentation.
484 * arm-tdep.c: Fix indentation.
485 * arm-tdep.h: Fix indentation.
486 * arm-wince-tdep.c: Fix indentation.
487 * auto-load.c: Fix indentation.
488 * auxv.c: Fix indentation.
489 * avr-tdep.c: Fix indentation.
490 * ax-gdb.c: Fix indentation.
491 * ax-general.c: Fix indentation.
492 * bfin-linux-tdep.c: Fix indentation.
493 * block.c: Fix indentation.
494 * block.h: Fix indentation.
495 * blockframe.c: Fix indentation.
496 * bpf-tdep.c: Fix indentation.
497 * break-catch-sig.c: Fix indentation.
498 * break-catch-syscall.c: Fix indentation.
499 * break-catch-throw.c: Fix indentation.
500 * breakpoint.c: Fix indentation.
501 * breakpoint.h: Fix indentation.
502 * bsd-uthread.c: Fix indentation.
503 * btrace.c: Fix indentation.
504 * build-id.c: Fix indentation.
505 * buildsym-legacy.h: Fix indentation.
506 * buildsym.c: Fix indentation.
507 * c-typeprint.c: Fix indentation.
508 * c-valprint.c: Fix indentation.
509 * c-varobj.c: Fix indentation.
510 * charset.c: Fix indentation.
511 * cli/cli-cmds.c: Fix indentation.
512 * cli/cli-decode.c: Fix indentation.
513 * cli/cli-decode.h: Fix indentation.
514 * cli/cli-script.c: Fix indentation.
515 * cli/cli-setshow.c: Fix indentation.
516 * coff-pe-read.c: Fix indentation.
517 * coffread.c: Fix indentation.
518 * compile/compile-cplus-types.c: Fix indentation.
519 * compile/compile-object-load.c: Fix indentation.
520 * compile/compile-object-run.c: Fix indentation.
521 * completer.c: Fix indentation.
522 * corefile.c: Fix indentation.
523 * corelow.c: Fix indentation.
524 * cp-abi.h: Fix indentation.
525 * cp-namespace.c: Fix indentation.
526 * cp-support.c: Fix indentation.
527 * cp-valprint.c: Fix indentation.
528 * cris-linux-tdep.c: Fix indentation.
529 * cris-tdep.c: Fix indentation.
530 * darwin-nat-info.c: Fix indentation.
531 * darwin-nat.c: Fix indentation.
532 * darwin-nat.h: Fix indentation.
533 * dbxread.c: Fix indentation.
534 * dcache.c: Fix indentation.
535 * disasm.c: Fix indentation.
536 * dtrace-probe.c: Fix indentation.
537 * dwarf2/abbrev.c: Fix indentation.
538 * dwarf2/attribute.c: Fix indentation.
539 * dwarf2/expr.c: Fix indentation.
540 * dwarf2/frame.c: Fix indentation.
541 * dwarf2/index-cache.c: Fix indentation.
542 * dwarf2/index-write.c: Fix indentation.
543 * dwarf2/line-header.c: Fix indentation.
544 * dwarf2/loc.c: Fix indentation.
545 * dwarf2/macro.c: Fix indentation.
546 * dwarf2/read.c: Fix indentation.
547 * dwarf2/read.h: Fix indentation.
548 * elfread.c: Fix indentation.
549 * eval.c: Fix indentation.
550 * event-top.c: Fix indentation.
551 * exec.c: Fix indentation.
552 * exec.h: Fix indentation.
553 * expprint.c: Fix indentation.
554 * f-lang.c: Fix indentation.
555 * f-typeprint.c: Fix indentation.
556 * f-valprint.c: Fix indentation.
557 * fbsd-nat.c: Fix indentation.
558 * fbsd-tdep.c: Fix indentation.
559 * findvar.c: Fix indentation.
560 * fork-child.c: Fix indentation.
561 * frame-unwind.c: Fix indentation.
562 * frame-unwind.h: Fix indentation.
563 * frame.c: Fix indentation.
564 * frv-linux-tdep.c: Fix indentation.
565 * frv-tdep.c: Fix indentation.
566 * frv-tdep.h: Fix indentation.
567 * ft32-tdep.c: Fix indentation.
568 * gcore.c: Fix indentation.
569 * gdb_bfd.c: Fix indentation.
570 * gdbarch.sh: Fix indentation.
571 * gdbarch.c: Re-generate
572 * gdbarch.h: Re-generate.
573 * gdbcore.h: Fix indentation.
574 * gdbthread.h: Fix indentation.
575 * gdbtypes.c: Fix indentation.
576 * gdbtypes.h: Fix indentation.
577 * glibc-tdep.c: Fix indentation.
578 * gnu-nat.c: Fix indentation.
579 * gnu-nat.h: Fix indentation.
580 * gnu-v2-abi.c: Fix indentation.
581 * gnu-v3-abi.c: Fix indentation.
582 * go32-nat.c: Fix indentation.
583 * guile/guile-internal.h: Fix indentation.
584 * guile/scm-cmd.c: Fix indentation.
585 * guile/scm-frame.c: Fix indentation.
586 * guile/scm-iterator.c: Fix indentation.
587 * guile/scm-math.c: Fix indentation.
588 * guile/scm-ports.c: Fix indentation.
589 * guile/scm-pretty-print.c: Fix indentation.
590 * guile/scm-value.c: Fix indentation.
591 * h8300-tdep.c: Fix indentation.
592 * hppa-linux-nat.c: Fix indentation.
593 * hppa-linux-tdep.c: Fix indentation.
594 * hppa-nbsd-nat.c: Fix indentation.
595 * hppa-nbsd-tdep.c: Fix indentation.
596 * hppa-obsd-nat.c: Fix indentation.
597 * hppa-tdep.c: Fix indentation.
598 * hppa-tdep.h: Fix indentation.
599 * i386-bsd-nat.c: Fix indentation.
600 * i386-darwin-nat.c: Fix indentation.
601 * i386-darwin-tdep.c: Fix indentation.
602 * i386-dicos-tdep.c: Fix indentation.
603 * i386-gnu-nat.c: Fix indentation.
604 * i386-linux-nat.c: Fix indentation.
605 * i386-linux-tdep.c: Fix indentation.
606 * i386-nto-tdep.c: Fix indentation.
607 * i386-obsd-tdep.c: Fix indentation.
608 * i386-sol2-nat.c: Fix indentation.
609 * i386-tdep.c: Fix indentation.
610 * i386-tdep.h: Fix indentation.
611 * i386-windows-tdep.c: Fix indentation.
612 * i387-tdep.c: Fix indentation.
613 * i387-tdep.h: Fix indentation.
614 * ia64-libunwind-tdep.c: Fix indentation.
615 * ia64-libunwind-tdep.h: Fix indentation.
616 * ia64-linux-nat.c: Fix indentation.
617 * ia64-linux-tdep.c: Fix indentation.
618 * ia64-tdep.c: Fix indentation.
619 * ia64-tdep.h: Fix indentation.
620 * ia64-vms-tdep.c: Fix indentation.
621 * infcall.c: Fix indentation.
622 * infcmd.c: Fix indentation.
623 * inferior.c: Fix indentation.
624 * infrun.c: Fix indentation.
625 * iq2000-tdep.c: Fix indentation.
626 * language.c: Fix indentation.
627 * linespec.c: Fix indentation.
628 * linux-fork.c: Fix indentation.
629 * linux-nat.c: Fix indentation.
630 * linux-tdep.c: Fix indentation.
631 * linux-thread-db.c: Fix indentation.
632 * lm32-tdep.c: Fix indentation.
633 * m2-lang.c: Fix indentation.
634 * m2-typeprint.c: Fix indentation.
635 * m2-valprint.c: Fix indentation.
636 * m32c-tdep.c: Fix indentation.
637 * m32r-linux-tdep.c: Fix indentation.
638 * m32r-tdep.c: Fix indentation.
639 * m68hc11-tdep.c: Fix indentation.
640 * m68k-bsd-nat.c: Fix indentation.
641 * m68k-linux-nat.c: Fix indentation.
642 * m68k-linux-tdep.c: Fix indentation.
643 * m68k-tdep.c: Fix indentation.
644 * machoread.c: Fix indentation.
645 * macrocmd.c: Fix indentation.
646 * macroexp.c: Fix indentation.
647 * macroscope.c: Fix indentation.
648 * macrotab.c: Fix indentation.
649 * macrotab.h: Fix indentation.
650 * main.c: Fix indentation.
651 * mdebugread.c: Fix indentation.
652 * mep-tdep.c: Fix indentation.
653 * mi/mi-cmd-catch.c: Fix indentation.
654 * mi/mi-cmd-disas.c: Fix indentation.
655 * mi/mi-cmd-env.c: Fix indentation.
656 * mi/mi-cmd-stack.c: Fix indentation.
657 * mi/mi-cmd-var.c: Fix indentation.
658 * mi/mi-cmds.c: Fix indentation.
659 * mi/mi-main.c: Fix indentation.
660 * mi/mi-parse.c: Fix indentation.
661 * microblaze-tdep.c: Fix indentation.
662 * minidebug.c: Fix indentation.
663 * minsyms.c: Fix indentation.
664 * mips-linux-nat.c: Fix indentation.
665 * mips-linux-tdep.c: Fix indentation.
666 * mips-nbsd-tdep.c: Fix indentation.
667 * mips-tdep.c: Fix indentation.
668 * mn10300-linux-tdep.c: Fix indentation.
669 * mn10300-tdep.c: Fix indentation.
670 * moxie-tdep.c: Fix indentation.
671 * msp430-tdep.c: Fix indentation.
672 * namespace.h: Fix indentation.
673 * nat/fork-inferior.c: Fix indentation.
674 * nat/gdb_ptrace.h: Fix indentation.
675 * nat/linux-namespaces.c: Fix indentation.
676 * nat/linux-osdata.c: Fix indentation.
677 * nat/netbsd-nat.c: Fix indentation.
678 * nat/x86-dregs.c: Fix indentation.
679 * nbsd-nat.c: Fix indentation.
680 * nbsd-tdep.c: Fix indentation.
681 * nios2-linux-tdep.c: Fix indentation.
682 * nios2-tdep.c: Fix indentation.
683 * nto-procfs.c: Fix indentation.
684 * nto-tdep.c: Fix indentation.
685 * objfiles.c: Fix indentation.
686 * objfiles.h: Fix indentation.
687 * opencl-lang.c: Fix indentation.
688 * or1k-tdep.c: Fix indentation.
689 * osabi.c: Fix indentation.
690 * osabi.h: Fix indentation.
691 * osdata.c: Fix indentation.
692 * p-lang.c: Fix indentation.
693 * p-typeprint.c: Fix indentation.
694 * p-valprint.c: Fix indentation.
695 * parse.c: Fix indentation.
696 * ppc-linux-nat.c: Fix indentation.
697 * ppc-linux-tdep.c: Fix indentation.
698 * ppc-nbsd-nat.c: Fix indentation.
699 * ppc-nbsd-tdep.c: Fix indentation.
700 * ppc-obsd-nat.c: Fix indentation.
701 * ppc-ravenscar-thread.c: Fix indentation.
702 * ppc-sysv-tdep.c: Fix indentation.
703 * ppc64-tdep.c: Fix indentation.
704 * printcmd.c: Fix indentation.
705 * proc-api.c: Fix indentation.
706 * producer.c: Fix indentation.
707 * producer.h: Fix indentation.
708 * prologue-value.c: Fix indentation.
709 * prologue-value.h: Fix indentation.
710 * psymtab.c: Fix indentation.
711 * python/py-arch.c: Fix indentation.
712 * python/py-bpevent.c: Fix indentation.
713 * python/py-event.c: Fix indentation.
714 * python/py-event.h: Fix indentation.
715 * python/py-finishbreakpoint.c: Fix indentation.
716 * python/py-frame.c: Fix indentation.
717 * python/py-framefilter.c: Fix indentation.
718 * python/py-inferior.c: Fix indentation.
719 * python/py-infthread.c: Fix indentation.
720 * python/py-objfile.c: Fix indentation.
721 * python/py-prettyprint.c: Fix indentation.
722 * python/py-registers.c: Fix indentation.
723 * python/py-signalevent.c: Fix indentation.
724 * python/py-stopevent.c: Fix indentation.
725 * python/py-stopevent.h: Fix indentation.
726 * python/py-threadevent.c: Fix indentation.
727 * python/py-tui.c: Fix indentation.
728 * python/py-unwind.c: Fix indentation.
729 * python/py-value.c: Fix indentation.
730 * python/py-xmethods.c: Fix indentation.
731 * python/python-internal.h: Fix indentation.
732 * python/python.c: Fix indentation.
733 * ravenscar-thread.c: Fix indentation.
734 * record-btrace.c: Fix indentation.
735 * record-full.c: Fix indentation.
736 * record.c: Fix indentation.
737 * reggroups.c: Fix indentation.
738 * regset.h: Fix indentation.
739 * remote-fileio.c: Fix indentation.
740 * remote.c: Fix indentation.
741 * reverse.c: Fix indentation.
742 * riscv-linux-tdep.c: Fix indentation.
743 * riscv-ravenscar-thread.c: Fix indentation.
744 * riscv-tdep.c: Fix indentation.
745 * rl78-tdep.c: Fix indentation.
746 * rs6000-aix-tdep.c: Fix indentation.
747 * rs6000-lynx178-tdep.c: Fix indentation.
748 * rs6000-nat.c: Fix indentation.
749 * rs6000-tdep.c: Fix indentation.
750 * rust-lang.c: Fix indentation.
751 * rx-tdep.c: Fix indentation.
752 * s12z-tdep.c: Fix indentation.
753 * s390-linux-tdep.c: Fix indentation.
754 * score-tdep.c: Fix indentation.
755 * ser-base.c: Fix indentation.
756 * ser-mingw.c: Fix indentation.
757 * ser-uds.c: Fix indentation.
758 * ser-unix.c: Fix indentation.
759 * serial.c: Fix indentation.
760 * sh-linux-tdep.c: Fix indentation.
761 * sh-nbsd-tdep.c: Fix indentation.
762 * sh-tdep.c: Fix indentation.
763 * skip.c: Fix indentation.
764 * sol-thread.c: Fix indentation.
765 * solib-aix.c: Fix indentation.
766 * solib-darwin.c: Fix indentation.
767 * solib-frv.c: Fix indentation.
768 * solib-svr4.c: Fix indentation.
769 * solib.c: Fix indentation.
770 * source.c: Fix indentation.
771 * sparc-linux-tdep.c: Fix indentation.
772 * sparc-nbsd-tdep.c: Fix indentation.
773 * sparc-obsd-tdep.c: Fix indentation.
774 * sparc-ravenscar-thread.c: Fix indentation.
775 * sparc-tdep.c: Fix indentation.
776 * sparc64-linux-tdep.c: Fix indentation.
777 * sparc64-nbsd-tdep.c: Fix indentation.
778 * sparc64-obsd-tdep.c: Fix indentation.
779 * sparc64-tdep.c: Fix indentation.
780 * stabsread.c: Fix indentation.
781 * stack.c: Fix indentation.
782 * stap-probe.c: Fix indentation.
783 * stubs/ia64vms-stub.c: Fix indentation.
784 * stubs/m32r-stub.c: Fix indentation.
785 * stubs/m68k-stub.c: Fix indentation.
786 * stubs/sh-stub.c: Fix indentation.
787 * stubs/sparc-stub.c: Fix indentation.
788 * symfile-mem.c: Fix indentation.
789 * symfile.c: Fix indentation.
790 * symfile.h: Fix indentation.
791 * symmisc.c: Fix indentation.
792 * symtab.c: Fix indentation.
793 * symtab.h: Fix indentation.
794 * target-float.c: Fix indentation.
795 * target.c: Fix indentation.
796 * target.h: Fix indentation.
797 * tic6x-tdep.c: Fix indentation.
798 * tilegx-linux-tdep.c: Fix indentation.
799 * tilegx-tdep.c: Fix indentation.
800 * top.c: Fix indentation.
801 * tracefile-tfile.c: Fix indentation.
802 * tracepoint.c: Fix indentation.
803 * tui/tui-disasm.c: Fix indentation.
804 * tui/tui-io.c: Fix indentation.
805 * tui/tui-regs.c: Fix indentation.
806 * tui/tui-stack.c: Fix indentation.
807 * tui/tui-win.c: Fix indentation.
808 * tui/tui-winsource.c: Fix indentation.
809 * tui/tui.c: Fix indentation.
810 * typeprint.c: Fix indentation.
811 * ui-out.h: Fix indentation.
812 * unittests/copy_bitwise-selftests.c: Fix indentation.
813 * unittests/memory-map-selftests.c: Fix indentation.
814 * utils.c: Fix indentation.
815 * v850-tdep.c: Fix indentation.
816 * valarith.c: Fix indentation.
817 * valops.c: Fix indentation.
818 * valprint.c: Fix indentation.
819 * valprint.h: Fix indentation.
820 * value.c: Fix indentation.
821 * value.h: Fix indentation.
822 * varobj.c: Fix indentation.
823 * vax-tdep.c: Fix indentation.
824 * windows-nat.c: Fix indentation.
825 * windows-tdep.c: Fix indentation.
826 * xcoffread.c: Fix indentation.
827 * xml-syscall.c: Fix indentation.
828 * xml-tdesc.c: Fix indentation.
829 * xstormy16-tdep.c: Fix indentation.
830 * xtensa-config.c: Fix indentation.
831 * xtensa-linux-nat.c: Fix indentation.
832 * xtensa-linux-tdep.c: Fix indentation.
833 * xtensa-tdep.c: Fix indentation.
834
835 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
836 Craig Blackmore <craig.blackmore@embecosm.com>
837
838 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
839 as an unsigned value.
840
841 2020-11-01 Tom Tromey <tom@tromey.com>
842
843 * dbxread.c (dbx_end_psymtab): Update.
844 * dwarf2/read.c (process_psymtab_comp_unit_reader)
845 (build_type_psymtabs_reader): Update.
846 * xcoffread.c (xcoff_end_psymtab): Update.
847 * ctfread.c (scan_partial_symbols): Update.
848 * psymtab.c (sort_pst_symbols): Remove.
849 (partial_symtab::end): Rename from end_psymtab_common. Inline
850 sort_pst_symbols.
851 * psympriv.h (struct partial_symtab) <end>: New method.
852 (end_psymtab_common): Don't declare.
853
854 2020-11-01 Tom Tromey <tom@tromey.com>
855
856 * symmisc.c (count_psyms): New function.
857 (print_objfile_statistics): Use it.
858 * psymtab.c (append_psymbol_to_list): Remove.
859 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
860 * objfiles.h (struct objstats) <n_psyms>: Remove.
861
862 2020-11-01 Tom Tromey <tom@tromey.com>
863
864 * dbxread.c (dbx_end_psymtab): Update.
865 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
866 (build_type_psymtabs_reader): Update.
867 * xcoffread.c (xcoff_end_psymtab): Update.
868 * ctfread.c (scan_partial_symbols): Update.
869 * psympriv.h (end_psymtab_common): Update.
870 * psymtab.c (end_psymtab_common): Remove objfile parameter.
871 (sort_pst_symbols): Likewise.
872
873 2020-11-01 Tom Tromey <tom@tromey.com>
874
875 * dbxread.c (dbx_symfile_read): Update.
876 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
877 * xcoffread.c (xcoff_initial_scan): Update.
878 * psympriv.h (init_psymbol_list): Don't declare.
879 * psymtab.c (init_psymbol_list): Remove.
880
881 2020-11-01 Joel Brobecker <brobecker@adacore.com>
882
883 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
884 gnat_encoded_fixed_type_info. Update all callers.
885
886 2020-11-01 Joel Brobecker <brobecker@adacore.com>
887
888 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
889 line too long.
890
891 2020-11-01 Joel Brobecker <brobecker@adacore.com>
892
893 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
894 cast_from_fixed. Update all callers.
895 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
896 Update all callers.
897 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
898 Update all callers.
899 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
900 ada_scaling_factor.
901 * ada-typeprint.c: Replace call to ada_scaling_factor by call
902 to print_gnat_encoded_fixed_point_type.
903 * ada-valprint.c: Likewise.
904
905 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
908 (debug_prefixed_printf): Add check of debug_displaced flag.
909 * linux-nat.c (linux_nat_debug_printf): Add check of
910 debug_linux_nat flag.
911
912 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * infrun.c (infrun_debug_printf_1): Remove.
915 (displaced_debug_printf_1): Remove.
916 (stop_all_threads): Use debug_prefixed_printf.
917 * infrun.h (infrun_debug_printf_1): Remove.
918 (infrun_debug_printf): Use debug_prefixed_printf.
919 (displaced_debug_printf_1): Remove.
920 (displaced_debug_printf): Use debug_prefixed_printf.
921 * linux-nat.c (linux_nat_debug_printf_1): Remove.
922 (linux_nat_debug_printf): Use debug_prefixed_printf.
923
924 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * configure: Re-generate.
927 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
928 AC_LANG_PROGRAM.
929
930 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * configure: Re-generate.
933
934 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * configure: Re-generate.
937
938 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * configure: Re-generate.
941
942 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
943
944 * configure: Re-generate.
945
946 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * acinclude.m4: Modernize.
949 * configure: Re-generate.
950
951 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * configure.ac: Modernize.
954 * configure: Re-generate.
955
956 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
957
958 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
959 * configure: Re-generate.
960 * configure.ac: Remove AM_PROG_CC_STDC.
961
962 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
965 AC_CANONICAL_SYSTEM.
966 * configure: Re-generate.
967
968 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
969
970 * infrun.h (displaced_debug_printf): New macro. Replace
971 displaced debug prints throughout to use it.
972 (displaced_debug_printf_1): New declaration.
973 (displaced_step_dump_bytes): Return string, remove ui_file
974 parameter, update all callers.
975 * infrun.c (displaced_debug_printf_1): New function.
976 (displaced_step_dump_bytes): Return string, remove ui_file
977 parameter
978
979 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
982
983 2020-10-30 Tom Tromey <tromey@adacore.com>
984
985 * Makefile.in (stamp-init): Depend on config.status.
986
987 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
988
989 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
990
991 2020-10-30 Pedro Alves <pedro@palves.net>
992
993 * thread.c (lookup_selected_frame): Move ...
994 * frame.c (lookup_selected_frame): ... here.
995
996 2020-10-30 Pedro Alves <pedro@palves.net>
997
998 * blockframe.c (block_innermost_frame): Use get_selected_frame.
999 * frame.c
1000 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1001 Use save_selected_frame. Save language as well.
1002 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1003 Use restore_selected_frame, and restore language as well.
1004 (selected_frame_id, selected_frame_level): New.
1005 (selected_frame): Update comments.
1006 (save_selected_frame, restore_selected_frame): New.
1007 (get_selected_frame): Use lookup_selected_frame.
1008 (get_selected_frame_if_set): Delete.
1009 (select_frame): Record selected_frame_level and selected_frame_id.
1010 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1011 fields.
1012 (get_selected_frame): Make 'message' parameter optional.
1013 (get_selected_frame_if_set): Delete declaration.
1014 (select_frame): Update comments.
1015 (save_selected_frame, restore_selected_frame)
1016 (lookup_selected_frame): Declare.
1017 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1018 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1019 New field.
1020 (save_infcall_control_state): Use save_selected_frame.
1021 (restore_selected_frame): Delete.
1022 (restore_infcall_control_state): Use restore_selected_frame.
1023 * stack.c (select_frame_command_core, frame_command_core): Use
1024 get_selected_frame.
1025 * thread.c (restore_selected_frame): Rename to ...
1026 (lookup_selected_frame): ... this and make extern. Select the
1027 current frame if the frame level is -1.
1028 (scoped_restore_current_thread::restore): Also restore the
1029 language.
1030 (scoped_restore_current_thread::~scoped_restore_current_thread):
1031 Don't try/catch.
1032 (scoped_restore_current_thread::scoped_restore_current_thread):
1033 Save the language as well. Use save_selected_frame.
1034
1035 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1038 documentation.
1039 * gdbarch.h: Re-generate.
1040
1041 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1044 parameter.
1045 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1046 Likewise.
1047 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1048 Likewise.
1049 * arch-utils.c (default_displaced_step_hw_singlestep):
1050 Likewise.
1051 * arch-utils.h (default_displaced_step_hw_singlestep):
1052 Likewise.
1053 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1054 Likewise.
1055 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1056 Likewise.
1057 * gdbarch.c: Re-generate.
1058 * gdbarch.h: Re-generate.
1059 * infrun.c (resume_1): Adjust.
1060
1061 2020-10-29 Tom Tromey <tom@tromey.com>
1062
1063 * progspace.c (program_space::~program_space): Don't call
1064 exec_close.
1065
1066 2020-10-29 Tom Tromey <tom@tromey.com>
1067
1068 * exec.c (exec_target::close): Don't change current program
1069 space.
1070
1071 2020-10-29 Tom Tromey <tom@tromey.com>
1072
1073 * symfile.c (add_symbol_file_command): Update.
1074 * exec.c (program_space::add_target_sections): Rename.
1075 * symfile-mem.c (symbol_file_add_from_memory): Update.
1076 * progspace.h (struct program_space) <add_target_sections>:
1077 Declare new overload.
1078 * exec.h (add_target_sections_of_objfile): Don't declare.
1079
1080 2020-10-29 Tom Tromey <tom@tromey.com>
1081
1082 * solib.c (solib_map_sections): Update.
1083 * exec.c (program_space::add_target_sections): Now a method.
1084 (exec_file_attach): Update.
1085 * exec.h (add_target_sections): Don't declare.
1086 * progspace.h (struct program_space) <add_target_sections>:
1087 Declare.
1088
1089 2020-10-29 Tom Tromey <tom@tromey.com>
1090
1091 * progspace.h (struct program_space) <remove_target_sections>:
1092 Declare.
1093 * exec.c (program_space::remove_target_sections): Now a method.
1094 * exec.h (remove_target_sections): Don't declare.
1095
1096 2020-10-29 Tom Tromey <tom@tromey.com>
1097
1098 * inferior.c (delete_inferior): Update.
1099 * progspace.c (program_space::empty): Rename from
1100 program_space_empty_p. Return bool.
1101 * progspace.h (struct program_space) <empty>: New method.
1102 (program_space_empty_p): Don't declare.
1103
1104 2020-10-29 Tom Tromey <tom@tromey.com>
1105
1106 * progspace.c (program_space::~program_space): Don't call
1107 clear_program_space_solib_cache.
1108 (program_space::clear_solib_cache): Rename from
1109 clear_solib_cache.
1110 * solib.c (handle_solib_event): Update.
1111 * progspace.h (struct program_space) <clear_solib_cache>: New
1112 method.
1113 (clear_program_space_solib_cache): Don't declare.
1114
1115 2020-10-29 Tom Tromey <tom@tromey.com>
1116
1117 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1118 * target.c (info_target_command): Update.
1119 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1120 (symbol_file_clear, reread_symbols): Update.
1121 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1122 * stabsread.c (scan_file_globals): Update.
1123 * solib.c (update_solib_list): Update.
1124 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1125 (svr4_fetch_objfile_link_map, enable_break)
1126 (svr4_relocate_main_executable)
1127 (svr4_iterate_over_objfiles_in_search_order): Update.
1128 * solib-frv.c (lm_base, enable_break)
1129 (frv_relocate_main_executable): Update.
1130 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1131 (frv_fetch_objfile_link_map): Update.
1132 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1133 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1134 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1135 * remote.c (remote_target::get_offsets): Update.
1136 (remote_target::start_remote)
1137 (extended_remote_target::post_attach): Update.
1138 * objfiles.c (entry_point_address_query): Update.
1139 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1140 * minsyms.c (get_symbol_leading_char): Update.
1141 * frame.c (inside_main_func): Update.
1142 * progspace.h (symfile_objfile): Remove macro.
1143
1144 2020-10-29 Tom Tromey <tom@tromey.com>
1145
1146 * exec.c (exec_file_attach): Update.
1147 * progspace.c (program_space::exec_close): Update.
1148 * progspace.h (struct program_space) <ebfd>: Now a
1149 gdb_bfd_ref_ptr.
1150 <set_exec_bfd>: Change argument type.
1151 <exec_bfd>: Update.
1152
1153 2020-10-29 Tom Tromey <tom@tromey.com>
1154
1155 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1156 * symfile.c (reread_symbols): Update.
1157 * symfile-mem.c (add_symbol_file_from_memory_command)
1158 (add_vsyscall_page): Update.
1159 * source-cache.c (source_cache::get_plain_source_lines): Update.
1160 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1161 (svr4_current_sos_direct, svr4_exec_displacement)
1162 (svr4_relocate_main_executable): Update.
1163 (svr4_iterate_over_objfiles_in_search_order): Update.
1164 * solib-frv.c (enable_break2, enable_break): Update.
1165 * solib-dsbt.c (lm_base, enable_break): Update.
1166 * solib-darwin.c (find_program_interpreter)
1167 (darwin_solib_create_inferior_hook): Update.
1168 * sol-thread.c (rw_common, ps_pdmodel): Update.
1169 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1170 * remote.c (compare_sections_command)
1171 (remote_target::trace_set_readonly_regions): Update.
1172 * remote-sim.c (get_sim_inferior_data)
1173 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1174 (gdbsim_target_open, gdbsim_target::files_info): Update.
1175 * exec.h (exec_bfd): Remove macro.
1176 * progspace.c (initialize_progspace): Update.
1177 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1178 Update.
1179 * nto-procfs.c (nto_procfs_target::post_attach)
1180 (nto_procfs_target::create_inferior): Update.
1181 * maint.c (maintenance_info_sections): Update.
1182 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1183 Update.
1184 * infcmd.c (post_create_inferior): Update.
1185 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1186 (objfile_find_memory_regions): Update.
1187 * exec.c (validate_exec_file, exec_file_attach)
1188 (exec_read_partial_read_only, print_section_info): Update.
1189 * corelow.c (core_target_open): Update.
1190 * corefile.c (reopen_exec_file, validate_files): Update.
1191 * arm-tdep.c (gdb_print_insn_arm): Update.
1192 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1193 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1194 methods.
1195
1196 2020-10-29 Tom Tromey <tom@tromey.com>
1197
1198 * progspace.h (current_target_sections): Remove macro.
1199 * solib-svr4.c (scan_dyntag): Update.
1200 * solib-dsbt.c (scan_dyntag): Update.
1201 * exec.c (exec_target::close): Update.
1202 (add_target_sections, add_target_sections_of_objfile)
1203 (remove_target_sections, exec_target::get_section_table)
1204 (exec_target::files_info, set_section_command)
1205 (exec_set_section_address, exec_target::has_memory)
1206 (exec_target::has_memory): Update.
1207
1208 2020-10-29 Tom Tromey <tom@tromey.com>
1209
1210 * source-cache.c (source_cache::get_plain_source_lines): Use
1211 current_program_space.
1212 * corefile.c (reopen_exec_file): Use current_program_space.
1213 * exec.c (exec_file_attach): Use current_program_space.
1214 * exec.h (exec_bfd_mtime): Remove.
1215
1216 2020-10-29 Tom Tromey <tom@tromey.com>
1217
1218 * gcore.c (default_gcore_mach): Remove.
1219 (create_gcore_bfd): Update.
1220
1221 2020-10-29 Tom Tromey <tom@tromey.com>
1222
1223 * progspace.c (program_space::exec_close): New method, from
1224 exec_close in exec.c.
1225 * exec.c (exec_close): Move to progspace.c.
1226 (exec_target::close, exec_file_attach): Update.
1227 * progspace.h (struct program_space) <exec_close>: Declare
1228 method.
1229
1230 2020-10-29 Tom Tromey <tom@tromey.com>
1231
1232 * progspace.h (struct program_space) <exec_filename>: Rename from
1233 pspace_exec_filename. Now a unique_xmalloc_ptr.
1234 * inferior.c (print_selected_inferior): Update.
1235 (print_inferior): Update.
1236 * mi/mi-main.c (print_one_inferior): Update.
1237 * exec.h (exec_filename): Remove macro.
1238 * corefile.c (get_exec_file): Update.
1239 * exec.c (exec_close): Update.
1240 (exec_file_attach): Update.
1241 * progspace.c (clone_program_space): Update.
1242 (print_program_space): Update.
1243
1244 2020-10-29 Tom Tromey <tom@tromey.com>
1245
1246 * target-section.h (struct target_section): Add constructor.
1247 * exec.c (build_section_table, add_target_sections_of_objfile):
1248 Update.
1249 * corelow.c (core_target::build_file_mappings): Update.
1250
1251 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1252
1253 PR gdb/19318
1254 * inferior.c (detach_inferior_command): Restore the current thread.
1255 (kill_inferior_command): Ditto.
1256
1257 2020-10-28 Tom de Vries <tdevries@suse.de>
1258
1259 PR symtab/26772
1260 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1261 map, check it in the "best match" loop.
1262
1263 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * m32c-tdep.c: Remove unused includes.
1266
1267 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * xtensa-tdep.c: Remove includes.
1270
1271 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272
1273 * breakpoint.c (struct condition_command_opts): New struct.
1274 (condition_command_option_defs): New static global.
1275 (make_condition_command_options_def_group): New function.
1276 (condition_completer): Update to consider the '-force' flag.
1277 (condition_command): Use gdb::option for the '-force' flag.
1278
1279 2020-10-27 Tom de Vries <tdevries@suse.de>
1280
1281 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1282 symbols in section check.
1283
1284 2020-10-27 Tom de Vries <tdevries@suse.de>
1285
1286 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1287
1288 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289
1290 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1291 * breakpoint.c: Update the help text of the 'condition' and 'break'
1292 commands.
1293 (set_breakpoint_condition): Take a new bool parameter
1294 to control whether condition definition should be forced even when
1295 the condition expression is invalid in all of the current locations.
1296 (condition_command): Update the call to 'set_breakpoint_condition'.
1297 (find_condition_and_thread): Take the "-force-condition" flag into
1298 account.
1299 * linespec.c (linespec_keywords): Add "-force-condition" as an
1300 element.
1301 (FORCE_KEYWORD_INDEX): New #define.
1302 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1303 as a keyword.
1304 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1305 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1306 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1307 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1308
1309 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1312 * breakpoint.c (set_breakpoint_location_condition): New function.
1313 (set_breakpoint_condition): Disable a breakpoint location if parsing
1314 the condition string gives an error.
1315 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1316 (build_target_condition_list): Ditto.
1317 (build_target_command_list): Ditto.
1318 (build_bpstat_chain): Ditto.
1319 (print_one_breakpoint_location): Ditto.
1320 (print_one_breakpoint): Ditto.
1321 (breakpoint_1): Ditto.
1322 (bp_location::bp_location): Ditto.
1323 (locations_are_equal): Ditto.
1324 (update_breakpoint_locations): Ditto.
1325 (enable_disable_bp_num_loc): Ditto.
1326 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1327 (find_condition_and_thread_for_sals): New static function.
1328 (create_breakpoint): Call find_condition_and_thread_for_sals.
1329 (location_to_sals): Call find_condition_and_thread_for_sals instead
1330 of find_condition_and_thread.
1331
1332 2020-10-26 Tom de Vries <tdevries@suse.de>
1333
1334 * dwarf2/read.c (process_full_comp_unit): Call
1335 dwarf2_find_base_address.
1336
1337 2020-10-26 Tom Tromey <tromey@adacore.com>
1338
1339 * gdbtypes.c (create_range_type): Revert previous patch. Add
1340 comment.
1341
1342 2020-10-26 Pedro Alves <pedro@palves.net>
1343
1344 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1345 (my_waitpid): Use gdb::handle_eintr.
1346
1347 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * acinclude.m4: Update ptrace.m4 path.
1350 * ptrace.m4: Moved to gdbsupport.
1351
1352 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1355 instead of target_gdbarch.
1356
1357 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * jit.c (jit_reader_load_command): Pass current inferior.
1360 (jit_inferior_init): Change parameter type to inferior, use it.
1361 (jit_inferior_created): Remove.
1362 (jit_inferior_created_hook): Pass inferior parameter down.
1363 (_initialize_jit): Use jit_inferior_created_hook instead of
1364 jit_inferior_created.
1365 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1366 * infrun.c (follow_exec): Pass inferior to
1367 jit_inferior_created_hook.
1368
1369 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1372 parameter and use it.
1373 (thread_db_inferior_created): Pass inferior argument.
1374
1375 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1376
1377 * aix-thread.c (aix_thread_inferior_created): Add inferior
1378 parameter.
1379 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1380 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1381 * jit.c (jit_inferior_created): Likewise.
1382 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1383 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1384 * observable.h (inferior_created): Likewise.
1385 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1386 * symfile-mem.c (add_vsyscall_page): Likewise.
1387 * infcmd.c (post_create_inferior): Pass inferior argument.
1388
1389 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1390
1391 GDB 10.1 released.
1392
1393 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1394
1395 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1396 to ada_check_typedef.
1397
1398 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * f-exp.y (f_parse): Rename to...
1401 (f_language::parser): ...this.
1402 * f-lang.c (f_get_encoding): Rename to...
1403 (f_language::get_encoding): ...this.
1404 (f_op_print_tab): Rename to...
1405 (f_language::op_print_tab): ...this.
1406 (exp_descriptor_f): Rename to...
1407 (f_language::exp_descriptor_tab): ...this.
1408 (class f_language): Moved to f-lang.h.
1409 (f_language::language_arch_info): New function, moved out of class
1410 declaration.
1411 (f_language::search_name_hash): Likewise.
1412 (f_language::lookup_symbol_nonlocal): Likewise.
1413 (f_language::get_symbol_name_matcher_inner): Likewise.
1414 * f-lang.h: Add 'valprint.h' include.
1415 (class f_language): Moved here from f-lang.c.
1416 * f-typeprint.c (f_type_print_args): Delete commented out
1417 declaration.
1418 (f_print_typedef): Rename to...
1419 (f_language::print_typedef): ...this.
1420 (f_print_type): Rename to...
1421 (f_language::print_type): ...this.
1422 (f_type_print_varspec_prefix): Delete declaration and rename to...
1423 (f_language::f_type_print_varspec_prefix): ...this.
1424 (f_type_print_varspec_suffix): Delete declaration and rename to...
1425 (f_language::f_type_print_varspec_suffix): ...this.
1426 (f_type_print_base): Delete declaration and rename to...
1427 (f_language::f_type_print_base): ...this.
1428 * f-valprint.c (f_value_print_inner): Rename to...
1429 (f_language::value_print_inner): ...this.
1430 * parse.c: Delete 'f-lang.h' include.
1431
1432 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * language.h (language_defn::print_type): Add variable names in
1435 declaration, and update header comment.
1436
1437 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (ada_language::demangle): Rename to...
1440 (ada_language::demangle_symbol): ...this.
1441 * c-lang.c (cplus_language::demangle): Rename to...
1442 (cplus_language::demangle_symbol): ...this.
1443 * d-lang.c (d_language::demangle): Rename to...
1444 (d_language::demangle_symbol): ...this.
1445 * f-lang.c (f_language::demangle): Rename to...
1446 (f_language::demangle_symbol): ...this.
1447 * go-lang.c (go_language::demangle): Rename to...
1448 (go_language::demangle_symbol): ...this.
1449 * language.c (language_demangle): Update call to demangle_symbol.
1450 (auto_or_unknown_language::demangle): Rename to...
1451 (auto_or_unknown_language::demangle_symbol): ...this.
1452 * language.h (language_defn::demangle): Rename to...
1453 (language_defn::demangle_symbol): ...this.
1454 * objc-lang.c (objc_language::demangle): Rename to...
1455 (objc_language::demangle_symbol): ...this.
1456 * rust-lang.c (rust_language::demangle): Rename to...
1457 (rust_language::demangle_symbol): ...this.
1458
1459 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1462 (iterate_over_file_blocks): Replace use of macro with the macros
1463 definition.
1464
1465 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1468 * valprint.c (maybe_print_array_index): Replace use of macro with
1469 the macros definition.
1470
1471 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * ada-lang.c (ada_language::print_array_index): Call value_print
1474 directly.
1475 * language.c (language_defn::print_array_index): Likewise.
1476 * language.h (LA_VALUE_PRINT): Delete.
1477 * valprint.c (value_print): Call value_print on the
1478 current_language directly.
1479
1480 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * language.h (LA_PRINT_TYPEDEF): Delete.
1483 * typeprint.c (typedef_print): Call print_typedef directly on the
1484 current_language object.
1485
1486 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * m2-exp.y (m2_parse): Rename to...
1489 (m2_language::parser): ...this. Update function signature.
1490 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1491 (m2_op_print): Rename to...
1492 (m2_language::op_print_tab): ...this, and make const.
1493 (exp_descriptor_modula2): Rename to...
1494 (m2_language::exp_descriptor_modula2): ...this.
1495 (class m2_language): Move to m2-lang.h.
1496 (m2_language::language_arch_info): New function, moved out of
1497 class declaration.
1498 (m2_language::printchar): New function, body from m2_printchar.
1499 (m2_language::printstr): New function, moved out of class
1500 declaration.
1501 (m2_language::emitchar): Likewise.
1502 * m2-lang.h (m2_parse): Delete declaration.
1503 (m2_print_typedef): Delete declaration.
1504 (m2_value_print_inner): Delete declaration.
1505 (class m2_language): Class declaration moved from m2-lang.c,
1506 larger functions are left in m2-lang.c.
1507 * m2-typeprint.c (m2_print_typedef): Rename to...
1508 (m2_language::print_typedef): ...this, and update function
1509 signature.
1510 * m2-valprint.c (m2_value_print_inner): Rename to...
1511 (m2_language::value_print_inner): ...this, replace use of
1512 LA_PRINT_STRING with a direct call to printstr member function,
1513 and update recursive call.
1514
1515 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * language.c (default_is_string_type_p): Delete, implementation
1518 moved into auto_or_unknown_language::is_string_type_p.
1519 (unk_op_print_tab): Moved into
1520 auto_or_unknown_language::opcode_print_table.
1521 (unknown_language_arch_info): Delete, implementation moved into
1522 auto_or_unknown_language::language_arch_info.
1523 (class auto_or_unknown_language): New class, member functions
1524 copied from unknown_language class, with some updates.
1525 (class unknown_language): Most member functions moved into
1526 auto_or_unknown_language class. Inherit from
1527 auto_or_unknown_language class.
1528 (class auto_language): Inherit from auto_or_unknown_language.
1529 Delete most member functions.
1530
1531 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1532
1533 * stabsread.c (read_member_functions): Remove gdb_assert.
1534
1535 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1536
1537 * gdbtypes.c (init_complex_type): Check target type name.
1538
1539 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1540
1541 * target-debug.h (target_debug_print_struct_target_ops_p):
1542 Remove.
1543 (target_debug_print_async_callback_ftype_p): Remove.
1544 (target_debug_print_struct_trace_state_variable_p): Remove.
1545 (target_debug_print_struct_traceframe_info_p): Remove.
1546 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1547 (target_debug_print_enum_btrace_format): Remove.
1548 (target_debug_print_enum_info_proc_what): Remove.
1549 (target_debug_print_thread_info_pp): Remove.
1550
1551 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * target.h (struct target_ops) <make_corefile_notes>:
1554 Change return type to unique pointer.
1555 * target.c (dummy_make_corefile_notes): Likewise.
1556 * exec.c (struct exec_target) <make_corefile_notes>:
1557 Likewise.
1558 (exec_target::make_corefile_notes): Likewise.
1559 * procfs.c (class procfs_target) <make_corefile_notes>:
1560 Likewise.
1561 (procfs_do_thread_registers): Adjust to unique pointer.
1562 (struct procfs_corefile_thread_data): Add constructor.
1563 <note_data>: Change type to unique pointer.
1564 (procfs_corefile_thread_callback): Adjust to unique pointer.
1565 (procfs_target::make_corefile_notes): Change return type to
1566 unique pointer.
1567 * target-delegates.c: Re-generate.
1568 * gcore.c (write_gcore_file_1): Adjust.
1569 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1570 New.
1571
1572 2020-10-22 Tom de Vries <tdevries@suse.de>
1573
1574 * block.c (find_block_in_blockvector): Make sure the returned block
1575 contains pc.
1576
1577 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 PR gdb/26693
1580 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1581 parameter.
1582 (load_cu): Pass existing CU.
1583 (process_imported_unit_die): Likewise.
1584 (follow_die_offset): Likewise.
1585
1586 2020-10-22 Luis Machado <luis.machado@linaro.org>
1587
1588 * corelow.c (core_target::xfer_partial): Also check for an empty
1589 m_core_unavailable_mappings vector.
1590
1591 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1594 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1595 * f-exp.y (arglist): Allow for a series of subranges.
1596 (subrange): Add cases for subranges with strides.
1597 * f-lang.c (value_f90_subarray): Catch use of array strides and
1598 throw an error.
1599 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1600
1601 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * expprint.c (print_subexp_standard): Change enum range_type to
1604 range_flag and rename variables to match.
1605 (dump_subexp_body_standard): Likewise.
1606 * expression.h (enum range_type): Rename to...
1607 (enum range_flag): ...this.
1608 (range_types): Rename to...
1609 (range_flags): ...this.
1610 * f-lang.c (value_f90_subarray): Change enum range_type to
1611 range_flag and rename variables to match.
1612 * parse.c (operator_length_standard): Likewise.
1613 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1614 range_type to range_flag.
1615 * rust-lang.c (rust_evaluate_funcall): Likewise.
1616 (rust_range): Likewise.
1617 (rust_compute_range): Likewise.
1618 (rust_subscript): Likewise.
1619
1620 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1621
1622 * expprint.c (print_subexp_standard): Update to reflect changes to
1623 enum range_type.
1624 (dump_subexp_body_standard): Likewise.
1625 * expression.h (enum range_type): Convert to a bit field enum, and
1626 make the enum unsigned.
1627 * f-exp.y (subrange): Update to reflect changes to enum
1628 range_type.
1629 * f-lang.c (value_f90_subarray): Likewise.
1630 * parse.c (operator_length_standard): Likewise.
1631 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1632 * rust-lang.c (rust_range): Likewise.
1633 (rust_compute_range): Likewise.
1634 (rust_subscript): Likewise.
1635
1636 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1639 (displaced_step_in_progress): Fix comment.
1640
1641 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1644 * gdbarch.c: Re-generate.
1645 * gdbarch.h: Re-generate.
1646 * gcore.c (write_gcore_file_1): Adjust.
1647 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1648 constructor.
1649 <note_data>: Change type to unique pointer.
1650 <abort_iteration>: Change type to bool.
1651 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1652 (fbsd_collect_thread_registers): Return void, adjust.
1653 (struct fbsd_corefile_thread_data): Add construtor.
1654 <note_data>: Change type to unique pointer.
1655 (fbsd_corefile_thread): Adjust.
1656 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1657 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1658 to unique pointer, adjust.
1659 (struct linux_collect_regset_section_cb_data): Add constructor.
1660 <note_data>: Change type to unique pointer.
1661 <abort_iteration>: Change type to bool.
1662 (linux_collect_thread_registers): Return void, adjust.
1663 (struct linux_corefile_thread_data): Add constructor.
1664 <note_data>: Change type to unique pointer.
1665 (linux_corefile_thread): Adjust.
1666 (linux_make_corefile_notes): Return unique pointer, adjust.
1667
1668 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1669
1670 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1671 * gdbarch.c: Re-generate.
1672 * gdbarch.h: Re-generate.
1673 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1674 bool.
1675 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1676 Likewise.
1677 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1678 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1679 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1680 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1681
1682 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * gdbarch.sh: Make generated predicates return bool.
1685 * gdbarch.c: Re-generate.
1686 * gdbarch.h: Re-generate.
1687
1688 2020-10-20 Tom Tromey <tom@tromey.com>
1689
1690 * varobj-iter.h (struct varobj_item): Remove typedef.
1691
1692 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * infrun.c (currently_stepping): Change int to bool
1695 (maybe_software_singlestep): Likewise.
1696 (show_stop_on_solib_events): Likewise.
1697 (stepping_past_nonsteppable_watchpoint): Likewise.
1698 (displaced_step_in_progress_any_inferior): Likewise.
1699 (displaced_step_in_progress_thread): Likewise.
1700 (keep_going_stepped_thread): Likewise.
1701 (thread_still_needs_step_over): Likewise.
1702 (start_step_over): Likewise.
1703 (do_target_resume): Likewise.
1704 (resume_1): Likewise.
1705 (clear_proceed_status): Likewise.
1706 (thread_still_needs_step_over_bp): Likewise.
1707 (proceed): Likewise.
1708 (switch_back_to_stepped_thread): Likewise.
1709 (adjust_pc_after_break): Likewise.
1710 (stepped_in_from): Likewise.
1711 (handle_stop_requested): Likewise.
1712 (handle_syscall_event): Likewise.
1713 (handle_no_resumed): Likewise.
1714 (handle_inferior_event): Likewise.
1715 (finish_step_over): Likewise.
1716 (handle_signal_stop): Likewise.
1717 (process_event_stop_test): Likewise.
1718
1719 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * infrun.c (get_displaced_stepping_state): Fix comment.
1722
1723 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1724
1725 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1726
1727 2020-10-19 Tom Tromey <tromey@adacore.com>
1728
1729 PR tui/26719
1730 * tui/tui-winsource.h (struct tui_source_window_base)
1731 <refresh_window>: Rename from refresh_pad.
1732 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1733 Rename from refresh_pad.
1734 (tui_source_window_base::show_source_content)
1735 (tui_source_window_base::do_scroll_horizontal): Update.
1736
1737 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738
1739 * thread.c (_initialize_thread): Fine-tune the help text of
1740 'info threads'.
1741
1742 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1745
1746 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1747
1748 * breakpoint.c (handle_jit_event): Add an argument, change how
1749 `jit_event_handler` is called.
1750
1751 2020-10-17 Tom Tromey <tom@tromey.com>
1752
1753 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1754 (scan_xcoff_symtab): Update.
1755 * psymtab.h (class psymtab_storage) <global_psymbols,
1756 static_psymbols, current_global_psymbols,
1757 current_static_psymbols>: Remove.
1758 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1759 (match_partial_symbol, lookup_partial_symbol): Update.
1760 (print_partial_symbols): Change parameters.
1761 (dump_psymtab, recursively_search_psymtabs)
1762 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1763 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1764 (concat): Remove.
1765 (end_psymtab_common): Simplify.
1766 (append_psymbol_to_list): Change parameters.
1767 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1768 (init_psymbol_list): Simplify.
1769 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1770 * psympriv.h (struct partial_symtab) <empty>: New method.
1771 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1772 Remove.
1773 <global_psymbols, static_psymbols>: New members.
1774 <add_psymbol>: New methods.
1775 (add_psymbol_to_list): Don't declare.
1776 (psymbol_placement): Move earlier.
1777 * mdebugread.c (parse_partial_symbols): Update.
1778 (handle_psymbol_enumerators): Change parameters.
1779 (mdebug_expand_psymtab): Update.
1780 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1781 (add_partial_symbol): Update.
1782 * dwarf2/index-write.c (write_psymbols): Change parameters.
1783 (write_one_signatured_type): Update.
1784 (recursively_count_psymbols): Update.
1785 (recursively_write_psymbols): Update.
1786 (class debug_names) <recursively_write_psymbols>: Update.
1787 <write_psymbols>: Change parameters.
1788 <write_one_signatured_type>: Update.
1789 * dbxread.c (read_dbx_symtab): Update.
1790 (dbx_end_psymtab): Use partial_symtab::empty.
1791 * ctfread.c (struct ctf_context) <pst>: New member.
1792 (create_partial_symtab): Set it.
1793 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1794 (scan_partial_symbols): Use the psymtab's context. Update.
1795
1796 2020-10-17 Tom Tromey <tom@tromey.com>
1797
1798 * valprint.c (generic_value_print): Remove comment.
1799 * m2-valprint.c (m2_value_print_inner): Remove comment.
1800 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1801 type.
1802
1803 2020-10-17 Tom de Vries <tdevries@suse.de>
1804
1805 PR symtab/26317
1806 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1807 symbol main.
1808
1809 2020-10-14 Tom de Vries <tdevries@suse.de>
1810
1811 PR gdb/26733
1812 * solib.c (solib_contains_address_p): Handle
1813 'solib->sections == nullptr'.
1814
1815 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 PR gdb/26642
1818 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1819 target can't do async.
1820 * target.c (target_wait): Assert that we don't pass
1821 TARGET_WNOHANG to a target that can't async.
1822
1823 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1824
1825 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1826 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1827 * alpha-bsd-nat.c: Adjust include.
1828 * alpha-bsd-tdep.h: Adjust comment.
1829 * alpha-nbsd-tdep.c: Rename to ...
1830 * alpha-netbsd-tdep.c: ... this, adjust include.
1831 * amd64-nbsd-nat.c: Rename to ...
1832 * amd64-netbsd-nat.c: ... this, adjust include.
1833 * amd64-nbsd-tdep.c: Rename to ...
1834 * amd64-netbsd-tdep.c: ... this, adjust include.
1835 * amd64-tdep.h: Adjust include.
1836 * arm-nbsd-nat.c: Rename to ...
1837 * arm-netbsd-nat.c: ... this, adjust include.
1838 * arm-nbsd-tdep.c: Rename to ...
1839 * arm-netbsd-tdep.c: ... this, adjust include.
1840 * arm-nbsd-tdep.h: Rename to ...
1841 * arm-netbsd-tdep.h: ... this, adjust include.
1842 * configure.nat: Adjust file lists.
1843 * configure.tgt: Likewise.
1844 * hppa-nbsd-nat.c: Rename to ...
1845 * hppa-netbsd-nat.c: ... this, adjust include.
1846 * hppa-nbsd-tdep.c: Rename to ...
1847 * hppa-netbsd-tdep.c: ... this, adjust include.
1848 * i386-nbsd-nat.c: Rename to ...
1849 * i386-netbsd-nat.c: ... this, adjust include.
1850 * i386-nbsd-tdep.c: Rename to ...
1851 * i386-netbsd-tdep.c: ... this, adjust include.
1852 * m68k-bsd-nat.c: Adjust include.
1853 * mips-nbsd-nat.c: Rename to ...
1854 * mips-netbsd-nat.c: ... this, adjust include.
1855 * mips-nbsd-tdep.c: Rename to ...
1856 * mips-netbsd-tdep.c: ... this, adjust include.
1857 * mips-nbsd-tdep.h: Rename to ...
1858 * mips-netbsd-tdep.h: ... this.
1859 * nbsd-nat.c: Rename to ...
1860 * netbsd-nat.c: ... this, adjust include.
1861 * nbsd-nat.h: Rename to ...
1862 * netbsd-nat.h: ... this, adjust include.
1863 * nbsd-tdep.c: Rename to ...
1864 * netbsd-tdep.c: ... this, adjust include.
1865 * nbsd-tdep.h: Rename to ...
1866 * netbsd-tdep.h: ... this.
1867 * ppc-nbsd-nat.c: Rename to ...
1868 * ppc-netbsd-nat.c: ... this, adjust include.
1869 * ppc-nbsd-tdep.c: Rename to ...
1870 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1871 * ppc-nbsd-tdep.h: Rename to ...
1872 * ppc-netbsd-tdep.h: ... this.
1873 * sh-nbsd-nat.c: Rename to ...
1874 * sh-netbsd-nat.c: ... this, adjust include.
1875 * sh-nbsd-tdep.c: Rename to ...
1876 * sh-netbsd-tdep.c: ... this, adjust include.
1877 * sparc-nbsd-nat.c: Rename to ...
1878 * sparc-netbsd-nat.c: ... this.
1879 * sparc-nbsd-tdep.c: Rename to ...
1880 * sparc-netbsd-tdep.c: ... this, adjust include.
1881 * sparc64-nbsd-nat.c: Rename to ...
1882 * sparc64-netbsd-nat.c: ... this.
1883 * sparc64-nbsd-tdep.c: Rename to ...
1884 * sparc64-netbsd-tdep.c: ... this, adjust include.
1885 * sparc64-tdep.h: Adjust comment.
1886 * vax-bsd-nat.c: Adjust include.
1887 * vax-nbsd-tdep.c: Rename to ...
1888 * vax-netbsd-tdep.c: ... this, adjust include.
1889
1890 2020-10-12 Tom Tromey <tom@tromey.com>
1891
1892 * target.h (struct target_ops) <get_section_table>: Update.
1893 (target_get_section_table): Update.
1894 * target.c (target_get_section_table, target_section_by_addr)
1895 (memory_xfer_partial_1): Update.
1896 * target-section.h (target_section_table): Now an alias.
1897 * target-delegates.c: Rebuild.
1898 * target-debug.h (target_debug_print_target_section_table_p):
1899 Rename from target_debug_print_struct_target_section_table_p.
1900 * symfile.c (build_section_addr_info_from_section_table): Update.
1901 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1902 * solib-svr4.c (scan_dyntag): Update.
1903 * solib-dsbt.c (scan_dyntag): Update.
1904 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1905 Update.
1906 * record-full.c (record_full_core_target::xfer_partial): Update.
1907 * progspace.h (struct program_space) <target_sections>: Update.
1908 * exec.h (print_section_info): Update.
1909 * exec.c (exec_target::close, build_section_table)
1910 (add_target_sections, add_target_sections_of_objfile)
1911 (remove_target_sections, exec_on_vfork)
1912 (section_table_available_memory)
1913 (section_table_xfer_memory_partial)
1914 (exec_target::get_section_table, exec_target::xfer_partial)
1915 (print_section_info, set_section_command)
1916 (exec_set_section_address, exec_target::has_memory): Update.
1917 * corelow.c (core_target::build_file_mappings)
1918 (core_target::xfer_partial, core_target::info_proc_mappings)
1919 (core_target::info_proc_mappings): Update.
1920 * bfd-target.c (class target_bfd): Update
1921
1922 2020-10-12 Tom Tromey <tom@tromey.com>
1923
1924 * progspace.c (program_space::~program_space): Don't call
1925 clear_section_table.
1926 * exec.h (clear_section_table): Don't declare.
1927 * exec.c (exec_target::close): Update.
1928 (clear_section_table): Remove.
1929
1930 2020-10-12 Tom Tromey <tom@tromey.com>
1931
1932 * exec.c (add_target_sections_of_objfile): Simplify.
1933
1934 2020-10-12 Tom Tromey <tom@tromey.com>
1935
1936 * solib.c (solib_map_sections): Update.
1937 * record-full.c (record_full_core_open_1): Update.
1938 * exec.h (build_section_table): Return a target_section_table.
1939 * exec.c (exec_file_attach): Update.
1940 (build_section_table): Return a target_section_table.
1941 * corelow.c (core_target::core_target): Update.
1942 * bfd-target.c (target_bfd::target_bfd): Update.
1943
1944 2020-10-12 Tom Tromey <tom@tromey.com>
1945
1946 * target.c (target_section_by_addr, memory_xfer_partial_1):
1947 Update.
1948 * target-section.h (struct target_section_table): Use
1949 std::vector.
1950 * symfile.h (build_section_addr_info_from_section_table): Take a
1951 target_section_table.
1952 * symfile.c (build_section_addr_info_from_section_table): Take a
1953 target_section_table.
1954 * solist.h (struct so_list) <sections>: Change type.
1955 <sections_end>: Remove.
1956 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1957 (solib_contains_address_p): Update.
1958 * solib-svr4.c (scan_dyntag): Update.
1959 * solib-dsbt.c (scan_dyntag): Update.
1960 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1961 Update.
1962 * record-full.c (record_full_core_start, record_full_core_end):
1963 Remove.
1964 (record_full_core_sections): New global.
1965 (record_full_core_open_1, record_full_core_target::xfer_partial):
1966 Update.
1967 * exec.h (build_section_table, section_table_xfer_memory_partial)
1968 (add_target_sections): Take a target_section_table.
1969 * exec.c (exec_file_attach, clear_section_table): Update.
1970 (resize_section_table): Remove.
1971 (build_section_table, add_target_sections): Take a
1972 target_section_table.
1973 (add_target_sections_of_objfile, remove_target_sections)
1974 (exec_on_vfork): Update.
1975 (section_table_available_memory): Take a target_section_table.
1976 (section_table_read_available_memory): Update.
1977 (section_table_xfer_memory_partial): Take a target_section_table.
1978 (print_section_info, set_section_command)
1979 (exec_set_section_address, exec_target::has_memory): Update.
1980 * corelow.c (class core_target) <m_core_section_table,
1981 m_core_file_mappings>: Remove braces.
1982 <~core_target>: Remove.
1983 (core_target::core_target): Update.
1984 (core_target::~core_target): Remove.
1985 (core_target::build_file_mappings)
1986 (core_target::xfer_memory_via_mappings)
1987 (core_target::xfer_partial, core_target::info_proc_mappings):
1988 Update.
1989 * bfd-target.c (target_bfd::xfer_partial): Update.
1990 (target_bfd::target_bfd): Update.
1991 (target_bfd::~target_bfd): Remove.
1992
1993 2020-10-12 Tom Tromey <tom@tromey.com>
1994
1995 * target.h (struct target_section, struct target_section_table):
1996 Move to target-section.h.
1997 * target-section.h: New file.
1998
1999 2020-10-12 Pedro Alves <pedro@palves.net>
2000
2001 PR exp/26602
2002 * valops.c (struct struct_field_searcher): New.
2003 (update_search_result): Rename to ...
2004 (struct_field_searcher::update_result): ... this. Simplify
2005 prototype. Record all found fields.
2006 (do_search_struct_field): Rename to ...
2007 (struct_field_searcher::search): ... this. Simplify prototype.
2008 Maintain stack of visited baseclass path. Call update_result for
2009 fields too. Keep searching fields in baseclasses instead of
2010 stopping at the first found field.
2011 (search_struct_field): Use struct_field_searcher. When looking
2012 for fields, report ambiguous access attempts.
2013
2014 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * frame.c (inside_main_func): Check full symbols as well as
2017 minimal symbols.
2018
2019 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (advance_wild_match): Rewrite the function's
2022 description. Change the type of target0, t0 and t1 to char.
2023
2024 2020-10-09 Tom Tromey <tromey@adacore.com>
2025
2026 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2027
2028 2020-10-09 Tom Tromey <tromey@adacore.com>
2029
2030 * ada-lang.h (ada_encode): Return std::string.
2031 * ada-lang.c (ada_encode_1): Return std::string.
2032 (ada_encode): Likewise.
2033 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2034 Update.
2035 * ada-exp.y (block_lookup, write_var_or_type): Update.
2036
2037 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2038
2039 PR exp/26714
2040 * printcmd.c (print_formatted): Handle void results as
2041 unformatted prints.
2042
2043 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * arch/aarch32.c (aarch32_create_target_description): Release the
2046 target_desc_up as late as possible.
2047 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2048 * arch/amd64.c (amd64_create_target_description): Likewise.
2049 * arch/arc.c (arc_create_target_description): Return a
2050 target_desc_up, don't release it.
2051 * arch/arc.h (arc_create_target_description): Update declaration.
2052 (arc_lookup_target_description): Move target_desc_up into the
2053 cache, and return a borrowed pointer.
2054 * arch/arm.c (arm_create_target_description): Release the
2055 target_desc_up as late as possible.
2056 * arch/i386.c (i386_create_target_description): Likewise.
2057 * arch/riscv.h (riscv_create_target_description): Update
2058 declaration to match definition.
2059 * arch/tic6x.c (tic6x_create_target_description): Release the
2060 target_desc_up as late as possible.
2061
2062 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2065 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2066
2067 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2068
2069 * source.c (directory_command): Notify observers that "directories"
2070 parameter has changed.
2071
2072 2020-10-08 Tom Tromey <tom@tromey.com>
2073
2074 * cli/cli-cmds.c (print_disassembly): Style function name and
2075 addresses. Add _() wrappers.
2076
2077 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2078
2079 * NEWS: Mention ARC support in GDBserver.
2080
2081 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * arch/aarch32.c (aarch32_create_target_description): Release
2084 unique_ptr returned from allocate_target_description.
2085 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2086 * arch/amd64.c (amd64_create_target_description): Likewise.
2087 * arch/arc.c (arc_create_target_description): Likewise.
2088 * arch/arm.c (arm_create_target_description): Likewise.
2089 * arch/i386.c (i386_create_target_description): Likewise.
2090 * arch/riscv.c (riscv_create_target_description): Update return
2091 type. Handle allocate_target_description returning a unique_ptr.
2092 (riscv_lookup_target_description): Update to handle unique_ptr.
2093 * arch/tic6x.c (tic6x_create_target_description): Release
2094 unique_ptr returned from allocate_target_description.
2095 * features/microblaze-with-stack-protect.c: Regenerate.
2096 * features/microblaze.c: Regenerate.
2097 * features/mips-dsp-linux.c: Regenerate.
2098 * features/mips-linux.c: Regenerate.
2099 * features/mips64-dsp-linux.c: Regenerate.
2100 * features/mips64-linux.c: Regenerate.
2101 * features/nds32.c: Regenerate.
2102 * features/nios2.c: Regenerate.
2103 * features/or1k.c: Regenerate.
2104 * features/rs6000/powerpc-32.c: Regenerate.
2105 * features/rs6000/powerpc-32l.c: Regenerate.
2106 * features/rs6000/powerpc-403.c: Regenerate.
2107 * features/rs6000/powerpc-403gc.c: Regenerate.
2108 * features/rs6000/powerpc-405.c: Regenerate.
2109 * features/rs6000/powerpc-505.c: Regenerate.
2110 * features/rs6000/powerpc-601.c: Regenerate.
2111 * features/rs6000/powerpc-602.c: Regenerate.
2112 * features/rs6000/powerpc-603.c: Regenerate.
2113 * features/rs6000/powerpc-604.c: Regenerate.
2114 * features/rs6000/powerpc-64.c: Regenerate.
2115 * features/rs6000/powerpc-64l.c: Regenerate.
2116 * features/rs6000/powerpc-7400.c: Regenerate.
2117 * features/rs6000/powerpc-750.c: Regenerate.
2118 * features/rs6000/powerpc-860.c: Regenerate.
2119 * features/rs6000/powerpc-altivec32.c: Regenerate.
2120 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2121 * features/rs6000/powerpc-altivec64.c: Regenerate.
2122 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2123 * features/rs6000/powerpc-e500.c: Regenerate.
2124 * features/rs6000/powerpc-e500l.c: Regenerate.
2125 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2126 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2127 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2128 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2129 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2130 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2131 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2132 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2133 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2134 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2135 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2136 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2137 * features/rs6000/powerpc-vsx32.c: Regenerate.
2138 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2139 * features/rs6000/powerpc-vsx64.c: Regenerate.
2140 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2141 * features/rs6000/rs6000.c: Regenerate.
2142 * features/rx.c: Regenerate.
2143 * features/s390-gs-linux64.c: Regenerate.
2144 * features/s390-linux32.c: Regenerate.
2145 * features/s390-linux32v1.c: Regenerate.
2146 * features/s390-linux32v2.c: Regenerate.
2147 * features/s390-linux64.c: Regenerate.
2148 * features/s390-linux64v1.c: Regenerate.
2149 * features/s390-linux64v2.c: Regenerate.
2150 * features/s390-te-linux64.c: Regenerate.
2151 * features/s390-tevx-linux64.c: Regenerate.
2152 * features/s390-vx-linux64.c: Regenerate.
2153 * features/s390x-gs-linux64.c: Regenerate.
2154 * features/s390x-linux64.c: Regenerate.
2155 * features/s390x-linux64v1.c: Regenerate.
2156 * features/s390x-linux64v2.c: Regenerate.
2157 * features/s390x-te-linux64.c: Regenerate.
2158 * features/s390x-tevx-linux64.c: Regenerate.
2159 * features/s390x-vx-linux64.c: Regenerate.
2160 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2161 from allocate_target_description.
2162 * target-descriptions.c (allocate_target_description): Update
2163 return type.
2164 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2165 allocate_target_description.
2166
2167 2020-10-07 Tom Tromey <tromey@adacore.com>
2168
2169 * unittests/search-memory-selftests.c: New file.
2170 * Makefile.in (SELFTESTS_SRCS): Add
2171 unittests/search-memory-selftests.c.
2172
2173 2020-10-07 Tom Tromey <tromey@adacore.com>
2174
2175 PR gdb/16930:
2176 * findcmd.c (_initialize_mem_search): Mention that the range is
2177 inclusive.
2178
2179 2020-10-07 Tom Tromey <tromey@adacore.com>
2180
2181 * target.h (simple_search_memory): Don't declare.
2182 * target.c (simple_search_memory): Move to gdbsupport.
2183 (default_search_memory): Update.
2184 * remote.c (remote_target::search_memory): Update.
2185
2186 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * Makefile.in (COMPILE): Add CXXFLAGS.
2189 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2190 (check-headers): Add CXXFLAGS.
2191
2192 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2193
2194 * arc-linux-tdep.h: New file.
2195 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2196 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2197 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2198 arc_linux_gregset, arc_linux_v2_regset,
2199 arc_linux_iterate_over_regset_sections,
2200 arc_linux_core_read_description): Implement.
2201 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2202 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2203 (arc_gdbarch_features_create): Add.
2204 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2205
2206 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2207
2208 * arch/arc.h: Rename "arc_gdbarch_features" to
2209 "arc_arch_features".
2210 * arc-tdep.h: Likewise.
2211 * arc-tdep.c: Likewise.
2212
2213 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2214
2215 * infcmd.c (attach_command): Remove the redundant call to
2216 `clear_proceed_status`.
2217
2218 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2219
2220 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2221
2222 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2223
2224 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2225 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2226 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2227
2228 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2231 (_initialize_break_catch_sig): Don't allocate array.
2232
2233 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * symtab.c (find_pc_line): Return unmapped addresses when the
2236 requested address is also unmapped.
2237
2238 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2241 tui/tui-out.h.
2242
2243 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2244
2245 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2246 type::is_vector instead of TYPE_VECTOR.
2247
2248 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * auto-load.c (auto_load_objfile_script_1): Don't use
2251 debugfile_holder as temporary variable when stripping drive
2252 letter.
2253
2254 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2255
2256 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2257 Add TYPE_CODE_COMPLEX.
2258 (amd64_windows_return_value): Fix types returned via XMM0.
2259
2260 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2261
2262 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2263 AArch64/ARM maintainers.
2264
2265 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * NEWS: Mention set/show debug event-loop.
2268
2269 2020-10-02 Tom Tromey <tromey@adacore.com>
2270
2271 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2272 REG_EXTENDED.
2273
2274 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2277 * procfs.c (procfs_inferior_created): Remove.
2278 (_initialize_procfs): Don't register procfs_inferior_created.
2279
2280 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * async-event.c (invoke_async_signal_handlers): Add debug
2283 print.
2284 (check_async_event_handlers): Likewise.
2285 * event-top.c (show_debug_event_loop): New function.
2286 (_initialize_event_top): Register "set debug event-loop"
2287 setting.
2288
2289 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2290
2291 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2292 * debug.h: Remove.
2293 * infrun.c: Include gdbsupport/common-debug.h.
2294 * linux-nat.c: Likewise.
2295
2296 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2297
2298 * async-event.h (create_async_signal_handler): Add name
2299 parameter.
2300 (create_async_event_handler): Likewise.
2301 * async-event.c (struct async_signal_handler) <name>: New field.
2302 (struct async_event_handler) <name>: New field.
2303 (create_async_signal_handler): Assign name.
2304 (create_async_event_handler): Assign name.
2305 * event-top.c (async_init_signals): Pass name when creating
2306 handler.
2307 * infrun.c (_initialize_infrun): Likewise.
2308 * record-btrace.c (record_btrace_push_target): Likewise.
2309 * record-full.c (record_full_open): Likewise.
2310 * remote-notif.c (remote_notif_state_allocate): Likewise.
2311 * remote.c (remote_target::open_1): Likewise.
2312 * tui/tui-win.c (tui_initialize_win): Likewise.
2313
2314 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 * async-event.c (initialize_async_signal_handlers): Pass name to
2317 add_file_handler
2318 * event-top.c (ui_register_input_event_handler): Likewise.
2319 * linux-nat.c (linux_nat_target::async): Likewise.
2320 * run-on-main-thread.c (_initialize_run_on_main_thread):
2321 Likewise
2322 * ser-base.c (reschedule): Likewise.
2323 (ser_base_async): Likewise.
2324 * tui/tui-io.c: Likewise.
2325 * top.h (struct ui) <num>: New field.
2326 * top.c (highest_ui_num): New variable.
2327 (ui::ui): Initialize num.
2328
2329 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * observable.h <inferior_created>: Remove parameters. Update all
2332 listeners.
2333 * inferior.h (post_create_inferior): Remove target parameter.
2334 Update all callers.
2335
2336 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2337
2338 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2339 and DW_MACRO_undef_strx.
2340 (dwarf_decode_macros): Likewise
2341 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2342 which is the value of DW_AT_str_offsets_base.
2343 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2344 str_offsets_base.
2345
2346 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2347
2348 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2349
2350 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2351
2352 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2353 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2354
2355 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2356
2357 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2358
2359 2020-09-30 Tom de Vries <tdevries@suse.de>
2360
2361 PR symtab/26683
2362 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2363
2364 2020-09-30 Tom Tromey <tromey@adacore.com>
2365
2366 * dwarf2/read.c (handle_variant): Use constant_value.
2367
2368 2020-09-29 Tom Tromey <tom@tromey.com>
2369
2370 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2371 (read_file_scope, dwarf2_get_pc_bounds)
2372 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2373 (read_structure_type, handle_struct_member_die)
2374 (read_enumeration_type, read_array_type, read_set_type)
2375 (read_tag_pointer_type, read_tag_reference_type)
2376 (read_subroutine_type, read_base_type, read_subrange_type)
2377 (read_full_die_1, partial_die_info::read)
2378 (partial_die_info::read, by, new_symbol)
2379 (dwarf2_const_value_data, dwarf2_const_value_attr)
2380 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2381 (prepare_one_comp_unit): Update.
2382 * dwarf2/attribute.h (DW_UNSND): Remove.
2383
2384 2020-09-29 Tom Tromey <tom@tromey.com>
2385
2386 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2387 (read_subroutine_type, partial_die_info::read)
2388 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2389 (dwarf2_add_member_fn): Update.
2390 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2391 * dwarf2/attribute.c (attribute::as_boolean): New method.
2392
2393 2020-09-29 Tom Tromey <tom@tromey.com>
2394
2395 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2396 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2397 method.
2398 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2399
2400 2020-09-29 Tom Tromey <tom@tromey.com>
2401
2402 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2403 the attribute's form.
2404
2405 2020-09-29 Tom Tromey <tom@tromey.com>
2406
2407 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2408 (dwarf2_add_member_fn): Update.
2409 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2410 * dwarf2/attribute.c (attribute::defaulted): New method, from
2411 is_valid_DW_AT_defaulted.
2412
2413 2020-09-29 Tom Tromey <tom@tromey.com>
2414
2415 * dwarf2/read.c (dw2_get_file_names_reader)
2416 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2417 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2418 (dwarf2_symbol_mark_computed): Use as_unsigned.
2419 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2420 method.
2421 <form_is_section_offset>: Update comment.
2422
2423 2020-09-29 Tom Tromey <tom@tromey.com>
2424
2425 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2426 dwarf2_default_access_attribute. Look up attribute.
2427 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2428 Update.
2429
2430 2020-09-29 Tom Tromey <tom@tromey.com>
2431
2432 * dwarf2/read.c (skip_one_die): Update.
2433 (read_full_die_1): Change how reprocessing is done.
2434 (partial_die_info::read): Update.
2435 (read_attribute_value): Remove need_reprocess parameter.
2436 (read_attribute): Likewise.
2437 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2438 New method.
2439
2440 2020-09-29 Tom Tromey <tom@tromey.com>
2441
2442 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2443 (dwarf2_const_value_attr, dump_die_shallow)
2444 (dwarf2_fetch_constant_bytes): Update.
2445 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2446 comment.
2447 <set_address>: New method.
2448 (DW_ADDR): Remove.
2449 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2450 (attribute::as_string, attribute::as_address): Add assert.
2451
2452 2020-09-29 Tom Tromey <tom@tromey.com>
2453
2454 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2455 (read_attribute_reprocess, read_attribute_value): Update.
2456 (read_attribute): Clear requires_reprocessing.
2457 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2458 form_requires_reprocessing>: New methods.
2459 <string_init>: Clear requires_reprocessing.
2460 <set_unsigned_reprocess>: New method.
2461 <name>: Shrink by one bit.
2462 <requires_reprocessing>: New member.
2463 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2464 method.
2465
2466 2020-09-29 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2/read.c (read_attribute_value): Update.
2469 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2470 set_unsigned>: New methods.
2471 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2472
2473 2020-09-29 Tom Tromey <tom@tromey.com>
2474
2475 * dwarf2/read.c (get_alignment, read_array_order)
2476 (read_attribute_value, dwarf2_const_value_attr)
2477 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2478 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2479 New methods.
2480 (DW_SND): Remove.
2481
2482 2020-09-29 Tom Tromey <tom@tromey.com>
2483
2484 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2485 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2486 Update.
2487 * dwarf2/attribute.h (struct attribute) <as_signature,
2488 set_signature>: New methods.
2489 (DW_SIGNATURE): Remove.
2490
2491 2020-09-29 Tom Tromey <tom@tromey.com>
2492
2493 * dwarf2/read.c (read_call_site_scope)
2494 (handle_data_member_location, dwarf2_add_member_fn)
2495 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2496 (partial_die_info::read, read_attribute_value)
2497 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2498 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2499 (dwarf2_symbol_mark_computed): Update.
2500 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2501 methods.
2502 (DW_BLOCK): Remove.
2503 * dwarf2/attribute.c (attribute::form_is_block): Add
2504 DW_FORM_data16.
2505
2506 2020-09-29 Tom Tromey <tom@tromey.com>
2507
2508 * dwarf2/read.c (read_cutu_die_from_dwo)
2509 (read_attribute_reprocess, read_attribute_value, read_attribute)
2510 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2511 (dwarf2_fetch_constant_bytes): Update.
2512 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2513 <set_string_noncanonical, set_string_canonical>: New methods.
2514 <string_is_canonical>: Update comment.
2515 <canonical_string_p>: Add assert.
2516 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2517 * dwarf2/attribute.c (attribute::form_is_string): New method.
2518 (attribute::string): Use it.
2519
2520 2020-09-29 Tom Tromey <tom@tromey.com>
2521
2522 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2523 (dump_die_shallow): Use canonical_string_p.
2524 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2525 method.
2526
2527 2020-09-29 Tom Tromey <tom@tromey.com>
2528
2529 * dwarf2/read.c (partial_die_info::read)
2530 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2531 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2532 attribute::as_string.
2533
2534 2020-09-29 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2537 DW_ADDR.
2538 (attribute::string): Don't use DW_STRING.
2539 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2540 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2541
2542 2020-09-29 Tom Tromey <tom@tromey.com>
2543
2544 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2545 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2546 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2547 * dwarf2/attribute.h (struct attribute): Rename methods.
2548 * dwarf2/attribute.c (attribute::as_address): Rename from
2549 value_as_address.
2550 (attribute::as_string): Rename from value_as_string.
2551
2552 2020-09-29 Tom Tromey <tom@tromey.com>
2553
2554 * dwarf2/read.c (partial_die_info::read) <case
2555 DW_AT_linkage_name>: Use value_as_string.
2556 (dwarf2_string_attr): Use value_as_string.
2557 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2558 method.
2559 * dwarf2/attribute.c (attribute::value_as_string): New method.
2560
2561 2020-09-29 Pedro Alves <pedro@palves.net>
2562
2563 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2564 defined before using '#pragma GCC diagnostic' instead of checking
2565 __clang__.
2566
2567 2020-09-28 Tom Tromey <tom@tromey.com>
2568
2569 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2570 (handle_signal_stop): Update.
2571 * procfs.c (procfs_target::insert_watchpoint): Update.
2572 * target.h (target_have_steppable_watchpoint): Now a function.
2573
2574 2020-09-28 Tom Tromey <tom@tromey.com>
2575
2576 * infrun.c (set_schedlock_func): Update.
2577 * target.h (target_can_lock_scheduler): Now a function.
2578
2579 2020-09-28 Tom Tromey <tom@tromey.com>
2580
2581 * inferior.h (class inferior) <has_execution>: Update.
2582 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2583 * valops.c (find_function_in_inferior)
2584 (value_allocate_space_in_inferior): Update.
2585 * top.c (kill_or_detach): Update.
2586 * target.c (target_preopen, set_target_permissions): Update.
2587 (target_has_execution_current): Remove.
2588 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2589 Update.
2590 * solib.c (update_solib_list, reload_shared_libraries): Update.
2591 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2592 * solib-dsbt.c (enable_break): Update.
2593 * score-tdep.c (score7_fetch_inst): Update.
2594 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2595 Update.
2596 * remote.c (remote_target::start_remote)
2597 (remote_target::remote_check_symbols, remote_target::open_1)
2598 (remote_target::remote_detach_1, remote_target::verify_memory)
2599 (remote_target::xfer_partial, remote_target::read_description)
2600 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2601 * record-full.c (record_full_open_1): Update.
2602 * record-btrace.c (record_btrace_target_open): Update.
2603 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2604 (value_nsstring): Update.
2605 * linux-thread-db.c (add_thread_db_info)
2606 (thread_db_find_new_threads_silently, check_thread_db_callback)
2607 (try_thread_db_load_1, record_thread): Update.
2608 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2609 Update.
2610 * linux-fork.c (checkpoint_command): Update.
2611 * infrun.c (set_non_stop, set_observer_mode)
2612 (check_multi_target_resumption, for_each_just_stopped_thread)
2613 (maybe_remove_breakpoints, normal_stop)
2614 (class infcall_suspend_state): Update.
2615 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2616 (info_program_command, attach_command): Update.
2617 * infcall.c (call_function_by_hand_dummy): Update.
2618 * inf-loop.c (inferior_event_handler): Update.
2619 * gcore.c (gcore_command, derive_heap_segment): Update.
2620 * exec.c (exec_file_command): Update.
2621 * eval.c (evaluate_subexp): Update.
2622 * compile/compile.c (compile_to_object): Update.
2623 * cli/cli-dump.c (restore_command): Update.
2624 * breakpoint.c (update_watchpoint)
2625 (update_inserted_breakpoint_locations)
2626 (insert_breakpoint_locations, get_bpstat_thread): Update.
2627 * target.h (target_has_execution): Remove macro.
2628 (target_has_execution_current): Don't declare.
2629 (target_has_execution): Rename from target_has_execution_1. Add
2630 argument default.
2631
2632 2020-09-28 Tom Tromey <tom@tromey.com>
2633
2634 * mi/mi-main.c (exec_reverse_continue)
2635 (mi_cmd_list_target_features): Update.
2636 * infrun.c (set_exec_direction_func): Update.
2637 * target.c (default_execution_direction): Update.
2638 * reverse.c (exec_reverse_once): Update.
2639 * target.h (target_can_execute_reverse): Now a function.
2640
2641 2020-09-28 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-regs.c (tui_get_register)
2644 (tui_data_window::show_registers): Update.
2645 * thread.c (scoped_restore_current_thread::restore)
2646 (scoped_restore_current_thread::scoped_restore_current_thread):
2647 Update.
2648 * regcache-dump.c (regcache_print): Update.
2649 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2650 Update.
2651 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2652 * mep-tdep.c (current_me_module, current_options): Update.
2653 * linux-thread-db.c (thread_db_load): Update.
2654 * infcmd.c (registers_info, info_vector_command)
2655 (info_float_command): Update.
2656 * ia64-tdep.c (ia64_frame_prev_register)
2657 (ia64_sigtramp_frame_prev_register): Update.
2658 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2659 * gcore.c (derive_stack_segment): Update.
2660 * frame.c (get_current_frame, has_stack_frames): Update.
2661 * findvar.c (language_defn::read_var_value): Update.
2662 * arm-tdep.c (arm_pc_is_thumb): Update.
2663 * target.c (target_has_registers): Rename from
2664 target_has_registers_1.
2665 * target.h (target_has_registers): Remove macro.
2666 (target_has_registers): Rename from target_has_registers_1.
2667
2668 2020-09-28 Tom Tromey <tom@tromey.com>
2669
2670 * windows-tdep.c (tlb_make_value): Update.
2671 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2672 * thread.c (scoped_restore_current_thread::restore)
2673 (scoped_restore_current_thread::scoped_restore_current_thread)
2674 (thread_command): Update.
2675 * stack.c (backtrace_command_1, frame_apply_level_command)
2676 (frame_apply_all_command, frame_apply_command): Update.
2677 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2678 Update.
2679 * gcore.c (derive_stack_segment): Update.
2680 * frame.c (get_current_frame, has_stack_frames): Update.
2681 * auxv.c (info_auxv_command): Update.
2682 * ada-tasks.c (ada_build_task_list): Update.
2683 * target.c (target_has_stack): Rename from target_has_stack_1.
2684 * target.h (target_has_stack): Remove macro.
2685 (target_has_stack): Rename from target_has_stack_1.
2686
2687 2020-09-28 Tom Tromey <tom@tromey.com>
2688
2689 * target.c (target_has_memory): Rename from target_has_memory_1.
2690 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2691 * thread.c (scoped_restore_current_thread::restore)
2692 (scoped_restore_current_thread::scoped_restore_current_thread):
2693 Update.
2694 * frame.c (get_current_frame, has_stack_frames): Update.
2695 * target.h (target_has_memory): Remove macro.
2696 (target_has_memory): Rename from target_has_memory_1.
2697
2698 2020-09-28 Tom Tromey <tom@tromey.com>
2699
2700 * target.c (target_has_all_memory_1): Remove.
2701 * target.h (target_has_all_memory): Remove define.
2702 (target_has_all_memory_1): Don't declare.
2703
2704 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * ser-base.c: Adjust comments formatting.
2707
2708 2020-09-27 Tom Tromey <tom@tromey.com>
2709
2710 PR tui/25342:
2711 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2712
2713 2020-09-27 Tom Tromey <tom@tromey.com>
2714
2715 PR tui/25342:
2716 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2717
2718 2020-09-27 Tom Tromey <tom@tromey.com>
2719
2720 * unittests/tui-selftests.c: Update.
2721 * tui/tui-winsource.h (struct tui_source_window_base)
2722 <extra_margin, show_line_number, refresh_pad>: New methods.
2723 <m_max_length, m_pad>: New members.
2724 (tui_copy_source_line): Update.
2725 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2726 first_col, line_width, ndigits parameters. Add length.
2727 (tui_source_window_base::show_source_line): Write to pad. Line
2728 number now 0-based.
2729 (tui_source_window_base::refresh_pad): New method.
2730 (tui_source_window_base::show_source_content): Write to pad. Call
2731 refresh_pad.
2732 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2733 not refill.
2734 (tui_source_window_base::update_exec_info): Call
2735 show_line_number.
2736 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2737 method.
2738 <m_digits>: New member.
2739 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2740 and m_max_length.
2741 (tui_source_window::show_line_number): New method.
2742 * tui/tui-io.h (tui_puts): Fix comment.
2743 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2744 m_max_length.
2745
2746 2020-09-27 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui-winsource.c
2749 (tui_source_window_base::set_is_exec_point_at): Don't call
2750 show_source_line.
2751
2752 2020-09-27 Tom Tromey <tom@tromey.com>
2753
2754 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2755 method.
2756 <erase>: Update.
2757 <cursor_x, cursor_y>: Remove.
2758 <m_inner_window>: New member.
2759 (tui_py_window::rerender): Create inner window.
2760 (tui_py_window::output): Write to inner window.
2761
2762 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2763
2764 PR python/26586
2765 * cli/cli-script.c (execute_control_commands): don't set
2766 instream to nullptr here as this breaks the from_tty argument
2767 to gdb.execute in Python.
2768 (execute_user_command): set instream to nullptr here instead.
2769
2770 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * infrun.h (infrun_debug_printf): Fix formatting.
2773 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2774
2775 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2776
2777 * compile/compile-object-load.h (struct munmap_list): Add
2778 explicitly-defined move constructor.
2779
2780 2020-09-24 Tom Tromey <tromey@adacore.com>
2781
2782 PR tui/26638:
2783 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2784 method.
2785 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2786 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2787 (tui_prev_win): Rewrite.
2788
2789 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2790
2791 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2792 in WOW64 processes as SIGINT.
2793 * nat/windows-nat.h: Make wow64_process a shared variable.
2794 * windows-nat.c: Remove static wow64_process variable.
2795
2796 2020-09-23 Tom Tromey <tom@tromey.com>
2797
2798 PR symtab/25470:
2799 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2800 offset and bit size.
2801 * printcmd.c (print_scalar_formatted): Handle zero-length
2802 integer.
2803 (print_scalar_formatted): Use bit_size_differs_p.
2804 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2805 constant.
2806 (union type_specific): <int_stuff>: New member.
2807 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2808 methods.
2809 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2810 TYPE_SPECIFIC_FIELD.
2811 (recursive_dump_type, copy_type_recursive): Update.
2812 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2813 DW_AT_data_bit_offset.
2814
2815 2020-09-23 Tom Tromey <tom@tromey.com>
2816
2817 * utils.h (class gdb_argv): Add move operators.
2818 <append>: New methods.
2819 * compile/compile.c (build_argc_argv): Remove.
2820 (compile_args_argc): Remove.
2821 (compile_args_argv): Change type.
2822 (set_compile_args): Simplify.
2823 (append_args): Remove.
2824 (filter_args): Remove argcp parameter.
2825 (get_args): Return gdb_argv. Simplify.
2826 (compile_to_object): Update.
2827
2828 2020-09-23 Tom Tromey <tom@tromey.com>
2829
2830 * compile/compile-object-run.c (do_module_cleanup)
2831 <~do_module_cleanup> :Remove.
2832 (do_module_cleanup): Update.
2833 * compile/compile-object-load.h (struct munmap_list): Add move
2834 assignment operator.
2835 <source_file>: Now a std::string.
2836 <munmap_list>: Rename. No longer a pointer.
2837 * compile/compile-object-load.c (struct setup_sections_data): Add
2838 constructor.
2839 <setup_one_section>: Declare.
2840 <munmap_list>: Move earlier.
2841 <m_bfd>: New member.
2842 <m_last_size, m_last_section_first, m_last_prot,
2843 m_last_max_alignment>: Rename, add initializers where needed.
2844 (setup_sections_data::setup_one_section): Rename from
2845 setup_sections. Update.
2846 (compile_object_load): Update. Don't use bfd_map_over_sections.
2847
2848 2020-09-23 Tom Tromey <tom@tromey.com>
2849
2850 * compile/compile-object-run.c (struct do_module_cleanup): Add
2851 parameters to constructor. Update destructor.
2852 <source_file, scope, scope_data, out_value_type, out_value_addr,
2853 munmap_list_head, objfile_name_string>: Remove.
2854 <module>: New member.
2855 (do_module_cleanup): Update.
2856 (compile_object_run): Update.
2857
2858 2020-09-23 Tom Tromey <tom@tromey.com>
2859
2860 * compile/compile.c (eval_compile_command): Update.
2861 * compile/compile-object-run.h (compile_object_run): Take a
2862 compile_module_up.
2863 * compile/compile-object-run.c (compile_object_run): Take a
2864 compile_module_up.
2865 * compile/compile-object-load.h (struct compile_module): Add
2866 constructor, destructor.
2867 (compile_module_up): New typedef.
2868 (compile_object_load): Return compile_object_up.
2869 * compile/compile-object-load.c (compile_object_load): Return
2870 compile_module_up.
2871
2872 2020-09-23 Tom Tromey <tom@tromey.com>
2873
2874 * compile/compile-object-run.c (struct do_module_cleanup): Add
2875 constructor, destructor.
2876 <objfile_name_string>: Don't use struct hack.
2877 (do_module_cleanup): Use delete.
2878 (compile_object_run): Use new.
2879
2880 2020-09-23 Tom Tromey <tom@tromey.com>
2881
2882 * compile/compile-cplus-types.c
2883 (compile_cplus_convert_struct_or_union): Use std::vector.
2884 (compile_cplus_convert_func): Likewise.
2885 * compile/compile-c-types.c (convert_func): Use std::vector.
2886
2887 2020-09-21 Tom Tromey <tromey@adacore.com>
2888
2889 * sparc-tdep.c (sparc32_skip_prologue): Use
2890 skip_prologue_using_sal.
2891
2892 2020-09-19 Tom Tromey <tom@tromey.com>
2893
2894 * symfile.c (add_section_size_callback): Remove.
2895 (load_one_section): Rename from load_section_callback. Change
2896 parameters.
2897 (generic_load): Use foreach.
2898
2899 2020-09-19 Tom Tromey <tom@tromey.com>
2900
2901 * exec.c (add_to_section_table): Remove.
2902 (build_section_table): Use foreach.
2903
2904 2020-09-19 Tom Tromey <tom@tromey.com>
2905
2906 * elfread.c (elf_locate_sections): Change parameters.
2907 (elf_symfile_read): Use foreach.
2908
2909 2020-09-19 Tom Tromey <tom@tromey.com>
2910
2911 * cli/cli-dump.c (struct callback_data): Remove.
2912 (restore_one_section): Rename from restore_section_callback.
2913 Change parameters.
2914 (restore_binary_file): Change parameters.
2915 (restore_command): Use foreach.
2916
2917 2020-09-19 Tom Tromey <tom@tromey.com>
2918
2919 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2920 (gcore_copy_callback): Likewise.
2921 (gcore_memory_sections): Use foreach.
2922
2923 2020-09-19 Tom Tromey <tom@tromey.com>
2924
2925 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2926 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2927 parameters.
2928 (generic_elf_osabi_sniffer): Use foreach.
2929 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2930 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2931
2932 2020-09-19 Tom Tromey <tom@tromey.com>
2933
2934 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2935 (dwarf2_get_dwz_file): Use foreach.
2936 (dwarf2_locate_dwo_sections): Change parameters.
2937 (open_and_init_dwo_file): Use foreach.
2938 (dwarf2_locate_common_dwp_sections): Change parameters.
2939 (open_and_init_dwp_file): Use foreach.
2940
2941 2020-09-19 Tom Tromey <tom@tromey.com>
2942
2943 * symfile.h: (find_lowest_section): Don't declare.
2944 * symfile.c (find_lowest_section): Now static. Change
2945 parameters.
2946 (struct place_section_arg): Remove.
2947 (place_section): Change parameters.
2948 (addr_info_make_relative): Use foreach.
2949 (symfile_dummy_outputs): Remove.
2950 (default_symfile_relocate): Use foreach.
2951
2952 2020-09-19 Tom Tromey <tom@tromey.com>
2953
2954 * objfiles.c (add_to_objfile_sections): Rename from
2955 add_to_objfile_sections_full.
2956 (add_to_objfile_sections): Remove.
2957 (build_objfile_section_table): Use foreach.
2958
2959 2020-09-19 Tom Tromey <tom@tromey.com>
2960
2961 * stap-probe.c (get_stap_base_address_1): Remove.
2962 (get_stap_base_address): Use foreach.
2963
2964 2020-09-19 Tom Tromey <tom@tromey.com>
2965
2966 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2967 parameters.
2968 (gdb_bfd_close_or_warn): Use foreach.
2969
2970 2020-09-19 Tom Tromey <tom@tromey.com>
2971
2972 * corelow.c (add_to_thread_list): Change parameters.
2973 (core_target_open): Use foreach.
2974
2975 2020-09-19 Tom Tromey <tom@tromey.com>
2976
2977 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2978 existing function.
2979
2980 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2983 for arrays.
2984
2985 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * eval.c: Remove 'f-lang.h' include.
2988 (value_f90_subarray): Moved to f-lang.c.
2989 (eval_call): Renamed to...
2990 (evaluate_subexp_do_call): ...this, is no longer static, header
2991 comment moved into header file.
2992 (evaluate_funcall): Update call to eval_call.
2993 (skip_undetermined_arglist): Moved to f-lang.c.
2994 (fortran_value_subarray): Likewise.
2995 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2996 moved to evaluate_subexp_f.
2997 (calc_f77_array_dims): Moved to f-lang.c
2998 * expprint.c (print_subexp_funcall): New function.
2999 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3000 moved to print_subexp_f, OP_FUNCALL uses new function.
3001 (dump_subexp_body_funcall): New function.
3002 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3003 moved to dump_subexp_f, OP_FUNCALL uses new function.
3004 * expression.h (evaluate_subexp_do_call): Declare.
3005 * f-lang.c (value_f90_subarray): Moved from eval.c.
3006 (skip_undetermined_arglist): Likewise.
3007 (calc_f77_array_dims): Likewise.
3008 (fortran_value_subarray): Likewise.
3009 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3010 (operator_length_f): Likewise.
3011 (print_subexp_f): Likewise.
3012 (dump_subexp_body_f): Likewise.
3013 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3014 declaration of this operation to here.
3015 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3016 support moved to operator_length_f.
3017 * parser-defs.h (dump_subexp_body_funcall): Declare.
3018 (print_subexp_funcall): Declare.
3019 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3020 fortran-operator.def.
3021
3022 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * eval.c (fortran_value_subarray): New function, content is taken
3025 from...
3026 (evaluate_subexp_standard): ...here, in two places. Now arrays
3027 and strings both call the new function.
3028 (calc_f77_array_dims): Add header comment, handle strings.
3029
3030 2020-09-18 Victor Collod <vcollod@nvidia.com>
3031
3032 PR gdb/26635
3033 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3034 (i386_analyze_prologue): Call i386_skip_endbr.
3035
3036 2020-09-18 Tom Tromey <tromey@adacore.com>
3037
3038 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3039 (windows_nat_target::wait): Update.
3040 * target/wait.h (enum target_wait_flag): New. Use
3041 DEF_ENUM_FLAGS_TYPE.
3042 * target/target.h (target_wait): Change type of options.
3043 * target.h (target_options_to_string, default_target_wait):
3044 Update.
3045 (struct target_ops) <wait>: Change type of options.
3046 * target.c (target_wait, default_target_wait, do_option): Change
3047 type of "options".
3048 (target_options_to_string): Likewise.
3049 * target-delegates.c: Rebuild.
3050 * target-debug.h (target_debug_print_target_wait_flags): Rename
3051 from target_debug_print_options.
3052 * sol-thread.c (class sol_thread_target) <wait>: Update.
3053 (sol_thread_target::wait): Update.
3054 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3055 (rs6000_nat_target::wait): Update.
3056 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3057 Update.
3058 (remote_target::wait_ns, remote_target::wait_as): Change type of
3059 "options".
3060 (remote_target::wait): Update.
3061 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3062 (gdbsim_target::wait): Update.
3063 * record-full.c (class record_full_base_target) <wait>: Update.
3064 (record_full_wait_1): Change type of "options".
3065 (record_full_base_target::wait): Update.
3066 * record-btrace.c (class record_btrace_target) <wait>: Update.
3067 (record_btrace_target::wait): Update.
3068 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3069 Update.
3070 (ravenscar_thread_target::wait): Update.
3071 * procfs.c (class procfs_target) <wait>: Update.
3072 (procfs_target::wait): Update.
3073 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3074 * obsd-nat.c (obsd_nat_target::wait): Update.
3075 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3076 (nto_procfs_target::wait): Update.
3077 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3078 * nbsd-nat.c (nbsd_wait): Change type of "options".
3079 (nbsd_nat_target::wait): Update.
3080 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3081 (thread_db_target::wait): Update.
3082 * linux-nat.h (class linux_nat_target) <wait>: Update.
3083 * linux-nat.c (linux_nat_target::wait): Update.
3084 (linux_nat_wait_1): Update.
3085 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3086 "options".
3087 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3088 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3089 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3090 (go32_nat_target::wait): Update.
3091 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3092 * gnu-nat.c (gnu_nat_target::wait): Update.
3093 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3094 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3095 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3096 * darwin-nat.c (darwin_nat_target::wait): Update.
3097 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3098 (bsd_uthread_target::wait): Update.
3099 * aix-thread.c (class aix_thread_target) <wait>: Update.
3100 (aix_thread_target::wait): Update.
3101
3102 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * compile/compile-object-run.c (create_copied_type_recursive): New
3105 function.
3106 (compile_object_run): Use new function.
3107
3108 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3109
3110 * NEWS: Mention x86_64 Cygwin core file support.
3111
3112 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3113
3114 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3115 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3116
3117 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3118
3119 * windows-tdep.h: Add prototypes.
3120 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3121 (i386_windows_core_pid_to_str): Move and rename ...
3122 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3123 (windows_core_pid_to_str): ... and here.
3124 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3125
3126 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3127 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3128 (amd64_windows_init_abi_common): ... and register.
3129
3130 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3131
3132 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3133 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3134
3135 2020-09-18 Pedro Alves <pedro@palves.net>
3136
3137 PR gdb/26631
3138 * thread.c (thread_find_command): Switch inferior before calling
3139 target methods.
3140
3141 2020-09-17 Tom Tromey <tromey@adacore.com>
3142
3143 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3144 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3145 (tdesc_arch_data_up): New typedef.
3146 (tdesc_use_registers, tdesc_data_alloc): Update.
3147 (tdesc_data_cleanup): Don't declare.
3148 * target-descriptions.c (tdesc_data_alloc): Return a
3149 tdesc_arch_data_up.
3150 (tdesc_arch_data_deleter::operator()): Rename from
3151 tdesc_data_cleanup. Change argument type.
3152 (tdesc_use_registers): Change early_data to an rvalue reference.
3153 (tdesc_use_registers): Don't use delete.
3154 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3155 * s390-tdep.c (s390_gdbarch_init): Update.
3156 * rx-tdep.c (rx_gdbarch_init): Update.
3157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3158 * riscv-tdep.c (riscv_gdbarch_init): Update.
3159 * or1k-tdep.c (or1k_gdbarch_init): Update.
3160 * nios2-tdep.c (nios2_gdbarch_init): Update.
3161 * nds32-tdep.c (nds32_gdbarch_init): Update.
3162 * mips-tdep.c (mips_gdbarch_init): Update.
3163 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3164 * m68k-tdep.c (m68k_gdbarch_init): Update.
3165 * i386-tdep.c (i386_gdbarch_init): Update.
3166 * arm-tdep.c (arm_gdbarch_init): Update.
3167 * arc-tdep.c (arc_tdesc_init): Update.
3168 (arc_gdbarch_init): Update.
3169 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3170
3171 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3172
3173 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3174 for WOW64 processes.
3175
3176 2020-09-17 Tom Tromey <tom@tromey.com>
3177
3178 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3179
3180 2020-09-17 Tom Tromey <tom@tromey.com>
3181
3182 * value.c (preserve_values): Update.
3183 * python/py-type.c (save_objfile_types): Update.
3184 * guile/scm-type.c (save_objfile_types): Update.
3185 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3186 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3187 * compile/compile-object-run.c (compile_object_run): Update.
3188
3189 2020-09-17 Tom Tromey <tom@tromey.com>
3190
3191 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3192 Remove.
3193 <m_table>: Now htab_up.
3194 * typeprint.c (typedef_hash_table::recursively_update)
3195 (typedef_hash_table::add_template_parameters)
3196 (typedef_hash_table::typedef_hash_table): Update.
3197 (typedef_hash_table::~typedef_hash_table): Remove.
3198 (typedef_hash_table::typedef_hash_table)
3199 (typedef_hash_table::find_global_typedef)
3200 (typedef_hash_table::find_typedef): Update.
3201
3202 2020-09-17 Tom Tromey <tom@tromey.com>
3203
3204 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3205
3206 2020-09-17 Tom Tromey <tom@tromey.com>
3207
3208 * linespec.c (class decode_compound_collector)
3209 <~decode_compound_collector>: Remove.
3210 <m_unique_syms>: Now htab_up.
3211 (decode_compound_collector::operator ()): Update.
3212 (class symtab_collector) <~symtab_collector>: Remove.
3213 <m_symtab_table>: Now htab_up.
3214 (symtab_collector::operator ()): Update.
3215
3216 2020-09-17 Tom Tromey <tom@tromey.com>
3217
3218 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3219 (filename_seen_cache::clear): Update.
3220 (~filename_seen_cache): Remove.
3221 (filename_seen_cache::seen): Update.
3222 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3223 htab_up.
3224 <~filename_seen_cache>: Remove.
3225 <traverse>: Update.
3226
3227 2020-09-17 Tom Tromey <tom@tromey.com>
3228
3229 * completer.c (completion_tracker::discard_completions)
3230 (completion_tracker::~completion_tracker)
3231 (completion_tracker::maybe_add_completion)
3232 (completion_tracker::remove_completion)
3233 (completion_tracker::recompute_lowest_common_denominator)
3234 (completion_tracker::build_completion_result): Update.
3235 * completer.h (class completion_tracker) <have_completions>:
3236 Update.
3237 <m_entries_hash>: Now htab_up.
3238
3239 2020-09-17 Tom Tromey <tom@tromey.com>
3240
3241 * breakpoint.c (ambiguous_names_p): Use htab_up.
3242
3243 2020-09-17 Tom Tromey <tom@tromey.com>
3244
3245 * auto-load.c (struct auto_load_pspace_info)
3246 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3247 <loaded_script_files, loaded_script_texts>: Change type to
3248 htab_up.
3249 (~auto_load_pspace_info) Remove.
3250 (init_loaded_scripts_info, maybe_add_script_file)
3251 (maybe_add_script_text, auto_load_info_scripts): Update.
3252
3253 2020-09-17 Tom Tromey <tromey@adacore.com>
3254
3255 * c-exp.y (name_obstack): Now static.
3256
3257 2020-09-17 Chungyi Chi <demonic@csie.io>
3258
3259 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3260
3261 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3264 (add_solib_catchpoint): Likewise.
3265 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3266 to bool.
3267 (add_solib_catchpoint): Change int parameter/variable to bool.
3268 (catch_load_or_unload): Likewise.
3269 (init_catchpoint): Likewise.
3270 (create_fork_vfork_event_catchpoint): Likewise.
3271 (catch_fork_command_1): Likewise.
3272 (catch_exec_command_1): Likewise.
3273
3274 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3277 Change instance_flags to m_instance_flags.
3278
3279 2020-09-16 Tom Tromey <tromey@adacore.com>
3280
3281 PR gdb/26598:
3282 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3283
3284 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3285
3286 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3287 PL_FLAG_EXEC.
3288 (fbsd_nat_target::insert_exec_catchpoint)
3289 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3290 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3291 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3292
3293 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3294
3295 * configure.ac: Remove check for kinfo_getvmmap().
3296 * configure, config.in: Regenerate.
3297 * fbsd-nat.c (fbsd_read_mapping): Remove
3298 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3299 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3300 kinfo_get_vmmap() are always present.
3301
3302 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3303
3304 * fbsd-nat.c: Always include support for
3305 TARGET_OBJECT_SIGNAL_INFO.
3306
3307 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3308
3309 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3310 sysctl and remove procfs fallback.
3311
3312 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3313
3314 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3315 * fbsd-nat.h: Likewise.
3316
3317 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3318
3319 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3320 argument.
3321
3322 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * ada-lang.c (ada_language_data): Delete.
3325 (ada_language): Remove references to ada_language_data.
3326 * c-lang.c (c_language_data): Delete.
3327 (c_language): Remove references to c_language_data.
3328 (cplus_language_data): Delete.
3329 (cplus_language): Remove references to cplus_language_data.
3330 (asm_language_data): Delete.
3331 (asm_language): Remove references to asm_language_data.
3332 (minimal_language_data): Delete.
3333 (minimal_language): Remove references to minimal_language_data.
3334 * d-lang.c (d_language_data): Delete.
3335 (d_language): Remove references to d_language_data.
3336 * f-lang.c (f_language_data): Delete.
3337 (f_language): Remove references to f_language_data.
3338 * go-lang.c (go_language_data): Delete.
3339 (go_language): Remove references to go_language_data.
3340 * language.c (unknown_language_data): Delete.
3341 (unknown_language): Remove references to unknown_language_data.
3342 (auto_language_data): Delete.
3343 (auto_language): Remove references to auto_language_data.
3344 * language.h (language_data): Delete struct.
3345 (language_defn): No longer inherit from language_data.
3346 * m2-lang.c (m2_language_data): Delete.
3347 (m2_language): Remove references to m2_language_data.
3348 * objc-lang.c (objc_language_data): Delete.
3349 (objc_language): Remove references to objc_language_data.
3350 * opencl-lang.c (opencl_language_data): Delete.
3351 (opencl_language): Remove references to opencl_language_data.
3352 * p-lang.c (pascal_language_data): Delete.
3353 (pascal_language): Remove references to pascal_language_data.
3354 * rust-lang.c (rust_language_data): Delete.
3355 (rust_language): Remove references to rust_language_data.
3356
3357 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3360 initializer.
3361 (ada_language::opcode_print_table): New member function.
3362 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3363 (c_language::opcode_print_table): New member function.
3364 (cplus_language_data): Remove la_op_print_tab initializer.
3365 (cplus_language::opcode_print_table): New member function.
3366 (asm_language_data): Remove la_op_print_tab initializer.
3367 (asm_language::opcode_print_table): New member function.
3368 (minimal_language_data): Remove la_op_print_tab initializer.
3369 (minimal_language::opcode_print_table): New member function.
3370 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3371 (d_language::opcode_print_table): New member function.
3372 * expprint.c (print_subexp_standard): Update call to
3373 opcode_print_table.
3374 (op_string): Likewise.
3375 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3376 (f_language::opcode_print_table): New member function.
3377 * go-lang.c (go_language_data): Remove la_op_print_tab
3378 initializer.
3379 (go_language::opcode_print_table): New member function.
3380 * language.c (unknown_language_data): Remove la_op_print_tab
3381 initializer.
3382 (unknown_language::opcode_print_table): New member function.
3383 (auto_language_data): Remove la_op_print_tab initializer.
3384 (auto_language::opcode_print_table): New member function.
3385 * language.h (language_data): Remove la_op_print_tab field.
3386 (language_defn::opcode_print_table): Declare new member function.
3387 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3388 initializer.
3389 (m2_language::opcode_print_table): New member function.
3390 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3391 initializer.
3392 (objc_language::opcode_print_table): New member function.
3393 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3394 initializer.
3395 (opencl_language::opcode_print_table): New member function.
3396 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3397 initializer.
3398 (pascal_language::opcode_print_table): New member function.
3399 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3400 initializer.
3401 (rust_language::opcode_print_table): New member function.
3402
3403 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3406 (ada_language::expression_ops): New member function.
3407 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3408 (c_language::expression_ops): New member function.
3409 (cplus_language_data): Remove la_exp_desc initializer.
3410 (cplus_language::expression_ops): New member function.
3411 (asm_language_data): Remove la_exp_desc initializer.
3412 (asm_language::expression_ops): New member function.
3413 (minimal_language_data): Remove la_exp_desc initializer.
3414 (minimal_language::expression_ops): New member function.
3415 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3416 (d_language::expression_ops): New member function.
3417 * eval.c (evaluate_subexp): Update call to expression_ops.
3418 * expprint.c (print_subexp): Likewise.
3419 (op_name): Likewise.
3420 (dump_subexp_body): Likewise.
3421 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3422 (f_language::expression_ops): New member function.
3423 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3424 (go_language::expression_ops): New member function.
3425 * language.c (language_defn::expression_ops): New function.
3426 (unknown_language_data): Remove la_exp_desc initializer.
3427 (auto_language_data): Likewise.
3428 * language.h (language_data): Remove la_exp_desc field.
3429 (language_defn::expression_ops): Declare new member function.
3430 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3431 (m2_language::expression_ops): New member function.
3432 * objc-lang.c (objc_language_data): Remove la_exp_desc
3433 initializer.
3434 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3435 initializer.
3436 (opencl_language::expression_ops): New member function.
3437 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3438 * parse.c (operator_length): Update call to expression_ops.
3439 (exp_iterate): Likewise.
3440 * rust-lang.c (rust_language_data): Remove la_exp_desc
3441 initializer.
3442 (ruse_language::expression_ops): New member function.
3443
3444 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3445
3446 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3447 initializer.
3448 (ada_language::varobj_ops): New member function.
3449 * c-lang.c (c_language_data): Remove la_varobj_ops
3450 initializer.
3451 (cplus_language_data): Likewise.
3452 (cplus_language::varobj_ops): New member function.
3453 (asm_language_data): Remove la_varobj_ops initializer.
3454 (minimal_language_data): Likewise.
3455 * d-lang.c (d_language_data): Likewise.
3456 * f-lang.c (f_language_data): Likewise.
3457 * go-lang.c (go_language_data): Likewise.
3458 * language.c (language_defn::varobj_ops): New function.
3459 (unknown_language_data): Remove la_varobj_ops
3460 initializer.
3461 (auto_language_data): Likewise.
3462 * language.h (language_data): Remove la_varobj_ops field.
3463 (language_defn::varobj_ops): Declare new member function.
3464 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3465 * objc-lang.c (objc_language_data): Likewise.
3466 * opencl-lang.c (opencl_language_data): Likewise.
3467 * p-lang.c (pascal_language_data): Likewise.
3468 * rust-lang.c (rust_language_data): Likewise.
3469 * varobj.c (varobj_create): Update call to varobj_ops.
3470 * varobj.h (default_varobj_ops): Delete define.
3471
3472 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3475 initializer.
3476 * c-lang.c (c_language_data): Likewise.
3477 (c_language::macro_expansion): New member function.
3478 (cplus_language_data): Likewise.
3479 (cplus_language::macro_expansion): New member function.
3480 (asm_language_data): Likewise.
3481 (asm_language::macro_expansion): New member function.
3482 (minimal_language_data): Likewise.
3483 (minimal_language::macro_expansion): New member function.
3484 * d-lang.c (d_language_data): Remove la_macro_expansion
3485 initializer.
3486 * f-lang.c (f_language_data): Likewise.
3487 * go-lang.c (go_language_data): Likewise.
3488 * language.c (unknown_language_data): Likewise.
3489 (auto_language_data): Likewise.
3490 * language.h (language_data): Remove la_macro_expansion field.
3491 (language_defn::macro_expansion): New member function.
3492 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3493 initializer.
3494 * objc-lang.c (objc_language_data): Likewise.
3495 (objc_language::macro_expansion): New member function.
3496 * opencl-lang.c (opencl_language_data): Likewise.
3497 (opencl_language::macro_expansion): New member function.
3498 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3499 initializer.
3500 * rust-lang.c (rust_language_data): Likewise.
3501 * symtab.c (default_collect_symbol_completion_matches_break_on):
3502 Update call to macro_expansion.
3503
3504 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * ada-lang.c (ada_language_data): Remove la_array_ordering
3507 initializer.
3508 * c-lang.c (c_language_data): Likewise.
3509 (cplus_language_data): Likewise.
3510 (asm_language_data): Likewise.
3511 (minimal_language_data): Likewise.
3512 * d-lang.c (d_language_data): Likewise.
3513 * dwarf2/read.c (read_array_order): Update for call to
3514 array_ordering.
3515 * f-lang.c (f_language_data): Remove la_array_ordering
3516 initializer.
3517 (f_language::array_ordering): New member function.
3518 * go-lang.c (go_language_data): Remove la_array_ordering
3519 initializer.
3520 * language.c (unknown_language_data): Likewise.
3521 (auto_language_data): Likewise.
3522 * language.h (language_data): Delete la_array_ordering field.
3523 (language_defn::array_ordering): New member function.
3524 * m2-lang.c (m2_language_data): Remove la_array_ordering
3525 initializer.
3526 * objc-lang.c (objc_language_data): Likewise.
3527 * opencl-lang.c (opencl_language_data): Likewise.
3528 * p-lang.c (pascal_language_data): Likewise.
3529 * rust-lang.c (rust_language_data): Likewise.
3530
3531 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3534 initializer.
3535 * c-lang.c (c_language_data): Likewise.
3536 (cplus_language_data): Likewise.
3537 (asm_language_data): Likewise.
3538 (minimal_language_data): Likewise.
3539 * d-lang.c (d_language_data): Likewise.
3540 * f-lang.c (f_language_data): Likewise.
3541 (f_language::case_sensitivity): New member function.
3542 * go-lang.c (go_language_data): Remove la_case_sensitivity
3543 initializer.
3544 * language.c (enum case_mode): Moved here from language.h.
3545 (case_mode): Make static.
3546 (show_case_command): Update for case_sensitivity being a method.
3547 (set_case_command): Likewise.
3548 (set_range_case): Likewise.
3549 (unknown_language_data): Remove la_case_sensitivity initializer.
3550 (auto_language_data): Likewise.
3551 * language.h (case_mode): Delete, move enum declaration to
3552 language.c.
3553 (language_data): Delete la_case_sensitivity field.
3554 (language_defn::case_sensitivity): New member function.
3555 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3556 initializer.
3557 * objc-lang.c (objc_language_data): Likewise.
3558 * opencl-lang.c (opencl_language_data): Likewise.
3559 * p-lang.c (pascal_language_data): Likewise.
3560 * rust-lang.c (rust_language_data): Likewise.
3561
3562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * ada-lang.c (ada_language_data): Remove la_range_check
3565 initializer.
3566 * c-lang.c (c_language_data): Likewise.
3567 (cplus_language_data): Likewise.
3568 (asm_language_data): Likewise.
3569 (minimal_language_data): Likewise.
3570 * d-lang.c (d_language_data): Likewise.
3571 * f-lang.c (f_language_data): Likewise.
3572 (f_language::range_checking_on_by_default): New member function.
3573 * go-lang.c (go_language_data): Remove la_range_check initializer.
3574 * language.c (enum range_mode): Moved here from language.h.
3575 (range_mode): Made static.
3576 (show_range_command): Update to use
3577 range_checking_on_by_default.
3578 (set_range_command): Likewise.
3579 (set_range_case): Likewise.
3580 (unknown_language_data): Remove la_range_check initializer.
3581 (auto_language_data): Likewise.
3582 * language.h (range_mode): Delete. Enum definition moved to
3583 language.c.
3584 (language_data): Remove la_range_check field.
3585 (language_defn::range_checking_on_by_default): New member
3586 function.
3587 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3588 (m2_language::range_checking_on_by_default): New member function.
3589 * objc-lang.c (objc_language_data): Remove la_range_check
3590 initializer.
3591 * opencl-lang.c (opencl_language_data): Likewise.
3592 * p-lang.c (pascal_language_data): Likewise.
3593 (pascal_language::range_checking_on_by_default): New member
3594 function.
3595 * rust-lang.c (rust_language_data): Remove la_range_check
3596 initializer.
3597 (rust_language::range_checking_on_by_default): New member
3598 function.
3599
3600 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3601
3602 * dwarf2/read.c (dwarf2_physname): Remove special case for
3603 language_go.
3604 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3605 member function.
3606
3607 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * ada-lang.c (ada_language_data): Remove
3610 la_store_sym_names_in_linkage_form_p initializer.
3611 (ada_language::store_sym_names_in_linkage_form_p): New member
3612 function.
3613 * c-lang.c (c_language_data): Remove
3614 la_store_sym_names_in_linkage_form_p initializer.
3615 (c_language::store_sym_names_in_linkage_form_p): New member
3616 function.
3617 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3618 initializer.
3619 (asm_language_data): Likewise.
3620 (asm_language::store_sym_names_in_linkage_form_p): New member
3621 function.
3622 (minimal_language_data): Remove
3623 la_store_sym_names_in_linkage_form_p initializer.
3624 (minimal_language::store_sym_names_in_linkage_form_p): New member
3625 function.
3626 * d-lang.c (d_language_data): Remove
3627 la_store_sym_names_in_linkage_form_p initializer.
3628 * dwarf2/read.c (dwarf2_physname): Update call to
3629 store_sym_names_in_linkage_form_p.
3630 * f-lang.c (f_language_data): Remove
3631 la_store_sym_names_in_linkage_form_p initializer.
3632 * go-lang.c (go_language_data): Remove
3633 la_store_sym_names_in_linkage_form_p initializer.
3634 * language.c (unknown_language_data): Remove
3635 la_store_sym_names_in_linkage_form_p initializer.
3636 (unknown_language::store_sym_names_in_linkage_form_p): New member
3637 function.
3638 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3639 initializer.
3640 (auto_language::store_sym_names_in_linkage_form_p): New member
3641 function.
3642 * language.h (language_data): Remove
3643 la_store_sym_names_in_linkage_form_p member variable.
3644 (language_defn::store_sym_names_in_linkage_form_p): New member
3645 function.
3646 * m2-lang.c (m2_language_data): Remove
3647 la_store_sym_names_in_linkage_form_p initializer.
3648 * objc-lang.c (objc_language_data): Likewise.
3649 * opencl-lang.c (opencl_language_data): Likewise.
3650 * p-lang.c (pascal_language_data): Likewise.
3651 * rust-lang.c (rust_language_data): Likewise.
3652
3653 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * ada-lang.c (ada_language_data): Remove string_lower_bound
3656 initializer.
3657 * c-lang.c (c_language_data): Likewise.
3658 (cplus_language_data): Likewise.
3659 (asm_language_data): Likewise.
3660 (minimal_language_data): Likewise.
3661 * d-lang.c (d_language_data): Likewise.
3662 * f-lang.c (f_language_data): Likewise.
3663 * go-lang.c (go_language_data): Likewise.
3664 * language.c (unknown_language_data): Likewise.
3665 (auto_language_data): Likewise.
3666 * language.h (language_data): Remove string_lower_bound field.
3667 (language_defn::string_lower_bound): New member function.
3668 * m2-lang.c (m2_language_data): Remove string_lower_bound
3669 initializer.
3670 (m2_language::string_lower_bound): New member function.
3671 * objc-lang.c (objc_language_data): Remove string_lower_bound
3672 initializer.
3673 * opencl-lang.c (opencl_language_data): Likewise.
3674 * p-lang.c (pascal_language_data): Likewise.
3675 * rust-lang.c (rust_language_data): Likewise.
3676 * valops.c (value_cstring): Update call to string_lower_bound.
3677 (value_string): Likewise.
3678 * value.c (allocate_repeated_value): Likewise.
3679
3680 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * valops.c (value_repeat): Fix incorrect argument name in comment.
3683
3684 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Remove c_style_arrays
3687 initializer.
3688 (ada_language::c_style_arrays_p): New member fuction.
3689 * c-lang.c (c_language_data): Remove c_style_arrays
3690 initializer.
3691 (cplus_language_data): Likewise.
3692 (asm_language_data): Likewise.
3693 (minimal_language_data): Likewise.
3694 * d-lang.c (d_language_data): Likewise.
3695 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3696 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3697 (f_language::c_style_arrays_p): New member function.
3698 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3699 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3700 * language.c (unknown_language_data): Remove c_style_arrays
3701 initializer.
3702 (auto_language_data): Likewise.
3703 * language.h (language_data): Remove c_style_arrays field.
3704 (language_defn::c_style_arrays_p): New member function.
3705 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3706 (m2_language::c_style_arrays_p): New member function.
3707 * objc-lang.c (objc_language_data): Remove c_style_arrays
3708 initializer.
3709 * opencl-lang.c (opencl_language_data): Likewise.
3710 * p-lang.c (pascal_language_data): Likewise.
3711 * rust-lang.c (rust_language_data): Likewise.
3712 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3713 and update local variable to a bool.
3714 * valops.c (value_cast): Update call to c_style_arrays_p.
3715 (value_array): Likewise.
3716 * value.c (coerce_array): Likewise.
3717
3718 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * ada-lang.c (ada_language_data): Remove la_language initializer.
3721 * c-lang.c (c_language_data): Likewise.
3722 (cplus_language_data): Likewise.
3723 (asm_language_data): Likewise.
3724 (minimal_language_data): Likewise.
3725 * d-lang.c (d_language_data): Likewise.
3726 * f-lang.c (f_language_data): Likewise.
3727 * go-lang.c (go_language_data): Likewise.
3728 * language.c (unknown_language_data): Likewise.
3729 (auto_language_data): Likewise.
3730 * language.h (language_data): Remove la_language field.
3731 (language_defn::language_defn): Initialise la_language field.
3732 (language_defn::la_language): New member variable.
3733 * m2-lang.c (m2_language_data): Remove la_language field.
3734 * objc-lang.c (objc_language_data): Likewise.
3735 * opencl-lang.c (opencl_language_data): Likewise.
3736 * p-lang.c (pascal_language_data): Likewise.
3737 * rust-lang.c (rust_language_data): Likewise.
3738
3739 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * ada-lang.c (ada_extensions): Delete, moved into
3742 ada_language::filename_extensions.
3743 (ada_language_data): Remove la_filename_extensions initializer.
3744 (ada_language::filename_extensions): New member function.
3745 * c-lang.c (c_extensions): Delete, moved into
3746 c_language::filename_extensions.
3747 (c_language_data): Remove la_filename_extensions initializer.
3748 (c_language::filename_extensions): New member function.
3749 (cplus_extensions): Delete, moved into
3750 cplus_language::filename_extensions.
3751 (cplus_language_data): Remove la_filename_extensions initializer.
3752 (cplus_language::filename_extensions): New member function.
3753 (asm_extensions): Delete, moved into
3754 asm_language::filename_extensions.
3755 (asm_language_data): Remove la_filename_extensions initializer.
3756 (asm_language::filename_extensions): New member function.
3757 (minimal_language_data): Remove la_filename_extensions
3758 initializer.
3759 * d-lang.c (d_extensions): Delete, moved into
3760 d_language::filename_extensions.
3761 (d_language_data): Remove la_filename_extensions initializer.
3762 (d_language::filename_extensions): New member function.
3763 * f-lang.c (f_extensions): Delete, moved into
3764 f_language::filename_extensions.
3765 (f_language_data): Remove la_filename_extensions initializer.
3766 (f_language::filename_extensions): New member function.
3767 * go-lang.c (go_language_data): Remove la_filename_extensions
3768 initializer.
3769 * language.c (add_set_language_command): Update now that
3770 filename_extensions returns a vector.
3771 (unknown_language_data): Remove la_filename_extensions
3772 initializer.
3773 (auto_language_data): Likewise.
3774 * language.h (language_data): Remove la_filename_extensions field.
3775 (language_defn::filename_extensions): New member function.
3776 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3777 initializer.
3778 * objc-lang.c (objc_extensions): Delete, moved into
3779 objc_language::filename_extensions.
3780 (objc_language_data): Remove la_filename_extensions initializer.
3781 (objc_language::filename_extensions): New member function.
3782 * opencl-lang.c (opencl_language_data): Remove
3783 la_filename_extensions initializer.
3784 * p-lang.c (pascal_extensions): Delete, moved into
3785 pascal_language::filename_extensions.
3786 (pascal_language_data): Remove la_filename_extensions initializer.
3787 (pascal_language::filename_extensions): New member function.
3788 * rust-lang.c (rust_extensions): Delete, moved into
3789 rust_language::filename_extensions.
3790 (rust_language_data): Remove la_filename_extensions initializer.
3791 (rust_language::filename_extensions): New member function.
3792 * symfile.c (add_filename_language): Add new assert.
3793
3794 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3795
3796 * ada-lang.c (ada_language_data): Remove la_name and
3797 la_natural_name initializers.
3798 (ada_language::name): New member function.
3799 (ada_language::natural_name): New member function.
3800 * c-lang.c (c_language_data): Remove la_name and
3801 la_natural_name initializers.
3802 (c_language::name): New member function.
3803 (c_language::natural_name): New member function.
3804 (cplus_language_data): Remove la_name and
3805 la_natural_name initializers.
3806 (cplus_language::name): New member function.
3807 (cplus_language::natural_name): New member function.
3808 (asm_language_data): Remove la_name and
3809 la_natural_name initializers.
3810 (asm_language::name): New member function.
3811 (asm_language::natural_name): New member function.
3812 (minimal_language_data): Remove la_name and
3813 la_natural_name initializers.
3814 (minimal_language::name): New member function.
3815 (minimal_language::natural_name): New member function.
3816 * compile/compile.c (compile_to_object): Update call to
3817 lanugage_defn::name.
3818 * d-lang.c (d_language_data): Remove la_name and
3819 la_natural_name initializers.
3820 (d_language::name): New member function.
3821 (d_language::natural_name): New member function.
3822 * expprint.c (print_subexp_standard): Update call to
3823 language_defn::name.
3824 (dump_raw_expression): Likewise
3825 (dump_prefix_expression): Likewise.
3826 * f-lang.c (f_language_data): Remove la_name and
3827 la_natural_name initializers.
3828 (f_language::name): New member function.
3829 (f_language::natural_name): New member function.
3830 * go-lang.c (go_language_data): Remove la_name and
3831 la_natural_name initializers.
3832 (go_language::name): New member function.
3833 (go_language::natural_name): New member function.
3834 * language.c (show_language_command): Update call to
3835 language_defn::name.
3836 (set_language_command): Likewise.
3837 (language_enum): Likewise.
3838 (language_str): Likewise.
3839 (add_set_language_command): Likewise, use
3840 language_defn::natural_name in the doc string.
3841 (unknown_language_data): Remove la_name and
3842 la_natural_name initializers.
3843 (unknown_language::name): New member function.
3844 (unknown_language::natural_name): New member function.
3845 (auto_language_data): Remove la_name and
3846 la_natural_name initializers.
3847 (auto_language::name): New member function.
3848 (auto_language::natural_name): New member function.
3849 (language_lookup_primitive_type_as_symbol): Update call to
3850 language_defn::name.
3851 * language.h (language_data): Remove la_name and la_natural_name
3852 member variables.
3853 (language_defn::name): New member function.
3854 (language_defn::natural_name): New member function.
3855 * m2-lang.c (m2_language_data): Remove la_name and
3856 la_natural_name initializers.
3857 (m2_language::name): New member function.
3858 (m2_language::natural_name): New member function.
3859 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3860 language_defn::natural_name.
3861 * objc-lang.c (objc_language_data): Remove la_name and
3862 la_natural_name initializers.
3863 (objc_language::name): New member function.
3864 (objc_language::natural_name): New member function.
3865 * opencl-lang.c (opencl_language_data): Remove la_name and
3866 la_natural_name initializers.
3867 (opencl_language::name): New member function.
3868 (opencl_language::natural_name): New member function.
3869 * p-lang.c (pascal_language_data): Remove la_name and
3870 la_natural_name initializers.
3871 (pascal_language::name): New member function.
3872 (pascal_language::natural_name): New member function.
3873 * rust-lang.c (rust_language_data): Remove la_name and
3874 la_natural_name initializers.
3875 (rust_language::name): New member function.
3876 (rust_language::natural_name): New member function.
3877 * symtab.c (lookup_language_this): Update call to
3878 language_defn::name.
3879
3880 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * ada-lang.c (ada_language_data): Remove la_name_of_this
3883 initializer.
3884 * ax-gdb.c (gen_expr): Update call to name_of_this.
3885 * c-exp.y (classify_name): Likewise.
3886 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3887 (cplus_language_data): Likewise.
3888 (cplus_language::name_of_this): New member function.
3889 (asm_language_data): Remove la_name_of_this initializer.
3890 (minimal_language_data): Likewise.
3891 * d-lang.c (d_language_data): Likewise.
3892 (d_language::name_of_this): New member function.
3893 * expprint.c (print_subexp_standard): Update call to name_of_this.
3894 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3895 * go-lang.c (go_language_data): Likewise.
3896 * language.c (unknown_language_data): Likewise.
3897 (unknown_language::name_of_this): New member function.
3898 (auto_language_data): Remove la_name_of_this initializer.
3899 (auto_language::name_of_this): New member function.
3900 * language.h (language_data): Delete la_name_of_this member
3901 variable.
3902 (language_defn::name_of_this): New member function.
3903 * m2-lang.c (m2_language_data): Remove la_name_of_this
3904 initializer.
3905 * objc-lang.c (objc_language_data): Likewise.
3906 (objc_language::name_of_this): New member function.
3907 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3908 initializer.
3909 * p-lang.c (pascal_language_data): Likewise.
3910 (pascal_language::name_of_this): New member function.
3911 * rust-lang.c (rust_language_data): Remove la_name_of_this
3912 initializer.
3913 * symtab.c (lookup_language_this): Update call to name_of_this.
3914 (lookup_symbol_aux): Likewise.
3915 * valops.c (value_of_this): Likewise.
3916
3917 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * ada-lang.c (ada_language_data): Remove
3920 la_struct_too_deep_ellipsis initializer.
3921 (ada_language::struct_too_deep_ellipsis): New member function.
3922 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3923 initializer.
3924 (cplus_language_data): Likewise.
3925 (asm_language_data): Likewise.
3926 (minimal_language_data): Likewise.
3927 * cp-valprint.c (cp_print_value): Update call to
3928 struct_too_deep_ellipsis.
3929 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3930 initializer.
3931 * f-lang.c (f_language_data): Likewise.
3932 (f_language::struct_too_deep_ellipsis): New member function.
3933 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3934 initializer.
3935 * language.c (unknown_language_data): Likewise.
3936 (auto_language_data): Likewise.
3937 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3938 member variable.
3939 (language_defn::struct_too_deep_ellipsis): New member function.
3940 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3941 initializer.Q
3942 * objc-lang.c (objc_language_data): Likewise.
3943 * opencl-lang.c (opencl_language_data): Likewise.
3944 * p-lang.c (pascal_language_data): Likewise.
3945 * rust-lang.c (rust_language_data): Likewise.
3946 * valprint.c (val_print_check_max_depth): Update call to
3947 struct_too_deep_ellipsis.
3948
3949 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3950
3951 * MAINTAINERS (Write After Approval): Add myself.
3952
3953 2020-09-15 Tom Tromey <tom@tromey.com>
3954
3955 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3956 Remove.
3957
3958 2020-09-15 Tom Tromey <tom@tromey.com>
3959
3960 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3961 and TYPE_CODE_METHODPTR cases.
3962 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3963 (c_value_print_inner): Update.
3964 * valprint.c (generic_value_print_memberptr): New function, from
3965 c_value_print_memberptr.
3966 (generic_value_print): Use it. Call cplus_print_method_ptr.
3967
3968 2020-09-15 Tom Tromey <tromey@adacore.com>
3969
3970 * python/python-internal.h (PyInt_FromLong): Remove define.
3971 * python/py-value.c (convert_value_from_python): Use
3972 gdb_py_object_from_longest.
3973 * python/py-type.c (typy_get_code): Use
3974 gdb_py_object_from_longest.
3975 * python/py-symtab.c (salpy_get_line): Use
3976 gdb_py_object_from_longest.
3977 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3978 gdb_py_object_from_longest.
3979 * python/py-record.c (recpy_gap_reason_code): Use
3980 gdb_py_object_from_longest.
3981 * python/py-record-btrace.c (recpy_bt_insn_size)
3982 (recpy_bt_func_level, btpy_list_count): Use
3983 gdb_py_object_from_longest.
3984 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3985 gdb_py_object_from_longest. Fix error handling.
3986 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3987 gdb_py_object_from_longest.
3988 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3989 gdb_py_object_from_longest.
3990 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3991 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3992 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3993
3994 2020-09-15 Tom Tromey <tromey@adacore.com>
3995
3996 * python/python.c (gdbpy_parameter_value): Use
3997 gdb_py_object_from_ulongest.
3998
3999 2020-09-15 Tom Tromey <tromey@adacore.com>
4000
4001 * python/py-infevents.c (create_register_changed_event_object):
4002 Use gdb_py_object_from_longest.
4003 * python/py-exitedevent.c (create_exited_event_object): Use
4004 gdb_py_object_from_longest.
4005
4006 2020-09-15 Tom Tromey <tromey@adacore.com>
4007
4008 * python/python.c (gdbpy_parameter_value): Use
4009 gdb_py_object_from_longest.
4010 * python/py-type.c (convert_field, typy_range): Use
4011 gdb_py_object_from_longest.
4012 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4013 gdb_py_object_from_longest.
4014 * python/py-lazy-string.c (stpy_get_length): Use
4015 gdb_py_object_from_longest.
4016 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4017 gdb_py_object_from_longest.
4018 * python/py-infevents.c (create_memory_changed_event_object): Use
4019 gdb_py_object_from_longest.
4020 * python/py-inferior.c (infpy_get_num): Use
4021 gdb_py_object_from_longest.
4022 (infpy_get_pid): Likewise.
4023
4024 2020-09-15 Tom Tromey <tromey@adacore.com>
4025
4026 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4027 defines.
4028 * python/py-value.c (valpy_long): Use
4029 gdb_py_object_from_ulongest.
4030 * python/py-symtab.c (salpy_get_pc): Use
4031 gdb_py_object_from_ulongest.
4032 (salpy_get_last): Likewise.
4033 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4034 gdb_py_object_from_ulongest.
4035 * python/py-lazy-string.c (stpy_get_address): Use
4036 gdb_py_object_from_ulongest.
4037 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4038 * python/py-arch.c (archpy_disassemble): Use
4039 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4040 error handling.
4041
4042 2020-09-15 Tom Tromey <tromey@adacore.com>
4043
4044 * python/python-internal.h (gdb_py_long_from_longest): Remove
4045 defines.
4046 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4047 * python/py-type.c (convert_field, typy_get_sizeof): Use
4048 gdb_py_object_from_longest.
4049 * python/py-record-btrace.c (btpy_list_index): Use
4050 gdb_py_object_from_longest.
4051
4052 2020-09-15 Tom Tromey <tromey@adacore.com>
4053
4054 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4055 * python/py-record.c (recpy_element_number): Use
4056 gdb_py_object_from_longest.
4057 (recpy_gap_number): Likewise.
4058
4059 2020-09-15 Tom Tromey <tromey@adacore.com>
4060
4061 * top.c (ui::ui): Update.
4062 (highest_ui_num): Remove.
4063 * top.h (struct ui) <num>: Remove.
4064
4065 2020-09-15 Tom Tromey <tromey@adacore.com>
4066
4067 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4068 * ui-style.c (ansi_regex_text): Now array.
4069 * rust-exp.y (number_regex_text): Now array.
4070 * linespec.c (linespec_quote_characters): Now array.
4071 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4072 Now arrays.
4073
4074 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * debuginfod-support.c (debuginfod_client_deleter): New.
4077 (debuginfod_client_up): New.
4078 (debuginfod_init): Return debuginfod_client_up.
4079 (debuginfod_source_query): Adjust.
4080 (debuginfod_debuginfo_query): Adjust.
4081
4082 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * debuginfod-support.c (debuginfod_source_query): Use
4085 make_unique_xstrdup.
4086
4087 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4090 with `type::instance_flags`.
4091
4092 2020-09-14 Michael Mullin <masmullin@gmail.com>
4093
4094 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4095 Remove baton parameter.
4096
4097 2020-09-14 Pedro Alves <pedro@palves.net>
4098
4099 * Makefile.in (SELFTESTS_SRCS): Add
4100 unittests/enum-flags-selftests.c.
4101 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4102 btrace_function_flags instead of enum btrace_function_flag.
4103 * compile/compile-c-types.c (convert_qualified): Use
4104 enum_flags::raw.
4105 * compile/compile-cplus-symbols.c (convert_one_symbol)
4106 (convert_symbol_bmsym):
4107 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4108 (compile_cplus_convert_struct_or_union_methods)
4109 (compile_cplus_instance::convert_qualified_base):
4110 * go-exp.y (parse_string_or_char): Add cast to int.
4111 * unittests/enum-flags-selftests.c: New file.
4112 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4113 type to btrace_thread_flags from btrace_thread_flag.
4114 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4115 local's type to btrace_thread_flags from btrace_thread_flag. Add
4116 cast in DEBUG call.
4117
4118 2020-09-14 Pedro Alves <pedro@palves.net>
4119
4120 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4121 * gdbtypes.c (address_space_name_to_int): Rename to ...
4122 (address_space_name_to_type_instance_flags): ... this.
4123 (address_space_int_to_name): Rename to ...
4124 (address_space_type_instance_flags_to_name): ... this.
4125 * gdbtypes.h (address_space_name_to_int): Rename to ...
4126 (address_space_name_to_type_instance_flags): ... this.
4127 (address_space_int_to_name): Rename to ...
4128 (address_space_type_instance_flags_to_name): ... this.
4129 * type-stack.c (type_stack::insert): Adjust to rename.
4130 * type-stack.h (type_stack::insert): Likewise.
4131
4132 2020-09-14 Pedro Alves <pedro@palves.net>
4133 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 * avr-tdep.c (avr_address_class_type_flags): Return
4136 type_instance_flags.
4137 (avr_address_class_type_flags_to_name): Take a
4138 type_instance_flags.
4139 (avr_address_class_name_to_type_flags): Return bool and take a
4140 type_instance_flags.
4141 * d-lang.c (build_d_types): Use type::set_instance_flags.
4142 * ft32-tdep.c (ft32_address_class_type_flags): Return
4143 type_instance_flags.
4144 (ft32_address_class_type_flags_to_name): Take a
4145 type_instance_flags.
4146 (ft32_address_class_name_to_type_flags): Return bool and take a
4147 type_instance_flags.
4148 (ft32_gdbarch_init): Use type::set_instance_flags.
4149 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4150 * gdbarch.h, gdbarch.c: Regenerate.
4151 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4152 (address_class_name_to_type_flags): Use type_instance_flags and
4153 bool.
4154 * gdbtypes.c (address_space_name_to_int)
4155 (address_space_int_to_name, make_qualified_type): Use
4156 type_instance_flags.
4157 (make_qualified_type): Use type_instance_flags and
4158 type::set_instance_flags.
4159 (make_type_with_address_space, make_cv_type, make_vector_type)
4160 (check_typedef): Use type_instance_flags.
4161 (recursive_dump_type): Cast type_instance_flags to unsigned for
4162 printing.
4163 (copy_type_recursive): Use type::set_instance_flags.
4164 (gdbtypes_post_init): Use type::set_instance_flags.
4165 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4166 <m_instance_flags>: ... this.
4167 <instance_flags, set_instance_flags>: New methods.
4168 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4169 (SET_TYPE_INSTANCE_FLAGS): New.
4170 (address_space_name_to_int, address_space_int_to_name)
4171 (make_type_with_address_space): Pass flags using
4172 type_instance_flags instead of int.
4173 * stabsread.c (cleanup_undefined_types_noname): Use
4174 type::set_instance_flags.
4175 * s390-tdep.c (s390_address_class_type_flags): Return
4176 type_instance_flags.
4177 (s390_address_class_type_flags_to_name): Take a
4178 type_instance_flags.
4179 (s390_address_class_name_to_type_flags): Return bool and take a
4180 type_instance_flags.
4181 * type-stack.c (type_stack::follow_types): Use
4182 type_instance_flags.
4183 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4184
4185 2020-09-14 Tom Tromey <tromey@adacore.com>
4186
4187 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4188 * x86-tdep.c (x86_is_thunk_register_name)
4189 (x86_in_indirect_branch_thunk): Update.
4190 * sparc64-tdep.c (sparc64_fpu_register_names)
4191 (sparc64_cp0_register_names, sparc64_register_names)
4192 (sparc64_pseudo_register_names): Now const.
4193 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4194 cp0_registers_num>: Now const.
4195 * sparc-tdep.c (sparc_core_register_names)
4196 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4197 (sparc32_pseudo_register_names): Now const.
4198 (validate_tdesc_registers): Update.
4199 * rust-lang.c (rust_extensions): Now const.
4200 * p-lang.c (p_extensions): Now const.
4201 * objc-lang.c (objc_extensions): Now const.
4202 * nto-tdep.c (nto_thread_state_str): Now const.
4203 * moxie-tdep.c (moxie_register_names): Now const.
4204 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4205 Now const.
4206 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4207 (mips_linux_reg_names): Now const.
4208 (mips_gdbarch_init): Update.
4209 * microblaze-tdep.c (microblaze_register_names): Now const.
4210 * m68k-tdep.c (m68k_register_names): Now const.
4211 * m32r-tdep.c (m32r_register_names): Now const.
4212 * ia64-tdep.c (ia64_register_names): Now const.
4213 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4214 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4215 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4216 ymm_avx512_register_names, pkeys_register_names>: Now const.
4217 * i386-tdep.c (i386_register_names, i386_zmm_names)
4218 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4219 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4220 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4221 * f-lang.c (f_extensions): Now const.
4222 * d-lang.c (d_extensions): Now const.
4223 * csky-tdep.c (csky_register_names): Now const.
4224 * charset.c (default_charset_names, charset_enum): Now const.
4225 (_initialize_charset): Update.
4226 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4227 const.
4228 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4229 (bsd_uthread_solib_loaded): Update.
4230 (bsd_uthread_state): Now const.
4231 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4232 (amd64_ymm_avx512_names, amd64_ymmh_names)
4233 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4234 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4235 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4236 (amd64_dword_names): Now const.
4237 * agent.c (can_use_agent_enum): Now const.
4238 * ada-tasks.c (task_states, long_task_states): Now const.
4239 * ada-lang.c (known_runtime_file_name_patterns)
4240 (known_auxiliary_function_name_patterns, attribute_names)
4241 (standard_exc, ada_extensions): Now const.
4242
4243 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4244
4245 * bcache.h (struct bcache) <bcache>: Remove constructor.
4246 <m_hash_function, m_compare_function>: Remove.
4247 <~bcache>: Make virtual.
4248 <compare>: Remove static method, introduce virtual method.
4249 <default_hash>: Remove.
4250 <hash>: New virtual method.
4251 * bcache.c (bcache::expand_hash_table): Update.
4252 (bcache::insert): Update.
4253 (bcache::hash): New.
4254 (bcache::compare): Update comment and parameter names.
4255 * gdbtypes.c (types_deeply_equal): Update.
4256 * psymtab.h (struct psymbol_bcache): New struct.
4257 (class psymtab_storage) <psymtab_storage>: Make default.
4258 <psymbol_cache>: Change type to psymbol_bcache.
4259 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4260 (psymbol_hash): Change to...
4261 (psymbol_bcache::hash): ... this.
4262 (psymbol_compare): Change to...
4263 (psymbol_bcache::compare): ... this.
4264
4265 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4266
4267 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4268 checking for initial lwp.
4269
4270 2020-09-14 Tom Tromey <tromey@adacore.com>
4271
4272 * m68k-tdep.c (m68k_extract_return_value): Use
4273 pointer_result_regnum.
4274 (m68k_store_return_value): Likewise.
4275 (m68k_reg_struct_return_p): Handle vectors and arrays.
4276 (m68k_return_value): Handle arrays.
4277 (m68k_svr4_return_value): Fix single-element aggregate handling.
4278 Handle long double. Adjust for embedded ABI.
4279 (m68k_svr4_init_abi): Set pointer_result_regnum.
4280 (m68k_embedded_init_abi): New function.
4281 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4282 (m68k_osabi_sniffer): New function.
4283 (_initialize_m68k_tdep): Register osabi sniffer.
4284 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4285 member.
4286
4287 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4290 with gdb::unique_xmalloc_ptr<char>.
4291
4292 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * xml-support.h (xml_fetch_another): Change type to be a
4295 function_view.
4296 (xml_process_xincludes): Remove baton parameter.
4297 (xml_fetch_content_from_file): Change baton parameter to
4298 dirname.
4299 * xml-support.c (struct xinclude_parsing_data)
4300 <xinclude_parsing_data>: Remove baton parameter.
4301 <fetcher_baton>: Remove.
4302 (xinclude_start_include): Adjust.
4303 (xml_process_xincludes): Adjust.
4304 (xml_fetch_content_from_file): Replace baton parameter with
4305 dirname.
4306 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4307 (xml_init_syscalls_info): Use a lambda.
4308 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4309 (file_read_description_xml): Use a lambda.
4310 (fetch_available_features_from_target): Change baton parameter
4311 to target_ops.
4312 (target_read_description_xml): Use a lambda.
4313 (target_fetch_description_xml): Use a lambda.
4314 (string_read_description_xml): Update.
4315
4316 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4317
4318 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4319 uses with type::endianity_is_not_default.
4320
4321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * gdbtypes.h (struct type) <endianity_is_not_default,
4324 set_endianity_is_not_default>: New methods.
4325 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4326 type::endianity_is_not_default, change all write call sites to
4327 use type::set_endianity_is_not_default.
4328
4329 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4332 uses with type::is_fixed_instance.
4333
4334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * gdbtypes.h (struct type) <is_fixed_instance,
4337 set_is_fixed_instance>: New methods.
4338 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4339 write call sites to use type::set_is_fixed_instance.
4340
4341 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4344 uses with type::is_gnu_ifunc.
4345
4346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4349 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4350 use type::set_is_gnu_ifunc.
4351
4352 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4355 uses with type::stub_is_supported.
4356
4357 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4360 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4361 use type::set_stub_is_supported.
4362
4363 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4366 uses with type::is_vector.
4367
4368 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4371 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4372 use type::set_is_vector.
4373
4374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4377 uses with type::has_varargs.
4378
4379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4382 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4383 use type::set_has_varargs.
4384
4385 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4388 uses with type::is_prototyped.
4389
4390 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4393 New methods.
4394 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4395 call sites to use type::set_is_prototyped.
4396
4397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4400 uses with type::target_is_stub.
4401
4402 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4405 New methods.
4406 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4407 sites to use type::set_target_is_stub.
4408
4409 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * gdbtypes.h (TYPE_STUB): Remove, replace all
4412 uses with type::is_stub.
4413
4414 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4417 (TYPE_STUB): Use type::is_stub, change all write call sites to
4418 use type::set_is_stub.
4419
4420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4423 type::has_no_signedness.
4424
4425 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * gdbtypes.h (struct type) <has_no_signedness,
4428 set_has_no_signedness>: New methods.
4429 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4430 call sites to use type::set_has_no_signedness.
4431
4432 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4435 type::is_unsigned.
4436
4437 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4440 methods.
4441 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4442 sites to use type::set_is_unsigned.
4443
4444 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4445 Adam Renquinha <arenquinha@cimeq.qc.ca>
4446
4447 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4448 pointer and stack frame offset when unwinding.
4449
4450 2020-09-13 Pedro Alves <pedro@palves.net>
4451
4452 * NEWS: Document "-break-insert --qualified".
4453 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4454
4455 2020-09-13 Pedro Alves <pedro@palves.net>
4456
4457 * linespec.c (classify_mtype, compare_msyms): Delete.
4458 (search_minsyms_for_name): Remove classification logic. Instead
4459 filter out trampoline symbols if we also found an external
4460 function of the same name.
4461
4462 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4463
4464 * NEWS: Create a new section for the next release branch.
4465 Rename the section of the current branch, now that it has
4466 been cut.
4467
4468 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4469
4470 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4471 * version.in: Bump version to 11.0.50.DATE-git.
4472
4473 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4474
4475 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4476
4477 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4478 Felix Willgerodt <Felix.Willgerodt@intel.com>
4479
4480 * gdbarch.sh: Added bfloat16 type.
4481 * gdbarch.c: Regenerated.
4482 * gdbarch.h: Regenerated.
4483 * gdbtypes.c (floatformats_bfloat16): New struct.
4484 (gdbtypes_post_init): Add builtin_bfloat16.
4485 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4486 (floatformats_bfloat16): New struct.
4487 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4488 (i386_ymm_type): Add field "v16_bfloat16"
4489 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4490 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4491 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4492 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4493 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4494 * features/i386/64bit-avx512.c: Regenerated.
4495 * features/i386/64bit-sse.xml: Add bfloat16 type.
4496 * features/i386/64bit-sse.c: Regenerated.
4497
4498 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4499
4500 * i386-tdep.c (i386_zmm_type): Fix field names.
4501 (i386_ymm_type): Fix field names.
4502
4503 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4504
4505 * breakpoint.c: Fix typo in the help message of the
4506 "set breakpoint condition-evaluation" command.
4507
4508 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4509
4510 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4511 * (nbsd_nat_target::pid_to_exec_file)
4512 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4513 (nbsd_nat_target::post_startup_inferior)
4514 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4515 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4516 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4517 * (nbsd_thread_lister): Remove.
4518
4519 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4520
4521 * fork-inferior.c (startup_inferior): Avoid double free.
4522
4523 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4524
4525 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4526 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4527
4528 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4529
4530 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4531 * netbsd-nat.c: Include <sys/ptrace.h>.
4532 * (netbsd_nat::enable_proc_events): Add.
4533
4534 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4535
4536 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4537 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4538 (netbsd_nat::for_each_thread): Add.
4539 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4540 "gdbsupport/common-debug.h".
4541 * (netbsd_nat::netbsd_thread_lister)
4542 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4543 (netbsd_nat::for_each_thread): Add.
4544
4545 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4546
4547 * netbsd-nat.h: Include <unistd.h>.
4548 * (netbsd_nat::pid_to_exec_file): Add.
4549 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4550 * (netbsd_nat::pid_to_exec_file) Add.
4551
4552 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4553
4554 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4555
4556 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4557
4558 * netbsd-nat.h: New file.
4559 * netbsd-nat.c: Likewise.
4560
4561 2020-09-09 Tom Tromey <tromey@adacore.com>
4562
4563 * ada-lang.c (remove_extra_symbols): Do not increment when
4564 removing an element
4565
4566 2020-09-08 Tom Tromey <tromey@adacore.com>
4567
4568 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4569
4570 2020-09-08 Tom Tromey <tromey@adacore.com>
4571
4572 PR win32/25302:
4573 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4574 (gdb_bfd_init_data): New function.
4575 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4576
4577 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4578
4579 * infrun.c (fetch_inferior_event): Use
4580 `switch_to_target_no_thread` to switch the target.
4581
4582 2020-09-06 Tom Tromey <tom@tromey.com>
4583
4584 * symfile.h (dwarf2_free_objfile): Don't declare.
4585
4586 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4587
4588 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4589 to match 16 byte real/complex type generated by Flang compiler.
4590
4591 2020-09-03 Tom de Vries <tdevries@suse.de>
4592
4593 PR breakpoint/26546
4594 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4595 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4596
4597 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4598
4599 * maint.c (index_digits): New function.
4600 (struct maint_print_section_data): Remove.
4601 (print_bfd_section_info): Remove print_data parameter, add arg
4602 and index_digits.
4603 (print_objfile_section_info): Likewise.
4604 (print_bfd_section_info_maybe_relocated): Likewise (plus
4605 objfile).
4606 (maintenance_info_sections): Adjust calls.
4607
4608 2020-09-02 Tom Tromey <tromey@adacore.com>
4609
4610 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4611 for null pointers.
4612 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4613
4614 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4615
4616 * bcache.h (struct bcache) <insert>: Change type of `added` to
4617 pointer to bool.
4618 * bcache.c (bcache::insert): Likewise.
4619 * gdbtypes.c (check_types_worklist): Adjust.
4620 * psymtab.c (add_psymbol_to_bcache): Adjust.
4621
4622 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4623
4624 * corelow.c (unordered_set): Include.
4625 (class core_target): Add field 'm_core_unavailable_mappings'.
4626 (core_target::build_file_mappings): Print only one warning
4627 per inaccessible file. Add unavailable/broken mappings
4628 to m_core_unavailable_mappings.
4629 (core_target::xfer_partial): Call...
4630 (core_target::xfer_memory_via_mappings): New method.
4631
4632 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4635 type to bool.
4636
4637 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * dwarf2/read.c (struct field_info): Fix indentation.
4640
4641 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4644 ordering in comment.
4645 * frame.c (frame_id_eq): Fix indentation.
4646
4647 2020-08-31 Scott Linder <scott@scottlinder.com>
4648 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4651 inline frame ids in outer frame.
4652
4653 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4656 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4657 (outer_frame_id): Use FID_STACK_OUTER instead of
4658 FID_STACK_INVALID.
4659 (frame_id_p): Don't check for outer_frame_id.
4660
4661 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4664 regnum/frame in value. Call allocate_value_lazy.
4665 * frame.c (frame_unwind_register_value): Use
4666 val_print_not_saved.
4667
4668 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4671
4672 2020-08-29 Pedro Alves <pedro@palves.net>
4673
4674 * progspace.c (print_program_space): Use all_inferiors. Switch to
4675 the inferior before calling target_pid_to_str.
4676
4677 2020-08-28 Tom Tromey <tom@tromey.com>
4678
4679 * xcoffread.c (xcoff_end_psymtab): Update comment.
4680 * dbxread.c (dbx_end_psymtab): Update comment.
4681
4682 2020-08-28 Tom de Vries <tdevries@suse.de>
4683
4684 PR breakpoint/26544
4685 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4686 event_location.
4687 (create_breakpoint): Same.
4688 (base_breakpoint_decode_location): Same.
4689 (bkpt_create_sals_from_location): Same.
4690 (bkpt_decode_location): Same.
4691 (bkpt_probe_create_sals_from_location): Same.
4692 (bkpt_probe_decode_location): Same.
4693 (tracepoint_create_sals_from_location): Same.
4694 (tracepoint_decode_location): Same.
4695 (tracepoint_probe_decode_location): Same.
4696 (strace_marker_create_sals_from_location): Same.
4697 (strace_marker_decode_location): Same.
4698 (create_sals_from_location_default): Same.
4699 (decode_location_default): Same.
4700 * breakpoint.h (struct breakpoint_ops): Same.
4701 (create_breakpoint): Same.
4702 * linespec.h (decode_line_full): Same.
4703 * linespec.c (decode_line_full): Same. Throw error if
4704 result.size () == 0.
4705
4706 2020-08-27 Pedro Alves <pedro@palves.net>
4707
4708 PR gdb/26524
4709 * breakpoint.c (until_break_fsm) <location_breakpoint,
4710 caller_breakpoint>: Delete fields.
4711 <breakpoints>: New field.
4712 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4713 two individual breakpoints.
4714 (until_break_fsm::should_stop): Loop over breakpoints in the
4715 breakpoint vector.
4716 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4717 vector.
4718 (until_break_command): Handle location expanding into multiple
4719 sals.
4720
4721 2020-08-27 Pedro Alves <pedro@palves.net>
4722
4723 PR gdb/26523
4724 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4725 bp_until breakpoints user-specified locations. Update intro
4726 comment.
4727
4728 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4731 gdb_bfd_sections): New.
4732 * maint.c (print_bfd_section_info): Change param type to
4733 maint_print_section_data.
4734 (print_objfile_section_info): Likewise.
4735 (print_bfd_section_info_maybe_relocated): Likewise.
4736 (maintenance_info_sections): Use gdb_bfd_sections.
4737
4738 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4739
4740 * MAINTAINERS: Add ARC target and maintainer.
4741
4742 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4743
4744 * configure.tgt: ARC support for GNU/Linux.
4745 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4746 * arc-linux-tdep.c: New file.
4747 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4748 * arc-tdep.c (arc_write_pc): Use it.
4749
4750 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4751
4752 * arc-tdep.c (arc_check_for_hardware_loop): New.
4753 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4754
4755 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4756
4757 * arc-tdep.h: Include "gdbarch.h".
4758
4759 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4760
4761 * arch/arc.h
4762 (arc_gdbarch_features): New class to stir the selection of target XML.
4763 (arc_create_target_description): Use FEATURES to choose XML target.
4764 (arc_lookup_target_description): Use arc_create_target_description
4765 to create _new_ target descriptions or return the already created
4766 ones if the FEATURES is the same.
4767 * arch/arc.c: Implementation of prototypes described above.
4768 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4769 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4770 * arc-tdep.c (*_feature_name): Make feature names consistent.
4771 (arc_register_feature): A new struct to hold information about
4772 registers of a particular target/feature.
4773 (arc_check_tdesc_feature): Check if XML provides registers in
4774 compliance with ARC_REGISTER_FEATURE structs.
4775 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4776 (determine_*_reg_feature_set): Which feature name to look for.
4777 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4778 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4779 to expected ISA enums to be used in arc_gdbarch_features structs.
4780 * features/Makefile (FEATURE_XMLFILES): Add new files.
4781 * gdb/features/arc/v1-aux.c: New file.
4782 * gdb/features/arc/v1-aux.xml: Likewise.
4783 * gdb/features/arc/v1-core.c: Likewise.
4784 * gdb/features/arc/v1-core.xml: Likewise.
4785 * gdb/features/arc/v2-aux.c: Likewise.
4786 * gdb/features/arc/v2-aux.xml: Likewise.
4787 * gdb/features/arc/v2-core.c: Likewise.
4788 * gdb/features/arc/v2-core.xml: Likewise.
4789 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4790
4791 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4792 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 PR m2/26372
4795 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4796 an assert. Remove single element array indexing pattern as the
4797 MULTI_SUBSCRIPT support will handle this case too.
4798
4799 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4800
4801 * value.h (valprint_check_validity): Move declaration from
4802 here...
4803 * valprint.h (valprint_check_validity): ... to here.
4804
4805 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * debug.h: New file.
4808 * debug.c (debug_prefixed_vprintf): New function.
4809 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4810 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4811
4812 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * infrun.h (infrun_debug_printf_1): New function declaration.
4815 (infrun_debug_printf): New macro.
4816 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4817 throughout.
4818 (infrun_debug_printf): New function.
4819 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4820 (handle_jit_event): Likewise.
4821
4822 2020-08-21 Mark Wielaard <mark@klomp.org>
4823
4824 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4825
4826 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * frame.c (enum class frame_id_status): New.
4829 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4830 (fprintf_frame): Update.
4831 (compute_frame_id): Set frame id status to "computing" on entry.
4832 Set it back to "not_computed" on failure and to "computed" on
4833 success.
4834 (get_frame_id): Assert the frame id is not being computed.
4835 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4836 (create_new_frame): Likewise.
4837 (frame_cleanup_after_sniffer): Update assert.
4838
4839 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4840
4841 * regcache.c (pid_ptid_regcache_map): New type.
4842 (target_ptid_regcache_map): Remove.
4843 (target_pid_ptid_regcache_map): New type.
4844 (regcaches): Change type to target_pid_ptid_regcache_map.
4845 (get_thread_arch_aspace_regcache): Update.
4846 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4847 case.
4848 (regcaches_size): Update.
4849 (regcache_count): Update.
4850 (registers_changed_ptid_target_pid_test): New.
4851 (_initialize_regcache): Register new test.
4852
4853 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4854
4855 * regcache.c (regcache_count): New.
4856 (struct regcache_test_data): New.
4857 (regcache_test_data_up): New.
4858 (populate_regcaches_for_test): New.
4859 (regcaches_test): Remove.
4860 (get_thread_arch_aspace_regcache_test): New.
4861 (registers_changed_ptid_all_test): New.
4862 (registers_changed_ptid_target_test): New.
4863 (registers_changed_ptid_target_ptid_test): New.
4864 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4865 (_initialize_regcache): Register new tests.
4866
4867 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4870 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4871 gdbarch and aspace parameter. Use current inferior's aspace.
4872 Validate regcache's arch value.
4873 (regcaches_test): Update.
4874
4875 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * regcache.c (regcaches_test): Call registers_changed.
4878
4879 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4880
4881 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4882
4883 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4884
4885 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4886 to find the end of prologue for flang compiled binaries.
4887 * arm-tdep.c (arm_skip_prologue): Likewise.
4888 * i386-tdep.c (i386_skip_prologue): Likewise.
4889 * producer.c (producer_is_llvm): New function.
4890 (producer_parsing_tests): Added new tests for clang/flang.
4891 * producer.h (producer_is_llvm): New declaration.
4892
4893 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * linux-nat.c (linux_nat_debug_printf): New function.
4896 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4897
4898 2020-08-18 Aaron Merey <amerey@redhat.com>
4899
4900 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4901 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4902 (CLIBS): Add DEBUGINFOD_LIBS.
4903
4904 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4905
4906 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4907 'gdbarch_num_regs'.
4908
4909 2020-08-17 Tom Tromey <tromey@adacore.com>
4910
4911 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4912 ada_get_decoded_value returns NULL.
4913
4914 2020-08-17 Tom Tromey <tromey@adacore.com>
4915
4916 * python/py-inferior.c (infpy_search_memory): Use
4917 gdb_py_object_from_ulongest.
4918 * python/py-infevents.c (create_inferior_call_event_object)
4919 (create_memory_changed_event_object): Use
4920 gdb_py_object_from_ulongest.
4921 * python/py-linetable.c (ltpy_entry_get_pc): Use
4922 gdb_py_object_from_ulongest.
4923
4924 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4925
4926 * loc.c (class symbol_needs_eval_context): Fix indentation.
4927
4928 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4929
4930 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4931 bool.
4932
4933 2020-08-17 Tom de Vries <tdevries@suse.de>
4934
4935 PR gdb/26393
4936 * gdbtypes.c (dump_dynamic_prop): New function.
4937 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4938
4939 2020-08-15 Tom de Vries <tdevries@suse.de>
4940
4941 PR backtrace/26390
4942 * stack.c (print_frame_args): Temporarily set the selected
4943 frame to FRAME while printing the frame's arguments.
4944
4945 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4946
4947 PR breakpoints/26385
4948 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4949 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4950
4951 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4952
4953 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4954 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4955 and >= to check return value instead of == -1 and != -1.
4956
4957 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * utils.h (class gdb_argv) <as_array_view>: New method.
4960 * utils.c (gdb_argv_as_array_view_test): New.
4961 (_initialize_utils): Register selftest.
4962 * maint.c (maintenance_selftest): Use the new method.
4963
4964 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4965
4966 * target.h (supports_dumpcore, dumpcore): New
4967 function declarations.
4968 * target.c (supports_dumpcore, dumpcore): New
4969 functions.
4970 * target-delegates.c: Rebuild.
4971 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4972 and target_dumpcore ().
4973
4974 2020-08-13 Aaron Merey <amerey@redhat.com>
4975
4976 * debuginfod-support.c: Replace global variables with user_data.
4977
4978 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * maint.c (maintenance_selftest): Split args and pass array_view
4981 to run_tests.
4982
4983 2020-08-12 Luis Machado <luis.machado@linaro.org>
4984
4985 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4986 type's length.
4987 Use %s and pulongest to print the length.
4988
4989 2020-08-12 Pedro Alves <palves@redhat.com>
4990
4991 * NEWS: Move "Multi-target debugging support" item to the
4992 "Changes since GDB 9" section.
4993
4994 2020-08-12 Pedro Alves <palves@redhat.com>
4995
4996 PR gdb/26336
4997 * progspace.c (program_space::remove_objfile): Invalidate the
4998 frame cache.
4999
5000 2020-08-11 Tom de Vries <tdevries@suse.de>
5001
5002 * MAINTAINERS: Mark ms1 as deleted.
5003
5004 2020-08-10 Luis Machado <luis.machado@linaro.org>
5005
5006 PR gdb/26310
5007
5008 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5009 act accordingly.
5010 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5011 movz/str/stur/stp skipping behavior.
5012
5013 2020-08-10 Luis Machado <luis.machado@linaro.org>
5014
5015 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5016 struct user_sve_header instead of struct sve_context.
5017
5018 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 * read.h (dwarf2_fetch_die_loc_sect_off,
5021 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5022 `void *` parameter with function_view.
5023 * read.c (dwarf2_fetch_die_loc_sect_off,
5024 dwarf2_fetch_die_loc_cu_off): Likewise.
5025 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5026 (per_cu_dwarf_call): Adjust.
5027 (get_frame_address_in_block_wrapper): Remove.
5028 (indirect_synthetic_pointer): Adjust.
5029 (get_ax_pc): Remove.
5030 (dwarf2_compile_expr_to_ax): Adjust.
5031
5032 2020-08-08 Tom de Vries <tdevries@suse.de>
5033
5034 PR build/26344
5035 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5036 constructor.
5037 * regcache.c (get_thread_arch_aspace_regcache): Same.
5038
5039 2020-08-07 Tom Tromey <tromey@adacore.com>
5040
5041 * ravenscar-thread.c
5042 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5043 New method.
5044 (ravenscar_thread_target::wait): Check
5045 runtime_initialized.
5046 (ravenscar_thread_target::prepare_to_store)
5047 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5048 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5049 (ravenscar_thread_target::stopped_by_watchpoint)
5050 (ravenscar_thread_target::stopped_data_address)
5051 (ravenscar_thread_target::core_of_thread): Use
5052 scoped_restore_current_thread and
5053 set_base_thread_from_ravenscar_task.
5054
5055 2020-08-07 Tom Tromey <tromey@adacore.com>
5056
5057 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5058
5059 2020-08-07 Tom Tromey <tromey@adacore.com>
5060
5061 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5062 update_inferior_ptid before update_thread_list.
5063 (temporarily_change_regcache_ptid): New class.
5064 (ravenscar_thread_target::fetch_registers)
5065 (ravenscar_thread_target::store_registers)
5066 (ravenscar_thread_target::prepare_to_store): Use base thread when
5067 forwarding operation.
5068
5069 2020-08-07 Tom Tromey <tromey@adacore.com>
5070
5071 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5072 "is_pid" case.
5073
5074 2020-08-07 Tom Tromey <tromey@adacore.com>
5075
5076 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5077 New methods.
5078 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5079 first.
5080 (ravenscar_thread_target::add_thread): Rename from
5081 ravenscar_add_thread.
5082 (ravenscar_thread_target::update_thread_list): Use a lambda.
5083 (ravenscar_thread_target::xfer_partial): New method.
5084
5085 2020-08-07 Tom Tromey <tromey@adacore.com>
5086
5087 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5088 gdb::function_view.
5089 (iterate_over_live_ada_tasks): Change type of argument.
5090 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5091 of argument.
5092
5093 2020-08-07 Tom Tromey <tromey@adacore.com>
5094
5095 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5096 Remove.
5097 (ravenscar_thread_target::extra_thread_info): Remove.
5098 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5099 defer to target beneath for non-Ravenscar threads.
5100
5101 2020-08-07 Tom Tromey <tromey@adacore.com>
5102
5103 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5104 get_base_thread_from_ravenscar_task>: Now methods.
5105 <m_cpu_map>: New member.
5106 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5107 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5108 (ravenscar_thread_target::task_is_currently_active): Update.
5109 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5110 Now a method.
5111 (ravenscar_thread_target::add_active_thread): Put initial thread
5112 into the m_cpu_map.
5113
5114 2020-08-07 Tom Tromey <tromey@adacore.com>
5115
5116 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5117 event_ptid.
5118
5119 2020-08-07 Tom Tromey <tromey@adacore.com>
5120
5121 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5122 runtime_initialized.
5123
5124 2020-08-07 Tom Tromey <tromey@adacore.com>
5125
5126 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5127 add_active_thread.
5128 (ravenscar_thread_target::add_active_thread): Now public.
5129 (ravenscar_inferior_created): Call add_active_thread after pushing
5130 the target.
5131
5132 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * regcache.c (ptid_regcache_map): New type.
5135 (target_ptid_regcache_map): New type.
5136 (regcaches): Change type to target_ptid_regcache_map.
5137 (get_thread_arch_aspace_regcache): Update to regcaches' new
5138 type.
5139 (regcache_thread_ptid_changed): Likewise.
5140 (registers_changed_ptid): Likewise.
5141 (regcaches_size): Likewise.
5142 (regcaches_test): Update.
5143 (regcache_thread_ptid_changed): Update.
5144 * regcache.h (regcache_up): New type.
5145 * gdbsupport/ptid.h (hash_ptid): New struct.
5146
5147 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * observable.h (thread_ptid_changed): Add parameter
5150 `process_stratum_target *`.
5151 * infrun.c (infrun_thread_ptid_changed): Add parameter
5152 `process_stratum_target *` and use it.
5153 (selftests): New namespace.
5154 (infrun_thread_ptid_changed): New function.
5155 (_initialize_infrun): Register selftest.
5156 * regcache.c (regcache_thread_ptid_changed): Add parameter
5157 `process_stratum_target *` and use it.
5158 (regcache_thread_ptid_changed): New function.
5159 (_initialize_regcache): Register selftest.
5160 * thread.c (thread_change_ptid): Pass target to
5161 thread_ptid_changed observable.
5162
5163 2020-08-06 Caroline Tice <cmtice@google.com>
5164
5165 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5166 (struct dwp_sections): Update field comments. Add loclists and
5167 rnglists fields.
5168 (struct virtual_v2_dwo_sections): Rename struct to
5169 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5170 size & offset fields for loclists and rnglists.
5171 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5172 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5173 skipping dummy type units.
5174 (create_dwp_hash_table): Update the large comment above the function to
5175 discuss Version 5 DWP files as well, with references. Update all the
5176 version checks in the function to check for version 5 as well. Add new
5177 section at the end to create dwp hash table for version 5.
5178 (create_dwp_v2_section): Rename function to
5179 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5180 Add V5 to error message text.
5181 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5182 into calls to create_dwp_v2_or_v5_section.
5183 (create_dwo_unit_in_dwp_v5): New function.
5184 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5185 check for version2; add else clause to handle version 5.
5186 (open_and_init_dwo_file): Add code to check dwarf version & only call
5187 create_debug_types_hash_table (with sections.types) if version is not 5;
5188 else call create_debug_type_hash_table, with sections.info.
5189 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5190 version 5.
5191 (dwarf2_locate_v5_dwp_sections): New function.
5192 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5193 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5194
5195 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * regcache.h (class regcache): Remove friend
5198 registers_changed_ptid.
5199 <regcache_thread_ptid_changed>: Remove.
5200 <regcaches>: Remove.
5201 * regcache.c (regcache::regcaches): Rename to...
5202 (regcaches): ... this. Make static.
5203 (get_thread_arch_aspace_regcache): Update.
5204 (regcache::regcache_thread_ptid_changed): Rename to...
5205 (regcache_thread_ptid_changed): ... this. Update.
5206 (class regcache_access): Remove.
5207 (regcaches_test): Update.
5208 (_initialize_regcache): Update.
5209 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5210 <forward_list>.
5211
5212 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * regcache.h (class regcache) <current_regcache>: Rename to...
5215 <regcaches>: ... this. Move doc here.
5216 * regcache.c (regcache::current_regcache) Rename to...
5217 (regcache::regcaches): ... this. Move doc to header.
5218 (get_thread_arch_aspace_regcache): Update.
5219 (regcache::regcache_thread_ptid_changed): Update.
5220 (registers_changed_ptid): Update.
5221 (class regcache_access) <current_regcache_size>: Rename to...
5222 <regcaches_size>: ... this.
5223 (current_regcache_test): Rename to...
5224 (regcaches_test): ... this.
5225 (_initialize_regcache): Update.
5226
5227 2020-08-06 Victor Collod <vcollod@nvidia.com>
5228
5229 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5230
5231 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5232
5233 * corelow.c (core_target::build_file_mappings): Don't output
5234 null pathname in warning.
5235
5236 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5239 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5240 gdb.dwarf2/dw2-single-line-discriminators.exp,
5241 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5242
5243 2020-08-05 Tom Tromey <tromey@adacore.com>
5244
5245 PR rust/26197:
5246 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5247 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5248 Fix off-by-one and type size errors in ordinary case.
5249
5250 2020-08-05 Tom de Vries <tdevries@suse.de>
5251
5252 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5253 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5254
5255 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * frame.h (frame_id_p): Return bool.
5258 (frame_id_artificial_p): Return bool.
5259 (frame_id_eq): Return bool.
5260 (has_stack_frames): Return bool.
5261 (get_selected_frame): Fix typo in comment.
5262 (get_frame_pc_if_available): Return bool.
5263 (get_frame_address_in_block_if_available): Return bool.
5264 (get_frame_func_if_available): Return bool.
5265 (read_frame_register_unsigned): Return bool.
5266 (get_frame_register_bytes): Return bool.
5267 (safe_frame_unwind_memory): Return bool.
5268 (deprecated_frame_register_read): Return bool.
5269 (frame_unwinder_is): Return bool.
5270 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5271 bool.
5272 <this_id::p>: Likewise.
5273 <prev_p>: Likewise.
5274 (frame_stash_add): Return bool.
5275 (get_frame_id): Use bool.
5276 (frame_id_build_special) Use bool.
5277 (frame_id_build_unavailable_stack): Use bool.
5278 (frame_id_build): Use bool.
5279 (frame_id_p): Return bool, use true/false instead of 1/0.
5280 (frame_id_artificial_p): Likewise.
5281 (frame_id_eq): Likewise.
5282 (frame_id_inner): Likewise.
5283 (get_frame_func_if_available): Likewise.
5284 (read_frame_register_unsigned): Likewise.
5285 (deprecated_frame_register_read): Likewise.
5286 (get_frame_register_bytes): Likewise.
5287 (has_stack_frames): Likewise.
5288 (inside_main_func): Likewise.
5289 (inside_entry_func): Likewise.
5290 (get_frame_pc_if_available): Likewise.
5291 (get_frame_address_in_block_if_available): Likewise.
5292 (frame_unwinder_is): Likewise.
5293 (safe_frame_unwind_memory): Likewise.
5294 (frame_unwind_arch): Likewise.
5295
5296 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5299 type to cached_copy_status.
5300 (fprintf_frame): Adjust.
5301 (get_frame_func_if_available): Adjust.
5302 (frame_cleanup_after_sniffer): Adjust.
5303
5304 2020-08-04 Mark Wielaard <mark@klomp.org>
5305
5306 * MAINTAINERS (Write After Approval): Update email address.
5307
5308 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5309
5310 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5311 dynamic_prop::const_val.
5312
5313 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5316 dynamic_prop::kind.
5317
5318 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5319
5320 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5321
5322 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5323
5324 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5325
5326 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5327 Jose E. Marchesi <jose.marchesi@oracle.com>
5328
5329 * configure.tgt: Add entry for bpf-*-*.
5330 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5331 (ALLDEPFILES): Add bpf-tdep.c.
5332 * bpf-tdep.c: New file.
5333 * MAINTAINERS: Add bpf target and maintainer.
5334 * NEWS: Mention the support for the new target.
5335
5336 2020-08-04 Tom de Vries <tdevries@suse.de>
5337
5338 PR symtab/23270
5339 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5340 Error.
5341
5342 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5343
5344 * syscalls/freebsd.xml: Regenerate.
5345
5346 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5347
5348 * syscalls/update-freebsd.sh: Fix usage and year range.
5349
5350 2020-08-03 Tom de Vries <tdevries@suse.de>
5351
5352 PR symtab/26333
5353 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5354 DW_LNE_lo_user/DW_LNE_hi_user range.
5355
5356 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5357
5358 PR ada/26318
5359 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5360 kind.
5361
5362 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5363
5364 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5365
5366 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5367
5368 * breakpoint.c (set_breakpoint_condition): Update the condition
5369 expressions after checking that the input condition string parses
5370 successfully and does not contain junk at the end.
5371
5372 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5373
5374 * breakpoint.c (set_breakpoint_condition): Update the
5375 condition string after parsing the new condition successfully.
5376
5377 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5378
5379 * proc-api.c (_STRUCTURED_PROC): Don't define.
5380 * proc-events.c: Likewise.
5381 * proc-flags.c: Likewise.
5382 * proc-why.c: Likewise.
5383 * procfs.c: Likewise.
5384
5385 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5386 * configure, config.in: Regenerate.
5387
5388 2020-07-30 Tom de Vries <tdevries@suse.de>
5389
5390 PR build/26320
5391 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5392 m_red/m_green/m_blue in a union.
5393
5394 2020-07-29 Tom de Vries <tdevries@suse.de>
5395
5396 PR tdep/26280
5397 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5398
5399 2020-07-28 Tom Tromey <tromey@adacore.com>
5400
5401 PR symtab/26270:
5402 * symtab.h (find_pc_partial_function_sym): Declare.
5403 * cli/cli-cmds.c (disassemble_command): Use
5404 find_pc_partial_function_sym. Check asm_demangle.
5405 * blockframe.c (cache_pc_function_sym): New global.
5406 (cache_pc_function_name): Remove.
5407 (clear_pc_function_cache): Update.
5408 (find_pc_partial_function_sym): New function, from
5409 find_pc_partial_function.
5410 (find_pc_partial_function): Rewrite using
5411 find_pc_partial_function_sym.
5412
5413 2020-07-28 Tom Tromey <tromey@adacore.com>
5414
5415 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5416 help. Add usage.
5417
5418 2020-07-28 Tom Tromey <tromey@adacore.com>
5419
5420 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5421 <DW_OP_GNU_variable_value>: Cast to address type.
5422
5423 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5424
5425 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5426 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5427 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5428 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5429 (nbsd_get_siginfo_type): New.
5430 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5431 (_initialize_nbsd_tdep): New.
5432
5433 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5434
5435 PR binutils/26301
5436 * configure: Regenerated.
5437
5438 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5439
5440 PR binutils/26301
5441 * configure: Regenerated.
5442
5443 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 * python/py-frame.c: Remove 'user-regs.h' include.
5446 (frapy_read_register): Rewrite to make use of
5447 gdbpy_parse_register_id.
5448 * python/py-registers.c (gdbpy_parse_register_id): New function,
5449 moved here from python/py-unwind.c. Updated the return type, and
5450 also accepts register descriptor objects.
5451 * python/py-unwind.c: Remove 'user-regs.h' include.
5452 (pyuw_parse_register_id): Moved to python/py-registers.c.
5453 (unwind_infopy_add_saved_register): Update to use
5454 gdbpy_parse_register_id.
5455 (pending_framepy_read_register): Likewise.
5456 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5457
5458 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * python/py-registers.c: Add 'user-regs.h' include.
5461 (register_descriptor_iter_find): New function.
5462 (register_descriptor_iterator_object_methods): New static global
5463 methods array.
5464 (register_descriptor_iterator_object_type): Add pointer to methods
5465 array.
5466
5467 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5468
5469 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5470 for all architectures on FreeBSD 11.3 and later.
5471
5472 2020-07-27 Tom Tromey <tromey@adacore.com>
5473
5474 * gcore.h (load_corefile): Don't declare.
5475
5476 2020-07-27 Tom de Vries <tdevries@suse.de>
5477
5478 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5479 * config.in: Regenerate.
5480 * configure: Regenerate.
5481
5482 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5483
5484 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5485 ws2tcpip.h. When checking whether socklen_t type is defined, use
5486 ws2tcpip.h if it is available and sys/socket.h isn't.
5487 * configure: Regenerate.
5488 * config.in: Regenerate.
5489
5490 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5491
5492 PR fortran/23051
5493 PR fortran/26139
5494 * valops.c (value_ind): Pass address to
5495 readjust_indirect_value_type.
5496 * value.c (readjust_indirect_value_type): Make parameter
5497 non-const, and add extra address parameter. Resolve original type
5498 before using it.
5499 * value.h (readjust_indirect_value_type): Update function
5500 signature and comment.
5501
5502 2020-07-25 Tom de Vries <tdevries@suse.de>
5503
5504 PR symtab/26243
5505 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5506 entries.
5507
5508 2020-07-24 Aaron Merey <amerey@redhat.com>
5509
5510 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5511 * configure: Rebuild.
5512
5513 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5514
5515 PR corefiles/26294
5516 * corelow.c (_initialize_corelow): Add period to help text
5517 for "maintenance print core-file-backed-mappings".
5518
5519 2020-07-23 Pedro Alves <pedro@palves.net>
5520
5521 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5522 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5523 meanwhile.
5524 * frame.c (frame_cache_generation, get_frame_cache_generation):
5525 New.
5526 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5527 (get_prev_frame_if_no_cycle): On exception, don't touch
5528 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5529 * frame.h (get_frame_cache_generation): Declare.
5530
5531 2020-07-23 Tom de Vries <tdevries@suse.de>
5532
5533 PR tui/26282
5534 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5535 New default constructor.
5536
5537 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5540 exclude non-statement entries.
5541
5542 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5543
5544 * NEWS (New commands): Mention new command
5545 "maintenance print core-file-backed-mappings".
5546
5547 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5548
5549 * corelow.c (gdbcmd.h): Include.
5550 (core_target::info_proc_mappings): New method.
5551 (get_current_core_target): New function.
5552 (maintenance_print_core_file_backed_mappings): New function.
5553 (_initialize_corelow): Add core-file-backed-mappings to
5554 "maint print" commands.
5555
5556 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5557
5558 * linux-tdep.c (dump_note_entry_p): New function.
5559 (linux_dump_mapping_p_ftype): New typedef.
5560 (linux_find_memory_regions_full): Add new parameter,
5561 should_dump_mapping_p.
5562 (linux_find_memory_regions): Adjust call to
5563 linux_find_memory_regions_full.
5564 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5565 call to linux_find_memory_regions_full.
5566
5567 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5568
5569 * corelow.c (solist.h, unordered_map): Include.
5570 (class core_target): Add field m_core_file_mappings and
5571 method build_file_mappings.
5572 (core_target::core_target): Call build_file_mappings.
5573 (core_target::~core_target): Free memory associated with
5574 m_core_file_mappings.
5575 (core_target::build_file_mappings): New method.
5576 (core_target::xfer_partial): Use m_core_file_mappings
5577 for memory transfers.
5578 * linux-tdep.c (linux_read_core_file_mappings): New
5579 function.
5580 (linux_core_info_proc_mappings): Rewrite to use
5581 linux_read_core_file_mappings.
5582 (linux_init_abi): Register linux_read_core_file_mappings.
5583
5584 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5585
5586 * arch-utils.c (default_read_core_file_mappings): New function.
5587 * arch-utils.c (default_read_core_file_mappings): Declare.
5588 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5589 * gdbarch.h, gdbarch.c: Regenerate.
5590
5591 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5592
5593 PR corefiles/25631
5594 * corelow.c (core_target:xfer_partial): Revise
5595 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5596 case after first checking the stratum beneath the core
5597 target.
5598 (has_all_memory): Return true.
5599 * target.c (raw_memory_xfer_partial): Revise comment
5600 regarding use of has_all_memory.
5601
5602 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5603
5604 * exec.h (section_table_xfer_memory): Revise declaration,
5605 replacing section name parameter with an optional callback
5606 predicate.
5607 * exec.c (section_table_xfer_memory): Likewise.
5608 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5609 of section_table_xfer_memory.
5610
5611 2020-07-22 Tom Tromey <tromey@adacore.com>
5612
5613 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5614 lookup_symbol_search_name.
5615
5616 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5617
5618 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5619 redundant local variable.
5620 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5621 reference, not pointer, update code accordingly.
5622
5623 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5624 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5625
5626 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5627 * jit.c (jit_breakpoint_re_set_internal): Use the
5628 `skip_jit_symbol_lookup` field.
5629
5630 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5631 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5632
5633 * jit.c (jit_read_descriptor): Define the descriptor address once,
5634 use twice.
5635 (jit_breakpoint_deleted): Move the declaration of the loop variable
5636 `iter` into the loop header.
5637 (jit_breakpoint_re_set_internal): Move the declaration of the local
5638 variable `objf_data` to the first point of definition.
5639 (jit_event_handler): Move the declaration of local variables
5640 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5641 Rename `objf` to `jited`.
5642
5643 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5646 Remove.
5647 * jit.c (get_jiter_objfile_data): Update.
5648
5649 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5650 Simon Marchi <simon.marchi@polymtl.ca>
5651
5652 * jit.c (struct jit_program_space_data): Remove.
5653 (jit_program_space_key): Remove.
5654 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5655 stuff.
5656 (get_jit_program_space_data): Remove.
5657 (jit_breakpoint_deleted): Iterate on all of the program space's
5658 objfiles.
5659 (jit_inferior_init): Likewise.
5660 (jit_breakpoint_re_set_internal): Likewise. Also change return
5661 type to void.
5662 (jit_breakpoint_re_set): Pass current_program_space to
5663 jit_breakpoint_re_set_internal.
5664
5665 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5666
5667 * jit.h (struct jiter_objfile_data) <cached_code_address,
5668 jit_breakpoint>: Move to here from ...
5669 * jit.c (jit_program_space_data): ... here.
5670 (jiter_objfile_data::~jiter_objfile_data): Update.
5671 (jit_breakpoint_deleted): Update.
5672 (jit_breakpoint_re_set_internal): Update.
5673
5674 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5677 checks.
5678 (jit_read_descriptor): Remove NULL check.
5679 (jit_event_handler): Add an assertion.
5680
5681 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 * jit.h (struct jit_objfile_data): Split into...
5684 (struct jiter_objfile_data): ... this ...
5685 (struct jited_objfile_data): ... and this.
5686 * objfiles.h (struct objfile) <jit_data>: Remove.
5687 <jiter_data, jited_data>: New fields.
5688 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5689 (jiter_objfile_data::~jiter_objfile_data): ... this.
5690 (get_jit_objfile_data): Rename to ...
5691 (get_jiter_objfile_data): ... this.
5692 (add_objfile_entry): Update.
5693 (jit_read_descriptor): Use get_jiter_objfile_data.
5694 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5695 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5696 (jit_inferior_exit_hook): Use objfile's jited_data field.
5697
5698 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * jit.h: Forward-declare `struct minimal_symbol`.
5701 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5702 constructor, destructor, and an objfile* field.
5703 * jit.c (jit_objfile_data): Remove.
5704 (struct jit_objfile_data): Migrate from here to jit.h.
5705 (jit_objfile_data::~jit_objfile_data): New destructor
5706 implementation with code moved from free_objfile_data.
5707 (free_objfile_data): Delete.
5708 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5709 (jit_find_objf_with_entry_addr): Ditto.
5710 (jit_inferior_exit_hook): Ditto.
5711 (_initialize_jit): Remove the call to
5712 register_objfile_data_with_cleanup.
5713 * objfiles.h (struct objfile) <jit_data>: New field.
5714
5715 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5716
5717 * jit.h: Forward-declare `struct objfile`.
5718 (jit_event_handler): Add a second parameter, the JITer objfile.
5719 * jit.c (jit_read_descriptor): Change the signature to take the
5720 JITer objfile as an argument instead of the jit_program_space_data.
5721 (jit_inferior_init): Update the call to jit_read_descriptor.
5722 (jit_event_handler): Use the new JITer objfile argument when calling
5723 jit_read_descriptor.
5724 * breakpoint.c (handle_jit_event): Update the call to
5725 jit_event_handler to pass the JITer objfile.
5726
5727 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5728
5729 * gdbarch.c: Regenerate.
5730 * gdbarch.h: Regenerate.
5731 * gdbarch.sh (handle_segmentation_fault): Remove method.
5732 * infrun.c (handle_segmentation_fault): Remove.
5733 (print_signal_received_reason): Remove call to
5734 handle_segmentation_fault.
5735
5736 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5737
5738 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5739 Rename to sparc64_linux_report_signal_info and add siggnal
5740 argument.
5741 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5742 instead of sparc64_linux_handle_segmentation_fault.
5743
5744 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5745
5746 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5747 i386_linux_report_signal_info instead of
5748 i386_linux_handle_segmentation_fault.
5749 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5750 to i386_linux_report_signal_info and add siggnal argument.
5751 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5752 of i386_linux_handle_segmentation_fault.
5753 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5754 to i386_linux_report_signal_info and add siggnal argument.
5755
5756 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5757
5758 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5759 hook if present.
5760
5761 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5762
5763 * gdbarch.c: Regenerate.
5764 * gdbarch.h: Regenerate.
5765 * gdbarch.sh (report_signal_info): New method.
5766 * infrun.c (print_signal_received_reason): Invoke gdbarch
5767 report_signal_info hook if present.
5768
5769 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5770
5771 * python/py-registers.c : Add 'unordered_map' include.
5772 (gdbpy_new_reggroup): Renamed to...
5773 (gdbpy_get_reggroup): ...this. Update to only create register
5774 group descriptors when needed.
5775 (gdbpy_reggroup_iter_next): Update.
5776
5777 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * python/py-registers.c (gdbpy_register_object_data): New static
5780 global.
5781 (gdbpy_register_object_data_init): New function.
5782 (gdbpy_new_register_descriptor): Renamed to...
5783 (gdbpy_get_register_descriptor): ...this, and update to reuse
5784 existing register descriptors where possible.
5785 (gdbpy_register_descriptor_iter_next): Update.
5786 (gdbpy_initialize_registers): Register new gdbarch data.
5787
5788 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * linux-nat.c (stopped_pids): Make static.
5791
5792 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 PR ada/26235
5795 * gdbtypes.c (ada_discrete_type_low_bound,
5796 ada_discrete_type_high_bound): Handle undefined bounds.
5797
5798 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5799
5800 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5801 declaration.
5802 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5803 function.
5804
5805 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5806
5807 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5808 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5809 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5810 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5811 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5812 method.
5813
5814 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5815
5816 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5817 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5818 which are deprecated in Guile 3.0.
5819 * configure.ac (try_guile_versions): Add "guile-3.0".
5820 * configure (try_guile_versions): Regenerate.
5821 * NEWS: Update entry.
5822
5823 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5824 Doug Evans <dje@google.com>
5825
5826 PR gdb/21104
5827 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5828 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5829 USING_GUILE_BEFORE_2_2.
5830 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5831 Change type to 'scm_t_port_type *'.
5832 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5833 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5834 parameter and honor it. Update callers.
5835 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5836 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5837 functions.
5838 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5839 USING_GUILE_BEFORE_2_2.
5840 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5841 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5842 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5843 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5844 and 'SCM_PORT_TYPE'.
5845 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5846 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5847 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5848 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5849 [!USING_GUILE_BEFORE_2_2]: New functions.
5850 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5851 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5852 'gdbscm_memory_port_read'.
5853 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5854 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5855 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5856 function.
5857 (ioscm_init_memory_port): Remove.
5858 (ioscm_init_memory_port_stream): New function
5859 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5860 function.
5861 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5862 Return scm_from_uint (0).
5863 (gdbscm_set_memory_port_read_buffer_size_x)
5864 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5865 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5866 Return scm_from_uint (0).
5867 (gdbscm_set_memory_port_write_buffer_size_x)
5868 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5869 * configure.ac (try_guile_versions): Add "guile-2.2".
5870 * configure: Regenerate.
5871 * NEWS: Add entry.
5872
5873 2020-07-18 Tom Tromey <tom@tromey.com>
5874
5875 * linux-nat.c (linux_multi_process): Remove.
5876 (linux_nat_target::supports_multi_process): Return true.
5877
5878 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5881 (riscv_lookup_target_description): Return pointer out of
5882 unique_ptr.
5883 * target-descriptions.c (allocate_target_description): Add
5884 comment.
5885 (target_desc_deleter::operator()): Likewise.
5886 * target-descriptions.h (struct target_desc_deleter): Moved to
5887 gdbsupport/tdesc.h.
5888 (target_desc_up): Likewise.
5889
5890 2020-07-17 Tom Tromey <tromey@adacore.com>
5891
5892 * linux-nat.c (linux_nat_target::supports_non_stop)
5893 (linux_nat_target::always_non_stop_p): Use "true".
5894 (linux_nat_target::supports_disable_randomization): Use "true" and
5895 "false".
5896
5897 2020-07-16 Caroline Tice <cmtice@google.com>
5898
5899 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5900 (RNGLIST_HEADER_SIZE64): New constant definition.
5901 (struct dwop_section_names): Add rnglists_dwo.
5902 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5903 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5904 (struct dwo_sections): Add rnglists field.
5905 (read_attribut_reprocess): Add tag parameter.
5906 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5907 (cu_debug_rnglists_section): New function (decl & definition).
5908 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5909 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5910 die whose range is being checked; get rnglist section from
5911 cu_debug_rnglists_section, to get from either objfile or dwo file as
5912 appropriate. Add cases for DW_RLE_base_addressx,
5913 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5914 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5915 test inside if-condition and updating complaint message.
5916 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5917 dwarf2_rnglists_process.
5918 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5919 dwarf2_ranges_process.
5920 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5921 need_ranges_base and update comment appropriately. Also pass die tag
5922 to dwarf2_ranges_read.
5923 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5924 need_ranges_base and update comment appropriately. Also pass die tag
5925 to dwarf2_ranges_process.
5926 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5927 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5928 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5929 need_ranges_base and update comment appropriately. Also pass die tag
5930 to read_attribute_reprocess and dwarf2_ranges_read.
5931 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5932 and update function comment appropriately.
5933 (read_loclist_index): Call read_loclists_rnglists_header instead of
5934 read_loclist_header.
5935 (read_rnglist_index): New function.
5936 (read_attribute_reprocess): Add tag parameter. Add code for
5937 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5938 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5939
5940 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5941
5942 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5943 being resolved.
5944
5945 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5946
5947 * arch-utils.c (show_architecture): Update formatting of messages.
5948
5949 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * gdbtypes.h (struct type) <bounds>: Handle array and string
5952 types.
5953 * ada-lang.c (assign_aggregate): Use type::bounds on
5954 array/string type.
5955 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5956 * c-varobj.c (c_number_of_children): Likewise.
5957 (c_describe_child): Likewise.
5958 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5959 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5960 (f_type_print_base): Likewise.
5961 * f-valprint.c (f77_array_offset_tbl): Likewise.
5962 (f77_get_upperbound): Likewise.
5963 (f77_print_array_1): Likewise.
5964 * guile/scm-type.c (gdbscm_type_range): Likewise.
5965 * m2-typeprint.c (m2_array): Likewise.
5966 (m2_is_long_set_of_type): Likewise.
5967 * m2-valprint.c (get_long_set_bounds): Likewise.
5968 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5969 * python/py-type.c (typy_range): Likewise.
5970 * rust-lang.c (rust_internal_print_type): Likewise.
5971 * type-stack.c (type_stack::follow_types): Likewise.
5972 * valarith.c (value_subscripted_rvalue): Likewise.
5973 * valops.c (value_cast): Likewise.
5974
5975 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5978 callers to use the equivalent accessor methods.
5979
5980 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5983 (struct type) <bit_stride>: New method.
5984 (TYPE_BIT_STRIDE): Remove.
5985 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5986
5987 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5988
5989 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5990 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5991 callers to use the equivalent accessor methods instead.
5992
5993 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5994
5995 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5996 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5997 callers to use the equivalent accessor methods instead.
5998
5999 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6000
6001 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6002 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6003 to use dynamic_prop::kind.
6004
6005 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6008 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6009 to get the bound property's kind and check against
6010 PROP_UNDEFINED.
6011
6012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6015 all callers to use type::range_bounds followed by
6016 dynamic_prop::{low,high}.
6017
6018 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6021 const_val, set_const_val, baton, set_locexpr, set_loclist,
6022 set_addr_offset, variant_parts, set_variant_parts,
6023 original_type, set_original_type>: New methods.
6024 <kind>: Rename to...
6025 <m_kind>: ... this. Update all users to use the new methods
6026 instead.
6027 <data>: Rename to...
6028 <m_data>: ... this. Update all users to use the new methods
6029 instead.
6030
6031 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * gdbtypes.c (get_discrete_bounds): Return failure if
6034 the range type's bounds are not both defined and constant
6035 values.
6036 (get_array_bounds): Update comment. Remove undefined bound check.
6037
6038 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6041 the type::bounds method directly.
6042
6043 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6046 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6047 are used to set the range type's bounds to use set_bounds.
6048
6049 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6050
6051 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6052
6053 2020-07-10 Pedro Alves <pedro@palves.net>
6054
6055 * gdbthread.h (inferior_ref): Define.
6056 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6057 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6058 * thread.c
6059 (scoped_restore_current_thread::restore):
6060 Adjust to gdb::ref_ptr.
6061 (scoped_restore_current_thread::~scoped_restore_current_thread):
6062 Remove manual decref handling.
6063 (scoped_restore_current_thread::scoped_restore_current_thread):
6064 Adjust to use
6065 inferior_ref::new_reference/thread_info_ref::new_reference.
6066 Incref the thread before calling get_frame_id instead of after.
6067 Let TARGET_CLOSE_ERROR propagate.
6068
6069 2020-07-10 Pedro Alves <pedro@palves.net>
6070
6071 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6072 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6073 NOT_AVAILABLE_ERROR.
6074 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6075 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6076
6077 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6078 Pedro Alves <pedro@palves.net>
6079
6080 PR gdb/26199
6081 * infrun.c (threads_are_resumed_pending_p): Delete.
6082 (do_target_wait): Remove threads_are_executing and
6083 threads_are_resumed_pending_p checks from the inferior_matches
6084 lambda. Update comments.
6085
6086 2020-07-10 Pedro Alves <pedro@palves.net>
6087
6088 PR gdb/26199
6089 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6090 executing threads.
6091
6092 2020-07-10 Pedro Alves <pedro@palves.net>
6093
6094 PR gdb/26199
6095 * infrun.c (handle_no_resumed): Handle multiple targets.
6096
6097 2020-07-10 Pedro Alves <pedro@palves.net>
6098
6099 PR gdb/26199
6100 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6101 target_is_async_p.
6102
6103 2020-07-10 Pedro Alves <pedro@palves.net>
6104
6105 PR gdb/26199
6106 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6107 threads, not all threads.
6108
6109 2020-07-10 Pedro Alves <pedro@palves.net>
6110
6111 PR gdb/26199
6112 * remote.c (remote_target::open_1): Pass remote target pointer as
6113 data to create_async_event_handler.
6114 (remote_async_inferior_event_handler): Mark async event handler
6115 before returning if the remote target still has either pending
6116 events or unacknowledged notifications.
6117
6118 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6119
6120 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6121 declaration.
6122 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6123 function.
6124
6125 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6126
6127 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6128 inferior_ptid.
6129
6130 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6131
6132 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6133 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6134 AT_FREEBSD_PS_STRINGS.
6135
6136 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6137
6138 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6139 of debugfile path on Windows.
6140
6141 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6142
6143 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6144 argument to 'data'.
6145
6146 2020-07-08 Tom Tromey <tromey@adacore.com>
6147
6148 * ada-lang.c (ada_exception_message_1): Use read_memory.
6149
6150 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 PR python/22748
6153 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6154 special handling for inline frames.
6155 * findvar.c (value_of_register_lazy): Skip inline frames when
6156 creating lazy register values.
6157 * frame.c (frame_id_computed_p): Delete definition.
6158 * frame.h (frame_id_computed_p): Delete declaration.
6159
6160 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * NEWS: Mention additions to Python API.
6163 * python/py-arch.c (archpy_register_groups): New function.
6164 (arch_object_methods): Add 'register_groups' method.
6165 * python/py-registers.c (reggroup_iterator_object): New struct.
6166 (reggroup_object): New struct.
6167 (gdbpy_new_reggroup): New function.
6168 (gdbpy_reggroup_to_string): New function.
6169 (gdbpy_reggroup_name): New function.
6170 (gdbpy_reggroup_iter): New function.
6171 (gdbpy_reggroup_iter_next): New function.
6172 (gdbpy_new_reggroup_iterator): New function
6173 (gdbpy_initialize_registers): Register new types.
6174 (reggroup_iterator_object_type): Define new Python type.
6175 (gdbpy_reggroup_getset): New static global.
6176 (reggroup_object_type): Define new Python type.
6177 * python/python-internal.h
6178
6179 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6182 * python/py-arch.c (archpy_registers): New function.
6183 (arch_object_methods): Add 'registers' method.
6184 * python/py-registers.c: New file.
6185 * python/python-internal.h
6186 (gdbpy_new_register_descriptor_iterator): Declare.
6187 (gdbpy_initialize_registers): Declare.
6188 * python/python.c (do_start_initialization): Call
6189 gdbpy_initialize_registers.
6190 * NEWS: Mention additions to the Python API.
6191
6192 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * NEWS: Mention new Python API method.
6195 * python/py-unwind.c (pending_framepy_architecture): New function.
6196 (pending_frame_object_methods): Add architecture method.
6197
6198 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * gdbarch.c: Regenerate.
6201 * gdbarch.h: Regenerate.
6202 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6203 (gdbarch_data): Use internal_error for the case where
6204 deprecated_set_gdbarch_data was originally needed.
6205 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6206 and use passed in obstack.
6207 (libunwind_frame_set_descr): Should no longer get back NULL from
6208 gdbarch_data.
6209 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6210 type.
6211 * user-regs.c (user_regs_init): Update parameters, and use passed
6212 in obstack.
6213 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6214 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6215
6216 2020-07-06 Tom de Vries <tdevries@suse.de>
6217
6218 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6219 End-Of-Sequence in lte_is_less_than.
6220 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6221 "gdb: Don't reorder line table entries too much when sorting".
6222
6223 2020-07-06 Tom de Vries <tdevries@suse.de>
6224
6225 PR tui/26205
6226 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6227
6228 2020-07-05 Tom de Vries <tdevries@suse.de>
6229
6230 PR build/26187
6231 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6232 std::uncaught_exceptions instead of deprecated
6233 std::uncaught_exception.
6234
6235 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * macroexp.h (macro_stringify): Return
6238 gdb::unique_xmalloc_ptr<char>.
6239 * macroexp.c (macro_stringify): Likewise.
6240 * macrotab.c (fixup_definition): Update.
6241
6242 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6245 (lex_one_token): Update.
6246 * macroexp.c (struct macro_buffer) <release>: Return
6247 gdb::unique_xmalloc_ptr<char>.
6248 (macro_stringify): Update.
6249 (macro_expand): Update.
6250 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6251 * macroexp.h (macro_expand_next): Likewise.
6252
6253 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * macroexp.h (macro_lookup_ftype): Remove.
6256 (macro_expand, macro_expand_once, macro_expand_next): Remove
6257 lookup function parameters, add scope parameter.
6258 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6259 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6260 * macroscope.h (standard_macro_lookup): Change parameter type
6261 to macro_scope.
6262 * macroscope.c (standard_macro_lookup): Likewise.
6263 * c-exp.y (lex_one_token): Update.
6264 * macrocmd.c (macro_expand_command): Likewise.
6265 (macro_expand_once_command): Likewise.
6266
6267 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * inf-loop.c (inferior_event_handler): Remove client_data param.
6270 * inf-loop.h (inferior_event_handler): Likewise.
6271 * infcmd.c (step_1): Adjust.
6272 * infrun.c (proceed): Adjust.
6273 (fetch_inferior_event): Remove client_data param.
6274 (infrun_async_inferior_event_handler): Adjust.
6275 * infrun.h (fetch_inferior_event): Remove `void *` param.
6276 * linux-nat.c (handle_target_event): Adjust.
6277 * record-btrace.c (record_btrace_handle_async_inferior_event):
6278 Adjust.
6279 * record-full.c (record_full_async_inferior_event_handler):
6280 Adjust.
6281 * remote.c (remote_async_inferior_event_handler): Adjust.
6282
6283 2020-07-01 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6286 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6287
6288 2020-07-01 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6291 tui_gen_win_info.
6292 (tui_win_info::make_window): Merge with
6293 tui_gen_win_info::make_window.
6294 (tui_win_info::make_visible): Move from tui_gen_win_info.
6295 * tui/tui-win.c (tui_win_info::max_width): Move from
6296 tui_gen_win_info.
6297 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6298 type.
6299 <window_factory>: Likewise.
6300 * tui/tui-layout.c (tui_win_info::resize): Move from
6301 tui_gen_win_info.
6302 (make_standard_window): Change return type.
6303 (get_locator_window, tui_get_window_by_name): Likewise.
6304 (tui_layout_window::apply): Remove a cast.
6305 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6306 (struct tui_win_info): Merge with tui_gen_win_info.
6307 (struct tui_gen_win_info): Remove.
6308
6309 2020-07-01 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-stack.h (struct tui_locator_window): Derive from
6312 tui_win_info.
6313 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6314 <can_box>: New method.
6315
6316 2020-07-01 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6319
6320 2020-07-01 Tom Tromey <tom@tromey.com>
6321
6322 * tui/tui-regs.c (tui_data_window::display_registers_from)
6323 (tui_data_window::display_registers_from)
6324 (tui_data_window::first_data_item_displayed)
6325 (tui_data_window::delete_data_content_windows): Update.
6326 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6327 Remove.
6328 (tui_data_window::check_register_values): Update.
6329 (tui_data_item_window::rerender): Add parameters. Update.
6330 (tui_data_item_window::refresh_window): Remove.
6331 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6332 virtual.
6333 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6334 tui_gen_win_info.
6335 <refresh_window, max_height, min_height>: Remove.
6336 <rerender>: Add parameters.
6337 <x, y, visible>: New members.
6338 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6339 <m_item_width>: New member.
6340
6341 2020-07-01 Tom Tromey <tom@tromey.com>
6342
6343 * tui/tui-regs.c (tui_data_window::show_register_group)
6344 (tui_data_window::check_register_values): Update.
6345 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6346 from item_no.
6347
6348 2020-07-01 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6351 useless "if".
6352
6353 2020-07-01 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6356 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6357
6358 2020-07-01 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6361 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6362 (struct tui_line_or_address): Move from tui-data.h.
6363 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6364 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6365 (tui_cmd_window, tui_source_window_base, tui_source_window)
6366 (tui_disasm_window): Don't declare.
6367 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6368 to tui-winsource.h.
6369 (SINGLE_KEY): Move to tui-stack.c.
6370
6371 2020-07-01 Tom Tromey <tom@tromey.com>
6372
6373 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6374 std::string.
6375 * tui/tui-regs.c (class tab_expansion_file): New.
6376 (tab_expansion_file::write): New method.
6377 (tui_register_format): Change return type. Use
6378 tab_expansion_file.
6379 (tui_get_register, tui_data_window::display_registers_from)
6380 (tui_data_item_window::rerender): Update.
6381 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6382 * tui/tui-io.c (tui_expand_tabs): Remove.
6383
6384 2020-07-01 Tom Tromey <tom@tromey.com>
6385
6386 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6387
6388 2020-07-01 Fangrui Song <maskray@google.com>
6389
6390 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6391
6392 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6393
6394 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6395 forms for DW_AT_associated and DW_AT_allocated attributes,
6396 which is already checked in function attr_to_dynamic_prop.
6397
6398 2020-06-30 Tom Tromey <tromey@adacore.com>
6399
6400 * dwarf2/read.c (quirk_rust_enum): Correctly call
6401 alloc_rust_variant for default-less enum.
6402
6403 2020-06-30 Tom Tromey <tromey@adacore.com>
6404
6405 PR build/26183:
6406 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6407 gdb::to_string.
6408
6409 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6410
6411 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6412 * gdbarch.h: Re-generate.
6413
6414 2020-06-28 Tom Tromey <tom@tromey.com>
6415
6416 * command.h (cmd_types): Remove.
6417 (cmd_type): Don't declare.
6418 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6419 typedef.
6420 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6421 * cli/cli-decode.c (cmd_type): Remove.
6422
6423 2020-06-27 Pedro Alves <palves@redhat.com>
6424
6425 * fork-child.c (prefork_hook): Adjust.
6426 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6427 Delete.
6428 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6429 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6430 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6431 Remove declarations.
6432 (struct inferior) <set_tty, tty>: New methods.
6433 (struct inferior) <terminal>: Rename to ...
6434 (struct inferior) <m_terminal>: ... this and make private.
6435 * main.c (captured_main_1): Adjust.
6436 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6437 (mi_cmd_inferior_tty_show): Adjust.
6438 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6439 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6440
6441 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6442
6443 * configure.ac: Add --enable-libctf: handle --disable-static
6444 properly.
6445 * acinclude.m4: sinclude ../config/enable.m4.
6446 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6447 (LIBCTF): Substitute in.
6448 (CTF_DEPS): New, likewise.
6449 (CLIBS): libctf needs symbols from libbfd: move earlier.
6450 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6451 flags.
6452 * ctfread.c: Surround in ENABLE_LIBCTF.
6453 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6454 * configure: Regenerate.
6455 * config.in: Likewise.
6456
6457 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6460
6461 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * inferior.h (struct inferior) <terminal>: Change type to
6464 gdb::unique_xmalloc_ptr<char>.
6465 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6466 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6467 field, adjust to unique pointer.
6468 (get_inferior_io_terminal): Adjust to unique pointer.
6469
6470 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6473 registers, not just the known core set of registers.
6474
6475 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6478 fflags, frm, and fcsr registers.
6479 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6480 restore groups.
6481 (riscv_tdesc_unknown_reg): New function.
6482 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6483 tdesc_use_registers.
6484 * riscv-tdep.h (struct gdbarch_tdep): Add
6485 unknown_csrs_first_regnum, unknown_csrs_count,
6486 duplicate_fflags_regnum, duplicate_frm_regnum, and
6487 duplicate_fcsr_regnum fields.
6488
6489 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6490
6491 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6492 callback, use the callback (when not null) to help number unknown
6493 registers.
6494 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6495 (tdesc_use_registers): Add extra parameter to declaration.
6496
6497 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6500 in the file.
6501 (class riscv_pending_register_alias): Likewise.
6502 (riscv_register_feature::register_info): Change 'required_p' field
6503 to 'required', and change its type. Add 'check' member function.
6504 (riscv_register_feature::register_info::check): Define new member
6505 function.
6506 (riscv_xreg_feature): Change initialisation of 'required' field.
6507 (riscv_freg_feature): Likewise.
6508 (riscv_virtual_feature): Likewise.
6509 (riscv_csr_feature): Likewise.
6510 (riscv_check_tdesc_feature): Take extra parameter, the csr
6511 tdesc_feature, rewrite the function to use the new
6512 riscv_register_feature::register_info::check function.
6513 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6514
6515 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6516
6517 * features/Makefile: Remove all references to the deleted files
6518 below.
6519 * features/riscv/32bit-csr.c: Deleted.
6520 * features/riscv/32bit-csr.xml: Deleted.
6521 * features/riscv/64bit-csr.c: Deleted.
6522 * features/riscv/64bit-csr.xml: Deleted.
6523 * features/riscv/rebuild-csr-xml.sh: Deleted.
6524
6525 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6528 whitespace error for declaration of names member variable.
6529 (struct riscv_register_feature): Add new prefer_first_name member
6530 variable, and fix whitespace error in declaration of registers.
6531 (riscv_xreg_feature): Initialize prefer_first_name field.
6532 (riscv_freg_feature): Likewise.
6533 (riscv_virtual_feature): Likewise.
6534 (riscv_csr_feature): Likewise.
6535 (riscv_register_name): Expand on comments. Remove register name
6536 modifications for CSR and virtual registers.
6537
6538 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6539
6540 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6541 errors.
6542
6543 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6546 riscv-opc.h.
6547 (class riscv_pending_register_alias): New class.
6548 (riscv_check_tdesc_feature): Take vector of pending aliases and
6549 populate it as appropriate.
6550 (riscv_setup_register_aliases): Delete.
6551 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6552 to riscv_check_tdesc_feature in all cases. Use the vector to
6553 create the register aliases.
6554
6555 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6556
6557 * sol2-tdep.c (sol2_static_transform_name): Remove.
6558 (sol2_init_abi): Don't register it.
6559 * gdbarch.sh (static_transform_name): Remove.
6560 * gdbarch.c, gdbarch.h: Regenerate.
6561
6562 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6563 gdbarch_static_transform_name.
6564 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6565 * stabsread.c (define_symbol) <'X'>: Remove.
6566 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6567 handling.
6568 <'V'>: Likewise.
6569 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6570 <'S'>: Remove call to gdbarch_static_transform_name.
6571
6572 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6573
6574 * procfs.c (procfs_pre_trace): New function.
6575 (procfs_target::create_inferior): Pass it to fork_inferior.
6576
6577 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6578
6579 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6580 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6581 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6582 sol2-tdep.o, sparc-sol2-tdep.o.
6583 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6584 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6585 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6586 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6587
6588 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6589
6590 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6591 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6592 Call sol2_init_abi.
6593 Remove calls to set_gdbarch_skip_solib_resolver,
6594 set_gdbarch_core_pid_to_str.
6595 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6596 (i386_sol2_static_transform_name): Remove.
6597 (i386_sol2_init_abi): Call sol2_init_abi.
6598 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6599 set_gdbarch_static_transform_name,
6600 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6601 Use sol2_sigtramp_p.
6602 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6603 (sol2_sigtramp_p): New function.
6604 (sol2_static_transform_name): New function.
6605 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6606 (sol2_init_abi): New function.
6607 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6608 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6609 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6610 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6611 (sparc_sol2_static_transform_name): Remove.
6612 (sparc32_sol2_init_abi): Call sol2_init_abi.
6613 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6614 set_gdbarch_static_transform_name,
6615 set_gdbarch_skip_solib_resolver,
6616 set_gdbarch_core_pid_to_str.
6617 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6618 (sparc_sol2_static_transform_name): Remove
6619 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6620 call sol2_sigtramp_p.
6621 (sparc64_sol2_init_abi): Call sol2_init_abi.
6622 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6623 set_gdbarch_static_transform_name,
6624 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6625
6626 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6627
6628 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6629 * exec.c (validate_exec_file): If from_tty, set both
6630 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6631 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6632 and from_tty, unconditionally ask a confirmation.
6633
6634 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * target-descriptions.c (tdesc_architecture_name): Protect against
6637 NULL pointer dereference.
6638 (maint_print_xml_tdesc_cmd): New function.
6639 (_initialize_target_descriptions): Register new 'maint print
6640 xml-tdesc' command and give it the filename completer.
6641 * NEWS: Mention new 'maint print xml-tdesc' command.
6642
6643 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6644
6645 * target-descriptions.c (class tdesc_compatible_info): New class.
6646 (struct target_desc): Change type of compatible vector.
6647 (tdesc_compatible_p): Update for change in type of
6648 target_desc::compatible.
6649 (tdesc_compatible_info_list): New function.
6650 (tdesc_compatible_info_arch_name): New function.
6651 (tdesc_add_compatible): Update for change in type of
6652 target_desc::compatible.
6653 (print_c_tdesc::visit_pre): Likewise.
6654
6655 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6658 whitespace to underscore.
6659 (maint_print_c_tdesc_cmd): Use fake filename for target
6660 descriptions that came from the target.
6661 (_initialize_target_descriptions): Add filename command completion
6662 for 'maint print c-tdesc'.
6663
6664 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6665
6666 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6667 lines.
6668
6669 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6672 lines.
6673 (dwarf2_find_location_expression): Likewise.
6674 (call_site_parameter_matches): Likewise.
6675 (dwarf2_compile_expr_to_ax): Likewise.
6676 (disassemble_dwarf_expression): Likewise.
6677 (loclist_describe_location): Likewise.
6678
6679 2020-06-23 Pedro Alves <palves@redhat.com>
6680
6681 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6682 progspace-and-thread.h. Include scoped-mock-context.h instead.
6683 (register_to_value_test): Use scoped_mock_context.
6684 * regcache.c: Include "scoped-mock-context.h".
6685 (cooked_read_test): Don't error out if a target is already pushed.
6686 Use scoped_mock_context. Adjust.
6687 * scoped-mock-context.h: New file.
6688
6689 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6692 initializer.
6693 (ada_language::is_string_type_p): New member function.
6694 * c-lang.c (c_language_data): Delete la_is_string_type_p
6695 initializer.
6696 (cplus_language_data): Likewise.
6697 (asm_language_data): Likewise.
6698 (minimal_language_data): Likewise.
6699 * d-lang.c (d_language_data): Likewise.
6700 * f-lang.c (f_is_string_type_p): Delete function, implementation
6701 moved to f_language::is_string_type_p.
6702 (f_language_data): Delete la_is_string_type_p initializer.
6703 (f_language::is_string_type_p): New member function,
6704 implementation from f_is_string_type_p.
6705 * go-lang.c (go_is_string_type_p): Delete function, implementation
6706 moved to go_language::is_string_type_p.
6707 (go_language_data): Delete la_is_string_type_p initializer.
6708 (go_language::is_string_type_p): New member function,
6709 implementation from go_is_string_type_p.
6710 * language.c (language_defn::is_string_type_p): Define new member
6711 function.
6712 (default_is_string_type_p): Make static, add comment copied from
6713 header file.
6714 (unknown_language_data): Delete la_is_string_type_p initializer.
6715 (unknown_language::is_string_type_p): New member function.
6716 (auto_language_data): Delete la_is_string_type_p initializer.
6717 (auto_language::is_string_type_p): New member function.
6718 * language.h (language_data): Delete la_is_string_type_p field.
6719 (language_defn::is_string_type_p): Declare new function.
6720 (default_is_string_type_p): Delete desclaration, move comment to
6721 definition.
6722 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6723 moved to m2_language::is_string_type_p.
6724 (m2_language_data): Delete la_is_string_type_p initializer.
6725 (m2_language::is_string_type_p): New member function,
6726 implementation from m2_is_string_type_p.
6727 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6728 initializer.
6729 * opencl-lang.c (opencl_language_data): Likewise.
6730 * p-lang.c (pascal_is_string_type_p): Delete function,
6731 implementation moved to pascal_language::is_string_type_p.
6732 (pascal_language_data): Delete la_is_string_type_p initializer.
6733 (pascal_language::is_string_type_p): New member function,
6734 implementation from pascal_is_string_type_p.
6735 * rust-lang.c (rust_is_string_type_p): Delete function,
6736 implementation moved to rust_language::is_string_type_p.
6737 (rust_language_data): Delete la_is_string_type_p initializer.
6738 (rust_language::is_string_type_p): New member function,
6739 implementation from rust_is_string_type_p.
6740 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6741 is_string_type_p.
6742
6743 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * ada-lang.c (ada_language_data): Delete la_print_typedef
6746 initializer.
6747 (ada_language::print_typedef): New member function.
6748 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6749 (cplus_language_data): Likewise.
6750 (asm_language_data): Likewise.
6751 (minimal_language_data): Likewise.
6752 * d-lang.c (d_language_data): Likewise.
6753 * f-lang.c (f_language_data): Likewise.
6754 (f_language::print_typedef): New member function.
6755 * go-lang.c (go_language_data): Delete la_print_typedef
6756 initializer.
6757 * language.c (language_defn::print_typedef): Define member
6758 function.
6759 (unknown_language_data): Delete la_print_typedef initializer.
6760 (unknown_language::print_typedef): New member function.
6761 (auto_language_data): Delete la_print_typedef initializer.
6762 (auto_language::print_typedef): New member function.
6763 * language.h (language_data): Delete la_print_typedef field.
6764 (language_defn::print_typedef): Declare new member function.
6765 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6766 (default_print_typedef): Delete declaration.
6767 * m2-lang.c (m2_language_data): Delete la_print_typedef
6768 initializer.
6769 (m2_language::print_typedef): New member function.
6770 * objc-lang.c (objc_language_data): Delete la_print_typedef
6771 initializer.
6772 * opencl-lang.c (opencl_language_data): Likewise.
6773 * p-lang.c (pascal_language_data): Likewise.
6774 (pascal_language::print_typedef): New member function.
6775 * rust-lang.c (rust_print_typedef): Delete function,
6776 implementation moved to rust_language::print_typedef.
6777 (rust_language): Delete la_print_typedef initializer.
6778 (rust_language::print_typedef): New member function,
6779 implementation from rust_print_typedef.
6780 * typeprint.c (default_print_typedef): Delete.
6781
6782 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6785 (ada_language::printstr): New member function.
6786 * c-lang.c (c_language_data): Delete la_printstr initializer.
6787 (cplus_language_data): Likewise.
6788 (asm_language_data): Likewise.
6789 (minimal_language_data): Likewise.
6790 * d-lang.c (d_language_data): Likewise.
6791 * f-lang.c (f_printstr): Rename to f_language::printstr.
6792 (f_language_data): Delete la_printstr initializer.
6793 (f_language::printstr): New member function, implementation from
6794 f_printstr.
6795 * go-lang.c (go_language_data): Delete la_printstr initializer.
6796 * language.c (language_defn::printstr): Define new member
6797 function.
6798 (unk_lang_printstr): Delete.
6799 (unknown_language_data): Delete la_printstr initializer.
6800 (unknown_language::printstr): New member function.
6801 (auto_language_data): Delete la_printstr initializer.
6802 (auto_language::printstr): New member function.
6803 * language.h (language_data): Delete la_printstr field.
6804 (language_defn::printstr): Declare new member function.
6805 (LA_PRINT_STRING): Update call to printstr.
6806 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6807 (m2_language_data): Delete la_printstr initializer.
6808 (m2_language::printstr): New member function, implementation from
6809 m2_printstr.
6810 * objc-lang.c (objc_language_data): Delete la_printstr
6811 initializer.
6812 * opencl-lang.c (opencl_language_data): Likewise.
6813 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6814 (pascal_language_data): Delete la_printstr initializer.
6815 (pascal_language::printstr): New member function, implementation
6816 from pascal_printstr.
6817 * p-lang.h (pascal_printstr): Delete declaration.
6818 * rust-lang.c (rust_printstr): Update header comment.
6819 (rust_language_data): Delete la_printstr initializer.
6820 (rust_language::printstr): New member function.
6821
6822 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6825 (ada_language::printchar): New member function.
6826 * c-lang.c (c_language_data): Delete la_printchar initializer.
6827 (cplus_language_data): Likewise.
6828 (asm_language_data): Likewise.
6829 (minimal_language_data): Likewise.
6830 * d-lang.c (d_language_data): Likewise.
6831 * f-lang.c (f_printchar): Rename to f_language::printchar.
6832 (f_language_data): Delete la_printchar initializer.
6833 (f_language::printchar): New member function, implementation from
6834 f_printchar.
6835 * go-lang.c (go_language_data): Delete la_printchar initializer.
6836 * language.c (unk_lang_printchar): Delete.
6837 (language_defn::printchar): Define new member function.
6838 (unknown_language_data): Delete la_printchar initializer.
6839 (unknown_language::printchar): New member function.
6840 (auto_language_data): Delete la_printchar initializer.
6841 (auto_language::printchar): New member function.
6842 * language.h (language_data): Delete la_printchar field.
6843 (language_defn::printchar): Declare new member function.
6844 (LA_PRINT_CHAR): Update call to printchar.
6845 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6846 (m2_language::printchar): New member function.
6847 * objc-lang.c (objc_language_data): Delete la_printchar
6848 initializer.
6849 * opencl-lang.c (opencl_language_data): Likewise.
6850 * p-lang.c (pascal_language_data): Delete la_printchar
6851 initializer.
6852 (pascal_language::printchar): New member function.
6853 * rust-lang.c (rust_printchar): Rename to
6854 rust_language::printchar.
6855 (rust_language_data): Delete la_printchar initializer.
6856 (rust_language::printchar): New member function, implementation
6857 from rust_printchar.
6858
6859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6862 (ada_language_data): Delete la_emitchar initializer.
6863 (ada_language::emitchar): New member function, implementation from
6864 emit_char.
6865 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6866 (cplus_language_data): Likewise.
6867 (asm_language_data): Likewise.
6868 (minimal_language_data): Likewise.
6869 * d-lang.c (d_language_data): Likewise.
6870 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6871 (f_language_data): Delete la_emitchar initializer.
6872 (f_language::emitchar): New member function, implementation from
6873 f_emit_char.
6874 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6875 * language.c (unk_lang_emit_char): Delete.
6876 (language_defn::emitchar): New member function definition.
6877 (unknown_language_data): Delete la_emitchar initializer.
6878 (unknown_language::emitchar): New member function.
6879 (auto_language_data): Delete la_emitchar initializer.
6880 (auto_language::emitchar): New member function.
6881 * language.h (language_data): Delete la_emitchar field.
6882 (language_defn::emitchar): New member field declaration.
6883 (LA_EMIT_CHAR): Update call to emitchar.
6884 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6885 (m2_language_data): Delete la_emitchar initializer.
6886 (m2_language::emitchar): New member function, implementation from
6887 m2_emit_char.
6888 * objc-lang.c (objc_language_data): Delete la_emitchar
6889 initializer.
6890 * opencl-lang.c (opencl_language_data): Likewise.
6891 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6892 (pascal_language_data): Delete la_emitchar initializer.
6893 (pascal_language::emitchar): New member function, implementation
6894 from pascal_emit_char.
6895 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6896 (rust_language_data): Delete la_emitchar initializer.
6897 (rust_language::emitchar): New member function, implementation
6898 from rust_emitchar.
6899
6900 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6903 (ada_language_data): Delete la_post_parser initializer.
6904 (ada_language::post_parser): New member function.
6905 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6906 (cplus_language_data): Likewise.
6907 (asm_language_data): Likewise.
6908 (minimal_language_data): Likewise.
6909 * d-lang.c (d_language_data): Likewise.
6910 * f-lang.c (f_language_data): Likewise.
6911 * go-lang.c (go_language_data): Likewise.
6912 * language.c (unknown_language_data): Likewise.
6913 (auto_language_data): Likewise.
6914 * language.h (language_data): Delete la_post_parser field.
6915 (language_defn::post_parser): New member function.
6916 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6917 * objc-lang.c (objc_language_data): Likewise.
6918 * opencl-lang.c (opencl_language_data): Likewise.
6919 * p-lang.c (pascal_language_data): Likewise.
6920 * parse.c (parse_exp_in_context): Update call to post_parser.
6921 (null_post_parser): Delete definition.
6922 * parser-defs.h (null_post_parser): Delete declaration.
6923 * rust-lang.c (rust_language_data): Delete la_post_parser
6924 initializer.
6925
6926 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * ada-lang.c (parse): Rename to ada_language::parser.
6929 (ada_language_data): Delete la_parser initializer.
6930 (ada_language::parser): New member function, implementation from
6931 parse.
6932 * c-lang.c (c_language_data): Delete la_parser initializer.
6933 (cplus_language_data): Likewise.
6934 (asm_language_data): Likewise.
6935 (minimal_language_data): Likewise.
6936 * d-lang.c (d_language_data): Likewise.
6937 (d_language::parser): New member function.
6938 * f-lang.c (f_language_data): Delete la_parser initializer.
6939 (f_language::parser): New member function.
6940 * go-lang.c (go_language_data): Delete la_parser initializer.
6941 (go_language::parser): New member function.
6942 * language.c (unk_lang_parser): Delete.
6943 (language_defn::parser): Define new member function.
6944 (unknown_language_data): Delete la_parser initializer.
6945 (unknown_language::parser): New member function.
6946 (auto_language_data): Delete la_parser initializer.
6947 (auto_language::parser): New member function.
6948 * language.h (language_data): Delete la_parser field.
6949 (language_defn::parser): Declare new member function.
6950 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6951 (m2_language::parser): New member function.
6952 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6953 * opencl-lang.c (opencl_language_data): Likewise.
6954 * p-lang.c (pascal_language_data): Likewise.
6955 (pascal_language::parser): New member function.
6956 * parse.c (parse_exp_in_context): Update call to parser.
6957 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6958 (rust_language::parser): New member function.
6959
6960 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * top.c (print_gdb_configuration): Print --with-python-libdir
6963 configuration value.
6964
6965 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6966
6967 * NEWS: Mention change to the alias command.
6968
6969 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6970
6971 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6972 (alias_command_completer)
6973 (make_alias_options_def_group): New functions.
6974 (alias_opts, alias_option_defs): New struct and array.
6975 (alias_usage_error): Update usage.
6976 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6977 Use option framework.
6978 (_initialize_cli_cmds): Update alias command help.
6979 Update aliases command help.
6980 (show_user):
6981 Add NULL for new default_args lookup_cmd argument.
6982 (valid_command_p): Rename to validate_aliased_command.
6983 Add NULL for new default_args lookup_cmd argument. Verify that the
6984 aliased_command has no default args.
6985 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6986 (lookup_cmd_1, lookup_cmd): New argument default_args.
6987 (add_alias_cmd):
6988 Add NULL for new default_args lookup_cmd argument.
6989 (print_help_for_command): Show default args under the layout
6990 alias some_alias = some_aliased_cmd some_alias_default_arg.
6991 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6992 xfree default_args in destructor.
6993 * cli/cli-script.c (process_next_line, do_define_command):
6994 Add NULL for new default_args lookup_cmd argument.
6995 * command.h: Declare new default_args argument in lookup_cmd
6996 and lookup_cmd_1.
6997 * completer.c (complete_line_internal_1):
6998 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6999 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7000 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7001 Likewise.
7002 * infcmd.c (_initialize_infcmd): Likewise.
7003 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7004 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7005 * python/py-param.c (add_setshow_generic): Likewise.
7006 * remote.c (_initialize_remote): Likewise.
7007 * top.c (execute_command): Prepend default_args if command has some.
7008 (set_verbose):
7009 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7010 * tracepoint.c (validate_actionline, encode_actions_1):
7011 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7012
7013 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7014
7015 * jit.c (jit_read_descriptor): Use bool as the return type.
7016 (jit_breakpoint_re_set_internal): Use bool as the return type.
7017 Invert the return value logic; return true if the jit breakpoint
7018 has been successfully initialized.
7019 (jit_inferior_init): Update the call to
7020 jit_breakpoint_re_set_internal.
7021
7022 2020-06-22 Pedro Alves <palves@redhat.com>
7023
7024 PR gdb/25939
7025 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7026 Use the current inferior instead. Don't return
7027 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7028 wait again.
7029 * sol-thread.c (sol_thread_target::wait): Don't reference
7030 inferior_ptid.
7031 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7032 (sol_update_thread_list_callback): Use the current inferior's pid
7033 instead of inferior_ptid.
7034
7035 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7036
7037 * procfs.c: Cleanup many comments.
7038
7039 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7040 (AFTER_WATCHFLAG): Replace by value.
7041
7042 (MAIN_PROC_NAME_FORMAT): Inline ...
7043 (create_procinfo): ... here.
7044
7045 (procfs_debug_inferior): Remove SYS_exec handling.
7046 (syscall_is_exec): Likewise.
7047 (procfs_set_exec_trap): Likewise.
7048
7049 (syscall_is_lwp_exit): Inline in callers.
7050 (syscall_is_exit): Likewise.
7051 (syscall_is_exec): Likewise.
7052 (syscall_is_lwp_create): Likewise.
7053
7054 (invalidate_cache): Remove #if 0 code.
7055
7056 (make_signal_thread_runnable): Remove.
7057 (procfs_target::resume): Remove #if 0 code.
7058
7059 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7060
7061 PR gdb/25939
7062 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7063 call ...
7064 (procfs_target::create_inferior): ... here.
7065
7066 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7067
7068 * exec.c (validate_exec_file): Ensure the build-id is up to
7069 date by calling reopen_exec_file (that checks file timestamp
7070 to decide to re-read the file).
7071
7072 2020-06-18 Pedro Alves <palves@redhat.com>
7073
7074 PR gdb/25412
7075 * gdbthread.h (delete_thread, delete_thread_silent)
7076 (find_thread_ptid): Update comments.
7077 * thread.c (current_thread_): New global.
7078 (is_current_thread): Move higher, and reimplement.
7079 (inferior_thread): Reimplement.
7080 (set_thread_exited): Use bool. Add assertions.
7081 (add_thread_silent): Simplify thread-reuse handling by always
7082 calling delete_thread.
7083 (delete_thread): Remove intro comment.
7084 (find_thread_ptid): Skip exited threads.
7085 (switch_to_thread_no_regs): Write to current_thread_.
7086 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7087 INFERIOR_PTID. Clear current_thread_.
7088
7089 2020-06-18 Pedro Alves <palves@redhat.com>
7090
7091 * aix-thread.c (pd_update): Use switch_to_thread.
7092
7093 2020-06-18 Pedro Alves <palves@redhat.com>
7094
7095 * ravenscar-thread.c (ravenscar_thread_target): Update.
7096 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7097 (ravenscar_thread_target::add_active_thread): ... this. Don't
7098 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7099 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7100
7101 2020-06-18 Pedro Alves <palves@redhat.com>
7102
7103 * nat/windows-nat.c (current_windows_thread): Remove.
7104 * nat/windows-nat.h (current_windows_thread): Remove.
7105 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7106 Adjust.
7107 (display_selectors): Adjust to fetch the current
7108 windows_thread_info based on inferior_ptid.
7109 (fake_create_process): No longer write to current_windows_thread.
7110 (windows_nat_target::get_windows_debug_event):
7111 Don't set inferior_ptid or current_windows_thread.
7112 (windows_nat_target::wait): Adjust to not rely on
7113 current_windows_thread.
7114 (do_initial_windows_stuff): Now a method of windows_nat_target.
7115 Switch to the last_ptid thread.
7116 (windows_nat_target::attach): Adjust.
7117 (windows_nat_target::detach): Use switch_to_no_thread instead of
7118 writing to inferior_ptid directly.
7119 (windows_nat_target::create_inferior): Adjust.
7120
7121 2020-06-18 Pedro Alves <palves@redhat.com>
7122
7123 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7124
7125 2020-06-18 Pedro Alves <palves@redhat.com>
7126
7127 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7128 after creating it, instead of writing to inferior_ptid. Don't
7129 write to inferior_ptid.
7130
7131 2020-06-18 Pedro Alves <palves@redhat.com>
7132
7133 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7134
7135 2020-06-18 Pedro Alves <palves@redhat.com>
7136
7137 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7138 it, instead of writing to inferior_ptid.
7139
7140 2020-06-18 Pedro Alves <palves@redhat.com>
7141
7142 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7143 to inferior_ptid.
7144
7145 2020-06-18 Pedro Alves <palves@redhat.com>
7146
7147 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7148 instead of writing to inferior_ptid directly.
7149
7150 2020-06-18 Pedro Alves <palves@redhat.com>
7151
7152 * corelow.c (core_target::close): Use switch_to_no_thread instead
7153 of writing to inferior_ptid directly.
7154 (add_to_thread_list, core_target_open): Use switch_to_thread
7155 instead of writing to inferior_ptid directly.
7156
7157 2020-06-18 Pedro Alves <palves@redhat.com>
7158
7159 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7160 inferior_ptid.
7161 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7162 inferior_ptid.
7163 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7164 inferior_ptid directly.
7165 (darwin_nat_target::init_thread_list): Switch to thread, instead
7166 of writing to inferior_ptid.
7167 (darwin_nat_target::attach): Don't write to inferior_ptid.
7168 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7169
7170 2020-06-18 Pedro Alves <palves@redhat.com>
7171
7172 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7173 thread.
7174 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7175 Instead use switch_to_thread.
7176 (gnu_nat_target::detach): Use switch_to_no_thread
7177 instead of writing to inferior_ptid directly. Used passed-in
7178 inferior instead of looking up the inferior by pid.
7179
7180 2020-06-18 Pedro Alves <palves@redhat.com>
7181
7182 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7183 inferior_ptid.
7184
7185 2020-06-18 Pedro Alves <palves@redhat.com>
7186
7187 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7188 inferior_ptid.
7189 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7190 thread.
7191 (nto_procfs_target::detach): Avoid referencing
7192 inferior_ptid. Use switch_to_no_thread instead of writing to
7193 inferior_ptid directly.
7194 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7195 instead of writing to inferior_ptid directly.
7196 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7197 to thread.
7198
7199 2020-06-18 Pedro Alves <palves@redhat.com>
7200
7201 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7202 after creating it, instead of writing to inferior_ptid.
7203 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7204 to inferior_ptid directly.
7205 (gdbsim_target::wait): Don't write to inferior_ptid.
7206
7207 2020-06-18 Pedro Alves <palves@redhat.com>
7208
7209 * remote.c (remote_target::remote_notice_new_inferior): Use
7210 switch_to_thread instead of writing to inferior_ptid directly.
7211 (remote_target::add_current_inferior_and_thread): Use
7212 switch_to_no_thread instead of writing to inferior_ptid directly.
7213 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7214 and switch_to_thread instead of using set_current_inferior or
7215 writing to inferior_ptid directly.
7216
7217 2020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * tracectf.c (ctf_target_open): Switch to added thread instead of
7220 writing to inferior_ptid directly.
7221 (ctf_target::close): Use switch_to_no_thread instead of writing to
7222 inferior_ptid directly.
7223
7224 2020-06-18 Pedro Alves <palves@redhat.com>
7225
7226 * tracefile-tfile.c (tfile_target_open): Don't write to
7227 inferior_ptid directly, instead switch to added thread.
7228 (tfile_target::close): Use switch_to_no_thread instead of writing
7229 to inferior_ptid directly.
7230
7231 2020-06-18 Pedro Alves <palves@redhat.com>
7232
7233 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7234 (procfs_target::detach): Use switch_to_no_thread
7235 instead of writing to inferior_ptid directly.
7236 (do_attach): Change return type to void. Switch to the added
7237 thread.
7238 (procfs_target::create_inferior): Switch to the added thread.
7239 (procfs_do_thread_registers): Don't write to inferior_ptid.
7240
7241 2020-06-18 Pedro Alves <palves@redhat.com>
7242
7243 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7244 of writing to inferior_ptid.
7245 (scoped_restore_exited_inferior): Delete.
7246 (handle_vfork_child_exec_or_exit): Simplify using
7247 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7248 instead of writing to inferior_ptid.
7249 (THREAD_STOPPED_BY): Delete.
7250 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7251 (thread_stopped_by_hw_breakpoint): Delete.
7252 (save_waitstatus): Use
7253 scoped_restore_current_thread+switch_to_thread, and call
7254 target_stopped_by_watchpoint instead of
7255 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7256 instead of thread_stopped_by_sw_breakpoint, and
7257 target_stopped_by_hw_breakpoint instead of
7258 thread_stopped_by_hw_breakpoint.
7259 (handle_inferior_event)
7260 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7261 inferior_ptid directly, nor
7262 set_current_inferior/set_current_program_space. Use
7263 switch_to_thread / switch_to_inferior_no_thread instead.
7264
7265 2020-06-18 Pedro Alves <palves@redhat.com>
7266
7267 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7268 instead of writing to inferior_ptid.
7269
7270 2020-06-18 Pedro Alves <palves@redhat.com>
7271
7272 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7273 added thread.
7274 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7275 to the added thread.
7276 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7277 instead of writing to inferior_ptid.
7278
7279 2020-06-18 Pedro Alves <palves@redhat.com>
7280
7281 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7282 (register_to_value_test): Mock a program_space too. Heap-allocate
7283 the address space. Don't write to inferior_ptid. Use
7284 switch_to_thread instead.
7285
7286 2020-06-18 Pedro Alves <palves@redhat.com>
7287
7288 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7289 Delete.
7290 (find_signalled_thread()): New, factored out from
7291 linux_make_corefile_notes and adjusted to handle exited threads.
7292 (linux_make_corefile_notes): Adjust to use the new
7293 find_signalled_thread.
7294
7295 2020-06-18 Pedro Alves <palves@redhat.com>
7296
7297 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7298 of saving/restoring inferior_ptid.
7299
7300 2020-06-17 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7303 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7304 declare.
7305 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7306
7307 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7310 of partial symtabs.
7311
7312 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * regformats/reg-arm.dat: Remove.
7315 * regformats/reg-bfin.dat: Remove.
7316 * regformats/reg-cris.dat: Remove.
7317 * regformats/reg-crisv32.dat: Remove.
7318 * regformats/reg-m32r.dat: Remove.
7319 * regformats/reg-tilegx.dat: Remove.
7320 * regformats/reg-tilegx32.dat: Remove.
7321
7322 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * features/Makefile (WHICH): Remove arm files.
7325 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7326 * regformats/arm/arm-with-neon.dat: Remove.
7327 * regformats/arm/arm-with-vfpv2.dat: Remove.
7328 * regformats/arm/arm-with-vfpv3.dat: Remove.
7329
7330 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * features/Makefile (XMLTOC): Remove rx.xml.
7333
7334 2020-06-17 Pedro Alves <palves@redhat.com>
7335
7336 * gdbthread.h (thread_control_state) <trap_expected> Update
7337 comments.
7338
7339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7342 ada_language::lookup_symbol_nonlocal.
7343 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7344 (ada_language::lookup_symbol_nonlocal): New member function,
7345 implementation from ada_lookup_symbol_nonlocal.
7346 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7347 initializer.
7348 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7349 initializer.
7350 (cplus_language::lookup_symbol_nonlocal): New member function.
7351 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7352 (minimal_language_data) Likewise.
7353 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7354 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7355 initializer.
7356 (d_language::lookup_symbol_nonlocal): New member function.
7357 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7358 initializer.
7359 (f_language::lookup_symbol_nonlocal): New member function.
7360 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7361 initializer.
7362 * language.c (unknown_language_data): Likewise.
7363 (auto_language_data): Likewise.
7364 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7365 field.
7366 (language_defn::lookup_symbol_nonlocal): New member function.
7367 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7368 initializer.
7369 * objc-lang.c (objc_language_data): Likewise.
7370 * opencl-lang.c (opencl_language_data): Likewise.
7371 * p-lang.c (pascal_language_data): Likewise.
7372 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7373 rust_language::lookup_symbol_nonlocal.
7374 (rust_language_data): Delete la_lookup_symbol_nonlocal
7375 initializer.
7376 (rust_language::lookup_symbol_nonlocal): New member function,
7377 implementation from rust_lookup_symbol_nonlocal.
7378 * symtab.c (lookup_symbol_aux): Update call to
7379 lookup_symbol_nonlocal.
7380 (basic_lookup_symbol_nonlocal): Rename to...
7381 (language_defn::lookup_symbol_nonlocal): ...this, and update
7382 header comment. Remove language_defn parameter, and replace with
7383 uses of `this'.
7384 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7385
7386 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7389 initializer.
7390 (ada_language::value_print_inner): New member function.
7391 * c-lang.c (c_language_data): Delete la_value_print_inner
7392 initializer.
7393 (cplus_language_data): Likewise.
7394 (asm_language_data): Likewise.
7395 (minimal_language_data): Likewise.
7396 * d-lang.c (d_language_data): Likewise.
7397 (d_language::value_print_inner): New member function.
7398 * f-lang.c (f_language_data): Delete la_value_print_inner
7399 initializer.
7400 (f_language::value_print_inner): New member function.
7401 * f-lang.h (f_value_print_innner): Rename to...
7402 (f_value_print_inner): ...this (note spelling of 'inner').
7403 * f-valprint.c (f_value_print_innner): Rename to...
7404 (f_value_print_inner): ...this (note spelling of 'inner').
7405 * go-lang.c (go_language_data): Delete la_value_print_inner
7406 initializer.
7407 (go_language::value_print_inner): New member function.
7408 * language.c (language_defn::value_print_inner): Define new member
7409 function.
7410 (unk_lang_value_print_inner): Delete.
7411 (unknown_language_data): Delete la_value_print_inner initializer.
7412 (unknown_language::value_print_inner): New member function.
7413 (auto_language_data): Delete la_value_print_inner initializer.
7414 (auto_language::value_print_inner): New member function.
7415 * language.h (language_data): Delete la_value_print_inner field.
7416 (language_defn::value_print_inner): Delcare new member function.
7417 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7418 initializer.
7419 (m2_language::value_print_inner): New member function.
7420 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7421 initializer.
7422 * opencl-lang.c (opencl_language_data): Likewise.
7423 * p-lang.c (pascal_language_data): Likewise.
7424 (pascal_language::value_print_inner): New member function.
7425 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7426 initializer.
7427 (rust_language::value_print_inner): New member function.
7428 * valprint.c (do_val_print): Update call to value_print_inner.
7429
7430 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * ada-lang.c (ada_language_data): Delete la_value_print
7433 initializer.
7434 (ada_language::value_print): New member function.
7435 * c-lang.c (c_language_data): Delete la_value_print initializer.
7436 (cplus_language_data): Likewise.
7437 (asm_language_data): Likewise.
7438 (minimal_language_data): Likewise.
7439 * d-lang.c (d_language_data): Likewise.
7440 * f-lang.c (f_language_data): Likewise.
7441 * go-lang.c (go_language_data): Likewise.
7442 * language.c (unk_lang_value_print): Delete.
7443 (language_defn::value_print): Define new member function.
7444 (unknown_language_data): Delete la_value_print initializer.
7445 (unknown_language::value_print): New member function.
7446 (auto_language_data): Delete la_value_print initializer.
7447 (auto_language::value_print): New member function.
7448 * language.h (language_data): Delete la_value_print field.
7449 (language_defn::value_print): Declare new member function.
7450 (LA_VALUE_PRINT): Update call to value_print.
7451 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7452 * objc-lang.c (objc_language_data): Likewise.
7453 * opencl-lang.c (opencl_language_data): Likewise.
7454 * p-lang.c (pascal_language_data): Likewise.
7455 (pascal_language::value_print): New member function.
7456 * rust-lang.c (rust_language_data): Delete la_value_print
7457 initializer.
7458
7459 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7460
7461 * ada-lang.c (ada_watch_location_expression): Rename to
7462 ada_language::watch_location_expression.
7463 (ada_language_data): Delete la_watch_location_expression
7464 initializer.
7465 (ada_language::watch_location_expression): New member function,
7466 implementation from ada_watch_location_expression.
7467 * breakpoint.c (watch_command_1): Update call to
7468 watch_location_expression.
7469 * c-lang.c (c_watch_location_expression): Rename to
7470 language_defn::watch_location_expression.
7471 (c_language_data): Delete la_watch_location_expression
7472 initializer.
7473 (cplus_language_data): Likewise.
7474 (asm_language_data): Likewise.
7475 (minimal_language_data): Likewise.
7476 * c-lang.h (c_watch_location_expression): Delete declaration.
7477 * d-lang.c (d_language_data): Delete la_watch_location_expression
7478 initializer.
7479 * f-lang.c (f_language_data): Likewise.
7480 * go-lang.c (go_language_data): Likewise.
7481 * language.c (language_defn::watch_location_expression): Member
7482 function implementation from c_watch_location_expression.
7483 (unknown_language_data): Delete la_watch_location_expression
7484 initializer.
7485 (auto_language_data): Likewise.
7486 * language.h (language_data): Delete la_watch_location_expression
7487 field.
7488 (language_defn::watch_location_expression): Declare new member
7489 function.
7490 * m2-lang.c (m2_language_data): Delete
7491 la_watch_location_expression initializer.
7492 * objc-lang.c (objc_language_data): Likewise.
7493 * opencl-lang.c (opencl_language_data): Likewise.
7494 * p-lang.c (pascal_language_data): Likewise.
7495 * rust-lang.c (rust_watch_location_expression): Rename to
7496 rust_language::watch_location_expression.
7497 (rust_language_data): Delete la_watch_location_expression
7498 initializer.
7499 (rust_language::watch_location_expression): New member function,
7500 implementation from rust_watch_location_expression.
7501
7502 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7503
7504 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7505 ada_language::collect_symbol_completion_matches.
7506 (ada_language_data): Delete la_collect_symbol_completion_matches
7507 initializer.
7508 (ada_language::collect_symbol_completion_matches): New member
7509 function, implementation from
7510 ada_collect_symbol_completion_matches.
7511 * c-lang.c (c_language_data): Delete
7512 la_collect_symbol_completion_matches initializer.
7513 (cplus_language_data): Likewise.
7514 (asm_language_data): Likewise.
7515 (minimal_language_data): Likewise.
7516 * d-lang.c (d_language_data): Likewise.
7517 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7518 f_language::collect_symbol_completion_matches.
7519 (f_language_data): Delete la_collect_symbol_completion_matches
7520 initializer.
7521 (f_language::collect_symbol_completion_matches) New member
7522 function, implementation from f_collect_symbol_completion_matches.
7523 * go-lang.c (go_language_data): Delete
7524 la_collect_symbol_completion_matches initializer.
7525 * language.c (unknown_language_data): Likewise.
7526 (auto_language_data): Likewise.
7527 * language.h (language_data): Delete
7528 la_collect_symbol_completion_matches field.
7529 (language_defn::collect_symbol_completion_matches): New member
7530 function.
7531 * m2-lang.c (m2_language_data): Delete
7532 la_collect_symbol_completion_matches initializer.
7533 * objc-lang.c (objc_language_data): Likewise.
7534 * opencl-lang.c (opencl_language_data): Likewise.
7535 * p-lang.c (pascal_language_data): Likewise.
7536 * rust-lang.c (rust_language_data): Likewise.
7537 * symtab.c (default_collect_symbol_completion_matches): Delete.
7538 (collect_symbol_completion_matches): Update call to
7539 collect_symbol_completion_matches.
7540 (collect_symbol_completion_matches_type): Likewise.
7541 * symtab.h (default_collect_symbol_completion_matches): Delete
7542 declaration.
7543
7544 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7545
7546 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7547 (ada_language_data): Delete la_word_break_characters initializer.
7548 (ada_language::word_break_characters): New member function.
7549 * c-lang.c (c_language_data): Delete la_word_break_characters
7550 initializer.
7551 (cplus_language_data): Likewise.
7552 (asm_language_data): Likewise.
7553 (minimal_language_data): Likewise.
7554 * completer.c: Update global comment.
7555 (advance_to_expression_complete_word_point): Update call to
7556 word_break_characters.
7557 (complete_files_symbols): Likewise.
7558 (complete_line_internal_1): Likewise.
7559 (default_completer_handle_brkchars): Likewise.
7560 (skip_quoted_chars): Likewise.
7561 * d-lang.c (d_language_data): Delete la_word_break_characters
7562 initializer.
7563 * f-lang.c (f_word_break_characters): Delete.
7564 (f_language_data): Delete la_word_break_characters initializer.
7565 (f_language::word_break_characters): New member function.
7566 * go-lang.c (go_language_data): Delete la_word_break_characters
7567 initializer.
7568 * language.c (unknown_language_data): Likewise.
7569 (auto_language_data): Likewise.
7570 * language.h (default_word_break_characters): Move declaration to
7571 earlier in the file.
7572 (language_data): Delete la_word_break_characters field.
7573 (language_defn::word_break_characters): New member function.
7574 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7575 initializer.
7576 * objc-lang.c (objc_language_data): Likewise.
7577 * opencl-lang.c (opencl_language_data): Likewise.
7578 * p-lang.c (pascal_language_data): Likewise.
7579 * rust-lang.c (rust_language_data): Likewise.
7580
7581 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7584 (ada_language_data): Delete la_get_symbol_name_matcher
7585 initializer.
7586 (language_defn::get_symbol_name_matcher_inner): New member
7587 function.
7588 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7589 initializer.
7590 (cplus_language_data): Likewise.
7591 (cplus_language::get_symbol_name_matcher_inner): New member
7592 function.
7593 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7594 (minimal_language_data): Likewise.
7595 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7596 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7597 initializer.
7598 * dictionary.c (iter_match_first_hashed): Update call to
7599 get_symbol_name_matcher.
7600 (iter_match_next_hashed): Likewise.
7601 (iter_match_next_linear): Likewise.
7602 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7603 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7604 initializer.
7605 (f_language::get_symbol_name_matcher_inner): New member function.
7606 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7607 initializer.
7608 * language.c (default_symbol_name_matcher): Update header comment,
7609 make static.
7610 (language_defn::get_symbol_name_matcher): New definition.
7611 (language_defn::get_symbol_name_matcher_inner): Likewise.
7612 (get_symbol_name_matcher): Delete.
7613 (unknown_language_data): Delete la_get_symbol_name_matcher
7614 initializer.
7615 (auto_language_data): Likewise.
7616 * language.h (language_data): Delete la_get_symbol_name_matcher
7617 field.
7618 (language_defn::get_symbol_name_matcher): New member function.
7619 (language_defn::get_symbol_name_matcher_inner): Likewise.
7620 (default_symbol_name_matcher): Delete declaration.
7621 * linespec.c (find_methods): Update call to
7622 get_symbol_name_matcher.
7623 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7624 initializer.
7625 * minsyms.c (lookup_minimal_symbol): Update call to
7626 get_symbol_name_matcher.
7627 (iterate_over_minimal_symbols): Likewise.
7628 * objc-lang.c (objc_language_data): Delete
7629 la_get_symbol_name_matcher initializer.
7630 * opencl-lang.c (opencl_language_data): Likewise.
7631 * p-lang.c (pascal_language_data): Likewise.
7632 * psymtab.c (psymbol_name_matches): Update call to
7633 get_symbol_name_matcher.
7634 * rust-lang.c (rust_language_data): Delete
7635 la_get_symbol_name_matcher initializer.
7636 * symtab.c (symbol_matches_search_name): Update call to
7637 get_symbol_name_matcher.
7638 (compare_symbol_name): Likewise.
7639
7640 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * ada-lang.c (ada_language_data): Delete la_compute_program
7643 initializer.
7644 * c-lang.c (c_language_data): Likewise.
7645 (c_language::compute_program): New member function.
7646 (cplus_language_data): Delete la_compute_program initializer.
7647 (cplus_language::compute_program): New member function.
7648 (asm_language_data): Delete la_compute_program initializer.
7649 (minimal_language_data): Likewise.
7650 * c-lang.h (c_compute_program): Update comment.
7651 (cplus_compute_program): Likewise.
7652 * compile/compile-c-support.c (c_compute_program): Likewise.
7653 (cplus_compute_program): Likewise.
7654 * compile/compile.c (compile_to_object): Update call to
7655 la_compute_program.
7656 * d-lang.c (d_language_data): Delete la_compute_program
7657 initializer.
7658 * f-lang.c (f_language_data): Likewise.
7659 * go-lang.c (go_language_data): Likewise.
7660 * language.c (unknown_language_data): Likewise.
7661 (auto_language_data): Likewise.
7662 * language.h (language_data): Delete la_compute_program field.
7663 (language_defn::compute_program): New member function.
7664 * m2-lang.c (m2_language_data): Delete la_compute_program
7665 initializer.
7666 * objc-lang.c (objc_language_data): Likewise.
7667 * opencl-lang.c (opencl_language_data): Likewise.
7668 * p-lang.c (pascal_language_data): Likewise.
7669 * rust-lang.c (rust_language_data): Likewise.
7670
7671 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_data) Delete
7674 la_class_name_from_physname initializer.
7675 * c-lang.c (c_language_data): Likewise.
7676 (cplus_language_data): Likewise.
7677 (cplus_language::class_name_from_physname): New member function.
7678 (asm_language_data): Delete la_class_name_from_physname
7679 initializer.
7680 (minimal_language_data): Likewise.
7681 * d-lang.c (d_language_data): Likewise.
7682 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7683 method on language_defn class.
7684 (guess_full_die_structure_name): Likewise.
7685 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7686 initializer.
7687 * go-lang.c (go_language_data): Likewise.
7688 * language.c (language_class_name_from_physname): Delete.
7689 (unk_lang_class_name): Delete.
7690 (unknown_language_data): Delete la_class_name_from_physname
7691 initializer.
7692 (auto_language_data): Likewise.
7693 * language.h (language_data): Delete la_class_name_from_physname
7694 field.
7695 (language_defn::class_name_from_physname): New function.
7696 (language_class_name_from_physname): Delete declaration.
7697 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7698 initializer.
7699 * objc-lang.c (objc_language_data): Likewise.
7700 * opencl-lang.c (opencl_language_data): Likewise.
7701 * p-lang.c (pascal_language_data): Likewise.
7702 * rust-lang.c (rust_language_data): Likewise.
7703
7704 2020-06-16 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-data.h (STATUS_NAME): New macro.
7707 * tui/tui-layout.c (tui_remove_some_windows)
7708 (initialize_known_windows, tui_register_window)
7709 (tui_layout_split::remove_windows, initialize_layouts)
7710 (tui_new_layout_command): Don't use hard-coded window names.
7711
7712 2020-06-16 Tom Tromey <tom@tromey.com>
7713
7714 PR tui/25348:
7715 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7716 tui_initialize_readline. Only run once. Call rl_initialize.
7717 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7718 tui_initialize_readline.
7719 * tui/tui-io.c (tui_setup_io): Call
7720 tui_ensure_readline_initialized.
7721 * tui/tui-interp.c (tui_interp::init): Update.
7722
7723 2020-06-16 Tom Tromey <tom@tromey.com>
7724
7725 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7726 Also preserve the status window.
7727
7728 2020-06-16 Tom Tromey <tom@tromey.com>
7729
7730 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7731 where m_window==nullptr.
7732
7733 2020-06-15 Tom Tromey <tromey@adacore.com>
7734
7735 * windows-nat.c (windows_nat::handle_output_debug_string):
7736 Update.
7737 (windows_nat::handle_ms_vc_exception): Update.
7738 * target.h (target_read_string): Change API.
7739 * target.c (target_read_string): Change API.
7740 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7741 Update.
7742 * solib-frv.c (frv_current_sos): Update.
7743 * solib-dsbt.c (dsbt_current_sos): Update.
7744 * solib-darwin.c (darwin_current_sos): Update.
7745 * linux-thread-db.c (inferior_has_bug): Update.
7746 * expprint.c (print_subexp_standard): Update.
7747 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7748 (ada_exception_message_1): Update.
7749
7750 2020-06-15 Tom Tromey <tromey@adacore.com>
7751
7752 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7753
7754 2020-06-15 Tom Tromey <tromey@adacore.com>
7755
7756 * valprint.c (read_string): Update comment.
7757 * target.c (MIN): Remove.
7758 (target_read_string): Rewrite.
7759
7760 2020-06-15 Tom Tromey <tromey@adacore.com>
7761
7762 * corefile.c (read_memory_string): Remove.
7763 * ada-valprint.c (ada_value_print_ptr): Update.
7764 * ada-lang.h (ada_tag_name): Change return type.
7765 * ada-lang.c (type_from_tag): Update.
7766 (ada_tag_name_from_tsd): Change return type. Use
7767 target_read_string.
7768 (ada_tag_name): Likewise.
7769 * gdbcore.h (read_memory_string): Don't declare.
7770
7771 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7772
7773 * symtab.c (rbreak_command): Ignore Windows drive colon.
7774
7775 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7776
7777 * NEWS: Mention removed GDBserver host support.
7778
7779 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7780
7781 * features/riscv/rebuild-csr-xml.sh: Updated.
7782
7783 2020-06-11 Tom Tromey <tom@tromey.com>
7784
7785 PR gdb/18318:
7786 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7787
7788 2020-06-09 Jonny Grant <jg@jguk.org>
7789 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7790
7791 * main.c (captured_main_1): Don't print new line after help.
7792 (print_gdb_help): add mailing list and IRC channel information
7793 to --help. Add new lines between items in the footer. Remove
7794 quotes around bug url.
7795
7796 2020-06-11 Keith Seitz <keiths@redhat.com>
7797
7798 PR gdb/21356
7799 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7800 Resolve typedefs for type length calculations.
7801
7802 2020-06-10 Tom de Vries <tdevries@suse.de>
7803
7804 PR ada/24713
7805 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7806 (write_psymbols): Enable .gdb_index for ada.
7807 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7808 ada.
7809
7810 2020-06-10 Tom de Vries <tdevries@suse.de>
7811
7812 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7813 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7814 namei" instead of "const char *name" argument.
7815 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7816 dw2_symtab_iter_init.
7817
7818 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7821 to use type::field and field::type instead.
7822
7823 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7826 to use field::type instead.
7827
7828 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * gdbtypes.h (struct field) <type, set_type>: New methods.
7831 Rename `type` field to...
7832 <m_type>: ... this. Change references throughout to use type or
7833 set_type methods.
7834 (FIELD_TYPE): Use field::type. Change call sites that modify
7835 the field's type to use field::set_type instead.
7836
7837 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7838
7839 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7840 to use type::index_type instead.
7841
7842 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7843
7844 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7845 methods.
7846 (TYPE_INDEX_TYPE): Use type::index_type.
7847 * gdbtypes.c (create_array_type_with_stride): Likewise.
7848
7849 2020-06-07 Tom Tromey <tom@tromey.com>
7850
7851 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7852 parameter.
7853 (generic_value_print): Update.
7854
7855 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 Revert commit 982a38f60b0.
7858 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7859
7860 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7863 avoid use after free.
7864
7865 2020-06-05 Tom de Vries <tdevries@suse.de>
7866
7867 * NEWS: Fix typos.
7868
7869 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7872 the per_bfd object.
7873 (dwarf2_read_debug_names): Likewise.
7874 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7875 object when re-using a per_bfd object with an index.
7876
7877 2020-06-03 Tom de Vries <tdevries@suse.de>
7878
7879 PR symtab/26046
7880 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7881 children for C++.
7882 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7883 DW_TAG_subprogram.
7884
7885 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * ada-lang.c (ada_language_data): Delete skip_trampoline
7888 initializer.
7889 * c-lang.c (c_language_data): Likewise.
7890 (cplus_language_data): Likewise.
7891 (cplus_language::skip_trampoline): New member function.
7892 (asm_language_data): Delete skip_trampoline initializer.
7893 (minimal_language_data): Likewise.
7894 * d-lang.c (d_language_data): Likewise.
7895 * f-lang.c (f_language_data): Likewise.
7896 * go-lang.c (go_language_data): Likewise.
7897 * language.c (unk_lang_trampoline): Delete function.
7898 (skip_language_trampoline): Update.
7899 (unknown_language_data): Delete skip_trampoline initializer.
7900 (auto_language_data): Likewise.
7901 * language.h (language_data): Delete skip_trampoline field.
7902 (language_defn::skip_trampoline): New function.
7903 * m2-lang.c (m2_language_data): Delete skip_trampoline
7904 initializer.
7905 * objc-lang.c (objc_skip_trampoline): Delete function, move
7906 implementation to objc_language::skip_trampoline.
7907 (objc_language_data): Delete skip_trampoline initializer.
7908 (objc_language::skip_trampoline): New member function with
7909 implementation from objc_skip_trampoline.
7910 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7911 initializer.
7912 * p-lang.c (pascal_language_data): Likewise.
7913 * rust-lang.c (rust_language_data): Likewise.
7914
7915 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7916
7917 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7918 (ada_language::demangle): New member function.
7919 * c-lang.c (c_language_data): Delete la_demangle initializer.
7920 (cplus_language_data): Delete la_demangle initializer.
7921 (cplus_language::demangle): New member function.
7922 (asm_language_data): Delete la_demangle initializer.
7923 (minimal_language_data): Delete la_demangle initializer.
7924 * d-lang.c (d_language_data): Delete la_demangle initializer.
7925 (d_language::demangle): New member function.
7926 * f-lang.c (f_language_data): Delete la_demangle initializer.
7927 (f_language::demangle): New member function.
7928 * go-lang.c (go_language_data): Delete la_demangle initializer.
7929 (go_language::demangle): New member function.
7930 * language.c (language_demangle): Update.
7931 (unk_lang_demangle): Delete.
7932 (unknown_language_data): Delete la_demangle initializer.
7933 (unknown_language::demangle): New member function.
7934 (auto_language_data): Delete la_demangle initializer.
7935 (auto_language::demangle): New member function.
7936 * language.h (language_data): Delete la_demangle field.
7937 (language_defn::demangle): New function.
7938 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7939 * objc-lang.c (objc_language_data): Delete la_demangle
7940 initializer.
7941 (objc_language::demangle): New member function.
7942 * opencl-lang.c (opencl_language_data): Delete la_demangle
7943 initializer.
7944 * p-lang.c (pascal_language_data): Likewise.
7945 * rust-lang.c (rust_language_data): Likewise.
7946 (rust_language::demangle): New member function.
7947
7948 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * ada-lang.c (ada_language_data): Delete la_print_type
7951 initializer.
7952 (ada_language::print_type): New member function.
7953 * c-lang.c (c_language_data): Delete la_print_type initializer.
7954 (c_language::print_type): New member function.
7955 (cplus_language_data): Delete la_print_type initializer.
7956 (cplus_language::print_type): New member function.
7957 (asm_language_data): Delete la_print_type initializer.
7958 (asm_language::print_type): New member function.
7959 (minimal_language_data): Delete la_print_type initializer.
7960 (minimal_language::print_type): New member function.
7961 * d-lang.c (d_language_data): Delete la_print_type initializer.
7962 (d_language::print_type): New member function.
7963 * f-lang.c (f_language_data): Delete la_print_type initializer.
7964 (f_language::print_type): New member function.
7965 * go-lang.c (go_language_data): Delete la_print_type initializer.
7966 (go_language::print_type): New member function.
7967 * language.c (unk_lang_print_type): Delete.
7968 (unknown_language_data): Delete la_print_type initializer.
7969 (unknown_language::print_type): New member function.
7970 (auto_language_data): Delete la_print_type initializer.
7971 (auto_language::print_type): New member function.
7972 * language.h (language_data): Delete la_print_type field.
7973 (language_defn::print_type): New function.
7974 (LA_PRINT_TYPE): Update.
7975 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7976 (m2_language::print_type): New member function.
7977 * objc-lang.c (objc_language_data): Delete la_print_type
7978 initializer.
7979 (objc_language::print_type): New member function.
7980 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7981 to opencl_language::print_type.
7982 (opencl_language_data): Delete la_print_type initializer.
7983 (opencl_language::print_type): New member function, implementation
7984 from opencl_print_type.
7985 * p-lang.c (pascal_language_data): Delete la_print_type
7986 initializer.
7987 (pascal_language::print_type): New member function.
7988 * rust-lang.c (rust_print_type): Delete, implementation moved to
7989 rust_language::print_type.
7990 (rust_language_data): Delete la_print_type initializer.
7991 (rust_language::print_type): New member function, implementation
7992 from rust_print_type.
7993
7994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7997 implementation moves to...
7998 (ada_language::sniff_from_mangled_name): ...here. Update return
7999 type.
8000 (ada_language_data): Delete la_sniff_from_mangled_name
8001 initializer.
8002 * c-lang.c (c_language_data): Likewise.
8003 (cplus_language_data): Likewise.
8004 (cplus_language::sniff_from_mangled_name): New member function,
8005 implementation taken from gdb_sniff_from_mangled_name.
8006 (asm_language_data): Delete la_sniff_from_mangled_name
8007 initializer.
8008 (minimal_language_data): Likewise.
8009 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8010 implementation moves to cplus_language::sniff_from_mangled_name.
8011 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8012 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8013 moves to...
8014 (d_language::sniff_from_mangled_name): ...here.
8015 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8016 * f-lang.c (f_language_data): Likewise.
8017 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8018 moves to...
8019 (go_language::sniff_from_mangled_name): ...here.
8020 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8021 * language.c (language_sniff_from_mangled_name): Delete.
8022 (unknown_language_data): Delete la_sniff_from_mangled_name
8023 initializer.
8024 (auto_language_data): Likewise.
8025 * language.h (language_data): Delete la_sniff_from_mangled_name
8026 field.
8027 (language_defn::sniff_from_mangled_name): New function.
8028 (language_sniff_from_mangled_name): Delete declaration.
8029 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8030 field.
8031 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8032 implementation moves to...
8033 (objc_language::sniff_from_mangled_name): ...here.
8034 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8035 * opencl-lang.c (opencl_language_data): Likewise.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8038 implementation moves to...
8039 (rust_language::sniff_from_mangled_name): ...here.
8040 (rust_language_data): Delete la_sniff_from_mangled_name
8041 initializer.
8042 * symtab.c (symbol_find_demangled_name): Call
8043 sniff_from_mangled_name member function.
8044
8045 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8048 initializer.
8049 * c-lang.c (c_language_data): Likewise.
8050 (cplus_language_data): Likewise.
8051 (cplus_language::search_name_hash): New member function.
8052 (asm_language_data): Delete la_search_name_hash initializer.
8053 (minimal_language_data): Likewise.
8054 * d-lang.c (d_language_data): Likewise.
8055 * dictionary.c (default_search_name_hash): Rename to...
8056 (language_defn::search_name_hash): ...this.
8057 * f-lang.c (f_language_data): Likewise.
8058 (f_language::search_name_hash): New member function.
8059 * go-lang.c (go_language_data): Delete la_search_name_hash
8060 initializer.
8061 * language.c (unknown_language_data): Likewise.
8062 (auto_language_data): Likewise.
8063 * language.h (struct language_data): Delete la_search_name_hash
8064 field.
8065 (language_defn::search_name_hash): Declare new member function.
8066 (default_search_name_hash): Delete declaration.
8067 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8068 initializer.
8069 * objc-lang.c (objc_language_data): Likewise.
8070 * opencl-lang.c (opencl_language_data): Likewise.
8071 * p-lang.c (pascal_language_data): Likewise.
8072 * rust-lang.c (rust_language_data): Likewise.
8073 * symtab.c (search_name_hash): Update call.
8074
8075 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8076
8077 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8078 initializer.
8079 * c-lang.c (class compile_instance): Declare.
8080 (c_language_data): Delete la_get_compile_instance initializer.
8081 (c_language::get_compile_instance): New member function.
8082 (cplus_language_data): Delete la_get_compile_instance initializer.
8083 (cplus_language::get_compile_instance): New member function.
8084 (asm_language_data): Delete la_get_compile_instance initializer.
8085 (minimal_language_data): Likewise.
8086 * c-lang.h (c_get_compile_context): Update comment.
8087 (cplus_get_compile_context): Update comment.
8088 * compile/compile.c (compile_to_object): Update calls, don't rely
8089 on function pointer being NULL.
8090 * d-lang.c (d_language_data): Delete la_get_compile_instance
8091 initializer.
8092 * f-lang.c (f_language_data): Likewise.
8093 * go-lang.c (go_language_data): Likewise.
8094 * language.c (unknown_language_data): Likewise.
8095 (auto_language_data): Likewise.
8096 * language.h (language_data): Delete la_get_compile_instance field.
8097 (language_defn::get_compile_instance): New member function.
8098 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8099 initializer.
8100 * objc-lang.c (objc_language_data): Likewise.
8101 * opencl-lang.c (opencl_language_data): Likewise.
8102 * p-lang.c (pascal_language_data): Likewise.
8103 * rust-lang.c (rust_language_data): Likewise.
8104
8105 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * ada-lang.c (ada_add_all_symbols): Update comment.
8108 (ada_iterate_over_symbols): Delete, move implementation to...
8109 (ada_language::iterate_over_symbols): ...here, a new member
8110 function, rewrite to use range based for loop.
8111 (ada_language_data): Delete la_iterate_over_symbols initializer.
8112 * c-lang.c (c_language_data): Likewise.
8113 (cplus_language_data): Likewise.
8114 (asm_language_data): Likewise.
8115 (minimal_language_data): Likewise.
8116 * d-lang.c (d_language_data): Likewise.
8117 * f-lang.c (f_language_data): Likewise.
8118 * go-lang.c (go_language_data): Likewise.
8119 * language.c (unknown_language_data): Likewise.
8120 (auto_language_data): Likewise.
8121 * language.h (language_data): Delete la_iterate_over_symbols field.
8122 (language_defn::iterate_over_symbols): New member function.
8123 (LA_ITERATE_OVER_SYMBOLS): Update.
8124 * linespec.c (iterate_over_all_matching_symtabs): Update.
8125 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8126 initializer.
8127 * objc-lang.c (objc_language_data): Likewise.
8128 * opencl-lang.c (opencl_language_data): Likewise.
8129 * p-lang.c (pascal_language_data): Likewise.
8130 * rust-lang.c (rust_language_data): Likewise.
8131
8132 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8133
8134 * ada-lang.c (ada_language_data): Delete
8135 la_lookup_transparent_type initializer.
8136 * c-lang.c (c_language_data): Likewise.
8137 (cplus_language_data): Likewise.
8138 (cplus_language::lookup_transparent_type): New member function.
8139 (asm_language_data): Delete la_lookup_transparent_type
8140 initializer.
8141 (minimal_language_data): Likewise.
8142 * d-lang.c (d_language_data): Likewise.
8143 * f-lang.c (f_language_data): Likewise.
8144 * go-lang.c (go_language_data): Likewise.
8145 * language.c (unknown_language_data): Likewise.
8146 (auto_language_data): Likewise.
8147 * language.h (struct language_data): Delete
8148 la_lookup_transparent_type field.
8149 (language_defn::lookup_transparent_type): New member function.
8150 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8151 initializer.
8152 * objc-lang.c (objc_language_data): Likewise.
8153 * opencl-lang.c (opencl_language_data): Likewise.
8154 * p-lang.c (pascal_language_data): Likewise.
8155 * rust-lang.c (rust_language_data): Likewise.
8156 * symtab.c (symbol_matches_domain): Update call.
8157
8158 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * ada-lang.c (ada_language_arch_info): Delete function, move
8161 implementation to...
8162 (ada_language::language_arch_info): ...here, a new member
8163 function.
8164 (ada_language_data): Delete la_language_arch_info.
8165 * c-lang.c (c_language_data): Likewise.
8166 (c_language::language_arch_info): New member function.
8167 (cplus_language_arch_info): Delete function, move
8168 implementation to...
8169 (cplus_language::language_arch_info): ...here, a new member
8170 function.
8171 (cplus_language_data): Delete la_language_arch_info.
8172 (asm_language_data): Likewise.
8173 (asm_language::language_arch_info): New member function.
8174 (minimal_language_data): Delete la_language_arch_info.
8175 (minimal_language::language_arch_info): New member function.
8176 * d-lang.c (d_language_arch_info): Delete function, move
8177 implementation to...
8178 (d_language::language_arch_info): ...here, a new member
8179 function.
8180 (d_language_data): Delete la_language_arch_info.
8181 * f-lang.c (f_language_arch_info): Delete function, move
8182 implementation to...
8183 (f_language::language_arch_info): ...here, a new member
8184 function.
8185 (f_language_data): Delete la_language_arch_info.
8186 * go-lang.c (go_language_arch_info): Delete function, move
8187 implementation to...
8188 (go_language::language_arch_info): ...here, a new member
8189 function.
8190 (go_language_data): Delete la_language_arch_info.
8191 * language.c (unknown_language_data): Likewise.
8192 (unknown_language::language_arch_info): New member function.
8193 (auto_language_data): Delete la_language_arch_info.
8194 (auto_language::language_arch_info): New member function.
8195 (language_gdbarch_post_init): Update call to
8196 la_language_arch_info.
8197 * language.h (language_data): Delete la_language_arch_info
8198 function pointer.
8199 (language_defn::language_arch_info): New function.
8200 * m2-lang.c (m2_language_arch_info): Delete function, move
8201 implementation to...
8202 (m2_language::language_arch_info): ...here, a new member
8203 function.
8204 (m2_language_data): Delete la_language_arch_info.
8205 * objc-lang.c (objc_language_arch_info): Delete function, move
8206 implementation to...
8207 (objc_language::language_arch_info): ...here, a new member
8208 function.
8209 (objc_language_data): Delete la_language_arch_info.
8210 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8211 implementation to...
8212 (opencl_language::language_arch_info): ...here, a new member
8213 function.
8214 (opencl_language_data): Delete la_language_arch_info.
8215 * p-lang.c (pascal_language_arch_info): Delete function, move
8216 implementation to...
8217 (pascal_language::language_arch_info): ...here, a new member
8218 function.
8219 (pascal_language_data): Delete la_language_arch_info.
8220 * rust-lang.c (rust_language_arch_info): Delete function, move
8221 implementation to...
8222 (rust_language::language_arch_info): ...here, a new member
8223 function.
8224 (rust_language_data): Delete la_language_arch_info.
8225
8226 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8227
8228 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8229 initializer.
8230 * c-lang.c (c_language_data): Likewise.
8231 (cplus_language_data): Likewise.
8232 (cplus_language::pass_by_reference_info): New method.
8233 (asm_language_data): Delete la_pass_by_reference initializer.
8234 (minimal_language_data): Likewise.
8235 * cp-abi.c (cp_pass_by_reference): Remove use of
8236 default_pass_by_reference.
8237 * d-lang.c (d_language_data): Likewise.
8238 * f-lang.c (f_language_data): Likewise.
8239 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8240 default_pass_by_reference.
8241 * go-lang.c (go_language_data): Likewise.
8242 * language.c (language_pass_by_reference): Update.
8243 (default_pass_by_reference): Delete.
8244 (unknown_language_data): Delete la_pass_by_reference
8245 initializer.
8246 (auto_language_data): Likewise.
8247 * language.h (struct language_data): Delete la_pass_by_reference
8248 field.
8249 (language_defn::pass_by_reference_info): New member function.
8250 (default_pass_by_reference): Delete declaration.
8251 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8252 initializer.
8253 * objc-lang.c (objc_language_data): Likewise.
8254 * opencl-lang.c (opencl_language_data): Likewise.
8255 * p-lang.c (pascal_language_data): Likewise.
8256 * rust-lang.c (rust_language_data): Likewise.
8257
8258 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8259
8260 * ada-lang.c (ada_read_var_value): Delete function, move
8261 implementation to...
8262 (ada_language::read_var_value): ...here.
8263 (ada_language_data): Delete la_read_var_value initializer.
8264 * c-lang.c (c_language_data): Likewise.
8265 (cplus_language_data): Likewise.
8266 (minimal_language_data): Likewise.
8267 * d-lang.c (d_language_data): Likewise.
8268 * f-lang.c (f_language_data): Likewise.
8269 * findvar.c (default_read_var_value): Rename to...
8270 (language_defn::read_var_value): ...this.
8271 * findvar.c (read_var_value): Update header comment, and change to
8272 call member function instead of function pointer.
8273 * go-lang.c (go_language_data): Likewise.
8274 * language.c (unknown_language_data): Delete la_read_var_value
8275 initializer.
8276 (auto_language_data): Likewise.
8277 * language.h (struct language_data): Delete la_read_var_value
8278 field.
8279 (language_defn::read_var_value): New member function.
8280 (default_read_var_value): Delete declaration.
8281 * m2-lang.c (m2_language_data): Delete la_read_var_value
8282 initializer.
8283 * objc-lang.c (objc_language_data): Likewise.
8284 * opencl-lang.c (opencl_language_data): Likewise.
8285 * p-lang.c (pascal_language_data): Likewise.
8286 * rust-lang.c (rust_language_data): Likewise.
8287 * value.h (default_read_var_value): Delete declaration.
8288
8289 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8290
8291 * ada-lang.c (ada_print_array_index): Delete function, move
8292 implementation to...
8293 (ada_language::print_array_index): ...here.
8294 (ada_language_data): Delete la_print_array_index initializer.
8295 * c-lang.c (c_language_data): Likewise.
8296 (cplus_language_data): Likewise.
8297 (minimal_language_data): Likewise.
8298 * d-lang.c (d_language_data): Likewise.
8299 * f-lang.c (f_language_data): Likewise.
8300 * go-lang.c (go_language_data): Likewise.
8301 * language.c (default_print_array_index): Delete function, move
8302 implementation to...
8303 (language_defn::print_array_index): ...here.
8304 (unknown_language_data): Delete la_print_array_index initializer.
8305 (auto_language_data): Likewise.
8306 * language.h (struct language_data): Delete la_print_array_index
8307 field.
8308 (language_defn::print_array_index): New member function.
8309 (LA_PRINT_ARRAY_INDEX): Update.
8310 (default_print_array_index): Delete declaration.
8311 * m2-lang.c (m2_language_data): Delete la_print_array_index
8312 initializer.
8313 * objc-lang.c (objc_language_data): Likewise.
8314 * opencl-lang.c (opencl_language_data): Likewise.
8315 * p-lang.c (pascal_language_data): Likewise.
8316 * rust-lang.c (rust_language_data): Likewise.
8317
8318 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8319
8320 * gdb/ada-lang.c (ada_language_defn): Convert to...
8321 (ada_language_data): ...this.
8322 (class ada_language): New class.
8323 (ada_language_defn): New static global.
8324 * gdb/c-lang.c (c_language_defn): Convert to...
8325 (c_language_data): ...this.
8326 (class c_language): New class.
8327 (c_language_defn): New static global.
8328 (cplus_language_defn): Convert to...
8329 (cplus_language_data): ...this.
8330 (class cplus_language): New class.
8331 (cplus_language_defn): New static global.
8332 (asm_language_defn): Convert to...
8333 (asm_language_data): ...this.
8334 (class asm_language): New class.
8335 (asm_language_defn): New static global.
8336 (minimal_language_defn): Convert to...
8337 (minimal_language_data): ...this.
8338 (class minimal_language): New class.
8339 (minimal_language_defn): New static global.
8340 * gdb/d-lang.c (d_language_defn): Convert to...
8341 (d_language_data): ...this.
8342 (class d_language): New class.
8343 (d_language_defn): New static global.
8344 * gdb/f-lang.c (f_language_defn): Convert to...
8345 (f_language_data): ...this.
8346 (class f_language): New class.
8347 (f_language_defn): New static global.
8348 * gdb/go-lang.c (go_language_defn): Convert to...
8349 (go_language_data): ...this.
8350 (class go_language): New class.
8351 (go_language_defn): New static global.
8352 * gdb/language.c (unknown_language_defn): Remove declaration.
8353 (current_language): Initialize to nullptr, real initialization is
8354 moved to _initialize_language.
8355 (languages): Delete global.
8356 (language_defn::languages): Define.
8357 (set_language_command): Use language_defn::languages.
8358 (set_language): Likewise.
8359 (range_error): Likewise.
8360 (language_enum): Likewise.
8361 (language_def): Likewise.
8362 (add_set_language_command): Use language_def::languages for the
8363 language list, and language_def to lookup language pointers.
8364 (skip_language_trampoline): Use language_defn::languages.
8365 (unknown_language_defn): Convert to...
8366 (unknown_language_data): ...this.
8367 (class unknown_language): New class.
8368 (unknown_language_defn): New static global.
8369 (auto_language_defn): Convert to...
8370 (auto_language_data): ...this.
8371 (class auto_language): New class.
8372 (auto_language_defn): New static global.
8373 (language_gdbarch_post_init): Use language_defn::languages.
8374 (_initialize_language): Initialize current_language.
8375 * gdb/language.h (struct language_defn): Rename to...
8376 (struct language_data): ...this.
8377 (struct language_defn): New.
8378 (auto_language_defn): Delete.
8379 (unknown_language_defn): Delete.
8380 (minimal_language_defn): Delete.
8381 (ada_language_defn): Delete.
8382 (asm_language_defn): Delete.
8383 (c_language_defn): Delete.
8384 (cplus_language_defn): Delete.
8385 (d_language_defn): Delete.
8386 (f_language_defn): Delete.
8387 (go_language_defn): Delete.
8388 (m2_language_defn): Delete.
8389 (objc_language_defn): Delete.
8390 (opencl_language_defn): Delete.
8391 (pascal_language_defn): Delete.
8392 (rust_language_defn): Delete.
8393 * gdb/m2-lang.c (m2_language_defn): Convert to...
8394 (m2_language_data): ...this.
8395 (class m2_language): New class.
8396 (m2_language_defn): New static global.
8397 * gdb/objc-lang.c (objc_language_defn): Convert to...
8398 (objc_language_data): ...this.
8399 (class objc_language): New class.
8400 (objc_language_defn): New static global.
8401 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8402 (opencl_language_data): ...this.
8403 (class opencl_language): New class.
8404 (opencl_language_defn): New static global.
8405 * gdb/p-lang.c (pascal_language_defn): Convert to...
8406 (pascal_language_data): ...this.
8407 (class pascal_language): New class.
8408 (pascal_language_defn): New static global.
8409 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8410 language pointer, update comment format.
8411 * gdb/rust-lang.c (rust_language_defn): Convert to...
8412 (rust_language_data): ...this.
8413 (class rust_language): New class.
8414 (rust_language_defn): New static global.
8415
8416 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8419 member variable.
8420 <m_stmt_at_address>: New member variable.
8421 (lnp_state_machine::record_line): Don't record some lines, update
8422 tracking of is_stmt at the same address.
8423 (lnp_state_machine::lnp_state_machine): Initialise new member
8424 variables.
8425
8426 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8427
8428 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8429 "-include gnu-nat-mig.h".
8430 * gnu-nat-mig.h: New file.
8431 * gnu-nat.c: Include "gnu-nat-mig.h".
8432 (exc_server, msg_reply_server, notify_server,
8433 process_reply_server): Remove declarations.
8434
8435 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8436
8437 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8438 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8439 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8440 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8441 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8442 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8443 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8444 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8445 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8446 to gnu_nat_target class.
8447 * gnu-nat.c: Likewise.
8448 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8449 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8450 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8451 object.
8452 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8453 instead of `gnu_target'.
8454
8455 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8456
8457 * i386-gnu-tdep.c: Include "gdbcore.h"
8458 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8459 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8460 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8461 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8462 i386_gnu_sigcontext_addr): New functions
8463 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8464 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8465 tdep.
8466
8467 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8468
8469 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8470 before fork_inferior call. Avoid calling it if target_is_pushed returns
8471 true.
8472
8473 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8474
8475 * gnu-nat.h (gnu_target): New variable declaration.
8476 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8477 gnu_target.
8478 * gnu-nat.c (gnu_target): New variable.
8479 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8480 add_thread_silent, and add_thread calls.
8481 (gnu_nat_target::create_inferior): Pass gnu_target to
8482 add_thread_silent, thread_change_ptid call.
8483 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8484 call.
8485
8486 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8487
8488 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8489 (gnu_nat_target::find_memory_regions): Remove unused
8490 `old_address' variable.
8491
8492 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8493
8494 * gnu-nat.c: Include "gdbarch.h".
8495
8496 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8497
8498 * reply_mig_hack.awk (Error return): Cast function through
8499 void *, to bypass compiler function call check.
8500
8501 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8502
8503 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8504 $(srcdir)/reply_mig_hack.awk.
8505
8506 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8507
8508 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8509
8510 2020-05-30 Jonny Grant <jg@jguk.org>
8511
8512 * configure.ac (ACX_BUGURL): change bug URL to https.
8513
8514 2020-05-30 Pedro Alves <palves@redhat.com>
8515
8516 * cp-support.c (replace_typedefs_template): New.
8517 (replace_typedefs_qualified_name): Handle
8518 DEMANGLE_COMPONENT_TEMPLATE.
8519
8520 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8523 dwarf2/index-cache.h, dwarf2/index-write.c,
8524 dwarf2/index-write.h, dwarf2/line-header.c,
8525 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8526 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8527 variables and fields from `dwarf2_per_objfile` to just
8528 `per_objfile` throughout.
8529
8530 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8531
8532 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8533 <push_dwarf_reg_entry_value>: Add comment.
8534
8535 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8536 Keith Seitz <keiths@redhat.com>
8537
8538 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8539 instead of PyEval_ReleaseLock.
8540 (class gdbpy_gil): Move to earlier in file.
8541 (finalize_python): Set gdb_python_initialized.
8542 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8543 when not initialized.
8544
8545 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8546
8547 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8548 <push_dwarf_reg_entry_value>: Remove assert. Override
8549 per_objfile with caller_per_objfile.
8550
8551 2020-05-28 Tom de Vries <tdevries@suse.de>
8552
8553 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8554 PR gold/15646 workaround to symbol kind "type".
8555
8556 2020-05-27 Tom Tromey <tromey@adacore.com>
8557
8558 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8559
8560 2020-05-27 Tom Tromey <tromey@adacore.com>
8561
8562 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8563 Use htab_find_with_hash.
8564 <add_abbrev>: Remove "abbrev_number" parameter.
8565 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8566 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8567 (hash_abbrev): Add comment.
8568 (abbrev_table::lookup_abbrev): Move to header file.
8569 (abbrev_table::read): Update.
8570
8571 2020-05-27 Tom Tromey <tromey@adacore.com>
8572
8573 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8574 method.
8575 <canonical_name>: New member.
8576 <raw_name>: Rename from "name".
8577 (partial_die_info): Initialize canonical_name.
8578 (scan_partial_symbols): Check raw_name.
8579 (partial_die_parent_scope, partial_die_full_name)
8580 (add_partial_symbol, add_partial_subprogram)
8581 (add_partial_enumeration, load_partial_dies): Use "name" method.
8582 (partial_die_info::name): New method.
8583 (partial_die_info::read, guess_partial_die_structure_name)
8584 (partial_die_info::fixup): Update.
8585
8586 2020-05-27 Tom Tromey <tromey@adacore.com>
8587
8588 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8589 <get_ref_die_offset>: Inline.
8590 <get_ref_die_offset_complaint>: New method.
8591 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8592 (attribute::get_ref_die_offset_complaint): Rename from
8593 get_ref_die_offset. Just issue complaint.
8594
8595 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8596
8597 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8598
8599 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8600
8601 * exec.c (exec_file_attach): Use errno value of first openp failure.
8602
8603 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8604
8605 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8606 Don't close thread handle.
8607
8608 2020-05-27 Tom Tromey <tom@tromey.com>
8609 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8612 shared_ptr.
8613 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8614 member.
8615 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8616 dwarf2_per_bfd_objfile_data_key>: New globals.
8617 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8618 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8619 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8620 shared.
8621 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8622 short-circuit when sharing.
8623 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8624 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8625
8626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8629 to...
8630 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8631 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8632
8633 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8636 build_name_components, find_name_components_bounds>:
8637 Add per_objfile parameter.
8638 (struct mapped_index) <symbol_name_at>: Likewise.
8639 (struct mapped_debug_names): Remove constructor.
8640 <dwarf2_per_objfile>: Remove field.
8641 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8642 (mapped_index_base::find_name_components_bounds,
8643 mapped_index_base::build_name_components,
8644 dw2_expand_symtabs_matching_symbol): Likewise.
8645 (class mock_mapped_index) <symbol_name_at>: Likewise.
8646 (check_match): Likewise.
8647 (check_find_bounds_finds): Likewise.
8648 (test_mapped_index_find_name_component_bounds): Update.
8649 (CHECK_MATCH): Update.
8650 (dw2_expand_symtabs_matching): Update.
8651 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8652 per_objfile parameter.
8653 <find_vec_in_debug_names>: Likewise.
8654 <m_per_objfile>: New field.
8655 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8656 parameter.
8657 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8658 (dw2_debug_names_iterator::next): Update.
8659 (dw2_debug_names_lookup_symbol): Update.
8660 (dw2_debug_names_expand_symtabs_for_function): Update.
8661 (dw2_debug_names_map_matching_symbols): Update.
8662 (dw2_debug_names_expand_symtabs_matching): Update.
8663 (dwarf2_read_debug_names): Update.
8664
8665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8668 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8669 move to dwarf2_per_objfile.
8670 <read_in_chain>: Remove.
8671 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8672 remove_all_cus, age_comp_units>: New methods.
8673 <m_dwarf2_cus>: New member.
8674 (struct dwarf2_per_cu_data) <cu>: Remove.
8675 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8676 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8677 moved to methods of dwarf2_per_objfile.
8678 (dwarf2_clear_marks): Remove.
8679 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8680 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8681 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8682 (dwarf2_per_objfile::remove_all_cus): New.
8683 (class free_cached_comp_units) <~free_cached_comp_units>:
8684 Update.
8685 (load_cu): Update.
8686 (dw2_do_instantiate_symtab): Adjust.
8687 (fill_in_sig_entry_from_dwo_entry): Adjust.
8688 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8689 (cutu_reader::cutu_reader): Likewise.
8690 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8691 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8692 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8693 and dwarf2_per_objfile::age_comp_units.
8694 (load_partial_comp_unit): Update.
8695 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8696 (process_queue): Likewise.
8697 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8698 backlink.
8699 (dwarf2_read_addr_index): Likewise.
8700 (follow_die_offset): Likewise.
8701 (dwarf2_fetch_die_loc_sect_off): Likewise.
8702 (dwarf2_fetch_constant_bytes): Likewise.
8703 (dwarf2_fetch_die_type_sect_off): Likewise.
8704 (follow_die_sig_1): Likewise.
8705 (load_full_type_unit): Likewise.
8706 (read_signatured_type): Likewise.
8707 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8708 (dwarf2_cu::~dwarf2_cu): Remove.
8709 (dwarf2_per_objfile::get_cu): New.
8710 (dwarf2_per_objfile::set_cu): New.
8711 (age_cached_comp_units): Rename to...
8712 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8713 to std::unordered_map.
8714 (free_one_cached_comp_unit): Rename to...
8715 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8716 to std::unordered_map.
8717 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8718 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8719 a dwarf2_per_objfile in data.
8720 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8721 (dwarf2_clear_marks): Remove.
8722
8723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8726 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8727 (init_tu_and_read_dwo_dies): Likewise.
8728 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8729 (cutu_reader::cutu_reader): Likewise.
8730 (load_partial_comp_unit): Likewise.
8731 (process_psymtab_comp_unit): Update.
8732 (build_type_psymtabs_1): Update.
8733 (process_skeletonless_type_unit): Update.
8734 (load_full_comp_unit): Update.
8735 (find_partial_die): Update.
8736 (dwarf2_read_addr_index): Update.
8737 (read_signatured_type): Update.
8738
8739 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8740
8741 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8742 m_header_read_in>: New fields.
8743 <get_header>: New method.
8744 * dwarf2/read.c (per_cu_header_read_in): Remove.
8745 (dwarf2_per_cu_data::get_header): New.
8746 (dwarf2_per_cu_data::addr_size): Update.
8747 (dwarf2_per_cu_data::offset_size): Update.
8748 (dwarf2_per_cu_data::ref_addr_size): Update.
8749
8750 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8751
8752 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8753 (dw2_do_instantiate_symtab): Update.
8754 (queue_and_load_all_dwo_tus): Change parameter from
8755 dwarf2_per_cu_data to dwarf2_cu.
8756 (dwarf2_fetch_die_loc_sect_off): Update.
8757 (dwarf2_fetch_constant_bytes): Update.
8758 (dwarf2_fetch_die_type_sect_off): Update.
8759
8760 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8761
8762 * dwarf2/read.c (process_full_comp_unit,
8763 process_full_type_unit): Remove per_cu, per_objfile paramters.
8764 Add dwarf2_cu parameter.
8765 (process_queue): Update.
8766
8767 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * dwarf2/read.c (create_cu_from_index_list): Replace
8770 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8771 (create_cus_from_index_list): Likewise.
8772 (create_cus_from_index): Likewise.
8773 (create_signatured_type_table_from_index): Likewise.
8774 (create_cus_from_debug_names_list): Likewise.
8775 (create_cus_from_debug_names): Likewise.
8776 (dwarf2_read_gdb_index): Update.
8777 (dwarf2_read_debug_names): Update.
8778
8779 2020-05-27 Tom Tromey <tom@tromey.com>
8780 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * dwarf2/read.h (struct dwarf2_per_objfile)
8783 <get_type_for_signatured_type, set_type_for_signatured_type>:
8784 New methods.
8785 <m_type_map>: New member.
8786 (struct signatured_type) <type>: Remove.
8787 * dwarf2/read.c
8788 (dwarf2_per_objfile::get_type_for_signatured_type,
8789 dwarf2_per_objfile::set_type_for_signatured_type): New.
8790 (get_signatured_type): Use new methods.
8791
8792 2020-05-27 Tom Tromey <tom@tromey.com>
8793 Simon Marchi <simon.marchi@efficios.com>
8794
8795 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8796 (struct dwarf2_per_objfile) <type_units>: New member.
8797 <get_type_unit_group_unshareable>: New method.
8798 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8799 num_symtabs, symtabs>: Remove; move to
8800 type_unit_group_unshareable.
8801 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8802 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8803 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8804
8805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.h (struct dwarf2_per_cu_data):
8808 <dwarf2_per_objfile>: Remove.
8809 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8810 dwarf2_per_objfile.
8811 (create_signatured_type_table_from_index): Likewise.
8812 (create_signatured_type_table_from_debug_names): Likewise.
8813 (create_debug_type_hash_table): Likewise.
8814 (fill_in_sig_entry_from_dwo_entry): Likewise.
8815 (create_type_unit_group): Likewise.
8816 (read_comp_units_from_section): Likewise.
8817 (create_cus_hash_table): Likewise.
8818
8819 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8822 dwarf2_per_cu_data::dwarf2_per_objfile.
8823 (compute_compunit_symtab_includes): Likewise.
8824 (dwarf2_cu::start_symtab): Likewise.
8825
8826 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8829 parameter.
8830 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8831 (read_namespace_alias): Update.
8832 (lookup_die_type): Update.
8833 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8834 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8835 Update.
8836 (disassemble_dwarf_expression): Update.
8837
8838 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * dwarf2/read.h (struct dwarf2_queue_item): Add
8841 dwarf2_per_objfile parameter, assign new parameter.
8842 <per_objfile>: New field.
8843 * dwarf2/read.c (free_one_cached_comp_unit): Add
8844 dwarf2_per_objfile parameter.
8845 (queue_comp_unit): Likewise.
8846 (dw2_do_instantiate_symtab): Update.
8847 (process_psymtab_comp_unit): Update.
8848 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8849 (process_imported_unit_die): Update.
8850 (queue_and_load_dwo_tu): Update.
8851 (follow_die_offset): Update.
8852 (follow_die_sig_1): Update.
8853
8854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8855
8856 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8857 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8858 (read_call_site_scope): Assign per_objfile.
8859 (dwarf2_per_cu_data::objfile): Remove.
8860 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8861 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8862 dwarf2_per_objfile parameter.
8863 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8864 dwarf2_per_objfile parameter.
8865 (dwarf_expr_reg_to_entry_parameter): Add output
8866 dwarf2_per_objfile parameter.
8867 (locexpr_get_frame_base): Update.
8868 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8869 <push_dwarf_reg_entry_value>: Update.
8870 <call_site_to_target_addr>: Update.
8871 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8872 parameter.
8873 (value_of_dwarf_reg_entry): Update.
8874 (rw_pieced_value): Update.
8875 (indirect_synthetic_pointer): Update.
8876 (dwarf2_evaluate_property): Update.
8877 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8878 parameter.
8879 (locexpr_read_variable): Update.
8880 (locexpr_get_symbol_read_needs): Update.
8881 (loclist_read_variable): Update.
8882
8883 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8884
8885 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8886 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8887 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8888 parameter.
8889 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8890 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8891 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8892 parameter.
8893 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8894 sect_variable_value): Add dwarf2_per_objfile parameter.
8895 (class dwarf_evaluate_loc_desc) <dwarf_call,
8896 dwarf_variable_value>: Update.
8897 (fetch_const_value_from_synthetic_pointer): Add
8898 dwarf2_per_objfile parameter.
8899 (fetch_const_value_from_synthetic_pointer): Update.
8900 (coerced_pieced_ref): Update.
8901 (class symbol_needs_eval_context) <dwarf_call,
8902 dwarf_variable_value>: Update.
8903 (dwarf2_compile_expr_to_ax): Update.
8904
8905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8908 parameter.
8909 (dwarf2_evaluate_loc_desc_full): Update.
8910
8911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8914 parameter.
8915 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8916 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8917 dwarf2_per_objfile parameter.
8918 (decode_debug_loc_dwo_addresses): Likewise.
8919 (dwarf2_find_location_expression): Update.
8920 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8921 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8922 parameter.
8923 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8924 parameter.
8925 (locexpr_describe_location_1): Likewise.
8926 (locexpr_describe_location): Update.
8927
8928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8931 Remove.
8932 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8933 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8934 (dwarf2_compile_property_to_c): Update.
8935 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8936 use text offset from objfile.
8937 (locexpr_tracepoint_var_ref): Update.
8938 (locexpr_generate_c_location): Update.
8939 (loclist_describe_location): Update.
8940 (loclist_tracepoint_var_ref): Update.
8941 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8942 dwarf2_per_objfile parameter.
8943 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8944 use text offset from objfile.
8945 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8946
8947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * dwarf2/expr.h (struct dwarf_expr_context)
8950 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8951 <offset>: Remove.
8952 <per_objfile>: New member.
8953 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8954 dwarf2_per_objfile parameter. Don't set offset, set
8955 per_objfile.
8956 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8957 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8958 a dwarf2_per_objfile object instead of an offset.
8959 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8960 constructor.
8961 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8962 to dwarf2_expr_executor constructor. Don't set offset.
8963 (dwarf2_fetch_cfa_info): Update.
8964 (struct dwarf2_frame_cache) <text_offset>: Remove.
8965 <per_objfile>: New field.
8966 (dwarf2_frame_cache): Update.
8967 (dwarf2_frame_prev_register): Update.
8968 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8969 <dwarf_evaluate_loc_desc>: Add constructor.
8970 (dwarf2_evaluate_loc_desc_full): Update.
8971 (dwarf2_locexpr_baton_eval): Update.
8972 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8973 Add constructor.
8974 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8975
8976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8979 addr_sized_int_type>: Move to dwarf2_cu.
8980 <int_type>: Move to dwarf2_per_objfile.
8981 (struct dwarf2_per_objfile) <int_type>: Move here.
8982 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8983 addr_sized_int_type>: Move here.
8984 (read_func_scope): Update.
8985 (read_array_type): Update.
8986 (read_tag_string_type): Update.
8987 (attr_to_dynamic_prop): Update.
8988 (dwarf2_per_cu_data::int_type): Rename to...
8989 (dwarf2_per_objfile::int_type): ... this.
8990 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8991 (dwarf2_cu::addr_sized_int_type): ... this.
8992 (read_subrange_type): Update.
8993 (dwarf2_per_cu_data::addr_type): Rename to...
8994 (dwarf2_cu::addr_type): ... this.
8995 (set_die_type): Update.
8996
8997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9000 data through per_cu->cu.
9001
9002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9005 dwarf2_per_cu_data parameter fo dwarf2_cu.
9006 (lookup_dwo_type_unit): Likewise.
9007 (read_cutu_die_from_dwo): Likewise.
9008 (lookup_dwo_unit): Likewise.
9009 (open_and_init_dwo_file): Likewise.
9010 (lookup_dwo_cutu): Likewise.
9011 (lookup_dwo_comp_unit): Likewise.
9012 (lookup_dwo_type_unit): Likewise.
9013 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9014 (cutu_reader::cutu_reader): Update.
9015
9016 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9019 parameter.
9020 (process_full_type_unit): Likewise.
9021 (process_queue): Update.
9022
9023 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9024
9025 * dwarf2/read.c (recursively_compute_inclusions): Add
9026 dwarf2_per_objfile parameter.
9027 (compute_compunit_symtab_includes): Likewise.
9028 (process_cu_includes): Update.
9029
9030 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9033 parameter.
9034 (create_type_unit_group): Update.
9035 (process_psymtab_comp_unit_reader): Update.
9036 (build_type_psymtabs_reader): Update.
9037
9038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9041 object through m_this_cu->cu.
9042
9043 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9044
9045 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9046 the info parameter.
9047 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9048
9049 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9052 per_objfile parameter.
9053 (load_full_type_unit): Add per_objfile parameter.
9054 (read_signatured_type): Likewise.
9055 (load_full_comp_unit): Likewise.
9056 (load_cu): Likewise.
9057 (dw2_do_instantiate_symtab): Likewise.
9058 (dw2_get_file_names): Likewise.
9059 (dw2_map_symtabs_matching_filename): Update.
9060 (dw_expand_symtabs_matching_file_matcher): Update.
9061 (dw2_map_symbol_filenames): Update.
9062 (process_psymtab_comp_unit): Add per_objfile parameter.
9063 (build_type_psymtabs_1): Update.
9064 (process_skeletonless_type_unit): Update.
9065 (dwarf2_build_psymtabs_hard): Update.
9066 (load_partial_comp_unit): Add per_objfile parameter.
9067 (scan_partial_symbols): Update.
9068 (load_full_comp_unit): Add per_objfile parameter.
9069 (process_imported_unit_die): Update.
9070 (create_cus_hash_table): Update.
9071 (find_partial_die): Update.
9072 (dwarf2_read_addr_index): Update.
9073 (follow_die_offset): Update.
9074 (dwarf2_fetch_die_loc_sect_off): Update.
9075 (dwarf2_fetch_constant_bytes): Update.
9076 (dwarf2_fetch_die_type_sect_off): Update.
9077 (follow_die_sig_1): Update.
9078 (load_full_type_unit): Add per_objfile parameter.
9079 (read_signatured_type): Likewise.
9080
9081 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9084 of objfile_name.
9085
9086 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9087
9088 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9089 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9090 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9091 field.
9092 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9093 (create_cus_from_index): Update.
9094 (dwarf2_read_gdb_index): Update.
9095 (create_cus_from_debug_names): Update.
9096 (dwarf2_read_debug_names): Update.
9097 (get_abbrev_section_for_cu): Update.
9098 (create_all_comp_units): Update.
9099 (read_attribute_value): Update.
9100 (get_debug_line_section): Update.
9101 * dwarf2/index-cache.c (index_cache::store): Update.
9102 * dwarf2/index-write.c (save_gdb_index_command): Update.
9103 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9104
9105 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9106
9107 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9108 member.
9109 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9110 dwarf2_per_cu_data::per_bfd.
9111 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9112 (create_type_unit_group): Likewise.
9113 (queue_comp_unit): Remove reference to
9114 per_cu->dwarf2_per_objfile.
9115 (maybe_queue_comp_unit): Likewise.
9116 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9117 (create_cus_hash_table): Assign new field.
9118
9119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * dwarf2/read.c: Replace
9122 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9123 dwarf2_cu->per_objfile throughout.
9124
9125 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9128 parameter, don't use per_cu->dwarf2_per_objfile.
9129 (dw2_instantiate_symtab): Likewise.
9130 (dw2_find_last_source_symtab): Update.
9131 (dw2_map_expand_apply): Update.
9132 (dw2_lookup_symbol): Update.
9133 (dw2_expand_symtabs_for_function): Update.
9134 (dw2_expand_all_symtabs): Update.
9135 (dw2_expand_symtabs_with_fullname): Update.
9136 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9137 don't use per_cu->dwarf2_per_objfile.
9138 (dw2_expand_marked_cus): Update.
9139 (dw2_find_pc_sect_compunit_symtab): Update.
9140 (dw2_debug_names_lookup_symbol): Update.
9141 (dw2_debug_names_expand_symtabs_for_function): Update.
9142 (dw2_debug_names_map_matching_symbols): Update.
9143 (dwarf2_psymtab::expand_psymtab): Update.
9144
9145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9148 <per_objfile>: New member.
9149 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9150 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9151 call to dwarf2_cu.
9152 (cutu_reader::cutu_reader): Update.
9153 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9154
9155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9158 struct dwarf2_per_objfile.
9159 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9160 dwarf2_per_bfd.
9161 * dwarf2/read.c (set_die_type): Update.
9162 (get_die_type_at_offset): Update.
9163
9164 2020-05-27 Tom Tromey <tom@tromey.com>
9165 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9168 method.
9169 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9170 get_symtab, set_symtab>: New methods.
9171 <m_symtabs>: New field.
9172 (struct dwarf2_psymtab): Derive from partial_symtab.
9173 <readin_p, get_compunit_symtab>: Declare methods.
9174 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9175 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9176 New methods.
9177 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9178 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9179 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9180 (dw2_symtab_iter_next, dw2_print_stats)
9181 (dw2_expand_symtabs_with_fullname)
9182 (dw2_expand_symtabs_matching_one)
9183 (dw_expand_symtabs_matching_file_matcher)
9184 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9185 (dw2_debug_names_iterator::next)
9186 (dw2_debug_names_map_matching_symbols)
9187 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9188 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9189 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9190 New methods.
9191 (get_compunit_symtab, process_full_comp_unit)
9192 (process_full_type_unit): Update.
9193 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9194
9195 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9196
9197 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9198 then introduce a new dwarf2_per_objfile type.
9199 <read_line_string>: Move to the new dwarf2_per_objfile type.
9200 <objfile>: Likewise.
9201 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9202 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9203 dwarf2_per_objfile->per_bfd.
9204 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9205 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9206 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9207 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9208 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9209 (dwarf2_per_objfile::locate_sections): Rename to...
9210 (dwarf2_per_bfd::locate_sections): ... this.
9211 (dwarf2_per_objfile::get_cutu): Rename to...
9212 (dwarf2_per_bfd::get_cutu): ... this.
9213 (dwarf2_per_objfile::get_cu): Rename to...
9214 (dwarf2_per_bfd::get_cu): ... this.
9215 (dwarf2_per_objfile::get_tu): Rename to...
9216 (dwarf2_per_bfd::get_tu): ... this.
9217 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9218 (dwarf2_per_bfd::allocate_per_cu): ... this.
9219 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9220 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9221 (get_gdb_index_contents_ftype): Change parameter from
9222 dwarf2_per_objfile to dwarf2_per_bfd.
9223 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9224 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9225
9226 2020-05-27 Tom Tromey <tom@tromey.com>
9227 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9230 (allocate_piece_closure): Set "per_objfile" member.
9231 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9232 (locexpr_describe_location, loclist_describe_location): Use new
9233 member.
9234 * dwarf2/read.c (read_call_site_scope)
9235 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9236 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9237 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9238 handle_data_member_location): Set per_objfile member.
9239 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9240 member.
9241 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9242
9243 2020-05-27 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9246 allocate_signatured_type>: Declare new methods.
9247 <m_num_psymtabs>: New member.
9248 (struct dwarf2_per_cu_data) <index>: New member.
9249 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9250 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9251 (create_cu_from_index_list): Use allocate_per_cu.
9252 (create_signatured_type_table_from_index)
9253 (create_signatured_type_table_from_debug_names)
9254 (create_debug_type_hash_table, add_type_unit)
9255 (read_comp_units_from_section): Use allocate_signatured_type.
9256
9257 2020-05-27 Tom Tromey <tom@tromey.com>
9258
9259 * psymtab.c (partial_map_expand_apply)
9260 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9261 (psym_lookup_global_symbol_language)
9262 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9263 (psym_print_stats, psym_expand_symtabs_for_function)
9264 (psym_map_symbol_filenames, psym_map_matching_symbols)
9265 (psym_expand_symtabs_matching)
9266 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9267 (maintenance_check_psymtabs): Update.
9268 * psympriv.h (struct partial_symtab) <readin_p,
9269 get_compunit_symtab>: Add objfile parameter.
9270 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9271 Likewise.
9272 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9273 get_compunit_symtab>: Likewise.
9274 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9275
9276 2020-05-27 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9279 member.
9280 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9281 (create_cu_from_index_list)
9282 (create_signatured_type_table_from_index)
9283 (create_signatured_type_table_from_debug_names)
9284 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9285 (dwarf2_create_include_psymtab)
9286 (create_debug_type_hash_table, add_type_unit)
9287 (create_type_unit_group, read_comp_units_from_section)
9288 (dwarf2_compute_name, create_cus_hash_table)
9289 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9290 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9291 obstack.
9292 (dw2_get_real_path): Likewise. Change argument to
9293 dwarf2_per_objfile.
9294
9295 2020-05-27 Luis Machado <luis.machado@linaro.org>
9296
9297 PR tdep/26000
9298 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9299 for ldrd (immediate).
9300
9301 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9302
9303 * command.h: Add comment giving the name of class_tui.
9304 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9305 create the fake command for the help for class_tui.
9306
9307 2020-05-26 Tom Tromey <tromey@adacore.com>
9308
9309 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9310 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9311 (val_atr): New function.
9312 (value_val_atr): Use it.
9313 * ada-valprint.c (print_optional_low_bound): Change low bound
9314 handling for enums.
9315 (val_print_packed_array_elements): Don't call discrete_position.
9316 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9317 discrete_position for enum types.
9318 * language.c (default_print_array_index): Change type.
9319 * language.h (struct language_defn) <la_print_array_index>: Add
9320 index_type parameter, change type of index_value.
9321 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9322 (default_print_array_index): Update.
9323 * valprint.c (maybe_print_array_index): Don't call
9324 value_from_longest. Update.
9325 (value_print_array_elements): Don't call discrete_position.
9326
9327 2020-05-26 Tom Tromey <tromey@adacore.com>
9328
9329 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9330 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9331
9332 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9333
9334 PR gdb/13519
9335 * avr-tdep.c (avr_integer_to_address): Return data or code
9336 address accordingly to the second 'type' argument of the
9337 function.
9338
9339 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9340
9341 * infcmd.c, inferior.h: (construct_inferior_arguments):
9342 Moved function from here to gdbsupport/common-inferior.{h,cc}
9343
9344 2020-05-23 Tom Tromey <tom@tromey.com>
9345
9346 Revert commit eca1f90c:
9347 * NEWS: Remove entry for completion styling.
9348 * completer.c (_rl_completion_prefix_display_length): Move
9349 declaration later.
9350 (gdb_fnprint): Revert.
9351 (gdb_display_match_list_1): Likewise.
9352 * cli/cli-style.c (completion_prefix_style)
9353 (completion_difference_style, completion_suffix_style): Remove.
9354 (_initialize_cli_style): Revert.
9355 * cli/cli-style.h (completion_prefix_style)
9356 (completion_difference_style, completion_suffix_style): Don't
9357 declare.
9358
9359 2020-05-24 Pedro Alves <palves@redhat.com>
9360
9361 * symtab.c (completion_list_add_name): Return boolean indication
9362 of whether the symbol matched.
9363 (completion_list_add_symbol): Don't try to remove C++ aliases if
9364 the symbol didn't match in the first place.
9365 * symtab.h (completion_list_add_name): Return bool.
9366
9367 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9370 type::field.
9371
9372 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9373
9374 GDB 9.2 released.
9375
9376 2020-05-23 Tom Tromey <tom@tromey.com>
9377
9378 * NEWS: Add entry for completion styling.
9379 * completer.c (_rl_completion_prefix_display_length): Move
9380 declaration earlier.
9381 (gdb_fnprint): Use completion_style.
9382 (gdb_display_match_list_1): Likewise.
9383 * cli/cli-style.c (completion_prefix_style)
9384 (completion_difference_style, completion_suffix_style): New
9385 globals.
9386 (_initialize_cli_style): Register new globals.
9387 * cli/cli-style.h (completion_prefix_style)
9388 (completion_difference_style, completion_suffix_style): Declare.
9389
9390 2020-05-23 Pedro Alves <palves@redhat.com>
9391
9392 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9393 (parse_escape): Use ISDIGIT instead of isdigit.
9394 (puts_debug): Use gdb_isprint instead of isprint.
9395 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9396 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9397 ISSPACE instead of isspace.
9398 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9399 instead of isspace.
9400 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9401 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9402 instead of isxdigit and ISDIGIT instead of isdigit.
9403
9404 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * gdbtypes.h (struct type) <field>: New method.
9407 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9408 or type::field.
9409
9410 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9413 (TYPE_FIELDS): Use type::fields. Change all call sites that
9414 modify the propery to use type::set_fields instead.
9415
9416 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9419 type::num_fields instead.
9420
9421 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9424 methods.
9425 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9426 that modify the number of fields to use type::set_num_fields
9427 instead.
9428
9429 2020-05-22 Tom Tromey <tromey@adacore.com>
9430
9431 * compile/compile-object-load.h (munmap_list_free): Don't
9432 declare.
9433
9434 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9435
9436 * annotate.c (annotate_source_line): Update return type, add call
9437 to update current symtab and line.
9438 * annotate.h (annotate_source_line): Update return type, and
9439 extend header comment.
9440 * source.c (info_line_command): Check annotation_level before
9441 calling annotate_source_line.
9442 * stack.c (print_frame_info): If calling annotate_source_line
9443 returns true, then don't print any other source line information.
9444
9445 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9448
9449 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9450
9451 * coffread.c (patch_type): Remove NULL check before xfree.
9452 * corefile.c (set_gnutarget): Likewise.
9453 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9454 * exec.c (build_section_table): Likewise.
9455 * remote.c (remote_target::pass_signals): Likewise.
9456 * utils.c (n_spaces): Likewise.
9457 * cli/cli-script.c (document_command): Likewise.
9458 * i386-windows-tdep.c (core_process_module_section): Likewise.
9459 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9460
9461 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * symfile.c (reread_symbols): Clear objfile's section_offsets
9464 vector and section indices, re-compute them by calling
9465 sym_offsets.
9466
9467 2020-05-20 Tom Tromey <tromey@adacore.com>
9468
9469 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9470 (desc_one_bound, desc_index_type): Compute field name.
9471
9472 2020-05-20 Tom de Vries <tdevries@suse.de>
9473
9474 PR symtab/25833
9475 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9476
9477 2020-05-20 Alan Modra <amodra@gmail.com>
9478
9479 PR 25993
9480 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9481 bfd_set_filename.
9482 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9483 passed to bfd_set_filename.
9484 * symfile-mem.c (add_vsyscall_page): Likewise for string
9485 passed to symbol_file_add_from_memory.
9486 (symbol_file_add_from_memory): Make name param a const char* and
9487 don't strdup.
9488
9489 2020-05-20 Alan Modra <amodra@gmail.com>
9490
9491 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9492 rather than accessing bfd->filename directly.
9493 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9494 and use bfd_section_name.
9495 * dwarf2/frame.c (decode_frame_entry): Likewise.
9496 * exec.c (exec_set_section_address): Likewise.
9497 * solib-aix.c (solib_aix_bfd_open): Likewise.
9498 * stap-probe.c (get_stap_base_address): Likewise.
9499 * symfile.c (reread_symbols): Likewise.
9500
9501 2020-05-19 Tom Tromey <tromey@adacore.com>
9502
9503 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9504
9505 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9508
9509 2020-05-19 Pedro Alves <palves@redhat.com>
9510
9511 * NEWS (set exec-file-mismatch): Adjust entry.
9512 * exec.c: Include "build-id.h".
9513 (validate_exec_file): Try to match build IDs instead of filenames.
9514 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9515 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9516 and pass down 'warn_if_slow'.
9517 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9518 gdb_bfd_open_closure to pass it down.
9519 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9520
9521 2020-05-19 Pedro Alves <palves@redhat.com>
9522
9523 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9524 * target.c (target_fileio_open_1): Rename to target_fileio_open
9525 and make extern. Use bool.
9526 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9527 (target_fileio_read_alloc_1): Adjust.
9528 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9529 (target_fileio_open_warn_if_slow): Delete declaration.
9530
9531 2020-05-19 Pedro Alves <palves@redhat.com>
9532
9533 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9534 Adjust all callers.
9535
9536 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9537
9538 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9539 whether disp is negative.
9540
9541 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * symfile.h (struct symfile_segment_data)
9544 <~symfile_segment_data>: Remove.
9545 <segment_info>: Change to std::vector.
9546 * symfile.c (default_symfile_segments): Update.
9547 * elfread.c (elf_symfile_segments): Update.
9548
9549 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9552 <segments>: New.
9553 <segment_bases, segment_sizes>: Remove.
9554 * symfile.c (default_symfile_segments): Update.
9555 * elfread.c (elf_symfile_segments): Update.
9556 * remote.c (remote_target::get_offsets): Update.
9557 * solib-target.c (solib_target_relocate_section_addresses):
9558 Update.
9559
9560 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * symfile.h (struct symfile_segment_data): Initialize fields.
9563 <~symfile_segment_data>: Add.
9564 (symfile_segment_data_up): New.
9565 (struct sym_fns) <sym_segments>: Return a
9566 symfile_segment_data_up.
9567 (default_symfile_segments): Return a symfile_segment_data_up.
9568 (free_symfile_segment_data): Remove.
9569 (get_symfile_segment_data): Return a symfile_segment_data_up.
9570 * symfile.c (default_symfile_segments): Likewise.
9571 (get_symfile_segment_data): Likewise.
9572 (free_symfile_segment_data): Remove.
9573 (symfile_find_segment_sections): Update.
9574 * elfread.c (elf_symfile_segments): Return a
9575 symfile_segment_data_up.
9576 * remote.c (remote_target::get_offsets): Update.
9577 * solib-target.c (solib_target_relocate_section_addresses):
9578 Update.
9579 * symfile-debug.c (debug_sym_segments): Return a
9580 symfile_segment_data_up.
9581
9582 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9583
9584 PR build/25981
9585 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9586 Hardcode register numbers.
9587
9588 PR build/25981
9589 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9590 procfs_find_LDT_entry): Remove.
9591 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9592 procfs_find_LDT_entry): Remove.
9593 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9594 Remove.
9595
9596 2020-05-17 Pedro Alves <palves@redhat.com>
9597 Andrew Burgess <andrew.burgess@embecosm.com>
9598 Keno Fischer <keno@juliacomputing.com>
9599
9600 PR gdb/25741
9601 * breakpoint.c (build_target_condition_list): Update comments.
9602 (build_target_command_list): Update comments and skip matching
9603 locations.
9604 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9605 a separate function. Simplify "set breakpoint auto-hw off"
9606 handling.
9607 (insert_breakpoints): Update comment.
9608 (tracepoint_locations_match): New parameter. For breakpoints,
9609 compare location types too, if the caller wants to.
9610 (handle_automatic_hardware_breakpoints): New functions.
9611 (bp_location_is_less_than): Also sort by location type and
9612 hardware breakpoint length.
9613 (update_global_location_list): Handle "set breakpoint auto-hw on"
9614 here.
9615 (update_breakpoint_locations): Ask breakpoint_locations_match to
9616 ignore location types.
9617
9618 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9621 type::name instead.
9622
9623 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * gdbtypes.h (struct type) <name, set_name>: New methods.
9626 (TYPE_CODE): Use type::name. Change all call sites used to set
9627 the name to use type::set_name instead.
9628
9629 2020-05-16 Tom Tromey <tom@tromey.com>
9630
9631 * top.c (quit_force): Update.
9632 * infrun.c (handle_no_resumed): Update.
9633 * top.h (all_uis): New function.
9634 (ALL_UIS): Remove.
9635
9636 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9639
9640 2020-05-16 Pedro Alves <palves@redhat.com>
9641
9642 * ia64-linux-nat.c
9643 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9644 Declare method.
9645 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9646
9647 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9650 (sparc64_adi_info): Likewise.
9651
9652 2020-05-15 Tom Tromey <tom@tromey.com>
9653
9654 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9655 block_objfile.
9656 (lookup_objfile_from_block): Remove.
9657 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9658 (lookup_global_symbol): Use block_objfile.
9659 * symtab.h (lookup_objfile_from_block): Don't declare.
9660 * printcmd.c (clear_dangling_display_expressions): Use
9661 block_objfile.
9662 * parse.c (operator_check_standard): Use block_objfile.
9663
9664 2020-05-15 Tom Tromey <tom@tromey.com>
9665
9666 * language.c (language_alloc_type_symbol): Set
9667 SYMBOL_SECTION.
9668 * symtab.c (initialize_objfile_symbol): Remove.
9669 (allocate_symbol): Remove.
9670 (allocate_template_symbol): Remove.
9671 * dwarf2/read.c (fixup_go_packaging): Use "new".
9672 (new_symbol): Use "new".
9673 (read_variable): Don't call initialize_objfile_symbol. Use
9674 "new".
9675 (read_func_scope): Use "new".
9676 * xcoffread.c (process_xcoff_symbol): Don't call
9677 initialize_objfile_symbol.
9678 (SYMBOL_DUP): Remove.
9679 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9680 "new".
9681 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9682 (allocate_template_symbol): Don't declare.
9683 (struct symbol): Add copy constructor. Change defaults.
9684 * jit.c (finalize_symtab): Use "new".
9685 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9686 Use "new".
9687 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9688 (common_block_end): Use "new".
9689 * mdebugread.c (parse_symbol): Use "new".
9690 (new_symbol): Likewise.
9691
9692 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9693
9694 * NEWS: Mention changes to help and apropos.
9695
9696 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9697
9698 * command.h (enum command_class): Improve comments, document
9699 that class_alias is for user-defined aliases, give the class
9700 name for each class, remove unused class_xdb.
9701 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9702 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9703 by a precise class.
9704 * infcmd.c (_initialize_infcmd): Likewise.
9705 * reverse.c (_initialize_reverse): Likewise.
9706 * stack.c (_initialize_stack): Likewise.
9707 * symfile.c (_initialize_symfile): Likewise.
9708 * tracepoint.c (_initialize_tracepoint): Likewise.
9709
9710 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9711
9712 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9713 when their aliased command is traversed.
9714 (help_cmd): Add fput_command_names_styled call to
9715 output command name and aliases when command has an alias.
9716
9717 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9718
9719 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9720 * cli/cli-decode.c (help_cmd_list): Declare as static,
9721 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9722 a command together with the command.
9723 (fput_command_name_styled, fput_command_names_styled): New functions.
9724 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9725 fput_command_name_styled.
9726 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9727 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9728
9729 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9730
9731 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9732 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9733 * command.h (cmd_show_list): Likewise.
9734 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9735 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9736
9737 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9738
9739 * unittests/command-def-selftests.c (traverse_command_structure):
9740 Verify all commands of a list have the same prefix command and
9741 that only the top cmdlist commands have a null prefix.
9742
9743 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9744
9745 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9746 as prefix, not one of its aliases.
9747 (set_cmd_prefix): Remove.
9748 (do_add_cmd): Centralize the setting of the prefix of a command, when
9749 command is defined after its full chain of prefix commands.
9750 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9751 (add_setshow_cmd_full): Likewise.
9752 (update_prefix_field_of_prefixed_commands): New function.
9753 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9754 update_prefix_field_of_prefixed_commands.
9755 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9756 addresses of remote_set_cmdlist and remote_show_cmdlist given
9757 as argument, not the address of an argument.
9758 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9759 * gdb/remote.c (_initialize_remote): Likewise.
9760
9761 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9762
9763 * cli/cli-cmds.c (alias_command): Check for an existing alias
9764 using lookup_cmd_composition, as valid_command_p is too strict
9765 and forbids aliases that are the prefix of an existing alias
9766 or command.
9767 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9768 command is properly recognised as a valid command.
9769
9770 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9771
9772 * unittests/help-doc-selftests.c: Rename to
9773 unittests/command-def-selftests.c
9774 * unittests/command-def-selftests.c (help_doc_tests): Update some
9775 comments.
9776 (command_structure_tests, traverse_command_structure): New namespace
9777 and function.
9778 (command_structure_invariants_tests): New function.
9779 (_initialize_command_def_selftests) Renamed from
9780 _initialize_help_doc_selftests, register command_structure_invariants
9781 selftest.
9782
9783 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9784
9785 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9786 an alias of 'show'.
9787
9788 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9789
9790 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9791 ada_is_fixed_point_type. Update all callers.
9792 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9793 all callers.
9794 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9795 Update all callers.
9796 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9797 print_fixed_point_type. Update all callers.
9798 * ada-valprint.c (ada_value_print_num): Replace call to
9799 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9800
9801 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9802
9803 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9804 processors.
9805 (cpu_supports_bts): Add CV_AMD case.
9806
9807 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9808 Simon Marchi <simon.marchi@efficios.com>
9809
9810 * infrun.c (stop_all_threads): Collect multiple wait events at
9811 each pass.
9812
9813 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9814
9815 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9816 type::code instead.
9817
9818 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * gdbtypes.h (struct type) <code, set_code>: New methods.
9821 (TYPE_CODE): Use type::code. Change all call sites used to set
9822 the code to use type::set_code instead.
9823
9824 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9825 Tom de Vries <tdevries@suse.de>
9826 Pedro Alves <palves@redhat.com>
9827
9828 PR threads/25478
9829 * infrun.c (stop_all_threads): Do NOT ignore
9830 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9831 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9832 received.
9833 (handle_no_resumed): Remove code handling a live inferior with no
9834 threads.
9835 * remote.c (has_single_non_exited_thread): New.
9836 (remote_target::update_thread_list): Do not delete a thread if is
9837 the last thread of the process.
9838 * thread.c (thread_select): Call delete_exited_threads instead of
9839 prune_threads.
9840
9841 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9842
9843 * infrun.c (stop_all_threads): Enable/disable thread events of all
9844 targets. Move a debug message denoting the end of the function
9845 into the SCOPED_EXIT block.
9846
9847 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9848
9849 * process-stratum-target.h: Include <set>.
9850 (all_non_exited_process_targets, switch_to_target_no_thread): New
9851 function declarations.
9852 * process-stratum-target.c (all_non_exited_process_targets)
9853 (switch_to_target_no_thread): New function implementations.
9854
9855 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9856
9857 * infrun.c (handle_inferior_event): Extract out a piece of code
9858 into...
9859 (mark_non_executing_threads): ...this new function.
9860
9861 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9862
9863 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9864 use.
9865
9866 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9867
9868 * regcache.c (regcache_read_pc_protected): New function
9869 implementation that returns 0 if the PC cannot read via
9870 'regcache_read_pc'.
9871 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9872 instead of 'regcache_read_pc'.
9873 (keep_going_pass_signal): Ditto.
9874
9875 2020-05-13 Tom Tromey <tromey@adacore.com>
9876
9877 * ada-lang.c (align_value): Remove.
9878 (ada_template_to_fixed_record_type_1): Use align_up.
9879
9880 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9881
9882 * async-event.c: Update the copyright year.
9883 * async-event.h: Update the copyright year.
9884
9885 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9886
9887 * objfiles.h (is_addr_in_objfile,
9888 shared_objfile_contains_address_p): Return bool.
9889 * objfile.c (is_addr_in_objfile,
9890 shared_objfile_contains_address_p): Return bool.
9891
9892 2020-05-11 Tom Tromey <tromey@adacore.com>
9893
9894 * cli/cli-cmds.c (info_command): Restore.
9895 (_initialize_cli_cmds): Use add_prefix_command for "info".
9896 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9897
9898 2020-05-11 Tom Tromey <tromey@adacore.com>
9899
9900 * ada-lang.c (ada_value_primitive_field): Now public.
9901 * ada-lang.h (ada_value_primitive_field): Declare.
9902 * ada-valprint.c (print_field_values): Use
9903 ada_value_primitive_field for wrapper fields.
9904
9905 2020-05-11 Tom de Vries <tdevries@suse.de>
9906
9907 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9908 MODULE_DOMAIN.
9909
9910 2020-05-11 Tom de Vries <tdevries@suse.de>
9911
9912 PR symtab/25941
9913 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9914 with length 0, if not gdb-produced.
9915 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9916
9917 2020-05-09 Tom de Vries <tdevries@suse.de>
9918
9919 PR gdb/25955
9920 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9921 calculation.
9922
9923 2020-05-09 Tom Tromey <tom@tromey.com>
9924
9925 * top.c (server_command): Now bool.
9926 * top.h (server_command): Now bool.
9927
9928 2020-05-08 Tom Tromey <tromey@adacore.com>
9929
9930 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9931 already being processed.
9932
9933 2020-05-08 Tom Tromey <tom@tromey.com>
9934
9935 * printcmd.c (struct display) <next>: Remove.
9936 <display>: New constructor.
9937 <exp_string>: Now a std::string.
9938 <enabled_p>: Now a bool.
9939 (display_number): Move definition earlier.
9940 (displays): Rename from display_chain. Now a std::vector.
9941 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9942 (display_command): Update.
9943 (do_one_display, disable_display)
9944 (enable_disable_display_command, do_enable_disable_display):
9945 Update.
9946 (free_display): Remove.
9947 (clear_displays): Rewrite.
9948 (delete_display): Update.
9949 (map_display_numbers): Use function_view. Remove "data"
9950 parameter. Update.
9951 (do_delete_display): Remove.
9952 (undisplay_command): Update.
9953 (do_one_display, do_displays, disable_display)
9954 (info_display_command): Update.
9955 (do_enable_disable_display): Remove.
9956 (enable_disable_display_command)
9957 (clear_dangling_display_expressions): Update.
9958
9959 2020-05-08 Tom Tromey <tom@tromey.com>
9960
9961 * symtab.c (set_symbol_cache_size)
9962 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9963 (maintenance_print_symbol_cache_statistics): Update.
9964 * symmisc.c (print_symbol_bcache_statistics)
9965 (print_objfile_statistics, maintenance_print_objfiles)
9966 (maintenance_info_symtabs, maintenance_check_symtabs)
9967 (maintenance_expand_symtabs, maintenance_info_line_tables):
9968 Update.
9969 * symfile-debug.c (set_debug_symfile): Update.
9970 * source.c (forget_cached_source_info): Update.
9971 * python/python.c (gdbpy_progspaces): Update.
9972 * psymtab.c (maintenance_info_psymtabs): Update.
9973 * probe.c (parse_probes): Update.
9974 * linespec.c (iterate_over_all_matching_symtabs)
9975 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9976 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9977 * exec.c (exec_target::close): Update.
9978 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9979 * breakpoint.c (print_one_breakpoint_location)
9980 (create_longjmp_master_breakpoint)
9981 (create_std_terminate_master_breakpoint): Update.
9982 * progspace.c (program_spaces): Now a std::vector.
9983 (maybe_new_address_space): Update.
9984 (add_program_space): Remove.
9985 (program_space::program_space): Update.
9986 (remove_program_space): Update.
9987 (number_of_program_spaces): Remove.
9988 (print_program_space, update_address_spaces): Update.
9989 * progspace.h (program_spaces): Change type.
9990 (ALL_PSPACES): Remove.
9991 (number_of_program_spaces): Don't declare.
9992 (struct program_space) <next>: Remove.
9993
9994 2020-05-08 Tom Tromey <tom@tromey.com>
9995
9996 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9997 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9998 (enable_break): Update.
9999 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10000 (frv_fdpic_find_canonical_descriptor): Update.
10001 (frv_fetch_objfile_link_map): Update.
10002 * progspace.c (program_space::free_all_objfiles): Update.
10003 (program_space::solibs): New method.
10004 * progspace.h (struct program_space) <solibs>: New method.
10005 * solist.h (master_so_list): Don't declare.
10006 (ALL_SO_LIBS): Remove.
10007 * solib.h (so_list_head): Remove.
10008 (update_solib_list): Update comment.
10009 * solib.c (master_so_list): Remove.
10010 (solib_used, update_solib_list, solib_add)
10011 (info_sharedlibrary_command, clear_solib)
10012 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10013
10014 2020-05-08 Tom Tromey <tom@tromey.com>
10015
10016 * extension.c (extension_languages): Now a std::array.
10017 (ALL_EXTENSION_LANGUAGES): Remove.
10018 (get_ext_lang_defn, get_ext_lang_of_file)
10019 (eval_ext_lang_from_control_command): Update.
10020 (finish_ext_lang_initialization)
10021 (auto_load_ext_lang_scripts_for_objfile)
10022 (ext_lang_type_printers::ext_lang_type_printers)
10023 (apply_ext_lang_type_printers)
10024 (ext_lang_type_printers::~ext_lang_type_printers)
10025 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10026 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10027 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10028 (get_matching_xmethod_workers, ext_lang_colorize)
10029 (ext_lang_before_prompt): Update.
10030 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10031
10032 2020-05-08 Tom Tromey <tom@tromey.com>
10033
10034 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10035 overload.
10036 <swap_string, m_string>: Remove.
10037 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10038 Update.
10039 * stabsread.c (define_symbol, read_type): Update.
10040 * linespec.c (find_linespec_symbols): Update.
10041 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10042 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10043 * dbxread.c (read_dbx_symtab): Update.
10044 * cp-support.h (cp_canonicalize_string_full)
10045 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10046 Return unique_xmalloc_ptr.
10047 * cp-support.c (inspect_type): Update.
10048 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10049 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10050 Likewise.
10051 * c-typeprint.c (print_name_maybe_canonical): Update.
10052 * break-catch-throw.c (check_status_exception_catchpoint):
10053 Update.
10054
10055 2020-05-08 Tom de Vries <tdevries@suse.de>
10056
10057 * infrun.c (follow_fork): Copy current_line and current_symtab to
10058 child thread.
10059
10060 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * async-event.c (struct async_signal_handler, struct
10063 async_event_handler): Reformat, remove typedef.
10064
10065 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10068 access thistype->main_type->dyn_prop_list directly.
10069
10070 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10073 (remove_dyn_prop): Remove. Update all users to use
10074 type::remove_dyn_prop.
10075 * gdbtypes.c (remove_dyn_prop): Rename to...
10076 (type::remove_dyn_prop): ... this.
10077
10078 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10079
10080 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10081 (add_dyn_prop): Remove. Update all users to use
10082 type::add_dyn_prop.
10083 * gdbtypes.c (add_dyn_prop): Rename to...
10084 (type::add_dyn_prop): ... this.
10085
10086 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10089 (get_dyn_prop): Remove. Update all users to use
10090 type::dyn_prop.
10091 * gdbtypes.c (get_dyn_prop): Rename to...
10092 (type::dyn_prop): ... this.
10093
10094 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10097
10098 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10101 instruction, skip it if it's there.
10102
10103 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10104
10105 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10106
10107 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10110 * gdbtypes.c (recursive_dump_type): Remove use of
10111 TYPE_INCOMPLETE.
10112
10113 2020-05-03 Tom Tromey <tom@tromey.com>
10114
10115 * breakpoint.c (catch_command, tcatch_command): Remove.
10116 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10117 add_show_prefix_cmd.
10118 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10119 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10120 Remove.
10121 (add_internal_problem_command): Use add_basic_prefix_cmd,
10122 add_show_prefix_cmd.
10123 * mips-tdep.c (set_mipsfpu_command): Remove.
10124 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10125 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10126 (_initialize_index_cache): Use add_basic_prefix_cmd.
10127 * memattr.c (dummy_cmd): Remove.
10128 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10129 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10130 (_initialize_tui_win): Use add_basic_prefix_cmd,
10131 add_show_prefix_cmd.
10132 * cli/cli-logging.c (set_logging_command): Remove.
10133 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10134 add_show_prefix_cmd.
10135 (show_logging_command): Remove.
10136 * target.c (target_command): Remove.
10137 (add_target): Use add_basic_prefix_cmd.
10138
10139 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10140
10141 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10142
10143 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10144
10145 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10146 info_command.
10147
10148 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10149
10150 * nbsd-nat.c (nbsd_enable_proc_events)
10151 (nbsd_nat_target::post_startup_inferior): Add.
10152 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10153 (nbsd_nat_target::update_thread_list): Rewrite.
10154 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10155 "PTRACE_LWP_CREATE".
10156 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10157
10158 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * stack.c (_initialize_stack): Remove duplicated creation
10161 of "frame" command and "f" alias.
10162
10163 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10164
10165 PR gdb/18706
10166 * gdbtypes.c (check_typedef): Calculate size of array of
10167 stubbed type.
10168
10169 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10170
10171 PR gdb/15559
10172 * i386-tdep.c (i386_push_dummy_call): Call
10173 i386_thiscall_push_dummy_call.
10174 (i386_thiscall_push_dummy_call): New function.
10175 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10176 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10177 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10178
10179 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * gdbarch.sh (do_read): Add shellcheck disable directive for
10182 warning SC2162.
10183
10184 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10187 "referenced but not assigned" warning.
10188
10189 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbarch.sh: Remove code that sets fallbackdefault.
10192
10193 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10194
10195 * gdbarch.sh: Use shell operators && and || instead of
10196 -a and -o.
10197
10198 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * gdbarch.sh: Use $(...) instead of `...`.
10201
10202 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * gdbarch.sh: Use double quotes around variables.
10205
10206 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * gdbarch.sh: Use %s with printf, instead of variables in the
10209 format string.
10210
10211 2020-04-29 Tom Tromey <tromey@adacore.com>
10212
10213 PR ada/25875:
10214 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10215 type fields here.
10216 (read_enumeration_type): Call
10217 update_enumeration_type_from_children later. Update comments.
10218 (process_enumeration_scope): Don't create type fields.
10219
10220 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10221
10222 * nbsd-tdep.c: Include "xml-syscall.h".
10223 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10224
10225 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10226
10227 * nbsd-nat.c: Include "sys/wait.h".
10228 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10229 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10230 (nbsd_nat_target::remove_exec_catchpoint)
10231 (nbsd_nat_target::set_syscall_catchpoint): Add.
10232 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10233 (nbsd_nat_target::insert_exec_catchpoint)
10234 (nbsd_nat_target::remove_exec_catchpoint)
10235 (nbsd_nat_target::set_syscall_catchpoint): Add.
10236 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10237 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10238 `nbsd_get_syscall_number'.
10239
10240 2020-04-29 Tom Tromey <tom@tromey.com>
10241
10242 * stack.c (print_block_frame_labels): Remove.
10243
10244 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10245
10246 PR gdb/17320
10247 * ada-valprint.c (val_print_packed_array_elements): Move array
10248 end bracket to new line.
10249 (ada_val_print_string): Remove extra spaces before first array
10250 element.
10251 * c-valprint.c (c_value_print_array): Likewise.
10252 * m2-valprint.c (m2_print_array_contents): Likewise.
10253 (m2_value_print_inner): Likewise.
10254 * p-valprint.c (pascal_value_print_inner): Likewise.
10255 * valprint.c (generic_val_print_array): Likewise.
10256 (value_print_array_elements): Move first array element and array
10257 end bracket to new line.
10258
10259 2020-04-29 Tom de Vries <tdevries@suse.de>
10260
10261 PR symtab/25889
10262 * linespec.c (find_method): Fix ix calculation.
10263
10264 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10265
10266 * syscalls/update-netbsd.sh: New file.
10267 * syscalls/netbsd.xml: Regenerate.
10268 * data-directory/Makefile.in: Register `netbsd.xml' in
10269 `SYSCALLS_FILES'.
10270
10271 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * syscalls/update-freebsd.sh: Add double quotes.
10274
10275 2020-04-28 Tom Tromey <tom@tromey.com>
10276
10277 * NEWS: Update.
10278 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10279 (cmdpy_init): Allow class_tui.
10280
10281 2020-04-28 Mark Williams <mark@myosotissp.com>
10282
10283 PR gdb/24480
10284 * dwarf2read.c: Add missing assingments to list_in_scope when
10285 start_symtab was already called.
10286
10287 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10288
10289 PR gdb/25881
10290 * dwarf2/read.c (offset_map_type): Use
10291 gdb:hash_enum<sect_offset> as hash function.
10292
10293 2020-04-28 Tom de Vries <tdevries@suse.de>
10294
10295 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10296 with DW_AT_signature.
10297
10298 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * configure.ac: Remove check for fs_base/gs_base in
10301 user_regs_struct.
10302 * configure: Re-generate.
10303 * config.in: Re-generate.
10304 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10305 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10306 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10307
10308 2020-04-27 Luis Machado <luis.machado@linaro.org>
10309
10310 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10311 problematic inline frame unwinding situation.
10312 * frame.c (frame_id_computed_p): New function.
10313 * frame.h (frame_id_computed_p): New prototype.
10314
10315 2020-04-26 Tom Tromey <tom@tromey.com>
10316
10317 * command.h (enum command_class) <class_pseudo>: Remove.
10318
10319 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10320
10321 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10322 and whitespace.
10323
10324 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10325
10326 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10327 `PT_GET_PROCESS_STATE' block.
10328
10329 2020-04-24 Tom Tromey <tom@tromey.com>
10330
10331 * symtab.h (symbol_get_demangled_name): Don't declare.
10332 * symtab.c (symbol_get_demangled_name): Remove.
10333 (general_symbol_info::natural_name)
10334 (general_symbol_info::demangled_name): Update.
10335
10336 2020-04-24 Tom Tromey <tom@tromey.com>
10337
10338 PR rust/25025:
10339 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10340
10341 2020-04-24 Tom Tromey <tom@tromey.com>
10342
10343 PR symtab/12707:
10344 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10345 exists.
10346 (new_symbol): Likewise.
10347 * compile/compile-object-load.c (get_out_value_type): Use
10348 symbol_matches_search_name.
10349
10350 2020-04-24 Tom Tromey <tom@tromey.com>
10351
10352 * dwarf2/read.c (add_partial_symbol): Do not call
10353 compute_and_set_names.
10354
10355 2020-04-24 Tom Tromey <tom@tromey.com>
10356
10357 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10358 overload.
10359
10360 2020-04-24 Tom Tromey <tom@tromey.com>
10361
10362 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10363 (add_psymbol_to_list): New overload. Make old overload call new
10364 one.
10365 * psympriv.h (add_psymbol_to_list): New overload.
10366
10367 2020-04-24 Tom Tromey <tom@tromey.com>
10368
10369 * dwarf2/read.c (partial_die_info::read) <case
10370 DW_AT_linkage_name>: Use value_as_string.
10371 (dwarf2_string_attr): Use value_as_string.
10372 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10373 method.
10374 * dwarf2/attribute.c (attribute::value_as_string): New method.
10375
10376 2020-04-24 Tom Tromey <tom@tromey.com>
10377
10378 * symtab.c (general_symbol_info::natural_name)
10379 (general_symbol_info::demangled_name): Check for language_rust.
10380
10381 2020-04-24 Tom Tromey <tom@tromey.com>
10382
10383 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10384 (dwarf2_physname): ... from here.
10385 (partial_die_info::read): Add Rust "{" hack.
10386
10387 2020-04-24 Tom Tromey <tom@tromey.com>
10388
10389 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10390 method.
10391 (symbol_set_demangled_name): Don't declare.
10392 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10393 symbol_set_demangled_name.
10394 (general_symbol_info::set_language)
10395 (general_symbol_info::compute_and_set_names): Update.
10396 * minsyms.c (minimal_symbol_reader::install): Update.
10397 * dwarf2/read.c (new_symbol): Update.
10398
10399 2020-04-24 Tom Tromey <tromey@adacore.com>
10400
10401 PR python/23662:
10402 * python/py-type.c (convert_field): Handle
10403 FIELD_LOC_KIND_DWARF_BLOCK.
10404 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10405 (typy_get_dynamic): Nw function.
10406 (type_object_getset): Add "dynamic".
10407 * NEWS: Add entry.
10408
10409 2020-04-24 Tom Tromey <tromey@adacore.com>
10410
10411 * ada-typeprint.c (print_choices, print_variant_part)
10412 (print_record_field_types_dynamic): New functions.
10413 (print_record_field_types): Use print_record_field_types_dynamic.
10414
10415 2020-04-24 Tom Tromey <tromey@adacore.com>
10416
10417 * dwarf2/read.c (handle_data_member_location): New overload.
10418 (dwarf2_add_field): Use it.
10419 (decode_locdesc): Add "computed" parameter. Update comment.
10420 * gdbtypes.c (is_dynamic_type_internal): Also look for
10421 FIELD_LOC_KIND_DWARF_BLOCK.
10422 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10423 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10424 virtual base classes.
10425 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10426 FIELD_LOC_KIND_DWARF_BLOCK.
10427
10428 2020-04-24 Tom Tromey <tromey@adacore.com>
10429
10430 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10431 * gdbtypes.c (is_dynamic_type_internal): Check
10432 TYPE_HAS_DYNAMIC_LENGTH.
10433 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10434 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10435 New macros.
10436 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10437 constant.
10438
10439 2020-04-24 Tom Tromey <tromey@adacore.com>
10440
10441 * dwarf2/read.c (struct variant_field): Rewrite.
10442 (struct variant_part_builder): New.
10443 (struct nextfield): Remove "variant" field. Add "offset".
10444 (struct field_info): Add "current_variant_part" and
10445 "variant_parts".
10446 (alloc_discriminant_info): Remove.
10447 (alloc_rust_variant): New function.
10448 (quirk_rust_enum): Update.
10449 (dwarf2_add_field): Set "offset" member. Don't handle
10450 DW_TAG_variant_part.
10451 (offset_map_type): New typedef.
10452 (convert_variant_range, create_one_variant)
10453 (create_one_variant_part, create_variant_parts)
10454 (add_variant_property): New functions.
10455 (dwarf2_attach_fields_to_type): Call add_variant_property.
10456 (read_structure_type): Don't handle DW_TAG_variant_part.
10457 (handle_variant_part, handle_variant): New functions.
10458 (handle_struct_member_die): Use them.
10459 (process_structure_scope): Don't handle variant parts.
10460 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10461 (struct discriminant_info): Remove.
10462 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10463 (struct main_type) <flag_discriminated_union>: Remove.
10464 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10465 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10466 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10467 Update.
10468 * valops.c (value_union_variant): Remove.
10469 * value.h (value_union_variant): Don't declare.
10470
10471 2020-04-24 Tom Tromey <tromey@adacore.com>
10472
10473 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10474 (ada_value_primitive_packed_val): Update.
10475 * ada-valprint.c (ada_value_print_1): Update.
10476 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10477 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10478 just an address. Use evaluate_for_locexpr_baton.
10479 (dwarf2_evaluate_property): Update.
10480 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10481 array_view.
10482 * findvar.c (default_read_var_value): Update.
10483 * gdbtypes.c (compute_variant_fields_inner)
10484 (resolve_dynamic_type_internal): Update.
10485 (resolve_dynamic_type): Change type of valaddr parameter.
10486 * gdbtypes.h (resolve_dynamic_type): Update.
10487 * valarith.c (value_subscripted_rvalue): Update.
10488 * value.c (value_from_contents_and_address): Update.
10489
10490 2020-04-24 Tom Tromey <tromey@adacore.com>
10491
10492 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10493 "push_initial_value" parameter.
10494 (dwarf2_evaluate_property): Likewise.
10495 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10496
10497 2020-04-24 Tom Tromey <tromey@adacore.com>
10498
10499 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10500 (variant::matches, compute_variant_fields_recurse)
10501 (compute_variant_fields_inner, compute_variant_fields): New
10502 functions.
10503 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10504 Use resolved_type after type is made.
10505 (operator==): Add new cases.
10506 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10507 (struct discriminant_range, struct variant, struct variant_part):
10508 New.
10509 (union dynamic_prop_data) <variant_parts, original_type>: New
10510 members.
10511 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10512 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10513 constants.
10514 * value.c (unpack_bits_as_long): Now public.
10515 * value.h (unpack_bits_as_long): Declare.
10516
10517 2020-04-24 Tom Tromey <tromey@adacore.com>
10518
10519 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10520 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10521
10522 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10523
10524 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10525
10526 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10527
10528 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10529 (remove_fork_catchpoint, post_startup_inferior)
10530 (post_attach): Move...
10531 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10532 (remove_fork_catchpoint, post_startup_inferior)
10533 (post_attach): ...here.
10534 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10535 (remove_fork_catchpoint, post_startup_inferior)
10536 (post_attach): Move...
10537 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10538 (remove_fork_catchpoint, post_startup_inferior)
10539 (post_attach): ...here.
10540
10541 2020-04-24 Tom Tromey <tromey@adacore.com>
10542
10543 * nat/windows-nat.h (struct windows_thread_info)
10544 <pc_adjusted>: New member.
10545 * windows-nat.c (windows_fetch_one_register): Check
10546 pc_adjusted.
10547 (windows_nat_target::get_windows_debug_event)
10548 (windows_nat_target::wait): Set pc_adjusted.
10549
10550 2020-04-24 Tom de Vries <tdevries@suse.de>
10551
10552 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10553 Run gdb-add-index inside temp dir.
10554
10555 2020-04-23 Tom Tromey <tromey@adacore.com>
10556
10557 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10558 in loop.
10559
10560 2020-04-23 Luis Machado <luis.machado@linaro.org>
10561
10562 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10563 get_frame_register instead of gdbarch_unwind_pc.
10564
10565 2020-04-23 Tom de Vries <tdevries@suse.de>
10566
10567 * symtab.c (lookup_global_symbol): Prefer def over decl.
10568
10569 2020-04-23 Tom de Vries <tdevries@suse.de>
10570
10571 PR symtab/25807
10572 * block.c (best_symbol, better_symbol): Promote to external.
10573 * block.h (best_symbol, better_symbol): Declare.
10574 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10575 decl.
10576
10577 2020-04-23 Tom Tromey <tromey@adacore.com>
10578
10579 PR ada/25837:
10580 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10581 "const char *", not a "const std::string &".
10582 <name_and_matcher::operator==>: Update.
10583 * unittests/lookup_name_info-selftests.c: Change type of
10584 "result".
10585
10586 2020-04-23 Tom Tromey <tom@tromey.com>
10587
10588 * inferior.h (iterate_over_inferiors): Don't declare.
10589 * inferior.c (iterate_over_inferiors): Remove.
10590 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10591 Remove.
10592 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10593 use iterate_over_inferiors.
10594 (darwin_resume_inferior_it)
10595 (struct resume_inferior_threads_param)
10596 (darwin_resume_inferior_threads_it): Remove.
10597 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10598
10599 2020-04-23 Tom de Vries <tdevries@suse.de>
10600
10601 * blockframe.c (find_pc_partial_function): Use
10602 find_pc_sect_compunit_symtab rather than
10603 objfile->sf->qf->find_pc_sect_compunit_symtab.
10604
10605 2020-04-22 Tom de Vries <tdevries@suse.de>
10606
10607 PR symtab/25764
10608 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10609 in psymtabs.
10610
10611 2020-04-22 Tom de Vries <tdevries@suse.de>
10612
10613 PR symtab/25801
10614 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10615 symtabs.
10616
10617 2020-04-22 Tom de Vries <tdevries@suse.de>
10618
10619 PR symtab/25700
10620 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10621 CU if already created.
10622
10623 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10624
10625 * infrun.c (displaced_step_fixup): Switch to the event_thread
10626 before calling displaced_step_restore, not after.
10627
10628 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10629
10630 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10631 its inferior is not recorded by us.
10632 (record_btrace_target_open): Replace call to
10633 all_non_exited_threads () with call to current_inferior
10634 ()->non_exited_threads ().
10635 (record_btrace_target::stop_recording): Likewise.
10636 (record_btrace_target::close): Likewise.
10637 (record_btrace_target::wait): Likewise.
10638 (record_btrace_target::record_stop_replaying): Likewise.
10639
10640 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10641
10642 * btrace.c (btrace_enable): Throw an error on double enables and
10643 when enabling recording fails.
10644 (btrace_disable): Throw an error if the thread is not recorded.
10645
10646 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10647
10648 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10649 request if we do not have a thread_info.
10650
10651 2020-04-21 Tom de Vries <tdevries@suse.de>
10652
10653 PR gdb/25471
10654 * thread.c
10655 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10656 exception in get_frame_id.
10657
10658 2020-04-20 Tom Tromey <tromey@adacore.com>
10659
10660 * python/python.c (struct gdbpy_event): Mark move constructor as
10661 noexcept.
10662 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10663 constructor as noexcept.
10664 * completer.h (struct completion_result): Mark move constructor as
10665 noexcept.
10666 * completer.c (completion_result::completion_result): Use
10667 initialization style. Don't call reset_match_list.
10668
10669 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10670
10671 * MAINTAINERS (Write After Approval): Add myself.
10672
10673 2020-04-18 Tom Tromey <tom@tromey.com>
10674
10675 * windows-tdep.c (init_w32_command_list)
10676 (w32_prefix_command_valid): Restore.
10677 (_initialize_windows_tdep): Call init_w32_command_list.
10678
10679 2020-04-18 Tom Tromey <tom@tromey.com>
10680
10681 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10682 * value.c (value_fn_field): Update.
10683 * valops.c (find_function_in_inferior)
10684 (value_allocate_space_in_inferior): Update.
10685 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10686 Update.
10687 * tui/tui-source.c (tui_source_window::set_contents): Update.
10688 * symtab.c (lookup_global_or_static_symbol)
10689 (find_function_start_sal_1, skip_prologue_sal)
10690 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10691 * symmisc.c (dump_msymbols, dump_symtab_1)
10692 (maintenance_print_one_line_table): Update.
10693 * symfile.c (init_entry_point_info, section_is_mapped)
10694 (list_overlays_command, simple_read_overlay_table)
10695 (simple_overlay_update_1): Update.
10696 * stap-probe.c (handle_stap_probe): Update.
10697 * stabsread.c (dbx_init_float_type, define_symbol)
10698 (read_one_struct_field, read_enum_type, read_range_type): Update.
10699 * source.c (info_line_command): Update.
10700 * python/python.c (gdbpy_source_objfile_script)
10701 (gdbpy_execute_objfile_script): Update.
10702 * python/py-type.c (save_objfile_types): Update.
10703 * python/py-objfile.c (py_free_objfile): Update.
10704 * python/py-inferior.c (python_new_objfile): Update.
10705 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10706 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10707 (maintenance_check_psymtabs): Update.
10708 * printcmd.c (info_address_command): Update.
10709 * objfiles.h (struct objfile) <arch>: New method, from
10710 get_objfile_arch.
10711 (get_objfile_arch): Don't declare.
10712 * objfiles.c (get_objfile_arch): Remove.
10713 (filter_overlapping_sections): Update.
10714 * minsyms.c (msymbol_is_function): Update.
10715 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10716 (output_nondebug_symbol): Update.
10717 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10718 (mdebug_expand_psymtab): Update.
10719 * machoread.c (macho_add_oso_symfile): Update.
10720 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10721 Update.
10722 * linux-fork.c (checkpoint_command): Update.
10723 * linespec.c (convert_linespec_to_sals): Update.
10724 * jit.c (finalize_symtab): Update.
10725 * infrun.c (insert_exception_resume_from_probe): Update.
10726 * ia64-tdep.c (ia64_find_unwind_table): Update.
10727 * hppa-tdep.c (internalize_unwinds): Update.
10728 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10729 Update.
10730 * gcore.c (call_target_sbrk): Update.
10731 * elfread.c (record_minimal_symbol, elf_symtab_read)
10732 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10733 (elf_gnu_ifunc_resolve_by_got): Update.
10734 * dwarf2/read.c (create_addrmap_from_index)
10735 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10736 (read_debug_names_from_section)
10737 (process_psymtab_comp_unit_reader, add_partial_symbol)
10738 (add_partial_subprogram, process_full_comp_unit)
10739 (read_file_scope, read_func_scope, read_lexical_block_scope)
10740 (read_call_site_scope, dwarf2_ranges_read)
10741 (dwarf2_record_block_ranges, dwarf2_add_field)
10742 (mark_common_block_symbol_computed, read_tag_pointer_type)
10743 (read_tag_string_type, dwarf2_init_float_type)
10744 (dwarf2_init_complex_target_type, read_base_type)
10745 (partial_die_info::read, partial_die_info::read)
10746 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10747 (dwarf2_fetch_die_loc_sect_off): Update.
10748 * dwarf2/loc.c (dwarf2_find_location_expression)
10749 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10750 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10751 (dwarf2_loc_desc_get_symbol_read_needs)
10752 (locexpr_describe_location_piece, locexpr_describe_location_1)
10753 (loclist_describe_location): Update.
10754 * dwarf2/index-write.c (write_debug_names): Update.
10755 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10756 * dtrace-probe.c (dtrace_process_dof): Update.
10757 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10758 (process_one_symbol): Update.
10759 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10760 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10761 (coff_read_enum_type): Update.
10762 * cli/cli-cmds.c (edit_command, list_command): Update.
10763 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10764 * breakpoint.c (create_overlay_event_breakpoint)
10765 (create_longjmp_master_breakpoint)
10766 (create_std_terminate_master_breakpoint)
10767 (create_exception_master_breakpoint, get_sal_arch): Update.
10768 * block.c (block_gdbarch): Update.
10769 * annotate.c (annotate_source_line): Update.
10770
10771 2020-04-17 Tom Tromey <tromey@adacore.com>
10772
10773 * auto-load.c (show_auto_load_cmd): Remove.
10774 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10775 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10776 (maintenance_print_arc_command): Remove.
10777 * tui/tui-win.c (tui_command): Remove.
10778 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10779 * tui/tui-layout.c (tui_layout_command): Remove.
10780 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10781 * python/python.c (user_set_python, user_show_python): Remove.
10782 (_initialize_python): Use add_basic_prefix_cmd,
10783 add_show_prefix_cmd.
10784 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10785 (install_gdb_commands): Use add_basic_prefix_cmd,
10786 add_show_prefix_cmd.
10787 (info_guile_command): Remove.
10788 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10789 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10790 add_show_prefix_cmd.
10791 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10792 Remove do_set and do_show parameters.
10793 * cli/cli-style.c (set_style, show_style): Remove.
10794 (_initialize_cli_style): Use add_basic_prefix_cmd,
10795 add_show_prefix_cmd.
10796 (cli_style_option::add_setshow_commands): Remove do_set and
10797 do_show parameters.
10798 (cli_style_option::add_setshow_commands): Use
10799 add_basic_prefix_cmd, add_show_prefix_cmd.
10800 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10801 (set_style_name): Remove.
10802 * cli/cli-dump.c (dump_command, append_command): Remove.
10803 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10804 (tekhex_dump_command, binary_dump_command)
10805 (binary_append_command): Remove.
10806 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10807 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10808 (init_w32_command_list): Remove; move into ...
10809 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10810 * valprint.c (set_print, show_print, set_print_raw)
10811 (show_print_raw): Remove.
10812 (_initialize_valprint): Use add_basic_prefix_cmd,
10813 add_show_prefix_cmd.
10814 * typeprint.c (set_print_type, show_print_type): Remove.
10815 (_initialize_typeprint): Use add_basic_prefix_cmd,
10816 add_show_prefix_cmd.
10817 * record.c (set_record_command, show_record_command): Remove.
10818 (_initialize_record): Use add_basic_prefix_cmd,
10819 add_show_prefix_cmd.
10820 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10821 add_show_prefix_cmd.
10822 (info_command, show_command, set_debug, show_debug): Remove.
10823 * top.h (set_history, show_history): Don't declare.
10824 * top.c (set_history, show_history): Remove.
10825 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10826 (unset_tdesc_cmd): Remove.
10827 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10828 add_show_prefix_cmd.
10829 * symtab.c (info_module_command): Remove.
10830 (_initialize_symtab): Use add_basic_prefix_cmd.
10831 * symfile.c (overlay_command): Remove.
10832 (_initialize_symfile): Use add_basic_prefix_cmd.
10833 * sparc64-tdep.c (info_adi_command): Remove.
10834 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10835 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10836 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10837 add_show_prefix_cmd.
10838 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10839 (_initialize_serial): Use add_basic_prefix_cmd,
10840 add_show_prefix_cmd.
10841 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10842 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10843 add_show_prefix_cmd.
10844 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10845 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10846 add_show_prefix_cmd.
10847 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10848 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10849 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10850 add_show_prefix_cmd.
10851 * remote.c (remote_command, set_remote_cmd): Remove.
10852 (_initialize_remote): Use add_basic_prefix_cmd.
10853 * record-full.c (set_record_full_command)
10854 (show_record_full_command): Remove.
10855 (_initialize_record_full): Use add_basic_prefix_cmd,
10856 add_show_prefix_cmd.
10857 * record-btrace.c (cmd_set_record_btrace)
10858 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10859 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10860 (cmd_show_record_btrace_pt): Remove.
10861 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10862 add_show_prefix_cmd.
10863 * ravenscar-thread.c (set_ravenscar_command)
10864 (show_ravenscar_command): Remove.
10865 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10866 add_show_prefix_cmd.
10867 * mips-tdep.c (show_mips_command, set_mips_command)
10868 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10869 add_show_prefix_cmd.
10870 * maint.c (maintenance_command, maintenance_info_command)
10871 (maintenance_check_command, maintenance_print_command)
10872 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10873 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10874 add_show_prefix_cmd.
10875 (show_per_command_cmd): Remove.
10876 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10877 Remove.
10878 (maintenance_show_test_settings_cmd): Remove.
10879 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10880 add_show_prefix_cmd.
10881 * maint-test-options.c (maintenance_test_options_command):
10882 Remove.
10883 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10884 * macrocmd.c (macro_command): Remove
10885 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10886 * language.c (set_check, show_check): Remove.
10887 (_initialize_language): Use add_basic_prefix_cmd,
10888 add_show_prefix_cmd.
10889 * infcmd.c (unset_command): Remove.
10890 (_initialize_infcmd): Use add_basic_prefix_cmd.
10891 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10892 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10893 add_show_prefix_cmd.
10894 * go32-nat.c (go32_info_dos_command): Remove.
10895 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10896 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10897 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10898 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10899 (_initialize_frame): Use add_basic_prefix_cmd,
10900 add_show_prefix_cmd.
10901 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10902 (_initialize_dcache): Use add_basic_prefix_cmd,
10903 add_show_prefix_cmd.
10904 * cp-support.c (maint_cplus_command): Remove.
10905 (_initialize_cp_support): Use add_basic_prefix_cmd.
10906 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10907 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10908 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10909 add_basic_prefix_cmd, add_show_prefix_cmd.
10910 * breakpoint.c (save_command): Remove.
10911 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10912 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10913 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10914 add_show_prefix_cmd.
10915 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10916 (set_ada_command, show_ada_command): Remove.
10917 (_initialize_ada_language): Use add_basic_prefix_cmd,
10918 add_show_prefix_cmd.
10919 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10920
10921 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10922
10923 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10924 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10925
10926 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10927
10928 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10929 warning messages.
10930
10931 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10932
10933 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10934 import table is not at beginning of .idata section.
10935
10936 2020-04-16 Pedro Alves <palves@redhat.com>
10937
10938 * inferior.c (delete_inferior): Use delete operator directly
10939 instead of delete_program_space.
10940 * progspace.c (add_program_space): New, factored out from
10941 program_space::program_space.
10942 (remove_program_space): New, factored out from
10943 delete_program_space.
10944 (program_space::program_space): Remove intro comment. Rewrite.
10945 (program_space::~program_space): Remove intro comment. Call
10946 remove_program_space.
10947 (delete_program_space): Delete.
10948 * progspace.h (program_space::program_space): Make explicit. Move
10949 intro comment here, adjusted.
10950 (program_space::~program_space): Move intro comment here,
10951 adjusted.
10952 (delete_program_space): Remove.
10953
10954 2020-04-16 Tom Tromey <tromey@adacore.com>
10955
10956 * windows-nat.c (windows_nat::handle_access_violation): New
10957 function.
10958 * nat/windows-nat.h (handle_access_violation): Declare.
10959 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10960 windows-nat.c. Call handle_access_violation.
10961
10962 2020-04-16 Tom de Vries <tdevries@suse.de>
10963
10964 PR symtab/25791
10965 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10966 CUs without psymtab.
10967
10968 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10969
10970 * python/python.c (do_start_initialization): Don't call
10971 PyEval_InitThreads for Python 3.9 and beyond.
10972
10973 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10974
10975 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10976 thread functions.
10977 (obsd_nat_target::wait): Likewise.
10978
10979 2020-04-15 Tom Tromey <tromey@adacore.com>
10980
10981 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10982 (DEBUG_EXCEPT): Use debug_printf.
10983
10984 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 * completer.c (class completion_tracker::completion_hash_entry)
10987 <hash_name>: New member function.
10988 (completion_tracker::discard_completions): New callback to hash a
10989 completion_hash_entry, pass this to htab_create_alloc.
10990
10991 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10992
10993 * windows-nat.c (windows_make_so): Warn rather than stopping with
10994 an error if realpath() fails.
10995
10996 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10997
10998 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10999 (nbsd_nat_target::info_proc): Add do_status.
11000
11001 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11002 Tom de Vries <tdevries@suse.de>
11003
11004 PR symtab/25718
11005 * psympriv.h (struct partial_symtab::read_symtab)
11006 (struct partial_symtab::expand_psymtab)
11007 (struct partial_symtab::read_dependencies): Update comments.
11008 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11009 read_symtab for includer.
11010 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11011 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11012 (struct dwarf2_include_psymtab::m_readin): Remove.
11013 (struct dwarf2_include_psymtab::includer): New member function.
11014 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11015
11016 2020-04-14 Tom de Vries <tdevries@suse.de>
11017
11018 PR symtab/25720
11019 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11020 with NULL symbol_matcher and lookup_name.
11021 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11022 and lookup_name.
11023 * dwarf2/read.c (dw2_expand_symtabs_matching)
11024 (dw2_debug_names_expand_symtabs_matching): Same.
11025 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11026 Make lookup_name a pointer. Update comment.
11027 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11028 lookup_name being a pointer.
11029 * symfile.c (expand_symtabs_matching): Same.
11030 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11031 * linespec.c (iterate_over_all_matching_symtabs): Same.
11032
11033 2020-04-13 Tom Tromey <tom@tromey.com>
11034
11035 * run-on-main-thread.c: Update include.
11036 * unittests/main-thread-selftests.c: Update include.
11037 * tui/tui-win.c: Update include.
11038 * tui/tui-io.c: Update include.
11039 * tui/tui-interp.c: Update include.
11040 * tui/tui-hooks.c: Update include.
11041 * top.h: Update include.
11042 * top.c: Update include.
11043 * ser-base.c: Update include.
11044 * remote.c: Update include.
11045 * remote-notif.c: Update include.
11046 * remote-fileio.c: Update include.
11047 * record-full.c: Update include.
11048 * record-btrace.c: Update include.
11049 * python/python.c: Update include.
11050 * posix-hdep.c: Update include.
11051 * mingw-hdep.c: Update include.
11052 * mi/mi-main.c: Update include.
11053 * mi/mi-interp.c: Update include.
11054 * main.c: Update include.
11055 * linux-nat.c: Update include.
11056 * interps.c: Update include.
11057 * infrun.c: Update include.
11058 * inf-loop.c: Update include.
11059 * event-top.c: Update include.
11060 * event-loop.c: Move to ../gdbsupport/.
11061 * event-loop.h: Move to ../gdbsupport/.
11062 * async-event.h: Update include.
11063 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11064
11065 2020-04-13 Tom Tromey <tom@tromey.com>
11066
11067 * tui/tui-win.c: Include async-event.h.
11068 * remote.c: Include async-event.h.
11069 * remote-notif.c: Include async-event.h.
11070 * record-full.c: Include async-event.h.
11071 * record-btrace.c: Include async-event.h.
11072 * infrun.c: Include async-event.h.
11073 * event-top.c: Include async-event.h.
11074 * event-loop.h: Move some declarations to async-event.h.
11075 * event-loop.c: Don't include ser-event.h or top.h. Move some
11076 code to async-event.c.
11077 * async-event.h: New file.
11078 * async-event.c: New file.
11079 * Makefile.in (COMMON_SFILES): Add async-event.c.
11080 (HFILES_NO_SRCDIR): Add async-event.h.
11081
11082 2020-04-13 Tom Tromey <tom@tromey.com>
11083
11084 * utils.c (flush_streams): New function.
11085 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11086
11087 2020-04-13 Tom Tromey <tom@tromey.com>
11088
11089 * event-loop.c (handle_file_event): Use warning, not
11090 printf_unfiltered.
11091
11092 2020-04-13 Tom Tromey <tom@tromey.com>
11093
11094 * event-loop.c: Include <chrono>.
11095
11096 2020-04-13 Tom Tromey <tom@tromey.com>
11097
11098 * gdb_select.h: Move to ../gdbsupport/.
11099 * event-loop.c: Update include path.
11100 * top.c: Update include path.
11101 * ser-base.c: Update include path.
11102 * ui-file.c: Update include path.
11103 * ser-tcp.c: Update include path.
11104 * guile/scm-ports.c: Update include path.
11105 * posix-hdep.c: Update include path.
11106 * ser-unix.c: Update include path.
11107 * gdb_usleep.c: Update include path.
11108 * mingw-hdep.c: Update include path.
11109 * inflow.c: Update include path.
11110 * infrun.c: Update include path.
11111 * event-top.c: Update include path.
11112
11113 2020-04-13 Tom Tromey <tom@tromey.com>
11114
11115 * configure: Rebuild.
11116 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11117
11118 2020-04-13 Tom Tromey <tom@tromey.com>
11119
11120 * event-loop.h (start_event_loop): Don't declare.
11121 * event-loop.c (start_event_loop): Move...
11122 * main.c (start_event_loop): ...here. Now static.
11123
11124 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11125
11126 * MAINTAINERS: Update my email address.
11127
11128 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11129
11130 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11131 IP_ALL.
11132
11133 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11134
11135 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11136 (nbsd_nat_target::info_proc): Add do_cmdline.
11137
11138 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11139
11140 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11141 (nbsd_nat_target::info_proc): Add do_cwd.
11142
11143 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11144
11145 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11146
11147 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11148
11149 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11150 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11151 (nbsd_nat_target::info_proc): New functions.
11152 * nbsd-nat.c (kinfo_get_vmmap): New function.
11153 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11154 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11155 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11156 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11157 functions.
11158 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11159 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11160 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11161 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11162 (KINFO_VME_FLAG_GROWS_DOWN): New.
11163
11164 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11165
11166 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11167 bit shift.
11168
11169 2020-04-10 Tom Tromey <tromey@adacore.com>
11170
11171 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11172
11173 2020-04-10 Tom Tromey <tromey@adacore.com>
11174
11175 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11176 separate debug files.
11177
11178 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11179
11180 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11181 Move to...
11182 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11183 ... here.
11184 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11185 Check for STATUS_WX86_BREAKPOINT.
11186 (windows_nat_target::wait): Same.
11187
11188 2020-04-10 Tom de Vries <tdevries@suse.de>
11189
11190 PR cli/25808
11191 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11192
11193 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11194
11195 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11196 (Write After Approval): Remove Tom de Vries.
11197
11198 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11199
11200 revert partially:
11201 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11202
11203 * buildsym.c (record_line): Fix undefined behavior and preserve
11204 lines at eof.
11205
11206 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11207
11208 * auxv.h (svr4_auxv_parse): New.
11209 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11210 and generic_auxv_parse.
11211 (svr4_auxv_parse): Add.
11212 * obsd-tdep.c: Include "auxv.h".
11213 (obsd_auxv_parse): Remove.
11214 (obsd_init_abi): Remove comment.
11215 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11216 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11217 * nbsd-tdep.c: Include "auxv.h".
11218 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11219
11220 2020-04-08 Tom Tromey <tromey@adacore.com>
11221
11222 * nat/windows-nat.h (last_wait_event): Don't declare.
11223 (wait_for_debug_event): Update comment.
11224 * nat/windows-nat.c (last_wait_event): Now static.
11225
11226 2020-04-08 Tom Tromey <tromey@adacore.com>
11227
11228 * windows-nat.c (wait_for_debug_event): Move to
11229 nat/windows-nat.c.
11230 * nat/windows-nat.h (wait_for_debug_event): Declare.
11231 * nat/windows-nat.c (wait_for_debug_event): Move from
11232 windows-nat.c. No longer static.
11233
11234 2020-04-08 Tom Tromey <tromey@adacore.com>
11235
11236 * windows-nat.c (get_windows_debug_event): Use
11237 fetch_pending_stop.
11238 * nat/windows-nat.h (fetch_pending_stop): Declare.
11239 * nat/windows-nat.c (fetch_pending_stop): New function.
11240
11241 2020-04-08 Tom Tromey <tromey@adacore.com>
11242
11243 * windows-nat.c (windows_continue): Use matching_pending_stop and
11244 continue_last_debug_event.
11245 * nat/windows-nat.h (matching_pending_stop)
11246 (continue_last_debug_event): Declare.
11247 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11248 (matching_pending_stop, continue_last_debug_event): New
11249 functions.
11250
11251 2020-04-08 Tom Tromey <tromey@adacore.com>
11252
11253 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11254 (handle_exception_result): Move to nat/windows-nat.h.
11255 (DEBUG_EXCEPTION_SIMPLE): Remove.
11256 (windows_nat::handle_ms_vc_exception): New function.
11257 (handle_exception): Move to nat/windows-nat.c.
11258 (get_windows_debug_event): Update.
11259 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11260 nat/windows-nat.c.
11261 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11262 (handle_exception_result): Move from windows-nat.c.
11263 (handle_exception): Declare.
11264 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11265 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11266 windows-nat.c.
11267
11268 2020-04-08 Tom Tromey <tromey@adacore.com>
11269
11270 * windows-nat.c (exception_count, event_count): Remove.
11271 (handle_exception, get_windows_debug_event)
11272 (do_initial_windows_stuff): Update.
11273
11274 2020-04-08 Tom Tromey <tromey@adacore.com>
11275
11276 * windows-nat.c (windows_nat::handle_load_dll)
11277 (windows_nat::handle_unload_dll): Rename. No longer static.
11278 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11279 Declare.
11280
11281 2020-04-08 Tom Tromey <tromey@adacore.com>
11282
11283 * complaints.h (stop_whining): Declare at top-level.
11284 (complaint): Don't declare stop_whining.
11285
11286 2020-04-08 Tom Tromey <tromey@adacore.com>
11287
11288 * windows-nat.c (windows_nat::handle_output_debug_string):
11289 Rename. No longer static.
11290 * nat/windows-nat.h (handle_output_debug_string): Declare.
11291
11292 2020-04-08 Tom Tromey <tromey@adacore.com>
11293
11294 * windows-nat.c (current_process_handle, current_process_id)
11295 (main_thread_id, last_sig, current_event, last_wait_event)
11296 (current_windows_thread, desired_stop_thread_id, pending_stops)
11297 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11298 (display_selectors, fake_create_process)
11299 (get_windows_debug_event): Update.
11300 * nat/windows-nat.h (current_process_handle, current_process_id)
11301 (main_thread_id, last_sig, current_event, last_wait_event)
11302 (current_windows_thread, desired_stop_thread_id, pending_stops)
11303 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11304 * nat/windows-nat.c (current_process_handle, current_process_id)
11305 (main_thread_id, last_sig, current_event, last_wait_event)
11306 (current_windows_thread, desired_stop_thread_id, pending_stops)
11307 (siginfo_er): New globals. Move from windows-nat.c.
11308
11309 2020-04-08 Tom Tromey <tromey@adacore.com>
11310
11311 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11312 (handle_load_dll): Update.
11313 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11314
11315 2020-04-08 Tom Tromey <tromey@adacore.com>
11316
11317 * windows-nat.c (enum thread_disposition_type): Move to
11318 nat/windows-nat.h.
11319 (windows_nat::thread_rec): Rename from thread_rec. No longer
11320 static.
11321 (windows_add_thread, windows_nat_target::fetch_registers)
11322 (windows_nat_target::store_registers, handle_exception)
11323 (windows_nat_target::resume, get_windows_debug_event)
11324 (windows_nat_target::get_tib_address)
11325 (windows_nat_target::thread_name)
11326 (windows_nat_target::thread_alive): Update.
11327 * nat/windows-nat.h (enum thread_disposition_type): Move from
11328 windows-nat.c.
11329 (thread_rec): Declare.
11330
11331 2020-04-08 Tom Tromey <tromey@adacore.com>
11332
11333 * windows-nat.c: Add "using namespace".
11334 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11335 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11336
11337 2020-04-08 Tom Tromey <tromey@adacore.com>
11338
11339 * nat/windows-nat.h (struct windows_thread_info): Declare
11340 destructor.
11341 * nat/windows-nat.c (~windows_thread_info): New.
11342
11343 2020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 PR gdb/22992
11346 * windows-nat.c (current_event): Update comment.
11347 (last_wait_event, desired_stop_thread_id): New globals.
11348 (struct pending_stop): New.
11349 (pending_stops): New global.
11350 (windows_nat_target) <stopped_by_sw_breakpoint>
11351 <supports_stopped_by_sw_breakpoint>: New methods.
11352 (windows_fetch_one_register): Add assertions. Adjust PC.
11353 (windows_continue): Handle pending stops. Suspend other threads
11354 when stepping. Use last_wait_event
11355 (wait_for_debug_event): New function.
11356 (get_windows_debug_event): Use wait_for_debug_event. Handle
11357 pending stops. Queue spurious stops.
11358 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11359 (windows_nat_target::kill): Use wait_for_debug_event.
11360 * nat/windows-nat.h (struct windows_thread_info)
11361 <stopped_at_software_breakpoint>: New field.
11362 * nat/windows-nat.c (windows_thread_info::resume): Clear
11363 stopped_at_software_breakpoint.
11364
11365 2020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * windows-nat.c (enum thread_disposition_type): New.
11368 (thread_rec): Replace "get_context" parameter with "disposition";
11369 change type.
11370 (windows_add_thread, windows_nat_target::fetch_registers)
11371 (windows_nat_target::store_registers, handle_exception)
11372 (windows_nat_target::resume, get_windows_debug_event)
11373 (windows_nat_target::get_tib_address)
11374 (windows_nat_target::thread_name)
11375 (windows_nat_target::thread_alive): Update.
11376
11377 2020-04-08 Tom Tromey <tromey@adacore.com>
11378
11379 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11380 (windows_continue): Use windows_continue::resume.
11381 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11382 resume>: Declare new methods.
11383 * nat/windows-nat.c: New file.
11384 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11385
11386 2020-04-08 Tom Tromey <tromey@adacore.com>
11387
11388 * windows-nat.c (windows_add_thread, windows_delete_thread)
11389 (windows_nat_target::fetch_registers)
11390 (windows_nat_target::store_registers, fake_create_process)
11391 (windows_nat_target::resume, windows_nat_target::resume)
11392 (get_windows_debug_event, windows_nat_target::wait)
11393 (windows_nat_target::pid_to_str)
11394 (windows_nat_target::get_tib_address)
11395 (windows_nat_target::get_ada_task_ptid)
11396 (windows_nat_target::thread_name)
11397 (windows_nat_target::thread_alive): Use lwp, not tid.
11398
11399 2020-04-08 Tom Tromey <tromey@adacore.com>
11400
11401 * windows-nat.c (handle_exception)
11402 (windows_nat_target::thread_name): Update.
11403 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11404 <name>: Now unique_xmalloc_ptr.
11405
11406 2020-04-08 Tom Tromey <tromey@adacore.com>
11407
11408 * windows-nat.c (thread_rec)
11409 (windows_nat_target::fetch_registers): Update.
11410 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11411 Update comment.
11412 <debug_registers_changed, reload_context>: Now bool.
11413
11414 2020-04-08 Tom Tromey <tromey@adacore.com>
11415
11416 * windows-nat.c (windows_add_thread): Use new.
11417 (windows_init_thread_list, windows_delete_thread): Use delete.
11418 (get_windows_debug_event): Update.
11419 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11420 destructor, and initializers.
11421
11422 2020-04-08 Tom Tromey <tromey@adacore.com>
11423
11424 * windows-nat.c (struct windows_thread_info): Remove.
11425 * nat/windows-nat.h: New file.
11426
11427 2020-04-08 Tom Tromey <tromey@adacore.com>
11428
11429 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11430 (thread_rec, windows_add_thread, windows_delete_thread)
11431 (windows_continue): Update.
11432
11433 2020-04-08 Tom Tromey <tromey@adacore.com>
11434
11435 * windows-nat.c (struct windows_thread_info): Remove typedef.
11436 (thread_head): Remove.
11437 (thread_list): New global.
11438 (thread_rec, windows_add_thread, windows_init_thread_list)
11439 (windows_delete_thread, windows_continue): Update.
11440
11441 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11442
11443 * windows-tdep.h (windows_init_abi): Add comment.
11444 (cygwin_init_abi): New declaration.
11445 * windows-tdep.c: Split signal enumeration in two, one for
11446 Windows and one for Cygwin.
11447 (windows_gdb_signal_to_target): Only deal with signal of the
11448 Windows OS ABI.
11449 (cygwin_gdb_signal_to_target): New function.
11450 (windows_init_abi): Rename to windows_init_abi_common, don't set
11451 gdb_signal_to_target gdbarch method. Add new new function with
11452 this name.
11453 (cygwin_init_abi): New function.
11454 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11455 comment. Don't call windows_init_abi.
11456 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11457 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11458 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11459 i386_windows_init_abi_common, don't call windows_init_abi. Add
11460 a new function of this name.
11461 (i386_cygwin_init_abi): New function.
11462 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11463 OS ABI Cygwin.
11464
11465 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11466
11467 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11468 parameter.c.
11469 (dwarf2_read_gdb_index): Update.
11470
11471 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11472
11473 * nbsd-tdep.c: Include "objfiles.h".
11474 (nbsd_skip_solib_resolver): New.
11475 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11476
11477 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11478
11479 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11480 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11481 with DW_LLE_base_addressx are being emitted in DWARFv5.
11482 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11483 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11484 unsigned integer.
11485
11486 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11487
11488 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11489 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11490 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11491 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11492 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11493 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11494 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11495
11496
11497 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11498
11499 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11500 (read_loclist_index): New function definition.
11501 (lookup_loclist_base): New function definition.
11502 (read_loclist_header): New function definition.
11503 (dwarf2_cu): Add loclist_base and loclist_header field.
11504 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11505 (read_full_die_1): Read the value of DW_AT_loclists_base.
11506 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11507 (read_attribute_value): Handle DW_FORM_loclistx.
11508 (skip_one_die): Handle DW_FORM_loclistx.
11509 (loclist_header): New structure declaration.
11510 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11511
11512 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11513
11514 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11515 constructor. Remove `addr` parameter from other constructor and
11516 add `per_cu` parameter.
11517 * dwarf2/read.c (create_partial_symtab): Update.
11518
11519 2020-04-07 Tom de Vries <tdevries@suse.de>
11520
11521 PR symtab/25796
11522 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11523 (partial_die_info::fixup): Inherit has_const_value.
11524
11525 2020-04-07 Tom de Vries <tdevries@suse.de>
11526
11527 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11528 symbols without address.
11529
11530 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11531
11532 * nbsd-nat.h (struct thread_info): Add forward declaration.
11533 (nbsd_nat_target::thread_alive): Add.
11534 (nbsd_nat_target::thread_name): Likewise.
11535 (nbsd_nat_target::update_thread_list): Likewise.
11536 (update_thread_list::post_attach): Likewise.
11537 (post_attach::pid_to_str): Likewise.
11538 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11539 (nbsd_thread_lister): Add.
11540 (nbsd_nat_target::thread_alive): Likewise.
11541 (nbsd_nat_target::thread_name): Likewise.
11542 (nbsd_add_threads): Likewise.
11543 (update_thread_list::post_attach): Likewise.
11544 (nbsd_nat_target::update_thread_list): Likewise.
11545 (post_attach::pid_to_str): Likewise.
11546
11547 2020-04-06 Tom Tromey <tromey@adacore.com>
11548
11549 * ada-valprint.c (print_variant_part): Extract the variant field.
11550 (print_field_values): Use the field as the outer value when
11551 recursing.
11552
11553 2020-04-06 Tom Tromey <tromey@adacore.com>
11554
11555 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11556 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11557 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11558 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11559 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11560
11561 2020-04-06 Tom Tromey <tromey@adacore.com>
11562
11563 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11564 TYPE_CODE_ERROR.
11565
11566 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11567
11568 * nbsd-tdep.c: Include "gdbarch.h".
11569 Define enum with NetBSD signal numbers.
11570 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11571 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11572 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11573 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11574 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11575 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11576 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11577 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11578 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11579 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11580 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11581 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11582
11583 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11584
11585 PR gdb/25325
11586 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11587
11588 2020-04-03 Tom Tromey <tromey@adacore.com>
11589
11590 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11591 Read constant block.
11592
11593 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11594
11595 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11596 (gdb_bfd_get_full_section_contents): New declaration.
11597 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11598 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11599 gdb_bfd_get_full_section_contents.
11600
11601 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11602
11603 * exec.c (build_section_table): Replace internal_error with
11604 gdb_assert.
11605 (section_table_xfer_memory_partial): Likewise.
11606 * mdebugread.c (parse_partial_symbols): Likewise.
11607 * psymtab.c (lookup_partial_symbol): Likewise.
11608 * utils.c (wrap_here): Likewise.
11609
11610 2020-04-02 Tom Tromey <tromey@adacore.com>
11611
11612 * f-lang.c (build_fortran_types): Use arch_type to initialize
11613 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11614
11615 2020-04-02 Tom Tromey <tromey@adacore.com>
11616
11617 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11618 of attributes.
11619
11620 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11621 Bernd Edlinger <bernd.edlinger@hotmail.de>
11622 Tom Tromey <tromey@adacore.com>
11623
11624 * buildsym.c (buildsym_compunit::record_line): Remove
11625 deduplication code.
11626
11627 2020-04-02 Tom de Vries <tdevries@suse.de>
11628
11629 PR ada/24671
11630 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11631
11632 2020-04-02 Tom de Vries <tdevries@suse.de>
11633
11634 * dwarf2/read.c (dwarf2_gdb_index_functions,
11635 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11636 NULL.
11637 * psymtab.c (psym_lookup_global_symbol_language): New function.
11638 (psym_functions): Init psym_lookup_global_symbol_language with
11639 psym_lookup_global_symbol_language.
11640 * symfile-debug.c (debug_sym_quick_functions): Init
11641 lookup_global_symbol_language with NULL.
11642 * symfile.c (set_initial_language): Remove fixme comment.
11643 * symfile.h (struct quick_symbol_functions): Add
11644 lookup_global_symbol_language.
11645 * symtab.c (find_quick_global_symbol_language): New function.
11646 (find_main_name): Use find_quick_global_symbol_language.
11647
11648 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11649
11650 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11651
11652 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11653
11654 * buildsym.c (record_line): Fix undefined behavior and preserve
11655 lines at eof.
11656
11657 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11658
11659 * buildsym.c (record_line): Fix the resizing condition.
11660
11661 2020-04-01 Tom Tromey <tom@tromey.com>
11662
11663 * value.h (value_literal_complex): Add comment.
11664 * valops.c (value_literal_complex): Refer to value.h.
11665
11666 2020-04-01 Tom Tromey <tom@tromey.com>
11667
11668 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11669 (scalar_type): New rule, from typebase.
11670 (typebase): Use scalar_type. Recognize complex types.
11671 (field_name): Handle FLOAT_KEYWORD.
11672 (ident_tokens): Add _Complex and __complex__.
11673
11674 2020-04-01 Tom Tromey <tom@tromey.com>
11675
11676 PR exp/25299:
11677 * valarith.c (promotion_type, complex_binop): New functions.
11678 (scalar_binop): Handle complex numbers. Use promotion_type.
11679 (value_pos, value_neg, value_complement): Handle complex numbers.
11680
11681 2020-04-01 Tom Tromey <tom@tromey.com>
11682
11683 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11684 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11685 (parse_number): Handle complex numbers.
11686
11687 2020-04-01 Tom Tromey <tom@tromey.com>
11688
11689 * c-valprint.c (c_decorations): Change complex suffix to "i".
11690
11691 2020-04-01 Tom Tromey <tom@tromey.com>
11692
11693 * valprint.c (generic_value_print_complex): Use accessors.
11694 * value.h (value_real_part, value_imaginary_part): Declare.
11695 * valops.c (value_real_part, value_imaginary_part): New
11696 functions.
11697 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11698
11699 2020-04-01 Tom Tromey <tom@tromey.com>
11700
11701 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11702 (read_range_type): Update.
11703 * mdebugread.c (basic_type): Update.
11704 * go-lang.c (build_go_types): Use init_complex_type.
11705 * gdbtypes.h (struct main_type) <complex_type>: New member.
11706 (init_complex_type): Update.
11707 (arch_complex_type): Don't declare.
11708 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11709 Make name if none given. Use alloc_type_copy. Look for cached
11710 complex type.
11711 (arch_complex_type): Remove.
11712 (gdbtypes_post_init): Use init_complex_type.
11713 * f-lang.c (build_fortran_types): Use init_complex_type.
11714 * dwarf2/read.c (read_base_type): Update.
11715 * d-lang.c (build_d_types): Use init_complex_type.
11716 * ctfread.c (read_base_type): Update.
11717
11718 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11719
11720 * infrun.c (stop_all_threads): Update assertion, plus when
11721 stopping threads, take into account that we might be trying
11722 to stop an all-stop target.
11723 (stop_waiting): Call 'stop_all_threads' if there exists a
11724 non-stop target.
11725
11726 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11727
11728 * target.h (exists_non_stop_target): New function declaration.
11729 * target.c (exists_non_stop_target): New function.
11730
11731 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11732
11733 PR gdb/24789
11734 * eval.c (is_integral_or_integral_reference): New function.
11735 (evaluate_subexp_standard): Allow integer references in
11736 pointer arithmetic.
11737
11738 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11739
11740 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11741 check for no ptid in the stop reply when the target is non-stop.
11742
11743 2020-04-01 Tom Tromey <tromey@adacore.com>
11744
11745 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11746 "name" parameter to rvalue reference. Initialize m_name_holder.
11747 <lookup_name_info>: New overloads.
11748 <name>: Return gdb::string_view.
11749 <c_str>: New method.
11750 <make_ignore_params>: Update.
11751 <search_name_hash>: Update.
11752 <language_lookup_name>: Return const char *.
11753 <m_name>: Change type.
11754 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11755 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11756 (lookup_name_info::match_any): Update.
11757 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11758 Update.
11759 * minsyms.c (linkage_name_str): Update.
11760 * language.c (default_symbol_name_matcher): Update.
11761 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11762 Update.
11763 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11764 (ada_lookup_name_info::ada_lookup_name_info): Update.
11765 (literal_symbol_name_matcher): Update.
11766
11767 2020-04-01 Tom Tromey <tromey@adacore.com>
11768
11769 * psymtab.c (psymtab_search_name): Remove function.
11770 (psym_lookup_symbol): Create search name and lookup name here.
11771 (lookup_partial_symbol): Remove "name" parameter; add
11772 lookup_name.
11773 (psym_expand_symtabs_for_function): Update.
11774
11775 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11776
11777 PR tui/25597:
11778 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11779
11780 2020-03-31 Tom Tromey <tromey@adacore.com>
11781
11782 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11783 memcpy.
11784
11785 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11786
11787 * features/riscv/32bit-csr.xml: Regenerated.
11788 * features/riscv/64bit-csr.xml: Regenerated.
11789
11790 2020-03-30 Tom Tromey <tromey@adacore.com>
11791
11792 * ada-valprint.c (print_variant_part): Update.
11793 * ada-lang.h (ada_which_variant_applies): Update.
11794 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11795 outer_valaddr parameters; replace with "outer" value parameter.
11796 (to_fixed_variant_branch_type): Update.
11797
11798 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11799
11800 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11801 <list>. Remove inclusion of observable.h.
11802 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11803 (struct arch_lwp_info): New struct.
11804 (class ppc_linux_dreg_interface): New class.
11805 (struct ppc_linux_process_info): New struct.
11806 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11807 <low_new_clone, low_forget_process, low_prepare_to_resume>
11808 <copy_thread_dreg_state, mark_thread_stale>
11809 <mark_debug_registers_changed, register_hw_breakpoint>
11810 <clear_hw_breakpoint, register_wp, clear_wp>
11811 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11812 <num_memory_accesses, get_trigger_type>
11813 <create_watchpoint_request, hwdebug_point_cmp>
11814 <init_arch_lwp_info, get_arch_lwp_info>
11815 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11816 methods.
11817 <struct ptid_hash>: New inner struct.
11818 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11819 members.
11820 (saved_dabr_value, hwdebug_info, max_slots_number)
11821 (struct hw_break_tuple, struct thread_points, ppc_threads)
11822 (have_ptrace_hwdebug_interface)
11823 (hwdebug_find_thread_points_by_tid)
11824 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11825 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11826 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11827 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11828 use m_dreg_interface.
11829 (hwdebug_point_cmp): Change to...
11830 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11831 reference arguments instead of pointers.
11832 (ppc_linux_nat_target::ranged_break_num_registers): Use
11833 m_dreg_interface.
11834 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11835 m_dreg_interface. Call register_hw_breakpoint.
11836 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11837 m_dreg_interface. Call clear_hw_breakpoint.
11838 (get_trigger_type): Change to...
11839 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11840 comment.
11841 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11842 use m_dreg_interface. Call register_hw_breakpoint.
11843 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11844 use m_dreg_interface. Call clear_hw_breakpoint.
11845 (can_use_watchpoint_cond_accel): Change to...
11846 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11847 method. Update comment, use m_dreg_interface and
11848 m_process_info.
11849 (calculate_dvc): Change to...
11850 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11851 m_dreg_interface.
11852 (num_memory_accesses): Change to...
11853 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11854 (check_condition): Change to...
11855 (ppc_linux_nat_target::check_condition): ...this method.
11856 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11857 comment, use m_dreg_interface.
11858 (create_watchpoint_request): Change to...
11859 (ppc_linux_nat_target::create_watchpoint_request): ...this
11860 method. Use m_dreg_interface.
11861 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11862 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11863 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11864 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11865 (ppc_linux_nat_target::low_forget_process)
11866 (ppc_linux_nat_target::low_new_fork)
11867 (ppc_linux_nat_target::low_new_clone)
11868 (ppc_linux_nat_target::low_delete_thread)
11869 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11870 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11871 only call mark_thread_stale.
11872 (ppc_linux_thread_exit): Remove.
11873 (ppc_linux_nat_target::stopped_data_address): Change to...
11874 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11875 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11876 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11877 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11878 comment. Call low_stopped_data_address.
11879 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11880 m_dreg_interface.
11881 (ppc_linux_nat_target::masked_watch_num_registers): Use
11882 m_dreg_interface.
11883 (ppc_linux_nat_target::copy_thread_dreg_state)
11884 (ppc_linux_nat_target::mark_thread_stale)
11885 (ppc_linux_nat_target::mark_debug_registers_changed)
11886 (ppc_linux_nat_target::register_hw_breakpoint)
11887 (ppc_linux_nat_target::clear_hw_breakpoint)
11888 (ppc_linux_nat_target::register_wp)
11889 (ppc_linux_nat_target::clear_wp)
11890 (ppc_linux_nat_target::init_arch_lwp_info)
11891 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11892 (_initialize_ppc_linux_nat): Remove observer callback.
11893
11894 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11895
11896 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11897 (ppc_linux_nat_target::auxv_parse)
11898 (ppc_linux_nat_target::read_description)
11899 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11900 Move up.
11901
11902 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11903
11904 * linux-nat.h (low_new_clone): New method.
11905 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11906
11907 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11908
11909 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11910 (dbx_expand_psymtab): ... this.
11911 (start_psymtab): Update.
11912 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11913 (mdebug_expand_psymtab): ... this.
11914 (parse_partial_symbols): Update.
11915 (new_psymtab): Update.
11916 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11917 (xcoff_expand_psymtab): ... this.
11918 (xcoff_start_psymtab): Update.
11919
11920 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11921
11922 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11923 <expand_dependencies>: ... this.
11924 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11925 (partial_symtab::expand_dependencies): ... this.
11926 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11927 Update.
11928 (dwarf2_psymtab::expand_psymtab): Update.
11929 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11930 * mdebugread.c (psymtab_to_symtab_1): Update.
11931 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11932
11933 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11934
11935 * psympriv.h (discard_psymtab): Remove.
11936 * dbxread.c (dbx_end_psymtab): Update.
11937 * xcoffread.c (xcoff_end_psymtab): Update.
11938
11939 2020-03-28 Tom Tromey <tom@tromey.com>
11940
11941 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11942 comment.
11943
11944 2020-03-28 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11947
11948 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11949
11950 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11951
11952 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11953
11954 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11955
11956 2020-03-26 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11959 (mark_common_block_symbol_computed, read_tag_string_type)
11960 (attr_to_dynamic_prop, read_subrange_type): Update.
11961 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11962 to be methods on struct attribute.
11963 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11964 (read_call_site_scope, partial_die_info::read)
11965 (partial_die_info::read, lookup_die_type, follow_die_ref):
11966 Update.
11967 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11968 from dwarf2_get_ref_die_offset.
11969 (attribute::constant_value): New method, from
11970 dwarf2_get_attr_constant_value.
11971 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11972 Declare method.
11973 <constant_value>: New method.
11974
11975 2020-03-26 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11978 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11979 (dwarf_type_encoding_name): Move to stringify.c.
11980 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11981 * dwarf2/stringify.c: New file.
11982 * dwarf2/stringify.h: New file.
11983
11984 2020-03-26 Tom Tromey <tom@tromey.com>
11985
11986 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11987 Rewrite.
11988
11989 2020-03-26 Tom Tromey <tom@tromey.com>
11990
11991 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11992 methods.
11993 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11994 (lookup_ranges_base): Likewise.
11995 (read_cutu_die_from_dwo, read_full_die_1): Update.
11996
11997 2020-03-26 Tom Tromey <tom@tromey.com>
11998
11999 * dwarf2/read.c (read_import_statement, read_file_scope)
12000 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12001 (read_lexical_block_scope, read_call_site_scope)
12002 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12003 (handle_struct_member_die, process_structure_scope)
12004 (update_enumeration_type_from_children)
12005 (process_enumeration_scope, read_array_type, read_common_block)
12006 (read_namespace, read_module, read_subroutine_type): Update.
12007 (sibling_die): Remove.
12008
12009 2020-03-26 Tom Tromey <tom@tromey.com>
12010
12011 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12012 (build_type_psymtabs_reader, read_structure_type)
12013 (read_enumeration_type, read_full_die_1): Update.
12014 (dwarf2_attr_no_follow): Move to die.h.
12015 * dwarf2/die.h (struct die_info) <attr>: New method.
12016
12017 2020-03-26 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12020 <base_address>: Now an optional.
12021 (dwarf2_find_base_address, dwarf2_rnglists_process)
12022 (dwarf2_ranges_process, fill_in_loclist_baton)
12023 (dwarf2_symbol_mark_computed): Update.
12024
12025 2020-03-26 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/read.c (struct die_info): Move to die.h.
12028 * dwarf2/die.h: New file.
12029
12030 2020-03-26 Tom Tromey <tom@tromey.com>
12031
12032 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12033 * dwarf2/read.c
12034 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12035 Move to line-header.c.
12036 (read_checked_initial_length_and_offset, read_formatted_entries):
12037 Likewise.
12038 (dwarf_decode_line_header): Split into two.
12039 * dwarf2/line-header.c
12040 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12041 Move from read.c.
12042 (read_checked_initial_length_and_offset, read_formatted_entries):
12043 Likewise.
12044 (dwarf_decode_line_header): New function, split from read.c.
12045
12046 2020-03-26 Tom Tromey <tom@tromey.com>
12047
12048 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12049 Declare method.
12050 * dwarf2/read.c (read_attribute_value): Update.
12051 (dwarf2_per_objfile::read_line_string): Rename from
12052 read_indirect_line_string.
12053 (read_formatted_entries): Update.
12054
12055 2020-03-26 Tom Tromey <tom@tromey.com>
12056
12057 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12058 variable.
12059
12060 2020-03-26 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12063 const.
12064 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12065 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12066 parameter const.
12067
12068 2020-03-26 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12071 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12072 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12073 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12074
12075 2020-03-26 Tom Tromey <tom@tromey.com>
12076
12077 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12078 file_names_size, file_full_name, file_file_name>: Use const.
12079 <file_name_at, file_names>: Add const overload.
12080 * dwarf2/line-header.c (line_header::file_file_name)
12081 (line_header::file_full_name): Update.
12082
12083 2020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12086 (macro_start_file, consume_improper_spaces)
12087 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12088 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12089 (dwarf_decode_macros): Move to macro.c.
12090 * dwarf2/macro.c: New file.
12091 * dwarf2/macro.h: New file.
12092 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12093
12094 2020-03-26 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12097 method.
12098 * dwarf2/section.c: New method. From
12099 read_indirect_string_at_offset_from.
12100 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12101 (read_indirect_string_at_offset_from): Move to section.c.
12102 (read_indirect_string_at_offset): Rewrite.
12103 (read_indirect_line_string_at_offset): Remove.
12104 (read_indirect_string, read_indirect_line_string)
12105 (dwarf_decode_macro_bytes): Update.
12106
12107 2020-03-26 Tom Tromey <tom@tromey.com>
12108
12109 * dwarf2/section.h (struct dwarf2_section_info)
12110 <overload_complaint>: Declare.
12111 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12112 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12113 Rename from dwarf2_section_buffer_overflow_complaint.
12114 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12115 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12116
12117 2020-03-26 Tom Tromey <tom@tromey.com>
12118
12119 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12120 Declare.
12121 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12122 Move from read.c.
12123 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12124 to section.c.
12125
12126 2020-03-26 Tom Tromey <tom@tromey.com>
12127
12128 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12129
12130 2020-03-26 Tom Tromey <tom@tromey.com>
12131
12132 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12133 "builder".
12134 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12135 parameter.
12136 (dwarf_decode_macros): Update.
12137
12138 2020-03-26 Tom Tromey <tom@tromey.com>
12139
12140 * dwarf2/read.c (read_attribute_value): Update.
12141 (read_indirect_string_from_dwz): Move to dwz.c; change into
12142 method.
12143 (dwarf_decode_macro_bytes): Update.
12144 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12145 * dwarf2/dwz.c: New file.
12146 * Makefile.in (COMMON_SFILES): Add dwz.c.
12147
12148 2020-03-26 Tom Tromey <tom@tromey.com>
12149
12150 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12151 * dwarf2/read.c: Add include.
12152 * dwarf2/index-write.c: Add include.
12153 * dwarf2/index-cache.c: Add include.
12154 * dwarf2/dwz.h: New file.
12155
12156 2020-03-25 Tom Tromey <tom@tromey.com>
12157
12158 * compile/compile-object-load.c (get_out_value_type): Mention
12159 correct symbol name in error message.
12160
12161 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12162
12163 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12164
12165 2020-03-25 Tom de Vries <tdevries@suse.de>
12166
12167 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12168 * symmisc.c (dump_symtab_1): Print user and includes fields.
12169 (maintenance_info_symtabs): Same.
12170
12171 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12172
12173 PR gdb/25534
12174 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12175 (riscv_regcache_cooked_write): New function.
12176 (riscv_push_dummy_call): Use new function.
12177 (riscv_return_value): Likewise.
12178
12179 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12180
12181 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12182 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12183 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12184 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12185 * infrun.c (follow_fork): Likewise.
12186 (follow_fork_inferior): Likewise.
12187 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12188 * linux-nat.h (class linux_nat_target): Likewise.
12189 * remote.c (class remote_target) <follow_fork>: Likewise.
12190 (remote_target::follow_fork): Likewise.
12191 * target-delegates.c: Re-generate.
12192 * target.c (default_follow_fork): Likewise.
12193 (target_follow_fork): Likewise.
12194 * target.h (struct target_ops) <follow_fork>: Likewise.
12195 (target_follow_fork): Likewise.
12196
12197 2020-03-24 Tom de Vries <tdevries@suse.de>
12198
12199 * psymtab.c (maintenance_info_psymtabs): Print user field.
12200
12201 2020-03-20 Tom Tromey <tromey@adacore.com>
12202
12203 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12204 const.
12205 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12206 const.
12207
12208 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12209
12210 * ptrace.m4: Don't check for ptrace declaration.
12211 * config.in: Re-generate.
12212 * configure: Re-generate.
12213 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12214 not defined.
12215
12216 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12217
12218 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12219 `PTRACE_TYPE_RET'.
12220 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12221 * sparc-nat.c (gdb_ptrace): Likewise.
12222 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12223
12224 2020-03-20 Tom Tromey <tromey@adacore.com>
12225
12226 * c-exp.y (lex_one_token): Fix assert.
12227
12228 2020-03-20 Tom Tromey <tromey@adacore.com>
12229
12230 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12231 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12232 strncpy call.
12233
12234 2020-03-20 Tom Tromey <tromey@adacore.com>
12235
12236 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12237
12238 2020-03-20 Tom Tromey <tromey@adacore.com>
12239
12240 * ada-valprint.c (print_variant_part): Remove parameters; switch
12241 to value-based API.
12242 (print_field_values): Likewise.
12243 (ada_val_print_struct_union): Likewise.
12244 (ada_value_print_1): Update.
12245
12246 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12247
12248 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12249 nbsd_nat_target instead of inf_ptrace_target.
12250 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12251 nbsd_nat_target.
12252
12253 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12254
12255 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12256 it to the ptrace call.
12257 * (store_registers): Likewise.
12258
12259 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12260
12261 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12262 it to the ptrace call.
12263 * (store_registers): Likewise.
12264
12265 2020-03-19 Luis Machado <luis.machado@linaro.org>
12266
12267 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12268 valid, fetch vg value from ptrace.
12269
12270 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12271 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12272 * inf-ptrace.c: Likewise.
12273 * (gdb_ptrace): Add.
12274 * (inf_ptrace_target::resume): Update.
12275 * (inf_ptrace_target::xfer_partial): Likewise.
12276 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12277 * (inf_ptrace_peek_poke): Update.
12278
12279 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12280
12281 * x86-bsd-nat.c (gdb_ptrace): New.
12282 * (x86bsd_dr_set): Add new argument `ptid'.
12283 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12284 x86bsd_dr_set_addr): Update.
12285
12286 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12287
12288 * remote.c (remote_target::process_stop_reply): Handle events for
12289 all threads differently.
12290
12291 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12292
12293 * completer.c (completion_tracker::remove_completion): Define new
12294 function.
12295 * completer.h (completion_tracker::remove_completion): Declare new
12296 function.
12297 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12298 when adding a C++ function symbol.
12299
12300 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12301
12302 * completer.c (completion_tracker::completion_hash_entry): Define
12303 new class.
12304 (advance_to_filename_complete_word_point): Call
12305 recompute_lowest_common_denominator.
12306 (completion_tracker::completion_tracker): Call discard_completions
12307 to setup the hash table.
12308 (completion_tracker::discard_completions): Allow for being called
12309 from the constructor, pass new equal function, and element deleter
12310 when constructing the hash table. Initialise new class member
12311 variables.
12312 (completion_tracker::maybe_add_completion): Remove use of
12313 m_entries_vec, and store more information into m_entries_hash.
12314 (completion_tracker::recompute_lcd_visitor): New function, most
12315 content taken from...
12316 (completion_tracker::recompute_lowest_common_denominator):
12317 ...here, this now just visits each item in the hash calling the
12318 above visitor.
12319 (completion_tracker::build_completion_result): Remove use of
12320 m_entries_vec, call recompute_lowest_common_denominator.
12321 * completer.h (completion_tracker::have_completions): Remove use
12322 of m_entries_vec.
12323 (completion_tracker::completion_hash_entry): Declare new class.
12324 (completion_tracker::recompute_lowest_common_denominator): Change
12325 function signature.
12326 (completion_tracker::recompute_lcd_visitor): Declare new function.
12327 (completion_tracker::m_entries_vec): Delete.
12328 (completion_tracker::m_entries_hash): Initialize to NULL.
12329 (completion_tracker::m_lowest_common_denominator_valid): New
12330 member variable.
12331 (completion_tracker::m_lowest_common_denominator_max_length): New
12332 member variable.
12333
12334 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12335
12336 * regformats/regdef.h: Put reg in gdb namespace.
12337
12338 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12339
12340 * i386-bsd-nat.c (gdb_ptrace): New.
12341 * (i386bsd_fetch_inferior_registers,
12342 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12343 * (i386bsd_fetch_inferior_registers,
12344 i386bsd_store_inferior_registers) Use gdb_ptrace.
12345
12346 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12347
12348 * amd64-bsd-nat.c (gdb_ptrace): New.
12349 * (amd64bsd_fetch_inferior_registers,
12350 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12351 * (amd64bsd_fetch_inferior_registers,
12352 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12353
12354 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12355
12356 * user-regs.c (user_reg::read): Rename to...
12357 (user_reg::xread): ...this.
12358 * (append_user_reg): Rename argument `read' to `xread'.
12359 * (user_reg_add_builtin): Likewise.
12360 * (user_reg_add): Likewise.
12361 * (value_of_user_reg): Likewise.
12362
12363 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12364
12365 * sparc-nat.c (gdb_ptrace): New.
12366 * sparc-nat.c (sparc_fetch_inferior_registers)
12367 (sparc_store_inferior_registers) Remove obsolete comment.
12368 * sparc-nat.c (sparc_fetch_inferior_registers)
12369 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12370 * sparc-nat.c (sparc_fetch_inferior_registers)
12371 (sparc_store_inferior_registers) Use gdb_ptrace.
12372
12373 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12374
12375 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12376 it to the ptrace call.
12377 * sh-nbsd-nat.c (store_registers): Likewise.
12378
12379 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12380
12381 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12382 nbsd_nat_target instead of inf_ptrace_target.
12383 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12384 nbsd_nat_target.
12385
12386 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12387
12388 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12389
12390 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12391
12392 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12393 <sys/sysctl.h>.
12394 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12395
12396 2020-03-17 Tom de Vries <tdevries@suse.de>
12397
12398 PR gdb/23710
12399 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12400 fields.
12401 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12402 fields.
12403 (process_imported_unit_die): Skip import of c++ CUs.
12404
12405 2020-03-16 Tom Tromey <tom@tromey.com>
12406
12407 * p-valprint.c (pascal_object_print_value): Initialize
12408 base_value.
12409
12410 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12411 Shahab Vahedi <shahab@synopsys.com>
12412
12413 * Makefile.in: Add arch/arc.o
12414 * configure.tgt: Likewise.
12415 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12416 (_initialize_arc_tdep): Don't initialize old target descriptions.
12417 (arc_read_description): New function to cache target descriptions.
12418 * arc-tdep.h (arc_read_description): Add proto type.
12419 * arch/arc.c: New file.
12420 * arch/arc.h: Likewise.
12421 * features/Makefile: Replace old target descriptions with new.
12422 * features/arc-arcompact.c: Remove.
12423 * features/arc-arcompact.xml: Likewise.
12424 * features/arc-v2.c: Likewise
12425 * features/arc-v2.xml: Likewise
12426 * features/arc/aux-arcompact.xml: New file.
12427 * features/arc/aux-v2.xml: Likewise.
12428 * features/arc/core-arcompact.xml: Likewise.
12429 * features/arc/core-v2.xml: Likewise.
12430 * features/arc/aux-arcompact.c: Generate.
12431 * features/arc/aux-v2.c: Likewise.
12432 * features/arc/core-arcompact.c: Likewise.
12433 * features/arc/core-v2.c: Likewise.
12434 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12435
12436 2020-03-16 Tom Tromey <tromey@adacore.com>
12437
12438 PR gdb/25663:
12439 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12440 putting value into bcache.
12441
12442 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12443
12444 PR gdb/21500
12445 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12446 to...
12447 (amd64_windows_init_abi_common): ... this. Don't set size of
12448 long type.
12449 (amd64_windows_init_abi): New function.
12450 (amd64_cygwin_init_abi): New function.
12451 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12452 the Cygwin OS ABI.
12453 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12454 comment.
12455
12456 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12457
12458 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12459 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12460 (pe_import_directory_entry): New struct type.
12461 (is_linked_with_cygwin_dll): New function.
12462 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12463 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12464 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12465
12466 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12467
12468 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12469 i386_cygwin_core_osabi_sniffer.
12470
12471 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12472
12473 * i386-cygwin-tdep.c: Rename to...
12474 * i386-windows-tdep.c: ... this.
12475 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12476 i386-windows-tdep.c.
12477 * configure.tgt: Likewise.
12478
12479 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12482 * osabi.c (gdb_osabi_names): Add "Windows".
12483 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12484 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12485 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12486 i386_cygwin_osabi_sniffer.
12487 (_initialize_i386_cygwin_tdep): Register OS ABI
12488 GDB_OSABI_WINDOWS for i386.
12489 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12490 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12491 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12492 for x86-64.
12493 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12494 when the target matches '*-*-mingw*'.
12495
12496 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12497
12498 * defs.h (enum gdb_osabi): Move to...
12499 * osabi.h (enum gdb_osabi): ... here.
12500 * gdbarch.sh: Include osabi.h in gdbarch.h.
12501 * gdbarch.h: Re-generate.
12502
12503 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12506 function.
12507 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12508
12509 2020-03-14 Tom Tromey <tom@tromey.com>
12510
12511 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12512 for C++.
12513 (c_type_print_modifier): Likewise. Add "language" parameter.
12514 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12515 (c_type_print_base_1): Update.
12516 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12517 constants.
12518 * type-stack.c (type_stack::insert): Handle tp_atomic and
12519 tp_restrict.
12520 (type_stack::follow_type_instance_flags): Likewise.
12521 (type_stack::follow_types): Likewise. Merge type-following code.
12522 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12523 (space_identifier, cv_with_space_id)
12524 (const_or_volatile_or_space_identifier_noopt)
12525 (const_or_volatile_or_space_identifier): Remove.
12526 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12527 rules.
12528 (ptr_operator, typebase): Update.
12529 (enum token_flag) <FLAG_C>: New constant.
12530 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12531 "_Atomic".
12532 (lex_one_token): Handle FLAG_C.
12533
12534 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12535
12536 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12537 it to the ptrace call.
12538 * m68k-bsd-nat.c (store_registers): Likewise.
12539
12540 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12541
12542 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12543 gdb_byte *.
12544 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12545 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12546 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12547
12548 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12549
12550 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12551 nbsd_nat_target instead of inf_ptrace_target.
12552 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12553 nbsd_nat_target.
12554
12555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12556
12557 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12558 register_t.
12559
12560 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12561
12562 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12563 it to the ptrace call.
12564 * alpha-bsd-nat.c (store_registers): Likewise.
12565
12566 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12567
12568 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12569 includes.
12570 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12571 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12572 fill_fpregset): Likewise.
12573
12574 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12575
12576 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12577 nbsd_nat_target instead of inf_ptrace_target.
12578 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12579 nbsd_nat_target.
12580
12581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12582
12583 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12584 register_t.
12585
12586 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12587
12588 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12589 it to the ptrace call.
12590 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12591 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12592 * arm-nbsd-nat.c (store_register): Likewise.
12593 * arm-nbsd-nat.c (store_regs): Likewise.
12594 * arm-nbsd-nat.c (store_fp_register): Likewise.
12595 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12596
12597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12598
12599 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12600 nbsd_nat_target instead of inf_ptrace_target.
12601 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12602 nbsd_nat_target.
12603
12604 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12605
12606 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12607 it to the ptrace call.
12608 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12609
12610 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12611
12612 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12613 it to the ptrace call.
12614 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12615
12616 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12617
12618 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12619 gdb_byte *.
12620 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12621
12622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12623
12624 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12625 instead of inf_ptrace_target.
12626 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12627 nbsd_nat_target.
12628
12629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12630
12631 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12632 register_t.
12633
12634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12635
12636 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12637 register_t.
12638
12639 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12640
12641 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12642 register_t.
12643
12644 2020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * value.h (val_print): Don't declare.
12647 * valprint.h (val_print_array_elements)
12648 (val_print_scalar_formatted, generic_val_print): Don't declare.
12649 * valprint.c (generic_val_print_array): Take a struct value.
12650 (generic_val_print_ptr, generic_val_print_memberptr)
12651 (generic_val_print_bool, generic_val_print_int)
12652 (generic_val_print_char, generic_val_print_complex)
12653 (generic_val_print): Remove.
12654 (generic_value_print): Update.
12655 (do_val_print): Remove unused parameters. Don't call
12656 la_val_print.
12657 (val_print): Remove.
12658 (common_val_print): Update. Don't call value_check_printable.
12659 (val_print_scalar_formatted, val_print_array_elements): Remove.
12660 * rust-lang.c (rust_val_print): Remove.
12661 (rust_language_defn): Update.
12662 * p-valprint.c (pascal_val_print): Remove.
12663 (pascal_value_print_inner): Update.
12664 (pascal_object_print_val_fields, pascal_object_print_val):
12665 Remove.
12666 (pascal_object_print_static_field): Update.
12667 * p-lang.h (pascal_val_print): Don't declare.
12668 * p-lang.c (pascal_language_defn): Update.
12669 * opencl-lang.c (opencl_language_defn): Update.
12670 * objc-lang.c (objc_language_defn): Update.
12671 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12672 * m2-lang.h (m2_val_print): Don't declare.
12673 * m2-lang.c (m2_language_defn): Update.
12674 * language.h (struct language_defn) <la_val_print>: Remove.
12675 * language.c (unk_lang_value_print_inner): Rename. Change
12676 argument types.
12677 (unknown_language_defn, auto_language_defn): Update.
12678 * go-valprint.c (go_val_print): Remove.
12679 * go-lang.h (go_val_print): Don't declare.
12680 * go-lang.c (go_language_defn): Update.
12681 * f-valprint.c (f_val_print): Remove.
12682 * f-lang.h (f_value_print): Don't declare.
12683 * f-lang.c (f_language_defn): Update.
12684 * d-valprint.c (d_val_print): Remove.
12685 * d-lang.h (d_value_print): Don't declare.
12686 * d-lang.c (d_language_defn): Update.
12687 * cp-valprint.c (cp_print_value_fields)
12688 (cp_print_value_fields_rtti, cp_print_value): Remove.
12689 (cp_print_static_field): Update.
12690 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12691 (c_val_print_struct, c_val_print_union, c_val_print_int)
12692 (c_val_print_memberptr, c_val_print): Remove.
12693 * c-lang.h (c_val_print_array, cp_print_value_fields)
12694 (cp_print_value_fields_rtti): Don't declare.
12695 * c-lang.c (c_language_defn, cplus_language_defn)
12696 (asm_language_defn, minimal_language_defn): Update.
12697 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12698 (ada_val_print_enum): Take a struct value.
12699 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12700 (ada_val_print): Remove.
12701 (ada_value_print_1): Update.
12702 (printable_val_type): Remove.
12703 * ada-lang.h (ada_val_print): Don't declare.
12704 * ada-lang.c (ada_language_defn): Update.
12705
12706 2020-03-13 Tom Tromey <tom@tromey.com>
12707
12708 * valprint.c (do_val_print): Update.
12709 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12710 a struct value.
12711 (value_to_value_object_no_release): Declare.
12712 * python/py-value.c (value_to_value_object_no_release): New
12713 function.
12714 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12715 struct value.
12716 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12717 function.
12718 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12719 a struct value.
12720 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12721 Declare.
12722 (gdbscm_apply_val_pretty_printer): Take a struct value.
12723 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12724 value.
12725 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12726 value.
12727 * extension-priv.h (struct extension_language_ops)
12728 <apply_val_pretty_printer>: Take a struct value.
12729 * cp-valprint.c (cp_print_value): Create a struct value.
12730 (cp_print_value): Update.
12731
12732 2020-03-13 Tom Tromey <tom@tromey.com>
12733
12734 * ada-valprint.c (print_field_values): Call common_val_print.
12735
12736 2020-03-13 Tom Tromey <tom@tromey.com>
12737
12738 * ada-valprint.c (val_print_packed_array_elements): Remove
12739 bitoffset and val parameters. Call common_val_print.
12740 (ada_val_print_string): Remove offset, address, and original_value
12741 parameters.
12742 (ada_val_print_array): Update.
12743 (ada_value_print_array): New function.
12744 (ada_value_print_1): Call it.
12745
12746 2020-03-13 Tom Tromey <tom@tromey.com>
12747
12748 * ada-valprint.c (ada_value_print): Use common_val_print.
12749
12750 2020-03-13 Tom Tromey <tom@tromey.com>
12751
12752 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12753
12754 2020-03-13 Tom Tromey <tom@tromey.com>
12755
12756 * ada-valprint.c (ada_value_print_num): New function.
12757 (ada_value_print_1): Use it.
12758
12759 2020-03-13 Tom Tromey <tom@tromey.com>
12760
12761 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12762
12763 2020-03-13 Tom Tromey <tom@tromey.com>
12764
12765 * ada-valprint.c (ada_value_print_ptr): New function.
12766 (ada_value_print_1): Use it.
12767
12768 2020-03-13 Tom Tromey <tom@tromey.com>
12769
12770 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12771 call common_val_print.
12772 (ada_val_print_1): Update.
12773 (ada_value_print_1): New function.
12774 (ada_value_print_inner): Rewrite.
12775
12776 2020-03-13 Tom Tromey <tom@tromey.com>
12777
12778 * cp-valprint.c (cp_print_value_fields): Update.
12779 (cp_print_value): New function.
12780
12781 2020-03-13 Tom Tromey <tom@tromey.com>
12782
12783 * m2-valprint.c (m2_value_print_inner): Use
12784 cp_print_value_fields.
12785 * cp-valprint.c (cp_print_value_fields): New function.
12786 * c-valprint.c (c_value_print_struct): New function.
12787 (c_value_print_inner): Use c_value_print_struct.
12788 * c-lang.h (cp_print_value_fields): Declare.
12789
12790 2020-03-13 Tom Tromey <tom@tromey.com>
12791
12792 * c-valprint.c (c_value_print_array): New function.
12793 (c_value_print_inner): Use it.
12794
12795 2020-03-13 Tom Tromey <tom@tromey.com>
12796
12797 * c-valprint.c (c_value_print_memberptr): New function.
12798 (c_value_print_inner): Use it.
12799
12800 2020-03-13 Tom Tromey <tom@tromey.com>
12801
12802 * c-valprint.c (c_value_print_int): New function.
12803 (c_value_print_inner): Use it.
12804
12805 2020-03-13 Tom Tromey <tom@tromey.com>
12806
12807 * c-valprint.c (c_value_print_ptr): New function.
12808 (c_value_print_inner): Use it.
12809
12810 2020-03-13 Tom Tromey <tom@tromey.com>
12811
12812 * c-valprint.c (c_value_print_inner): Rewrite.
12813
12814 2020-03-13 Tom Tromey <tom@tromey.com>
12815
12816 * valprint.c (generic_value_print_complex): New function.
12817 (generic_value_print): Use it.
12818
12819 2020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * valprint.c (generic_val_print_float): Don't call
12822 val_print_scalar_formatted.
12823 (generic_val_print, generic_value_print): Update.
12824
12825 2020-03-13 Tom Tromey <tom@tromey.com>
12826
12827 * valprint.c (generic_value_print_char): New function
12828 (generic_value_print): Use it.
12829
12830 2020-03-13 Tom Tromey <tom@tromey.com>
12831
12832 * valprint.c (generic_value_print_int): New function.
12833 (generic_value_print): Use it.
12834
12835 2020-03-13 Tom Tromey <tom@tromey.com>
12836
12837 * valprint.c (generic_value_print_bool): New function.
12838 (generic_value_print): Use it.
12839
12840 2020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * valprint.c (generic_val_print_func): Simplify.
12843 (generic_val_print, generic_value_print): Update.
12844
12845 2020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.c (generic_val_print_flags): Remove.
12848 (generic_val_print, generic_value_print): Update.
12849 (val_print_type_code_flags): Add original_value parameter.
12850
12851 2020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * valprint.c (generic_val_print): Update.
12854 (generic_value_print): Update.
12855 * valprint.c (generic_val_print_enum): Don't call
12856 val_print_scalar_formatted.
12857
12858 2020-03-13 Tom Tromey <tom@tromey.com>
12859
12860 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12861 * valprint.c (generic_value_print_ptr): New function.
12862
12863 2020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * valprint.c (generic_value_print): Rewrite.
12866
12867 2020-03-13 Tom Tromey <tom@tromey.com>
12868
12869 * p-valprint.c (pascal_object_print_value_fields)
12870 (pascal_object_print_value): New functions.
12871
12872 2020-03-13 Tom Tromey <tom@tromey.com>
12873
12874 * p-valprint.c (pascal_value_print_inner): Rewrite.
12875
12876 2020-03-13 Tom Tromey <tom@tromey.com>
12877
12878 * f-valprint.c (f_value_print_innner): Rewrite.
12879
12880 2020-03-13 Tom Tromey <tom@tromey.com>
12881
12882 * m2-valprint.c (m2_print_unbounded_array): New overload.
12883 (m2_print_unbounded_array): Update.
12884 (m2_print_array_contents): Take a struct value.
12885 (m2_value_print_inner): Rewrite.
12886
12887 2020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12890 (d_value_print_inner): New function.
12891 * d-lang.h (d_value_print_inner): Declare.
12892 * d-lang.c (d_language_defn): Use d_value_print_inner.
12893
12894 2020-03-13 Tom Tromey <tom@tromey.com>
12895
12896 * go-valprint.c (go_value_print_inner): New function.
12897 * go-lang.h (go_value_print_inner): Declare.
12898 * go-lang.c (go_language_defn): Use go_value_print_inner.
12899
12900 2020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12903 API.
12904 (rust_val_print): Rewrite.
12905 (rust_value_print_inner): New function, from rust_val_print.
12906 (rust_language_defn): Use rust_value_print_inner.
12907
12908 2020-03-13 Tom Tromey <tom@tromey.com>
12909
12910 * ada-valprint.c (ada_value_print_inner): New function.
12911 * ada-lang.h (ada_value_print_inner): Declare.
12912 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12913
12914 2020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * f-valprint.c (f_value_print_innner): New function.
12917 * f-lang.h (f_value_print_innner): Declare.
12918 * f-lang.c (f_language_defn): Use f_value_print_innner.
12919
12920 2020-03-13 Tom Tromey <tom@tromey.com>
12921
12922 * p-valprint.c (pascal_value_print_inner): New function.
12923 * p-lang.h (pascal_value_print_inner): Declare.
12924 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12925
12926 2020-03-13 Tom Tromey <tom@tromey.com>
12927
12928 * m2-valprint.c (m2_value_print_inner): New function.
12929 * m2-lang.h (m2_value_print_inner): Declare.
12930 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12931
12932 2020-03-13 Tom Tromey <tom@tromey.com>
12933
12934 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12935 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12936 * c-valprint.c (c_value_print_inner): New function.
12937 * c-lang.h (c_value_print_inner): Declare.
12938 * c-lang.c (c_language_defn, cplus_language_defn)
12939 (asm_language_defn, minimal_language_defn): Use
12940 c_value_print_inner.
12941
12942 2020-03-13 Tom Tromey <tom@tromey.com>
12943
12944 * p-valprint.c (pascal_object_print_value_fields): Now static.
12945 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12946
12947 2020-03-13 Tom Tromey <tom@tromey.com>
12948
12949 * c-valprint.c (c_val_print_array): Simplify.
12950
12951 2020-03-13 Tom Tromey <tom@tromey.com>
12952
12953 * valprint.c (value_print_array_elements): New function.
12954 * valprint.h (value_print_array_elements): Declare.
12955
12956 2020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12959 * mips-tdep.c (mips_print_register): Use
12960 value_print_scalar_formatted.
12961
12962 2020-03-13 Tom Tromey <tom@tromey.com>
12963
12964 * valprint.h (value_print_scalar_formatted): Declare.
12965 * valprint.c (value_print_scalar_formatted): New function.
12966
12967 2020-03-13 Tom Tromey <tom@tromey.com>
12968
12969 * valprint.h (generic_value_print): Declare.
12970 * valprint.c (generic_value_print): New function.
12971
12972 2020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * valprint.c (do_val_print): Call la_value_print_inner, if
12975 available.
12976 * rust-lang.c (rust_language_defn): Update.
12977 * p-lang.c (pascal_language_defn): Update.
12978 * opencl-lang.c (opencl_language_defn): Update.
12979 * objc-lang.c (objc_language_defn): Update.
12980 * m2-lang.c (m2_language_defn): Update.
12981 * language.h (struct language_defn) <la_value_print_inner>: New
12982 member.
12983 * language.c (unknown_language_defn, auto_language_defn): Update.
12984 * go-lang.c (go_language_defn): Update.
12985 * f-lang.c (f_language_defn): Update.
12986 * d-lang.c (d_language_defn): Update.
12987 * c-lang.c (c_language_defn, cplus_language_defn)
12988 (asm_language_defn, minimal_language_defn): Update.
12989 * ada-lang.c (ada_language_defn): Update.
12990
12991 2020-03-13 Tom Tromey <tom@tromey.com>
12992
12993 * c-valprint.c (c_value_print): Use common_val_print.
12994
12995 2020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12998
12999 2020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * f-valprint.c (f77_print_array_1, f_val_print): Use
13002 common_val_print.
13003
13004 2020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * riscv-tdep.c (riscv_print_one_register_info): Use
13007 common_val_print.
13008
13009 2020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * mi/mi-main.c (output_register): Use common_val_print.
13012
13013 2020-03-13 Tom Tromey <tom@tromey.com>
13014
13015 * infcmd.c (default_print_one_register_info): Use
13016 common_val_print.
13017
13018 2020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * valprint.h (common_val_print_checked): Declare.
13021 * valprint.c (common_val_print_checked): New function.
13022 * stack.c (print_frame_arg): Use common_val_print_checked.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * valprint.c (do_val_print): New function, from val_print.
13027 (val_print): Use do_val_print.
13028 (common_val_print): Use do_val_print.
13029
13030 2020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * valprint.c (value_print): Use scoped_value_mark.
13033
13034 2020-03-13 Tom de Vries <tdevries@suse.de>
13035
13036 PR symtab/25646
13037 * psymtab.c (partial_symtab::partial_symtab): Don't set
13038 globals_offset and statics_offset. Push element onto
13039 current_global_psymbols and current_static_psymbols stacks.
13040 (concat): New function.
13041 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13042 element from current_global_psymbols and current_static_psymbols
13043 stacks. Concat popped elements to global_psymbols and
13044 static_symbols.
13045 (add_psymbol_to_list): Use current_global_psymbols and
13046 current_static_psymbols stacks.
13047 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13048 current_static_psymbols fields.
13049
13050 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13051
13052 * corelow.c (sniff_core_bfd): Remove.
13053 (class core_target) <m_core_vec>: Remove.
13054 (core_target::core_target): Update.
13055 (core_file_fns): Remove.
13056 (deprecated_add_core_fns): Remove.
13057 (default_core_sniffer): Remove.
13058 (sniff_core_bfd): Remove.
13059 (default_check_format): Remove.
13060 (gdb_check_format): Remove.
13061 (core_target_open): Update.
13062 (core_target::get_core_register_section): Update.
13063 (get_core_registers_cb): Update.
13064 (core_target::fetch_registers): Update.
13065 * gdbcore.h (struct core_fns): Remove.
13066 (deprecated_add_core_fns): Remove.
13067 (default_core_sniffer): Remove.
13068 (default_check_format): Remove.
13069
13070 2020-03-12 Tom Tromey <tom@tromey.com>
13071
13072 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13073 CORE_ADDR.
13074 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13075
13076 2020-03-12 Tom Tromey <tom@tromey.com>
13077
13078 * remote.c (remote_target::download_tracepoint)
13079 (remote_target::enable_tracepoint)
13080 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13081 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13082 sprintf_vma.
13083
13084 2020-03-12 Tom Tromey <tom@tromey.com>
13085
13086 * symfile-mem.c: Update CORE_ADDR size assert.
13087
13088 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13089
13090 * selftest.m4: Move to gdbsupport/.
13091 * acinclude.m4: Update path to selftest.m4.
13092
13093 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13094
13095 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13096 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13097 gdbarch-selfselftests.c and selftest-arch.c.
13098 (SUBDIR_UNITTESTS_OBS): Rename to...
13099 (SELFTESTS_OBS): ... this.
13100 (COMMON_SFILES): Remove disasm-selftests.c and
13101 gdbarch-selftests.c.
13102 * configure.ac: Don't add selftest-arch.{c,o} to
13103 CONFIG_{SRCS,OBS}.
13104 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13105 preprocessor conditions.
13106
13107 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13108
13109 * configure.ac: Don't source bfd/development.sh.
13110 * selftest.m4: Modify comment.
13111 * configure: Re-generate.
13112
13113 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13114
13115 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13116 not "true" or "false".
13117 * configure: Re-generate.
13118
13119 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13120
13121 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13122 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13123 renamed to arm_nbsd_supply_gregset.
13124 (fetch_register): Update to call arm_nbsd_supply_gregset.
13125 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13126 (arm_netbsd_nat_target::fetch_registers): Update.
13127 (fetch_elfcore_registers): Removed.
13128 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13129 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13130 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13131 not require NetBSD system headers.
13132 (arm_nbsd_regset): New struct.
13133 (arm_nbsd_iterate_over_regset_sections): New function.
13134 (arm_netbsd_init_abi_common): Updated to call
13135 set_gdbarch_iterate_over_regset_sections.
13136 * arm-nbsd-tdep.h: New file.
13137
13138 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13139
13140 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13141 recursion.
13142
13143 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13144
13145 * configure: Re-generate.
13146
13147 2020-03-11 Tom Tromey <tromey@adacore.com>
13148
13149 * ada-typeprint.c (print_choices): Fix comment.
13150
13151 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13154 previous item in the list, when the list has no items.
13155
13156 2020-03-11 Tom de Vries <tdevries@suse.de>
13157
13158 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13159 PROP_LOCLIST handling code.
13160
13161 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13162
13163 * buildsym-legacy.c (record_line): Pass extra parameter to
13164 record_line.
13165 * buildsym.c (buildsym_compunit::record_line): Take an extra
13166 parameter, reduce duplication in the line table, and record the
13167 is_stmt flag in the line table.
13168 * buildsym.h (buildsym_compunit::record_line): Add extra
13169 parameter.
13170 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13171 non-statement lines.
13172 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13173 this to the symtab builder.
13174 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13175 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13176 through to dwarf_record_line_1.
13177 * infrun.c (process_event_stop_test): When stepping, don't stop at
13178 a non-statement instruction, and only refresh the step info when
13179 we land in the middle of a line's range. Also add an extra
13180 comment.
13181 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13182 field.
13183 * record-btrace.c (btrace_find_line_range): Only record lines
13184 marked as is-statement.
13185 * stack.c (frame_show_address): Show the frame address if we are
13186 in a non-statement sal.
13187 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13188 (maintenance_print_one_line_table): Print a header for the is_stmt
13189 column, and include is_stmt information in the output.
13190 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13191 preference to non-statements.
13192 (find_pcs_for_symtab_line): Prefer is-statement entries.
13193 (find_line_common): Likewise.
13194 * symtab.h (struct linetable_entry): Add is_stmt field.
13195 (struct symtab_and_line): Likewise.
13196 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13197 arranging the line table.
13198
13199 2020-03-07 Tom de Vries <tdevries@suse.de>
13200
13201 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13202 DIE.
13203
13204 2020-03-07 Tom Tromey <tom@tromey.com>
13205
13206 * valops.c (value_literal_complex): Remove obsolete comment.
13207 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13208 comment.
13209
13210 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13211
13212 * infrun.h: Forward-declare thread_info.
13213 (set_step_info): Add thread_info parameter, add doc.
13214 * infrun.c (set_step_info): Add thread_info parameter, move doc
13215 to header.
13216 * infrun.c (process_event_stop_test): Pass thread to
13217 set_step_info call.
13218 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13219 set_step_info.
13220 (prepare_one_step): Add thread_info parameter, pass it to
13221 set_step_frame and prepare_one_step (recursive) call.
13222 (step_1): Pass thread to prepare_one_step call.
13223 (step_command_fsm::should_stop): Pass thread to
13224 prepare_one_step.
13225 (until_next_fsm): Pass thread to set_step_frame call.
13226 (finish_command): Pass thread to set_step_info call.
13227
13228 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13229
13230 * windows-tdep.c (windows_solib_create_inferior_hook):
13231 Check if inferior is running.
13232
13233 2020-03-06 Tom de Vries <tdevries@suse.de>
13234
13235 * NEWS: Fix "the the".
13236 * ctfread.c: Same.
13237
13238 2020-03-06 Tom de Vries <tdevries@suse.de>
13239
13240 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13241
13242 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * .dir-locals.el: Add a comment referencing the other copies of
13245 this file.
13246
13247 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13248
13249 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13250 psargs.
13251
13252 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13253
13254 * .gitattributes: New file.
13255
13256 2020-03-04 Tom Tromey <tom@tromey.com>
13257
13258 * symmisc.c (print_symbol_bcache_statistics)
13259 (print_objfile_statistics): Update.
13260 * symfile.c (allocate_symtab): Use intern.
13261 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13262 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13263 macro_cache>: Remove.
13264 <string_cache>: New member.
13265 (struct objfile) <intern>: New methods.
13266 * elfread.c (elf_symtab_read): Use intern.
13267 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13268 (dwarf2_compute_name, dwarf2_physname)
13269 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13270 names.
13271 (guess_partial_die_structure_name): Update.
13272 (partial_die_info::fixup): Intern name.
13273 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13274 name.
13275 (dwarf2_name): Intern name. Update.
13276 * buildsym.c (buildsym_compunit::get_macro_table): Use
13277 string_cache.
13278
13279 2020-03-04 Tom Tromey <tom@tromey.com>
13280
13281 * jit.c (bfd_open_from_target_memory): Make "target" const.
13282 * corefile.c (gnutarget): Now const.
13283 * gdbcore.h (gnutarget): Now const.
13284
13285 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13286
13287 * NEWS: Mention support for WOW64 processes.
13288 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13289 (amd64_windows_segment_register_p): Remove static.
13290 (_initialize_amd64_windows_nat): Update.
13291 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13292 * i386-windows-nat.c (context_offset): Update.
13293 (i386_mappings): Rename and remove static.
13294 (i386_windows_segment_register_p): Remove static.
13295 (_initialize_i386_windows_nat): Update.
13296 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13297 (STATUS_WX86_SINGLE_STEP): New macro.
13298 (EnumProcessModulesEx): New macro.
13299 (Wow64SuspendThread): New macro.
13300 (Wow64GetThreadContext): New macro.
13301 (Wow64SetThreadContext): New macro.
13302 (Wow64GetThreadSelectorEntry): New macro.
13303 (windows_set_context_register_offsets): Add static.
13304 (windows_set_segment_register_p): Likewise.
13305 (windows_add_thread): Adapt for WOW64 processes.
13306 (windows_fetch_one_register): Likewise.
13307 (windows_nat_target::fetch_registers): Likewise.
13308 (windows_store_one_register): Likewise.
13309 (display_selector): Likewise.
13310 (display_selectors): Likewise.
13311 (handle_exception): Likewise.
13312 (windows_continue): Likewise.
13313 (windows_nat_target::resume): Likewise.
13314 (windows_add_all_dlls): Likewise.
13315 (do_initial_windows_stuff): Likewise.
13316 (windows_nat_target::attach): Likewise.
13317 (windows_get_exec_module_filename): Likewise.
13318 (windows_nat_target::create_inferior): Likewise.
13319 (windows_xfer_siginfo): Likewise.
13320 (_initialize_loadable): Initialize Wow64SuspendThread,
13321 Wow64GetThreadContext, Wow64SetThreadContext,
13322 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13323 * windows-nat.h (windows_set_context_register_offsets):
13324 Remove declaration.
13325 (windows_set_segment_register_p): Likewise.
13326 (i386_windows_segment_register_p): Add declaration.
13327 (amd64_windows_segment_register_p): Likewise.
13328
13329 2020-03-04 Luis Machado <luis.machado@linaro.org>
13330
13331 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13332 in "info registers" for AArch64/ARM.
13333
13334 The change caused "info registers" to not print GPR's.
13335
13336 gdb/ChangeLog:
13337
13338 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13339
13340 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13341 when reg->group is empty and reggroup is not.
13342
13343 2020-03-03 Tom Tromey <tromey@adacore.com>
13344
13345 * dwarf2/frame.c (struct dwarf2_frame_cache)
13346 <checked_tailcall_bottom, entry_cfa_sp_offset,
13347 entry_cfa_sp_offset_p>: Remove members.
13348 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13349 (dwarf2_frame_prev_register): Don't call
13350 dwarf2_tailcall_sniffer_first.
13351 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13352 * frame-unwind.c (add_unwinder): New fuction.
13353 (frame_unwind_init): Use it. Add tailcall unwinder.
13354
13355 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13356 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13357
13358 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13359 value should be printed as true.
13360
13361 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13362
13363 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13364 (windows_init_abi): Set and use windows_so_ops.
13365
13366 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13367
13368 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13369 when verifying if dealing with a convenience variable.
13370
13371 2020-03-03 Luis Machado <luis.machado@linaro.org>
13372
13373 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13374
13375 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13376
13377 * infrun.c (gdbarch_supports_displaced_stepping): New.
13378 (use_displaced_stepping): Break up conditions in smaller pieces.
13379 Use gdbarch_supports_displaced_stepping.
13380 (displaced_step_prepare_throw): Use
13381 gdbarch_supports_displaced_stepping.
13382
13383 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13384
13385 * NEWS: Mention new behaviour of the history filename.
13386 * top.c (write_history_p): Add comment.
13387 (show_write_history_p): Add header comment, give a different
13388 message when history writing is on, but the history filename is
13389 empty.
13390 (history_filename): Add comment.
13391 (history_filename_empty): New function.
13392 (show_history_filename): Add header comment, give a different
13393 message when the filename is empty.
13394 (init_history): Compare history_filename against nullptr, and only
13395 read history if the filename is not empty.
13396 (set_history_filename): Add header comment, and only make
13397 non-empty filenames absolute.
13398 (init_main): Make the filename argument to 'set history filename'
13399 optional.
13400
13401 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13402
13403 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13404 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13405 (fetch_fp_register): Update.
13406 (fetch_fp_regs): Update.
13407 (store_fp_register): Update.
13408 (store_fp_regs): Update.
13409 (arm_netbsd_nat_target::read_description): New function.
13410 (fetch_elfcore_registers): Update.
13411
13412 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13413
13414 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13415 general_thread if the stop reply is missing a thread-id.
13416 (remote_target::process_stop_reply): Use the first non-exited
13417 thread if the target didn't pass a thread-id.
13418 * infrun.c (do_target_wait): Move call to
13419 switch_to_inferior_no_thread to ....
13420 (do_target_wait_1): ... here.
13421
13422 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13423
13424 * debuginfod-support.c: Include defs.h first.
13425
13426 2020-02-28 Tom de Vries <tdevries@suse.de>
13427
13428 * symfile.c (set_initial_language): Use default language for lookup.
13429
13430 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13431
13432 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13433 reader variable, pass `this` to read_cutu_die_from_dwo.
13434
13435 2020-02-27 Aaron Merey <amerey@redhat.com>
13436
13437 * source.c (open_source_file): Check for nullptr when computing
13438 srcpath.
13439
13440 2020-02-27 Tom Tromey <tromey@adacore.com>
13441
13442 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13443 member.
13444 (dwarf2_add_field): Don't update nfields.
13445 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13446
13447 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13450 abs.
13451
13452 2020-02-26 Tom Tromey <tom@tromey.com>
13453
13454 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13455 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13456 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13457 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13458 per_cu_data.
13459
13460 2020-02-26 Tom Tromey <tom@tromey.com>
13461
13462 * dwarf2/index-write.c (psym_index_map): Change type.
13463 (add_address_entry_worker, write_one_signatured_type)
13464 (recursively_count_psymbols, recursively_write_psymbols)
13465 (class debug_names, psyms_seen_size, write_gdbindex)
13466 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13467
13468 2020-02-26 Aaron Merey <amerey@redhat.com>
13469
13470 * Makefile.in: Handle optional debuginfod support.
13471 * NEWS: Update.
13472 * README: Add --with-debuginfod summary.
13473 * config.in: Regenerate.
13474 * configure: Regenerate.
13475 * configure.ac: Handle optional debuginfod support.
13476 * debuginfod-support.c: debuginfod helper functions.
13477 * debuginfod-support.h: Ditto.
13478 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13479 summary.
13480 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13481 when a dwz file cannot be found.
13482 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13483 debuginfo file cannot be found.
13484 * source.c (open_source_file): Query debuginfod servers when a
13485 source file cannot be found.
13486 * top.c (print_gdb_configuration): Include
13487 --{with,without}-debuginfod in the output.
13488
13489 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13490
13491 * thread.c (thr_try_catch_cmd): Print thread name.
13492
13493 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13494
13495 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13497 dwarf2_fetch_die_type_sect_off): Move to...
13498 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13499 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13500 dwarf2_fetch_die_type_sect_off): ... here.
13501 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13502 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13503 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13504
13505 2020-02-26 Tom de Vries <tdevries@suse.de>
13506
13507 PR gdb/25603
13508 * symfile.c (set_initial_language): Exit-early if
13509 language_mode == language_mode_manual.
13510
13511 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13512
13513 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13514 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13515 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13516
13517 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13518
13519 * gdbtypes.c (create_array_type_with_stride): Handle negative
13520 array strides.
13521 * valarith.c (value_subscripted_rvalue): Likewise.
13522
13523 2020-02-25 Luis Machado <luis.machado@linaro.org>
13524
13525 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13526
13527 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13528
13529 * loc.h (dwarf2_get_die_type): Move to...
13530 * read.h (dwarf2_get_die_type): ... here.
13531 * read.c (dwarf2_get_die_type): Move doc to header.
13532
13533 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13534
13535 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13536 'gnulib/Makefile.in' to the list.
13537
13538 2020-02-24 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13541 Remove.
13542 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13543 XOBNEWVEC.
13544
13545 2020-02-24 Tom Tromey <tom@tromey.com>
13546
13547 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13548 New method.
13549 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13550 (dw2_do_instantiate_symtab, dw2_get_file_names)
13551 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13552
13553 2020-02-24 Tom Tromey <tom@tromey.com>
13554
13555 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13556 make_scoped_restore.
13557 (dwarf2_psymtab::read_symtab): Don't clear
13558 reading_partial_symbols.
13559
13560 2020-02-24 Tom de Vries <tdevries@suse.de>
13561
13562 PR gdb/25592
13563 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13564
13565 2020-02-24 Tom de Vries <tdevries@suse.de>
13566
13567 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13568 commands layout next/prev/regs.
13569
13570 2020-02-22 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13573 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13574
13575 2020-02-22 Tom Tromey <tom@tromey.com>
13576
13577 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13578
13579 2020-02-22 Tom Tromey <tom@tromey.com>
13580
13581 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13582 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13583 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13584 * tui/tui.c (_initialize_tui): Add usage text.
13585
13586 2020-02-22 Tom Tromey <tom@tromey.com>
13587
13588 * tui/tui-win.c (tui_set_focus_command)
13589 (tui_set_win_height_command): Use error_no_arg.
13590 (_initialize_tui_win): Update help text.
13591 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13592
13593 2020-02-22 Tom Tromey <tom@tromey.com>
13594
13595 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13596 * tui/tui-disasm.h (struct tui_disasm_window)
13597 <display_start_addr>: Declare.
13598 * tui/tui-source.h (struct tui_source_window)
13599 <display_start_addr>: Declare.
13600 * tui/tui-winsource.h (struct tui_source_window_base)
13601 <show_source_line, display_start_addr>: New methods.
13602 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13603 Rename and move to protected section.
13604 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13605 (tui_source_window_base::do_erase_source_content): Update.
13606 (tui_source_window_base::show_source_line): Now a method.
13607 (tui_source_window_base::show_source_content)
13608 (tui_source_window_base::tui_source_window_base)
13609 (tui_source_window_base::rerender)
13610 (tui_source_window_base::refill)
13611 (tui_source_window_base::do_scroll_horizontal)
13612 (tui_source_window_base::set_is_exec_point_at)
13613 (tui_source_window_base::update_breakpoint_info)
13614 (tui_source_window_base::update_exec_info): Update.
13615 * tui/tui-source.c (tui_source_window::set_contents)
13616 (tui_source_window::showing_source_p)
13617 (tui_source_window::do_scroll_vertical)
13618 (tui_source_window::location_matches_p)
13619 (tui_source_window::line_is_displayed): Update.
13620 (tui_source_window::display_start_addr): New method.
13621 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13622 (tui_disasm_window::do_scroll_vertical)
13623 (tui_disasm_window::location_matches_p): Update.
13624 (tui_disasm_window::display_start_addr): New method.
13625
13626 2020-02-22 Tom Tromey <tom@tromey.com>
13627
13628 * NEWS: Add entry for gdb.register_window_type.
13629 * tui/tui-layout.h (window_factory): New typedef.
13630 (tui_register_window): Declare.
13631 * tui/tui-layout.c (saved_tui_windows): New global.
13632 (tui_apply_current_layout): Use it.
13633 (tui_register_window): New function.
13634 * python/python.c (do_start_initialization): Call
13635 gdbpy_initialize_tui.
13636 (python_GdbMethods): Add "register_window_type" function.
13637 * python/python-internal.h (gdbpy_register_tui_window)
13638 (gdbpy_initialize_tui): Declare.
13639 * python/py-tui.c: New file.
13640 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13641
13642 2020-02-22 Tom Tromey <tom@tromey.com>
13643
13644 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13645
13646 2020-02-22 Tom Tromey <tom@tromey.com>
13647
13648 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13649 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13650 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13651 (tui_set_win_focus_to): Move from tui-win.c.
13652
13653 2020-02-22 Tom Tromey <tom@tromey.com>
13654
13655 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13656 functions.
13657 (known_window_types): New global.
13658 (tui_get_window_by_name): Reimplement.
13659 (initialize_known_windows): New function.
13660 (validate_window_name): Rewrite.
13661 (_initialize_tui_layout): Call initialize_known_windows.
13662
13663 2020-02-22 Tom Tromey <tom@tromey.com>
13664
13665 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13666 Remove constants.
13667 * tui/tui-winsource.h (struct tui_source_window_base)
13668 <tui_source_window_base>: Remove parameter.
13669 * tui/tui-winsource.c
13670 (tui_source_window_base::tui_source_window_base): Remove
13671 parameter.
13672 (tui_source_window_base::refill): Update.
13673 * tui/tui-stack.h (struct tui_locator_window)
13674 <tui_locator_window>: Update.
13675 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13676 Default the constructor.
13677 * tui/tui-regs.h (struct tui_data_item_window)
13678 <tui_data_item_window>: Default the constructor.
13679 (struct tui_data_window) <tui_data_window>: Likewise.
13680 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13681 Default the constructor.
13682 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13683 Default the constructor.
13684 <type>: Remove.
13685 (struct tui_win_info) <tui_win_info>: Default the constructor.
13686 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13687 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13688 Default the constructor.
13689
13690 2020-02-22 Tom Tromey <tom@tromey.com>
13691
13692 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13693 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13694 * tui/tui-win.c (tui_resize_all): Don't call
13695 tui_delete_invisible_windows.
13696 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13697 done.
13698 (tui_set_layout): Update.
13699 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13700 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13701 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13702
13703 2020-02-22 Tom Tromey <tom@tromey.com>
13704
13705 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13706 correctly.
13707
13708 2020-02-22 Tom Tromey <tom@tromey.com>
13709
13710 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13711
13712 2020-02-22 Tom Tromey <tom@tromey.com>
13713
13714 * tui/tui-winsource.h (struct tui_source_window_iterator)
13715 <inner_iterator>: New etytypedef.
13716 <tui_source_window_iterator>: Take "end" parameter.
13717 <tui_source_window_iterator>: Take iterator.
13718 <operator*, advance>: Update.
13719 <m_iter>: Change type.
13720 <m_end>: New field.
13721 (struct tui_source_windows) <begin, end>: Update.
13722 * tui/tui-layout.c (tui_windows): New global.
13723 (tui_apply_current_layout): Clear tui_windows.
13724 (tui_layout_window::apply): Update tui_windows.
13725 * tui/tui-data.h (tui_windows): Declare.
13726 (all_tui_windows): Now inline function.
13727 (class tui_window_iterator, struct all_tui_windows): Remove.
13728
13729 2020-02-22 Tom Tromey <tom@tromey.com>
13730
13731 PR tui/17850:
13732 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13733 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13734 "height" argument.
13735 (class tui_layout_window) <get_sizes>: Likewise.
13736 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13737 argument.
13738 <get_sizes>: Add "height" argument.
13739 <m_vertical>: New field.
13740 * tui/tui-layout.c (tui_layout_split::clone): Update.
13741 (tui_layout_split::get_sizes): Add "height" argument.
13742 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13743 (tui_new_layout_command): Parse "-horizontal".
13744 (_initialize_tui_layout): Update help string.
13745 (tui_layout_split::specification): Add "-horizontal" when needed.
13746 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13747 argument.
13748 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13749 New methods.
13750
13751 2020-02-22 Tom Tromey <tom@tromey.com>
13752
13753 * tui/tui-layout.h (enum tui_adjust_result): New.
13754 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13755 (class tui_layout_window) <adjust_size>: Return
13756 tui_adjust_result. Rewrite.
13757 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13758 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13759
13760 2020-02-22 Tom Tromey <tom@tromey.com>
13761
13762 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13763 parameter and return types.
13764 (class tui_layout_base) <specification>: Add "depth".
13765 (class tui_layout_window) <specification>: Add "depth".
13766 (class tui_layout_split) <specification>: Add "depth".
13767 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13768 and return types.
13769 (tui_new_layout_command): Parse sub-layouts.
13770 (_initialize_tui_layout): Update help string.
13771 (tui_layout_window::specification): Add "depth".
13772 (add_layout_command): Update.
13773
13774 2020-02-22 Tom Tromey <tom@tromey.com>
13775
13776 * NEWS: Add "tui new-layout" item.
13777 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13778 Add new-layout command to help text.
13779 (validate_window_name): New function.
13780 (tui_new_layout_command): New function.
13781 (_initialize_tui_layout): Register "new-layout".
13782 (tui_layout_window::specification): New method.
13783 (tui_layout_window::specification): New method.
13784 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13785 method.
13786 (class tui_layout_window) <specification>: New method.
13787 (class tui_layout_split) <specification>: New method.
13788
13789 2020-02-22 Tom Tromey <tom@tromey.com>
13790
13791 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13792 * tui/tui-win.c (window_name_completer): Update comment.
13793 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13794 Declare method.
13795 (class tui_layout_window) <replace_window>: Likewise.
13796 (class tui_layout_split) <replace_window>: Likewise.
13797 (tui_set_layout): Don't declare.
13798 (tui_set_initial_layout): Declare function.
13799 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13800 (asm_regs_layout): New globals.
13801 (tui_current_layout, show_layout): Remove.
13802 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13803 (find_layout, tui_apply_layout): New function.
13804 (layout_completer): Remove.
13805 (tui_next_layout): Reimplement.
13806 (tui_next_layout_command): New function.
13807 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13808 (tui_regs_layout): Reimplement.
13809 (tui_regs_layout_command): New function.
13810 (extract_display_start_addr): Rewrite.
13811 (next_layout, prev_layout): Remove.
13812 (tui_layout_window::replace_window): New method.
13813 (tui_layout_split::replace_window): New method.
13814 (destroy_layout): New function.
13815 (layout_list): New global.
13816 (add_layout_command): New function.
13817 (initialize_layouts): Update.
13818 (tui_layout_command): New function.
13819 (_initialize_tui_layout): Install "layout" commands.
13820 * tui/tui-data.h (enum tui_layout_type): Remove.
13821 (tui_current_layout): Don't declare.
13822
13823 2020-02-22 Tom Tromey <tom@tromey.com>
13824
13825 * tui/tui-regs.c (tui_reg_layout): Remove.
13826 (tui_reg_command): Use tui_regs_layout.
13827 * tui/tui-layout.h (tui_reg_command): Declare.
13828 * tui/tui-layout.c (tui_reg_command): New function.
13829
13830 2020-02-22 Tom Tromey <tom@tromey.com>
13831
13832 * tui/tui.c (tui_rl_delete_other_windows): Call
13833 tui_remove_some_windows.
13834 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13835 Declare method.
13836 (class tui_layout_window) <remove_windows>: New method.
13837 (class tui_layout_split) <remove_windows>: Declare.
13838 (tui_remove_some_windows): Declare.
13839 * tui/tui-layout.c (tui_remove_some_windows): New function.
13840 (tui_layout_split::remove_windows): New method.
13841
13842 2020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13845 * tui/tui-layout.h (tui_next_layout): Declare.
13846 * tui/tui-layout.c (tui_next_layout): New function.
13847
13848 2020-02-22 Tom Tromey <tom@tromey.com>
13849
13850 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13851 correct coordinates.
13852
13853 2020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13856 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13857 DATA_WIN case.
13858
13859 2020-02-22 Tom Tromey <tom@tromey.com>
13860
13861 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13862 TUI_DISASM_WIN, not tui_win_list.
13863
13864 2020-02-22 Tom Tromey <tom@tromey.com>
13865
13866 * valprint.c (generic_val_print_enum_1)
13867 (val_print_type_code_flags): Style member names.
13868 * rust-lang.c (val_print_struct, rust_print_enum)
13869 (rust_print_struct_def, rust_internal_print_type): Style member
13870 names.
13871 * p-valprint.c (pascal_object_print_value_fields): Style member
13872 names. Only call fprintf_symbol_filtered for static members.
13873 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13874 * f-valprint.c (f_val_print): Style member names.
13875 * f-typeprint.c (f_type_print_base): Style member names.
13876 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13877 call fprintf_symbol_filtered for static members.
13878 (cp_print_class_member): Style member names.
13879 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13880 member names.
13881 * ada-valprint.c (ada_print_scalar): Style enum names.
13882 (ada_val_print_enum): Likewise.
13883 * ada-typeprint.c (print_enum_type): Style enum names.
13884
13885 2020-02-21 Tom Tromey <tom@tromey.com>
13886
13887 * psympriv.h (struct partial_symtab): Update comment.
13888
13889 2020-02-21 Tom Tromey <tromey@adacore.com>
13890
13891 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13892 type is CORE_ADDR.
13893
13894 2020-02-21 Tom de Vries <tdevries@suse.de>
13895
13896 PR gdb/25534
13897 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13898 if dependencies[i]->user != NULL.
13899
13900 2020-02-21 Ali Tamur <tamur@google.com>
13901
13902 * dwarf2/read.c (dwarf2_name): Add null check.
13903
13904 2020-02-20 Tom Tromey <tom@tromey.com>
13905
13906 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13907 ">=", in binary search.
13908 (dwarf2_find_containing_comp_unit): New overload.
13909 (run_test): New self-test.
13910 (_initialize_dwarf2_read): Register new test.
13911
13912 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13913
13914 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13915 * riscv-tdep.h: Likewise.
13916 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13917 rv32-only CSR.
13918 * features/riscv/64bit-csr.xml: Regenerated.
13919
13920 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13921 Tom Tromey <tom@tromey.com>
13922
13923 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13924 of 'fputc_unfiltered'.
13925 (putchar_unfiltered): Call 'fputc_unfiltered'.
13926 (fputc_unfiltered): Call 'fputs_unfiltered'.
13927
13928 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13929
13930 * config.in: Regenerate.
13931 * configure: Regenerate.
13932 * configure.ac: Add --with-python-libdir option.
13933 * main.c: Use WITH_PYTHON_LIBDIR.
13934
13935 2020-02-19 Tom Tromey <tom@tromey.com>
13936
13937 * symtab.c (general_symbol_info::compute_and_set_names): Use
13938 obstack_strndup. Simplify call to symbol_set_demangled_name.
13939
13940 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13941
13942 * dwarf2/read.c (allocate_signatured_type_table,
13943 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13944 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13945 Remove objfile parameter, update all callers.
13946
13947 2020-02-19 Doug Evans <dje@google.com>
13948
13949 PR rust/25535
13950 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13951 rust_enum_variant calculation.
13952
13953 2020-02-19 Tom Tromey <tromey@adacore.com>
13954
13955 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13956
13957 2020-02-19 Tom Tromey <tromey@adacore.com>
13958
13959 * ada-lang.c (cache_symbol): Use obstack_strdup.
13960
13961 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13962
13963 * configure: Regenerate.
13964
13965 2020-02-19 Tom Tromey <tromey@adacore.com>
13966
13967 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13968 NULL check.
13969
13970 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13971
13972 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13973
13974 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13975
13976 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13977 if GDBSERVER is not defined.
13978 (riscv_tdesc_cache): Likewise, also store const target_desc.
13979 (STATIC_IN_GDB): Define.
13980 (riscv_create_target_description): Update declaration with
13981 STATIC_IN_GDB.
13982 (riscv_lookup_target_description): New function, only define if
13983 GDBSERVER is not defined.
13984 * arch/riscv.h (riscv_create_target_description): Declare only
13985 when GDBSERVER is defined.
13986 (riscv_lookup_target_description): New declaration when GDBSERVER
13987 is not defined.
13988 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13989 (riscv_linux_read_features): ...this, and return
13990 riscv_gdbarch_features instead of target_desc.
13991 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13992 (riscv_linux_read_description): Rename to...
13993 (riscv_linux_read_features): ...this.
13994 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13995 Update to use riscv_gdbarch_features and
13996 riscv_lookup_target_description.
13997 * riscv-tdep.c (riscv_find_default_target_description): Use
13998 riscv_lookup_target_description instead of
13999 riscv_create_target_description.
14000
14001 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14002
14003 * valprint.c (generic_val_print_enum_1): When printing a flag
14004 enum with value 0 and there is no enumerator with value 0, print
14005 just "0" instead of "(unknown: 0x0)".
14006
14007 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14008
14009 * valprint.c (generic_val_print_enum_1): Print unknown part of
14010 flag enum in hex.
14011
14012 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14013
14014 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14015 flag enums to contain duplicate enumerators.
14016 * valprint.c (generic_val_print_enum_1): Update comment.
14017
14018 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14019
14020 * dwarf2/read.c: Include "count-one-bits.h".
14021 (update_enumeration_type_from_children): If an enumerator has
14022 multiple bits set, don't treat the enumeration as a "flag enum".
14023 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14024 of flag enums have 0 or 1 bit set.
14025
14026 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14027
14028 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14029 conversion.
14030 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14031 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14032 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14033 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14034 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14035
14036 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14037
14038 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14039
14040 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14041
14042 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14043 displaced_step_closure_up.
14044 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14045 (struct displaced_step_closure_up):
14046 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14047 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14048 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14049 Likewise.
14050 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14051 * gdbarch.c, gdbarch.h: Re-generate.
14052 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14053 displaced_step_closure_up.
14054 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14055 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14056 * infrun.h (displaced_step_closure_up): New type alias.
14057 (struct displaced_step_inferior_state) <step_closure>: Change
14058 type to displaced_step_closure_up.
14059 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14060 displaced_step_closure_up.
14061 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14062
14063 2020-02-14 Tom Tromey <tom@tromey.com>
14064
14065 * minidebug.c (gnu_debug_key): New global.
14066 (find_separate_debug_file_in_section): Use it.
14067
14068 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14069
14070 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14071 std::unique_ptr.
14072 * gdbarch.c: Re-generate.
14073 * gdbarch.h: Re-generate.
14074 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14075 change.
14076 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14077 type to std::unique_ptr.
14078 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14079 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14080 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14081 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14082 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14083 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14084 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14085 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14086 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14087
14088 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14089
14090 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14091 std::unique_ptr.
14092 (displaced_step_clear): Rename to...
14093 (displaced_step_reset): ... this. Just call displaced->reset ().
14094 (displaced_step_clear_cleanup): Rename to...
14095 (displaced_step_reset_cleanup): ... this.
14096 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14097 (displaced_step_fixup): Likewise.
14098 (resume_1): Likewise.
14099 (handle_inferior_event): Restore child's memory before calling
14100 displaced_step_fixup on the parent.
14101 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14102 to std::unique_ptr.
14103 <step_closure>: Change type to std::unique_ptr.
14104
14105 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * arm-tdep.c: Include count-one-bits.h.
14108 (cleanup_block_store_pc): Use count_one_bits.
14109 (cleanup_block_load_pc): Use count_one_bits.
14110 (arm_copy_block_xfer): Use count_one_bits.
14111 (thumb2_copy_block_xfer): Use count_one_bits.
14112 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14113 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14114 (thumb_get_next_pcs_raw): Use count_one_bits.
14115 (arm_get_next_pcs_raw): Use count_one_bits_l.
14116 * arch/arm.c (bitcount): Remove.
14117 * arch/arm.h (bitcount): Remove.
14118
14119 2020-02-14 Tom Tromey <tromey@adacore.com>
14120
14121 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14122 Update.
14123 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14124 * dwarf2/loc.c (call_site_find_chain_1): Return
14125 unique_xmalloc_ptr.
14126 (call_site_find_chain): Likewise.
14127
14128 2020-02-14 Richard Biener <rguenther@suse.de>
14129
14130 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14131 on expression with division operators.
14132
14133 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14134
14135 * MAINTAINERS (Write After Approval): Adding myself.
14136
14137 2020-02-12 Tom Tromey <tom@tromey.com>
14138
14139 * event-loop.c (event_data, gdb_event, event_handler_func):
14140 Remove.
14141
14142 2020-02-12 Tom Tromey <tom@tromey.com>
14143
14144 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14145 (dwarf2_frame_objfile_data): Add comment.
14146 (find_comp_unit, set_comp_unit): New functions.
14147 (dwarf2_frame_find_fde): Use find_comp_unit.
14148 (dwarf2_build_frame_info): Use set_comp_unit.
14149
14150 2020-02-12 Tom Tromey <tom@tromey.com>
14151
14152 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14153 (comp_unit): Don't initialize objfile.
14154 (execute_cfa_program): Add text_offset parameter.
14155 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14156 (dwarf2_frame_cache): Update.
14157 (dwarf2_build_frame_info): Don't set "objfile" member.
14158
14159 2020-02-12 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14162 (decode_frame_entry): Likewise.
14163 (dwarf2_build_frame_info): Update.
14164
14165 2020-02-12 Tom Tromey <tom@tromey.com>
14166
14167 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14168 (decode_frame_entry_1): Use the comp_unit obstack.
14169
14170 2020-02-12 Tom Tromey <tom@tromey.com>
14171
14172 * dwarf2/frame.c (struct comp_unit): Add initializers and
14173 constructor.
14174 (dwarf2_frame_objfile_data): Store a comp_unit.
14175 (dwarf2_frame_find_fde): Update.
14176 (dwarf2_build_frame_info): Use "new".
14177
14178 2020-02-12 Tom Tromey <tom@tromey.com>
14179
14180 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14181 (dwarf2_fde_table): Typedef for std::vector.
14182 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14183 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14184 (decode_frame_entry): Update.
14185 (dwarf2_build_frame_info): Use "new".
14186
14187 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14188
14189 * arm-tdep.c (arm_gdbarch_init): Update.
14190 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14191 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14192 have_neon, is_m>: Change to bool.
14193
14194 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14195
14196 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14197
14198 2020-02-12 Tom Tromey <tom@tromey.com>
14199
14200 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14201
14202 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14203
14204 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14205 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14206
14207 2020-02-11 Tom Tromey <tom@tromey.com>
14208
14209 * psymtab.h: Update comment.
14210
14211 2020-02-11 Tom Tromey <tom@tromey.com>
14212
14213 * gdb_obstack.h (struct auto_obstack): Use
14214 DISABLE_COPY_AND_ASSIGN.
14215
14216 2020-02-11 Tom Tromey <tom@tromey.com>
14217
14218 * dwarf2/frame.h (struct objfile): Don't forward declare.
14219
14220 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14221
14222 * cris-tdep.c (cris_supply_gregset): Change signature to match
14223 what struct regset expects.
14224 (cris_regset): New struct.
14225 (fetch_core_registers): Remove.
14226 (cris_iterate_over_regset_sections): New function.
14227 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14228 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14229
14230 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14231
14232 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14233 registers.
14234
14235 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14236
14237 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14238
14239 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14240
14241 * configure: Re-generate.
14242
14243 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14244
14245 * configure: Re-generate.
14246
14247 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * acinclude: Update warning.m4 path.
14250 * warning.m4: Move to gdbsupport.
14251
14252 2020-02-11 Tom Tromey <tromey@adacore.com>
14253
14254 * remote.c (remote_console_output): Update.
14255 * printcmd.c (printf_command): Update.
14256 * event-loop.c (gdb_wait_for_event): Update.
14257 * linux-nat.c (sigchld_handler): Update.
14258 * remote-sim.c (gdb_os_write_stdout): Update.
14259 (gdb_os_flush_stdout): Update.
14260 (gdb_os_flush_stderr): Update.
14261 (gdb_os_write_stderr): Update.
14262 * exceptions.c (print_exception): Update.
14263 * remote-fileio.c (remote_fileio_func_read): Update.
14264 (remote_fileio_func_write): Update.
14265 * tui/tui.c (tui_enable): Update.
14266 * tui/tui-interp.c (tui_interp::init): Update.
14267 * utils.c (init_page_info): Update.
14268 (putchar_unfiltered, fputc_unfiltered): Update.
14269 (gdb_flush): Update.
14270 (emit_style_escape): Update.
14271 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14272 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14273 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14274 (stderr_file::write): Update.
14275 (stderr_file::puts): Update.
14276 * ui-file.h (ui_file_isatty, ui_file_write)
14277 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14278 (ui_file_puts): Don't declare.
14279
14280 2020-02-10 Tom de Vries <tdevries@suse.de>
14281
14282 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14283 sentinel to char *.
14284
14285 2020-02-09 Tom de Vries <tdevries@suse.de>
14286
14287 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14288 filename if it matches "<artificial>".
14289
14290 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14291
14292 * windows-tdep.c (struct enum_value_name): New struct.
14293 (create_enum): New function.
14294 (windows_get_siginfo_type): Create and use enum types.
14295
14296 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14297
14298 * NEWS: Mention $_siginfo support for Windows.
14299 * windows-nat.c (handle_exception): Set siginfo_er.
14300 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14301 (windows_xfer_siginfo): New function.
14302 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14303 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14304 (init_windows_gdbarch_data): New function.
14305 (get_windows_gdbarch_data): New function.
14306 (windows_get_siginfo_type): New function.
14307 (windows_init_abi): Register windows_get_siginfo_type.
14308 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14309
14310 2020-02-08 Tom Tromey <tom@tromey.com>
14311
14312 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14313 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14314 <keep>: Declare method.
14315 <m_keep>: Remove member.
14316 <~cutu_reader>: Remove.
14317 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14318 (cutu_reader::cutu_reader): Update.
14319 (cutu_reader::keep): Rename from ~cutu_reader.
14320 (process_psymtab_comp_unit, build_type_psymtabs_1)
14321 (process_skeletonless_type_unit, load_partial_comp_unit)
14322 (load_full_comp_unit, dwarf2_read_addr_index)
14323 (read_signatured_type): Update.
14324
14325 2020-02-08 Tom Tromey <tom@tromey.com>
14326
14327 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14328 "want_partial_unit" parameter.
14329 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14330 Inline check for DW_TAG_partial_unit.
14331 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14332
14333 2020-02-08 Tom Tromey <tom@tromey.com>
14334
14335 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14336 read.c.
14337 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14338 read.c.
14339
14340 2020-02-08 Tom Tromey <tom@tromey.com>
14341
14342 * dwarf2/read.c (read_address): Move to comp-unit.c.
14343 (dwarf2_rnglists_process, dwarf2_ranges_process)
14344 (read_attribute_value, dwarf_decode_lines_1)
14345 (var_decode_location, decode_locdesc): Update.
14346 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14347 read.c. Remove "cu" parameter.
14348 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14349 method.
14350
14351 2020-02-08 Tom Tromey <tom@tromey.com>
14352
14353 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14354 (read_indirect_line_string): Update.
14355 * dwarf2/comp-unit.c (read_offset): Remove.
14356 (read_comp_unit_head): Update.
14357 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14358 method.
14359 (read_offset): Don't declare.
14360
14361 2020-02-08 Tom Tromey <tom@tromey.com>
14362
14363 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14364 * dwarf2/read.c (struct comp_unit_head): Move to
14365 dwarf2/comp-unit.h.
14366 (enum class rcuh_kind): Move to comp-unit.h.
14367 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14368 (read_comp_unit_head, error_check_comp_unit_head)
14369 (read_and_check_comp_unit_head): Move to comp-unit.c.
14370 (read_offset, dwarf_unit_type_name): Likewise.
14371 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14372 (cutu_reader::cutu_reader, read_call_site_scope)
14373 (find_partial_die, follow_die_offset): Update.
14374 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14375
14376 2020-02-08 Tom Tromey <tom@tromey.com>
14377
14378 * dwarf2/read.c (read_offset_1): Move to leb.c.
14379 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14380 (dwarf_decode_macro_bytes): Update.
14381 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14382 * dwarf2/leb.h (read_offset): Declare.
14383
14384 2020-02-08 Tom Tromey <tom@tromey.com>
14385
14386 * dwarf2/read.c (dwarf2_section_size): Remove.
14387 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14388 Update.
14389 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14390
14391 2020-02-08 Tom Tromey <tom@tromey.com>
14392
14393 * dwarf2/read.c (read_initial_length): Move to leb.c.
14394 * dwarf2/leb.h (read_initial_length): Declare.
14395 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14396 handle_nonstd parameter.
14397 * dwarf2/frame.c (read_initial_length): Remove.
14398 (decode_frame_entry_1): Update.
14399
14400 2020-02-08 Tom Tromey <tom@tromey.com>
14401
14402 * dwarf2/loc.c (dwarf2_find_location_expression)
14403 (dwarf_evaluate_loc_desc::get_tls_address)
14404 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14405 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14406 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14407 (dwarf2_compile_property_to_c)
14408 (dwarf2_loc_desc_get_symbol_read_needs)
14409 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14410 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14411 (loclist_describe_location, loclist_tracepoint_var_ref)
14412 (loclist_generate_c_location): Update.
14413 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14414 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14415 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14416 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14417 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14418 (dwarf2_per_cu_data::addr_size)
14419 (dwarf2_per_cu_data::ref_addr_size)
14420 (dwarf2_per_cu_data::text_offset)
14421 (dwarf2_per_cu_data::addr_type): Now methods.
14422 (per_cu_header_read_in): Make per_cu "const".
14423 (dwarf2_version): Remove.
14424 (dwarf2_per_cu_data::int_type): Now a method.
14425 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14426 (set_die_type, read_array_type, read_subrange_index_type)
14427 (read_tag_string_type, read_subrange_type): Update.
14428 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14429 offset_size, ref_addr_size, text_offset, addr_type, version,
14430 objfile, int_type, addr_sized_int_type>: Declare methods.
14431
14432 2020-02-08 Tom Tromey <tom@tromey.com>
14433
14434 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14435 Move earlier.
14436
14437 2020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/read.h (dwarf_line_debug): Declare.
14440 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14441 * dwarf2/read.c: Move line_header code to new files.
14442 (dwarf_line_debug): No longer static.
14443 * dwarf2/line-header.c: New file.
14444 * dwarf2/line-header.h: New file.
14445
14446 2020-02-08 Tom Tromey <tom@tromey.com>
14447
14448 * dwarf2/read.c (struct line_header) <file_full_name,
14449 file_file_name>: Return unique_xmalloc_ptr.
14450 (line_header::file_file_name): Update.
14451 (line_header::file_full_name): Update.
14452 (dw2_get_file_names_reader): Update.
14453 (macro_start_file): Update.
14454
14455 2020-02-08 Tom Tromey <tom@tromey.com>
14456
14457 * dwarf2/read.c (struct line_header) <file_full_name,
14458 file_file_name>: Declare methods.
14459 (dw2_get_file_names_reader): Update.
14460 (file_file_name): Now a method.
14461 (file_full_name): Likewise.
14462 (macro_start_file): Update.
14463
14464 2020-02-08 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/read.c (dwarf_always_disassemble)
14467 (show_dwarf_always_disassemble): Move to loc.c.
14468 (_initialize_dwarf2_read): Move "always-disassemble" registration
14469 to loc.c.
14470 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14471 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14472 static.
14473 (show_dwarf_always_disassemble): Move from read.c.
14474 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14475
14476 2020-02-08 Tom Tromey <tom@tromey.com>
14477
14478 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14479 (create_quick_file_names_table): Return htab_up.
14480 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14481 Update.
14482 * dwarf2/read.h (struct dwarf2_per_objfile)
14483 <quick_file_names_table>: Now htab_up.
14484
14485 2020-02-08 Tom Tromey <tom@tromey.com>
14486
14487 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14488
14489 2020-02-08 Tom Tromey <tom@tromey.com>
14490
14491 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14492 Rewrite.
14493 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14494 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14495 (abbrev_table::abbrev_table): No longer inline.
14496 (ABBREV_HASH_SIZE): Remove.
14497 (abbrev_table::m_abbrevs): Now an htab_up.
14498
14499 2020-02-08 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14502 (cutu_reader): Update.
14503 (build_type_psymtabs_1): Update.
14504 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14505 (abbrev_table::alloc_abbrev): Update.
14506 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14507 (abbrev_table::read): New static method, renamed from
14508 abbrev_table_read_table.
14509 (abbrev_table::alloc_abbrev)
14510 (abbrev_table::add_abbrev): Now private.
14511 (abbrev_table::abbrev_table): Now private.
14512 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14513
14514 2020-02-08 Tom Tromey <tom@tromey.com>
14515
14516 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14517 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14518 htab_up.
14519
14520 2020-02-08 Tom Tromey <tom@tromey.com>
14521
14522 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14523 htab_up.
14524 (lookup_dwo_unit_in_dwp): Update.
14525 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14526 on obstack.
14527
14528 2020-02-08 Tom Tromey <tom@tromey.com>
14529
14530 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14531 obstack.
14532
14533 2020-02-08 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14536 line_header_hash.
14537 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14538 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14539 Change type to htab_up.
14540
14541 2020-02-08 Tom Tromey <tom@tromey.com>
14542
14543 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14544 htab_up. Don't allocate on obstack.
14545 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14546 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14547 Change type to htab_up.
14548
14549 2020-02-08 Tom Tromey <tom@tromey.com>
14550
14551 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14552 Change type to htab_up.
14553 * dwarf2/read.c (create_signatured_type_table_from_index)
14554 (create_signatured_type_table_from_debug_names)
14555 (create_all_type_units, add_type_unit)
14556 (lookup_dwo_signatured_type, lookup_signatured_type)
14557 (process_skeletonless_type_unit): Update.
14558 (create_debug_type_hash_table, create_debug_types_hash_table):
14559 Change type of types_htab.
14560 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14561 htab_up. Don't allocate on obstack.
14562 (create_cus_hash_table): Change type of cus_htab parameter.
14563 (struct dwo_file) <cus, tus>: Now htab_up.
14564 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14565 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14566 (queue_and_load_all_dwo_tus): Update.
14567 * dwarf2/index-write.c (write_gdbindex): Update.
14568 (write_debug_names): Update.
14569
14570 2020-02-08 Tom Tromey <tom@tromey.com>
14571
14572 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14573 dwarf2/read.c. Remove "next" member. Add constructor ntad
14574 destructor.
14575 (struct dwarf2_per_objfile) <queue>: New member.
14576 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14577 dwarf2/read.h.
14578 (dwarf2_queue, dwarf2_queue_tail): Remove.
14579 (class dwarf2_queue_guard): Add parameter to constructor. Use
14580 DISABLE_COPY_AND_ASSIGN.
14581 <m_per_objfile>: New member.
14582 <~dwarf2_queue_guard>: Rewrite.
14583 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14584 Update.
14585 (~dwarf2_queue_item): New.
14586
14587 2020-02-08 Tom Tromey <tom@tromey.com>
14588
14589 * dwarf2/read.c (struct die_info) <has_children>: New member.
14590 (dw2_get_file_names_reader): Remove has_children.
14591 (dw2_get_file_names): Update.
14592 (read_cutu_die_from_dwo): Remove has_children.
14593 (cutu_reader::init_tu_and_read_dwo_dies)
14594 (cutu_reader::cutu_reader): Update.
14595 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14596 Remove has_children.
14597 (build_type_psymtabs_1, process_skeletonless_type_unit)
14598 (load_partial_comp_unit, load_full_comp_unit): Update.
14599 (create_dwo_cu_reader): Remove has_children.
14600 (create_cus_hash_table, read_die_and_children): Update.
14601 (read_full_die_1,read_full_die): Remove has_children.
14602 (read_signatured_type): Update.
14603 (class cutu_reader) <has_children>: Remove.
14604
14605 2020-02-08 Tom Tromey <tom@tromey.com>
14606
14607 * dwarf2/expr.c: Rename from dwarf2expr.c.
14608 * dwarf2/expr.h: Rename from dwarf2expr.h.
14609 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14610 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14611 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14612 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14613 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14614 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14615 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14616 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14617 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14618 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14619 * dwarf2/loc.c: Rename from dwarf2loc.c.
14620 * dwarf2/loc.h: Rename from dwarf2loc.h.
14621 * dwarf2/read.c: Rename from dwarf2read.c.
14622 * dwarf2/read.h: Rename from dwarf2read.h.
14623 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14624 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14625 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14626 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14627 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14628 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14629 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14630 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14631 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14632 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14633 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14634 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14635 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14636 Update.
14637 * Makefile.in (COMMON_SFILES): Update.
14638 (HFILES_NO_SRCDIR): Update.
14639
14640 2020-02-08 Tom Tromey <tom@tromey.com>
14641
14642 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14643 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14644
14645 2020-02-08 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2read.h (struct die_info): Don't declare.
14648
14649 2020-02-08 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2read.h (die_info_ptr): Remove typedef.
14652
14653 2020-02-08 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2read.c (read_call_site_scope)
14656 (handle_data_member_location, dwarf2_add_member_fn)
14657 (mark_common_block_symbol_computed, read_common_block)
14658 (attr_to_dynamic_prop, partial_die_info::read)
14659 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14660 (dwarf2_symbol_mark_computed, set_die_type): Update.
14661 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14662 method.
14663 (attr_form_is_block): Don't declare.
14664 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14665
14666 2020-02-08 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2read.c (dwarf2_find_base_address, )
14669 (read_call_site_scope, rust_containing_type)
14670 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14671 (handle_data_member_location, dwarf2_add_member_fn)
14672 (get_alignment, read_structure_type, process_structure_scope)
14673 (mark_common_block_symbol_computed, read_common_block)
14674 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14675 (partial_die_info::read, read_attribute_value, new_symbol)
14676 (lookup_die_type, dwarf2_get_ref_die_offset)
14677 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14678 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14679 (dwarf2_symbol_mark_computed): Update.
14680 * dwarf2/attribute.h (struct attribute) <value_as_address,
14681 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14682 methods.
14683 (value_as_address, attr_form_is_section_offset)
14684 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14685 * dwarf2/attribute.c (attribute::value_as_address)
14686 (attribute::form_is_section_offset, attribute::form_is_constant)
14687 (attribute::form_is_ref): Now methods.
14688
14689 2020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * dwarf2read.c (struct attribute, DW_STRING)
14692 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14693 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14694 (attr_form_is_block, attr_form_is_section_offset)
14695 (attr_form_is_constant, attr_form_is_ref): Move.
14696 * dwarf2/attribute.h: New file.
14697 * dwarf2/attribute.c: New file, from dwarf2read.c.
14698 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14699
14700 2020-02-08 Tom Tromey <tom@tromey.com>
14701
14702 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14703 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14704 Move.
14705 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14706 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14707 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14708 abbrev.c.
14709 * dwarf2/abbrev.h: New file.
14710 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14711 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14712
14713 2020-02-08 Tom Tromey <tom@tromey.com>
14714
14715 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14716 (dwarf2_section_size, dwarf2_get_section_info)
14717 (create_signatured_type_table_from_debug_names)
14718 (create_addrmap_from_aranges, read_debug_names_from_section)
14719 (get_gdb_index_contents_from_section, read_comp_unit_head)
14720 (error_check_comp_unit_head, read_abbrev_offset)
14721 (create_debug_type_hash_table, init_cu_die_reader)
14722 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14723 (read_comp_units_from_section, create_cus_hash_table)
14724 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14725 (create_dwp_v2_section, dwarf2_rnglists_process)
14726 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14727 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14728 (read_indirect_string_from_dwz, read_addr_index_1)
14729 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14730 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14731 (fill_in_loclist_baton): Update.
14732 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14733 get_containing_section, get_bfd_owner, get_bfd_section,
14734 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14735 (dwarf2_read_section, get_section_name, get_section_file_name)
14736 (get_containing_section, get_section_bfd_owner)
14737 (get_section_bfd_section, get_section_name, get_section_file_name)
14738 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14739 declare.
14740 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14741 (dwarf2_section_info::get_bfd_owner)
14742 (dwarf2_section_info::get_bfd_section)
14743 (dwarf2_section_info::get_name)
14744 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14745 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14746 (dwarf2_section_info::read): Now methods.
14747 * dwarf-index-write.c (class debug_names): Update.
14748
14749 2020-02-08 Tom Tromey <tom@tromey.com>
14750
14751 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14752 Move to dwarf2/section.h.
14753 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14754 (get_section_bfd_section, get_section_name)
14755 (get_section_file_name, get_section_id, get_section_flags)
14756 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14757 dwarf2/section.c.
14758 * dwarf2/section.h: New file.
14759 * dwarf2/section.c: New file, from dwarf2read.c.
14760 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14761
14762 2020-02-08 Tom Tromey <tom@tromey.com>
14763
14764 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14765 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14766 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14767 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14768 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14769 * dwarf2/leb.h: New file, from dwarf2read.c.
14770 * dwarf2/leb.c: New file, from dwarf2read.c.
14771 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14772 Remove.
14773 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14774 (COMMON_SFILES): Add dwarf2/leb.c.
14775
14776 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14777
14778 GDB 9.1 released.
14779
14780 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14781
14782 PR gdb/25190:
14783 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14784 * gdb/remote.c (remote_console_output): Update.
14785 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14786 (ui_file_puts): ...this.
14787 * gdb/ui-file.h (ui_file_puts): Add declaration.
14788 * gdb/utils.c (emit_style_escape): Update.
14789 (flush_wrap_buffer): Update.
14790 (fputs_maybe_filtered): Update.
14791 (fputs_unfiltered): Add function.
14792
14793 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14794
14795 * gdb/event-loop.c (gdb_wait_for_event): Update.
14796 * gdb/printcmd.c (printf_command): Update.
14797 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14798 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14799 (gdb_os_flush_stderr): Update.
14800 * gdb/remote.c (remote_console_output): Update.
14801 * gdb/ui-file.c (gdb_flush): Rename to...
14802 (ui_file_flush): ...this.
14803 (stderr_file::write): Update.
14804 (stderr_file::puts): Update.
14805 * gdb/ui-file.h (gdb_flush): Rename to...
14806 (ui_file_flush): ...this.
14807 * gdb/utils.c (gdb_flush): Add function.
14808 * gdb/utils.h (gdb_flush): Add declaration.
14809
14810 2020-02-07 Tom Tromey <tromey@adacore.com>
14811
14812 PR breakpoints/24915:
14813 * source.c (find_and_open_source): Do not check basenames_may_differ.
14814
14815 2020-02-07 Tom Tromey <tom@tromey.com>
14816
14817 * README: Update gdbserver documentation.
14818 * gdbserver: Move to top level.
14819 * configure.tgt (build_gdbserver): Remove.
14820 * configure.ac: Remove --enable-gdbserver.
14821 * configure: Rebuild.
14822 * Makefile.in (distclean): Don't mention gdbserver.
14823
14824 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14825
14826 * source-cache.c (source_cache::ensure): Surround
14827 get_plain_source_lines with a try/catch.
14828 (source_cache::get_line_charpos): Get rid of try/catch
14829 and only check for the return value of "ensure".
14830 * tui/tui-source.c (tui_source_window::set_contents):
14831 Simplify "nlines" calculation.
14832
14833 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14834
14835 * MAINTAINERS (Write After Approval): Add myself.
14836
14837 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14838
14839 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14840 function call.
14841
14842 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14843
14844 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14845
14846 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14847
14848 * nat/riscv-linux-tdesc.h: New file.
14849 * nat/riscv-linux-tdesc.c: New file, taking code from...
14850 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14851 ... here.
14852 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14853 NATDEPFILES.
14854
14855 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14856
14857 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14858 we don't set the fake simulator ptid to the null_ptid.
14859
14860 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14861
14862 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14863 * gdbthread.h (class thread_info) <resumed>: Likewise.
14864 * infrun.c (resume_1): Likewise.
14865 (proceed): Likewise.
14866 (infrun_thread_stop_requested): Likewise.
14867 (stop_all_threads): Likewise.
14868 (handle_inferior_event): Likewise.
14869 (restart_threads): Likewise.
14870 (finish_step_over): Likewise.
14871 (keep_going_stepped_thread): Likewise.
14872 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14873 (linux_handle_extended_wait): Likewise.
14874 * record-btrace.c (get_thread_current_frame_id): Likewise.
14875 * record-full.c (record_full_wait_1): Likewise.
14876 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14877 * target.c (target_resume): Likewise.
14878 * thread.c (set_running_thread): Likewise.
14879
14880 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14881
14882 * f-valprint.c (f77_print_array_1): Changed datatype of index
14883 variable to LONGEST from int to enable it to contain bound
14884 values correctly.
14885
14886 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14887
14888 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14889 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14890 offsets according to FLEN determined.
14891 (riscv_linux_nat_target::read_description): Determine FLEN
14892 dynamically.
14893 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14894 according to FLEN determined.
14895 (riscv_linux_nat_target::store_registers): Likewise.
14896
14897 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14898
14899 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14900 when reg->group is empty and reggroup is not.
14901
14902 2020-01-31 Tom Tromey <tromey@adacore.com>
14903
14904 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14905 Call beneath target's mourn_inferior after unpushing.
14906
14907 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14908
14909 PR tui/9765
14910 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14911 have enough lines to fill the screen, still return the lowest
14912 address we found.
14913
14914 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14915
14916 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14917 '-', '<', and '>' commands.
14918
14919 2020-01-29 Pedro Alves <palves@redhat.com>
14920 Sergio Durigan Junior <sergiodj@redhat.com>
14921
14922 * infcmd.c (construct_inferior_arguments): Assert that
14923 'argc' is greater than 0.
14924
14925 2020-01-29 Luis Machado <luis.machado@linaro.org>
14926
14927 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14928 (BRK_INSN_MASK): Define to 0xd4200000.
14929 (aarch64_program_breakpoint_here_p): New function.
14930 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14931 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14932 breakpoint.c.
14933 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14934 breakpoint.h
14935 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14936 call gdbarch_program_breakpoint_here_p.
14937 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14938 default_program_breakpoint_here_p, changed return type to bool and
14939 simplified.
14940 * breakpoint.h (program_breakpoint_here): Moved prototype to
14941 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14942 return type to bool.
14943 * gdbarch.c: Regenerate.
14944 * gdbarch.h: Regenerate.
14945 * gdbarch.sh (program_breakpoint_here_p): New method.
14946 * infrun.c (handle_signal_stop): Call
14947 gdbarch_program_breakpoint_here_p.
14948
14949 2020-01-26 Tom Tromey <tom@tromey.com>
14950
14951 * ctfread.c (struct ctf_fp_info): Reindent.
14952 (_initialize_ctfread): Remove.
14953
14954 2020-01-26 Tom Tromey <tom@tromey.com>
14955
14956 * psymtab.c (partial_map_expand_apply)
14957 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14958 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14959 (psym_print_stats, psym_expand_symtabs_for_function)
14960 (psym_map_symbol_filenames, psym_map_matching_symbols)
14961 (psym_expand_symtabs_matching)
14962 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14963 (maintenance_check_psymtabs): Use new methods.
14964 * psympriv.h (struct partial_symtab) <readin_p,
14965 get_compunit_symtab>: New methods.
14966 <readin, compunit_symtab>: Remove members.
14967 (struct standard_psymtab): New.
14968 (struct legacy_psymtab): Derive from standard_psymtab.
14969 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14970 standard_psymtab.
14971 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14972
14973 2020-01-26 Tom Tromey <tom@tromey.com>
14974
14975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14976 read_dependencies. Add assert.
14977 * psymtab.c (partial_symtab::read_dependencies): New method.
14978 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14979 method.
14980 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14981 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14982 read_dependencies.
14983 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14984 Add assert.
14985
14986 2020-01-26 Tom Tromey <tom@tromey.com>
14987
14988 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14989 Call expand_psymtab.
14990 (xcoff_read_symtab): Call expand_psymtab.
14991 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14992 legacy_expand_psymtab.
14993 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14994 method.
14995 (struct legacy_psymtab) <expand_psymtab>: Implement.
14996 <legacy_expand_psymtab>: New member.
14997 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14998 (parse_partial_symbols): Set legacy_expand_psymtab.
14999 (psymtab_to_symtab_1): Change argument order. Call
15000 expand_psymtab.
15001 (new_psymtab): Set legacy_expand_psymtab.
15002 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15003 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15004 expand_psymtab.
15005 (dwarf2_psymtab::expand_psymtab): Rename from
15006 psymtab_to_symtab_1. Call expand_psymtab.
15007 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15008 (dbx_end_psymtab): Likewise.
15009 (dbx_psymtab_to_symtab_1): Change argument order. Call
15010 expand_psymtab.
15011 (dbx_read_symtab): Call expand_psymtab.
15012 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15013 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15014 (ctf_psymtab::read_symtab): Call expand_psymtab.
15015
15016 2020-01-26 Tom Tromey <tom@tromey.com>
15017
15018 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15019 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15020 messages.
15021 * mdebugread.c (mdebug_read_symtab): Remove prints.
15022 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15023 assert.
15024 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15025
15026 2020-01-26 Tom Tromey <tom@tromey.com>
15027
15028 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15029 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15030 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15031 legacy_symtab.
15032 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15033 * psymtab.c (psymtab_to_symtab): Call method.
15034 (dump_psymtab): Update.
15035 * psympriv.h (struct partial_symtab): Add virtual destructor.
15036 <read_symtab>: New method.
15037 (struct legacy_symtab): New.
15038 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15039 (struct pst_map) <pst>: Now a legacy_psymtab.
15040 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15041 (new_psymtab): Use legacy_psymtab.
15042 * dwarf2read.h (struct dwarf2_psymtab): New.
15043 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15044 * dwarf2read.c (dwarf2_create_include_psymtab)
15045 (dwarf2_build_include_psymtabs, create_type_unit_group)
15046 (create_partial_symtab, process_psymtab_comp_unit_reader)
15047 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15048 (set_partial_user): Use dwarf2_psymtab.
15049 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15050 (psymtab_to_symtab_1, process_full_comp_unit)
15051 (process_full_type_unit, dwarf2_ranges_read)
15052 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15053 (dwarf_decode_lines): Use dwarf2_psymtab.
15054 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15055 (add_address_entry_worker, write_one_signatured_type)
15056 (recursively_count_psymbols, recursively_write_psymbols)
15057 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15058 (write_debug_names): Likewise.
15059 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15060 <pst>: Now a legacy_psymtab.
15061 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15062 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15063 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15064 * ctfread.c (struct ctf_psymtab): New.
15065 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15066 ctf_psymtab.
15067 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15068 (create_partial_symtab): Return a ctf_psymtab.
15069 (scan_partial_symbols): Update.
15070
15071 2020-01-26 Tom Tromey <tom@tromey.com>
15072
15073 * xcoffread.c (xcoff_start_psymtab): Use new.
15074 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15075 renamed from start_psymtab_common.
15076 * psympriv.h (struct partial_symtab): Add new constructor.
15077 (start_psymtab_common): Don't declare.
15078 * mdebugread.c (parse_partial_symbols): Use new.
15079 * dwarf2read.c (create_partial_symtab): Use new.
15080 * dbxread.c (start_psymtab): Use new.
15081 * ctfread.c (create_partial_symtab): Use new.
15082
15083 2020-01-26 Tom Tromey <tom@tromey.com>
15084
15085 * xcoffread.c (xcoff_end_psymtab): Use new.
15086 * psymtab.c (start_psymtab_common): Use new.
15087 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15088 Update.
15089 * psympriv.h (struct partial_symtab): Add parameters to
15090 constructor. Don't inline.
15091 (allocate_psymtab): Don't declare.
15092 * mdebugread.c (new_psymtab): Use new.
15093 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15094 * dbxread.c (dbx_end_psymtab): Use new.
15095
15096 2020-01-26 Tom Tromey <tom@tromey.com>
15097
15098 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15099 allocate_psymtab. Update documentation.
15100 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15101 allocate_psymtab. Do not use new.
15102 (allocate_psymtab): Use new. Update.
15103
15104 2020-01-26 Tom Tromey <tom@tromey.com>
15105
15106 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15107 * psymtab.c (psym_print_stats): Update.
15108 * psympriv.h (struct partial_symtab) <readin,
15109 psymtabs_addrmap_supported, anonymous>: Now bool.
15110 * mdebugread.c (psymtab_to_symtab_1): Update.
15111 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15112 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15113 (process_full_comp_unit, process_full_type_unit): Update.
15114 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15115 * ctfread.c (psymtab_to_symtab): Update.
15116
15117 2020-01-26 Tom Tromey <tom@tromey.com>
15118
15119 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15120 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15121 * psymtab.c (psymtab_storage): Delete psymtabs.
15122 (psymtab_storage::allocate_psymtab): Use new.
15123 (psymtab_storage::discard_psymtab): Use delete.
15124 * psympriv.h (struct partial_symtab): Add constructor and
15125 initializers.
15126
15127 2020-01-26 Tom Tromey <tom@tromey.com>
15128
15129 * machoread.c: Do not include psympriv.h.
15130
15131 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15132
15133 * NEWS: Mention the new option and the set/show commands.
15134
15135 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15136
15137 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15138 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15139 (validate_exec_file): New variables, enums, functions.
15140 (exec_file_locate_attach, print_section_info): Style the filenames.
15141 (_initialize_exec): Install show_exec_file_mismatch_command and
15142 set_exec_file_mismatch_command.
15143 * gdbcore.h (validate_exec_file): Declare.
15144 * infcmd.c (attach_command): Call validate_exec_file.
15145 * remote.c ( remote_target::remote_add_inferior): Likewise.
15146
15147 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15148
15149 * frame.c (find_frame_sal): Move call to get_next_frame into more
15150 inner scope.
15151 * inline-frame.c (inilne_state) <inline_state>: Update argument
15152 types.
15153 (inilne_state) <skipped_symbol>: Rename to...
15154 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15155 (skip_inline_frames): Build vector of skipped symbols and use this
15156 to reate the inline_state.
15157 (inline_skipped_symbol): Add a comment and some assertions, fetch
15158 skipped symbol from the list.
15159
15160 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15161
15162 * buildsym.c (lte_is_less_than): Delete.
15163 (buildsym_compunit::end_symtab_with_blockvector): Create local
15164 lambda function to sort line table entries, and use
15165 std::stable_sort instead of std::sort.
15166 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15167 markers when looking for a previous line.
15168
15169 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15170
15171 * dwarf2read.c (lnp_state_machine::record_line): Include
15172 end_sequence parameter in debug print out. Record the line if we
15173 are at an end_sequence marker even if it's not the start of a
15174 statement.
15175 * symmisc.c (maintenance_print_one_line_table): Print end of
15176 sequence markers with 'END' not '0'.
15177
15178 2020-01-24 Pedro Alves <palves@redhat.com>
15179
15180 PR gdb/25410
15181 * thread.c (scoped_restore_current_thread::restore): Use
15182 switch_to_inferior_no_thread.
15183 * exec.c: Include "progspace-and-thread.h".
15184 (add_target_sections, remove_target_sections):
15185 scoped_restore_current_pspace_and_thread instead of
15186 scoped_restore_current_thread.
15187 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15188 and aspace to the inferior before calling clone_program_space.
15189 Remove stale comment.
15190
15191 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15192
15193 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15194 (arm_netbsd_nat_target::fetch_registers): ...this.
15195 (arm_nbsd_nat_target::store_registers): Rename to...
15196 (arm_netbsd_nat_target::store_registers): ...this.
15197
15198 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15199
15200 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15201 register_t.
15202
15203 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15204
15205 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15206 Update comment.
15207 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15208 Likewise.
15209 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15210 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15211 the correct replacement (iterate_over_regset_sections).
15212 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15213 Update comment.
15214
15215 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15216
15217 PR gdb/23718
15218 * gdb/python/python.c (execute_gdb_command): Call
15219 async_enable_stdin in catch block.
15220
15221 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15222
15223 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15224 SWITCH_THRU_ALL_UIS.
15225
15226 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15227
15228 PR tui/9765
15229 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15230 comment, add extra parameter, and update to store previous symbol
15231 when appropriate.
15232 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15233 add extra parameter.
15234 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15235 remove unneeded parameter, add try/catch around gdb_print_insn,
15236 rewrite to add items to asm_lines vector.
15237 (tui_find_backward_disassembly_start_address): New function.
15238 (tui_find_disassembly_address): Updated throughout.
15239 (tui_disasm_window::set_contents): Update for changes to
15240 tui_disassemble.
15241 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15242 number of lines to scroll.
15243
15244 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15245
15246 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15247 (SECT_OFF_DATA): Likewise.
15248 (SECT_OFF_RODATA): Likewise.
15249 (SECT_OFF_TEXT): Likewise.
15250 (SECT_OFF_BSS): Likewise.
15251 (struct objfile) <text_section_offset, data_section_offset>: New
15252 methods.
15253 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15254 objfile::text_section_offset.
15255 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15256 * coffread.c (coff_symtab_read): Likewise.
15257 (enter_linenos): Likewise.
15258 (process_coff_symbol): Likewise.
15259 * ctfread.c (get_objfile_text_range): Likewise.
15260 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15261 Use objfile::data_section_offset.
15262 * dwarf2-frame.c (execute_cfa_program): Use
15263 objfile::text_section_offset.
15264 (dwarf2_frame_find_fde): Likewise.
15265 * dwarf2read.c (create_addrmap_from_index): Likewise.
15266 (create_addrmap_from_aranges): Likewise.
15267 (dw2_find_pc_sect_compunit_symtab): Likewise.
15268 (process_psymtab_comp_unit_reader): Likewise.
15269 (add_partial_symbol): Likewise.
15270 (add_partial_subprogram): Likewise.
15271 (process_full_comp_unit): Likewise.
15272 (read_file_scope): Likewise.
15273 (read_func_scope): Likewise.
15274 (read_lexical_block_scope): Likewise.
15275 (read_call_site_scope): Likewise.
15276 (dwarf2_rnglists_process): Likewise.
15277 (dwarf2_ranges_process): Likewise.
15278 (dwarf2_ranges_read): Likewise.
15279 (dwarf_decode_lines_1): Likewise.
15280 (new_symbol): Likewise.
15281 (dwarf2_fetch_die_loc_sect_off): Likewise.
15282 (dwarf2_per_cu_text_offset): Likewise.
15283 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15284 * hppa-tdep.c (read_unwind_info): Likewise.
15285 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15286 * psympriv.h (struct partial_symtab): Likewise.
15287 * psymtab.c (find_pc_sect_psymtab): Likewise.
15288 * solib-svr4.c (enable_break): Likewise.
15289 * stap-probe.c (relocate_address): Use
15290 objfile::data_section_offset.
15291 * xcoffread.c (enter_line_range): Use
15292 objfile::text_section_offset.
15293 (read_xcoff_symtab): Likewise.
15294
15295 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15296
15297 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15298 declaration to narrower scopes.
15299
15300 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15301
15302 * darwin-nat.h (struct darwin_exception_msg, enum
15303 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15304 Move up.
15305 (class darwin_nat_target) <wait_1, check_new_threads,
15306 decode_exception_message, decode_message, stop_inferior,
15307 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15308 * darwin-nat.c (darwin_check_new_threads): Rename to...
15309 (darwin_nat_target::check_new_threads): ... this.
15310 (darwin_suspend_inferior_it): Remove.
15311 (darwin_decode_exception_message): Rename to...
15312 (darwin_nat_target::decode_exception_message): ... this.
15313 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15314 (darwin_decode_message): Rename to...
15315 (darwin_nat_target::decode_message): ... this.
15316 (cancel_breakpoint): Rename to...
15317 (darwin_nat_target::cancel_breakpoint): ... this.
15318 (darwin_wait): Rename to...
15319 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15320 instead of iterate_over_inferiors.
15321 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15322 (darwin_stop_inferior): Rename to...
15323 (darwin_nat_target::stop_inferior): ... this.
15324 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15325 (darwin_init_thread_list): Rename to...
15326 (darwin_nat_target::init_thread_list): ... this.
15327 (darwin_ptrace_him): Rename to...
15328 (darwin_nat_target::ptrace_him): ... this.
15329 (darwin_nat_target::create_inferior): Pass lambda function to
15330 fork_inferior.
15331 (darwin_nat_target::detach): Call stop_inferior instead of
15332 darwin_stop_inferior.
15333 * fork-inferior.h (fork_inferior): Change init_trace_fun
15334 parameter to gdb::function_view.
15335 * fork-inferior.c (fork_inferior): Likewise.
15336
15337 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15338
15339 * i386-cygwin-tdep.c (core_process_module_section): Update.
15340 * windows-nat.c (struct lm_info_windows): Add text_offset.
15341 (windows_xfer_shared_libraries): Update.
15342 * windows-tdep.c (windows_xfer_shared_library):
15343 Add text_offset_cached argument.
15344 * windows-tdep.h (windows_xfer_shared_library): Update.
15345
15346 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15347
15348 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15349
15350 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15351
15352 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15353 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15354 replace with range-based for.
15355 (gdbsim_interrupt_inferior): Remove.
15356 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15357 with a range-based for. Inline code from
15358 gdbsim_interrupt_inferior.
15359
15360 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15361
15362 * infrun.c (proceed): Fix indentation.
15363
15364 2020-01-21 Tom Tromey <tromey@adacore.com>
15365
15366 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15367 * python/python.c (python_extension_ops): Update.
15368 (gdbpy_colorize): New function.
15369 * python/lib/gdb/__init__.py (colorize): New function.
15370 * extension.h (ext_lang_colorize): Declare.
15371 * extension.c (ext_lang_colorize): New function.
15372 * extension-priv.h (struct extension_language_ops) <colorize>: New
15373 member.
15374 * cli/cli-style.c (_initialize_cli_style): Update help text.
15375
15376 2020-01-21 Luis Machado <luis.machado@linaro.org>
15377
15378 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15379 <cond>: Change type to bool.
15380 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15381 (aarch64_displaced_step_cb): Likewise.
15382 (aarch64_displaced_step_tb): Likewise.
15383
15384 2020-01-21 Luis Machado <luis.machado@linaro.org>
15385
15386 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15387 output.
15388
15389 2020-01-21 Luis Machado <luis.machado@linaro.org>
15390
15391 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15392 <pc_adjust>: Adjust the documentation.
15393 (aarch64_displaced_step_fixup): Check if PC really moved before
15394 adjusting it.
15395
15396 2020-01-19 Tom Tromey <tom@tromey.com>
15397
15398 * disasm.c (~gdb_disassembler): New destructor.
15399 (gdb_buffered_insn_length): Call disassemble_free_target.
15400 * disasm.h (class gdb_disassembler): Declare destructor. Use
15401 DISABLE_COPY_AND_ASSIGN.
15402
15403 2020-01-19 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15406 (die_reader_func_ftype): Remove.
15407 (cutu_reader): New class.
15408 (dw2_get_file_names_reader): Remove "data" parameter.
15409 (dw2_get_file_names): Use cutu_reader.
15410 (create_debug_type_hash_table): Update.
15411 (read_cutu_die_from_dwo): Update comment.
15412 (lookup_dwo_unit): Add dwo_name parameter.
15413 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15414 die_reader_func_ftype and data parameters.
15415 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15416 Remove die_reader_func_ftype and data parameters.
15417 (~cutu_reader): New; from init_cutu_and_read_dies.
15418 (cutu_reader::cutu_reader): Rename from
15419 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15420 and data parameters.
15421 (init_cutu_and_read_dies_simple): Remove.
15422 (struct process_psymtab_comp_unit_data): Remove.
15423 (process_psymtab_comp_unit_reader): Remove data parameter; add
15424 want_partial_unit and pretend_language parameters.
15425 (process_psymtab_comp_unit): Use cutu_reader.
15426 (build_type_psymtabs_reader): Remove data parameter.
15427 (build_type_psymtabs_1): Use cutu_reader.
15428 (process_skeletonless_type_unit): Likewise.
15429 (load_partial_comp_unit_reader): Remove.
15430 (load_partial_comp_unit): Use cutu_reader.
15431 (load_full_comp_unit_reader): Remove.
15432 (load_full_comp_unit): Use cutu_reader.
15433 (struct create_dwo_cu_data): Remove.
15434 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15435 dwo_unit parameters.
15436 (create_cus_hash_table): Use cutu_reader.
15437 (struct dwarf2_read_addr_index_data): Remove.
15438 (dwarf2_read_addr_index_reader): Remove.
15439 (dwarf2_read_addr_index): Use cutu_reader.
15440 (read_signatured_type_reader): Remove.
15441 (read_signatured_type): Use cutu_reader.
15442
15443 2020-01-19 Tom Tromey <tom@tromey.com>
15444
15445 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15446 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15447 (tui_wrefresh): Declare.
15448 * tui/tui-wingeneral.c (suppress_output): New global.
15449 (tui_suppress_output, ~tui_suppress_output): New constructor and
15450 destructor.
15451 (tui_wrefresh): New function.
15452 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15453 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15454 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15455 method.
15456 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15457 tui_wrefresh.
15458 (tui_data_window::no_refresh): New method.
15459 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15460 (tui_reg_command): Use tui_suppress_output
15461 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15462 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15463 method.
15464 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15465
15466 2020-01-19 Tom Tromey <tom@tromey.com>
15467
15468 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15469 Handle case where symtab is null.
15470
15471 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15472
15473 * linux-fork.c (one_fork_p): Simplify.
15474
15475 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15476
15477 * top.c (struct qt_args): Remove.
15478 (kill_or_detach): Change return type to void, replace `void *`
15479 parameter with a proper one.
15480 (print_inferior_quit_action): Likewise.
15481 (quit_confirm): Use range-based for loop to iterate over inferiors.
15482 (quit_force): Likewise.
15483
15484 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15485
15486 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15487 `void *` parameter with proper parameters.
15488 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15489 (print_one_inferior): Change return type to void, replace `void *`
15490 parameter with proper parameters.
15491 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15492 inferiors.
15493 (get_other_inferior): Remove.
15494 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15495 inferiors.
15496
15497 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15498
15499 * mi/mi-interp.c (report_initial_inferior): Remove.
15500 (mi_interp::init): Use range-based for to iterate over inferiors.
15501
15502 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15503
15504 * python/py-inferior.c (build_inferior_list): Remove.
15505 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15506
15507 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15508
15509 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15510 (btrace_stitch_trace): Likewise.
15511 * charset.c (intermediate_encoding): Likewise (vaild).
15512 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15513 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15514 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15515
15516 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15517
15518 * windows-tdep.c (windows_get_tlb_type):
15519 Add rtl_user_process_parameters type.
15520
15521 2020-01-16 Pedro Alves <palves@redhat.com>
15522 Norbert Lange <nolange79@gmail.com>
15523
15524 PR build/24805
15525 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15526 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15527 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15528 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15529 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15530 (ps_plog): Redeclare exported functions with default visibility.
15531
15532 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15533
15534 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15535 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15536
15537 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15538
15539 * infcmd.c (post_create_inferior): Use get_thread_regcache
15540 instead of get_current_regcache.
15541
15542 2020-01-14 Tom Tromey <tom@tromey.com>
15543
15544 PR symtab/12535:
15545 * python/python.c (gdbpy_decode_line): Treat empty string the same
15546 as no argument.
15547
15548 2020-01-14 Tom Tromey <tom@tromey.com>
15549
15550 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15551
15552 2020-01-14 Tom Tromey <tom@tromey.com>
15553
15554 * nat/linux-btrace.c: Don't include <config.h>.
15555 * nat/linux-ptrace.c: Don't include <config.h>.
15556 * nat/x86-linux-dregs.c: Don't include <config.h>.
15557
15558 2020-01-14 Tom Tromey <tom@tromey.com>
15559
15560 * configure: Rebuild.
15561 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15562
15563 2020-01-14 Tom Tromey <tom@tromey.com>
15564
15565 * nat/x86-linux-dregs.c: Include configh.h.
15566 * nat/linux-ptrace.c: Include configh.h.
15567 * nat/linux-btrace.c: Include configh.h.
15568 * defs.h: Include config.h, bfd.h.
15569 * configure.ac: Don't source common.host.
15570 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15571 * configure: Rebuild.
15572 * acinclude.m4: Update path.
15573 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15574 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15575 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15576 (CLIBS): Add LIBSUPPORT.
15577 (CDEPS): Likewise.
15578 (COMMON_SFILES): Remove gdbsupport files.
15579 (HFILES_NO_SRCDIR): Likewise.
15580 (stamp-version): Update path to create-version.sh.
15581 (ALLDEPFILES): Remove gdbsupport files.
15582
15583 2020-01-14 Tom Tromey <tom@tromey.com>
15584
15585 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15586 USE_WIN32API when needed.
15587 * configure.ac (USE_WIN32API): Don't define.
15588 (WIN32LIBS): Use WIN32APILIBS.
15589 * configure: Rebuild.
15590
15591 2020-01-14 Tom Tromey <tom@tromey.com>
15592
15593 * configure: Rebuild.
15594 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15595
15596 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15597
15598 * skip.c (skip_function_command): Make skip w/o arguments use the
15599 name of the inlined function if pc is inside any inlined function.
15600
15601 2020-01-14 Luis Machado <luis.machado@linaro.org>
15602
15603 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15604 * infrun.c (resume_1): Likewise.
15605 (handle_inferior_event): Remove stale comment.
15606 * linux-nat.c (linux_nat_target::resume): Update comments.
15607 (save_stop_reason): Likewise.
15608 (linux_nat_filter_event): Likewise.
15609 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15610
15611 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15612
15613 * elfread.c (record_minimal_symbol): Set section index to 0 for
15614 non-allocatable sections.
15615
15616
15617 2020-01-13 Ali Tamur <tamur@google.com>
15618
15619 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15620 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15621 to gdb::optional. Update comments.
15622 (dwo_file): Update comments.
15623 (read_attribute): Update API to take an additional out parameter,
15624 need_reprocess. This is used to mark attributes that need other
15625 attributes (e.g. str_offsets_base) for correct computation which may not
15626 have been read yet.
15627 (read_attribute_reprocess): New function declaration.
15628 (read_addr_index): Likewise.
15629 (read_dwo_str_index): Likewise.
15630 (read_stub_str_index): Likewise.
15631 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15632 (lookup_addr_base): New function definition.
15633 (lookup_ranges_base): Likewise.
15634 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15635 lookup_ranges_base.
15636 (init_cutu_and_read_dies): Update comments.
15637 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15638 unit. This is used to inherit parent's str_offsets_base and addr_base.
15639 Update comments.
15640 (init_cutu_and_read_dies_simple): Reflect API changes.
15641 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15642 (create_cus_hash_table): Change API to take parent compile unit.
15643 Reflect API changes.
15644 (open_and_init_dwo_file): Reflect API changes.
15645 (dwarf2_get_pc_bounds): Update comments.
15646 (dwarf2_record_block_ranges): Likewise.
15647 (read_full_die_1): Change implementation to reprocess attributes that
15648 need str_offsets_base and addr_base.
15649 (partial_die_info::read): Likewise.
15650 (read_attribute_reprocess): New function definition.
15651 (read_attribute_value): Change API to take an additional out parameter,
15652 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15653 when a non-dwo compile unit has index based attributes.
15654 (read_attribute): Reflect API changes.
15655 (read_addr_index_1): Reflect API changes. Update comments.
15656 (dwarf2_read_addr_index_data): Reflect API changes.
15657 (dwarf2_read_addr_index): Likewise.
15658 (read_str_index): Change API and implementation. This becomes a helper
15659 to be used by the new string index related methods. Update error
15660 message and comments.
15661 (read_dwo_str_index): New function definition.
15662 (read_stub_str_index): Likewise.
15663 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15664 * symfile.h (dwarf2_debug_sections): Likewise.
15665 * xcoffread.c (dwarf2_debug_sections): Likewise.
15666
15667 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15668
15669 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15670 core_reg_sect type to gdb_byte *.
15671 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15672 * cris-tdep.c (fetch_core_registers): Likewise.
15673 * corelow.c (core_target::get_core_register_section): Change
15674 type of `contents` to gdb::byte_vector.
15675
15676 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15677
15678 * tui/tui-wingeneral.c (box_win): Position the title in the center
15679 of the border.
15680
15681 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15682
15683 * corelow.c (core_target::get_core_register_section): Use
15684 std::vector instead of alloca.
15685
15686 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15687
15688 * warning.m4: Add -Wmissing-declarations to build_warnings.
15689 * configure: Re-generate.
15690
15691 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15692
15693 * python/python.c (init__gdb_module): Add declaration.
15694
15695 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15696
15697 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15698 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15699 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15700 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15701 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15702 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15703 * ada-exp.y (_initialize_ada_exp): Add declaration.
15704 * ada-lang.c (_initialize_ada_language): Add declaration.
15705 * ada-tasks.c (_initialize_tasks): Add declaration.
15706 * agent.c (_initialize_agent): Add declaration.
15707 * aix-thread.c (_initialize_aix_thread): Add declaration.
15708 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15709 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15710 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15711 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15712 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15713 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15714 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15715 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15716 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15717 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15718 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15719 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15720 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15721 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15722 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15723 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15724 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15725 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15726 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15727 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15728 * annotate.c (_initialize_annotate): Add declaration.
15729 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15730 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15731 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15732 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15733 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15734 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15735 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15736 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15737 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15738 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15739 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15740 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15741 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15742 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15743 * auto-load.c (_initialize_auto_load): Add declaration.
15744 * auxv.c (_initialize_auxv): Add declaration.
15745 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15746 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15747 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15748 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15749 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15750 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15751 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15752 * breakpoint.c (_initialize_breakpoint): Add declaration.
15753 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15754 * btrace.c (_initialize_btrace): Add declaration.
15755 * charset.c (_initialize_charset): Add declaration.
15756 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15757 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15758 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15759 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15760 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15761 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15762 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15763 * coffread.c (_initialize_coffread): Add declaration.
15764 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15765 * compile/compile.c (_initialize_compile): Add declaration.
15766 * complaints.c (_initialize_complaints): Add declaration.
15767 * completer.c (_initialize_completer): Add declaration.
15768 * copying.c (_initialize_copying): Add declaration.
15769 * corefile.c (_initialize_core): Add declaration.
15770 * corelow.c (_initialize_corelow): Add declaration.
15771 * cp-abi.c (_initialize_cp_abi): Add declaration.
15772 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15773 * cp-support.c (_initialize_cp_support): Add declaration.
15774 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15775 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15776 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15777 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15778 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15779 * ctfread.c (_initialize_ctfread): Add declaration.
15780 * d-lang.c (_initialize_d_language): Add declaration.
15781 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15782 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15783 * dbxread.c (_initialize_dbxread): Add declaration.
15784 * dcache.c (_initialize_dcache): Add declaration.
15785 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15786 * disasm.c (_initialize_disasm): Add declaration.
15787 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15788 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15789 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15790 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15791 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15792 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15793 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15794 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15795 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15796 * elfread.c (_initialize_elfread): Add declaration.
15797 * exec.c (_initialize_exec): Add declaration.
15798 * extension.c (_initialize_extension): Add declaration.
15799 * f-lang.c (_initialize_f_language): Add declaration.
15800 * f-valprint.c (_initialize_f_valprint): Add declaration.
15801 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15802 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15803 * filesystem.c (_initialize_filesystem): Add declaration.
15804 * findcmd.c (_initialize_mem_search): Add declaration.
15805 * findvar.c (_initialize_findvar): Add declaration.
15806 * fork-child.c (_initialize_fork_child): Add declaration.
15807 * frame-base.c (_initialize_frame_base): Add declaration.
15808 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15809 * frame.c (_initialize_frame): Add declaration.
15810 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15811 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15812 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15813 * gcore.c (_initialize_gcore): Add declaration.
15814 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15815 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15816 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15817 * gdbarch.c (_initialize_gdbarch): Add declaration.
15818 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15819 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15820 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15821 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15822 * go-lang.c (_initialize_go_language): Add declaration.
15823 * go32-nat.c (_initialize_go32_nat): Add declaration.
15824 * guile/guile.c (_initialize_guile): Add declaration.
15825 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15826 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15827 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15828 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15829 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15830 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15831 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15832 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15833 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15834 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15835 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15836 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15837 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15838 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15839 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15840 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15841 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15842 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15843 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15844 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15845 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15846 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15847 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15848 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15849 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15850 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15851 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15852 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15853 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15854 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15855 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15856 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15857 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15858 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15859 * infcall.c (_initialize_infcall): Add declaration.
15860 * infcmd.c (_initialize_infcmd): Add declaration.
15861 * inflow.c (_initialize_inflow): Add declaration.
15862 * infrun.c (_initialize_infrun): Add declaration.
15863 * interps.c (_initialize_interpreter): Add declaration.
15864 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15865 * jit.c (_initialize_jit): Add declaration.
15866 * language.c (_initialize_language): Add declaration.
15867 * linux-fork.c (_initialize_linux_fork): Add declaration.
15868 * linux-nat.c (_initialize_linux_nat): Add declaration.
15869 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15870 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15871 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15872 * m2-lang.c (_initialize_m2_language): Add declaration.
15873 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15874 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15875 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15876 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15877 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15878 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15879 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15880 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15881 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15882 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15883 * machoread.c (_initialize_machoread): Add declaration.
15884 * macrocmd.c (_initialize_macrocmd): Add declaration.
15885 * macroscope.c (_initialize_macroscope): Add declaration.
15886 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15887 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15888 * maint.c (_initialize_maint_cmds): Add declaration.
15889 * mdebugread.c (_initialize_mdebugread): Add declaration.
15890 * memattr.c (_initialize_mem): Add declaration.
15891 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15892 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15893 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15894 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15895 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15896 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15897 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15898 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15899 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15900 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15901 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15902 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15903 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15904 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15905 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15906 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15907 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15908 * mipsread.c (_initialize_mipsread): Add declaration.
15909 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15910 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15911 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15912 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15913 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15914 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15915 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15916 * nto-procfs.c (_initialize_procfs): Add declaration.
15917 * objc-lang.c (_initialize_objc_language): Add declaration.
15918 * observable.c (_initialize_observer): Add declaration.
15919 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15920 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15921 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15922 * osabi.c (_initialize_gdb_osabi): Add declaration.
15923 * osdata.c (_initialize_osdata): Add declaration.
15924 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15925 * parse.c (_initialize_parse): Add declaration.
15926 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15927 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15928 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15929 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15930 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15931 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15932 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15933 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15934 * printcmd.c (_initialize_printcmd): Add declaration.
15935 * probe.c (_initialize_probe): Add declaration.
15936 * proc-api.c (_initialize_proc_api): Add declaration.
15937 * proc-events.c (_initialize_proc_events): Add declaration.
15938 * proc-service.c (_initialize_proc_service): Add declaration.
15939 * procfs.c (_initialize_procfs): Add declaration.
15940 * producer.c (_initialize_producer): Add declaration.
15941 * psymtab.c (_initialize_psymtab): Add declaration.
15942 * python/python.c (_initialize_python): Add declaration.
15943 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15944 * record-btrace.c (_initialize_record_btrace): Add declaration.
15945 * record-full.c (_initialize_record_full): Add declaration.
15946 * record.c (_initialize_record): Add declaration.
15947 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15948 * regcache.c (_initialize_regcache): Add declaration.
15949 * reggroups.c (_initialize_reggroup): Add declaration.
15950 * remote-notif.c (_initialize_notif): Add declaration.
15951 * remote-sim.c (_initialize_remote_sim): Add declaration.
15952 * remote.c (_initialize_remote): Add declaration.
15953 * reverse.c (_initialize_reverse): Add declaration.
15954 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15955 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15956 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15957 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15958 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15959 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15960 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15961 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15962 Add declaration.
15963 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15964 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15965 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15966 * rust-exp.y (_initialize_rust_exp): Add declaration.
15967 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15968 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15969 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15970 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15971 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15972 * score-tdep.c (_initialize_score_tdep): Add declaration.
15973 * ser-go32.c (_initialize_ser_dos): Add declaration.
15974 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15975 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15976 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15977 * ser-uds.c (_initialize_ser_socket): Add declaration.
15978 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15979 * serial.c (_initialize_serial): Add declaration.
15980 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15981 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15982 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15983 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15984 * skip.c (_initialize_step_skip): Add declaration.
15985 * sol-thread.c (_initialize_sol_thread): Add declaration.
15986 * solib-aix.c (_initialize_solib_aix): Add declaration.
15987 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15988 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15989 * solib-frv.c (_initialize_frv_solib): Add declaration.
15990 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15991 * solib-target.c (_initialize_solib_target): Add declaration.
15992 * solib.c (_initialize_solib): Add declaration.
15993 * source-cache.c (_initialize_source_cache): Add declaration.
15994 * source.c (_initialize_source): Add declaration.
15995 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15996 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15997 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15998 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15999 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16000 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16001 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16002 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16003 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16004 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16005 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16006 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16007 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16008 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16009 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16010 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16011 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16012 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16013 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16014 * stabsread.c (_initialize_stabsread): Add declaration.
16015 * stack.c (_initialize_stack): Add declaration.
16016 * stap-probe.c (_initialize_stap_probe): Add declaration.
16017 * std-regs.c (_initialize_frame_reg): Add declaration.
16018 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16019 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16020 * symfile.c (_initialize_symfile): Add declaration.
16021 * symmisc.c (_initialize_symmisc): Add declaration.
16022 * symtab.c (_initialize_symtab): Add declaration.
16023 * target.c (_initialize_target): Add declaration.
16024 * target-connection.c (_initialize_target_connection): Add
16025 declaration.
16026 * target-dcache.c (_initialize_target_dcache): Add declaration.
16027 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16028 * thread.c (_initialize_thread): Add declaration.
16029 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16030 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16031 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16032 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16033 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16034 * tracectf.c (_initialize_ctf): Add declaration.
16035 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16036 * tracefile.c (_initialize_tracefile): Add declaration.
16037 * tracepoint.c (_initialize_tracepoint): Add declaration.
16038 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16039 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16040 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16041 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16042 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16043 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16044 * tui/tui.c (_initialize_tui): Add declaration.
16045 * typeprint.c (_initialize_typeprint): Add declaration.
16046 * ui-style.c (_initialize_ui_style): Add declaration.
16047 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16048 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16049 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16050 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16051 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16052 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16053 * unittests/filtered_iterator-selftests.c
16054 (_initialize_filtered_iterator_selftests): Add declaration.
16055 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16056 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16057 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16058 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16059 * unittests/main-thread-selftests.c
16060 (_initialize_main_thread_selftests): Add declaration.
16061 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16062 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16063 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16064 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16065 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16066 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16067 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16068 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16069 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16070 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16071 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16072 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16073 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16074 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16075 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16076 declaration.
16077 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16078 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16079 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16080 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16081 * user-regs.c (_initialize_user_regs): Add declaration.
16082 * utils.c (_initialize_utils): Add declaration.
16083 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16084 * valops.c (_initialize_valops): Add declaration.
16085 * valprint.c (_initialize_valprint): Add declaration.
16086 * value.c (_initialize_values): Add declaration.
16087 * varobj.c (_initialize_varobj): Add declaration.
16088 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16089 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16090 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16091 * windows-nat.c (_initialize_windows_nat): Add declaration.
16092 (_initialize_check_for_gdb_ini): Add declaration.
16093 (_initialize_loadable): Add declaration.
16094 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16095 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16096 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16097 * xcoffread.c (_initialize_xcoffread): Add declaration.
16098 * xml-support.c (_initialize_xml_support): Add declaration.
16099 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16100 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16101 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16102 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16103
16104 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16105
16106 * regformats/regdat.sh: Generate declaration for init function.
16107
16108 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16109
16110 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16111 up.
16112 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16113 close_one_inferior>: New methods.
16114 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16115 pass down target to find_inferior_pid.
16116 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16117 Pass down target to find_inferior_ptid.
16118 (gdbsim_target::create_inferior): Pass down target to
16119 add_thread_silent.
16120 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16121 target down to find_inferior_ptid and switch_to_thread.
16122 (gdbsim_target::close): Update to call close_one_inferior.
16123 (struct resume_data): Remove.
16124 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16125 directly, rather than through a void pointer.
16126 (gdbsim_target::resume): Update to call resume_one_inferior.
16127
16128 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16129
16130 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16131
16132 2020-01-12 Pedro Alves <palves@redhat.com>
16133
16134 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16135 directly for the current inferior instead of
16136 discard_all_inferiors.
16137 (discard_all_inferiors): Delete.
16138
16139 2020-01-11 Tom Tromey <tom@tromey.com>
16140
16141 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16142 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16143 deprecated_safe_get_selected_frame.
16144
16145 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16146
16147 * inferior.c (print_inferior): Switch inferior before printing it.
16148
16149 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16150 Pedro Alves <palves@redhat.com>
16151
16152 * progspace-and-thread.c (switch_to_program_space_and_thread):
16153 Assert there's an inferior for PSPACE. Use
16154 switch_to_inferior_no_thread to switch the inferior too.
16155 * progspace.c (program_space::~program_space): Call
16156 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16157 (program_space::free_all_objfiles): Don't call clear_symtab_users
16158 here.
16159 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16160
16161 2020-01-10 Pedro Alves <palves@redhat.com>
16162
16163 * NEWS: Mention multi-target debugging, "info connections", and
16164 "add-inferior -no-connection".
16165
16166 2020-01-10 Pedro Alves <palves@redhat.com>
16167
16168 * infrun.c: Include "target-connection.h".
16169 (check_multi_target_resumption): New.
16170 (proceed): Call it.
16171 * target-connection.c (make_target_connection_string): Make
16172 extern.
16173 * target-connection.h (make_target_connection_string): Declare.
16174
16175 2020-01-10 Pedro Alves <palves@redhat.com>
16176
16177 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16178 * inferior.c (uiout_field_connection): New function.
16179 (print_inferior): Add new "connection-id" column.
16180 (add_inferior_command): Show connection number/string of added
16181 inferior.
16182 * process-stratum-target.h
16183 (process_stratum_target::connection_string): New virtual method.
16184 (process_stratum_target::connection_number): New field.
16185 * remote.c (remote_target::connection_string): New override.
16186 * target-connection.c: New file.
16187 * target-connection.h: New file.
16188 * target.c (decref_target): Remove process_stratum targets from
16189 the connection list.
16190 (target_stack::push): Add process_stratum targets to the
16191 connection list.
16192
16193 2020-01-10 Pedro Alves <palves@redhat.com>
16194
16195 Revert:
16196 2016-04-12 Pedro Alves <palves@redhat.com>
16197 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16198 Remove references to name.
16199 * serial.h (struct serial) <name>: Delete.
16200
16201 2020-01-10 Pedro Alves <palves@redhat.com>
16202
16203 * gdbarch-selftests.c (register_to_value_test): Remove "target
16204 already pushed" check.
16205
16206 2020-01-10 Pedro Alves <palves@redhat.com>
16207 John Baldwin <jhb@FreeBSD.org>
16208
16209 * aarch64-linux-nat.c
16210 (aarch64_linux_nat_target::thread_architecture): Adjust.
16211 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16212 (task_command_1): Likewise.
16213 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16214 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16215 (aix_thread_target::store_registers)
16216 (aix_thread_target::thread_alive): Adjust.
16217 * amd64-fbsd-tdep.c: Include "inferior.h".
16218 (amd64fbsd_get_thread_local_address): Pass down target.
16219 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16220 thread's gdbarch instead of target_gdbarch.
16221 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16222 get_last_target_status.
16223 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16224 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16225 inferiors.
16226 (update_inserted_breakpoint_locations): Skip if inferiors with no
16227 execution.
16228 (update_global_location_list): When handling moribund locations,
16229 find representative inferior for location's pspace, and use thread
16230 count of its process_stratum target.
16231 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16232 * bsd-uthread.c (bsd_uthread_target::wait): Use
16233 as_process_stratum_target and adjust thread_change_ptid and
16234 add_thread calls.
16235 (bsd_uthread_target::update_thread_list): Use
16236 as_process_stratum_target and adjust find_thread_ptid,
16237 thread_change_ptid and add_thread calls.
16238 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16239 find_thread_ptid call.
16240 * corelow.c (add_to_thread_list): Adjust add_thread call.
16241 (core_target_open): Adjust add_thread_silent and thread_count
16242 calls.
16243 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16244 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16245 * event-top.c (async_disconnect): Pop targets from all inferiors.
16246 * exec.c (add_target_sections): Push exec target on all inferiors
16247 sharing the program space.
16248 (remove_target_sections): Remove the exec target from all
16249 inferiors sharing the program space.
16250 (exec_on_vfork): New.
16251 * exec.h (exec_on_vfork): Declare.
16252 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16253 Pass it down.
16254 (fbsd_nat_target::update_thread_list): Adjust.
16255 (fbsd_nat_target::resume): Adjust.
16256 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16257 down.
16258 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16259 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16260 get_thread_arch_regcache call.
16261 * fork-child.c (gdb_startup_inferior): Pass target down to
16262 startup_inferior and set_executing.
16263 * gdbthread.h (struct process_stratum_target): Forward declare.
16264 (add_thread, add_thread_silent, add_thread_with_info)
16265 (in_thread_list): Add process_stratum_target parameter.
16266 (find_thread_ptid(inferior*, ptid_t)): New overload.
16267 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16268 parameter.
16269 (all_threads()): Delete overload.
16270 (all_threads, all_non_exited_threads): Add process_stratum_target
16271 parameter.
16272 (all_threads_safe): Use brace initialization.
16273 (thread_count): Add process_stratum_target parameter.
16274 (set_resumed, set_running, set_stop_requested, set_executing)
16275 (threads_are_executing, finish_thread_state): Add
16276 process_stratum_target parameter.
16277 (switch_to_thread): Use is_current_thread.
16278 * i386-fbsd-tdep.c: Include "inferior.h".
16279 (i386fbsd_get_thread_local_address): Pass down target.
16280 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16281 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16282 have_inferiors check.
16283 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16284 (inf_ptrace_target::attach): Adjust.
16285 * infcall.c (run_inferior_call): Adjust.
16286 * infcmd.c (run_command_1): Pass target to
16287 scoped_finish_thread_state.
16288 (proceed_thread_callback): Skip inferiors with no execution.
16289 (continue_command): Rename 'all_threads' local to avoid hiding
16290 'all_threads' function. Adjust get_last_target_status call.
16291 (prepare_one_step): Adjust set_running call.
16292 (signal_command): Use user_visible_resume_target. Compare thread
16293 pointers instead of inferior_ptid.
16294 (info_program_command): Adjust to pass down target.
16295 (attach_command): Mark target's 'thread_executing' flag.
16296 (stop_current_target_threads_ns): New, factored out from ...
16297 (interrupt_target_1): ... this. Switch inferior before making
16298 target calls.
16299 * inferior-iter.h
16300 (struct all_inferiors_iterator, struct all_inferiors_range)
16301 (struct all_inferiors_safe_range)
16302 (struct all_non_exited_inferiors_range): Filter on
16303 process_stratum_target too. Remove explicit.
16304 * inferior.c (inferior::inferior): Push dummy target on target
16305 stack.
16306 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16307 Add process_stratum_target parameter, and pass it down.
16308 (have_live_inferiors): Adjust.
16309 (switch_to_inferior_and_push_target): New.
16310 (add_inferior_command, clone_inferior_command): Handle
16311 "-no-connection" parameter. Use
16312 switch_to_inferior_and_push_target.
16313 (_initialize_inferior): Mention "-no-connection" option in
16314 the help of "add-inferior" and "clone-inferior" commands.
16315 * inferior.h: Include "process-stratum-target.h".
16316 (interrupt_target_1): Use bool.
16317 (struct inferior) <push_target, unpush_target, target_is_pushed,
16318 find_target_beneath, top_target, process_target, target_at,
16319 m_stack>: New.
16320 (discard_all_inferiors): Delete.
16321 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16322 (all_inferiors, all_non_exited_inferiors): Add
16323 process_stratum_target parameter.
16324 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16325 (target_last_proc_target): New global.
16326 (follow_fork_inferior): Push target on new inferior. Pass target
16327 to add_thread_silent. Call exec_on_vfork. Handle target's
16328 reference count.
16329 (follow_fork): Adjust get_last_target_status call. Also consider
16330 target.
16331 (follow_exec): Push target on new inferior.
16332 (struct execution_control_state) <target>: New field.
16333 (user_visible_resume_target): New.
16334 (do_target_resume): Call target_async.
16335 (resume_1): Set target's threads_executing flag. Consider resume
16336 target.
16337 (commit_resume_all_targets): New.
16338 (proceed): Also consider resume target. Skip threads of inferiors
16339 with no execution. Commit resumtion in all targets.
16340 (start_remote): Pass current inferior to wait_for_inferior.
16341 (infrun_thread_stop_requested): Consider target as well. Pass
16342 thread_info pointer to clear_inline_frame_state instead of ptid.
16343 (infrun_thread_thread_exit): Consider target as well.
16344 (random_pending_event_thread): New inferior parameter. Use it.
16345 (do_target_wait): Rename to ...
16346 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16347 down.
16348 (threads_are_resumed_pending_p, do_target_wait): New.
16349 (prepare_for_detach): Adjust calls.
16350 (wait_for_inferior): New inferior parameter. Handle it. Use
16351 do_target_wait_1 instead of do_target_wait.
16352 (fetch_inferior_event): Adjust. Switch to representative
16353 inferior. Pass target down.
16354 (set_last_target_status): Add process_stratum_target parameter.
16355 Save target in global.
16356 (get_last_target_status): Add process_stratum_target parameter and
16357 handle it.
16358 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16359 (context_switch): Check inferior_ptid == null_ptid before calling
16360 inferior_thread().
16361 (get_inferior_stop_soon): Pass down target.
16362 (wait_one): Rename to ...
16363 (poll_one_curr_target): ... this.
16364 (struct wait_one_event): New.
16365 (wait_one): New.
16366 (stop_all_threads): Adjust.
16367 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16368 event's target.
16369 (switch_back_to_stepped_thread): Also consider target.
16370 (print_stop_event): Update.
16371 (normal_stop): Update. Also consider the resume target.
16372 * infrun.h (wait_for_inferior): Remove declaration.
16373 (user_visible_resume_target): New declaration.
16374 (get_last_target_status, set_last_target_status): New
16375 process_stratum_target parameter.
16376 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16377 process_stratum_target parameter, and use it.
16378 (clear_inline_frame_state (thread_info*)): New.
16379 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16380 process_stratum_target parameter.
16381 (clear_inline_frame_state (thread_info*)): Declare.
16382 * linux-fork.c (delete_checkpoint_command): Pass target down to
16383 find_thread_ptid.
16384 (checkpoint_command): Adjust.
16385 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16386 instead of just tweaking inferior_ptid.
16387 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16388 (exit_lwp): Pass target down to find_thread_ptid.
16389 (attach_proc_task_lwp_callback): Pass target down to
16390 add_thread/set_running/set_executing.
16391 (linux_nat_target::attach): Pass target down to
16392 thread_change_ptid.
16393 (get_detach_signal): Pass target down to find_thread_ptid.
16394 Consider last target status's target.
16395 (linux_resume_one_lwp_throw, resume_lwp)
16396 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16397 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16398 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16399 (linux_nat_target::async_wait_fd): New.
16400 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16401 target down.
16402 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16403 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16404 * linux-thread-db.c (struct thread_db_info::process_target): New
16405 field.
16406 (add_thread_db_info): Save target.
16407 (get_thread_db_info): New process_stratum_target parameter. Also
16408 match target.
16409 (delete_thread_db_info): New process_stratum_target parameter.
16410 Also match target.
16411 (thread_from_lwp): Adjust to pass down target.
16412 (thread_db_notice_clone): Pass down target.
16413 (check_thread_db_callback): Pass down target.
16414 (try_thread_db_load_1): Always push the thread_db target.
16415 (try_thread_db_load, record_thread): Pass target down.
16416 (thread_db_target::detach): Pass target down. Always unpush the
16417 thread_db target.
16418 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16419 target down. Always unpush the thread_db target.
16420 (find_new_threads_callback, thread_db_find_new_threads_2)
16421 (thread_db_target::update_thread_list): Pass target down.
16422 (thread_db_target::pid_to_str): Pass current inferior down.
16423 (thread_db_target::get_thread_local_address): Pass target down.
16424 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16425 target down.
16426 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16427 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16428 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16429 (procfs_init_inferior): Rename to ...
16430 (procfs_target::procfs_init_inferior): ... this and adjust.
16431 (procfs_target::create_inferior, procfs_notice_thread)
16432 (procfs_do_thread_registers): Adjust.
16433 * ppc-fbsd-tdep.c: Include "inferior.h".
16434 (ppcfbsd_get_thread_local_address): Pass down target.
16435 * proc-service.c (ps_xfer_memory): Switch current inferior and
16436 program space as well.
16437 (get_ps_regcache): Pass target down.
16438 * process-stratum-target.c
16439 (process_stratum_target::thread_address_space)
16440 (process_stratum_target::thread_architecture): Pass target down.
16441 * process-stratum-target.h
16442 (process_stratum_target::threads_executing): New field.
16443 (as_process_stratum_target): New.
16444 * ravenscar-thread.c
16445 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16446 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16447 down.
16448 * record-btrace.c (record_btrace_target::info_record): Adjust.
16449 (record_btrace_target::record_method)
16450 (record_btrace_target::record_is_replaying)
16451 (record_btrace_target::fetch_registers)
16452 (get_thread_current_frame_id, record_btrace_target::resume)
16453 (record_btrace_target::wait, record_btrace_target::stop): Pass
16454 target down.
16455 * record-full.c (record_full_wait_1): Switch to event thread.
16456 Pass target down.
16457 * regcache.c (regcache::regcache)
16458 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16459 process_stratum_target parameter and handle it.
16460 (current_thread_target): New global.
16461 (get_thread_regcache): Add process_stratum_target parameter and
16462 handle it. Switch inferior before calling target method.
16463 (get_thread_regcache): Pass target down.
16464 (get_thread_regcache_for_ptid): Pass target down.
16465 (registers_changed_ptid): Add process_stratum_target parameter and
16466 handle it.
16467 (registers_changed_thread, registers_changed): Pass target down.
16468 (test_get_thread_arch_aspace_regcache): New.
16469 (current_regcache_test): Define a couple local test_target_ops
16470 instances and use them for testing.
16471 (readwrite_regcache): Pass process_stratum_target parameter.
16472 (cooked_read_test, cooked_write_test): Pass mock_target down.
16473 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16474 (get_thread_arch_aspace_regcache): Add process_stratum_target
16475 parameter.
16476 (regcache::target): New method.
16477 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16478 (regcache::registers_changed_ptid): Add process_stratum_target
16479 parameter.
16480 (regcache::m_target): New field.
16481 (registers_changed_ptid): Add process_stratum_target parameter.
16482 * remote.c (remote_state::supports_vCont_probed): New field.
16483 (remote_target::async_wait_fd): New method.
16484 (remote_unpush_and_throw): Add remote_target parameter.
16485 (get_current_remote_target): Adjust.
16486 (remote_target::remote_add_inferior): Push target.
16487 (remote_target::remote_add_thread)
16488 (remote_target::remote_notice_new_inferior)
16489 (get_remote_thread_info): Pass target down.
16490 (remote_target::update_thread_list): Skip threads of inferiors
16491 bound to other targets. (remote_target::close): Don't discard
16492 inferiors. (remote_target::add_current_inferior_and_thread)
16493 (remote_target::process_initial_stop_replies)
16494 (remote_target::start_remote)
16495 (remote_target::remote_serial_quit_handler): Pass down target.
16496 (remote_target::remote_unpush_target): New remote_target
16497 parameter. Unpush the target from all inferiors.
16498 (remote_target::remote_unpush_and_throw): New remote_target
16499 parameter. Pass it down.
16500 (remote_target::open_1): Check whether the current inferior has
16501 execution instead of checking whether any inferior is live. Pass
16502 target down.
16503 (remote_target::remote_detach_1): Pass down target. Use
16504 remote_unpush_target.
16505 (extended_remote_target::attach): Pass down target.
16506 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16507 (remote_target::append_resumption): Pass down target.
16508 (remote_target::append_pending_thread_resumptions)
16509 (remote_target::remote_resume_with_hc, remote_target::resume)
16510 (remote_target::commit_resume): Pass down target.
16511 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16512 (remote_target::interrupt_query)
16513 (remote_target::remove_new_fork_children)
16514 (remote_target::check_pending_events_prevent_wildcard_vcont)
16515 (remote_target::remote_parse_stop_reply)
16516 (remote_target::process_stop_reply): Pass down target.
16517 (first_remote_resumed_thread): New remote_target parameter. Pass
16518 it down.
16519 (remote_target::wait_as): Pass down target.
16520 (unpush_and_perror): New remote_target parameter. Pass it down.
16521 (remote_target::readchar, remote_target::remote_serial_write)
16522 (remote_target::getpkt_or_notif_sane_1)
16523 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16524 down target.
16525 (remote_target::mourn_inferior): Pass down target. Use
16526 remote_unpush_target.
16527 (remote_target::core_of_thread)
16528 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16529 (remote_target::pid_to_exec_file)
16530 (remote_target::thread_handle_to_thread_info): Pass down target.
16531 (remote_target::async_wait_fd): New.
16532 * riscv-fbsd-tdep.c: Include "inferior.h".
16533 (riscv_fbsd_get_thread_local_address): Pass down target.
16534 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16535 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16536 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16537 Adjust.
16538 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16539 * solib-svr4.c (enable_break): Pass down target.
16540 * spu-multiarch.c (parse_spufs_run): Pass down target.
16541 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16542 * target-delegates.c: Regenerate.
16543 * target.c (g_target_stack): Delete.
16544 (current_top_target): Return the current inferior's top target.
16545 (target_has_execution_1): Refer to the passed-in inferior's top
16546 target.
16547 (target_supports_terminal_ours): Check whether the initial
16548 inferior was already created.
16549 (decref_target): New.
16550 (target_stack::push): Incref/decref the target.
16551 (push_target, push_target, unpush_target): Adjust.
16552 (target_stack::unpush): Defref target.
16553 (target_is_pushed): Return bool. Adjust to refer to the current
16554 inferior's target stack.
16555 (dispose_inferior): Delete, and inline parts ...
16556 (target_preopen): ... here. Only dispose of the current inferior.
16557 (target_detach): Hold strong target reference while detaching.
16558 Pass target down.
16559 (target_thread_name): Add assertion.
16560 (target_resume): Pass down target.
16561 (target_ops::beneath, find_target_at): Adjust to refer to the
16562 current inferior's target stack.
16563 (get_dummy_target): New.
16564 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16565 has a thread running.
16566 (initialize_targets): Rename to ...
16567 (_initialize_target): ... this.
16568 * target.h: Include "gdbsupport/refcounted-object.h".
16569 (struct target_ops): Inherit refcounted_object.
16570 (target_ops::shortname, target_ops::longname): Make const.
16571 (target_ops::async_wait_fd): New method.
16572 (decref_target): Declare.
16573 (struct target_ops_ref_policy): New.
16574 (target_ops_ref): New typedef.
16575 (get_dummy_target): Declare function.
16576 (target_is_pushed): Return bool.
16577 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16578 (all_matching_threads_iterator::all_matching_threads_iterator):
16579 Handle filter target.
16580 * thread-iter.h (struct all_matching_threads_iterator, struct
16581 all_matching_threads_range, class all_non_exited_threads_range):
16582 Filter by target too. Remove explicit.
16583 * thread.c (threads_executing): Delete.
16584 (inferior_thread): Pass down current inferior.
16585 (clear_thread_inferior_resources): Pass down thread pointer
16586 instead of ptid_t.
16587 (add_thread_silent, add_thread_with_info, add_thread): Add
16588 process_stratum_target parameter. Use it for thread and inferior
16589 searches.
16590 (is_current_thread): New.
16591 (thread_info::deletable): Use it.
16592 (find_thread_ptid, thread_count, in_thread_list)
16593 (thread_change_ptid, set_resumed, set_running): New
16594 process_stratum_target parameter. Pass it down.
16595 (set_executing): New process_stratum_target parameter. Pass it
16596 down. Adjust reference to 'threads_executing'.
16597 (threads_are_executing): New process_stratum_target parameter.
16598 Adjust reference to 'threads_executing'.
16599 (set_stop_requested, finish_thread_state): New
16600 process_stratum_target parameter. Pass it down.
16601 (switch_to_thread): Also match inferior.
16602 (switch_to_thread): New process_stratum_target parameter. Pass it
16603 down.
16604 (update_threads_executing): Reimplement.
16605 * top.c (quit_force): Pop targets from all inferior.
16606 (gdb_init): Don't call initialize_targets.
16607 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16608 Declare.
16609 (windows_add_thread, windows_delete_thread): Adjust.
16610 (get_windows_debug_event): Rename to ...
16611 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16612 * tracefile-tfile.c (tfile_target_open): Pass down target.
16613 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16614 Forward declare.
16615 (switch_to_thread): Add process_stratum_target parameter.
16616 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16617 parameter. Use it.
16618 (mi_on_resume): Pass target down.
16619 * nat/fork-inferior.c (startup_inferior): Add
16620 process_stratum_target parameter. Pass it down.
16621 * nat/fork-inferior.h (startup_inferior): Add
16622 process_stratum_target parameter.
16623 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16624
16625 2020-01-10 Pedro Alves <palves@redhat.com>
16626
16627 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16628 directly. Instead find the first thread in the thread list and
16629 use switch_to_thread.
16630
16631 2020-01-10 Pedro Alves <palves@redhat.com>
16632
16633 * remote.c (remote_target::remote_add_inferior): Don't bind a
16634 process to the current inferior if the current inferior is already
16635 bound to a process.
16636
16637 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16638 Pedro Alves <palves@redhat.com>
16639
16640 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16641 If no process is specified, return null_ptid instead of
16642 inferior_ptid.
16643 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16644 TARGET_WAITKIND_SIGNALLED with no pid.
16645
16646 2020-01-10 Pedro Alves <palves@redhat.com>
16647
16648 * remote.c (first_remote_resumed_thread): New.
16649 (remote_target::wait_as): Use it as default event_ptid instead of
16650 inferior_ptid.
16651
16652 2020-01-10 Pedro Alves <palves@redhat.com>
16653
16654 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16655
16656 2020-01-10 Pedro Alves <palves@redhat.com>
16657
16658 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16659 not -1.
16660
16661 2020-01-10 Pedro Alves <palves@redhat.com>
16662
16663 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16664 ptid to get_last_target_status.
16665 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16666 ptid to get_last_target_status.
16667 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16668 get_last_target_status.
16669 (info_program_command): Don't pass a target_waitstatus to
16670 get_last_target_status.
16671 * infrun.c (init_wait_for_inferior): Use
16672 nullify_last_target_wait_ptid.
16673 (get_last_target_status): Handle nullptr arguments.
16674 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16675 (print_stop_event): Don't pass a ptid to get_last_target_status.
16676 (normal_stop): Don't pass a ptid to get_last_target_status.
16677 * infrun.h (get_last_target_status, set_last_target_status): Move
16678 comments here and update.
16679 (nullify_last_target_wait_ptid): Declare.
16680 * linux-fork.c (fork_load_infrun_state): Remove local extern
16681 declaration of nullify_last_target_wait_ptid.
16682 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16683 to get_last_target_status.
16684
16685 2020-01-10 Pedro Alves <palves@redhat.com>
16686
16687 * gdbthread.h (scoped_restore_current_thread)
16688 <dont_restore, restore, m_dont_restore>: Declare.
16689 * thread.c (thread_alive): Add assertion. Return bool.
16690 (switch_to_thread_if_alive): New.
16691 (prune_threads): Switch inferior/thread.
16692 (print_thread_info_1): Switch thread before calling target methods.
16693 (scoped_restore_current_thread::restore): New, factored out from
16694 ...
16695 (scoped_restore_current_thread::~scoped_restore_current_thread):
16696 ... this.
16697 (scoped_restore_current_thread::scoped_restore_current_thread):
16698 Add assertion.
16699 (thread_apply_all_command, thread_select): Use
16700 switch_to_thread_if_alive.
16701 * infrun.c (proceed, restart_threads, handle_signal_stop)
16702 (switch_back_to_stepped_thread): Switch current thread before
16703 calling target methods.
16704
16705 2020-01-10 Pedro Alves <palves@redhat.com>
16706
16707 * inferior.c (switch_to_inferior_no_thread): New function,
16708 factored out from ...
16709 (inferior_command): ... here.
16710 * inferior.h (switch_to_inferior_no_thread): Declare.
16711 * mi/mi-main.c (run_one_inferior): Use
16712 switch_to_inferior_no_thread.
16713
16714 2020-01-10 Pedro Alves <palves@redhat.com>
16715
16716 * infcmd.c (kill_command): Remove dead code.
16717
16718 2020-01-10 Pedro Alves <palves@redhat.com>
16719
16720 * remote.c (remote_target::mourn_inferior): No longer check
16721 whether the target is running.
16722
16723 2020-01-10 Pedro Alves <palves@redhat.com>
16724
16725 * corelow.c (core_target::has_execution): Change parameter type to
16726 inferior pointer.
16727 * inferior.c (number_of_live_inferiors): Use
16728 inferior::has_execution instead of target_has_execution_1.
16729 * inferior.h (inferior::has_execution): New.
16730 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16731 inferior::has_execution instead of target_has_execution_1.
16732 * process-stratum-target.c
16733 (process_stratum_target::has_execution): Change parameter type to
16734 inferior pointer. Check the inferior's PID instead of
16735 inferior_ptid.
16736 * process-stratum-target.h
16737 (process_stratum_target::has_execution): Change parameter type to
16738 inferior pointer.
16739 * record-full.c (record_full_core_target::has_execution): Change
16740 parameter type to inferior pointer.
16741 * target.c (target_has_execution_1): Change parameter type to
16742 inferior pointer.
16743 (target_has_execution_current): Adjust.
16744 * target.h (target_ops::has_execution): Change parameter type to
16745 inferior pointer.
16746 (target_has_execution_1): Change parameter type to inferior
16747 pointer. Change return type to bool.
16748 * tracefile.h (tracefile_target::has_execution): Change parameter
16749 type to inferior pointer.
16750
16751 2020-01-10 Pedro Alves <palves@redhat.com>
16752
16753 * exceptions.c (print_flush): Remove current_top_target() check.
16754
16755 2020-01-10 Pedro Alves <palves@redhat.com>
16756
16757 * remote.c (show_remote_exec_file): Show the current inferior's
16758 exec-file instead of the command variable's value.
16759
16760 2020-01-10 Pedro Alves <palves@redhat.com>
16761
16762 * record-full.c (record_full_resume_ptid): New global.
16763 (record_full_target::resume): Set it.
16764 (record_full_wait_1): Use record_full_resume_ptid instead of
16765 inferior_ptid.
16766
16767 2020-01-10 Pedro Alves <palves@redhat.com>
16768
16769 * gdbthread.h (scoped_restore_current_thread)
16770 <dont_restore, restore, m_dont_restore>: Declare.
16771 * thread.c (thread_alive): Add assertion. Return bool.
16772 (switch_to_thread_if_alive): New.
16773 (prune_threads): Switch inferior/thread.
16774 (print_thread_info_1): Switch thread before calling target methods.
16775 (scoped_restore_current_thread::restore): New, factored out from
16776 ...
16777 (scoped_restore_current_thread::~scoped_restore_current_thread):
16778 ... this.
16779 (scoped_restore_current_thread::scoped_restore_current_thread):
16780 Add assertion.
16781 (thread_apply_all_command, thread_select): Use
16782 switch_to_thread_if_alive.
16783
16784 2020-01-10 George Barrett <bob@bob131.so>
16785
16786 * stap-probe.c (stap_modify_semaphore): Don't check for null
16787 semaphores.
16788 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16789 for null semaphores.
16790
16791 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16792
16793 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16794 all source windows, and maintain horizontal scroll status while
16795 doing so.
16796
16797 2020-01-09 Tom Tromey <tom@tromey.com>
16798
16799 PR tui/18932:
16800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16801 update_source_window, not print_source_lines.
16802
16803 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16804
16805 * tui/tui.c (tui_enable): Register tui hooks after calling
16806 tui_display_main.
16807
16808 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16809
16810 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16811
16812 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16813
16814 * thread.c (print_thread_info_1): Fix indentation.
16815
16816 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16817
16818 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16819 unique_xmalloc_ptr outside the if to always free the demangled name.
16820
16821 2020-01-08 Tom Tromey <tromey@adacore.com>
16822
16823 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16824 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16825 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16826 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16827 Remove.
16828 (section_offsets): New typedef.
16829 * symtab.c (fixup_section, get_msymbol_address): Update.
16830 * symmisc.c (dump_msymbols): Update.
16831 * symfile.h (relative_addr_info_to_section_offsets)
16832 (symfile_map_offsets_to_segments): Update.
16833 * symfile.c (build_section_addr_info_from_objfile)
16834 (init_objfile_sect_indices): Update.
16835 (struct place_section_arg): Change type of "offsets".
16836 (place_section): Update.
16837 (relative_addr_info_to_section_offsets): Change type of
16838 "section_offsets". Remove "num_sections" parameter.
16839 (default_symfile_offsets, syms_from_objfile_1)
16840 (set_objfile_default_section_offset): Update.
16841 (reread_symbols): No need to preserve section offsets by hand.
16842 (symfile_map_offsets_to_segments): Change type of "offsets".
16843 * stap-probe.c (relocate_address): Update.
16844 * stabsread.h (process_one_symbol): Update.
16845 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16846 (solib_target_relocate_section_addresses): Update.
16847 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16848 Update.
16849 * solib-frv.c (frv_relocate_main_executable): Update.
16850 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16851 * solib-aix.c (solib_aix_get_section_offsets): Change return
16852 type.
16853 (solib_aix_solib_create_inferior_hook): Update.
16854 * remote.c (remote_target::get_offsets): Update.
16855 * psymtab.c (find_pc_sect_psymtab): Update.
16856 * psympriv.h (struct partial_symbol) <address, text_low,
16857 text_high>: Update.
16858 * objfiles.h (obj_section_offset): Update.
16859 (struct objfile) <section_offsets>: Change type.
16860 <num_sections>: Remove.
16861 (objfile_relocate): Update.
16862 * objfiles.c (entry_point_address_query): Update
16863 (relocate_one_symbol): Change type of "section_offsets".
16864 (objfile_relocate1, objfile_relocate1): Change type of
16865 "new_offsets".
16866 (objfile_rebase1): Update.
16867 * mipsread.c (mipscoff_symfile_read): Update.
16868 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16869 parameter.
16870 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16871 (parse_external, psymtab_to_symtab_1): Update.
16872 * machoread.c (macho_symfile_offsets): Update.
16873 * ia64-tdep.c (ia64_find_unwind_table): Update.
16874 * hppa-tdep.c (read_unwind_info): Update.
16875 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16876 * dwarf2read.c (create_addrmap_from_index)
16877 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16878 (process_psymtab_comp_unit_reader, add_partial_symbol)
16879 (add_partial_subprogram, process_full_comp_unit)
16880 (read_file_scope, read_func_scope, read_lexical_block_scope)
16881 (read_call_site_scope, dwarf2_rnglists_process)
16882 (dwarf2_ranges_process, dwarf2_ranges_read)
16883 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16884 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16885 Update.
16886 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16887 Update.
16888 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16889 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16890 (process_one_symbol): Change type of "section_offsets".
16891 * ctfread.c (get_objfile_text_range): Update.
16892 * coffread.c (coff_symtab_read, enter_linenos)
16893 (process_coff_symbol): Update.
16894 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16895 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16896
16897 2020-01-08 Tom Tromey <tromey@adacore.com>
16898
16899 * dwarf2read.c (parse_macro_definition): Use std::string.
16900 (parse_macro_definition): Likewise.
16901
16902 2020-01-08 Tom Tromey <tromey@adacore.com>
16903
16904 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16905 (ATTR_ALLOC_CHUNK): Remove.
16906
16907 2020-01-08 Tom Tromey <tromey@adacore.com>
16908
16909 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16910
16911 2020-01-08 Tom Tromey <tromey@adacore.com>
16912
16913 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16914 (dwarf2_compute_name, open_dwo_file): Likewise.
16915 (process_enumeration_scope): Use std::vector.
16916 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16917 (partial_die_info::fixup, dwarf2_start_subfile)
16918 (guess_full_die_structure_name, dwarf2_name): Likewise.
16919 (determine_prefix): Update.
16920 (guess_full_die_structure_name): Make return type const.
16921 (partial_die_full_name): Return unique_xmalloc_ptr.
16922 (DW_FIELD_ALLOC_CHUNK): Remove.
16923
16924 2020-01-07 Tom Tromey <tromey@adacore.com>
16925
16926 PR build/24937:
16927 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16928
16929 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16930
16931 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16932
16933 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16934
16935 * stack.c (print_frame_info): Move disassemble_next_line code
16936 inside source_print block.
16937
16938 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16939
16940 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16941 gdb/signals.h, as we are now using native signal symbols.
16942
16943 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16944
16945 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16946 overflow by an early check of content vs threshold.
16947 * tui/tui-source.c (tui_source_window::line_is_displayed):
16948 Likewise.
16949
16950 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16951
16952 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16953
16954 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16955
16956 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16957 export table if no section contains it's RVA.
16958
16959 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16960
16961 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16962
16963 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16964
16965 * source.c (print_source_lines_base): Set last_line_listed.
16966
16967 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16968
16969 * tui/tui-disasm.c: Remove trailing spaces.
16970
16971 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16972 Pedro Alves <palves@redhat.com>
16973
16974 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16975 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16976 (windows_gdb_signal_to_target): New function, uses the above
16977 enumeration to convert GDB internal signal codes to equivalent
16978 Windows codes.
16979 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16980 * windows-nat.c: Include "gdb_wait.h".
16981 (get_windows_debug_event): Extract the fatal exception from the
16982 exit status and convert to the equivalent Posix signal number.
16983 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16984 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16985 * gdbsupport/gdb_wait.c: New file, implements
16986 windows_status_to_termsig.
16987 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16988 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16989
16990 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16991
16992 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16993 show_layout.
16994
16995 2020-01-05 Luis Machado <luis.machado@linaro.org>
16996
16997 * aarch64-linux-nat.c
16998 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16999 and bfd_mach_aarch64.
17000
17001 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17002
17003 * ui-file.c (stdio_file::can_emit_style_escape)
17004 (tee_file::can_emit_style_escape): Ensure style is used also on
17005 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17006 to gdb_stdout.
17007 * main.c (set_gdb_data_directory): Use file style to output the
17008 warning that the given pathname is not a directory.
17009 * top.c (show_history_filename, gdb_safe_append_history)
17010 (show_gdb_datadir): Use file style.
17011
17012 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17013
17014 * solib-target.c (struct lm_info_target):
17015 Change offsets to be a unique_xmalloc_ptr.
17016 (solib_target_relocate_section_addresses): Update.
17017
17018 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17019
17020 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17021
17022 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17023
17024 * MAINTAINERS (Write After Approval): Add myself.
17025
17026 2020-01-02 Luis Machado <luis.machado@linaro.org>
17027
17028 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17029 Cell BE architecture.
17030 * target.h (struct target_ops) <thread_architecture>: Likewise.
17031
17032 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17033
17034 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17035
17036 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17037
17038 * MAINTAINERS (Write After Approval): Add myself.
17039
17040 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17041
17042 * gdbarch.sh: Update copyright year range of generated files.
17043
17044 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17045
17046 Update copyright year range in all GDB files.
17047
17048 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17049
17050 * copyright.py: Convert to Python 3.
17051
17052 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17053
17054 * copyright.py: Adapt after move of gnulib directory from gdb
17055 directory to toplevel directory.
17056
17057 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17058
17059 * copyright.py (main): Exit if run from the wrong directory.
17060
17061 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17062
17063 * top.c (print_gdb_version): Change copyright year to 2020.
17064
17065 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17066
17067 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17068
17069 For older changes see ChangeLog-2019.
17070 \f
17071 Local Variables:
17072 mode: change-log
17073 left-margin: 8
17074 fill-column: 74
17075 version-control: never
17076 coding: utf-8
17077 End:
This page took 0.349803 seconds and 5 git commands to generate.