gdb/ChangeLog: fix typo in an entry from 2020-11-15 (gmp-utils.c)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (get_array_bounds): Return bool, adjust some
4 callers. Move doc here.
5 * gdbtypes.c (get_array_bounds): Return bool
6
7 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
10 assert.
11 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
12 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
13 case to the default.
14
15 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * printcmd.c: Include 'safe-ctype.c'.
18 (skip_over_slash_fmt): New function.
19 (print_command_completer): Call skip_over_slash_fmt.
20 (display_and_x_command_completer): New function.
21 (_initialize_printcmd): Add command completion for 'x' and
22 'display'.
23
24 2020-11-16 Pedro Alves <pedro@palves.net>
25
26 * frame.c (get_prev_frame): Move get_frame_id call from here ...
27 (get_prev_frame_always_1): ... to here.
28 * inline-frame.c (inline_frame_this_id): Mention
29 get_prev_frame_always_1 in comment.
30
31 2020-11-15 Joel Brobecker <brobecker@adacore.com>
32
33 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
34 handling.
35 (value_less): Add fixed-point handling.
36
37 2020-11-15 Joel Brobecker <brobecker@adacore.com>
38
39 * eval.c (binop_promote): Add fixed-point type handling.
40 * valarith.c (fixed_point_binop): New function.
41 (scalar_binop): Add fixed-point type handling.
42 (value_neg): Add fixed-point type handling.
43 * valops.c (value_cast_to_fixed_point): New function.
44 (value_cast): Add fixed-point type handling.
45
46 2020-11-15 Joel Brobecker <brobecker@adacore.com>
47
48 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
49 range types.
50 * c-typeprint.c (c_type_print_varspec_prefix)
51 (c_type_print_varspec_suffix, c_type_print_base_1): Add
52 TYPE_CODE_FIXED_POINT handling.
53 * p-typeprint.c (pascal_type_print_varspec_prefix)
54 (pascal_type_print_varspec_suffix): Likewise.
55 * typeprint.c (print_type_fixed_point): New function.
56 * typeprint.h (print_type_fixed_point): Add declaration.
57
58 2020-11-15 Joel Brobecker <brobecker@adacore.com>
59
60 * printcmd.c (print_scalar_formatted): Add fixed-point type
61 handling when options->format is set.
62
63 2020-11-15 Joel Brobecker <brobecker@adacore.com>
64
65 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
66 * dwarf2/read.c (get_dwarf2_rational_constant)
67 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
68 (has_zero_over_zero_small_attribute): New functions.
69 read_base_type, set_die_type): Add fixed-point type handling.
70 * gdb-gdb.py.in: Add fixed-point type handling.
71 * gdbtypes.c: #include "gmp-utils.h".
72 (create_range_type, set_type_code): Add fixed-point type handling.
73 (init_fixed_point_type): New function.
74 (is_integral_type, is_scalar_type): Add fixed-point type handling.
75 (print_fixed_point_type_info): New function.
76 (recursive_dump_type, copy_type_recursive): Add fixed-point type
77 handling.
78 (fixed_point_type_storage): New typedef.
79 (fixed_point_objfile_key): New static global.
80 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
81 (fixed_point_type_base_type, fixed_point_scaling_factor): New
82 functions.
83 * gdbtypes.h: #include "gmp-utils.h".
84 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
85 (union type_specific) <fixed_point_info>: New field.
86 (struct fixed_point_type_info): New struct.
87 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
88 (init_fixed_point_type, is_fixed_point_type)
89 (fixed_point_type_base_type, fixed_point_scaling_factor)
90 (allocate_fixed_point_type_info): Add declarations.
91 * valprint.c (generic_val_print_fixed_point): New function.
92 (generic_value_print): Add fixed-point type handling.
93 * value.c (value_as_address, unpack_long): Add fixed-point type
94 handling.
95
96 2020-11-15 Joel Brobecker <brobecker@adacore.com>
97
98 * utils.h (uinteger_pow): Add declaration.
99 * utils.c (uinteger_pow): Moved here (without changes)...
100 * valarith.c (uinteger_pow): ... from here.
101
102 2020-11-15 Joel Brobecker <brobecker@adacore.com>
103
104 * gmp-utils.h, gmp-utils.c: New file.
105 * unittests/gmp-utils-selftests.c: New file.
106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
107 unittests/gmp-utils-selftests.c.
108 (COMMON_SFILES) Add gmp-utils.c.
109 (HFILES_NO_SRCDIR): Add gmp-utils.h.
110
111 2020-11-15 Joel Brobecker <brobecker@adacore.com>
112
113 * configure.ac: Generate an error if a usable GMP library
114 could not be found.
115 * configure: Regenerate.
116
117 2020-11-15 Joel Brobecker <brobecker@adacore.com>
118
119 * configure.ac: Add support for --with-libgmp-prefix.
120 * Makefile.in (LIBGMP): New variable.
121 (CLIBS): Include $(LIBGMP).
122 * configure, config.in: Regenerate
123
124 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 PR cli/26879
127 * f-exp.y (COMPLETE): New token.
128 (exp): Two new rules for tab-completion.
129 (saw_name_at_eof): New static global.
130 (last_was_structop): Likewise.
131 (yylex): Set new variables, and return COMPLETE token at the end
132 of the input stream in some cases.
133
134 2020-11-14 Tom Tromey <tom@tromey.com>
135
136 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
137
138 2020-11-14 Tom Tromey <tom@tromey.com>
139
140 * opencl-lang.c (opencl_component_ref): Make "comps" const.
141
142 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
145
146 2020-11-13 Tom Tromey <tom@tromey.com>
147
148 * c-lang.c (convert_ucn, convert_octal, convert_hex)
149 (convert_escape, parse_one_string): Constify.
150
151 2020-11-13 Keith Seitz <keiths@redhat.com>
152
153 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
154 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
155 outside of ELF segments" warning for debugin
156
157 2020-11-13 Keith Seitz <keiths@redhat.com>
158
159 PR gdb/23034
160 * elfread.c (elf_symfile_segments): Output a BFD file name
161 for the "Loadable section ... outside of ELF segments" warning.
162
163 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
164
165 PR gdb/26835
166 * arm-tdep.c (class arm_instruction_reader): New.
167 (target_arm_instruction_reader): New.
168 (arm_analyze_prologue): Add instruction reader parameter and use
169 it. Use arm_expand_immediate.
170 (class target_arm_instruction_reader): Adjust.
171 (arm_skip_prologue): Adjust.
172 (arm_expand_immediate): New.
173 (arm_scan_prologue): Adjust.
174 (arm_analyze_prologue_test): New.
175 (class test_arm_instruction_reader): New.
176
177 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * f-lang.c (fortran_argument_convert): Add declaration. Add
180 header comment, taken from f-lang.h. Make static.
181 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
182 (fortran_argument_convert): Delete declaration.
183
184 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * ada-exp.y (find_primitive_type): Make parameter const.
187 * ada-lang.c (enum ada_primitive_types): Delete.
188 (ada_language::language_arch_info): Update.
189 * c-lang.c (enum c_primitive_types): Delete.
190 (c_language_arch_info): Update.
191 (enum cplus_primitive_types): Delete.
192 (cplus_language::language_arch_info): Update.
193 * d-lang.c (enum d_primitive_types): Delete.
194 (d_language::language_arch_info): Update.
195 * f-lang.c (enum f_primitive_types): Delete.
196 (f_language::language_arch_info): Update.
197 * go-lang.c (enum go_primitive_types): Delete.
198 (go_language::language_arch_info): Update.
199 * language.c (auto_or_unknown_language::language_arch_info):
200 Update.
201 (language_gdbarch_post_init): Use obstack_new, use array indexing.
202 (language_string_char_type): Add header comment, call function in
203 language_arch_info.
204 (language_bool_type): Likewise
205 (language_arch_info::bool_type): Define.
206 (language_lookup_primitive_type_1): Delete.
207 (language_lookup_primitive_type): Rewrite as a templated function
208 to call function in language_arch_info, then instantiate twice.
209 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
210 (language_arch_info::lookup_primitive_type_and_symbol): Define.
211 (language_arch_info::lookup_primitive_type): Define twice with
212 different signatures.
213 (language_arch_info::lookup_primitive_type_as_symbol): Define.
214 (language_lookup_primitive_type_as_symbol): Rewrite to call a
215 member function in language_arch_info.
216 * language.h (language_arch_info): Complete rewrite.
217 (language_lookup_primitive_type): Make templated.
218 * m2-lang.c (enum m2_primitive_types): Delete.
219 (m2_language::language_arch_info): Update.
220 * opencl-lang.c (OCL_P_TYPE): Delete.
221 (enum opencl_primitive_types): Delete.
222 (opencl_type_data): Delete.
223 (builtin_opencl_type): Delete.
224 (lookup_opencl_vector_type): Update.
225 (opencl_language::language_arch_info): Update, lots of content
226 moved from...
227 (build_opencl_types): ...here. This function is now deleted.
228 (_initialize_opencl_language): Delete.
229 * p-lang.c (enum pascal_primitive_types): Delete.
230 (pascal_language::language_arch_info): Update.
231 * rust-lang.c (enum rust_primitive_types): Delete.
232 (rust_language::language_arch_info): Update.
233
234 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
237 dwarf2_queue_guard.
238
239 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
242 comment.
243
244 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * dwarf2/read.c (dwarf_read_debug_printf,
247 dwarf_read_debug_printf_v): New macros, use throughout the file.
248
249 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
250
251 * arc-linux-tdep.c (collect_register): Populate "eret" by
252 "pc" value from the regcache when asked for "pc" value.
253
254 2020-11-12 Tom Tromey <tom@tromey.com>
255
256 PR rust/26799:
257 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
258 exist.
259
260 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * features/Makefile (XMLTOC): Add rx.xml.
263 (FEATURE_XMLFILES): Remove rx.xml.
264 (FEATURE_CFILES rule): Pass '-single-feature' flag.
265 * features/rx.c: Regenerate.
266 * features/rx.xml: Wrap in `target` tags, and reindent.
267 * target-descriptions.c (struct maint_print_c_tdesc_options): New
268 structure.
269 (maint_print_c_tdesc_opt_def): New typedef.
270 (maint_print_c_tdesc_opt_defs): New static global.
271 (make_maint_print_c_tdesc_options_def_group): New function.
272 (maint_print_c_tdesc_cmd): Make use of command line flags, only
273 print single feature C file for target descriptions containing a
274 single feature.
275 (maint_print_c_tdesc_cmd_completer): New function.
276 (_initialize_target_descriptions): Update call to register command
277 completer, and include command line flag in help text.
278
279 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
282 numbers.
283 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
284 enum values.
285
286 2020-11-10 Tom Tromey <tom@tromey.com>
287
288 * value.h (internalvar_name): Update.
289 * value.c (internalvar_name): Make return type const.
290
291 2020-11-10 Tom Tromey <tom@tromey.com>
292
293 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
294 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
295 const.
296
297 2020-11-10 Tom Tromey <tom@tromey.com>
298
299 * objc-lang.h (value_nsstring): Update.
300 * objc-lang.c (value_nsstring): Make "ptr" const.
301
302 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * expprint.c (print_subexp_funcall): Increment expression position
305 after reading argument count.
306 * f-lang.c (print_subexp_f): Skip over opcode before calling
307 common function.
308 (dump_subexp_body_f): Likewise.
309
310 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
311
312 PR python/26832
313 * configure: Regenerate.
314 * configure.ac: Check for python modules ctypes instead of
315 itertools.
316
317 2020-11-06 Pedro Alves <pedro@palves.net>
318
319 * macroexp.c (struct macro_buffer): Split in two classes. Add
320 uses adjusted.
321 (struct shared_macro_buffer): New, factored out from struct
322 macro_buffer.
323 (struct growable_macro_buffer): New, factored out from struct
324 macro_buffer.
325 (set_token, get_comment, get_identifier, get_pp_number)
326 (get_character_constant, get_string_literal, get_punctuator)
327 (get_next_token_for_substitution): Constify parameters.
328 (substitute_args): Constify locals.
329
330 2020-11-05 Tom Tromey <tom@tromey.com>
331
332 * dwarf2/read.c (read_cutu_die_from_dwo)
333 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
334 (build_type_psymtabs_1): Update.
335 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
336 parameter.
337 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
338 Don't read section. Add assert.
339
340 2020-11-04 Tom Tromey <tromey@adacore.com>
341
342 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
343
344 2020-11-04 Tom Tromey <tromey@adacore.com>
345
346 * ada-typeprint.c (ada_print_type): Handle __T types.
347
348 2020-11-04 Tom Tromey <tromey@adacore.com>
349
350 * dwarf2/read.c (add_partial_symbol, process_die):
351 Handle DW_TAG_array_type.
352 (is_type_tag_for_partial): Add "lang" parameter.
353 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
354
355 2020-11-04 Tom Tromey <tromey@adacore.com>
356
357 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
358
359 2020-11-04 Tom Tromey <tromey@adacore.com>
360
361 * dwarf2/read.c (read_array_type): Only apply stride to innermost
362 array.
363
364 2020-11-04 Tom Tromey <tromey@adacore.com>
365
366 * gdbtypes.c (update_static_array_size): Handle bit stride.
367
368 2020-11-04 Tom Tromey <tromey@adacore.com>
369
370 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
371
372 2020-11-04 Tom Tromey <tromey@adacore.com>
373
374 * ada-lang.c (ada_is_any_packed_array_type): New function.
375 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
376
377 2020-11-04 Tom Tromey <tromey@adacore.com>
378
379 * dwarf2/read.c (recognize_bound_expression)
380 (quirk_ada_thick_pointer): New functions.
381 (read_array_type): Call quirk_ada_thick_pointer.
382 (set_die_type): Add "skip_data_location" parameter.
383 (quirk_ada_thick_pointer): New function.
384 (process_structure_scope): Call quirk_ada_thick_pointer.
385 * ada-lang.c (ada_is_unconstrained_packed_array_type)
386 (decode_packed_array_bitsize): Handle thick pointers without
387 parallel types.
388 (ada_is_gnat_encoded_packed_array_type): Rename from
389 ada_is_packed_array_type.
390 (ada_is_constrained_packed_array_type): Update.
391 * ada-valprint.c (ada_val_print_gnat_array): Remove.
392 (ada_value_print_1): Use ada_get_decoded_value.
393
394 2020-11-04 Tom Tromey <tromey@adacore.com>
395
396 * ada-lang.c (recursively_update_array_bitsize): New function.
397 (decode_constrained_packed_array_type): Call it.
398
399 2020-11-04 Tom Tromey <tromey@adacore.com>
400
401 * ada-lang.c (to_fixed_array_type): Error if
402 decode_constrained_packed_array_type returns NULL.
403
404 2020-11-04 Tom Tromey <tromey@adacore.com>
405
406 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
407
408 2020-11-02 Tom Tromey <tromey@adacore.com>
409
410 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
411 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
412 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
413 * amd64-ravenscar-thread.c: New file.
414 * amd64-ravenscar-thread.h: New file.
415 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
416 * configure.tgt (amd64_tobjs): Add ravenscar objects.
417
418 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * main.c (execute_cmdargs): New function.
421 (captured_main_1): Make use of execute_cmdargs.
422
423 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * NEWS: Mention changes to config file search path.
426 * main.c
427
428 2020-11-02 Tom Tromey <tromey@adacore.com>
429
430 * python/python.c: Consolidate two HAVE_PYTHON blocks.
431 (python_GdbModuleDef): Move earlier. Now static.
432 (do_start_initialization): Consolidate some IS_PY3K blocks.
433
434 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
435
436 * aarch64-linux-tdep.c: Fix indentation.
437 * aarch64-ravenscar-thread.c: Fix indentation.
438 * aarch64-tdep.c: Fix indentation.
439 * aarch64-tdep.h: Fix indentation.
440 * ada-lang.c: Fix indentation.
441 * ada-lang.h: Fix indentation.
442 * ada-tasks.c: Fix indentation.
443 * ada-typeprint.c: Fix indentation.
444 * ada-valprint.c: Fix indentation.
445 * ada-varobj.c: Fix indentation.
446 * addrmap.c: Fix indentation.
447 * addrmap.h: Fix indentation.
448 * agent.c: Fix indentation.
449 * aix-thread.c: Fix indentation.
450 * alpha-bsd-nat.c: Fix indentation.
451 * alpha-linux-tdep.c: Fix indentation.
452 * alpha-mdebug-tdep.c: Fix indentation.
453 * alpha-nbsd-tdep.c: Fix indentation.
454 * alpha-obsd-tdep.c: Fix indentation.
455 * alpha-tdep.c: Fix indentation.
456 * amd64-bsd-nat.c: Fix indentation.
457 * amd64-darwin-tdep.c: Fix indentation.
458 * amd64-linux-nat.c: Fix indentation.
459 * amd64-linux-tdep.c: Fix indentation.
460 * amd64-nat.c: Fix indentation.
461 * amd64-obsd-tdep.c: Fix indentation.
462 * amd64-tdep.c: Fix indentation.
463 * amd64-windows-tdep.c: Fix indentation.
464 * annotate.c: Fix indentation.
465 * arc-tdep.c: Fix indentation.
466 * arch-utils.c: Fix indentation.
467 * arch/arm-get-next-pcs.c: Fix indentation.
468 * arch/arm.c: Fix indentation.
469 * arm-linux-nat.c: Fix indentation.
470 * arm-linux-tdep.c: Fix indentation.
471 * arm-nbsd-tdep.c: Fix indentation.
472 * arm-pikeos-tdep.c: Fix indentation.
473 * arm-tdep.c: Fix indentation.
474 * arm-tdep.h: Fix indentation.
475 * arm-wince-tdep.c: Fix indentation.
476 * auto-load.c: Fix indentation.
477 * auxv.c: Fix indentation.
478 * avr-tdep.c: Fix indentation.
479 * ax-gdb.c: Fix indentation.
480 * ax-general.c: Fix indentation.
481 * bfin-linux-tdep.c: Fix indentation.
482 * block.c: Fix indentation.
483 * block.h: Fix indentation.
484 * blockframe.c: Fix indentation.
485 * bpf-tdep.c: Fix indentation.
486 * break-catch-sig.c: Fix indentation.
487 * break-catch-syscall.c: Fix indentation.
488 * break-catch-throw.c: Fix indentation.
489 * breakpoint.c: Fix indentation.
490 * breakpoint.h: Fix indentation.
491 * bsd-uthread.c: Fix indentation.
492 * btrace.c: Fix indentation.
493 * build-id.c: Fix indentation.
494 * buildsym-legacy.h: Fix indentation.
495 * buildsym.c: Fix indentation.
496 * c-typeprint.c: Fix indentation.
497 * c-valprint.c: Fix indentation.
498 * c-varobj.c: Fix indentation.
499 * charset.c: Fix indentation.
500 * cli/cli-cmds.c: Fix indentation.
501 * cli/cli-decode.c: Fix indentation.
502 * cli/cli-decode.h: Fix indentation.
503 * cli/cli-script.c: Fix indentation.
504 * cli/cli-setshow.c: Fix indentation.
505 * coff-pe-read.c: Fix indentation.
506 * coffread.c: Fix indentation.
507 * compile/compile-cplus-types.c: Fix indentation.
508 * compile/compile-object-load.c: Fix indentation.
509 * compile/compile-object-run.c: Fix indentation.
510 * completer.c: Fix indentation.
511 * corefile.c: Fix indentation.
512 * corelow.c: Fix indentation.
513 * cp-abi.h: Fix indentation.
514 * cp-namespace.c: Fix indentation.
515 * cp-support.c: Fix indentation.
516 * cp-valprint.c: Fix indentation.
517 * cris-linux-tdep.c: Fix indentation.
518 * cris-tdep.c: Fix indentation.
519 * darwin-nat-info.c: Fix indentation.
520 * darwin-nat.c: Fix indentation.
521 * darwin-nat.h: Fix indentation.
522 * dbxread.c: Fix indentation.
523 * dcache.c: Fix indentation.
524 * disasm.c: Fix indentation.
525 * dtrace-probe.c: Fix indentation.
526 * dwarf2/abbrev.c: Fix indentation.
527 * dwarf2/attribute.c: Fix indentation.
528 * dwarf2/expr.c: Fix indentation.
529 * dwarf2/frame.c: Fix indentation.
530 * dwarf2/index-cache.c: Fix indentation.
531 * dwarf2/index-write.c: Fix indentation.
532 * dwarf2/line-header.c: Fix indentation.
533 * dwarf2/loc.c: Fix indentation.
534 * dwarf2/macro.c: Fix indentation.
535 * dwarf2/read.c: Fix indentation.
536 * dwarf2/read.h: Fix indentation.
537 * elfread.c: Fix indentation.
538 * eval.c: Fix indentation.
539 * event-top.c: Fix indentation.
540 * exec.c: Fix indentation.
541 * exec.h: Fix indentation.
542 * expprint.c: Fix indentation.
543 * f-lang.c: Fix indentation.
544 * f-typeprint.c: Fix indentation.
545 * f-valprint.c: Fix indentation.
546 * fbsd-nat.c: Fix indentation.
547 * fbsd-tdep.c: Fix indentation.
548 * findvar.c: Fix indentation.
549 * fork-child.c: Fix indentation.
550 * frame-unwind.c: Fix indentation.
551 * frame-unwind.h: Fix indentation.
552 * frame.c: Fix indentation.
553 * frv-linux-tdep.c: Fix indentation.
554 * frv-tdep.c: Fix indentation.
555 * frv-tdep.h: Fix indentation.
556 * ft32-tdep.c: Fix indentation.
557 * gcore.c: Fix indentation.
558 * gdb_bfd.c: Fix indentation.
559 * gdbarch.sh: Fix indentation.
560 * gdbarch.c: Re-generate
561 * gdbarch.h: Re-generate.
562 * gdbcore.h: Fix indentation.
563 * gdbthread.h: Fix indentation.
564 * gdbtypes.c: Fix indentation.
565 * gdbtypes.h: Fix indentation.
566 * glibc-tdep.c: Fix indentation.
567 * gnu-nat.c: Fix indentation.
568 * gnu-nat.h: Fix indentation.
569 * gnu-v2-abi.c: Fix indentation.
570 * gnu-v3-abi.c: Fix indentation.
571 * go32-nat.c: Fix indentation.
572 * guile/guile-internal.h: Fix indentation.
573 * guile/scm-cmd.c: Fix indentation.
574 * guile/scm-frame.c: Fix indentation.
575 * guile/scm-iterator.c: Fix indentation.
576 * guile/scm-math.c: Fix indentation.
577 * guile/scm-ports.c: Fix indentation.
578 * guile/scm-pretty-print.c: Fix indentation.
579 * guile/scm-value.c: Fix indentation.
580 * h8300-tdep.c: Fix indentation.
581 * hppa-linux-nat.c: Fix indentation.
582 * hppa-linux-tdep.c: Fix indentation.
583 * hppa-nbsd-nat.c: Fix indentation.
584 * hppa-nbsd-tdep.c: Fix indentation.
585 * hppa-obsd-nat.c: Fix indentation.
586 * hppa-tdep.c: Fix indentation.
587 * hppa-tdep.h: Fix indentation.
588 * i386-bsd-nat.c: Fix indentation.
589 * i386-darwin-nat.c: Fix indentation.
590 * i386-darwin-tdep.c: Fix indentation.
591 * i386-dicos-tdep.c: Fix indentation.
592 * i386-gnu-nat.c: Fix indentation.
593 * i386-linux-nat.c: Fix indentation.
594 * i386-linux-tdep.c: Fix indentation.
595 * i386-nto-tdep.c: Fix indentation.
596 * i386-obsd-tdep.c: Fix indentation.
597 * i386-sol2-nat.c: Fix indentation.
598 * i386-tdep.c: Fix indentation.
599 * i386-tdep.h: Fix indentation.
600 * i386-windows-tdep.c: Fix indentation.
601 * i387-tdep.c: Fix indentation.
602 * i387-tdep.h: Fix indentation.
603 * ia64-libunwind-tdep.c: Fix indentation.
604 * ia64-libunwind-tdep.h: Fix indentation.
605 * ia64-linux-nat.c: Fix indentation.
606 * ia64-linux-tdep.c: Fix indentation.
607 * ia64-tdep.c: Fix indentation.
608 * ia64-tdep.h: Fix indentation.
609 * ia64-vms-tdep.c: Fix indentation.
610 * infcall.c: Fix indentation.
611 * infcmd.c: Fix indentation.
612 * inferior.c: Fix indentation.
613 * infrun.c: Fix indentation.
614 * iq2000-tdep.c: Fix indentation.
615 * language.c: Fix indentation.
616 * linespec.c: Fix indentation.
617 * linux-fork.c: Fix indentation.
618 * linux-nat.c: Fix indentation.
619 * linux-tdep.c: Fix indentation.
620 * linux-thread-db.c: Fix indentation.
621 * lm32-tdep.c: Fix indentation.
622 * m2-lang.c: Fix indentation.
623 * m2-typeprint.c: Fix indentation.
624 * m2-valprint.c: Fix indentation.
625 * m32c-tdep.c: Fix indentation.
626 * m32r-linux-tdep.c: Fix indentation.
627 * m32r-tdep.c: Fix indentation.
628 * m68hc11-tdep.c: Fix indentation.
629 * m68k-bsd-nat.c: Fix indentation.
630 * m68k-linux-nat.c: Fix indentation.
631 * m68k-linux-tdep.c: Fix indentation.
632 * m68k-tdep.c: Fix indentation.
633 * machoread.c: Fix indentation.
634 * macrocmd.c: Fix indentation.
635 * macroexp.c: Fix indentation.
636 * macroscope.c: Fix indentation.
637 * macrotab.c: Fix indentation.
638 * macrotab.h: Fix indentation.
639 * main.c: Fix indentation.
640 * mdebugread.c: Fix indentation.
641 * mep-tdep.c: Fix indentation.
642 * mi/mi-cmd-catch.c: Fix indentation.
643 * mi/mi-cmd-disas.c: Fix indentation.
644 * mi/mi-cmd-env.c: Fix indentation.
645 * mi/mi-cmd-stack.c: Fix indentation.
646 * mi/mi-cmd-var.c: Fix indentation.
647 * mi/mi-cmds.c: Fix indentation.
648 * mi/mi-main.c: Fix indentation.
649 * mi/mi-parse.c: Fix indentation.
650 * microblaze-tdep.c: Fix indentation.
651 * minidebug.c: Fix indentation.
652 * minsyms.c: Fix indentation.
653 * mips-linux-nat.c: Fix indentation.
654 * mips-linux-tdep.c: Fix indentation.
655 * mips-nbsd-tdep.c: Fix indentation.
656 * mips-tdep.c: Fix indentation.
657 * mn10300-linux-tdep.c: Fix indentation.
658 * mn10300-tdep.c: Fix indentation.
659 * moxie-tdep.c: Fix indentation.
660 * msp430-tdep.c: Fix indentation.
661 * namespace.h: Fix indentation.
662 * nat/fork-inferior.c: Fix indentation.
663 * nat/gdb_ptrace.h: Fix indentation.
664 * nat/linux-namespaces.c: Fix indentation.
665 * nat/linux-osdata.c: Fix indentation.
666 * nat/netbsd-nat.c: Fix indentation.
667 * nat/x86-dregs.c: Fix indentation.
668 * nbsd-nat.c: Fix indentation.
669 * nbsd-tdep.c: Fix indentation.
670 * nios2-linux-tdep.c: Fix indentation.
671 * nios2-tdep.c: Fix indentation.
672 * nto-procfs.c: Fix indentation.
673 * nto-tdep.c: Fix indentation.
674 * objfiles.c: Fix indentation.
675 * objfiles.h: Fix indentation.
676 * opencl-lang.c: Fix indentation.
677 * or1k-tdep.c: Fix indentation.
678 * osabi.c: Fix indentation.
679 * osabi.h: Fix indentation.
680 * osdata.c: Fix indentation.
681 * p-lang.c: Fix indentation.
682 * p-typeprint.c: Fix indentation.
683 * p-valprint.c: Fix indentation.
684 * parse.c: Fix indentation.
685 * ppc-linux-nat.c: Fix indentation.
686 * ppc-linux-tdep.c: Fix indentation.
687 * ppc-nbsd-nat.c: Fix indentation.
688 * ppc-nbsd-tdep.c: Fix indentation.
689 * ppc-obsd-nat.c: Fix indentation.
690 * ppc-ravenscar-thread.c: Fix indentation.
691 * ppc-sysv-tdep.c: Fix indentation.
692 * ppc64-tdep.c: Fix indentation.
693 * printcmd.c: Fix indentation.
694 * proc-api.c: Fix indentation.
695 * producer.c: Fix indentation.
696 * producer.h: Fix indentation.
697 * prologue-value.c: Fix indentation.
698 * prologue-value.h: Fix indentation.
699 * psymtab.c: Fix indentation.
700 * python/py-arch.c: Fix indentation.
701 * python/py-bpevent.c: Fix indentation.
702 * python/py-event.c: Fix indentation.
703 * python/py-event.h: Fix indentation.
704 * python/py-finishbreakpoint.c: Fix indentation.
705 * python/py-frame.c: Fix indentation.
706 * python/py-framefilter.c: Fix indentation.
707 * python/py-inferior.c: Fix indentation.
708 * python/py-infthread.c: Fix indentation.
709 * python/py-objfile.c: Fix indentation.
710 * python/py-prettyprint.c: Fix indentation.
711 * python/py-registers.c: Fix indentation.
712 * python/py-signalevent.c: Fix indentation.
713 * python/py-stopevent.c: Fix indentation.
714 * python/py-stopevent.h: Fix indentation.
715 * python/py-threadevent.c: Fix indentation.
716 * python/py-tui.c: Fix indentation.
717 * python/py-unwind.c: Fix indentation.
718 * python/py-value.c: Fix indentation.
719 * python/py-xmethods.c: Fix indentation.
720 * python/python-internal.h: Fix indentation.
721 * python/python.c: Fix indentation.
722 * ravenscar-thread.c: Fix indentation.
723 * record-btrace.c: Fix indentation.
724 * record-full.c: Fix indentation.
725 * record.c: Fix indentation.
726 * reggroups.c: Fix indentation.
727 * regset.h: Fix indentation.
728 * remote-fileio.c: Fix indentation.
729 * remote.c: Fix indentation.
730 * reverse.c: Fix indentation.
731 * riscv-linux-tdep.c: Fix indentation.
732 * riscv-ravenscar-thread.c: Fix indentation.
733 * riscv-tdep.c: Fix indentation.
734 * rl78-tdep.c: Fix indentation.
735 * rs6000-aix-tdep.c: Fix indentation.
736 * rs6000-lynx178-tdep.c: Fix indentation.
737 * rs6000-nat.c: Fix indentation.
738 * rs6000-tdep.c: Fix indentation.
739 * rust-lang.c: Fix indentation.
740 * rx-tdep.c: Fix indentation.
741 * s12z-tdep.c: Fix indentation.
742 * s390-linux-tdep.c: Fix indentation.
743 * score-tdep.c: Fix indentation.
744 * ser-base.c: Fix indentation.
745 * ser-mingw.c: Fix indentation.
746 * ser-uds.c: Fix indentation.
747 * ser-unix.c: Fix indentation.
748 * serial.c: Fix indentation.
749 * sh-linux-tdep.c: Fix indentation.
750 * sh-nbsd-tdep.c: Fix indentation.
751 * sh-tdep.c: Fix indentation.
752 * skip.c: Fix indentation.
753 * sol-thread.c: Fix indentation.
754 * solib-aix.c: Fix indentation.
755 * solib-darwin.c: Fix indentation.
756 * solib-frv.c: Fix indentation.
757 * solib-svr4.c: Fix indentation.
758 * solib.c: Fix indentation.
759 * source.c: Fix indentation.
760 * sparc-linux-tdep.c: Fix indentation.
761 * sparc-nbsd-tdep.c: Fix indentation.
762 * sparc-obsd-tdep.c: Fix indentation.
763 * sparc-ravenscar-thread.c: Fix indentation.
764 * sparc-tdep.c: Fix indentation.
765 * sparc64-linux-tdep.c: Fix indentation.
766 * sparc64-nbsd-tdep.c: Fix indentation.
767 * sparc64-obsd-tdep.c: Fix indentation.
768 * sparc64-tdep.c: Fix indentation.
769 * stabsread.c: Fix indentation.
770 * stack.c: Fix indentation.
771 * stap-probe.c: Fix indentation.
772 * stubs/ia64vms-stub.c: Fix indentation.
773 * stubs/m32r-stub.c: Fix indentation.
774 * stubs/m68k-stub.c: Fix indentation.
775 * stubs/sh-stub.c: Fix indentation.
776 * stubs/sparc-stub.c: Fix indentation.
777 * symfile-mem.c: Fix indentation.
778 * symfile.c: Fix indentation.
779 * symfile.h: Fix indentation.
780 * symmisc.c: Fix indentation.
781 * symtab.c: Fix indentation.
782 * symtab.h: Fix indentation.
783 * target-float.c: Fix indentation.
784 * target.c: Fix indentation.
785 * target.h: Fix indentation.
786 * tic6x-tdep.c: Fix indentation.
787 * tilegx-linux-tdep.c: Fix indentation.
788 * tilegx-tdep.c: Fix indentation.
789 * top.c: Fix indentation.
790 * tracefile-tfile.c: Fix indentation.
791 * tracepoint.c: Fix indentation.
792 * tui/tui-disasm.c: Fix indentation.
793 * tui/tui-io.c: Fix indentation.
794 * tui/tui-regs.c: Fix indentation.
795 * tui/tui-stack.c: Fix indentation.
796 * tui/tui-win.c: Fix indentation.
797 * tui/tui-winsource.c: Fix indentation.
798 * tui/tui.c: Fix indentation.
799 * typeprint.c: Fix indentation.
800 * ui-out.h: Fix indentation.
801 * unittests/copy_bitwise-selftests.c: Fix indentation.
802 * unittests/memory-map-selftests.c: Fix indentation.
803 * utils.c: Fix indentation.
804 * v850-tdep.c: Fix indentation.
805 * valarith.c: Fix indentation.
806 * valops.c: Fix indentation.
807 * valprint.c: Fix indentation.
808 * valprint.h: Fix indentation.
809 * value.c: Fix indentation.
810 * value.h: Fix indentation.
811 * varobj.c: Fix indentation.
812 * vax-tdep.c: Fix indentation.
813 * windows-nat.c: Fix indentation.
814 * windows-tdep.c: Fix indentation.
815 * xcoffread.c: Fix indentation.
816 * xml-syscall.c: Fix indentation.
817 * xml-tdesc.c: Fix indentation.
818 * xstormy16-tdep.c: Fix indentation.
819 * xtensa-config.c: Fix indentation.
820 * xtensa-linux-nat.c: Fix indentation.
821 * xtensa-linux-tdep.c: Fix indentation.
822 * xtensa-tdep.c: Fix indentation.
823
824 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
825 Craig Blackmore <craig.blackmore@embecosm.com>
826
827 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
828 as an unsigned value.
829
830 2020-11-01 Tom Tromey <tom@tromey.com>
831
832 * dbxread.c (dbx_end_psymtab): Update.
833 * dwarf2/read.c (process_psymtab_comp_unit_reader)
834 (build_type_psymtabs_reader): Update.
835 * xcoffread.c (xcoff_end_psymtab): Update.
836 * ctfread.c (scan_partial_symbols): Update.
837 * psymtab.c (sort_pst_symbols): Remove.
838 (partial_symtab::end): Rename from end_psymtab_common. Inline
839 sort_pst_symbols.
840 * psympriv.h (struct partial_symtab) <end>: New method.
841 (end_psymtab_common): Don't declare.
842
843 2020-11-01 Tom Tromey <tom@tromey.com>
844
845 * symmisc.c (count_psyms): New function.
846 (print_objfile_statistics): Use it.
847 * psymtab.c (append_psymbol_to_list): Remove.
848 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
849 * objfiles.h (struct objstats) <n_psyms>: Remove.
850
851 2020-11-01 Tom Tromey <tom@tromey.com>
852
853 * dbxread.c (dbx_end_psymtab): Update.
854 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
855 (build_type_psymtabs_reader): Update.
856 * xcoffread.c (xcoff_end_psymtab): Update.
857 * ctfread.c (scan_partial_symbols): Update.
858 * psympriv.h (end_psymtab_common): Update.
859 * psymtab.c (end_psymtab_common): Remove objfile parameter.
860 (sort_pst_symbols): Likewise.
861
862 2020-11-01 Tom Tromey <tom@tromey.com>
863
864 * dbxread.c (dbx_symfile_read): Update.
865 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
866 * xcoffread.c (xcoff_initial_scan): Update.
867 * psympriv.h (init_psymbol_list): Don't declare.
868 * psymtab.c (init_psymbol_list): Remove.
869
870 2020-11-01 Joel Brobecker <brobecker@adacore.com>
871
872 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
873 gnat_encoded_fixed_type_info. Update all callers.
874
875 2020-11-01 Joel Brobecker <brobecker@adacore.com>
876
877 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
878 line too long.
879
880 2020-11-01 Joel Brobecker <brobecker@adacore.com>
881
882 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
883 cast_from_fixed. Update all callers.
884 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
885 Update all callers.
886 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
887 Update all callers.
888 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
889 ada_scaling_factor.
890 * ada-typeprint.c: Replace call to ada_scaling_factor by call
891 to print_gnat_encoded_fixed_point_type.
892 * ada-valprint.c: Likewise.
893
894 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
897 (debug_prefixed_printf): Add check of debug_displaced flag.
898 * linux-nat.c (linux_nat_debug_printf): Add check of
899 debug_linux_nat flag.
900
901 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * infrun.c (infrun_debug_printf_1): Remove.
904 (displaced_debug_printf_1): Remove.
905 (stop_all_threads): Use debug_prefixed_printf.
906 * infrun.h (infrun_debug_printf_1): Remove.
907 (infrun_debug_printf): Use debug_prefixed_printf.
908 (displaced_debug_printf_1): Remove.
909 (displaced_debug_printf): Use debug_prefixed_printf.
910 * linux-nat.c (linux_nat_debug_printf_1): Remove.
911 (linux_nat_debug_printf): Use debug_prefixed_printf.
912
913 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * configure: Re-generate.
916 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
917 AC_LANG_PROGRAM.
918
919 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * configure: Re-generate.
922
923 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * configure: Re-generate.
926
927 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * configure: Re-generate.
930
931 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
932
933 * configure: Re-generate.
934
935 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * acinclude.m4: Modernize.
938 * configure: Re-generate.
939
940 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * configure.ac: Modernize.
943 * configure: Re-generate.
944
945 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
948 * configure: Re-generate.
949 * configure.ac: Remove AM_PROG_CC_STDC.
950
951 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
954 AC_CANONICAL_SYSTEM.
955 * configure: Re-generate.
956
957 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
958
959 * infrun.h (displaced_debug_printf): New macro. Replace
960 displaced debug prints throughout to use it.
961 (displaced_debug_printf_1): New declaration.
962 (displaced_step_dump_bytes): Return string, remove ui_file
963 parameter, update all callers.
964 * infrun.c (displaced_debug_printf_1): New function.
965 (displaced_step_dump_bytes): Return string, remove ui_file
966 parameter
967
968 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
971
972 2020-10-30 Tom Tromey <tromey@adacore.com>
973
974 * Makefile.in (stamp-init): Depend on config.status.
975
976 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
979
980 2020-10-30 Pedro Alves <pedro@palves.net>
981
982 * thread.c (lookup_selected_frame): Move ...
983 * frame.c (lookup_selected_frame): ... here.
984
985 2020-10-30 Pedro Alves <pedro@palves.net>
986
987 * blockframe.c (block_innermost_frame): Use get_selected_frame.
988 * frame.c
989 (scoped_restore_selected_frame::scoped_restore_selected_frame):
990 Use save_selected_frame. Save language as well.
991 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
992 Use restore_selected_frame, and restore language as well.
993 (selected_frame_id, selected_frame_level): New.
994 (selected_frame): Update comments.
995 (save_selected_frame, restore_selected_frame): New.
996 (get_selected_frame): Use lookup_selected_frame.
997 (get_selected_frame_if_set): Delete.
998 (select_frame): Record selected_frame_level and selected_frame_id.
999 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1000 fields.
1001 (get_selected_frame): Make 'message' parameter optional.
1002 (get_selected_frame_if_set): Delete declaration.
1003 (select_frame): Update comments.
1004 (save_selected_frame, restore_selected_frame)
1005 (lookup_selected_frame): Declare.
1006 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1007 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1008 New field.
1009 (save_infcall_control_state): Use save_selected_frame.
1010 (restore_selected_frame): Delete.
1011 (restore_infcall_control_state): Use restore_selected_frame.
1012 * stack.c (select_frame_command_core, frame_command_core): Use
1013 get_selected_frame.
1014 * thread.c (restore_selected_frame): Rename to ...
1015 (lookup_selected_frame): ... this and make extern. Select the
1016 current frame if the frame level is -1.
1017 (scoped_restore_current_thread::restore): Also restore the
1018 language.
1019 (scoped_restore_current_thread::~scoped_restore_current_thread):
1020 Don't try/catch.
1021 (scoped_restore_current_thread::scoped_restore_current_thread):
1022 Save the language as well. Use save_selected_frame.
1023
1024 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1027 documentation.
1028 * gdbarch.h: Re-generate.
1029
1030 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1033 parameter.
1034 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1035 Likewise.
1036 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1037 Likewise.
1038 * arch-utils.c (default_displaced_step_hw_singlestep):
1039 Likewise.
1040 * arch-utils.h (default_displaced_step_hw_singlestep):
1041 Likewise.
1042 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1043 Likewise.
1044 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1045 Likewise.
1046 * gdbarch.c: Re-generate.
1047 * gdbarch.h: Re-generate.
1048 * infrun.c (resume_1): Adjust.
1049
1050 2020-10-29 Tom Tromey <tom@tromey.com>
1051
1052 * progspace.c (program_space::~program_space): Don't call
1053 exec_close.
1054
1055 2020-10-29 Tom Tromey <tom@tromey.com>
1056
1057 * exec.c (exec_target::close): Don't change current program
1058 space.
1059
1060 2020-10-29 Tom Tromey <tom@tromey.com>
1061
1062 * symfile.c (add_symbol_file_command): Update.
1063 * exec.c (program_space::add_target_sections): Rename.
1064 * symfile-mem.c (symbol_file_add_from_memory): Update.
1065 * progspace.h (struct program_space) <add_target_sections>:
1066 Declare new overload.
1067 * exec.h (add_target_sections_of_objfile): Don't declare.
1068
1069 2020-10-29 Tom Tromey <tom@tromey.com>
1070
1071 * solib.c (solib_map_sections): Update.
1072 * exec.c (program_space::add_target_sections): Now a method.
1073 (exec_file_attach): Update.
1074 * exec.h (add_target_sections): Don't declare.
1075 * progspace.h (struct program_space) <add_target_sections>:
1076 Declare.
1077
1078 2020-10-29 Tom Tromey <tom@tromey.com>
1079
1080 * progspace.h (struct program_space) <remove_target_sections>:
1081 Declare.
1082 * exec.c (program_space::remove_target_sections): Now a method.
1083 * exec.h (remove_target_sections): Don't declare.
1084
1085 2020-10-29 Tom Tromey <tom@tromey.com>
1086
1087 * inferior.c (delete_inferior): Update.
1088 * progspace.c (program_space::empty): Rename from
1089 program_space_empty_p. Return bool.
1090 * progspace.h (struct program_space) <empty>: New method.
1091 (program_space_empty_p): Don't declare.
1092
1093 2020-10-29 Tom Tromey <tom@tromey.com>
1094
1095 * progspace.c (program_space::~program_space): Don't call
1096 clear_program_space_solib_cache.
1097 (program_space::clear_solib_cache): Rename from
1098 clear_solib_cache.
1099 * solib.c (handle_solib_event): Update.
1100 * progspace.h (struct program_space) <clear_solib_cache>: New
1101 method.
1102 (clear_program_space_solib_cache): Don't declare.
1103
1104 2020-10-29 Tom Tromey <tom@tromey.com>
1105
1106 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1107 * target.c (info_target_command): Update.
1108 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1109 (symbol_file_clear, reread_symbols): Update.
1110 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1111 * stabsread.c (scan_file_globals): Update.
1112 * solib.c (update_solib_list): Update.
1113 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1114 (svr4_fetch_objfile_link_map, enable_break)
1115 (svr4_relocate_main_executable)
1116 (svr4_iterate_over_objfiles_in_search_order): Update.
1117 * solib-frv.c (lm_base, enable_break)
1118 (frv_relocate_main_executable): Update.
1119 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1120 (frv_fetch_objfile_link_map): Update.
1121 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1122 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1123 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1124 * remote.c (remote_target::get_offsets): Update.
1125 (remote_target::start_remote)
1126 (extended_remote_target::post_attach): Update.
1127 * objfiles.c (entry_point_address_query): Update.
1128 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1129 * minsyms.c (get_symbol_leading_char): Update.
1130 * frame.c (inside_main_func): Update.
1131 * progspace.h (symfile_objfile): Remove macro.
1132
1133 2020-10-29 Tom Tromey <tom@tromey.com>
1134
1135 * exec.c (exec_file_attach): Update.
1136 * progspace.c (program_space::exec_close): Update.
1137 * progspace.h (struct program_space) <ebfd>: Now a
1138 gdb_bfd_ref_ptr.
1139 <set_exec_bfd>: Change argument type.
1140 <exec_bfd>: Update.
1141
1142 2020-10-29 Tom Tromey <tom@tromey.com>
1143
1144 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1145 * symfile.c (reread_symbols): Update.
1146 * symfile-mem.c (add_symbol_file_from_memory_command)
1147 (add_vsyscall_page): Update.
1148 * source-cache.c (source_cache::get_plain_source_lines): Update.
1149 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1150 (svr4_current_sos_direct, svr4_exec_displacement)
1151 (svr4_relocate_main_executable): Update.
1152 (svr4_iterate_over_objfiles_in_search_order): Update.
1153 * solib-frv.c (enable_break2, enable_break): Update.
1154 * solib-dsbt.c (lm_base, enable_break): Update.
1155 * solib-darwin.c (find_program_interpreter)
1156 (darwin_solib_create_inferior_hook): Update.
1157 * sol-thread.c (rw_common, ps_pdmodel): Update.
1158 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1159 * remote.c (compare_sections_command)
1160 (remote_target::trace_set_readonly_regions): Update.
1161 * remote-sim.c (get_sim_inferior_data)
1162 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1163 (gdbsim_target_open, gdbsim_target::files_info): Update.
1164 * exec.h (exec_bfd): Remove macro.
1165 * progspace.c (initialize_progspace): Update.
1166 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1167 Update.
1168 * nto-procfs.c (nto_procfs_target::post_attach)
1169 (nto_procfs_target::create_inferior): Update.
1170 * maint.c (maintenance_info_sections): Update.
1171 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1172 Update.
1173 * infcmd.c (post_create_inferior): Update.
1174 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1175 (objfile_find_memory_regions): Update.
1176 * exec.c (validate_exec_file, exec_file_attach)
1177 (exec_read_partial_read_only, print_section_info): Update.
1178 * corelow.c (core_target_open): Update.
1179 * corefile.c (reopen_exec_file, validate_files): Update.
1180 * arm-tdep.c (gdb_print_insn_arm): Update.
1181 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1182 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1183 methods.
1184
1185 2020-10-29 Tom Tromey <tom@tromey.com>
1186
1187 * progspace.h (current_target_sections): Remove macro.
1188 * solib-svr4.c (scan_dyntag): Update.
1189 * solib-dsbt.c (scan_dyntag): Update.
1190 * exec.c (exec_target::close): Update.
1191 (add_target_sections, add_target_sections_of_objfile)
1192 (remove_target_sections, exec_target::get_section_table)
1193 (exec_target::files_info, set_section_command)
1194 (exec_set_section_address, exec_target::has_memory)
1195 (exec_target::has_memory): Update.
1196
1197 2020-10-29 Tom Tromey <tom@tromey.com>
1198
1199 * source-cache.c (source_cache::get_plain_source_lines): Use
1200 current_program_space.
1201 * corefile.c (reopen_exec_file): Use current_program_space.
1202 * exec.c (exec_file_attach): Use current_program_space.
1203 * exec.h (exec_bfd_mtime): Remove.
1204
1205 2020-10-29 Tom Tromey <tom@tromey.com>
1206
1207 * gcore.c (default_gcore_mach): Remove.
1208 (create_gcore_bfd): Update.
1209
1210 2020-10-29 Tom Tromey <tom@tromey.com>
1211
1212 * progspace.c (program_space::exec_close): New method, from
1213 exec_close in exec.c.
1214 * exec.c (exec_close): Move to progspace.c.
1215 (exec_target::close, exec_file_attach): Update.
1216 * progspace.h (struct program_space) <exec_close>: Declare
1217 method.
1218
1219 2020-10-29 Tom Tromey <tom@tromey.com>
1220
1221 * progspace.h (struct program_space) <exec_filename>: Rename from
1222 pspace_exec_filename. Now a unique_xmalloc_ptr.
1223 * inferior.c (print_selected_inferior): Update.
1224 (print_inferior): Update.
1225 * mi/mi-main.c (print_one_inferior): Update.
1226 * exec.h (exec_filename): Remove macro.
1227 * corefile.c (get_exec_file): Update.
1228 * exec.c (exec_close): Update.
1229 (exec_file_attach): Update.
1230 * progspace.c (clone_program_space): Update.
1231 (print_program_space): Update.
1232
1233 2020-10-29 Tom Tromey <tom@tromey.com>
1234
1235 * target-section.h (struct target_section): Add constructor.
1236 * exec.c (build_section_table, add_target_sections_of_objfile):
1237 Update.
1238 * corelow.c (core_target::build_file_mappings): Update.
1239
1240 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 PR gdb/19318
1243 * inferior.c (detach_inferior_command): Restore the current thread.
1244 (kill_inferior_command): Ditto.
1245
1246 2020-10-28 Tom de Vries <tdevries@suse.de>
1247
1248 PR symtab/26772
1249 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1250 map, check it in the "best match" loop.
1251
1252 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * m32c-tdep.c: Remove unused includes.
1255
1256 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * xtensa-tdep.c: Remove includes.
1259
1260 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1261
1262 * breakpoint.c (struct condition_command_opts): New struct.
1263 (condition_command_option_defs): New static global.
1264 (make_condition_command_options_def_group): New function.
1265 (condition_completer): Update to consider the '-force' flag.
1266 (condition_command): Use gdb::option for the '-force' flag.
1267
1268 2020-10-27 Tom de Vries <tdevries@suse.de>
1269
1270 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1271 symbols in section check.
1272
1273 2020-10-27 Tom de Vries <tdevries@suse.de>
1274
1275 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1276
1277 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278
1279 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1280 * breakpoint.c: Update the help text of the 'condition' and 'break'
1281 commands.
1282 (set_breakpoint_condition): Take a new bool parameter
1283 to control whether condition definition should be forced even when
1284 the condition expression is invalid in all of the current locations.
1285 (condition_command): Update the call to 'set_breakpoint_condition'.
1286 (find_condition_and_thread): Take the "-force-condition" flag into
1287 account.
1288 * linespec.c (linespec_keywords): Add "-force-condition" as an
1289 element.
1290 (FORCE_KEYWORD_INDEX): New #define.
1291 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1292 as a keyword.
1293 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1294 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1295 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1296 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1297
1298 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299
1300 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1301 * breakpoint.c (set_breakpoint_location_condition): New function.
1302 (set_breakpoint_condition): Disable a breakpoint location if parsing
1303 the condition string gives an error.
1304 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1305 (build_target_condition_list): Ditto.
1306 (build_target_command_list): Ditto.
1307 (build_bpstat_chain): Ditto.
1308 (print_one_breakpoint_location): Ditto.
1309 (print_one_breakpoint): Ditto.
1310 (breakpoint_1): Ditto.
1311 (bp_location::bp_location): Ditto.
1312 (locations_are_equal): Ditto.
1313 (update_breakpoint_locations): Ditto.
1314 (enable_disable_bp_num_loc): Ditto.
1315 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1316 (find_condition_and_thread_for_sals): New static function.
1317 (create_breakpoint): Call find_condition_and_thread_for_sals.
1318 (location_to_sals): Call find_condition_and_thread_for_sals instead
1319 of find_condition_and_thread.
1320
1321 2020-10-26 Tom de Vries <tdevries@suse.de>
1322
1323 * dwarf2/read.c (process_full_comp_unit): Call
1324 dwarf2_find_base_address.
1325
1326 2020-10-26 Tom Tromey <tromey@adacore.com>
1327
1328 * gdbtypes.c (create_range_type): Revert previous patch. Add
1329 comment.
1330
1331 2020-10-26 Pedro Alves <pedro@palves.net>
1332
1333 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1334 (my_waitpid): Use gdb::handle_eintr.
1335
1336 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * acinclude.m4: Update ptrace.m4 path.
1339 * ptrace.m4: Moved to gdbsupport.
1340
1341 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1344 instead of target_gdbarch.
1345
1346 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1347
1348 * jit.c (jit_reader_load_command): Pass current inferior.
1349 (jit_inferior_init): Change parameter type to inferior, use it.
1350 (jit_inferior_created): Remove.
1351 (jit_inferior_created_hook): Pass inferior parameter down.
1352 (_initialize_jit): Use jit_inferior_created_hook instead of
1353 jit_inferior_created.
1354 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1355 * infrun.c (follow_exec): Pass inferior to
1356 jit_inferior_created_hook.
1357
1358 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1361 parameter and use it.
1362 (thread_db_inferior_created): Pass inferior argument.
1363
1364 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1365
1366 * aix-thread.c (aix_thread_inferior_created): Add inferior
1367 parameter.
1368 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1369 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1370 * jit.c (jit_inferior_created): Likewise.
1371 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1372 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1373 * observable.h (inferior_created): Likewise.
1374 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1375 * symfile-mem.c (add_vsyscall_page): Likewise.
1376 * infcmd.c (post_create_inferior): Pass inferior argument.
1377
1378 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1379
1380 GDB 10.1 released.
1381
1382 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1383
1384 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1385 to ada_check_typedef.
1386
1387 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * f-exp.y (f_parse): Rename to...
1390 (f_language::parser): ...this.
1391 * f-lang.c (f_get_encoding): Rename to...
1392 (f_language::get_encoding): ...this.
1393 (f_op_print_tab): Rename to...
1394 (f_language::op_print_tab): ...this.
1395 (exp_descriptor_f): Rename to...
1396 (f_language::exp_descriptor_tab): ...this.
1397 (class f_language): Moved to f-lang.h.
1398 (f_language::language_arch_info): New function, moved out of class
1399 declaration.
1400 (f_language::search_name_hash): Likewise.
1401 (f_language::lookup_symbol_nonlocal): Likewise.
1402 (f_language::get_symbol_name_matcher_inner): Likewise.
1403 * f-lang.h: Add 'valprint.h' include.
1404 (class f_language): Moved here from f-lang.c.
1405 * f-typeprint.c (f_type_print_args): Delete commented out
1406 declaration.
1407 (f_print_typedef): Rename to...
1408 (f_language::print_typedef): ...this.
1409 (f_print_type): Rename to...
1410 (f_language::print_type): ...this.
1411 (f_type_print_varspec_prefix): Delete declaration and rename to...
1412 (f_language::f_type_print_varspec_prefix): ...this.
1413 (f_type_print_varspec_suffix): Delete declaration and rename to...
1414 (f_language::f_type_print_varspec_suffix): ...this.
1415 (f_type_print_base): Delete declaration and rename to...
1416 (f_language::f_type_print_base): ...this.
1417 * f-valprint.c (f_value_print_inner): Rename to...
1418 (f_language::value_print_inner): ...this.
1419 * parse.c: Delete 'f-lang.h' include.
1420
1421 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * language.h (language_defn::print_type): Add variable names in
1424 declaration, and update header comment.
1425
1426 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * ada-lang.c (ada_language::demangle): Rename to...
1429 (ada_language::demangle_symbol): ...this.
1430 * c-lang.c (cplus_language::demangle): Rename to...
1431 (cplus_language::demangle_symbol): ...this.
1432 * d-lang.c (d_language::demangle): Rename to...
1433 (d_language::demangle_symbol): ...this.
1434 * f-lang.c (f_language::demangle): Rename to...
1435 (f_language::demangle_symbol): ...this.
1436 * go-lang.c (go_language::demangle): Rename to...
1437 (go_language::demangle_symbol): ...this.
1438 * language.c (language_demangle): Update call to demangle_symbol.
1439 (auto_or_unknown_language::demangle): Rename to...
1440 (auto_or_unknown_language::demangle_symbol): ...this.
1441 * language.h (language_defn::demangle): Rename to...
1442 (language_defn::demangle_symbol): ...this.
1443 * objc-lang.c (objc_language::demangle): Rename to...
1444 (objc_language::demangle_symbol): ...this.
1445 * rust-lang.c (rust_language::demangle): Rename to...
1446 (rust_language::demangle_symbol): ...this.
1447
1448 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1451 (iterate_over_file_blocks): Replace use of macro with the macros
1452 definition.
1453
1454 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1457 * valprint.c (maybe_print_array_index): Replace use of macro with
1458 the macros definition.
1459
1460 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * ada-lang.c (ada_language::print_array_index): Call value_print
1463 directly.
1464 * language.c (language_defn::print_array_index): Likewise.
1465 * language.h (LA_VALUE_PRINT): Delete.
1466 * valprint.c (value_print): Call value_print on the
1467 current_language directly.
1468
1469 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * language.h (LA_PRINT_TYPEDEF): Delete.
1472 * typeprint.c (typedef_print): Call print_typedef directly on the
1473 current_language object.
1474
1475 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * m2-exp.y (m2_parse): Rename to...
1478 (m2_language::parser): ...this. Update function signature.
1479 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1480 (m2_op_print): Rename to...
1481 (m2_language::op_print_tab): ...this, and make const.
1482 (exp_descriptor_modula2): Rename to...
1483 (m2_language::exp_descriptor_modula2): ...this.
1484 (class m2_language): Move to m2-lang.h.
1485 (m2_language::language_arch_info): New function, moved out of
1486 class declaration.
1487 (m2_language::printchar): New function, body from m2_printchar.
1488 (m2_language::printstr): New function, moved out of class
1489 declaration.
1490 (m2_language::emitchar): Likewise.
1491 * m2-lang.h (m2_parse): Delete declaration.
1492 (m2_print_typedef): Delete declaration.
1493 (m2_value_print_inner): Delete declaration.
1494 (class m2_language): Class declaration moved from m2-lang.c,
1495 larger functions are left in m2-lang.c.
1496 * m2-typeprint.c (m2_print_typedef): Rename to...
1497 (m2_language::print_typedef): ...this, and update function
1498 signature.
1499 * m2-valprint.c (m2_value_print_inner): Rename to...
1500 (m2_language::value_print_inner): ...this, replace use of
1501 LA_PRINT_STRING with a direct call to printstr member function,
1502 and update recursive call.
1503
1504 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * language.c (default_is_string_type_p): Delete, implementation
1507 moved into auto_or_unknown_language::is_string_type_p.
1508 (unk_op_print_tab): Moved into
1509 auto_or_unknown_language::opcode_print_table.
1510 (unknown_language_arch_info): Delete, implementation moved into
1511 auto_or_unknown_language::language_arch_info.
1512 (class auto_or_unknown_language): New class, member functions
1513 copied from unknown_language class, with some updates.
1514 (class unknown_language): Most member functions moved into
1515 auto_or_unknown_language class. Inherit from
1516 auto_or_unknown_language class.
1517 (class auto_language): Inherit from auto_or_unknown_language.
1518 Delete most member functions.
1519
1520 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1521
1522 * stabsread.c (read_member_functions): Remove gdb_assert.
1523
1524 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1525
1526 * gdbtypes.c (init_complex_type): Check target type name.
1527
1528 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * target-debug.h (target_debug_print_struct_target_ops_p):
1531 Remove.
1532 (target_debug_print_async_callback_ftype_p): Remove.
1533 (target_debug_print_struct_trace_state_variable_p): Remove.
1534 (target_debug_print_struct_traceframe_info_p): Remove.
1535 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1536 (target_debug_print_enum_btrace_format): Remove.
1537 (target_debug_print_enum_info_proc_what): Remove.
1538 (target_debug_print_thread_info_pp): Remove.
1539
1540 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1541
1542 * target.h (struct target_ops) <make_corefile_notes>:
1543 Change return type to unique pointer.
1544 * target.c (dummy_make_corefile_notes): Likewise.
1545 * exec.c (struct exec_target) <make_corefile_notes>:
1546 Likewise.
1547 (exec_target::make_corefile_notes): Likewise.
1548 * procfs.c (class procfs_target) <make_corefile_notes>:
1549 Likewise.
1550 (procfs_do_thread_registers): Adjust to unique pointer.
1551 (struct procfs_corefile_thread_data): Add constructor.
1552 <note_data>: Change type to unique pointer.
1553 (procfs_corefile_thread_callback): Adjust to unique pointer.
1554 (procfs_target::make_corefile_notes): Change return type to
1555 unique pointer.
1556 * target-delegates.c: Re-generate.
1557 * gcore.c (write_gcore_file_1): Adjust.
1558 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1559 New.
1560
1561 2020-10-22 Tom de Vries <tdevries@suse.de>
1562
1563 * block.c (find_block_in_blockvector): Make sure the returned block
1564 contains pc.
1565
1566 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 PR gdb/26693
1569 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1570 parameter.
1571 (load_cu): Pass existing CU.
1572 (process_imported_unit_die): Likewise.
1573 (follow_die_offset): Likewise.
1574
1575 2020-10-22 Luis Machado <luis.machado@linaro.org>
1576
1577 * corelow.c (core_target::xfer_partial): Also check for an empty
1578 m_core_unavailable_mappings vector.
1579
1580 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1583 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1584 * f-exp.y (arglist): Allow for a series of subranges.
1585 (subrange): Add cases for subranges with strides.
1586 * f-lang.c (value_f90_subarray): Catch use of array strides and
1587 throw an error.
1588 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1589
1590 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1591
1592 * expprint.c (print_subexp_standard): Change enum range_type to
1593 range_flag and rename variables to match.
1594 (dump_subexp_body_standard): Likewise.
1595 * expression.h (enum range_type): Rename to...
1596 (enum range_flag): ...this.
1597 (range_types): Rename to...
1598 (range_flags): ...this.
1599 * f-lang.c (value_f90_subarray): Change enum range_type to
1600 range_flag and rename variables to match.
1601 * parse.c (operator_length_standard): Likewise.
1602 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1603 range_type to range_flag.
1604 * rust-lang.c (rust_evaluate_funcall): Likewise.
1605 (rust_range): Likewise.
1606 (rust_compute_range): Likewise.
1607 (rust_subscript): Likewise.
1608
1609 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * expprint.c (print_subexp_standard): Update to reflect changes to
1612 enum range_type.
1613 (dump_subexp_body_standard): Likewise.
1614 * expression.h (enum range_type): Convert to a bit field enum, and
1615 make the enum unsigned.
1616 * f-exp.y (subrange): Update to reflect changes to enum
1617 range_type.
1618 * f-lang.c (value_f90_subarray): Likewise.
1619 * parse.c (operator_length_standard): Likewise.
1620 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1621 * rust-lang.c (rust_range): Likewise.
1622 (rust_compute_range): Likewise.
1623 (rust_subscript): Likewise.
1624
1625 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1626
1627 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1628 (displaced_step_in_progress): Fix comment.
1629
1630 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1633 * gdbarch.c: Re-generate.
1634 * gdbarch.h: Re-generate.
1635 * gcore.c (write_gcore_file_1): Adjust.
1636 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1637 constructor.
1638 <note_data>: Change type to unique pointer.
1639 <abort_iteration>: Change type to bool.
1640 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1641 (fbsd_collect_thread_registers): Return void, adjust.
1642 (struct fbsd_corefile_thread_data): Add construtor.
1643 <note_data>: Change type to unique pointer.
1644 (fbsd_corefile_thread): Adjust.
1645 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1646 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1647 to unique pointer, adjust.
1648 (struct linux_collect_regset_section_cb_data): Add constructor.
1649 <note_data>: Change type to unique pointer.
1650 <abort_iteration>: Change type to bool.
1651 (linux_collect_thread_registers): Return void, adjust.
1652 (struct linux_corefile_thread_data): Add constructor.
1653 <note_data>: Change type to unique pointer.
1654 (linux_corefile_thread): Adjust.
1655 (linux_make_corefile_notes): Return unique pointer, adjust.
1656
1657 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1660 * gdbarch.c: Re-generate.
1661 * gdbarch.h: Re-generate.
1662 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1663 bool.
1664 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1665 Likewise.
1666 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1667 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1668 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1669 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1670
1671 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1672
1673 * gdbarch.sh: Make generated predicates return bool.
1674 * gdbarch.c: Re-generate.
1675 * gdbarch.h: Re-generate.
1676
1677 2020-10-20 Tom Tromey <tom@tromey.com>
1678
1679 * varobj-iter.h (struct varobj_item): Remove typedef.
1680
1681 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 * infrun.c (currently_stepping): Change int to bool
1684 (maybe_software_singlestep): Likewise.
1685 (show_stop_on_solib_events): Likewise.
1686 (stepping_past_nonsteppable_watchpoint): Likewise.
1687 (displaced_step_in_progress_any_inferior): Likewise.
1688 (displaced_step_in_progress_thread): Likewise.
1689 (keep_going_stepped_thread): Likewise.
1690 (thread_still_needs_step_over): Likewise.
1691 (start_step_over): Likewise.
1692 (do_target_resume): Likewise.
1693 (resume_1): Likewise.
1694 (clear_proceed_status): Likewise.
1695 (thread_still_needs_step_over_bp): Likewise.
1696 (proceed): Likewise.
1697 (switch_back_to_stepped_thread): Likewise.
1698 (adjust_pc_after_break): Likewise.
1699 (stepped_in_from): Likewise.
1700 (handle_stop_requested): Likewise.
1701 (handle_syscall_event): Likewise.
1702 (handle_no_resumed): Likewise.
1703 (handle_inferior_event): Likewise.
1704 (finish_step_over): Likewise.
1705 (handle_signal_stop): Likewise.
1706 (process_event_stop_test): Likewise.
1707
1708 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * infrun.c (get_displaced_stepping_state): Fix comment.
1711
1712 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1713
1714 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1715
1716 2020-10-19 Tom Tromey <tromey@adacore.com>
1717
1718 PR tui/26719
1719 * tui/tui-winsource.h (struct tui_source_window_base)
1720 <refresh_window>: Rename from refresh_pad.
1721 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1722 Rename from refresh_pad.
1723 (tui_source_window_base::show_source_content)
1724 (tui_source_window_base::do_scroll_horizontal): Update.
1725
1726 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1727
1728 * thread.c (_initialize_thread): Fine-tune the help text of
1729 'info threads'.
1730
1731 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1734
1735 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1736
1737 * breakpoint.c (handle_jit_event): Add an argument, change how
1738 `jit_event_handler` is called.
1739
1740 2020-10-17 Tom Tromey <tom@tromey.com>
1741
1742 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1743 (scan_xcoff_symtab): Update.
1744 * psymtab.h (class psymtab_storage) <global_psymbols,
1745 static_psymbols, current_global_psymbols,
1746 current_static_psymbols>: Remove.
1747 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1748 (match_partial_symbol, lookup_partial_symbol): Update.
1749 (print_partial_symbols): Change parameters.
1750 (dump_psymtab, recursively_search_psymtabs)
1751 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1752 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1753 (concat): Remove.
1754 (end_psymtab_common): Simplify.
1755 (append_psymbol_to_list): Change parameters.
1756 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1757 (init_psymbol_list): Simplify.
1758 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1759 * psympriv.h (struct partial_symtab) <empty>: New method.
1760 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1761 Remove.
1762 <global_psymbols, static_psymbols>: New members.
1763 <add_psymbol>: New methods.
1764 (add_psymbol_to_list): Don't declare.
1765 (psymbol_placement): Move earlier.
1766 * mdebugread.c (parse_partial_symbols): Update.
1767 (handle_psymbol_enumerators): Change parameters.
1768 (mdebug_expand_psymtab): Update.
1769 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1770 (add_partial_symbol): Update.
1771 * dwarf2/index-write.c (write_psymbols): Change parameters.
1772 (write_one_signatured_type): Update.
1773 (recursively_count_psymbols): Update.
1774 (recursively_write_psymbols): Update.
1775 (class debug_names) <recursively_write_psymbols>: Update.
1776 <write_psymbols>: Change parameters.
1777 <write_one_signatured_type>: Update.
1778 * dbxread.c (read_dbx_symtab): Update.
1779 (dbx_end_psymtab): Use partial_symtab::empty.
1780 * ctfread.c (struct ctf_context) <pst>: New member.
1781 (create_partial_symtab): Set it.
1782 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1783 (scan_partial_symbols): Use the psymtab's context. Update.
1784
1785 2020-10-17 Tom Tromey <tom@tromey.com>
1786
1787 * valprint.c (generic_value_print): Remove comment.
1788 * m2-valprint.c (m2_value_print_inner): Remove comment.
1789 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1790 type.
1791
1792 2020-10-17 Tom de Vries <tdevries@suse.de>
1793
1794 PR symtab/26317
1795 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1796 symbol main.
1797
1798 2020-10-14 Tom de Vries <tdevries@suse.de>
1799
1800 PR gdb/26733
1801 * solib.c (solib_contains_address_p): Handle
1802 'solib->sections == nullptr'.
1803
1804 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1805
1806 PR gdb/26642
1807 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1808 target can't do async.
1809 * target.c (target_wait): Assert that we don't pass
1810 TARGET_WNOHANG to a target that can't async.
1811
1812 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1813
1814 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1815 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1816 * alpha-bsd-nat.c: Adjust include.
1817 * alpha-bsd-tdep.h: Adjust comment.
1818 * alpha-nbsd-tdep.c: Rename to ...
1819 * alpha-netbsd-tdep.c: ... this, adjust include.
1820 * amd64-nbsd-nat.c: Rename to ...
1821 * amd64-netbsd-nat.c: ... this, adjust include.
1822 * amd64-nbsd-tdep.c: Rename to ...
1823 * amd64-netbsd-tdep.c: ... this, adjust include.
1824 * amd64-tdep.h: Adjust include.
1825 * arm-nbsd-nat.c: Rename to ...
1826 * arm-netbsd-nat.c: ... this, adjust include.
1827 * arm-nbsd-tdep.c: Rename to ...
1828 * arm-netbsd-tdep.c: ... this, adjust include.
1829 * arm-nbsd-tdep.h: Rename to ...
1830 * arm-netbsd-tdep.h: ... this, adjust include.
1831 * configure.nat: Adjust file lists.
1832 * configure.tgt: Likewise.
1833 * hppa-nbsd-nat.c: Rename to ...
1834 * hppa-netbsd-nat.c: ... this, adjust include.
1835 * hppa-nbsd-tdep.c: Rename to ...
1836 * hppa-netbsd-tdep.c: ... this, adjust include.
1837 * i386-nbsd-nat.c: Rename to ...
1838 * i386-netbsd-nat.c: ... this, adjust include.
1839 * i386-nbsd-tdep.c: Rename to ...
1840 * i386-netbsd-tdep.c: ... this, adjust include.
1841 * m68k-bsd-nat.c: Adjust include.
1842 * mips-nbsd-nat.c: Rename to ...
1843 * mips-netbsd-nat.c: ... this, adjust include.
1844 * mips-nbsd-tdep.c: Rename to ...
1845 * mips-netbsd-tdep.c: ... this, adjust include.
1846 * mips-nbsd-tdep.h: Rename to ...
1847 * mips-netbsd-tdep.h: ... this.
1848 * nbsd-nat.c: Rename to ...
1849 * netbsd-nat.c: ... this, adjust include.
1850 * nbsd-nat.h: Rename to ...
1851 * netbsd-nat.h: ... this, adjust include.
1852 * nbsd-tdep.c: Rename to ...
1853 * netbsd-tdep.c: ... this, adjust include.
1854 * nbsd-tdep.h: Rename to ...
1855 * netbsd-tdep.h: ... this.
1856 * ppc-nbsd-nat.c: Rename to ...
1857 * ppc-netbsd-nat.c: ... this, adjust include.
1858 * ppc-nbsd-tdep.c: Rename to ...
1859 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1860 * ppc-nbsd-tdep.h: Rename to ...
1861 * ppc-netbsd-tdep.h: ... this.
1862 * sh-nbsd-nat.c: Rename to ...
1863 * sh-netbsd-nat.c: ... this, adjust include.
1864 * sh-nbsd-tdep.c: Rename to ...
1865 * sh-netbsd-tdep.c: ... this, adjust include.
1866 * sparc-nbsd-nat.c: Rename to ...
1867 * sparc-netbsd-nat.c: ... this.
1868 * sparc-nbsd-tdep.c: Rename to ...
1869 * sparc-netbsd-tdep.c: ... this, adjust include.
1870 * sparc64-nbsd-nat.c: Rename to ...
1871 * sparc64-netbsd-nat.c: ... this.
1872 * sparc64-nbsd-tdep.c: Rename to ...
1873 * sparc64-netbsd-tdep.c: ... this, adjust include.
1874 * sparc64-tdep.h: Adjust comment.
1875 * vax-bsd-nat.c: Adjust include.
1876 * vax-nbsd-tdep.c: Rename to ...
1877 * vax-netbsd-tdep.c: ... this, adjust include.
1878
1879 2020-10-12 Tom Tromey <tom@tromey.com>
1880
1881 * target.h (struct target_ops) <get_section_table>: Update.
1882 (target_get_section_table): Update.
1883 * target.c (target_get_section_table, target_section_by_addr)
1884 (memory_xfer_partial_1): Update.
1885 * target-section.h (target_section_table): Now an alias.
1886 * target-delegates.c: Rebuild.
1887 * target-debug.h (target_debug_print_target_section_table_p):
1888 Rename from target_debug_print_struct_target_section_table_p.
1889 * symfile.c (build_section_addr_info_from_section_table): Update.
1890 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1891 * solib-svr4.c (scan_dyntag): Update.
1892 * solib-dsbt.c (scan_dyntag): Update.
1893 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1894 Update.
1895 * record-full.c (record_full_core_target::xfer_partial): Update.
1896 * progspace.h (struct program_space) <target_sections>: Update.
1897 * exec.h (print_section_info): Update.
1898 * exec.c (exec_target::close, build_section_table)
1899 (add_target_sections, add_target_sections_of_objfile)
1900 (remove_target_sections, exec_on_vfork)
1901 (section_table_available_memory)
1902 (section_table_xfer_memory_partial)
1903 (exec_target::get_section_table, exec_target::xfer_partial)
1904 (print_section_info, set_section_command)
1905 (exec_set_section_address, exec_target::has_memory): Update.
1906 * corelow.c (core_target::build_file_mappings)
1907 (core_target::xfer_partial, core_target::info_proc_mappings)
1908 (core_target::info_proc_mappings): Update.
1909 * bfd-target.c (class target_bfd): Update
1910
1911 2020-10-12 Tom Tromey <tom@tromey.com>
1912
1913 * progspace.c (program_space::~program_space): Don't call
1914 clear_section_table.
1915 * exec.h (clear_section_table): Don't declare.
1916 * exec.c (exec_target::close): Update.
1917 (clear_section_table): Remove.
1918
1919 2020-10-12 Tom Tromey <tom@tromey.com>
1920
1921 * exec.c (add_target_sections_of_objfile): Simplify.
1922
1923 2020-10-12 Tom Tromey <tom@tromey.com>
1924
1925 * solib.c (solib_map_sections): Update.
1926 * record-full.c (record_full_core_open_1): Update.
1927 * exec.h (build_section_table): Return a target_section_table.
1928 * exec.c (exec_file_attach): Update.
1929 (build_section_table): Return a target_section_table.
1930 * corelow.c (core_target::core_target): Update.
1931 * bfd-target.c (target_bfd::target_bfd): Update.
1932
1933 2020-10-12 Tom Tromey <tom@tromey.com>
1934
1935 * target.c (target_section_by_addr, memory_xfer_partial_1):
1936 Update.
1937 * target-section.h (struct target_section_table): Use
1938 std::vector.
1939 * symfile.h (build_section_addr_info_from_section_table): Take a
1940 target_section_table.
1941 * symfile.c (build_section_addr_info_from_section_table): Take a
1942 target_section_table.
1943 * solist.h (struct so_list) <sections>: Change type.
1944 <sections_end>: Remove.
1945 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1946 (solib_contains_address_p): Update.
1947 * solib-svr4.c (scan_dyntag): Update.
1948 * solib-dsbt.c (scan_dyntag): Update.
1949 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1950 Update.
1951 * record-full.c (record_full_core_start, record_full_core_end):
1952 Remove.
1953 (record_full_core_sections): New global.
1954 (record_full_core_open_1, record_full_core_target::xfer_partial):
1955 Update.
1956 * exec.h (build_section_table, section_table_xfer_memory_partial)
1957 (add_target_sections): Take a target_section_table.
1958 * exec.c (exec_file_attach, clear_section_table): Update.
1959 (resize_section_table): Remove.
1960 (build_section_table, add_target_sections): Take a
1961 target_section_table.
1962 (add_target_sections_of_objfile, remove_target_sections)
1963 (exec_on_vfork): Update.
1964 (section_table_available_memory): Take a target_section_table.
1965 (section_table_read_available_memory): Update.
1966 (section_table_xfer_memory_partial): Take a target_section_table.
1967 (print_section_info, set_section_command)
1968 (exec_set_section_address, exec_target::has_memory): Update.
1969 * corelow.c (class core_target) <m_core_section_table,
1970 m_core_file_mappings>: Remove braces.
1971 <~core_target>: Remove.
1972 (core_target::core_target): Update.
1973 (core_target::~core_target): Remove.
1974 (core_target::build_file_mappings)
1975 (core_target::xfer_memory_via_mappings)
1976 (core_target::xfer_partial, core_target::info_proc_mappings):
1977 Update.
1978 * bfd-target.c (target_bfd::xfer_partial): Update.
1979 (target_bfd::target_bfd): Update.
1980 (target_bfd::~target_bfd): Remove.
1981
1982 2020-10-12 Tom Tromey <tom@tromey.com>
1983
1984 * target.h (struct target_section, struct target_section_table):
1985 Move to target-section.h.
1986 * target-section.h: New file.
1987
1988 2020-10-12 Pedro Alves <pedro@palves.net>
1989
1990 PR exp/26602
1991 * valops.c (struct struct_field_searcher): New.
1992 (update_search_result): Rename to ...
1993 (struct_field_searcher::update_result): ... this. Simplify
1994 prototype. Record all found fields.
1995 (do_search_struct_field): Rename to ...
1996 (struct_field_searcher::search): ... this. Simplify prototype.
1997 Maintain stack of visited baseclass path. Call update_result for
1998 fields too. Keep searching fields in baseclasses instead of
1999 stopping at the first found field.
2000 (search_struct_field): Use struct_field_searcher. When looking
2001 for fields, report ambiguous access attempts.
2002
2003 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * frame.c (inside_main_func): Check full symbols as well as
2006 minimal symbols.
2007
2008 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2009
2010 * ada-lang.c (advance_wild_match): Rewrite the function's
2011 description. Change the type of target0, t0 and t1 to char.
2012
2013 2020-10-09 Tom Tromey <tromey@adacore.com>
2014
2015 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2016
2017 2020-10-09 Tom Tromey <tromey@adacore.com>
2018
2019 * ada-lang.h (ada_encode): Return std::string.
2020 * ada-lang.c (ada_encode_1): Return std::string.
2021 (ada_encode): Likewise.
2022 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2023 Update.
2024 * ada-exp.y (block_lookup, write_var_or_type): Update.
2025
2026 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2027
2028 PR exp/26714
2029 * printcmd.c (print_formatted): Handle void results as
2030 unformatted prints.
2031
2032 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * arch/aarch32.c (aarch32_create_target_description): Release the
2035 target_desc_up as late as possible.
2036 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2037 * arch/amd64.c (amd64_create_target_description): Likewise.
2038 * arch/arc.c (arc_create_target_description): Return a
2039 target_desc_up, don't release it.
2040 * arch/arc.h (arc_create_target_description): Update declaration.
2041 (arc_lookup_target_description): Move target_desc_up into the
2042 cache, and return a borrowed pointer.
2043 * arch/arm.c (arm_create_target_description): Release the
2044 target_desc_up as late as possible.
2045 * arch/i386.c (i386_create_target_description): Likewise.
2046 * arch/riscv.h (riscv_create_target_description): Update
2047 declaration to match definition.
2048 * arch/tic6x.c (tic6x_create_target_description): Release the
2049 target_desc_up as late as possible.
2050
2051 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2054 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2055
2056 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2057
2058 * source.c (directory_command): Notify observers that "directories"
2059 parameter has changed.
2060
2061 2020-10-08 Tom Tromey <tom@tromey.com>
2062
2063 * cli/cli-cmds.c (print_disassembly): Style function name and
2064 addresses. Add _() wrappers.
2065
2066 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2067
2068 * NEWS: Mention ARC support in GDBserver.
2069
2070 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * arch/aarch32.c (aarch32_create_target_description): Release
2073 unique_ptr returned from allocate_target_description.
2074 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2075 * arch/amd64.c (amd64_create_target_description): Likewise.
2076 * arch/arc.c (arc_create_target_description): Likewise.
2077 * arch/arm.c (arm_create_target_description): Likewise.
2078 * arch/i386.c (i386_create_target_description): Likewise.
2079 * arch/riscv.c (riscv_create_target_description): Update return
2080 type. Handle allocate_target_description returning a unique_ptr.
2081 (riscv_lookup_target_description): Update to handle unique_ptr.
2082 * arch/tic6x.c (tic6x_create_target_description): Release
2083 unique_ptr returned from allocate_target_description.
2084 * features/microblaze-with-stack-protect.c: Regenerate.
2085 * features/microblaze.c: Regenerate.
2086 * features/mips-dsp-linux.c: Regenerate.
2087 * features/mips-linux.c: Regenerate.
2088 * features/mips64-dsp-linux.c: Regenerate.
2089 * features/mips64-linux.c: Regenerate.
2090 * features/nds32.c: Regenerate.
2091 * features/nios2.c: Regenerate.
2092 * features/or1k.c: Regenerate.
2093 * features/rs6000/powerpc-32.c: Regenerate.
2094 * features/rs6000/powerpc-32l.c: Regenerate.
2095 * features/rs6000/powerpc-403.c: Regenerate.
2096 * features/rs6000/powerpc-403gc.c: Regenerate.
2097 * features/rs6000/powerpc-405.c: Regenerate.
2098 * features/rs6000/powerpc-505.c: Regenerate.
2099 * features/rs6000/powerpc-601.c: Regenerate.
2100 * features/rs6000/powerpc-602.c: Regenerate.
2101 * features/rs6000/powerpc-603.c: Regenerate.
2102 * features/rs6000/powerpc-604.c: Regenerate.
2103 * features/rs6000/powerpc-64.c: Regenerate.
2104 * features/rs6000/powerpc-64l.c: Regenerate.
2105 * features/rs6000/powerpc-7400.c: Regenerate.
2106 * features/rs6000/powerpc-750.c: Regenerate.
2107 * features/rs6000/powerpc-860.c: Regenerate.
2108 * features/rs6000/powerpc-altivec32.c: Regenerate.
2109 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2110 * features/rs6000/powerpc-altivec64.c: Regenerate.
2111 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2112 * features/rs6000/powerpc-e500.c: Regenerate.
2113 * features/rs6000/powerpc-e500l.c: Regenerate.
2114 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2115 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2116 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2117 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2118 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2119 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2120 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2121 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2122 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2123 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2124 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2125 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2126 * features/rs6000/powerpc-vsx32.c: Regenerate.
2127 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2128 * features/rs6000/powerpc-vsx64.c: Regenerate.
2129 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2130 * features/rs6000/rs6000.c: Regenerate.
2131 * features/rx.c: Regenerate.
2132 * features/s390-gs-linux64.c: Regenerate.
2133 * features/s390-linux32.c: Regenerate.
2134 * features/s390-linux32v1.c: Regenerate.
2135 * features/s390-linux32v2.c: Regenerate.
2136 * features/s390-linux64.c: Regenerate.
2137 * features/s390-linux64v1.c: Regenerate.
2138 * features/s390-linux64v2.c: Regenerate.
2139 * features/s390-te-linux64.c: Regenerate.
2140 * features/s390-tevx-linux64.c: Regenerate.
2141 * features/s390-vx-linux64.c: Regenerate.
2142 * features/s390x-gs-linux64.c: Regenerate.
2143 * features/s390x-linux64.c: Regenerate.
2144 * features/s390x-linux64v1.c: Regenerate.
2145 * features/s390x-linux64v2.c: Regenerate.
2146 * features/s390x-te-linux64.c: Regenerate.
2147 * features/s390x-tevx-linux64.c: Regenerate.
2148 * features/s390x-vx-linux64.c: Regenerate.
2149 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2150 from allocate_target_description.
2151 * target-descriptions.c (allocate_target_description): Update
2152 return type.
2153 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2154 allocate_target_description.
2155
2156 2020-10-07 Tom Tromey <tromey@adacore.com>
2157
2158 * unittests/search-memory-selftests.c: New file.
2159 * Makefile.in (SELFTESTS_SRCS): Add
2160 unittests/search-memory-selftests.c.
2161
2162 2020-10-07 Tom Tromey <tromey@adacore.com>
2163
2164 PR gdb/16930:
2165 * findcmd.c (_initialize_mem_search): Mention that the range is
2166 inclusive.
2167
2168 2020-10-07 Tom Tromey <tromey@adacore.com>
2169
2170 * target.h (simple_search_memory): Don't declare.
2171 * target.c (simple_search_memory): Move to gdbsupport.
2172 (default_search_memory): Update.
2173 * remote.c (remote_target::search_memory): Update.
2174
2175 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * Makefile.in (COMPILE): Add CXXFLAGS.
2178 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2179 (check-headers): Add CXXFLAGS.
2180
2181 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2182
2183 * arc-linux-tdep.h: New file.
2184 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2185 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2186 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2187 arc_linux_gregset, arc_linux_v2_regset,
2188 arc_linux_iterate_over_regset_sections,
2189 arc_linux_core_read_description): Implement.
2190 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2191 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2192 (arc_gdbarch_features_create): Add.
2193 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2194
2195 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2196
2197 * arch/arc.h: Rename "arc_gdbarch_features" to
2198 "arc_arch_features".
2199 * arc-tdep.h: Likewise.
2200 * arc-tdep.c: Likewise.
2201
2202 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2203
2204 * infcmd.c (attach_command): Remove the redundant call to
2205 `clear_proceed_status`.
2206
2207 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2208
2209 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2210
2211 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2212
2213 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2214 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2215 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2216
2217 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2220 (_initialize_break_catch_sig): Don't allocate array.
2221
2222 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * symtab.c (find_pc_line): Return unmapped addresses when the
2225 requested address is also unmapped.
2226
2227 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2230 tui/tui-out.h.
2231
2232 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2235 type::is_vector instead of TYPE_VECTOR.
2236
2237 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * auto-load.c (auto_load_objfile_script_1): Don't use
2240 debugfile_holder as temporary variable when stripping drive
2241 letter.
2242
2243 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2244
2245 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2246 Add TYPE_CODE_COMPLEX.
2247 (amd64_windows_return_value): Fix types returned via XMM0.
2248
2249 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2250
2251 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2252 AArch64/ARM maintainers.
2253
2254 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2255
2256 * NEWS: Mention set/show debug event-loop.
2257
2258 2020-10-02 Tom Tromey <tromey@adacore.com>
2259
2260 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2261 REG_EXTENDED.
2262
2263 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2264
2265 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2266 * procfs.c (procfs_inferior_created): Remove.
2267 (_initialize_procfs): Don't register procfs_inferior_created.
2268
2269 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * async-event.c (invoke_async_signal_handlers): Add debug
2272 print.
2273 (check_async_event_handlers): Likewise.
2274 * event-top.c (show_debug_event_loop): New function.
2275 (_initialize_event_top): Register "set debug event-loop"
2276 setting.
2277
2278 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2281 * debug.h: Remove.
2282 * infrun.c: Include gdbsupport/common-debug.h.
2283 * linux-nat.c: Likewise.
2284
2285 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * async-event.h (create_async_signal_handler): Add name
2288 parameter.
2289 (create_async_event_handler): Likewise.
2290 * async-event.c (struct async_signal_handler) <name>: New field.
2291 (struct async_event_handler) <name>: New field.
2292 (create_async_signal_handler): Assign name.
2293 (create_async_event_handler): Assign name.
2294 * event-top.c (async_init_signals): Pass name when creating
2295 handler.
2296 * infrun.c (_initialize_infrun): Likewise.
2297 * record-btrace.c (record_btrace_push_target): Likewise.
2298 * record-full.c (record_full_open): Likewise.
2299 * remote-notif.c (remote_notif_state_allocate): Likewise.
2300 * remote.c (remote_target::open_1): Likewise.
2301 * tui/tui-win.c (tui_initialize_win): Likewise.
2302
2303 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2304
2305 * async-event.c (initialize_async_signal_handlers): Pass name to
2306 add_file_handler
2307 * event-top.c (ui_register_input_event_handler): Likewise.
2308 * linux-nat.c (linux_nat_target::async): Likewise.
2309 * run-on-main-thread.c (_initialize_run_on_main_thread):
2310 Likewise
2311 * ser-base.c (reschedule): Likewise.
2312 (ser_base_async): Likewise.
2313 * tui/tui-io.c: Likewise.
2314 * top.h (struct ui) <num>: New field.
2315 * top.c (highest_ui_num): New variable.
2316 (ui::ui): Initialize num.
2317
2318 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * observable.h <inferior_created>: Remove parameters. Update all
2321 listeners.
2322 * inferior.h (post_create_inferior): Remove target parameter.
2323 Update all callers.
2324
2325 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2326
2327 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2328 and DW_MACRO_undef_strx.
2329 (dwarf_decode_macros): Likewise
2330 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2331 which is the value of DW_AT_str_offsets_base.
2332 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2333 str_offsets_base.
2334
2335 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2336
2337 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2338
2339 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2340
2341 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2342 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2343
2344 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2345
2346 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2347
2348 2020-09-30 Tom de Vries <tdevries@suse.de>
2349
2350 PR symtab/26683
2351 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2352
2353 2020-09-30 Tom Tromey <tromey@adacore.com>
2354
2355 * dwarf2/read.c (handle_variant): Use constant_value.
2356
2357 2020-09-29 Tom Tromey <tom@tromey.com>
2358
2359 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2360 (read_file_scope, dwarf2_get_pc_bounds)
2361 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2362 (read_structure_type, handle_struct_member_die)
2363 (read_enumeration_type, read_array_type, read_set_type)
2364 (read_tag_pointer_type, read_tag_reference_type)
2365 (read_subroutine_type, read_base_type, read_subrange_type)
2366 (read_full_die_1, partial_die_info::read)
2367 (partial_die_info::read, by, new_symbol)
2368 (dwarf2_const_value_data, dwarf2_const_value_attr)
2369 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2370 (prepare_one_comp_unit): Update.
2371 * dwarf2/attribute.h (DW_UNSND): Remove.
2372
2373 2020-09-29 Tom Tromey <tom@tromey.com>
2374
2375 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2376 (read_subroutine_type, partial_die_info::read)
2377 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2378 (dwarf2_add_member_fn): Update.
2379 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2380 * dwarf2/attribute.c (attribute::as_boolean): New method.
2381
2382 2020-09-29 Tom Tromey <tom@tromey.com>
2383
2384 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2385 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2386 method.
2387 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2388
2389 2020-09-29 Tom Tromey <tom@tromey.com>
2390
2391 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2392 the attribute's form.
2393
2394 2020-09-29 Tom Tromey <tom@tromey.com>
2395
2396 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2397 (dwarf2_add_member_fn): Update.
2398 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2399 * dwarf2/attribute.c (attribute::defaulted): New method, from
2400 is_valid_DW_AT_defaulted.
2401
2402 2020-09-29 Tom Tromey <tom@tromey.com>
2403
2404 * dwarf2/read.c (dw2_get_file_names_reader)
2405 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2406 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2407 (dwarf2_symbol_mark_computed): Use as_unsigned.
2408 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2409 method.
2410 <form_is_section_offset>: Update comment.
2411
2412 2020-09-29 Tom Tromey <tom@tromey.com>
2413
2414 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2415 dwarf2_default_access_attribute. Look up attribute.
2416 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2417 Update.
2418
2419 2020-09-29 Tom Tromey <tom@tromey.com>
2420
2421 * dwarf2/read.c (skip_one_die): Update.
2422 (read_full_die_1): Change how reprocessing is done.
2423 (partial_die_info::read): Update.
2424 (read_attribute_value): Remove need_reprocess parameter.
2425 (read_attribute): Likewise.
2426 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2427 New method.
2428
2429 2020-09-29 Tom Tromey <tom@tromey.com>
2430
2431 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2432 (dwarf2_const_value_attr, dump_die_shallow)
2433 (dwarf2_fetch_constant_bytes): Update.
2434 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2435 comment.
2436 <set_address>: New method.
2437 (DW_ADDR): Remove.
2438 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2439 (attribute::as_string, attribute::as_address): Add assert.
2440
2441 2020-09-29 Tom Tromey <tom@tromey.com>
2442
2443 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2444 (read_attribute_reprocess, read_attribute_value): Update.
2445 (read_attribute): Clear requires_reprocessing.
2446 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2447 form_requires_reprocessing>: New methods.
2448 <string_init>: Clear requires_reprocessing.
2449 <set_unsigned_reprocess>: New method.
2450 <name>: Shrink by one bit.
2451 <requires_reprocessing>: New member.
2452 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2453 method.
2454
2455 2020-09-29 Tom Tromey <tom@tromey.com>
2456
2457 * dwarf2/read.c (read_attribute_value): Update.
2458 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2459 set_unsigned>: New methods.
2460 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2461
2462 2020-09-29 Tom Tromey <tom@tromey.com>
2463
2464 * dwarf2/read.c (get_alignment, read_array_order)
2465 (read_attribute_value, dwarf2_const_value_attr)
2466 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2467 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2468 New methods.
2469 (DW_SND): Remove.
2470
2471 2020-09-29 Tom Tromey <tom@tromey.com>
2472
2473 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2474 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2475 Update.
2476 * dwarf2/attribute.h (struct attribute) <as_signature,
2477 set_signature>: New methods.
2478 (DW_SIGNATURE): Remove.
2479
2480 2020-09-29 Tom Tromey <tom@tromey.com>
2481
2482 * dwarf2/read.c (read_call_site_scope)
2483 (handle_data_member_location, dwarf2_add_member_fn)
2484 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2485 (partial_die_info::read, read_attribute_value)
2486 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2487 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2488 (dwarf2_symbol_mark_computed): Update.
2489 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2490 methods.
2491 (DW_BLOCK): Remove.
2492 * dwarf2/attribute.c (attribute::form_is_block): Add
2493 DW_FORM_data16.
2494
2495 2020-09-29 Tom Tromey <tom@tromey.com>
2496
2497 * dwarf2/read.c (read_cutu_die_from_dwo)
2498 (read_attribute_reprocess, read_attribute_value, read_attribute)
2499 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2500 (dwarf2_fetch_constant_bytes): Update.
2501 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2502 <set_string_noncanonical, set_string_canonical>: New methods.
2503 <string_is_canonical>: Update comment.
2504 <canonical_string_p>: Add assert.
2505 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2506 * dwarf2/attribute.c (attribute::form_is_string): New method.
2507 (attribute::string): Use it.
2508
2509 2020-09-29 Tom Tromey <tom@tromey.com>
2510
2511 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2512 (dump_die_shallow): Use canonical_string_p.
2513 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2514 method.
2515
2516 2020-09-29 Tom Tromey <tom@tromey.com>
2517
2518 * dwarf2/read.c (partial_die_info::read)
2519 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2520 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2521 attribute::as_string.
2522
2523 2020-09-29 Tom Tromey <tom@tromey.com>
2524
2525 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2526 DW_ADDR.
2527 (attribute::string): Don't use DW_STRING.
2528 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2529 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2530
2531 2020-09-29 Tom Tromey <tom@tromey.com>
2532
2533 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2534 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2535 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2536 * dwarf2/attribute.h (struct attribute): Rename methods.
2537 * dwarf2/attribute.c (attribute::as_address): Rename from
2538 value_as_address.
2539 (attribute::as_string): Rename from value_as_string.
2540
2541 2020-09-29 Tom Tromey <tom@tromey.com>
2542
2543 * dwarf2/read.c (partial_die_info::read) <case
2544 DW_AT_linkage_name>: Use value_as_string.
2545 (dwarf2_string_attr): Use value_as_string.
2546 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2547 method.
2548 * dwarf2/attribute.c (attribute::value_as_string): New method.
2549
2550 2020-09-29 Pedro Alves <pedro@palves.net>
2551
2552 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2553 defined before using '#pragma GCC diagnostic' instead of checking
2554 __clang__.
2555
2556 2020-09-28 Tom Tromey <tom@tromey.com>
2557
2558 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2559 (handle_signal_stop): Update.
2560 * procfs.c (procfs_target::insert_watchpoint): Update.
2561 * target.h (target_have_steppable_watchpoint): Now a function.
2562
2563 2020-09-28 Tom Tromey <tom@tromey.com>
2564
2565 * infrun.c (set_schedlock_func): Update.
2566 * target.h (target_can_lock_scheduler): Now a function.
2567
2568 2020-09-28 Tom Tromey <tom@tromey.com>
2569
2570 * inferior.h (class inferior) <has_execution>: Update.
2571 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2572 * valops.c (find_function_in_inferior)
2573 (value_allocate_space_in_inferior): Update.
2574 * top.c (kill_or_detach): Update.
2575 * target.c (target_preopen, set_target_permissions): Update.
2576 (target_has_execution_current): Remove.
2577 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2578 Update.
2579 * solib.c (update_solib_list, reload_shared_libraries): Update.
2580 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2581 * solib-dsbt.c (enable_break): Update.
2582 * score-tdep.c (score7_fetch_inst): Update.
2583 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2584 Update.
2585 * remote.c (remote_target::start_remote)
2586 (remote_target::remote_check_symbols, remote_target::open_1)
2587 (remote_target::remote_detach_1, remote_target::verify_memory)
2588 (remote_target::xfer_partial, remote_target::read_description)
2589 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2590 * record-full.c (record_full_open_1): Update.
2591 * record-btrace.c (record_btrace_target_open): Update.
2592 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2593 (value_nsstring): Update.
2594 * linux-thread-db.c (add_thread_db_info)
2595 (thread_db_find_new_threads_silently, check_thread_db_callback)
2596 (try_thread_db_load_1, record_thread): Update.
2597 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2598 Update.
2599 * linux-fork.c (checkpoint_command): Update.
2600 * infrun.c (set_non_stop, set_observer_mode)
2601 (check_multi_target_resumption, for_each_just_stopped_thread)
2602 (maybe_remove_breakpoints, normal_stop)
2603 (class infcall_suspend_state): Update.
2604 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2605 (info_program_command, attach_command): Update.
2606 * infcall.c (call_function_by_hand_dummy): Update.
2607 * inf-loop.c (inferior_event_handler): Update.
2608 * gcore.c (gcore_command, derive_heap_segment): Update.
2609 * exec.c (exec_file_command): Update.
2610 * eval.c (evaluate_subexp): Update.
2611 * compile/compile.c (compile_to_object): Update.
2612 * cli/cli-dump.c (restore_command): Update.
2613 * breakpoint.c (update_watchpoint)
2614 (update_inserted_breakpoint_locations)
2615 (insert_breakpoint_locations, get_bpstat_thread): Update.
2616 * target.h (target_has_execution): Remove macro.
2617 (target_has_execution_current): Don't declare.
2618 (target_has_execution): Rename from target_has_execution_1. Add
2619 argument default.
2620
2621 2020-09-28 Tom Tromey <tom@tromey.com>
2622
2623 * mi/mi-main.c (exec_reverse_continue)
2624 (mi_cmd_list_target_features): Update.
2625 * infrun.c (set_exec_direction_func): Update.
2626 * target.c (default_execution_direction): Update.
2627 * reverse.c (exec_reverse_once): Update.
2628 * target.h (target_can_execute_reverse): Now a function.
2629
2630 2020-09-28 Tom Tromey <tom@tromey.com>
2631
2632 * tui/tui-regs.c (tui_get_register)
2633 (tui_data_window::show_registers): Update.
2634 * thread.c (scoped_restore_current_thread::restore)
2635 (scoped_restore_current_thread::scoped_restore_current_thread):
2636 Update.
2637 * regcache-dump.c (regcache_print): Update.
2638 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2639 Update.
2640 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2641 * mep-tdep.c (current_me_module, current_options): Update.
2642 * linux-thread-db.c (thread_db_load): Update.
2643 * infcmd.c (registers_info, info_vector_command)
2644 (info_float_command): Update.
2645 * ia64-tdep.c (ia64_frame_prev_register)
2646 (ia64_sigtramp_frame_prev_register): Update.
2647 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2648 * gcore.c (derive_stack_segment): Update.
2649 * frame.c (get_current_frame, has_stack_frames): Update.
2650 * findvar.c (language_defn::read_var_value): Update.
2651 * arm-tdep.c (arm_pc_is_thumb): Update.
2652 * target.c (target_has_registers): Rename from
2653 target_has_registers_1.
2654 * target.h (target_has_registers): Remove macro.
2655 (target_has_registers): Rename from target_has_registers_1.
2656
2657 2020-09-28 Tom Tromey <tom@tromey.com>
2658
2659 * windows-tdep.c (tlb_make_value): Update.
2660 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2661 * thread.c (scoped_restore_current_thread::restore)
2662 (scoped_restore_current_thread::scoped_restore_current_thread)
2663 (thread_command): Update.
2664 * stack.c (backtrace_command_1, frame_apply_level_command)
2665 (frame_apply_all_command, frame_apply_command): Update.
2666 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2667 Update.
2668 * gcore.c (derive_stack_segment): Update.
2669 * frame.c (get_current_frame, has_stack_frames): Update.
2670 * auxv.c (info_auxv_command): Update.
2671 * ada-tasks.c (ada_build_task_list): Update.
2672 * target.c (target_has_stack): Rename from target_has_stack_1.
2673 * target.h (target_has_stack): Remove macro.
2674 (target_has_stack): Rename from target_has_stack_1.
2675
2676 2020-09-28 Tom Tromey <tom@tromey.com>
2677
2678 * target.c (target_has_memory): Rename from target_has_memory_1.
2679 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2680 * thread.c (scoped_restore_current_thread::restore)
2681 (scoped_restore_current_thread::scoped_restore_current_thread):
2682 Update.
2683 * frame.c (get_current_frame, has_stack_frames): Update.
2684 * target.h (target_has_memory): Remove macro.
2685 (target_has_memory): Rename from target_has_memory_1.
2686
2687 2020-09-28 Tom Tromey <tom@tromey.com>
2688
2689 * target.c (target_has_all_memory_1): Remove.
2690 * target.h (target_has_all_memory): Remove define.
2691 (target_has_all_memory_1): Don't declare.
2692
2693 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2694
2695 * ser-base.c: Adjust comments formatting.
2696
2697 2020-09-27 Tom Tromey <tom@tromey.com>
2698
2699 PR tui/25342:
2700 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2701
2702 2020-09-27 Tom Tromey <tom@tromey.com>
2703
2704 PR tui/25342:
2705 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2706
2707 2020-09-27 Tom Tromey <tom@tromey.com>
2708
2709 * unittests/tui-selftests.c: Update.
2710 * tui/tui-winsource.h (struct tui_source_window_base)
2711 <extra_margin, show_line_number, refresh_pad>: New methods.
2712 <m_max_length, m_pad>: New members.
2713 (tui_copy_source_line): Update.
2714 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2715 first_col, line_width, ndigits parameters. Add length.
2716 (tui_source_window_base::show_source_line): Write to pad. Line
2717 number now 0-based.
2718 (tui_source_window_base::refresh_pad): New method.
2719 (tui_source_window_base::show_source_content): Write to pad. Call
2720 refresh_pad.
2721 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2722 not refill.
2723 (tui_source_window_base::update_exec_info): Call
2724 show_line_number.
2725 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2726 method.
2727 <m_digits>: New member.
2728 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2729 and m_max_length.
2730 (tui_source_window::show_line_number): New method.
2731 * tui/tui-io.h (tui_puts): Fix comment.
2732 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2733 m_max_length.
2734
2735 2020-09-27 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-winsource.c
2738 (tui_source_window_base::set_is_exec_point_at): Don't call
2739 show_source_line.
2740
2741 2020-09-27 Tom Tromey <tom@tromey.com>
2742
2743 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2744 method.
2745 <erase>: Update.
2746 <cursor_x, cursor_y>: Remove.
2747 <m_inner_window>: New member.
2748 (tui_py_window::rerender): Create inner window.
2749 (tui_py_window::output): Write to inner window.
2750
2751 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2752
2753 PR python/26586
2754 * cli/cli-script.c (execute_control_commands): don't set
2755 instream to nullptr here as this breaks the from_tty argument
2756 to gdb.execute in Python.
2757 (execute_user_command): set instream to nullptr here instead.
2758
2759 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2760
2761 * infrun.h (infrun_debug_printf): Fix formatting.
2762 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2763
2764 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2765
2766 * compile/compile-object-load.h (struct munmap_list): Add
2767 explicitly-defined move constructor.
2768
2769 2020-09-24 Tom Tromey <tromey@adacore.com>
2770
2771 PR tui/26638:
2772 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2773 method.
2774 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2775 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2776 (tui_prev_win): Rewrite.
2777
2778 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2779
2780 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2781 in WOW64 processes as SIGINT.
2782 * nat/windows-nat.h: Make wow64_process a shared variable.
2783 * windows-nat.c: Remove static wow64_process variable.
2784
2785 2020-09-23 Tom Tromey <tom@tromey.com>
2786
2787 PR symtab/25470:
2788 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2789 offset and bit size.
2790 * printcmd.c (print_scalar_formatted): Handle zero-length
2791 integer.
2792 (print_scalar_formatted): Use bit_size_differs_p.
2793 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2794 constant.
2795 (union type_specific): <int_stuff>: New member.
2796 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2797 methods.
2798 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2799 TYPE_SPECIFIC_FIELD.
2800 (recursive_dump_type, copy_type_recursive): Update.
2801 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2802 DW_AT_data_bit_offset.
2803
2804 2020-09-23 Tom Tromey <tom@tromey.com>
2805
2806 * utils.h (class gdb_argv): Add move operators.
2807 <append>: New methods.
2808 * compile/compile.c (build_argc_argv): Remove.
2809 (compile_args_argc): Remove.
2810 (compile_args_argv): Change type.
2811 (set_compile_args): Simplify.
2812 (append_args): Remove.
2813 (filter_args): Remove argcp parameter.
2814 (get_args): Return gdb_argv. Simplify.
2815 (compile_to_object): Update.
2816
2817 2020-09-23 Tom Tromey <tom@tromey.com>
2818
2819 * compile/compile-object-run.c (do_module_cleanup)
2820 <~do_module_cleanup> :Remove.
2821 (do_module_cleanup): Update.
2822 * compile/compile-object-load.h (struct munmap_list): Add move
2823 assignment operator.
2824 <source_file>: Now a std::string.
2825 <munmap_list>: Rename. No longer a pointer.
2826 * compile/compile-object-load.c (struct setup_sections_data): Add
2827 constructor.
2828 <setup_one_section>: Declare.
2829 <munmap_list>: Move earlier.
2830 <m_bfd>: New member.
2831 <m_last_size, m_last_section_first, m_last_prot,
2832 m_last_max_alignment>: Rename, add initializers where needed.
2833 (setup_sections_data::setup_one_section): Rename from
2834 setup_sections. Update.
2835 (compile_object_load): Update. Don't use bfd_map_over_sections.
2836
2837 2020-09-23 Tom Tromey <tom@tromey.com>
2838
2839 * compile/compile-object-run.c (struct do_module_cleanup): Add
2840 parameters to constructor. Update destructor.
2841 <source_file, scope, scope_data, out_value_type, out_value_addr,
2842 munmap_list_head, objfile_name_string>: Remove.
2843 <module>: New member.
2844 (do_module_cleanup): Update.
2845 (compile_object_run): Update.
2846
2847 2020-09-23 Tom Tromey <tom@tromey.com>
2848
2849 * compile/compile.c (eval_compile_command): Update.
2850 * compile/compile-object-run.h (compile_object_run): Take a
2851 compile_module_up.
2852 * compile/compile-object-run.c (compile_object_run): Take a
2853 compile_module_up.
2854 * compile/compile-object-load.h (struct compile_module): Add
2855 constructor, destructor.
2856 (compile_module_up): New typedef.
2857 (compile_object_load): Return compile_object_up.
2858 * compile/compile-object-load.c (compile_object_load): Return
2859 compile_module_up.
2860
2861 2020-09-23 Tom Tromey <tom@tromey.com>
2862
2863 * compile/compile-object-run.c (struct do_module_cleanup): Add
2864 constructor, destructor.
2865 <objfile_name_string>: Don't use struct hack.
2866 (do_module_cleanup): Use delete.
2867 (compile_object_run): Use new.
2868
2869 2020-09-23 Tom Tromey <tom@tromey.com>
2870
2871 * compile/compile-cplus-types.c
2872 (compile_cplus_convert_struct_or_union): Use std::vector.
2873 (compile_cplus_convert_func): Likewise.
2874 * compile/compile-c-types.c (convert_func): Use std::vector.
2875
2876 2020-09-21 Tom Tromey <tromey@adacore.com>
2877
2878 * sparc-tdep.c (sparc32_skip_prologue): Use
2879 skip_prologue_using_sal.
2880
2881 2020-09-19 Tom Tromey <tom@tromey.com>
2882
2883 * symfile.c (add_section_size_callback): Remove.
2884 (load_one_section): Rename from load_section_callback. Change
2885 parameters.
2886 (generic_load): Use foreach.
2887
2888 2020-09-19 Tom Tromey <tom@tromey.com>
2889
2890 * exec.c (add_to_section_table): Remove.
2891 (build_section_table): Use foreach.
2892
2893 2020-09-19 Tom Tromey <tom@tromey.com>
2894
2895 * elfread.c (elf_locate_sections): Change parameters.
2896 (elf_symfile_read): Use foreach.
2897
2898 2020-09-19 Tom Tromey <tom@tromey.com>
2899
2900 * cli/cli-dump.c (struct callback_data): Remove.
2901 (restore_one_section): Rename from restore_section_callback.
2902 Change parameters.
2903 (restore_binary_file): Change parameters.
2904 (restore_command): Use foreach.
2905
2906 2020-09-19 Tom Tromey <tom@tromey.com>
2907
2908 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2909 (gcore_copy_callback): Likewise.
2910 (gcore_memory_sections): Use foreach.
2911
2912 2020-09-19 Tom Tromey <tom@tromey.com>
2913
2914 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2915 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2916 parameters.
2917 (generic_elf_osabi_sniffer): Use foreach.
2918 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2919 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2920
2921 2020-09-19 Tom Tromey <tom@tromey.com>
2922
2923 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2924 (dwarf2_get_dwz_file): Use foreach.
2925 (dwarf2_locate_dwo_sections): Change parameters.
2926 (open_and_init_dwo_file): Use foreach.
2927 (dwarf2_locate_common_dwp_sections): Change parameters.
2928 (open_and_init_dwp_file): Use foreach.
2929
2930 2020-09-19 Tom Tromey <tom@tromey.com>
2931
2932 * symfile.h: (find_lowest_section): Don't declare.
2933 * symfile.c (find_lowest_section): Now static. Change
2934 parameters.
2935 (struct place_section_arg): Remove.
2936 (place_section): Change parameters.
2937 (addr_info_make_relative): Use foreach.
2938 (symfile_dummy_outputs): Remove.
2939 (default_symfile_relocate): Use foreach.
2940
2941 2020-09-19 Tom Tromey <tom@tromey.com>
2942
2943 * objfiles.c (add_to_objfile_sections): Rename from
2944 add_to_objfile_sections_full.
2945 (add_to_objfile_sections): Remove.
2946 (build_objfile_section_table): Use foreach.
2947
2948 2020-09-19 Tom Tromey <tom@tromey.com>
2949
2950 * stap-probe.c (get_stap_base_address_1): Remove.
2951 (get_stap_base_address): Use foreach.
2952
2953 2020-09-19 Tom Tromey <tom@tromey.com>
2954
2955 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2956 parameters.
2957 (gdb_bfd_close_or_warn): Use foreach.
2958
2959 2020-09-19 Tom Tromey <tom@tromey.com>
2960
2961 * corelow.c (add_to_thread_list): Change parameters.
2962 (core_target_open): Use foreach.
2963
2964 2020-09-19 Tom Tromey <tom@tromey.com>
2965
2966 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2967 existing function.
2968
2969 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2972 for arrays.
2973
2974 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * eval.c: Remove 'f-lang.h' include.
2977 (value_f90_subarray): Moved to f-lang.c.
2978 (eval_call): Renamed to...
2979 (evaluate_subexp_do_call): ...this, is no longer static, header
2980 comment moved into header file.
2981 (evaluate_funcall): Update call to eval_call.
2982 (skip_undetermined_arglist): Moved to f-lang.c.
2983 (fortran_value_subarray): Likewise.
2984 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2985 moved to evaluate_subexp_f.
2986 (calc_f77_array_dims): Moved to f-lang.c
2987 * expprint.c (print_subexp_funcall): New function.
2988 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2989 moved to print_subexp_f, OP_FUNCALL uses new function.
2990 (dump_subexp_body_funcall): New function.
2991 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2992 moved to dump_subexp_f, OP_FUNCALL uses new function.
2993 * expression.h (evaluate_subexp_do_call): Declare.
2994 * f-lang.c (value_f90_subarray): Moved from eval.c.
2995 (skip_undetermined_arglist): Likewise.
2996 (calc_f77_array_dims): Likewise.
2997 (fortran_value_subarray): Likewise.
2998 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2999 (operator_length_f): Likewise.
3000 (print_subexp_f): Likewise.
3001 (dump_subexp_body_f): Likewise.
3002 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3003 declaration of this operation to here.
3004 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3005 support moved to operator_length_f.
3006 * parser-defs.h (dump_subexp_body_funcall): Declare.
3007 (print_subexp_funcall): Declare.
3008 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3009 fortran-operator.def.
3010
3011 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * eval.c (fortran_value_subarray): New function, content is taken
3014 from...
3015 (evaluate_subexp_standard): ...here, in two places. Now arrays
3016 and strings both call the new function.
3017 (calc_f77_array_dims): Add header comment, handle strings.
3018
3019 2020-09-18 Victor Collod <vcollod@nvidia.com>
3020
3021 PR gdb/26635
3022 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3023 (i386_analyze_prologue): Call i386_skip_endbr.
3024
3025 2020-09-18 Tom Tromey <tromey@adacore.com>
3026
3027 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3028 (windows_nat_target::wait): Update.
3029 * target/wait.h (enum target_wait_flag): New. Use
3030 DEF_ENUM_FLAGS_TYPE.
3031 * target/target.h (target_wait): Change type of options.
3032 * target.h (target_options_to_string, default_target_wait):
3033 Update.
3034 (struct target_ops) <wait>: Change type of options.
3035 * target.c (target_wait, default_target_wait, do_option): Change
3036 type of "options".
3037 (target_options_to_string): Likewise.
3038 * target-delegates.c: Rebuild.
3039 * target-debug.h (target_debug_print_target_wait_flags): Rename
3040 from target_debug_print_options.
3041 * sol-thread.c (class sol_thread_target) <wait>: Update.
3042 (sol_thread_target::wait): Update.
3043 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3044 (rs6000_nat_target::wait): Update.
3045 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3046 Update.
3047 (remote_target::wait_ns, remote_target::wait_as): Change type of
3048 "options".
3049 (remote_target::wait): Update.
3050 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3051 (gdbsim_target::wait): Update.
3052 * record-full.c (class record_full_base_target) <wait>: Update.
3053 (record_full_wait_1): Change type of "options".
3054 (record_full_base_target::wait): Update.
3055 * record-btrace.c (class record_btrace_target) <wait>: Update.
3056 (record_btrace_target::wait): Update.
3057 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3058 Update.
3059 (ravenscar_thread_target::wait): Update.
3060 * procfs.c (class procfs_target) <wait>: Update.
3061 (procfs_target::wait): Update.
3062 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3063 * obsd-nat.c (obsd_nat_target::wait): Update.
3064 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3065 (nto_procfs_target::wait): Update.
3066 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3067 * nbsd-nat.c (nbsd_wait): Change type of "options".
3068 (nbsd_nat_target::wait): Update.
3069 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3070 (thread_db_target::wait): Update.
3071 * linux-nat.h (class linux_nat_target) <wait>: Update.
3072 * linux-nat.c (linux_nat_target::wait): Update.
3073 (linux_nat_wait_1): Update.
3074 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3075 "options".
3076 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3077 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3078 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3079 (go32_nat_target::wait): Update.
3080 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3081 * gnu-nat.c (gnu_nat_target::wait): Update.
3082 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3083 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3084 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3085 * darwin-nat.c (darwin_nat_target::wait): Update.
3086 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3087 (bsd_uthread_target::wait): Update.
3088 * aix-thread.c (class aix_thread_target) <wait>: Update.
3089 (aix_thread_target::wait): Update.
3090
3091 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * compile/compile-object-run.c (create_copied_type_recursive): New
3094 function.
3095 (compile_object_run): Use new function.
3096
3097 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3098
3099 * NEWS: Mention x86_64 Cygwin core file support.
3100
3101 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3102
3103 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3104 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3105
3106 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3107
3108 * windows-tdep.h: Add prototypes.
3109 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3110 (i386_windows_core_pid_to_str): Move and rename ...
3111 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3112 (windows_core_pid_to_str): ... and here.
3113 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3114
3115 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3116 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3117 (amd64_windows_init_abi_common): ... and register.
3118
3119 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3120
3121 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3122 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3123
3124 2020-09-18 Pedro Alves <pedro@palves.net>
3125
3126 PR gdb/26631
3127 * thread.c (thread_find_command): Switch inferior before calling
3128 target methods.
3129
3130 2020-09-17 Tom Tromey <tromey@adacore.com>
3131
3132 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3133 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3134 (tdesc_arch_data_up): New typedef.
3135 (tdesc_use_registers, tdesc_data_alloc): Update.
3136 (tdesc_data_cleanup): Don't declare.
3137 * target-descriptions.c (tdesc_data_alloc): Return a
3138 tdesc_arch_data_up.
3139 (tdesc_arch_data_deleter::operator()): Rename from
3140 tdesc_data_cleanup. Change argument type.
3141 (tdesc_use_registers): Change early_data to an rvalue reference.
3142 (tdesc_use_registers): Don't use delete.
3143 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3144 * s390-tdep.c (s390_gdbarch_init): Update.
3145 * rx-tdep.c (rx_gdbarch_init): Update.
3146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3147 * riscv-tdep.c (riscv_gdbarch_init): Update.
3148 * or1k-tdep.c (or1k_gdbarch_init): Update.
3149 * nios2-tdep.c (nios2_gdbarch_init): Update.
3150 * nds32-tdep.c (nds32_gdbarch_init): Update.
3151 * mips-tdep.c (mips_gdbarch_init): Update.
3152 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3153 * m68k-tdep.c (m68k_gdbarch_init): Update.
3154 * i386-tdep.c (i386_gdbarch_init): Update.
3155 * arm-tdep.c (arm_gdbarch_init): Update.
3156 * arc-tdep.c (arc_tdesc_init): Update.
3157 (arc_gdbarch_init): Update.
3158 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3159
3160 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3161
3162 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3163 for WOW64 processes.
3164
3165 2020-09-17 Tom Tromey <tom@tromey.com>
3166
3167 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3168
3169 2020-09-17 Tom Tromey <tom@tromey.com>
3170
3171 * value.c (preserve_values): Update.
3172 * python/py-type.c (save_objfile_types): Update.
3173 * guile/scm-type.c (save_objfile_types): Update.
3174 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3175 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3176 * compile/compile-object-run.c (compile_object_run): Update.
3177
3178 2020-09-17 Tom Tromey <tom@tromey.com>
3179
3180 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3181 Remove.
3182 <m_table>: Now htab_up.
3183 * typeprint.c (typedef_hash_table::recursively_update)
3184 (typedef_hash_table::add_template_parameters)
3185 (typedef_hash_table::typedef_hash_table): Update.
3186 (typedef_hash_table::~typedef_hash_table): Remove.
3187 (typedef_hash_table::typedef_hash_table)
3188 (typedef_hash_table::find_global_typedef)
3189 (typedef_hash_table::find_typedef): Update.
3190
3191 2020-09-17 Tom Tromey <tom@tromey.com>
3192
3193 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3194
3195 2020-09-17 Tom Tromey <tom@tromey.com>
3196
3197 * linespec.c (class decode_compound_collector)
3198 <~decode_compound_collector>: Remove.
3199 <m_unique_syms>: Now htab_up.
3200 (decode_compound_collector::operator ()): Update.
3201 (class symtab_collector) <~symtab_collector>: Remove.
3202 <m_symtab_table>: Now htab_up.
3203 (symtab_collector::operator ()): Update.
3204
3205 2020-09-17 Tom Tromey <tom@tromey.com>
3206
3207 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3208 (filename_seen_cache::clear): Update.
3209 (~filename_seen_cache): Remove.
3210 (filename_seen_cache::seen): Update.
3211 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3212 htab_up.
3213 <~filename_seen_cache>: Remove.
3214 <traverse>: Update.
3215
3216 2020-09-17 Tom Tromey <tom@tromey.com>
3217
3218 * completer.c (completion_tracker::discard_completions)
3219 (completion_tracker::~completion_tracker)
3220 (completion_tracker::maybe_add_completion)
3221 (completion_tracker::remove_completion)
3222 (completion_tracker::recompute_lowest_common_denominator)
3223 (completion_tracker::build_completion_result): Update.
3224 * completer.h (class completion_tracker) <have_completions>:
3225 Update.
3226 <m_entries_hash>: Now htab_up.
3227
3228 2020-09-17 Tom Tromey <tom@tromey.com>
3229
3230 * breakpoint.c (ambiguous_names_p): Use htab_up.
3231
3232 2020-09-17 Tom Tromey <tom@tromey.com>
3233
3234 * auto-load.c (struct auto_load_pspace_info)
3235 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3236 <loaded_script_files, loaded_script_texts>: Change type to
3237 htab_up.
3238 (~auto_load_pspace_info) Remove.
3239 (init_loaded_scripts_info, maybe_add_script_file)
3240 (maybe_add_script_text, auto_load_info_scripts): Update.
3241
3242 2020-09-17 Tom Tromey <tromey@adacore.com>
3243
3244 * c-exp.y (name_obstack): Now static.
3245
3246 2020-09-17 Chungyi Chi <demonic@csie.io>
3247
3248 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3249
3250 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3253 (add_solib_catchpoint): Likewise.
3254 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3255 to bool.
3256 (add_solib_catchpoint): Change int parameter/variable to bool.
3257 (catch_load_or_unload): Likewise.
3258 (init_catchpoint): Likewise.
3259 (create_fork_vfork_event_catchpoint): Likewise.
3260 (catch_fork_command_1): Likewise.
3261 (catch_exec_command_1): Likewise.
3262
3263 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3266 Change instance_flags to m_instance_flags.
3267
3268 2020-09-16 Tom Tromey <tromey@adacore.com>
3269
3270 PR gdb/26598:
3271 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3272
3273 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3274
3275 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3276 PL_FLAG_EXEC.
3277 (fbsd_nat_target::insert_exec_catchpoint)
3278 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3279 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3280 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3281
3282 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3283
3284 * configure.ac: Remove check for kinfo_getvmmap().
3285 * configure, config.in: Regenerate.
3286 * fbsd-nat.c (fbsd_read_mapping): Remove
3287 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3288 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3289 kinfo_get_vmmap() are always present.
3290
3291 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3292
3293 * fbsd-nat.c: Always include support for
3294 TARGET_OBJECT_SIGNAL_INFO.
3295
3296 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3297
3298 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3299 sysctl and remove procfs fallback.
3300
3301 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3302
3303 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3304 * fbsd-nat.h: Likewise.
3305
3306 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307
3308 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3309 argument.
3310
3311 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * ada-lang.c (ada_language_data): Delete.
3314 (ada_language): Remove references to ada_language_data.
3315 * c-lang.c (c_language_data): Delete.
3316 (c_language): Remove references to c_language_data.
3317 (cplus_language_data): Delete.
3318 (cplus_language): Remove references to cplus_language_data.
3319 (asm_language_data): Delete.
3320 (asm_language): Remove references to asm_language_data.
3321 (minimal_language_data): Delete.
3322 (minimal_language): Remove references to minimal_language_data.
3323 * d-lang.c (d_language_data): Delete.
3324 (d_language): Remove references to d_language_data.
3325 * f-lang.c (f_language_data): Delete.
3326 (f_language): Remove references to f_language_data.
3327 * go-lang.c (go_language_data): Delete.
3328 (go_language): Remove references to go_language_data.
3329 * language.c (unknown_language_data): Delete.
3330 (unknown_language): Remove references to unknown_language_data.
3331 (auto_language_data): Delete.
3332 (auto_language): Remove references to auto_language_data.
3333 * language.h (language_data): Delete struct.
3334 (language_defn): No longer inherit from language_data.
3335 * m2-lang.c (m2_language_data): Delete.
3336 (m2_language): Remove references to m2_language_data.
3337 * objc-lang.c (objc_language_data): Delete.
3338 (objc_language): Remove references to objc_language_data.
3339 * opencl-lang.c (opencl_language_data): Delete.
3340 (opencl_language): Remove references to opencl_language_data.
3341 * p-lang.c (pascal_language_data): Delete.
3342 (pascal_language): Remove references to pascal_language_data.
3343 * rust-lang.c (rust_language_data): Delete.
3344 (rust_language): Remove references to rust_language_data.
3345
3346 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3347
3348 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3349 initializer.
3350 (ada_language::opcode_print_table): New member function.
3351 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3352 (c_language::opcode_print_table): New member function.
3353 (cplus_language_data): Remove la_op_print_tab initializer.
3354 (cplus_language::opcode_print_table): New member function.
3355 (asm_language_data): Remove la_op_print_tab initializer.
3356 (asm_language::opcode_print_table): New member function.
3357 (minimal_language_data): Remove la_op_print_tab initializer.
3358 (minimal_language::opcode_print_table): New member function.
3359 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3360 (d_language::opcode_print_table): New member function.
3361 * expprint.c (print_subexp_standard): Update call to
3362 opcode_print_table.
3363 (op_string): Likewise.
3364 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3365 (f_language::opcode_print_table): New member function.
3366 * go-lang.c (go_language_data): Remove la_op_print_tab
3367 initializer.
3368 (go_language::opcode_print_table): New member function.
3369 * language.c (unknown_language_data): Remove la_op_print_tab
3370 initializer.
3371 (unknown_language::opcode_print_table): New member function.
3372 (auto_language_data): Remove la_op_print_tab initializer.
3373 (auto_language::opcode_print_table): New member function.
3374 * language.h (language_data): Remove la_op_print_tab field.
3375 (language_defn::opcode_print_table): Declare new member function.
3376 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3377 initializer.
3378 (m2_language::opcode_print_table): New member function.
3379 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3380 initializer.
3381 (objc_language::opcode_print_table): New member function.
3382 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3383 initializer.
3384 (opencl_language::opcode_print_table): New member function.
3385 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3386 initializer.
3387 (pascal_language::opcode_print_table): New member function.
3388 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3389 initializer.
3390 (rust_language::opcode_print_table): New member function.
3391
3392 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3395 (ada_language::expression_ops): New member function.
3396 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3397 (c_language::expression_ops): New member function.
3398 (cplus_language_data): Remove la_exp_desc initializer.
3399 (cplus_language::expression_ops): New member function.
3400 (asm_language_data): Remove la_exp_desc initializer.
3401 (asm_language::expression_ops): New member function.
3402 (minimal_language_data): Remove la_exp_desc initializer.
3403 (minimal_language::expression_ops): New member function.
3404 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3405 (d_language::expression_ops): New member function.
3406 * eval.c (evaluate_subexp): Update call to expression_ops.
3407 * expprint.c (print_subexp): Likewise.
3408 (op_name): Likewise.
3409 (dump_subexp_body): Likewise.
3410 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3411 (f_language::expression_ops): New member function.
3412 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3413 (go_language::expression_ops): New member function.
3414 * language.c (language_defn::expression_ops): New function.
3415 (unknown_language_data): Remove la_exp_desc initializer.
3416 (auto_language_data): Likewise.
3417 * language.h (language_data): Remove la_exp_desc field.
3418 (language_defn::expression_ops): Declare new member function.
3419 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3420 (m2_language::expression_ops): New member function.
3421 * objc-lang.c (objc_language_data): Remove la_exp_desc
3422 initializer.
3423 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3424 initializer.
3425 (opencl_language::expression_ops): New member function.
3426 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3427 * parse.c (operator_length): Update call to expression_ops.
3428 (exp_iterate): Likewise.
3429 * rust-lang.c (rust_language_data): Remove la_exp_desc
3430 initializer.
3431 (ruse_language::expression_ops): New member function.
3432
3433 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3436 initializer.
3437 (ada_language::varobj_ops): New member function.
3438 * c-lang.c (c_language_data): Remove la_varobj_ops
3439 initializer.
3440 (cplus_language_data): Likewise.
3441 (cplus_language::varobj_ops): New member function.
3442 (asm_language_data): Remove la_varobj_ops initializer.
3443 (minimal_language_data): Likewise.
3444 * d-lang.c (d_language_data): Likewise.
3445 * f-lang.c (f_language_data): Likewise.
3446 * go-lang.c (go_language_data): Likewise.
3447 * language.c (language_defn::varobj_ops): New function.
3448 (unknown_language_data): Remove la_varobj_ops
3449 initializer.
3450 (auto_language_data): Likewise.
3451 * language.h (language_data): Remove la_varobj_ops field.
3452 (language_defn::varobj_ops): Declare new member function.
3453 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3454 * objc-lang.c (objc_language_data): Likewise.
3455 * opencl-lang.c (opencl_language_data): Likewise.
3456 * p-lang.c (pascal_language_data): Likewise.
3457 * rust-lang.c (rust_language_data): Likewise.
3458 * varobj.c (varobj_create): Update call to varobj_ops.
3459 * varobj.h (default_varobj_ops): Delete define.
3460
3461 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3464 initializer.
3465 * c-lang.c (c_language_data): Likewise.
3466 (c_language::macro_expansion): New member function.
3467 (cplus_language_data): Likewise.
3468 (cplus_language::macro_expansion): New member function.
3469 (asm_language_data): Likewise.
3470 (asm_language::macro_expansion): New member function.
3471 (minimal_language_data): Likewise.
3472 (minimal_language::macro_expansion): New member function.
3473 * d-lang.c (d_language_data): Remove la_macro_expansion
3474 initializer.
3475 * f-lang.c (f_language_data): Likewise.
3476 * go-lang.c (go_language_data): Likewise.
3477 * language.c (unknown_language_data): Likewise.
3478 (auto_language_data): Likewise.
3479 * language.h (language_data): Remove la_macro_expansion field.
3480 (language_defn::macro_expansion): New member function.
3481 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3482 initializer.
3483 * objc-lang.c (objc_language_data): Likewise.
3484 (objc_language::macro_expansion): New member function.
3485 * opencl-lang.c (opencl_language_data): Likewise.
3486 (opencl_language::macro_expansion): New member function.
3487 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3488 initializer.
3489 * rust-lang.c (rust_language_data): Likewise.
3490 * symtab.c (default_collect_symbol_completion_matches_break_on):
3491 Update call to macro_expansion.
3492
3493 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * ada-lang.c (ada_language_data): Remove la_array_ordering
3496 initializer.
3497 * c-lang.c (c_language_data): Likewise.
3498 (cplus_language_data): Likewise.
3499 (asm_language_data): Likewise.
3500 (minimal_language_data): Likewise.
3501 * d-lang.c (d_language_data): Likewise.
3502 * dwarf2/read.c (read_array_order): Update for call to
3503 array_ordering.
3504 * f-lang.c (f_language_data): Remove la_array_ordering
3505 initializer.
3506 (f_language::array_ordering): New member function.
3507 * go-lang.c (go_language_data): Remove la_array_ordering
3508 initializer.
3509 * language.c (unknown_language_data): Likewise.
3510 (auto_language_data): Likewise.
3511 * language.h (language_data): Delete la_array_ordering field.
3512 (language_defn::array_ordering): New member function.
3513 * m2-lang.c (m2_language_data): Remove la_array_ordering
3514 initializer.
3515 * objc-lang.c (objc_language_data): Likewise.
3516 * opencl-lang.c (opencl_language_data): Likewise.
3517 * p-lang.c (pascal_language_data): Likewise.
3518 * rust-lang.c (rust_language_data): Likewise.
3519
3520 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3521
3522 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3523 initializer.
3524 * c-lang.c (c_language_data): Likewise.
3525 (cplus_language_data): Likewise.
3526 (asm_language_data): Likewise.
3527 (minimal_language_data): Likewise.
3528 * d-lang.c (d_language_data): Likewise.
3529 * f-lang.c (f_language_data): Likewise.
3530 (f_language::case_sensitivity): New member function.
3531 * go-lang.c (go_language_data): Remove la_case_sensitivity
3532 initializer.
3533 * language.c (enum case_mode): Moved here from language.h.
3534 (case_mode): Make static.
3535 (show_case_command): Update for case_sensitivity being a method.
3536 (set_case_command): Likewise.
3537 (set_range_case): Likewise.
3538 (unknown_language_data): Remove la_case_sensitivity initializer.
3539 (auto_language_data): Likewise.
3540 * language.h (case_mode): Delete, move enum declaration to
3541 language.c.
3542 (language_data): Delete la_case_sensitivity field.
3543 (language_defn::case_sensitivity): New member function.
3544 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3545 initializer.
3546 * objc-lang.c (objc_language_data): Likewise.
3547 * opencl-lang.c (opencl_language_data): Likewise.
3548 * p-lang.c (pascal_language_data): Likewise.
3549 * rust-lang.c (rust_language_data): Likewise.
3550
3551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_language_data): Remove la_range_check
3554 initializer.
3555 * c-lang.c (c_language_data): Likewise.
3556 (cplus_language_data): Likewise.
3557 (asm_language_data): Likewise.
3558 (minimal_language_data): Likewise.
3559 * d-lang.c (d_language_data): Likewise.
3560 * f-lang.c (f_language_data): Likewise.
3561 (f_language::range_checking_on_by_default): New member function.
3562 * go-lang.c (go_language_data): Remove la_range_check initializer.
3563 * language.c (enum range_mode): Moved here from language.h.
3564 (range_mode): Made static.
3565 (show_range_command): Update to use
3566 range_checking_on_by_default.
3567 (set_range_command): Likewise.
3568 (set_range_case): Likewise.
3569 (unknown_language_data): Remove la_range_check initializer.
3570 (auto_language_data): Likewise.
3571 * language.h (range_mode): Delete. Enum definition moved to
3572 language.c.
3573 (language_data): Remove la_range_check field.
3574 (language_defn::range_checking_on_by_default): New member
3575 function.
3576 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3577 (m2_language::range_checking_on_by_default): New member function.
3578 * objc-lang.c (objc_language_data): Remove la_range_check
3579 initializer.
3580 * opencl-lang.c (opencl_language_data): Likewise.
3581 * p-lang.c (pascal_language_data): Likewise.
3582 (pascal_language::range_checking_on_by_default): New member
3583 function.
3584 * rust-lang.c (rust_language_data): Remove la_range_check
3585 initializer.
3586 (rust_language::range_checking_on_by_default): New member
3587 function.
3588
3589 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * dwarf2/read.c (dwarf2_physname): Remove special case for
3592 language_go.
3593 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3594 member function.
3595
3596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * ada-lang.c (ada_language_data): Remove
3599 la_store_sym_names_in_linkage_form_p initializer.
3600 (ada_language::store_sym_names_in_linkage_form_p): New member
3601 function.
3602 * c-lang.c (c_language_data): Remove
3603 la_store_sym_names_in_linkage_form_p initializer.
3604 (c_language::store_sym_names_in_linkage_form_p): New member
3605 function.
3606 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3607 initializer.
3608 (asm_language_data): Likewise.
3609 (asm_language::store_sym_names_in_linkage_form_p): New member
3610 function.
3611 (minimal_language_data): Remove
3612 la_store_sym_names_in_linkage_form_p initializer.
3613 (minimal_language::store_sym_names_in_linkage_form_p): New member
3614 function.
3615 * d-lang.c (d_language_data): Remove
3616 la_store_sym_names_in_linkage_form_p initializer.
3617 * dwarf2/read.c (dwarf2_physname): Update call to
3618 store_sym_names_in_linkage_form_p.
3619 * f-lang.c (f_language_data): Remove
3620 la_store_sym_names_in_linkage_form_p initializer.
3621 * go-lang.c (go_language_data): Remove
3622 la_store_sym_names_in_linkage_form_p initializer.
3623 * language.c (unknown_language_data): Remove
3624 la_store_sym_names_in_linkage_form_p initializer.
3625 (unknown_language::store_sym_names_in_linkage_form_p): New member
3626 function.
3627 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3628 initializer.
3629 (auto_language::store_sym_names_in_linkage_form_p): New member
3630 function.
3631 * language.h (language_data): Remove
3632 la_store_sym_names_in_linkage_form_p member variable.
3633 (language_defn::store_sym_names_in_linkage_form_p): New member
3634 function.
3635 * m2-lang.c (m2_language_data): Remove
3636 la_store_sym_names_in_linkage_form_p initializer.
3637 * objc-lang.c (objc_language_data): Likewise.
3638 * opencl-lang.c (opencl_language_data): Likewise.
3639 * p-lang.c (pascal_language_data): Likewise.
3640 * rust-lang.c (rust_language_data): Likewise.
3641
3642 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3643
3644 * ada-lang.c (ada_language_data): Remove string_lower_bound
3645 initializer.
3646 * c-lang.c (c_language_data): Likewise.
3647 (cplus_language_data): Likewise.
3648 (asm_language_data): Likewise.
3649 (minimal_language_data): Likewise.
3650 * d-lang.c (d_language_data): Likewise.
3651 * f-lang.c (f_language_data): Likewise.
3652 * go-lang.c (go_language_data): Likewise.
3653 * language.c (unknown_language_data): Likewise.
3654 (auto_language_data): Likewise.
3655 * language.h (language_data): Remove string_lower_bound field.
3656 (language_defn::string_lower_bound): New member function.
3657 * m2-lang.c (m2_language_data): Remove string_lower_bound
3658 initializer.
3659 (m2_language::string_lower_bound): New member function.
3660 * objc-lang.c (objc_language_data): Remove string_lower_bound
3661 initializer.
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * rust-lang.c (rust_language_data): Likewise.
3665 * valops.c (value_cstring): Update call to string_lower_bound.
3666 (value_string): Likewise.
3667 * value.c (allocate_repeated_value): Likewise.
3668
3669 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * valops.c (value_repeat): Fix incorrect argument name in comment.
3672
3673 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_language_data): Remove c_style_arrays
3676 initializer.
3677 (ada_language::c_style_arrays_p): New member fuction.
3678 * c-lang.c (c_language_data): Remove c_style_arrays
3679 initializer.
3680 (cplus_language_data): Likewise.
3681 (asm_language_data): Likewise.
3682 (minimal_language_data): Likewise.
3683 * d-lang.c (d_language_data): Likewise.
3684 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3685 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3686 (f_language::c_style_arrays_p): New member function.
3687 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3688 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3689 * language.c (unknown_language_data): Remove c_style_arrays
3690 initializer.
3691 (auto_language_data): Likewise.
3692 * language.h (language_data): Remove c_style_arrays field.
3693 (language_defn::c_style_arrays_p): New member function.
3694 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3695 (m2_language::c_style_arrays_p): New member function.
3696 * objc-lang.c (objc_language_data): Remove c_style_arrays
3697 initializer.
3698 * opencl-lang.c (opencl_language_data): Likewise.
3699 * p-lang.c (pascal_language_data): Likewise.
3700 * rust-lang.c (rust_language_data): Likewise.
3701 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3702 and update local variable to a bool.
3703 * valops.c (value_cast): Update call to c_style_arrays_p.
3704 (value_array): Likewise.
3705 * value.c (coerce_array): Likewise.
3706
3707 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * ada-lang.c (ada_language_data): Remove la_language initializer.
3710 * c-lang.c (c_language_data): Likewise.
3711 (cplus_language_data): Likewise.
3712 (asm_language_data): Likewise.
3713 (minimal_language_data): Likewise.
3714 * d-lang.c (d_language_data): Likewise.
3715 * f-lang.c (f_language_data): Likewise.
3716 * go-lang.c (go_language_data): Likewise.
3717 * language.c (unknown_language_data): Likewise.
3718 (auto_language_data): Likewise.
3719 * language.h (language_data): Remove la_language field.
3720 (language_defn::language_defn): Initialise la_language field.
3721 (language_defn::la_language): New member variable.
3722 * m2-lang.c (m2_language_data): Remove la_language field.
3723 * objc-lang.c (objc_language_data): Likewise.
3724 * opencl-lang.c (opencl_language_data): Likewise.
3725 * p-lang.c (pascal_language_data): Likewise.
3726 * rust-lang.c (rust_language_data): Likewise.
3727
3728 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * ada-lang.c (ada_extensions): Delete, moved into
3731 ada_language::filename_extensions.
3732 (ada_language_data): Remove la_filename_extensions initializer.
3733 (ada_language::filename_extensions): New member function.
3734 * c-lang.c (c_extensions): Delete, moved into
3735 c_language::filename_extensions.
3736 (c_language_data): Remove la_filename_extensions initializer.
3737 (c_language::filename_extensions): New member function.
3738 (cplus_extensions): Delete, moved into
3739 cplus_language::filename_extensions.
3740 (cplus_language_data): Remove la_filename_extensions initializer.
3741 (cplus_language::filename_extensions): New member function.
3742 (asm_extensions): Delete, moved into
3743 asm_language::filename_extensions.
3744 (asm_language_data): Remove la_filename_extensions initializer.
3745 (asm_language::filename_extensions): New member function.
3746 (minimal_language_data): Remove la_filename_extensions
3747 initializer.
3748 * d-lang.c (d_extensions): Delete, moved into
3749 d_language::filename_extensions.
3750 (d_language_data): Remove la_filename_extensions initializer.
3751 (d_language::filename_extensions): New member function.
3752 * f-lang.c (f_extensions): Delete, moved into
3753 f_language::filename_extensions.
3754 (f_language_data): Remove la_filename_extensions initializer.
3755 (f_language::filename_extensions): New member function.
3756 * go-lang.c (go_language_data): Remove la_filename_extensions
3757 initializer.
3758 * language.c (add_set_language_command): Update now that
3759 filename_extensions returns a vector.
3760 (unknown_language_data): Remove la_filename_extensions
3761 initializer.
3762 (auto_language_data): Likewise.
3763 * language.h (language_data): Remove la_filename_extensions field.
3764 (language_defn::filename_extensions): New member function.
3765 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3766 initializer.
3767 * objc-lang.c (objc_extensions): Delete, moved into
3768 objc_language::filename_extensions.
3769 (objc_language_data): Remove la_filename_extensions initializer.
3770 (objc_language::filename_extensions): New member function.
3771 * opencl-lang.c (opencl_language_data): Remove
3772 la_filename_extensions initializer.
3773 * p-lang.c (pascal_extensions): Delete, moved into
3774 pascal_language::filename_extensions.
3775 (pascal_language_data): Remove la_filename_extensions initializer.
3776 (pascal_language::filename_extensions): New member function.
3777 * rust-lang.c (rust_extensions): Delete, moved into
3778 rust_language::filename_extensions.
3779 (rust_language_data): Remove la_filename_extensions initializer.
3780 (rust_language::filename_extensions): New member function.
3781 * symfile.c (add_filename_language): Add new assert.
3782
3783 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * ada-lang.c (ada_language_data): Remove la_name and
3786 la_natural_name initializers.
3787 (ada_language::name): New member function.
3788 (ada_language::natural_name): New member function.
3789 * c-lang.c (c_language_data): Remove la_name and
3790 la_natural_name initializers.
3791 (c_language::name): New member function.
3792 (c_language::natural_name): New member function.
3793 (cplus_language_data): Remove la_name and
3794 la_natural_name initializers.
3795 (cplus_language::name): New member function.
3796 (cplus_language::natural_name): New member function.
3797 (asm_language_data): Remove la_name and
3798 la_natural_name initializers.
3799 (asm_language::name): New member function.
3800 (asm_language::natural_name): New member function.
3801 (minimal_language_data): Remove la_name and
3802 la_natural_name initializers.
3803 (minimal_language::name): New member function.
3804 (minimal_language::natural_name): New member function.
3805 * compile/compile.c (compile_to_object): Update call to
3806 lanugage_defn::name.
3807 * d-lang.c (d_language_data): Remove la_name and
3808 la_natural_name initializers.
3809 (d_language::name): New member function.
3810 (d_language::natural_name): New member function.
3811 * expprint.c (print_subexp_standard): Update call to
3812 language_defn::name.
3813 (dump_raw_expression): Likewise
3814 (dump_prefix_expression): Likewise.
3815 * f-lang.c (f_language_data): Remove la_name and
3816 la_natural_name initializers.
3817 (f_language::name): New member function.
3818 (f_language::natural_name): New member function.
3819 * go-lang.c (go_language_data): Remove la_name and
3820 la_natural_name initializers.
3821 (go_language::name): New member function.
3822 (go_language::natural_name): New member function.
3823 * language.c (show_language_command): Update call to
3824 language_defn::name.
3825 (set_language_command): Likewise.
3826 (language_enum): Likewise.
3827 (language_str): Likewise.
3828 (add_set_language_command): Likewise, use
3829 language_defn::natural_name in the doc string.
3830 (unknown_language_data): Remove la_name and
3831 la_natural_name initializers.
3832 (unknown_language::name): New member function.
3833 (unknown_language::natural_name): New member function.
3834 (auto_language_data): Remove la_name and
3835 la_natural_name initializers.
3836 (auto_language::name): New member function.
3837 (auto_language::natural_name): New member function.
3838 (language_lookup_primitive_type_as_symbol): Update call to
3839 language_defn::name.
3840 * language.h (language_data): Remove la_name and la_natural_name
3841 member variables.
3842 (language_defn::name): New member function.
3843 (language_defn::natural_name): New member function.
3844 * m2-lang.c (m2_language_data): Remove la_name and
3845 la_natural_name initializers.
3846 (m2_language::name): New member function.
3847 (m2_language::natural_name): New member function.
3848 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3849 language_defn::natural_name.
3850 * objc-lang.c (objc_language_data): Remove la_name and
3851 la_natural_name initializers.
3852 (objc_language::name): New member function.
3853 (objc_language::natural_name): New member function.
3854 * opencl-lang.c (opencl_language_data): Remove la_name and
3855 la_natural_name initializers.
3856 (opencl_language::name): New member function.
3857 (opencl_language::natural_name): New member function.
3858 * p-lang.c (pascal_language_data): Remove la_name and
3859 la_natural_name initializers.
3860 (pascal_language::name): New member function.
3861 (pascal_language::natural_name): New member function.
3862 * rust-lang.c (rust_language_data): Remove la_name and
3863 la_natural_name initializers.
3864 (rust_language::name): New member function.
3865 (rust_language::natural_name): New member function.
3866 * symtab.c (lookup_language_this): Update call to
3867 language_defn::name.
3868
3869 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * ada-lang.c (ada_language_data): Remove la_name_of_this
3872 initializer.
3873 * ax-gdb.c (gen_expr): Update call to name_of_this.
3874 * c-exp.y (classify_name): Likewise.
3875 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3876 (cplus_language_data): Likewise.
3877 (cplus_language::name_of_this): New member function.
3878 (asm_language_data): Remove la_name_of_this initializer.
3879 (minimal_language_data): Likewise.
3880 * d-lang.c (d_language_data): Likewise.
3881 (d_language::name_of_this): New member function.
3882 * expprint.c (print_subexp_standard): Update call to name_of_this.
3883 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3884 * go-lang.c (go_language_data): Likewise.
3885 * language.c (unknown_language_data): Likewise.
3886 (unknown_language::name_of_this): New member function.
3887 (auto_language_data): Remove la_name_of_this initializer.
3888 (auto_language::name_of_this): New member function.
3889 * language.h (language_data): Delete la_name_of_this member
3890 variable.
3891 (language_defn::name_of_this): New member function.
3892 * m2-lang.c (m2_language_data): Remove la_name_of_this
3893 initializer.
3894 * objc-lang.c (objc_language_data): Likewise.
3895 (objc_language::name_of_this): New member function.
3896 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3897 initializer.
3898 * p-lang.c (pascal_language_data): Likewise.
3899 (pascal_language::name_of_this): New member function.
3900 * rust-lang.c (rust_language_data): Remove la_name_of_this
3901 initializer.
3902 * symtab.c (lookup_language_this): Update call to name_of_this.
3903 (lookup_symbol_aux): Likewise.
3904 * valops.c (value_of_this): Likewise.
3905
3906 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * ada-lang.c (ada_language_data): Remove
3909 la_struct_too_deep_ellipsis initializer.
3910 (ada_language::struct_too_deep_ellipsis): New member function.
3911 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3912 initializer.
3913 (cplus_language_data): Likewise.
3914 (asm_language_data): Likewise.
3915 (minimal_language_data): Likewise.
3916 * cp-valprint.c (cp_print_value): Update call to
3917 struct_too_deep_ellipsis.
3918 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3919 initializer.
3920 * f-lang.c (f_language_data): Likewise.
3921 (f_language::struct_too_deep_ellipsis): New member function.
3922 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3923 initializer.
3924 * language.c (unknown_language_data): Likewise.
3925 (auto_language_data): Likewise.
3926 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3927 member variable.
3928 (language_defn::struct_too_deep_ellipsis): New member function.
3929 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3930 initializer.Q
3931 * objc-lang.c (objc_language_data): Likewise.
3932 * opencl-lang.c (opencl_language_data): Likewise.
3933 * p-lang.c (pascal_language_data): Likewise.
3934 * rust-lang.c (rust_language_data): Likewise.
3935 * valprint.c (val_print_check_max_depth): Update call to
3936 struct_too_deep_ellipsis.
3937
3938 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3939
3940 * MAINTAINERS (Write After Approval): Add myself.
3941
3942 2020-09-15 Tom Tromey <tom@tromey.com>
3943
3944 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3945 Remove.
3946
3947 2020-09-15 Tom Tromey <tom@tromey.com>
3948
3949 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3950 and TYPE_CODE_METHODPTR cases.
3951 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3952 (c_value_print_inner): Update.
3953 * valprint.c (generic_value_print_memberptr): New function, from
3954 c_value_print_memberptr.
3955 (generic_value_print): Use it. Call cplus_print_method_ptr.
3956
3957 2020-09-15 Tom Tromey <tromey@adacore.com>
3958
3959 * python/python-internal.h (PyInt_FromLong): Remove define.
3960 * python/py-value.c (convert_value_from_python): Use
3961 gdb_py_object_from_longest.
3962 * python/py-type.c (typy_get_code): Use
3963 gdb_py_object_from_longest.
3964 * python/py-symtab.c (salpy_get_line): Use
3965 gdb_py_object_from_longest.
3966 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3967 gdb_py_object_from_longest.
3968 * python/py-record.c (recpy_gap_reason_code): Use
3969 gdb_py_object_from_longest.
3970 * python/py-record-btrace.c (recpy_bt_insn_size)
3971 (recpy_bt_func_level, btpy_list_count): Use
3972 gdb_py_object_from_longest.
3973 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3974 gdb_py_object_from_longest. Fix error handling.
3975 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3976 gdb_py_object_from_longest.
3977 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3978 gdb_py_object_from_longest.
3979 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3980 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3981 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3982
3983 2020-09-15 Tom Tromey <tromey@adacore.com>
3984
3985 * python/python.c (gdbpy_parameter_value): Use
3986 gdb_py_object_from_ulongest.
3987
3988 2020-09-15 Tom Tromey <tromey@adacore.com>
3989
3990 * python/py-infevents.c (create_register_changed_event_object):
3991 Use gdb_py_object_from_longest.
3992 * python/py-exitedevent.c (create_exited_event_object): Use
3993 gdb_py_object_from_longest.
3994
3995 2020-09-15 Tom Tromey <tromey@adacore.com>
3996
3997 * python/python.c (gdbpy_parameter_value): Use
3998 gdb_py_object_from_longest.
3999 * python/py-type.c (convert_field, typy_range): Use
4000 gdb_py_object_from_longest.
4001 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4002 gdb_py_object_from_longest.
4003 * python/py-lazy-string.c (stpy_get_length): Use
4004 gdb_py_object_from_longest.
4005 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4006 gdb_py_object_from_longest.
4007 * python/py-infevents.c (create_memory_changed_event_object): Use
4008 gdb_py_object_from_longest.
4009 * python/py-inferior.c (infpy_get_num): Use
4010 gdb_py_object_from_longest.
4011 (infpy_get_pid): Likewise.
4012
4013 2020-09-15 Tom Tromey <tromey@adacore.com>
4014
4015 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4016 defines.
4017 * python/py-value.c (valpy_long): Use
4018 gdb_py_object_from_ulongest.
4019 * python/py-symtab.c (salpy_get_pc): Use
4020 gdb_py_object_from_ulongest.
4021 (salpy_get_last): Likewise.
4022 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4023 gdb_py_object_from_ulongest.
4024 * python/py-lazy-string.c (stpy_get_address): Use
4025 gdb_py_object_from_ulongest.
4026 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4027 * python/py-arch.c (archpy_disassemble): Use
4028 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4029 error handling.
4030
4031 2020-09-15 Tom Tromey <tromey@adacore.com>
4032
4033 * python/python-internal.h (gdb_py_long_from_longest): Remove
4034 defines.
4035 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4036 * python/py-type.c (convert_field, typy_get_sizeof): Use
4037 gdb_py_object_from_longest.
4038 * python/py-record-btrace.c (btpy_list_index): Use
4039 gdb_py_object_from_longest.
4040
4041 2020-09-15 Tom Tromey <tromey@adacore.com>
4042
4043 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4044 * python/py-record.c (recpy_element_number): Use
4045 gdb_py_object_from_longest.
4046 (recpy_gap_number): Likewise.
4047
4048 2020-09-15 Tom Tromey <tromey@adacore.com>
4049
4050 * top.c (ui::ui): Update.
4051 (highest_ui_num): Remove.
4052 * top.h (struct ui) <num>: Remove.
4053
4054 2020-09-15 Tom Tromey <tromey@adacore.com>
4055
4056 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4057 * ui-style.c (ansi_regex_text): Now array.
4058 * rust-exp.y (number_regex_text): Now array.
4059 * linespec.c (linespec_quote_characters): Now array.
4060 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4061 Now arrays.
4062
4063 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * debuginfod-support.c (debuginfod_client_deleter): New.
4066 (debuginfod_client_up): New.
4067 (debuginfod_init): Return debuginfod_client_up.
4068 (debuginfod_source_query): Adjust.
4069 (debuginfod_debuginfo_query): Adjust.
4070
4071 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4072
4073 * debuginfod-support.c (debuginfod_source_query): Use
4074 make_unique_xstrdup.
4075
4076 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4079 with `type::instance_flags`.
4080
4081 2020-09-14 Michael Mullin <masmullin@gmail.com>
4082
4083 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4084 Remove baton parameter.
4085
4086 2020-09-14 Pedro Alves <pedro@palves.net>
4087
4088 * Makefile.in (SELFTESTS_SRCS): Add
4089 unittests/enum-flags-selftests.c.
4090 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4091 btrace_function_flags instead of enum btrace_function_flag.
4092 * compile/compile-c-types.c (convert_qualified): Use
4093 enum_flags::raw.
4094 * compile/compile-cplus-symbols.c (convert_one_symbol)
4095 (convert_symbol_bmsym):
4096 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4097 (compile_cplus_convert_struct_or_union_methods)
4098 (compile_cplus_instance::convert_qualified_base):
4099 * go-exp.y (parse_string_or_char): Add cast to int.
4100 * unittests/enum-flags-selftests.c: New file.
4101 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4102 type to btrace_thread_flags from btrace_thread_flag.
4103 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4104 local's type to btrace_thread_flags from btrace_thread_flag. Add
4105 cast in DEBUG call.
4106
4107 2020-09-14 Pedro Alves <pedro@palves.net>
4108
4109 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4110 * gdbtypes.c (address_space_name_to_int): Rename to ...
4111 (address_space_name_to_type_instance_flags): ... this.
4112 (address_space_int_to_name): Rename to ...
4113 (address_space_type_instance_flags_to_name): ... this.
4114 * gdbtypes.h (address_space_name_to_int): Rename to ...
4115 (address_space_name_to_type_instance_flags): ... this.
4116 (address_space_int_to_name): Rename to ...
4117 (address_space_type_instance_flags_to_name): ... this.
4118 * type-stack.c (type_stack::insert): Adjust to rename.
4119 * type-stack.h (type_stack::insert): Likewise.
4120
4121 2020-09-14 Pedro Alves <pedro@palves.net>
4122 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * avr-tdep.c (avr_address_class_type_flags): Return
4125 type_instance_flags.
4126 (avr_address_class_type_flags_to_name): Take a
4127 type_instance_flags.
4128 (avr_address_class_name_to_type_flags): Return bool and take a
4129 type_instance_flags.
4130 * d-lang.c (build_d_types): Use type::set_instance_flags.
4131 * ft32-tdep.c (ft32_address_class_type_flags): Return
4132 type_instance_flags.
4133 (ft32_address_class_type_flags_to_name): Take a
4134 type_instance_flags.
4135 (ft32_address_class_name_to_type_flags): Return bool and take a
4136 type_instance_flags.
4137 (ft32_gdbarch_init): Use type::set_instance_flags.
4138 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4139 * gdbarch.h, gdbarch.c: Regenerate.
4140 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4141 (address_class_name_to_type_flags): Use type_instance_flags and
4142 bool.
4143 * gdbtypes.c (address_space_name_to_int)
4144 (address_space_int_to_name, make_qualified_type): Use
4145 type_instance_flags.
4146 (make_qualified_type): Use type_instance_flags and
4147 type::set_instance_flags.
4148 (make_type_with_address_space, make_cv_type, make_vector_type)
4149 (check_typedef): Use type_instance_flags.
4150 (recursive_dump_type): Cast type_instance_flags to unsigned for
4151 printing.
4152 (copy_type_recursive): Use type::set_instance_flags.
4153 (gdbtypes_post_init): Use type::set_instance_flags.
4154 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4155 <m_instance_flags>: ... this.
4156 <instance_flags, set_instance_flags>: New methods.
4157 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4158 (SET_TYPE_INSTANCE_FLAGS): New.
4159 (address_space_name_to_int, address_space_int_to_name)
4160 (make_type_with_address_space): Pass flags using
4161 type_instance_flags instead of int.
4162 * stabsread.c (cleanup_undefined_types_noname): Use
4163 type::set_instance_flags.
4164 * s390-tdep.c (s390_address_class_type_flags): Return
4165 type_instance_flags.
4166 (s390_address_class_type_flags_to_name): Take a
4167 type_instance_flags.
4168 (s390_address_class_name_to_type_flags): Return bool and take a
4169 type_instance_flags.
4170 * type-stack.c (type_stack::follow_types): Use
4171 type_instance_flags.
4172 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4173
4174 2020-09-14 Tom Tromey <tromey@adacore.com>
4175
4176 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4177 * x86-tdep.c (x86_is_thunk_register_name)
4178 (x86_in_indirect_branch_thunk): Update.
4179 * sparc64-tdep.c (sparc64_fpu_register_names)
4180 (sparc64_cp0_register_names, sparc64_register_names)
4181 (sparc64_pseudo_register_names): Now const.
4182 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4183 cp0_registers_num>: Now const.
4184 * sparc-tdep.c (sparc_core_register_names)
4185 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4186 (sparc32_pseudo_register_names): Now const.
4187 (validate_tdesc_registers): Update.
4188 * rust-lang.c (rust_extensions): Now const.
4189 * p-lang.c (p_extensions): Now const.
4190 * objc-lang.c (objc_extensions): Now const.
4191 * nto-tdep.c (nto_thread_state_str): Now const.
4192 * moxie-tdep.c (moxie_register_names): Now const.
4193 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4194 Now const.
4195 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4196 (mips_linux_reg_names): Now const.
4197 (mips_gdbarch_init): Update.
4198 * microblaze-tdep.c (microblaze_register_names): Now const.
4199 * m68k-tdep.c (m68k_register_names): Now const.
4200 * m32r-tdep.c (m32r_register_names): Now const.
4201 * ia64-tdep.c (ia64_register_names): Now const.
4202 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4203 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4204 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4205 ymm_avx512_register_names, pkeys_register_names>: Now const.
4206 * i386-tdep.c (i386_register_names, i386_zmm_names)
4207 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4208 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4209 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4210 * f-lang.c (f_extensions): Now const.
4211 * d-lang.c (d_extensions): Now const.
4212 * csky-tdep.c (csky_register_names): Now const.
4213 * charset.c (default_charset_names, charset_enum): Now const.
4214 (_initialize_charset): Update.
4215 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4216 const.
4217 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4218 (bsd_uthread_solib_loaded): Update.
4219 (bsd_uthread_state): Now const.
4220 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4221 (amd64_ymm_avx512_names, amd64_ymmh_names)
4222 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4223 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4224 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4225 (amd64_dword_names): Now const.
4226 * agent.c (can_use_agent_enum): Now const.
4227 * ada-tasks.c (task_states, long_task_states): Now const.
4228 * ada-lang.c (known_runtime_file_name_patterns)
4229 (known_auxiliary_function_name_patterns, attribute_names)
4230 (standard_exc, ada_extensions): Now const.
4231
4232 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * bcache.h (struct bcache) <bcache>: Remove constructor.
4235 <m_hash_function, m_compare_function>: Remove.
4236 <~bcache>: Make virtual.
4237 <compare>: Remove static method, introduce virtual method.
4238 <default_hash>: Remove.
4239 <hash>: New virtual method.
4240 * bcache.c (bcache::expand_hash_table): Update.
4241 (bcache::insert): Update.
4242 (bcache::hash): New.
4243 (bcache::compare): Update comment and parameter names.
4244 * gdbtypes.c (types_deeply_equal): Update.
4245 * psymtab.h (struct psymbol_bcache): New struct.
4246 (class psymtab_storage) <psymtab_storage>: Make default.
4247 <psymbol_cache>: Change type to psymbol_bcache.
4248 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4249 (psymbol_hash): Change to...
4250 (psymbol_bcache::hash): ... this.
4251 (psymbol_compare): Change to...
4252 (psymbol_bcache::compare): ... this.
4253
4254 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4257 checking for initial lwp.
4258
4259 2020-09-14 Tom Tromey <tromey@adacore.com>
4260
4261 * m68k-tdep.c (m68k_extract_return_value): Use
4262 pointer_result_regnum.
4263 (m68k_store_return_value): Likewise.
4264 (m68k_reg_struct_return_p): Handle vectors and arrays.
4265 (m68k_return_value): Handle arrays.
4266 (m68k_svr4_return_value): Fix single-element aggregate handling.
4267 Handle long double. Adjust for embedded ABI.
4268 (m68k_svr4_init_abi): Set pointer_result_regnum.
4269 (m68k_embedded_init_abi): New function.
4270 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4271 (m68k_osabi_sniffer): New function.
4272 (_initialize_m68k_tdep): Register osabi sniffer.
4273 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4274 member.
4275
4276 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4277
4278 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4279 with gdb::unique_xmalloc_ptr<char>.
4280
4281 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4282
4283 * xml-support.h (xml_fetch_another): Change type to be a
4284 function_view.
4285 (xml_process_xincludes): Remove baton parameter.
4286 (xml_fetch_content_from_file): Change baton parameter to
4287 dirname.
4288 * xml-support.c (struct xinclude_parsing_data)
4289 <xinclude_parsing_data>: Remove baton parameter.
4290 <fetcher_baton>: Remove.
4291 (xinclude_start_include): Adjust.
4292 (xml_process_xincludes): Adjust.
4293 (xml_fetch_content_from_file): Replace baton parameter with
4294 dirname.
4295 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4296 (xml_init_syscalls_info): Use a lambda.
4297 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4298 (file_read_description_xml): Use a lambda.
4299 (fetch_available_features_from_target): Change baton parameter
4300 to target_ops.
4301 (target_read_description_xml): Use a lambda.
4302 (target_fetch_description_xml): Use a lambda.
4303 (string_read_description_xml): Update.
4304
4305 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4306
4307 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4308 uses with type::endianity_is_not_default.
4309
4310 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * gdbtypes.h (struct type) <endianity_is_not_default,
4313 set_endianity_is_not_default>: New methods.
4314 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4315 type::endianity_is_not_default, change all write call sites to
4316 use type::set_endianity_is_not_default.
4317
4318 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4321 uses with type::is_fixed_instance.
4322
4323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * gdbtypes.h (struct type) <is_fixed_instance,
4326 set_is_fixed_instance>: New methods.
4327 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4328 write call sites to use type::set_is_fixed_instance.
4329
4330 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4333 uses with type::is_gnu_ifunc.
4334
4335 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4338 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4339 use type::set_is_gnu_ifunc.
4340
4341 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4344 uses with type::stub_is_supported.
4345
4346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4349 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4350 use type::set_stub_is_supported.
4351
4352 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4355 uses with type::is_vector.
4356
4357 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4360 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4361 use type::set_is_vector.
4362
4363 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4366 uses with type::has_varargs.
4367
4368 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4371 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4372 use type::set_has_varargs.
4373
4374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4377 uses with type::is_prototyped.
4378
4379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4382 New methods.
4383 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4384 call sites to use type::set_is_prototyped.
4385
4386 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4389 uses with type::target_is_stub.
4390
4391 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4394 New methods.
4395 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4396 sites to use type::set_target_is_stub.
4397
4398 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbtypes.h (TYPE_STUB): Remove, replace all
4401 uses with type::is_stub.
4402
4403 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4406 (TYPE_STUB): Use type::is_stub, change all write call sites to
4407 use type::set_is_stub.
4408
4409 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4412 type::has_no_signedness.
4413
4414 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * gdbtypes.h (struct type) <has_no_signedness,
4417 set_has_no_signedness>: New methods.
4418 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4419 call sites to use type::set_has_no_signedness.
4420
4421 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4424 type::is_unsigned.
4425
4426 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4429 methods.
4430 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4431 sites to use type::set_is_unsigned.
4432
4433 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4434 Adam Renquinha <arenquinha@cimeq.qc.ca>
4435
4436 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4437 pointer and stack frame offset when unwinding.
4438
4439 2020-09-13 Pedro Alves <pedro@palves.net>
4440
4441 * NEWS: Document "-break-insert --qualified".
4442 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4443
4444 2020-09-13 Pedro Alves <pedro@palves.net>
4445
4446 * linespec.c (classify_mtype, compare_msyms): Delete.
4447 (search_minsyms_for_name): Remove classification logic. Instead
4448 filter out trampoline symbols if we also found an external
4449 function of the same name.
4450
4451 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4452
4453 * NEWS: Create a new section for the next release branch.
4454 Rename the section of the current branch, now that it has
4455 been cut.
4456
4457 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4458
4459 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4460 * version.in: Bump version to 11.0.50.DATE-git.
4461
4462 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4463
4464 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4465
4466 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4467 Felix Willgerodt <Felix.Willgerodt@intel.com>
4468
4469 * gdbarch.sh: Added bfloat16 type.
4470 * gdbarch.c: Regenerated.
4471 * gdbarch.h: Regenerated.
4472 * gdbtypes.c (floatformats_bfloat16): New struct.
4473 (gdbtypes_post_init): Add builtin_bfloat16.
4474 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4475 (floatformats_bfloat16): New struct.
4476 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4477 (i386_ymm_type): Add field "v16_bfloat16"
4478 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4479 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4480 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4481 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4482 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4483 * features/i386/64bit-avx512.c: Regenerated.
4484 * features/i386/64bit-sse.xml: Add bfloat16 type.
4485 * features/i386/64bit-sse.c: Regenerated.
4486
4487 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4488
4489 * i386-tdep.c (i386_zmm_type): Fix field names.
4490 (i386_ymm_type): Fix field names.
4491
4492 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4493
4494 * breakpoint.c: Fix typo in the help message of the
4495 "set breakpoint condition-evaluation" command.
4496
4497 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4498
4499 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4500 * (nbsd_nat_target::pid_to_exec_file)
4501 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4502 (nbsd_nat_target::post_startup_inferior)
4503 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4504 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4505 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4506 * (nbsd_thread_lister): Remove.
4507
4508 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4509
4510 * fork-inferior.c (startup_inferior): Avoid double free.
4511
4512 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4513
4514 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4515 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4516
4517 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4518
4519 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4520 * netbsd-nat.c: Include <sys/ptrace.h>.
4521 * (netbsd_nat::enable_proc_events): Add.
4522
4523 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4524
4525 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4526 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4527 (netbsd_nat::for_each_thread): Add.
4528 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4529 "gdbsupport/common-debug.h".
4530 * (netbsd_nat::netbsd_thread_lister)
4531 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4532 (netbsd_nat::for_each_thread): Add.
4533
4534 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4535
4536 * netbsd-nat.h: Include <unistd.h>.
4537 * (netbsd_nat::pid_to_exec_file): Add.
4538 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4539 * (netbsd_nat::pid_to_exec_file) Add.
4540
4541 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4542
4543 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4544
4545 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4546
4547 * netbsd-nat.h: New file.
4548 * netbsd-nat.c: Likewise.
4549
4550 2020-09-09 Tom Tromey <tromey@adacore.com>
4551
4552 * ada-lang.c (remove_extra_symbols): Do not increment when
4553 removing an element
4554
4555 2020-09-08 Tom Tromey <tromey@adacore.com>
4556
4557 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4558
4559 2020-09-08 Tom Tromey <tromey@adacore.com>
4560
4561 PR win32/25302:
4562 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4563 (gdb_bfd_init_data): New function.
4564 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4565
4566 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4567
4568 * infrun.c (fetch_inferior_event): Use
4569 `switch_to_target_no_thread` to switch the target.
4570
4571 2020-09-06 Tom Tromey <tom@tromey.com>
4572
4573 * symfile.h (dwarf2_free_objfile): Don't declare.
4574
4575 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4576
4577 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4578 to match 16 byte real/complex type generated by Flang compiler.
4579
4580 2020-09-03 Tom de Vries <tdevries@suse.de>
4581
4582 PR breakpoint/26546
4583 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4584 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4585
4586 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * maint.c (index_digits): New function.
4589 (struct maint_print_section_data): Remove.
4590 (print_bfd_section_info): Remove print_data parameter, add arg
4591 and index_digits.
4592 (print_objfile_section_info): Likewise.
4593 (print_bfd_section_info_maybe_relocated): Likewise (plus
4594 objfile).
4595 (maintenance_info_sections): Adjust calls.
4596
4597 2020-09-02 Tom Tromey <tromey@adacore.com>
4598
4599 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4600 for null pointers.
4601 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4602
4603 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * bcache.h (struct bcache) <insert>: Change type of `added` to
4606 pointer to bool.
4607 * bcache.c (bcache::insert): Likewise.
4608 * gdbtypes.c (check_types_worklist): Adjust.
4609 * psymtab.c (add_psymbol_to_bcache): Adjust.
4610
4611 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4612
4613 * corelow.c (unordered_set): Include.
4614 (class core_target): Add field 'm_core_unavailable_mappings'.
4615 (core_target::build_file_mappings): Print only one warning
4616 per inaccessible file. Add unavailable/broken mappings
4617 to m_core_unavailable_mappings.
4618 (core_target::xfer_partial): Call...
4619 (core_target::xfer_memory_via_mappings): New method.
4620
4621 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4624 type to bool.
4625
4626 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * dwarf2/read.c (struct field_info): Fix indentation.
4629
4630 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4633 ordering in comment.
4634 * frame.c (frame_id_eq): Fix indentation.
4635
4636 2020-08-31 Scott Linder <scott@scottlinder.com>
4637 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4640 inline frame ids in outer frame.
4641
4642 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4645 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4646 (outer_frame_id): Use FID_STACK_OUTER instead of
4647 FID_STACK_INVALID.
4648 (frame_id_p): Don't check for outer_frame_id.
4649
4650 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4653 regnum/frame in value. Call allocate_value_lazy.
4654 * frame.c (frame_unwind_register_value): Use
4655 val_print_not_saved.
4656
4657 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4660
4661 2020-08-29 Pedro Alves <pedro@palves.net>
4662
4663 * progspace.c (print_program_space): Use all_inferiors. Switch to
4664 the inferior before calling target_pid_to_str.
4665
4666 2020-08-28 Tom Tromey <tom@tromey.com>
4667
4668 * xcoffread.c (xcoff_end_psymtab): Update comment.
4669 * dbxread.c (dbx_end_psymtab): Update comment.
4670
4671 2020-08-28 Tom de Vries <tdevries@suse.de>
4672
4673 PR breakpoint/26544
4674 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4675 event_location.
4676 (create_breakpoint): Same.
4677 (base_breakpoint_decode_location): Same.
4678 (bkpt_create_sals_from_location): Same.
4679 (bkpt_decode_location): Same.
4680 (bkpt_probe_create_sals_from_location): Same.
4681 (bkpt_probe_decode_location): Same.
4682 (tracepoint_create_sals_from_location): Same.
4683 (tracepoint_decode_location): Same.
4684 (tracepoint_probe_decode_location): Same.
4685 (strace_marker_create_sals_from_location): Same.
4686 (strace_marker_decode_location): Same.
4687 (create_sals_from_location_default): Same.
4688 (decode_location_default): Same.
4689 * breakpoint.h (struct breakpoint_ops): Same.
4690 (create_breakpoint): Same.
4691 * linespec.h (decode_line_full): Same.
4692 * linespec.c (decode_line_full): Same. Throw error if
4693 result.size () == 0.
4694
4695 2020-08-27 Pedro Alves <pedro@palves.net>
4696
4697 PR gdb/26524
4698 * breakpoint.c (until_break_fsm) <location_breakpoint,
4699 caller_breakpoint>: Delete fields.
4700 <breakpoints>: New field.
4701 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4702 two individual breakpoints.
4703 (until_break_fsm::should_stop): Loop over breakpoints in the
4704 breakpoint vector.
4705 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4706 vector.
4707 (until_break_command): Handle location expanding into multiple
4708 sals.
4709
4710 2020-08-27 Pedro Alves <pedro@palves.net>
4711
4712 PR gdb/26523
4713 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4714 bp_until breakpoints user-specified locations. Update intro
4715 comment.
4716
4717 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4718
4719 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4720 gdb_bfd_sections): New.
4721 * maint.c (print_bfd_section_info): Change param type to
4722 maint_print_section_data.
4723 (print_objfile_section_info): Likewise.
4724 (print_bfd_section_info_maybe_relocated): Likewise.
4725 (maintenance_info_sections): Use gdb_bfd_sections.
4726
4727 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4728
4729 * MAINTAINERS: Add ARC target and maintainer.
4730
4731 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4732
4733 * configure.tgt: ARC support for GNU/Linux.
4734 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4735 * arc-linux-tdep.c: New file.
4736 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4737 * arc-tdep.c (arc_write_pc): Use it.
4738
4739 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4740
4741 * arc-tdep.c (arc_check_for_hardware_loop): New.
4742 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4743
4744 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4745
4746 * arc-tdep.h: Include "gdbarch.h".
4747
4748 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4749
4750 * arch/arc.h
4751 (arc_gdbarch_features): New class to stir the selection of target XML.
4752 (arc_create_target_description): Use FEATURES to choose XML target.
4753 (arc_lookup_target_description): Use arc_create_target_description
4754 to create _new_ target descriptions or return the already created
4755 ones if the FEATURES is the same.
4756 * arch/arc.c: Implementation of prototypes described above.
4757 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4758 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4759 * arc-tdep.c (*_feature_name): Make feature names consistent.
4760 (arc_register_feature): A new struct to hold information about
4761 registers of a particular target/feature.
4762 (arc_check_tdesc_feature): Check if XML provides registers in
4763 compliance with ARC_REGISTER_FEATURE structs.
4764 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4765 (determine_*_reg_feature_set): Which feature name to look for.
4766 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4767 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4768 to expected ISA enums to be used in arc_gdbarch_features structs.
4769 * features/Makefile (FEATURE_XMLFILES): Add new files.
4770 * gdb/features/arc/v1-aux.c: New file.
4771 * gdb/features/arc/v1-aux.xml: Likewise.
4772 * gdb/features/arc/v1-core.c: Likewise.
4773 * gdb/features/arc/v1-core.xml: Likewise.
4774 * gdb/features/arc/v2-aux.c: Likewise.
4775 * gdb/features/arc/v2-aux.xml: Likewise.
4776 * gdb/features/arc/v2-core.c: Likewise.
4777 * gdb/features/arc/v2-core.xml: Likewise.
4778 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4779
4780 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4781 Andrew Burgess <andrew.burgess@embecosm.com>
4782
4783 PR m2/26372
4784 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4785 an assert. Remove single element array indexing pattern as the
4786 MULTI_SUBSCRIPT support will handle this case too.
4787
4788 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * value.h (valprint_check_validity): Move declaration from
4791 here...
4792 * valprint.h (valprint_check_validity): ... to here.
4793
4794 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * debug.h: New file.
4797 * debug.c (debug_prefixed_vprintf): New function.
4798 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4799 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4800
4801 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * infrun.h (infrun_debug_printf_1): New function declaration.
4804 (infrun_debug_printf): New macro.
4805 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4806 throughout.
4807 (infrun_debug_printf): New function.
4808 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4809 (handle_jit_event): Likewise.
4810
4811 2020-08-21 Mark Wielaard <mark@klomp.org>
4812
4813 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4814
4815 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4816
4817 * frame.c (enum class frame_id_status): New.
4818 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4819 (fprintf_frame): Update.
4820 (compute_frame_id): Set frame id status to "computing" on entry.
4821 Set it back to "not_computed" on failure and to "computed" on
4822 success.
4823 (get_frame_id): Assert the frame id is not being computed.
4824 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4825 (create_new_frame): Likewise.
4826 (frame_cleanup_after_sniffer): Update assert.
4827
4828 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4829
4830 * regcache.c (pid_ptid_regcache_map): New type.
4831 (target_ptid_regcache_map): Remove.
4832 (target_pid_ptid_regcache_map): New type.
4833 (regcaches): Change type to target_pid_ptid_regcache_map.
4834 (get_thread_arch_aspace_regcache): Update.
4835 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4836 case.
4837 (regcaches_size): Update.
4838 (regcache_count): Update.
4839 (registers_changed_ptid_target_pid_test): New.
4840 (_initialize_regcache): Register new test.
4841
4842 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4843
4844 * regcache.c (regcache_count): New.
4845 (struct regcache_test_data): New.
4846 (regcache_test_data_up): New.
4847 (populate_regcaches_for_test): New.
4848 (regcaches_test): Remove.
4849 (get_thread_arch_aspace_regcache_test): New.
4850 (registers_changed_ptid_all_test): New.
4851 (registers_changed_ptid_target_test): New.
4852 (registers_changed_ptid_target_ptid_test): New.
4853 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4854 (_initialize_regcache): Register new tests.
4855
4856 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4857
4858 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4859 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4860 gdbarch and aspace parameter. Use current inferior's aspace.
4861 Validate regcache's arch value.
4862 (regcaches_test): Update.
4863
4864 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4865
4866 * regcache.c (regcaches_test): Call registers_changed.
4867
4868 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869
4870 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4871
4872 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4873
4874 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4875 to find the end of prologue for flang compiled binaries.
4876 * arm-tdep.c (arm_skip_prologue): Likewise.
4877 * i386-tdep.c (i386_skip_prologue): Likewise.
4878 * producer.c (producer_is_llvm): New function.
4879 (producer_parsing_tests): Added new tests for clang/flang.
4880 * producer.h (producer_is_llvm): New declaration.
4881
4882 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * linux-nat.c (linux_nat_debug_printf): New function.
4885 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4886
4887 2020-08-18 Aaron Merey <amerey@redhat.com>
4888
4889 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4890 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4891 (CLIBS): Add DEBUGINFOD_LIBS.
4892
4893 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4894
4895 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4896 'gdbarch_num_regs'.
4897
4898 2020-08-17 Tom Tromey <tromey@adacore.com>
4899
4900 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4901 ada_get_decoded_value returns NULL.
4902
4903 2020-08-17 Tom Tromey <tromey@adacore.com>
4904
4905 * python/py-inferior.c (infpy_search_memory): Use
4906 gdb_py_object_from_ulongest.
4907 * python/py-infevents.c (create_inferior_call_event_object)
4908 (create_memory_changed_event_object): Use
4909 gdb_py_object_from_ulongest.
4910 * python/py-linetable.c (ltpy_entry_get_pc): Use
4911 gdb_py_object_from_ulongest.
4912
4913 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4914
4915 * loc.c (class symbol_needs_eval_context): Fix indentation.
4916
4917 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4918
4919 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4920 bool.
4921
4922 2020-08-17 Tom de Vries <tdevries@suse.de>
4923
4924 PR gdb/26393
4925 * gdbtypes.c (dump_dynamic_prop): New function.
4926 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4927
4928 2020-08-15 Tom de Vries <tdevries@suse.de>
4929
4930 PR backtrace/26390
4931 * stack.c (print_frame_args): Temporarily set the selected
4932 frame to FRAME while printing the frame's arguments.
4933
4934 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4935
4936 PR breakpoints/26385
4937 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4938 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4939
4940 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4941
4942 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4943 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4944 and >= to check return value instead of == -1 and != -1.
4945
4946 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4947
4948 * utils.h (class gdb_argv) <as_array_view>: New method.
4949 * utils.c (gdb_argv_as_array_view_test): New.
4950 (_initialize_utils): Register selftest.
4951 * maint.c (maintenance_selftest): Use the new method.
4952
4953 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4954
4955 * target.h (supports_dumpcore, dumpcore): New
4956 function declarations.
4957 * target.c (supports_dumpcore, dumpcore): New
4958 functions.
4959 * target-delegates.c: Rebuild.
4960 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4961 and target_dumpcore ().
4962
4963 2020-08-13 Aaron Merey <amerey@redhat.com>
4964
4965 * debuginfod-support.c: Replace global variables with user_data.
4966
4967 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4968
4969 * maint.c (maintenance_selftest): Split args and pass array_view
4970 to run_tests.
4971
4972 2020-08-12 Luis Machado <luis.machado@linaro.org>
4973
4974 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4975 type's length.
4976 Use %s and pulongest to print the length.
4977
4978 2020-08-12 Pedro Alves <palves@redhat.com>
4979
4980 * NEWS: Move "Multi-target debugging support" item to the
4981 "Changes since GDB 9" section.
4982
4983 2020-08-12 Pedro Alves <palves@redhat.com>
4984
4985 PR gdb/26336
4986 * progspace.c (program_space::remove_objfile): Invalidate the
4987 frame cache.
4988
4989 2020-08-11 Tom de Vries <tdevries@suse.de>
4990
4991 * MAINTAINERS: Mark ms1 as deleted.
4992
4993 2020-08-10 Luis Machado <luis.machado@linaro.org>
4994
4995 PR gdb/26310
4996
4997 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4998 act accordingly.
4999 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5000 movz/str/stur/stp skipping behavior.
5001
5002 2020-08-10 Luis Machado <luis.machado@linaro.org>
5003
5004 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5005 struct user_sve_header instead of struct sve_context.
5006
5007 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5008
5009 * read.h (dwarf2_fetch_die_loc_sect_off,
5010 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5011 `void *` parameter with function_view.
5012 * read.c (dwarf2_fetch_die_loc_sect_off,
5013 dwarf2_fetch_die_loc_cu_off): Likewise.
5014 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5015 (per_cu_dwarf_call): Adjust.
5016 (get_frame_address_in_block_wrapper): Remove.
5017 (indirect_synthetic_pointer): Adjust.
5018 (get_ax_pc): Remove.
5019 (dwarf2_compile_expr_to_ax): Adjust.
5020
5021 2020-08-08 Tom de Vries <tdevries@suse.de>
5022
5023 PR build/26344
5024 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5025 constructor.
5026 * regcache.c (get_thread_arch_aspace_regcache): Same.
5027
5028 2020-08-07 Tom Tromey <tromey@adacore.com>
5029
5030 * ravenscar-thread.c
5031 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5032 New method.
5033 (ravenscar_thread_target::wait): Check
5034 runtime_initialized.
5035 (ravenscar_thread_target::prepare_to_store)
5036 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5037 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5038 (ravenscar_thread_target::stopped_by_watchpoint)
5039 (ravenscar_thread_target::stopped_data_address)
5040 (ravenscar_thread_target::core_of_thread): Use
5041 scoped_restore_current_thread and
5042 set_base_thread_from_ravenscar_task.
5043
5044 2020-08-07 Tom Tromey <tromey@adacore.com>
5045
5046 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5047
5048 2020-08-07 Tom Tromey <tromey@adacore.com>
5049
5050 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5051 update_inferior_ptid before update_thread_list.
5052 (temporarily_change_regcache_ptid): New class.
5053 (ravenscar_thread_target::fetch_registers)
5054 (ravenscar_thread_target::store_registers)
5055 (ravenscar_thread_target::prepare_to_store): Use base thread when
5056 forwarding operation.
5057
5058 2020-08-07 Tom Tromey <tromey@adacore.com>
5059
5060 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5061 "is_pid" case.
5062
5063 2020-08-07 Tom Tromey <tromey@adacore.com>
5064
5065 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5066 New methods.
5067 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5068 first.
5069 (ravenscar_thread_target::add_thread): Rename from
5070 ravenscar_add_thread.
5071 (ravenscar_thread_target::update_thread_list): Use a lambda.
5072 (ravenscar_thread_target::xfer_partial): New method.
5073
5074 2020-08-07 Tom Tromey <tromey@adacore.com>
5075
5076 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5077 gdb::function_view.
5078 (iterate_over_live_ada_tasks): Change type of argument.
5079 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5080 of argument.
5081
5082 2020-08-07 Tom Tromey <tromey@adacore.com>
5083
5084 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5085 Remove.
5086 (ravenscar_thread_target::extra_thread_info): Remove.
5087 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5088 defer to target beneath for non-Ravenscar threads.
5089
5090 2020-08-07 Tom Tromey <tromey@adacore.com>
5091
5092 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5093 get_base_thread_from_ravenscar_task>: Now methods.
5094 <m_cpu_map>: New member.
5095 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5096 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5097 (ravenscar_thread_target::task_is_currently_active): Update.
5098 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5099 Now a method.
5100 (ravenscar_thread_target::add_active_thread): Put initial thread
5101 into the m_cpu_map.
5102
5103 2020-08-07 Tom Tromey <tromey@adacore.com>
5104
5105 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5106 event_ptid.
5107
5108 2020-08-07 Tom Tromey <tromey@adacore.com>
5109
5110 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5111 runtime_initialized.
5112
5113 2020-08-07 Tom Tromey <tromey@adacore.com>
5114
5115 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5116 add_active_thread.
5117 (ravenscar_thread_target::add_active_thread): Now public.
5118 (ravenscar_inferior_created): Call add_active_thread after pushing
5119 the target.
5120
5121 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5122
5123 * regcache.c (ptid_regcache_map): New type.
5124 (target_ptid_regcache_map): New type.
5125 (regcaches): Change type to target_ptid_regcache_map.
5126 (get_thread_arch_aspace_regcache): Update to regcaches' new
5127 type.
5128 (regcache_thread_ptid_changed): Likewise.
5129 (registers_changed_ptid): Likewise.
5130 (regcaches_size): Likewise.
5131 (regcaches_test): Update.
5132 (regcache_thread_ptid_changed): Update.
5133 * regcache.h (regcache_up): New type.
5134 * gdbsupport/ptid.h (hash_ptid): New struct.
5135
5136 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5137
5138 * observable.h (thread_ptid_changed): Add parameter
5139 `process_stratum_target *`.
5140 * infrun.c (infrun_thread_ptid_changed): Add parameter
5141 `process_stratum_target *` and use it.
5142 (selftests): New namespace.
5143 (infrun_thread_ptid_changed): New function.
5144 (_initialize_infrun): Register selftest.
5145 * regcache.c (regcache_thread_ptid_changed): Add parameter
5146 `process_stratum_target *` and use it.
5147 (regcache_thread_ptid_changed): New function.
5148 (_initialize_regcache): Register selftest.
5149 * thread.c (thread_change_ptid): Pass target to
5150 thread_ptid_changed observable.
5151
5152 2020-08-06 Caroline Tice <cmtice@google.com>
5153
5154 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5155 (struct dwp_sections): Update field comments. Add loclists and
5156 rnglists fields.
5157 (struct virtual_v2_dwo_sections): Rename struct to
5158 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5159 size & offset fields for loclists and rnglists.
5160 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5161 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5162 skipping dummy type units.
5163 (create_dwp_hash_table): Update the large comment above the function to
5164 discuss Version 5 DWP files as well, with references. Update all the
5165 version checks in the function to check for version 5 as well. Add new
5166 section at the end to create dwp hash table for version 5.
5167 (create_dwp_v2_section): Rename function to
5168 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5169 Add V5 to error message text.
5170 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5171 into calls to create_dwp_v2_or_v5_section.
5172 (create_dwo_unit_in_dwp_v5): New function.
5173 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5174 check for version2; add else clause to handle version 5.
5175 (open_and_init_dwo_file): Add code to check dwarf version & only call
5176 create_debug_types_hash_table (with sections.types) if version is not 5;
5177 else call create_debug_type_hash_table, with sections.info.
5178 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5179 version 5.
5180 (dwarf2_locate_v5_dwp_sections): New function.
5181 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5182 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5183
5184 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * regcache.h (class regcache): Remove friend
5187 registers_changed_ptid.
5188 <regcache_thread_ptid_changed>: Remove.
5189 <regcaches>: Remove.
5190 * regcache.c (regcache::regcaches): Rename to...
5191 (regcaches): ... this. Make static.
5192 (get_thread_arch_aspace_regcache): Update.
5193 (regcache::regcache_thread_ptid_changed): Rename to...
5194 (regcache_thread_ptid_changed): ... this. Update.
5195 (class regcache_access): Remove.
5196 (regcaches_test): Update.
5197 (_initialize_regcache): Update.
5198 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5199 <forward_list>.
5200
5201 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * regcache.h (class regcache) <current_regcache>: Rename to...
5204 <regcaches>: ... this. Move doc here.
5205 * regcache.c (regcache::current_regcache) Rename to...
5206 (regcache::regcaches): ... this. Move doc to header.
5207 (get_thread_arch_aspace_regcache): Update.
5208 (regcache::regcache_thread_ptid_changed): Update.
5209 (registers_changed_ptid): Update.
5210 (class regcache_access) <current_regcache_size>: Rename to...
5211 <regcaches_size>: ... this.
5212 (current_regcache_test): Rename to...
5213 (regcaches_test): ... this.
5214 (_initialize_regcache): Update.
5215
5216 2020-08-06 Victor Collod <vcollod@nvidia.com>
5217
5218 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5219
5220 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5221
5222 * corelow.c (core_target::build_file_mappings): Don't output
5223 null pathname in warning.
5224
5225 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5228 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5229 gdb.dwarf2/dw2-single-line-discriminators.exp,
5230 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5231
5232 2020-08-05 Tom Tromey <tromey@adacore.com>
5233
5234 PR rust/26197:
5235 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5236 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5237 Fix off-by-one and type size errors in ordinary case.
5238
5239 2020-08-05 Tom de Vries <tdevries@suse.de>
5240
5241 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5242 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5243
5244 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5245
5246 * frame.h (frame_id_p): Return bool.
5247 (frame_id_artificial_p): Return bool.
5248 (frame_id_eq): Return bool.
5249 (has_stack_frames): Return bool.
5250 (get_selected_frame): Fix typo in comment.
5251 (get_frame_pc_if_available): Return bool.
5252 (get_frame_address_in_block_if_available): Return bool.
5253 (get_frame_func_if_available): Return bool.
5254 (read_frame_register_unsigned): Return bool.
5255 (get_frame_register_bytes): Return bool.
5256 (safe_frame_unwind_memory): Return bool.
5257 (deprecated_frame_register_read): Return bool.
5258 (frame_unwinder_is): Return bool.
5259 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5260 bool.
5261 <this_id::p>: Likewise.
5262 <prev_p>: Likewise.
5263 (frame_stash_add): Return bool.
5264 (get_frame_id): Use bool.
5265 (frame_id_build_special) Use bool.
5266 (frame_id_build_unavailable_stack): Use bool.
5267 (frame_id_build): Use bool.
5268 (frame_id_p): Return bool, use true/false instead of 1/0.
5269 (frame_id_artificial_p): Likewise.
5270 (frame_id_eq): Likewise.
5271 (frame_id_inner): Likewise.
5272 (get_frame_func_if_available): Likewise.
5273 (read_frame_register_unsigned): Likewise.
5274 (deprecated_frame_register_read): Likewise.
5275 (get_frame_register_bytes): Likewise.
5276 (has_stack_frames): Likewise.
5277 (inside_main_func): Likewise.
5278 (inside_entry_func): Likewise.
5279 (get_frame_pc_if_available): Likewise.
5280 (get_frame_address_in_block_if_available): Likewise.
5281 (frame_unwinder_is): Likewise.
5282 (safe_frame_unwind_memory): Likewise.
5283 (frame_unwind_arch): Likewise.
5284
5285 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5288 type to cached_copy_status.
5289 (fprintf_frame): Adjust.
5290 (get_frame_func_if_available): Adjust.
5291 (frame_cleanup_after_sniffer): Adjust.
5292
5293 2020-08-04 Mark Wielaard <mark@klomp.org>
5294
5295 * MAINTAINERS (Write After Approval): Update email address.
5296
5297 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5298
5299 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5300 dynamic_prop::const_val.
5301
5302 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5303
5304 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5305 dynamic_prop::kind.
5306
5307 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5308
5309 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5310
5311 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5312
5313 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5314
5315 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5316 Jose E. Marchesi <jose.marchesi@oracle.com>
5317
5318 * configure.tgt: Add entry for bpf-*-*.
5319 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5320 (ALLDEPFILES): Add bpf-tdep.c.
5321 * bpf-tdep.c: New file.
5322 * MAINTAINERS: Add bpf target and maintainer.
5323 * NEWS: Mention the support for the new target.
5324
5325 2020-08-04 Tom de Vries <tdevries@suse.de>
5326
5327 PR symtab/23270
5328 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5329 Error.
5330
5331 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5332
5333 * syscalls/freebsd.xml: Regenerate.
5334
5335 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5336
5337 * syscalls/update-freebsd.sh: Fix usage and year range.
5338
5339 2020-08-03 Tom de Vries <tdevries@suse.de>
5340
5341 PR symtab/26333
5342 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5343 DW_LNE_lo_user/DW_LNE_hi_user range.
5344
5345 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 PR ada/26318
5348 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5349 kind.
5350
5351 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5352
5353 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5354
5355 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5356
5357 * breakpoint.c (set_breakpoint_condition): Update the condition
5358 expressions after checking that the input condition string parses
5359 successfully and does not contain junk at the end.
5360
5361 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5362
5363 * breakpoint.c (set_breakpoint_condition): Update the
5364 condition string after parsing the new condition successfully.
5365
5366 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5367
5368 * proc-api.c (_STRUCTURED_PROC): Don't define.
5369 * proc-events.c: Likewise.
5370 * proc-flags.c: Likewise.
5371 * proc-why.c: Likewise.
5372 * procfs.c: Likewise.
5373
5374 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5375 * configure, config.in: Regenerate.
5376
5377 2020-07-30 Tom de Vries <tdevries@suse.de>
5378
5379 PR build/26320
5380 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5381 m_red/m_green/m_blue in a union.
5382
5383 2020-07-29 Tom de Vries <tdevries@suse.de>
5384
5385 PR tdep/26280
5386 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5387
5388 2020-07-28 Tom Tromey <tromey@adacore.com>
5389
5390 PR symtab/26270:
5391 * symtab.h (find_pc_partial_function_sym): Declare.
5392 * cli/cli-cmds.c (disassemble_command): Use
5393 find_pc_partial_function_sym. Check asm_demangle.
5394 * blockframe.c (cache_pc_function_sym): New global.
5395 (cache_pc_function_name): Remove.
5396 (clear_pc_function_cache): Update.
5397 (find_pc_partial_function_sym): New function, from
5398 find_pc_partial_function.
5399 (find_pc_partial_function): Rewrite using
5400 find_pc_partial_function_sym.
5401
5402 2020-07-28 Tom Tromey <tromey@adacore.com>
5403
5404 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5405 help. Add usage.
5406
5407 2020-07-28 Tom Tromey <tromey@adacore.com>
5408
5409 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5410 <DW_OP_GNU_variable_value>: Cast to address type.
5411
5412 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5413
5414 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5415 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5416 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5417 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5418 (nbsd_get_siginfo_type): New.
5419 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5420 (_initialize_nbsd_tdep): New.
5421
5422 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5423
5424 PR binutils/26301
5425 * configure: Regenerated.
5426
5427 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5428
5429 PR binutils/26301
5430 * configure: Regenerated.
5431
5432 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * python/py-frame.c: Remove 'user-regs.h' include.
5435 (frapy_read_register): Rewrite to make use of
5436 gdbpy_parse_register_id.
5437 * python/py-registers.c (gdbpy_parse_register_id): New function,
5438 moved here from python/py-unwind.c. Updated the return type, and
5439 also accepts register descriptor objects.
5440 * python/py-unwind.c: Remove 'user-regs.h' include.
5441 (pyuw_parse_register_id): Moved to python/py-registers.c.
5442 (unwind_infopy_add_saved_register): Update to use
5443 gdbpy_parse_register_id.
5444 (pending_framepy_read_register): Likewise.
5445 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5446
5447 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * python/py-registers.c: Add 'user-regs.h' include.
5450 (register_descriptor_iter_find): New function.
5451 (register_descriptor_iterator_object_methods): New static global
5452 methods array.
5453 (register_descriptor_iterator_object_type): Add pointer to methods
5454 array.
5455
5456 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5457
5458 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5459 for all architectures on FreeBSD 11.3 and later.
5460
5461 2020-07-27 Tom Tromey <tromey@adacore.com>
5462
5463 * gcore.h (load_corefile): Don't declare.
5464
5465 2020-07-27 Tom de Vries <tdevries@suse.de>
5466
5467 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5468 * config.in: Regenerate.
5469 * configure: Regenerate.
5470
5471 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5472
5473 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5474 ws2tcpip.h. When checking whether socklen_t type is defined, use
5475 ws2tcpip.h if it is available and sys/socket.h isn't.
5476 * configure: Regenerate.
5477 * config.in: Regenerate.
5478
5479 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5480
5481 PR fortran/23051
5482 PR fortran/26139
5483 * valops.c (value_ind): Pass address to
5484 readjust_indirect_value_type.
5485 * value.c (readjust_indirect_value_type): Make parameter
5486 non-const, and add extra address parameter. Resolve original type
5487 before using it.
5488 * value.h (readjust_indirect_value_type): Update function
5489 signature and comment.
5490
5491 2020-07-25 Tom de Vries <tdevries@suse.de>
5492
5493 PR symtab/26243
5494 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5495 entries.
5496
5497 2020-07-24 Aaron Merey <amerey@redhat.com>
5498
5499 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5500 * configure: Rebuild.
5501
5502 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5503
5504 PR corefiles/26294
5505 * corelow.c (_initialize_corelow): Add period to help text
5506 for "maintenance print core-file-backed-mappings".
5507
5508 2020-07-23 Pedro Alves <pedro@palves.net>
5509
5510 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5511 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5512 meanwhile.
5513 * frame.c (frame_cache_generation, get_frame_cache_generation):
5514 New.
5515 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5516 (get_prev_frame_if_no_cycle): On exception, don't touch
5517 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5518 * frame.h (get_frame_cache_generation): Declare.
5519
5520 2020-07-23 Tom de Vries <tdevries@suse.de>
5521
5522 PR tui/26282
5523 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5524 New default constructor.
5525
5526 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5529 exclude non-statement entries.
5530
5531 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5532
5533 * NEWS (New commands): Mention new command
5534 "maintenance print core-file-backed-mappings".
5535
5536 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5537
5538 * corelow.c (gdbcmd.h): Include.
5539 (core_target::info_proc_mappings): New method.
5540 (get_current_core_target): New function.
5541 (maintenance_print_core_file_backed_mappings): New function.
5542 (_initialize_corelow): Add core-file-backed-mappings to
5543 "maint print" commands.
5544
5545 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5546
5547 * linux-tdep.c (dump_note_entry_p): New function.
5548 (linux_dump_mapping_p_ftype): New typedef.
5549 (linux_find_memory_regions_full): Add new parameter,
5550 should_dump_mapping_p.
5551 (linux_find_memory_regions): Adjust call to
5552 linux_find_memory_regions_full.
5553 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5554 call to linux_find_memory_regions_full.
5555
5556 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5557
5558 * corelow.c (solist.h, unordered_map): Include.
5559 (class core_target): Add field m_core_file_mappings and
5560 method build_file_mappings.
5561 (core_target::core_target): Call build_file_mappings.
5562 (core_target::~core_target): Free memory associated with
5563 m_core_file_mappings.
5564 (core_target::build_file_mappings): New method.
5565 (core_target::xfer_partial): Use m_core_file_mappings
5566 for memory transfers.
5567 * linux-tdep.c (linux_read_core_file_mappings): New
5568 function.
5569 (linux_core_info_proc_mappings): Rewrite to use
5570 linux_read_core_file_mappings.
5571 (linux_init_abi): Register linux_read_core_file_mappings.
5572
5573 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5574
5575 * arch-utils.c (default_read_core_file_mappings): New function.
5576 * arch-utils.c (default_read_core_file_mappings): Declare.
5577 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5578 * gdbarch.h, gdbarch.c: Regenerate.
5579
5580 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5581
5582 PR corefiles/25631
5583 * corelow.c (core_target:xfer_partial): Revise
5584 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5585 case after first checking the stratum beneath the core
5586 target.
5587 (has_all_memory): Return true.
5588 * target.c (raw_memory_xfer_partial): Revise comment
5589 regarding use of has_all_memory.
5590
5591 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5592
5593 * exec.h (section_table_xfer_memory): Revise declaration,
5594 replacing section name parameter with an optional callback
5595 predicate.
5596 * exec.c (section_table_xfer_memory): Likewise.
5597 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5598 of section_table_xfer_memory.
5599
5600 2020-07-22 Tom Tromey <tromey@adacore.com>
5601
5602 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5603 lookup_symbol_search_name.
5604
5605 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5606
5607 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5608 redundant local variable.
5609 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5610 reference, not pointer, update code accordingly.
5611
5612 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5613 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5614
5615 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5616 * jit.c (jit_breakpoint_re_set_internal): Use the
5617 `skip_jit_symbol_lookup` field.
5618
5619 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5620 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5621
5622 * jit.c (jit_read_descriptor): Define the descriptor address once,
5623 use twice.
5624 (jit_breakpoint_deleted): Move the declaration of the loop variable
5625 `iter` into the loop header.
5626 (jit_breakpoint_re_set_internal): Move the declaration of the local
5627 variable `objf_data` to the first point of definition.
5628 (jit_event_handler): Move the declaration of local variables
5629 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5630 Rename `objf` to `jited`.
5631
5632 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5635 Remove.
5636 * jit.c (get_jiter_objfile_data): Update.
5637
5638 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5639 Simon Marchi <simon.marchi@polymtl.ca>
5640
5641 * jit.c (struct jit_program_space_data): Remove.
5642 (jit_program_space_key): Remove.
5643 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5644 stuff.
5645 (get_jit_program_space_data): Remove.
5646 (jit_breakpoint_deleted): Iterate on all of the program space's
5647 objfiles.
5648 (jit_inferior_init): Likewise.
5649 (jit_breakpoint_re_set_internal): Likewise. Also change return
5650 type to void.
5651 (jit_breakpoint_re_set): Pass current_program_space to
5652 jit_breakpoint_re_set_internal.
5653
5654 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 * jit.h (struct jiter_objfile_data) <cached_code_address,
5657 jit_breakpoint>: Move to here from ...
5658 * jit.c (jit_program_space_data): ... here.
5659 (jiter_objfile_data::~jiter_objfile_data): Update.
5660 (jit_breakpoint_deleted): Update.
5661 (jit_breakpoint_re_set_internal): Update.
5662
5663 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5666 checks.
5667 (jit_read_descriptor): Remove NULL check.
5668 (jit_event_handler): Add an assertion.
5669
5670 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * jit.h (struct jit_objfile_data): Split into...
5673 (struct jiter_objfile_data): ... this ...
5674 (struct jited_objfile_data): ... and this.
5675 * objfiles.h (struct objfile) <jit_data>: Remove.
5676 <jiter_data, jited_data>: New fields.
5677 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5678 (jiter_objfile_data::~jiter_objfile_data): ... this.
5679 (get_jit_objfile_data): Rename to ...
5680 (get_jiter_objfile_data): ... this.
5681 (add_objfile_entry): Update.
5682 (jit_read_descriptor): Use get_jiter_objfile_data.
5683 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5684 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5685 (jit_inferior_exit_hook): Use objfile's jited_data field.
5686
5687 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * jit.h: Forward-declare `struct minimal_symbol`.
5690 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5691 constructor, destructor, and an objfile* field.
5692 * jit.c (jit_objfile_data): Remove.
5693 (struct jit_objfile_data): Migrate from here to jit.h.
5694 (jit_objfile_data::~jit_objfile_data): New destructor
5695 implementation with code moved from free_objfile_data.
5696 (free_objfile_data): Delete.
5697 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5698 (jit_find_objf_with_entry_addr): Ditto.
5699 (jit_inferior_exit_hook): Ditto.
5700 (_initialize_jit): Remove the call to
5701 register_objfile_data_with_cleanup.
5702 * objfiles.h (struct objfile) <jit_data>: New field.
5703
5704 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5705
5706 * jit.h: Forward-declare `struct objfile`.
5707 (jit_event_handler): Add a second parameter, the JITer objfile.
5708 * jit.c (jit_read_descriptor): Change the signature to take the
5709 JITer objfile as an argument instead of the jit_program_space_data.
5710 (jit_inferior_init): Update the call to jit_read_descriptor.
5711 (jit_event_handler): Use the new JITer objfile argument when calling
5712 jit_read_descriptor.
5713 * breakpoint.c (handle_jit_event): Update the call to
5714 jit_event_handler to pass the JITer objfile.
5715
5716 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5717
5718 * gdbarch.c: Regenerate.
5719 * gdbarch.h: Regenerate.
5720 * gdbarch.sh (handle_segmentation_fault): Remove method.
5721 * infrun.c (handle_segmentation_fault): Remove.
5722 (print_signal_received_reason): Remove call to
5723 handle_segmentation_fault.
5724
5725 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5726
5727 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5728 Rename to sparc64_linux_report_signal_info and add siggnal
5729 argument.
5730 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5731 instead of sparc64_linux_handle_segmentation_fault.
5732
5733 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5734
5735 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5736 i386_linux_report_signal_info instead of
5737 i386_linux_handle_segmentation_fault.
5738 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5739 to i386_linux_report_signal_info and add siggnal argument.
5740 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5741 of i386_linux_handle_segmentation_fault.
5742 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5743 to i386_linux_report_signal_info and add siggnal argument.
5744
5745 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5746
5747 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5748 hook if present.
5749
5750 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5751
5752 * gdbarch.c: Regenerate.
5753 * gdbarch.h: Regenerate.
5754 * gdbarch.sh (report_signal_info): New method.
5755 * infrun.c (print_signal_received_reason): Invoke gdbarch
5756 report_signal_info hook if present.
5757
5758 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * python/py-registers.c : Add 'unordered_map' include.
5761 (gdbpy_new_reggroup): Renamed to...
5762 (gdbpy_get_reggroup): ...this. Update to only create register
5763 group descriptors when needed.
5764 (gdbpy_reggroup_iter_next): Update.
5765
5766 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * python/py-registers.c (gdbpy_register_object_data): New static
5769 global.
5770 (gdbpy_register_object_data_init): New function.
5771 (gdbpy_new_register_descriptor): Renamed to...
5772 (gdbpy_get_register_descriptor): ...this, and update to reuse
5773 existing register descriptors where possible.
5774 (gdbpy_register_descriptor_iter_next): Update.
5775 (gdbpy_initialize_registers): Register new gdbarch data.
5776
5777 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * linux-nat.c (stopped_pids): Make static.
5780
5781 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 PR ada/26235
5784 * gdbtypes.c (ada_discrete_type_low_bound,
5785 ada_discrete_type_high_bound): Handle undefined bounds.
5786
5787 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5788
5789 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5790 declaration.
5791 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5792 function.
5793
5794 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5795
5796 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5797 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5798 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5799 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5800 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5801 method.
5802
5803 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5804
5805 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5806 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5807 which are deprecated in Guile 3.0.
5808 * configure.ac (try_guile_versions): Add "guile-3.0".
5809 * configure (try_guile_versions): Regenerate.
5810 * NEWS: Update entry.
5811
5812 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5813 Doug Evans <dje@google.com>
5814
5815 PR gdb/21104
5816 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5817 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5818 USING_GUILE_BEFORE_2_2.
5819 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5820 Change type to 'scm_t_port_type *'.
5821 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5822 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5823 parameter and honor it. Update callers.
5824 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5825 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5826 functions.
5827 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5828 USING_GUILE_BEFORE_2_2.
5829 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5830 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5831 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5832 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5833 and 'SCM_PORT_TYPE'.
5834 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5835 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5836 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5837 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5838 [!USING_GUILE_BEFORE_2_2]: New functions.
5839 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5840 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5841 'gdbscm_memory_port_read'.
5842 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5843 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5844 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5845 function.
5846 (ioscm_init_memory_port): Remove.
5847 (ioscm_init_memory_port_stream): New function
5848 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5849 function.
5850 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5851 Return scm_from_uint (0).
5852 (gdbscm_set_memory_port_read_buffer_size_x)
5853 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5854 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5855 Return scm_from_uint (0).
5856 (gdbscm_set_memory_port_write_buffer_size_x)
5857 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5858 * configure.ac (try_guile_versions): Add "guile-2.2".
5859 * configure: Regenerate.
5860 * NEWS: Add entry.
5861
5862 2020-07-18 Tom Tromey <tom@tromey.com>
5863
5864 * linux-nat.c (linux_multi_process): Remove.
5865 (linux_nat_target::supports_multi_process): Return true.
5866
5867 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5870 (riscv_lookup_target_description): Return pointer out of
5871 unique_ptr.
5872 * target-descriptions.c (allocate_target_description): Add
5873 comment.
5874 (target_desc_deleter::operator()): Likewise.
5875 * target-descriptions.h (struct target_desc_deleter): Moved to
5876 gdbsupport/tdesc.h.
5877 (target_desc_up): Likewise.
5878
5879 2020-07-17 Tom Tromey <tromey@adacore.com>
5880
5881 * linux-nat.c (linux_nat_target::supports_non_stop)
5882 (linux_nat_target::always_non_stop_p): Use "true".
5883 (linux_nat_target::supports_disable_randomization): Use "true" and
5884 "false".
5885
5886 2020-07-16 Caroline Tice <cmtice@google.com>
5887
5888 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5889 (RNGLIST_HEADER_SIZE64): New constant definition.
5890 (struct dwop_section_names): Add rnglists_dwo.
5891 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5892 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5893 (struct dwo_sections): Add rnglists field.
5894 (read_attribut_reprocess): Add tag parameter.
5895 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5896 (cu_debug_rnglists_section): New function (decl & definition).
5897 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5898 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5899 die whose range is being checked; get rnglist section from
5900 cu_debug_rnglists_section, to get from either objfile or dwo file as
5901 appropriate. Add cases for DW_RLE_base_addressx,
5902 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5903 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5904 test inside if-condition and updating complaint message.
5905 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5906 dwarf2_rnglists_process.
5907 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5908 dwarf2_ranges_process.
5909 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5910 need_ranges_base and update comment appropriately. Also pass die tag
5911 to dwarf2_ranges_read.
5912 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5913 need_ranges_base and update comment appropriately. Also pass die tag
5914 to dwarf2_ranges_process.
5915 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5916 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5917 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5918 need_ranges_base and update comment appropriately. Also pass die tag
5919 to read_attribute_reprocess and dwarf2_ranges_read.
5920 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5921 and update function comment appropriately.
5922 (read_loclist_index): Call read_loclists_rnglists_header instead of
5923 read_loclist_header.
5924 (read_rnglist_index): New function.
5925 (read_attribute_reprocess): Add tag parameter. Add code for
5926 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5927 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5928
5929 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5930
5931 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5932 being resolved.
5933
5934 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5935
5936 * arch-utils.c (show_architecture): Update formatting of messages.
5937
5938 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * gdbtypes.h (struct type) <bounds>: Handle array and string
5941 types.
5942 * ada-lang.c (assign_aggregate): Use type::bounds on
5943 array/string type.
5944 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5945 * c-varobj.c (c_number_of_children): Likewise.
5946 (c_describe_child): Likewise.
5947 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5948 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5949 (f_type_print_base): Likewise.
5950 * f-valprint.c (f77_array_offset_tbl): Likewise.
5951 (f77_get_upperbound): Likewise.
5952 (f77_print_array_1): Likewise.
5953 * guile/scm-type.c (gdbscm_type_range): Likewise.
5954 * m2-typeprint.c (m2_array): Likewise.
5955 (m2_is_long_set_of_type): Likewise.
5956 * m2-valprint.c (get_long_set_bounds): Likewise.
5957 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5958 * python/py-type.c (typy_range): Likewise.
5959 * rust-lang.c (rust_internal_print_type): Likewise.
5960 * type-stack.c (type_stack::follow_types): Likewise.
5961 * valarith.c (value_subscripted_rvalue): Likewise.
5962 * valops.c (value_cast): Likewise.
5963
5964 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5965
5966 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5967 callers to use the equivalent accessor methods.
5968
5969 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5972 (struct type) <bit_stride>: New method.
5973 (TYPE_BIT_STRIDE): Remove.
5974 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5975
5976 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5979 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5980 callers to use the equivalent accessor methods instead.
5981
5982 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5983
5984 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5985 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5986 callers to use the equivalent accessor methods instead.
5987
5988 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5989
5990 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5991 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5992 to use dynamic_prop::kind.
5993
5994 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5995
5996 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5997 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5998 to get the bound property's kind and check against
5999 PROP_UNDEFINED.
6000
6001 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6002
6003 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6004 all callers to use type::range_bounds followed by
6005 dynamic_prop::{low,high}.
6006
6007 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6010 const_val, set_const_val, baton, set_locexpr, set_loclist,
6011 set_addr_offset, variant_parts, set_variant_parts,
6012 original_type, set_original_type>: New methods.
6013 <kind>: Rename to...
6014 <m_kind>: ... this. Update all users to use the new methods
6015 instead.
6016 <data>: Rename to...
6017 <m_data>: ... this. Update all users to use the new methods
6018 instead.
6019
6020 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * gdbtypes.c (get_discrete_bounds): Return failure if
6023 the range type's bounds are not both defined and constant
6024 values.
6025 (get_array_bounds): Update comment. Remove undefined bound check.
6026
6027 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6030 the type::bounds method directly.
6031
6032 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6033
6034 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6035 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6036 are used to set the range type's bounds to use set_bounds.
6037
6038 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6039
6040 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6041
6042 2020-07-10 Pedro Alves <pedro@palves.net>
6043
6044 * gdbthread.h (inferior_ref): Define.
6045 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6046 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6047 * thread.c
6048 (scoped_restore_current_thread::restore):
6049 Adjust to gdb::ref_ptr.
6050 (scoped_restore_current_thread::~scoped_restore_current_thread):
6051 Remove manual decref handling.
6052 (scoped_restore_current_thread::scoped_restore_current_thread):
6053 Adjust to use
6054 inferior_ref::new_reference/thread_info_ref::new_reference.
6055 Incref the thread before calling get_frame_id instead of after.
6056 Let TARGET_CLOSE_ERROR propagate.
6057
6058 2020-07-10 Pedro Alves <pedro@palves.net>
6059
6060 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6061 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6062 NOT_AVAILABLE_ERROR.
6063 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6064 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6065
6066 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6067 Pedro Alves <pedro@palves.net>
6068
6069 PR gdb/26199
6070 * infrun.c (threads_are_resumed_pending_p): Delete.
6071 (do_target_wait): Remove threads_are_executing and
6072 threads_are_resumed_pending_p checks from the inferior_matches
6073 lambda. Update comments.
6074
6075 2020-07-10 Pedro Alves <pedro@palves.net>
6076
6077 PR gdb/26199
6078 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6079 executing threads.
6080
6081 2020-07-10 Pedro Alves <pedro@palves.net>
6082
6083 PR gdb/26199
6084 * infrun.c (handle_no_resumed): Handle multiple targets.
6085
6086 2020-07-10 Pedro Alves <pedro@palves.net>
6087
6088 PR gdb/26199
6089 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6090 target_is_async_p.
6091
6092 2020-07-10 Pedro Alves <pedro@palves.net>
6093
6094 PR gdb/26199
6095 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6096 threads, not all threads.
6097
6098 2020-07-10 Pedro Alves <pedro@palves.net>
6099
6100 PR gdb/26199
6101 * remote.c (remote_target::open_1): Pass remote target pointer as
6102 data to create_async_event_handler.
6103 (remote_async_inferior_event_handler): Mark async event handler
6104 before returning if the remote target still has either pending
6105 events or unacknowledged notifications.
6106
6107 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6108
6109 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6110 declaration.
6111 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6112 function.
6113
6114 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6115
6116 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6117 inferior_ptid.
6118
6119 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6120
6121 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6122 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6123 AT_FREEBSD_PS_STRINGS.
6124
6125 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6126
6127 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6128 of debugfile path on Windows.
6129
6130 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6131
6132 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6133 argument to 'data'.
6134
6135 2020-07-08 Tom Tromey <tromey@adacore.com>
6136
6137 * ada-lang.c (ada_exception_message_1): Use read_memory.
6138
6139 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 PR python/22748
6142 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6143 special handling for inline frames.
6144 * findvar.c (value_of_register_lazy): Skip inline frames when
6145 creating lazy register values.
6146 * frame.c (frame_id_computed_p): Delete definition.
6147 * frame.h (frame_id_computed_p): Delete declaration.
6148
6149 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6150
6151 * NEWS: Mention additions to Python API.
6152 * python/py-arch.c (archpy_register_groups): New function.
6153 (arch_object_methods): Add 'register_groups' method.
6154 * python/py-registers.c (reggroup_iterator_object): New struct.
6155 (reggroup_object): New struct.
6156 (gdbpy_new_reggroup): New function.
6157 (gdbpy_reggroup_to_string): New function.
6158 (gdbpy_reggroup_name): New function.
6159 (gdbpy_reggroup_iter): New function.
6160 (gdbpy_reggroup_iter_next): New function.
6161 (gdbpy_new_reggroup_iterator): New function
6162 (gdbpy_initialize_registers): Register new types.
6163 (reggroup_iterator_object_type): Define new Python type.
6164 (gdbpy_reggroup_getset): New static global.
6165 (reggroup_object_type): Define new Python type.
6166 * python/python-internal.h
6167
6168 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6169
6170 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6171 * python/py-arch.c (archpy_registers): New function.
6172 (arch_object_methods): Add 'registers' method.
6173 * python/py-registers.c: New file.
6174 * python/python-internal.h
6175 (gdbpy_new_register_descriptor_iterator): Declare.
6176 (gdbpy_initialize_registers): Declare.
6177 * python/python.c (do_start_initialization): Call
6178 gdbpy_initialize_registers.
6179 * NEWS: Mention additions to the Python API.
6180
6181 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6182
6183 * NEWS: Mention new Python API method.
6184 * python/py-unwind.c (pending_framepy_architecture): New function.
6185 (pending_frame_object_methods): Add architecture method.
6186
6187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * gdbarch.c: Regenerate.
6190 * gdbarch.h: Regenerate.
6191 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6192 (gdbarch_data): Use internal_error for the case where
6193 deprecated_set_gdbarch_data was originally needed.
6194 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6195 and use passed in obstack.
6196 (libunwind_frame_set_descr): Should no longer get back NULL from
6197 gdbarch_data.
6198 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6199 type.
6200 * user-regs.c (user_regs_init): Update parameters, and use passed
6201 in obstack.
6202 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6203 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6204
6205 2020-07-06 Tom de Vries <tdevries@suse.de>
6206
6207 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6208 End-Of-Sequence in lte_is_less_than.
6209 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6210 "gdb: Don't reorder line table entries too much when sorting".
6211
6212 2020-07-06 Tom de Vries <tdevries@suse.de>
6213
6214 PR tui/26205
6215 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6216
6217 2020-07-05 Tom de Vries <tdevries@suse.de>
6218
6219 PR build/26187
6220 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6221 std::uncaught_exceptions instead of deprecated
6222 std::uncaught_exception.
6223
6224 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * macroexp.h (macro_stringify): Return
6227 gdb::unique_xmalloc_ptr<char>.
6228 * macroexp.c (macro_stringify): Likewise.
6229 * macrotab.c (fixup_definition): Update.
6230
6231 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6234 (lex_one_token): Update.
6235 * macroexp.c (struct macro_buffer) <release>: Return
6236 gdb::unique_xmalloc_ptr<char>.
6237 (macro_stringify): Update.
6238 (macro_expand): Update.
6239 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6240 * macroexp.h (macro_expand_next): Likewise.
6241
6242 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * macroexp.h (macro_lookup_ftype): Remove.
6245 (macro_expand, macro_expand_once, macro_expand_next): Remove
6246 lookup function parameters, add scope parameter.
6247 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6248 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6249 * macroscope.h (standard_macro_lookup): Change parameter type
6250 to macro_scope.
6251 * macroscope.c (standard_macro_lookup): Likewise.
6252 * c-exp.y (lex_one_token): Update.
6253 * macrocmd.c (macro_expand_command): Likewise.
6254 (macro_expand_once_command): Likewise.
6255
6256 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6257
6258 * inf-loop.c (inferior_event_handler): Remove client_data param.
6259 * inf-loop.h (inferior_event_handler): Likewise.
6260 * infcmd.c (step_1): Adjust.
6261 * infrun.c (proceed): Adjust.
6262 (fetch_inferior_event): Remove client_data param.
6263 (infrun_async_inferior_event_handler): Adjust.
6264 * infrun.h (fetch_inferior_event): Remove `void *` param.
6265 * linux-nat.c (handle_target_event): Adjust.
6266 * record-btrace.c (record_btrace_handle_async_inferior_event):
6267 Adjust.
6268 * record-full.c (record_full_async_inferior_event_handler):
6269 Adjust.
6270 * remote.c (remote_async_inferior_event_handler): Adjust.
6271
6272 2020-07-01 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6275 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6276
6277 2020-07-01 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6280 tui_gen_win_info.
6281 (tui_win_info::make_window): Merge with
6282 tui_gen_win_info::make_window.
6283 (tui_win_info::make_visible): Move from tui_gen_win_info.
6284 * tui/tui-win.c (tui_win_info::max_width): Move from
6285 tui_gen_win_info.
6286 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6287 type.
6288 <window_factory>: Likewise.
6289 * tui/tui-layout.c (tui_win_info::resize): Move from
6290 tui_gen_win_info.
6291 (make_standard_window): Change return type.
6292 (get_locator_window, tui_get_window_by_name): Likewise.
6293 (tui_layout_window::apply): Remove a cast.
6294 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6295 (struct tui_win_info): Merge with tui_gen_win_info.
6296 (struct tui_gen_win_info): Remove.
6297
6298 2020-07-01 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui-stack.h (struct tui_locator_window): Derive from
6301 tui_win_info.
6302 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6303 <can_box>: New method.
6304
6305 2020-07-01 Tom Tromey <tom@tromey.com>
6306
6307 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6308
6309 2020-07-01 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-regs.c (tui_data_window::display_registers_from)
6312 (tui_data_window::display_registers_from)
6313 (tui_data_window::first_data_item_displayed)
6314 (tui_data_window::delete_data_content_windows): Update.
6315 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6316 Remove.
6317 (tui_data_window::check_register_values): Update.
6318 (tui_data_item_window::rerender): Add parameters. Update.
6319 (tui_data_item_window::refresh_window): Remove.
6320 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6321 virtual.
6322 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6323 tui_gen_win_info.
6324 <refresh_window, max_height, min_height>: Remove.
6325 <rerender>: Add parameters.
6326 <x, y, visible>: New members.
6327 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6328 <m_item_width>: New member.
6329
6330 2020-07-01 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-regs.c (tui_data_window::show_register_group)
6333 (tui_data_window::check_register_values): Update.
6334 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6335 from item_no.
6336
6337 2020-07-01 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6340 useless "if".
6341
6342 2020-07-01 Tom Tromey <tom@tromey.com>
6343
6344 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6345 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6346
6347 2020-07-01 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6350 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6351 (struct tui_line_or_address): Move from tui-data.h.
6352 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6353 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6354 (tui_cmd_window, tui_source_window_base, tui_source_window)
6355 (tui_disasm_window): Don't declare.
6356 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6357 to tui-winsource.h.
6358 (SINGLE_KEY): Move to tui-stack.c.
6359
6360 2020-07-01 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6363 std::string.
6364 * tui/tui-regs.c (class tab_expansion_file): New.
6365 (tab_expansion_file::write): New method.
6366 (tui_register_format): Change return type. Use
6367 tab_expansion_file.
6368 (tui_get_register, tui_data_window::display_registers_from)
6369 (tui_data_item_window::rerender): Update.
6370 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6371 * tui/tui-io.c (tui_expand_tabs): Remove.
6372
6373 2020-07-01 Tom Tromey <tom@tromey.com>
6374
6375 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6376
6377 2020-07-01 Fangrui Song <maskray@google.com>
6378
6379 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6380
6381 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6382
6383 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6384 forms for DW_AT_associated and DW_AT_allocated attributes,
6385 which is already checked in function attr_to_dynamic_prop.
6386
6387 2020-06-30 Tom Tromey <tromey@adacore.com>
6388
6389 * dwarf2/read.c (quirk_rust_enum): Correctly call
6390 alloc_rust_variant for default-less enum.
6391
6392 2020-06-30 Tom Tromey <tromey@adacore.com>
6393
6394 PR build/26183:
6395 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6396 gdb::to_string.
6397
6398 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6399
6400 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6401 * gdbarch.h: Re-generate.
6402
6403 2020-06-28 Tom Tromey <tom@tromey.com>
6404
6405 * command.h (cmd_types): Remove.
6406 (cmd_type): Don't declare.
6407 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6408 typedef.
6409 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6410 * cli/cli-decode.c (cmd_type): Remove.
6411
6412 2020-06-27 Pedro Alves <palves@redhat.com>
6413
6414 * fork-child.c (prefork_hook): Adjust.
6415 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6416 Delete.
6417 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6418 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6419 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6420 Remove declarations.
6421 (struct inferior) <set_tty, tty>: New methods.
6422 (struct inferior) <terminal>: Rename to ...
6423 (struct inferior) <m_terminal>: ... this and make private.
6424 * main.c (captured_main_1): Adjust.
6425 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6426 (mi_cmd_inferior_tty_show): Adjust.
6427 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6428 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6429
6430 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6431
6432 * configure.ac: Add --enable-libctf: handle --disable-static
6433 properly.
6434 * acinclude.m4: sinclude ../config/enable.m4.
6435 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6436 (LIBCTF): Substitute in.
6437 (CTF_DEPS): New, likewise.
6438 (CLIBS): libctf needs symbols from libbfd: move earlier.
6439 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6440 flags.
6441 * ctfread.c: Surround in ENABLE_LIBCTF.
6442 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6443 * configure: Regenerate.
6444 * config.in: Likewise.
6445
6446 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6449
6450 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * inferior.h (struct inferior) <terminal>: Change type to
6453 gdb::unique_xmalloc_ptr<char>.
6454 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6455 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6456 field, adjust to unique pointer.
6457 (get_inferior_io_terminal): Adjust to unique pointer.
6458
6459 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6460
6461 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6462 registers, not just the known core set of registers.
6463
6464 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6467 fflags, frm, and fcsr registers.
6468 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6469 restore groups.
6470 (riscv_tdesc_unknown_reg): New function.
6471 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6472 tdesc_use_registers.
6473 * riscv-tdep.h (struct gdbarch_tdep): Add
6474 unknown_csrs_first_regnum, unknown_csrs_count,
6475 duplicate_fflags_regnum, duplicate_frm_regnum, and
6476 duplicate_fcsr_regnum fields.
6477
6478 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6481 callback, use the callback (when not null) to help number unknown
6482 registers.
6483 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6484 (tdesc_use_registers): Add extra parameter to declaration.
6485
6486 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6487
6488 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6489 in the file.
6490 (class riscv_pending_register_alias): Likewise.
6491 (riscv_register_feature::register_info): Change 'required_p' field
6492 to 'required', and change its type. Add 'check' member function.
6493 (riscv_register_feature::register_info::check): Define new member
6494 function.
6495 (riscv_xreg_feature): Change initialisation of 'required' field.
6496 (riscv_freg_feature): Likewise.
6497 (riscv_virtual_feature): Likewise.
6498 (riscv_csr_feature): Likewise.
6499 (riscv_check_tdesc_feature): Take extra parameter, the csr
6500 tdesc_feature, rewrite the function to use the new
6501 riscv_register_feature::register_info::check function.
6502 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6503
6504 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * features/Makefile: Remove all references to the deleted files
6507 below.
6508 * features/riscv/32bit-csr.c: Deleted.
6509 * features/riscv/32bit-csr.xml: Deleted.
6510 * features/riscv/64bit-csr.c: Deleted.
6511 * features/riscv/64bit-csr.xml: Deleted.
6512 * features/riscv/rebuild-csr-xml.sh: Deleted.
6513
6514 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6517 whitespace error for declaration of names member variable.
6518 (struct riscv_register_feature): Add new prefer_first_name member
6519 variable, and fix whitespace error in declaration of registers.
6520 (riscv_xreg_feature): Initialize prefer_first_name field.
6521 (riscv_freg_feature): Likewise.
6522 (riscv_virtual_feature): Likewise.
6523 (riscv_csr_feature): Likewise.
6524 (riscv_register_name): Expand on comments. Remove register name
6525 modifications for CSR and virtual registers.
6526
6527 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6528
6529 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6530 errors.
6531
6532 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6535 riscv-opc.h.
6536 (class riscv_pending_register_alias): New class.
6537 (riscv_check_tdesc_feature): Take vector of pending aliases and
6538 populate it as appropriate.
6539 (riscv_setup_register_aliases): Delete.
6540 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6541 to riscv_check_tdesc_feature in all cases. Use the vector to
6542 create the register aliases.
6543
6544 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6545
6546 * sol2-tdep.c (sol2_static_transform_name): Remove.
6547 (sol2_init_abi): Don't register it.
6548 * gdbarch.sh (static_transform_name): Remove.
6549 * gdbarch.c, gdbarch.h: Regenerate.
6550
6551 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6552 gdbarch_static_transform_name.
6553 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6554 * stabsread.c (define_symbol) <'X'>: Remove.
6555 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6556 handling.
6557 <'V'>: Likewise.
6558 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6559 <'S'>: Remove call to gdbarch_static_transform_name.
6560
6561 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6562
6563 * procfs.c (procfs_pre_trace): New function.
6564 (procfs_target::create_inferior): Pass it to fork_inferior.
6565
6566 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6567
6568 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6569 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6570 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6571 sol2-tdep.o, sparc-sol2-tdep.o.
6572 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6573 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6574 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6575 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6576
6577 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6578
6579 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6580 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6581 Call sol2_init_abi.
6582 Remove calls to set_gdbarch_skip_solib_resolver,
6583 set_gdbarch_core_pid_to_str.
6584 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6585 (i386_sol2_static_transform_name): Remove.
6586 (i386_sol2_init_abi): Call sol2_init_abi.
6587 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6588 set_gdbarch_static_transform_name,
6589 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6590 Use sol2_sigtramp_p.
6591 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6592 (sol2_sigtramp_p): New function.
6593 (sol2_static_transform_name): New function.
6594 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6595 (sol2_init_abi): New function.
6596 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6597 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6598 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6599 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6600 (sparc_sol2_static_transform_name): Remove.
6601 (sparc32_sol2_init_abi): Call sol2_init_abi.
6602 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6603 set_gdbarch_static_transform_name,
6604 set_gdbarch_skip_solib_resolver,
6605 set_gdbarch_core_pid_to_str.
6606 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6607 (sparc_sol2_static_transform_name): Remove
6608 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6609 call sol2_sigtramp_p.
6610 (sparc64_sol2_init_abi): Call sol2_init_abi.
6611 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6612 set_gdbarch_static_transform_name,
6613 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6614
6615 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6616
6617 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6618 * exec.c (validate_exec_file): If from_tty, set both
6619 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6620 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6621 and from_tty, unconditionally ask a confirmation.
6622
6623 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * target-descriptions.c (tdesc_architecture_name): Protect against
6626 NULL pointer dereference.
6627 (maint_print_xml_tdesc_cmd): New function.
6628 (_initialize_target_descriptions): Register new 'maint print
6629 xml-tdesc' command and give it the filename completer.
6630 * NEWS: Mention new 'maint print xml-tdesc' command.
6631
6632 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6633
6634 * target-descriptions.c (class tdesc_compatible_info): New class.
6635 (struct target_desc): Change type of compatible vector.
6636 (tdesc_compatible_p): Update for change in type of
6637 target_desc::compatible.
6638 (tdesc_compatible_info_list): New function.
6639 (tdesc_compatible_info_arch_name): New function.
6640 (tdesc_add_compatible): Update for change in type of
6641 target_desc::compatible.
6642 (print_c_tdesc::visit_pre): Likewise.
6643
6644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6647 whitespace to underscore.
6648 (maint_print_c_tdesc_cmd): Use fake filename for target
6649 descriptions that came from the target.
6650 (_initialize_target_descriptions): Add filename command completion
6651 for 'maint print c-tdesc'.
6652
6653 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6656 lines.
6657
6658 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6659
6660 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6661 lines.
6662 (dwarf2_find_location_expression): Likewise.
6663 (call_site_parameter_matches): Likewise.
6664 (dwarf2_compile_expr_to_ax): Likewise.
6665 (disassemble_dwarf_expression): Likewise.
6666 (loclist_describe_location): Likewise.
6667
6668 2020-06-23 Pedro Alves <palves@redhat.com>
6669
6670 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6671 progspace-and-thread.h. Include scoped-mock-context.h instead.
6672 (register_to_value_test): Use scoped_mock_context.
6673 * regcache.c: Include "scoped-mock-context.h".
6674 (cooked_read_test): Don't error out if a target is already pushed.
6675 Use scoped_mock_context. Adjust.
6676 * scoped-mock-context.h: New file.
6677
6678 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6679
6680 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6681 initializer.
6682 (ada_language::is_string_type_p): New member function.
6683 * c-lang.c (c_language_data): Delete la_is_string_type_p
6684 initializer.
6685 (cplus_language_data): Likewise.
6686 (asm_language_data): Likewise.
6687 (minimal_language_data): Likewise.
6688 * d-lang.c (d_language_data): Likewise.
6689 * f-lang.c (f_is_string_type_p): Delete function, implementation
6690 moved to f_language::is_string_type_p.
6691 (f_language_data): Delete la_is_string_type_p initializer.
6692 (f_language::is_string_type_p): New member function,
6693 implementation from f_is_string_type_p.
6694 * go-lang.c (go_is_string_type_p): Delete function, implementation
6695 moved to go_language::is_string_type_p.
6696 (go_language_data): Delete la_is_string_type_p initializer.
6697 (go_language::is_string_type_p): New member function,
6698 implementation from go_is_string_type_p.
6699 * language.c (language_defn::is_string_type_p): Define new member
6700 function.
6701 (default_is_string_type_p): Make static, add comment copied from
6702 header file.
6703 (unknown_language_data): Delete la_is_string_type_p initializer.
6704 (unknown_language::is_string_type_p): New member function.
6705 (auto_language_data): Delete la_is_string_type_p initializer.
6706 (auto_language::is_string_type_p): New member function.
6707 * language.h (language_data): Delete la_is_string_type_p field.
6708 (language_defn::is_string_type_p): Declare new function.
6709 (default_is_string_type_p): Delete desclaration, move comment to
6710 definition.
6711 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6712 moved to m2_language::is_string_type_p.
6713 (m2_language_data): Delete la_is_string_type_p initializer.
6714 (m2_language::is_string_type_p): New member function,
6715 implementation from m2_is_string_type_p.
6716 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6717 initializer.
6718 * opencl-lang.c (opencl_language_data): Likewise.
6719 * p-lang.c (pascal_is_string_type_p): Delete function,
6720 implementation moved to pascal_language::is_string_type_p.
6721 (pascal_language_data): Delete la_is_string_type_p initializer.
6722 (pascal_language::is_string_type_p): New member function,
6723 implementation from pascal_is_string_type_p.
6724 * rust-lang.c (rust_is_string_type_p): Delete function,
6725 implementation moved to rust_language::is_string_type_p.
6726 (rust_language_data): Delete la_is_string_type_p initializer.
6727 (rust_language::is_string_type_p): New member function,
6728 implementation from rust_is_string_type_p.
6729 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6730 is_string_type_p.
6731
6732 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 * ada-lang.c (ada_language_data): Delete la_print_typedef
6735 initializer.
6736 (ada_language::print_typedef): New member function.
6737 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6738 (cplus_language_data): Likewise.
6739 (asm_language_data): Likewise.
6740 (minimal_language_data): Likewise.
6741 * d-lang.c (d_language_data): Likewise.
6742 * f-lang.c (f_language_data): Likewise.
6743 (f_language::print_typedef): New member function.
6744 * go-lang.c (go_language_data): Delete la_print_typedef
6745 initializer.
6746 * language.c (language_defn::print_typedef): Define member
6747 function.
6748 (unknown_language_data): Delete la_print_typedef initializer.
6749 (unknown_language::print_typedef): New member function.
6750 (auto_language_data): Delete la_print_typedef initializer.
6751 (auto_language::print_typedef): New member function.
6752 * language.h (language_data): Delete la_print_typedef field.
6753 (language_defn::print_typedef): Declare new member function.
6754 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6755 (default_print_typedef): Delete declaration.
6756 * m2-lang.c (m2_language_data): Delete la_print_typedef
6757 initializer.
6758 (m2_language::print_typedef): New member function.
6759 * objc-lang.c (objc_language_data): Delete la_print_typedef
6760 initializer.
6761 * opencl-lang.c (opencl_language_data): Likewise.
6762 * p-lang.c (pascal_language_data): Likewise.
6763 (pascal_language::print_typedef): New member function.
6764 * rust-lang.c (rust_print_typedef): Delete function,
6765 implementation moved to rust_language::print_typedef.
6766 (rust_language): Delete la_print_typedef initializer.
6767 (rust_language::print_typedef): New member function,
6768 implementation from rust_print_typedef.
6769 * typeprint.c (default_print_typedef): Delete.
6770
6771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6774 (ada_language::printstr): New member function.
6775 * c-lang.c (c_language_data): Delete la_printstr initializer.
6776 (cplus_language_data): Likewise.
6777 (asm_language_data): Likewise.
6778 (minimal_language_data): Likewise.
6779 * d-lang.c (d_language_data): Likewise.
6780 * f-lang.c (f_printstr): Rename to f_language::printstr.
6781 (f_language_data): Delete la_printstr initializer.
6782 (f_language::printstr): New member function, implementation from
6783 f_printstr.
6784 * go-lang.c (go_language_data): Delete la_printstr initializer.
6785 * language.c (language_defn::printstr): Define new member
6786 function.
6787 (unk_lang_printstr): Delete.
6788 (unknown_language_data): Delete la_printstr initializer.
6789 (unknown_language::printstr): New member function.
6790 (auto_language_data): Delete la_printstr initializer.
6791 (auto_language::printstr): New member function.
6792 * language.h (language_data): Delete la_printstr field.
6793 (language_defn::printstr): Declare new member function.
6794 (LA_PRINT_STRING): Update call to printstr.
6795 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6796 (m2_language_data): Delete la_printstr initializer.
6797 (m2_language::printstr): New member function, implementation from
6798 m2_printstr.
6799 * objc-lang.c (objc_language_data): Delete la_printstr
6800 initializer.
6801 * opencl-lang.c (opencl_language_data): Likewise.
6802 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6803 (pascal_language_data): Delete la_printstr initializer.
6804 (pascal_language::printstr): New member function, implementation
6805 from pascal_printstr.
6806 * p-lang.h (pascal_printstr): Delete declaration.
6807 * rust-lang.c (rust_printstr): Update header comment.
6808 (rust_language_data): Delete la_printstr initializer.
6809 (rust_language::printstr): New member function.
6810
6811 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6814 (ada_language::printchar): New member function.
6815 * c-lang.c (c_language_data): Delete la_printchar initializer.
6816 (cplus_language_data): Likewise.
6817 (asm_language_data): Likewise.
6818 (minimal_language_data): Likewise.
6819 * d-lang.c (d_language_data): Likewise.
6820 * f-lang.c (f_printchar): Rename to f_language::printchar.
6821 (f_language_data): Delete la_printchar initializer.
6822 (f_language::printchar): New member function, implementation from
6823 f_printchar.
6824 * go-lang.c (go_language_data): Delete la_printchar initializer.
6825 * language.c (unk_lang_printchar): Delete.
6826 (language_defn::printchar): Define new member function.
6827 (unknown_language_data): Delete la_printchar initializer.
6828 (unknown_language::printchar): New member function.
6829 (auto_language_data): Delete la_printchar initializer.
6830 (auto_language::printchar): New member function.
6831 * language.h (language_data): Delete la_printchar field.
6832 (language_defn::printchar): Declare new member function.
6833 (LA_PRINT_CHAR): Update call to printchar.
6834 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6835 (m2_language::printchar): New member function.
6836 * objc-lang.c (objc_language_data): Delete la_printchar
6837 initializer.
6838 * opencl-lang.c (opencl_language_data): Likewise.
6839 * p-lang.c (pascal_language_data): Delete la_printchar
6840 initializer.
6841 (pascal_language::printchar): New member function.
6842 * rust-lang.c (rust_printchar): Rename to
6843 rust_language::printchar.
6844 (rust_language_data): Delete la_printchar initializer.
6845 (rust_language::printchar): New member function, implementation
6846 from rust_printchar.
6847
6848 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6851 (ada_language_data): Delete la_emitchar initializer.
6852 (ada_language::emitchar): New member function, implementation from
6853 emit_char.
6854 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6855 (cplus_language_data): Likewise.
6856 (asm_language_data): Likewise.
6857 (minimal_language_data): Likewise.
6858 * d-lang.c (d_language_data): Likewise.
6859 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6860 (f_language_data): Delete la_emitchar initializer.
6861 (f_language::emitchar): New member function, implementation from
6862 f_emit_char.
6863 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6864 * language.c (unk_lang_emit_char): Delete.
6865 (language_defn::emitchar): New member function definition.
6866 (unknown_language_data): Delete la_emitchar initializer.
6867 (unknown_language::emitchar): New member function.
6868 (auto_language_data): Delete la_emitchar initializer.
6869 (auto_language::emitchar): New member function.
6870 * language.h (language_data): Delete la_emitchar field.
6871 (language_defn::emitchar): New member field declaration.
6872 (LA_EMIT_CHAR): Update call to emitchar.
6873 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6874 (m2_language_data): Delete la_emitchar initializer.
6875 (m2_language::emitchar): New member function, implementation from
6876 m2_emit_char.
6877 * objc-lang.c (objc_language_data): Delete la_emitchar
6878 initializer.
6879 * opencl-lang.c (opencl_language_data): Likewise.
6880 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6881 (pascal_language_data): Delete la_emitchar initializer.
6882 (pascal_language::emitchar): New member function, implementation
6883 from pascal_emit_char.
6884 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6885 (rust_language_data): Delete la_emitchar initializer.
6886 (rust_language::emitchar): New member function, implementation
6887 from rust_emitchar.
6888
6889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6890
6891 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6892 (ada_language_data): Delete la_post_parser initializer.
6893 (ada_language::post_parser): New member function.
6894 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6895 (cplus_language_data): Likewise.
6896 (asm_language_data): Likewise.
6897 (minimal_language_data): Likewise.
6898 * d-lang.c (d_language_data): Likewise.
6899 * f-lang.c (f_language_data): Likewise.
6900 * go-lang.c (go_language_data): Likewise.
6901 * language.c (unknown_language_data): Likewise.
6902 (auto_language_data): Likewise.
6903 * language.h (language_data): Delete la_post_parser field.
6904 (language_defn::post_parser): New member function.
6905 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6906 * objc-lang.c (objc_language_data): Likewise.
6907 * opencl-lang.c (opencl_language_data): Likewise.
6908 * p-lang.c (pascal_language_data): Likewise.
6909 * parse.c (parse_exp_in_context): Update call to post_parser.
6910 (null_post_parser): Delete definition.
6911 * parser-defs.h (null_post_parser): Delete declaration.
6912 * rust-lang.c (rust_language_data): Delete la_post_parser
6913 initializer.
6914
6915 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * ada-lang.c (parse): Rename to ada_language::parser.
6918 (ada_language_data): Delete la_parser initializer.
6919 (ada_language::parser): New member function, implementation from
6920 parse.
6921 * c-lang.c (c_language_data): Delete la_parser initializer.
6922 (cplus_language_data): Likewise.
6923 (asm_language_data): Likewise.
6924 (minimal_language_data): Likewise.
6925 * d-lang.c (d_language_data): Likewise.
6926 (d_language::parser): New member function.
6927 * f-lang.c (f_language_data): Delete la_parser initializer.
6928 (f_language::parser): New member function.
6929 * go-lang.c (go_language_data): Delete la_parser initializer.
6930 (go_language::parser): New member function.
6931 * language.c (unk_lang_parser): Delete.
6932 (language_defn::parser): Define new member function.
6933 (unknown_language_data): Delete la_parser initializer.
6934 (unknown_language::parser): New member function.
6935 (auto_language_data): Delete la_parser initializer.
6936 (auto_language::parser): New member function.
6937 * language.h (language_data): Delete la_parser field.
6938 (language_defn::parser): Declare new member function.
6939 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6940 (m2_language::parser): New member function.
6941 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6942 * opencl-lang.c (opencl_language_data): Likewise.
6943 * p-lang.c (pascal_language_data): Likewise.
6944 (pascal_language::parser): New member function.
6945 * parse.c (parse_exp_in_context): Update call to parser.
6946 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6947 (rust_language::parser): New member function.
6948
6949 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6950
6951 * top.c (print_gdb_configuration): Print --with-python-libdir
6952 configuration value.
6953
6954 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6955
6956 * NEWS: Mention change to the alias command.
6957
6958 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6959
6960 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6961 (alias_command_completer)
6962 (make_alias_options_def_group): New functions.
6963 (alias_opts, alias_option_defs): New struct and array.
6964 (alias_usage_error): Update usage.
6965 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6966 Use option framework.
6967 (_initialize_cli_cmds): Update alias command help.
6968 Update aliases command help.
6969 (show_user):
6970 Add NULL for new default_args lookup_cmd argument.
6971 (valid_command_p): Rename to validate_aliased_command.
6972 Add NULL for new default_args lookup_cmd argument. Verify that the
6973 aliased_command has no default args.
6974 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6975 (lookup_cmd_1, lookup_cmd): New argument default_args.
6976 (add_alias_cmd):
6977 Add NULL for new default_args lookup_cmd argument.
6978 (print_help_for_command): Show default args under the layout
6979 alias some_alias = some_aliased_cmd some_alias_default_arg.
6980 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6981 xfree default_args in destructor.
6982 * cli/cli-script.c (process_next_line, do_define_command):
6983 Add NULL for new default_args lookup_cmd argument.
6984 * command.h: Declare new default_args argument in lookup_cmd
6985 and lookup_cmd_1.
6986 * completer.c (complete_line_internal_1):
6987 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6988 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6989 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6990 Likewise.
6991 * infcmd.c (_initialize_infcmd): Likewise.
6992 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6993 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6994 * python/py-param.c (add_setshow_generic): Likewise.
6995 * remote.c (_initialize_remote): Likewise.
6996 * top.c (execute_command): Prepend default_args if command has some.
6997 (set_verbose):
6998 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6999 * tracepoint.c (validate_actionline, encode_actions_1):
7000 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7001
7002 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7003
7004 * jit.c (jit_read_descriptor): Use bool as the return type.
7005 (jit_breakpoint_re_set_internal): Use bool as the return type.
7006 Invert the return value logic; return true if the jit breakpoint
7007 has been successfully initialized.
7008 (jit_inferior_init): Update the call to
7009 jit_breakpoint_re_set_internal.
7010
7011 2020-06-22 Pedro Alves <palves@redhat.com>
7012
7013 PR gdb/25939
7014 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7015 Use the current inferior instead. Don't return
7016 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7017 wait again.
7018 * sol-thread.c (sol_thread_target::wait): Don't reference
7019 inferior_ptid.
7020 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7021 (sol_update_thread_list_callback): Use the current inferior's pid
7022 instead of inferior_ptid.
7023
7024 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7025
7026 * procfs.c: Cleanup many comments.
7027
7028 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7029 (AFTER_WATCHFLAG): Replace by value.
7030
7031 (MAIN_PROC_NAME_FORMAT): Inline ...
7032 (create_procinfo): ... here.
7033
7034 (procfs_debug_inferior): Remove SYS_exec handling.
7035 (syscall_is_exec): Likewise.
7036 (procfs_set_exec_trap): Likewise.
7037
7038 (syscall_is_lwp_exit): Inline in callers.
7039 (syscall_is_exit): Likewise.
7040 (syscall_is_exec): Likewise.
7041 (syscall_is_lwp_create): Likewise.
7042
7043 (invalidate_cache): Remove #if 0 code.
7044
7045 (make_signal_thread_runnable): Remove.
7046 (procfs_target::resume): Remove #if 0 code.
7047
7048 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7049
7050 PR gdb/25939
7051 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7052 call ...
7053 (procfs_target::create_inferior): ... here.
7054
7055 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7056
7057 * exec.c (validate_exec_file): Ensure the build-id is up to
7058 date by calling reopen_exec_file (that checks file timestamp
7059 to decide to re-read the file).
7060
7061 2020-06-18 Pedro Alves <palves@redhat.com>
7062
7063 PR gdb/25412
7064 * gdbthread.h (delete_thread, delete_thread_silent)
7065 (find_thread_ptid): Update comments.
7066 * thread.c (current_thread_): New global.
7067 (is_current_thread): Move higher, and reimplement.
7068 (inferior_thread): Reimplement.
7069 (set_thread_exited): Use bool. Add assertions.
7070 (add_thread_silent): Simplify thread-reuse handling by always
7071 calling delete_thread.
7072 (delete_thread): Remove intro comment.
7073 (find_thread_ptid): Skip exited threads.
7074 (switch_to_thread_no_regs): Write to current_thread_.
7075 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7076 INFERIOR_PTID. Clear current_thread_.
7077
7078 2020-06-18 Pedro Alves <palves@redhat.com>
7079
7080 * aix-thread.c (pd_update): Use switch_to_thread.
7081
7082 2020-06-18 Pedro Alves <palves@redhat.com>
7083
7084 * ravenscar-thread.c (ravenscar_thread_target): Update.
7085 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7086 (ravenscar_thread_target::add_active_thread): ... this. Don't
7087 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7088 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7089
7090 2020-06-18 Pedro Alves <palves@redhat.com>
7091
7092 * nat/windows-nat.c (current_windows_thread): Remove.
7093 * nat/windows-nat.h (current_windows_thread): Remove.
7094 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7095 Adjust.
7096 (display_selectors): Adjust to fetch the current
7097 windows_thread_info based on inferior_ptid.
7098 (fake_create_process): No longer write to current_windows_thread.
7099 (windows_nat_target::get_windows_debug_event):
7100 Don't set inferior_ptid or current_windows_thread.
7101 (windows_nat_target::wait): Adjust to not rely on
7102 current_windows_thread.
7103 (do_initial_windows_stuff): Now a method of windows_nat_target.
7104 Switch to the last_ptid thread.
7105 (windows_nat_target::attach): Adjust.
7106 (windows_nat_target::detach): Use switch_to_no_thread instead of
7107 writing to inferior_ptid directly.
7108 (windows_nat_target::create_inferior): Adjust.
7109
7110 2020-06-18 Pedro Alves <palves@redhat.com>
7111
7112 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7113
7114 2020-06-18 Pedro Alves <palves@redhat.com>
7115
7116 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7117 after creating it, instead of writing to inferior_ptid. Don't
7118 write to inferior_ptid.
7119
7120 2020-06-18 Pedro Alves <palves@redhat.com>
7121
7122 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7123
7124 2020-06-18 Pedro Alves <palves@redhat.com>
7125
7126 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7127 it, instead of writing to inferior_ptid.
7128
7129 2020-06-18 Pedro Alves <palves@redhat.com>
7130
7131 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7132 to inferior_ptid.
7133
7134 2020-06-18 Pedro Alves <palves@redhat.com>
7135
7136 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7137 instead of writing to inferior_ptid directly.
7138
7139 2020-06-18 Pedro Alves <palves@redhat.com>
7140
7141 * corelow.c (core_target::close): Use switch_to_no_thread instead
7142 of writing to inferior_ptid directly.
7143 (add_to_thread_list, core_target_open): Use switch_to_thread
7144 instead of writing to inferior_ptid directly.
7145
7146 2020-06-18 Pedro Alves <palves@redhat.com>
7147
7148 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7149 inferior_ptid.
7150 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7151 inferior_ptid.
7152 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7153 inferior_ptid directly.
7154 (darwin_nat_target::init_thread_list): Switch to thread, instead
7155 of writing to inferior_ptid.
7156 (darwin_nat_target::attach): Don't write to inferior_ptid.
7157 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7158
7159 2020-06-18 Pedro Alves <palves@redhat.com>
7160
7161 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7162 thread.
7163 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7164 Instead use switch_to_thread.
7165 (gnu_nat_target::detach): Use switch_to_no_thread
7166 instead of writing to inferior_ptid directly. Used passed-in
7167 inferior instead of looking up the inferior by pid.
7168
7169 2020-06-18 Pedro Alves <palves@redhat.com>
7170
7171 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7172 inferior_ptid.
7173
7174 2020-06-18 Pedro Alves <palves@redhat.com>
7175
7176 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7177 inferior_ptid.
7178 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7179 thread.
7180 (nto_procfs_target::detach): Avoid referencing
7181 inferior_ptid. Use switch_to_no_thread instead of writing to
7182 inferior_ptid directly.
7183 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7184 instead of writing to inferior_ptid directly.
7185 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7186 to thread.
7187
7188 2020-06-18 Pedro Alves <palves@redhat.com>
7189
7190 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7191 after creating it, instead of writing to inferior_ptid.
7192 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7193 to inferior_ptid directly.
7194 (gdbsim_target::wait): Don't write to inferior_ptid.
7195
7196 2020-06-18 Pedro Alves <palves@redhat.com>
7197
7198 * remote.c (remote_target::remote_notice_new_inferior): Use
7199 switch_to_thread instead of writing to inferior_ptid directly.
7200 (remote_target::add_current_inferior_and_thread): Use
7201 switch_to_no_thread instead of writing to inferior_ptid directly.
7202 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7203 and switch_to_thread instead of using set_current_inferior or
7204 writing to inferior_ptid directly.
7205
7206 2020-06-18 Pedro Alves <palves@redhat.com>
7207
7208 * tracectf.c (ctf_target_open): Switch to added thread instead of
7209 writing to inferior_ptid directly.
7210 (ctf_target::close): Use switch_to_no_thread instead of writing to
7211 inferior_ptid directly.
7212
7213 2020-06-18 Pedro Alves <palves@redhat.com>
7214
7215 * tracefile-tfile.c (tfile_target_open): Don't write to
7216 inferior_ptid directly, instead switch to added thread.
7217 (tfile_target::close): Use switch_to_no_thread instead of writing
7218 to inferior_ptid directly.
7219
7220 2020-06-18 Pedro Alves <palves@redhat.com>
7221
7222 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7223 (procfs_target::detach): Use switch_to_no_thread
7224 instead of writing to inferior_ptid directly.
7225 (do_attach): Change return type to void. Switch to the added
7226 thread.
7227 (procfs_target::create_inferior): Switch to the added thread.
7228 (procfs_do_thread_registers): Don't write to inferior_ptid.
7229
7230 2020-06-18 Pedro Alves <palves@redhat.com>
7231
7232 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7233 of writing to inferior_ptid.
7234 (scoped_restore_exited_inferior): Delete.
7235 (handle_vfork_child_exec_or_exit): Simplify using
7236 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7237 instead of writing to inferior_ptid.
7238 (THREAD_STOPPED_BY): Delete.
7239 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7240 (thread_stopped_by_hw_breakpoint): Delete.
7241 (save_waitstatus): Use
7242 scoped_restore_current_thread+switch_to_thread, and call
7243 target_stopped_by_watchpoint instead of
7244 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7245 instead of thread_stopped_by_sw_breakpoint, and
7246 target_stopped_by_hw_breakpoint instead of
7247 thread_stopped_by_hw_breakpoint.
7248 (handle_inferior_event)
7249 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7250 inferior_ptid directly, nor
7251 set_current_inferior/set_current_program_space. Use
7252 switch_to_thread / switch_to_inferior_no_thread instead.
7253
7254 2020-06-18 Pedro Alves <palves@redhat.com>
7255
7256 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7257 instead of writing to inferior_ptid.
7258
7259 2020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7262 added thread.
7263 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7264 to the added thread.
7265 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7266 instead of writing to inferior_ptid.
7267
7268 2020-06-18 Pedro Alves <palves@redhat.com>
7269
7270 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7271 (register_to_value_test): Mock a program_space too. Heap-allocate
7272 the address space. Don't write to inferior_ptid. Use
7273 switch_to_thread instead.
7274
7275 2020-06-18 Pedro Alves <palves@redhat.com>
7276
7277 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7278 Delete.
7279 (find_signalled_thread()): New, factored out from
7280 linux_make_corefile_notes and adjusted to handle exited threads.
7281 (linux_make_corefile_notes): Adjust to use the new
7282 find_signalled_thread.
7283
7284 2020-06-18 Pedro Alves <palves@redhat.com>
7285
7286 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7287 of saving/restoring inferior_ptid.
7288
7289 2020-06-17 Tom Tromey <tom@tromey.com>
7290
7291 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7292 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7293 declare.
7294 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7295
7296 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7299 of partial symtabs.
7300
7301 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * regformats/reg-arm.dat: Remove.
7304 * regformats/reg-bfin.dat: Remove.
7305 * regformats/reg-cris.dat: Remove.
7306 * regformats/reg-crisv32.dat: Remove.
7307 * regformats/reg-m32r.dat: Remove.
7308 * regformats/reg-tilegx.dat: Remove.
7309 * regformats/reg-tilegx32.dat: Remove.
7310
7311 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7312
7313 * features/Makefile (WHICH): Remove arm files.
7314 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7315 * regformats/arm/arm-with-neon.dat: Remove.
7316 * regformats/arm/arm-with-vfpv2.dat: Remove.
7317 * regformats/arm/arm-with-vfpv3.dat: Remove.
7318
7319 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * features/Makefile (XMLTOC): Remove rx.xml.
7322
7323 2020-06-17 Pedro Alves <palves@redhat.com>
7324
7325 * gdbthread.h (thread_control_state) <trap_expected> Update
7326 comments.
7327
7328 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7331 ada_language::lookup_symbol_nonlocal.
7332 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7333 (ada_language::lookup_symbol_nonlocal): New member function,
7334 implementation from ada_lookup_symbol_nonlocal.
7335 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7336 initializer.
7337 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7338 initializer.
7339 (cplus_language::lookup_symbol_nonlocal): New member function.
7340 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7341 (minimal_language_data) Likewise.
7342 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7343 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7344 initializer.
7345 (d_language::lookup_symbol_nonlocal): New member function.
7346 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7347 initializer.
7348 (f_language::lookup_symbol_nonlocal): New member function.
7349 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7350 initializer.
7351 * language.c (unknown_language_data): Likewise.
7352 (auto_language_data): Likewise.
7353 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7354 field.
7355 (language_defn::lookup_symbol_nonlocal): New member function.
7356 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7357 initializer.
7358 * objc-lang.c (objc_language_data): Likewise.
7359 * opencl-lang.c (opencl_language_data): Likewise.
7360 * p-lang.c (pascal_language_data): Likewise.
7361 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7362 rust_language::lookup_symbol_nonlocal.
7363 (rust_language_data): Delete la_lookup_symbol_nonlocal
7364 initializer.
7365 (rust_language::lookup_symbol_nonlocal): New member function,
7366 implementation from rust_lookup_symbol_nonlocal.
7367 * symtab.c (lookup_symbol_aux): Update call to
7368 lookup_symbol_nonlocal.
7369 (basic_lookup_symbol_nonlocal): Rename to...
7370 (language_defn::lookup_symbol_nonlocal): ...this, and update
7371 header comment. Remove language_defn parameter, and replace with
7372 uses of `this'.
7373 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7374
7375 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7378 initializer.
7379 (ada_language::value_print_inner): New member function.
7380 * c-lang.c (c_language_data): Delete la_value_print_inner
7381 initializer.
7382 (cplus_language_data): Likewise.
7383 (asm_language_data): Likewise.
7384 (minimal_language_data): Likewise.
7385 * d-lang.c (d_language_data): Likewise.
7386 (d_language::value_print_inner): New member function.
7387 * f-lang.c (f_language_data): Delete la_value_print_inner
7388 initializer.
7389 (f_language::value_print_inner): New member function.
7390 * f-lang.h (f_value_print_innner): Rename to...
7391 (f_value_print_inner): ...this (note spelling of 'inner').
7392 * f-valprint.c (f_value_print_innner): Rename to...
7393 (f_value_print_inner): ...this (note spelling of 'inner').
7394 * go-lang.c (go_language_data): Delete la_value_print_inner
7395 initializer.
7396 (go_language::value_print_inner): New member function.
7397 * language.c (language_defn::value_print_inner): Define new member
7398 function.
7399 (unk_lang_value_print_inner): Delete.
7400 (unknown_language_data): Delete la_value_print_inner initializer.
7401 (unknown_language::value_print_inner): New member function.
7402 (auto_language_data): Delete la_value_print_inner initializer.
7403 (auto_language::value_print_inner): New member function.
7404 * language.h (language_data): Delete la_value_print_inner field.
7405 (language_defn::value_print_inner): Delcare new member function.
7406 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7407 initializer.
7408 (m2_language::value_print_inner): New member function.
7409 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7410 initializer.
7411 * opencl-lang.c (opencl_language_data): Likewise.
7412 * p-lang.c (pascal_language_data): Likewise.
7413 (pascal_language::value_print_inner): New member function.
7414 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7415 initializer.
7416 (rust_language::value_print_inner): New member function.
7417 * valprint.c (do_val_print): Update call to value_print_inner.
7418
7419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7420
7421 * ada-lang.c (ada_language_data): Delete la_value_print
7422 initializer.
7423 (ada_language::value_print): New member function.
7424 * c-lang.c (c_language_data): Delete la_value_print initializer.
7425 (cplus_language_data): Likewise.
7426 (asm_language_data): Likewise.
7427 (minimal_language_data): Likewise.
7428 * d-lang.c (d_language_data): Likewise.
7429 * f-lang.c (f_language_data): Likewise.
7430 * go-lang.c (go_language_data): Likewise.
7431 * language.c (unk_lang_value_print): Delete.
7432 (language_defn::value_print): Define new member function.
7433 (unknown_language_data): Delete la_value_print initializer.
7434 (unknown_language::value_print): New member function.
7435 (auto_language_data): Delete la_value_print initializer.
7436 (auto_language::value_print): New member function.
7437 * language.h (language_data): Delete la_value_print field.
7438 (language_defn::value_print): Declare new member function.
7439 (LA_VALUE_PRINT): Update call to value_print.
7440 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7441 * objc-lang.c (objc_language_data): Likewise.
7442 * opencl-lang.c (opencl_language_data): Likewise.
7443 * p-lang.c (pascal_language_data): Likewise.
7444 (pascal_language::value_print): New member function.
7445 * rust-lang.c (rust_language_data): Delete la_value_print
7446 initializer.
7447
7448 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * ada-lang.c (ada_watch_location_expression): Rename to
7451 ada_language::watch_location_expression.
7452 (ada_language_data): Delete la_watch_location_expression
7453 initializer.
7454 (ada_language::watch_location_expression): New member function,
7455 implementation from ada_watch_location_expression.
7456 * breakpoint.c (watch_command_1): Update call to
7457 watch_location_expression.
7458 * c-lang.c (c_watch_location_expression): Rename to
7459 language_defn::watch_location_expression.
7460 (c_language_data): Delete la_watch_location_expression
7461 initializer.
7462 (cplus_language_data): Likewise.
7463 (asm_language_data): Likewise.
7464 (minimal_language_data): Likewise.
7465 * c-lang.h (c_watch_location_expression): Delete declaration.
7466 * d-lang.c (d_language_data): Delete la_watch_location_expression
7467 initializer.
7468 * f-lang.c (f_language_data): Likewise.
7469 * go-lang.c (go_language_data): Likewise.
7470 * language.c (language_defn::watch_location_expression): Member
7471 function implementation from c_watch_location_expression.
7472 (unknown_language_data): Delete la_watch_location_expression
7473 initializer.
7474 (auto_language_data): Likewise.
7475 * language.h (language_data): Delete la_watch_location_expression
7476 field.
7477 (language_defn::watch_location_expression): Declare new member
7478 function.
7479 * m2-lang.c (m2_language_data): Delete
7480 la_watch_location_expression initializer.
7481 * objc-lang.c (objc_language_data): Likewise.
7482 * opencl-lang.c (opencl_language_data): Likewise.
7483 * p-lang.c (pascal_language_data): Likewise.
7484 * rust-lang.c (rust_watch_location_expression): Rename to
7485 rust_language::watch_location_expression.
7486 (rust_language_data): Delete la_watch_location_expression
7487 initializer.
7488 (rust_language::watch_location_expression): New member function,
7489 implementation from rust_watch_location_expression.
7490
7491 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7494 ada_language::collect_symbol_completion_matches.
7495 (ada_language_data): Delete la_collect_symbol_completion_matches
7496 initializer.
7497 (ada_language::collect_symbol_completion_matches): New member
7498 function, implementation from
7499 ada_collect_symbol_completion_matches.
7500 * c-lang.c (c_language_data): Delete
7501 la_collect_symbol_completion_matches initializer.
7502 (cplus_language_data): Likewise.
7503 (asm_language_data): Likewise.
7504 (minimal_language_data): Likewise.
7505 * d-lang.c (d_language_data): Likewise.
7506 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7507 f_language::collect_symbol_completion_matches.
7508 (f_language_data): Delete la_collect_symbol_completion_matches
7509 initializer.
7510 (f_language::collect_symbol_completion_matches) New member
7511 function, implementation from f_collect_symbol_completion_matches.
7512 * go-lang.c (go_language_data): Delete
7513 la_collect_symbol_completion_matches initializer.
7514 * language.c (unknown_language_data): Likewise.
7515 (auto_language_data): Likewise.
7516 * language.h (language_data): Delete
7517 la_collect_symbol_completion_matches field.
7518 (language_defn::collect_symbol_completion_matches): New member
7519 function.
7520 * m2-lang.c (m2_language_data): Delete
7521 la_collect_symbol_completion_matches initializer.
7522 * objc-lang.c (objc_language_data): Likewise.
7523 * opencl-lang.c (opencl_language_data): Likewise.
7524 * p-lang.c (pascal_language_data): Likewise.
7525 * rust-lang.c (rust_language_data): Likewise.
7526 * symtab.c (default_collect_symbol_completion_matches): Delete.
7527 (collect_symbol_completion_matches): Update call to
7528 collect_symbol_completion_matches.
7529 (collect_symbol_completion_matches_type): Likewise.
7530 * symtab.h (default_collect_symbol_completion_matches): Delete
7531 declaration.
7532
7533 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7534
7535 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7536 (ada_language_data): Delete la_word_break_characters initializer.
7537 (ada_language::word_break_characters): New member function.
7538 * c-lang.c (c_language_data): Delete la_word_break_characters
7539 initializer.
7540 (cplus_language_data): Likewise.
7541 (asm_language_data): Likewise.
7542 (minimal_language_data): Likewise.
7543 * completer.c: Update global comment.
7544 (advance_to_expression_complete_word_point): Update call to
7545 word_break_characters.
7546 (complete_files_symbols): Likewise.
7547 (complete_line_internal_1): Likewise.
7548 (default_completer_handle_brkchars): Likewise.
7549 (skip_quoted_chars): Likewise.
7550 * d-lang.c (d_language_data): Delete la_word_break_characters
7551 initializer.
7552 * f-lang.c (f_word_break_characters): Delete.
7553 (f_language_data): Delete la_word_break_characters initializer.
7554 (f_language::word_break_characters): New member function.
7555 * go-lang.c (go_language_data): Delete la_word_break_characters
7556 initializer.
7557 * language.c (unknown_language_data): Likewise.
7558 (auto_language_data): Likewise.
7559 * language.h (default_word_break_characters): Move declaration to
7560 earlier in the file.
7561 (language_data): Delete la_word_break_characters field.
7562 (language_defn::word_break_characters): New member function.
7563 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7564 initializer.
7565 * objc-lang.c (objc_language_data): Likewise.
7566 * opencl-lang.c (opencl_language_data): Likewise.
7567 * p-lang.c (pascal_language_data): Likewise.
7568 * rust-lang.c (rust_language_data): Likewise.
7569
7570 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7571
7572 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7573 (ada_language_data): Delete la_get_symbol_name_matcher
7574 initializer.
7575 (language_defn::get_symbol_name_matcher_inner): New member
7576 function.
7577 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7578 initializer.
7579 (cplus_language_data): Likewise.
7580 (cplus_language::get_symbol_name_matcher_inner): New member
7581 function.
7582 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7583 (minimal_language_data): Likewise.
7584 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7585 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7586 initializer.
7587 * dictionary.c (iter_match_first_hashed): Update call to
7588 get_symbol_name_matcher.
7589 (iter_match_next_hashed): Likewise.
7590 (iter_match_next_linear): Likewise.
7591 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7592 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7593 initializer.
7594 (f_language::get_symbol_name_matcher_inner): New member function.
7595 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7596 initializer.
7597 * language.c (default_symbol_name_matcher): Update header comment,
7598 make static.
7599 (language_defn::get_symbol_name_matcher): New definition.
7600 (language_defn::get_symbol_name_matcher_inner): Likewise.
7601 (get_symbol_name_matcher): Delete.
7602 (unknown_language_data): Delete la_get_symbol_name_matcher
7603 initializer.
7604 (auto_language_data): Likewise.
7605 * language.h (language_data): Delete la_get_symbol_name_matcher
7606 field.
7607 (language_defn::get_symbol_name_matcher): New member function.
7608 (language_defn::get_symbol_name_matcher_inner): Likewise.
7609 (default_symbol_name_matcher): Delete declaration.
7610 * linespec.c (find_methods): Update call to
7611 get_symbol_name_matcher.
7612 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7613 initializer.
7614 * minsyms.c (lookup_minimal_symbol): Update call to
7615 get_symbol_name_matcher.
7616 (iterate_over_minimal_symbols): Likewise.
7617 * objc-lang.c (objc_language_data): Delete
7618 la_get_symbol_name_matcher initializer.
7619 * opencl-lang.c (opencl_language_data): Likewise.
7620 * p-lang.c (pascal_language_data): Likewise.
7621 * psymtab.c (psymbol_name_matches): Update call to
7622 get_symbol_name_matcher.
7623 * rust-lang.c (rust_language_data): Delete
7624 la_get_symbol_name_matcher initializer.
7625 * symtab.c (symbol_matches_search_name): Update call to
7626 get_symbol_name_matcher.
7627 (compare_symbol_name): Likewise.
7628
7629 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * ada-lang.c (ada_language_data): Delete la_compute_program
7632 initializer.
7633 * c-lang.c (c_language_data): Likewise.
7634 (c_language::compute_program): New member function.
7635 (cplus_language_data): Delete la_compute_program initializer.
7636 (cplus_language::compute_program): New member function.
7637 (asm_language_data): Delete la_compute_program initializer.
7638 (minimal_language_data): Likewise.
7639 * c-lang.h (c_compute_program): Update comment.
7640 (cplus_compute_program): Likewise.
7641 * compile/compile-c-support.c (c_compute_program): Likewise.
7642 (cplus_compute_program): Likewise.
7643 * compile/compile.c (compile_to_object): Update call to
7644 la_compute_program.
7645 * d-lang.c (d_language_data): Delete la_compute_program
7646 initializer.
7647 * f-lang.c (f_language_data): Likewise.
7648 * go-lang.c (go_language_data): Likewise.
7649 * language.c (unknown_language_data): Likewise.
7650 (auto_language_data): Likewise.
7651 * language.h (language_data): Delete la_compute_program field.
7652 (language_defn::compute_program): New member function.
7653 * m2-lang.c (m2_language_data): Delete la_compute_program
7654 initializer.
7655 * objc-lang.c (objc_language_data): Likewise.
7656 * opencl-lang.c (opencl_language_data): Likewise.
7657 * p-lang.c (pascal_language_data): Likewise.
7658 * rust-lang.c (rust_language_data): Likewise.
7659
7660 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * ada-lang.c (ada_language_data) Delete
7663 la_class_name_from_physname initializer.
7664 * c-lang.c (c_language_data): Likewise.
7665 (cplus_language_data): Likewise.
7666 (cplus_language::class_name_from_physname): New member function.
7667 (asm_language_data): Delete la_class_name_from_physname
7668 initializer.
7669 (minimal_language_data): Likewise.
7670 * d-lang.c (d_language_data): Likewise.
7671 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7672 method on language_defn class.
7673 (guess_full_die_structure_name): Likewise.
7674 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7675 initializer.
7676 * go-lang.c (go_language_data): Likewise.
7677 * language.c (language_class_name_from_physname): Delete.
7678 (unk_lang_class_name): Delete.
7679 (unknown_language_data): Delete la_class_name_from_physname
7680 initializer.
7681 (auto_language_data): Likewise.
7682 * language.h (language_data): Delete la_class_name_from_physname
7683 field.
7684 (language_defn::class_name_from_physname): New function.
7685 (language_class_name_from_physname): Delete declaration.
7686 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7687 initializer.
7688 * objc-lang.c (objc_language_data): Likewise.
7689 * opencl-lang.c (opencl_language_data): Likewise.
7690 * p-lang.c (pascal_language_data): Likewise.
7691 * rust-lang.c (rust_language_data): Likewise.
7692
7693 2020-06-16 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui-data.h (STATUS_NAME): New macro.
7696 * tui/tui-layout.c (tui_remove_some_windows)
7697 (initialize_known_windows, tui_register_window)
7698 (tui_layout_split::remove_windows, initialize_layouts)
7699 (tui_new_layout_command): Don't use hard-coded window names.
7700
7701 2020-06-16 Tom Tromey <tom@tromey.com>
7702
7703 PR tui/25348:
7704 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7705 tui_initialize_readline. Only run once. Call rl_initialize.
7706 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7707 tui_initialize_readline.
7708 * tui/tui-io.c (tui_setup_io): Call
7709 tui_ensure_readline_initialized.
7710 * tui/tui-interp.c (tui_interp::init): Update.
7711
7712 2020-06-16 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7715 Also preserve the status window.
7716
7717 2020-06-16 Tom Tromey <tom@tromey.com>
7718
7719 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7720 where m_window==nullptr.
7721
7722 2020-06-15 Tom Tromey <tromey@adacore.com>
7723
7724 * windows-nat.c (windows_nat::handle_output_debug_string):
7725 Update.
7726 (windows_nat::handle_ms_vc_exception): Update.
7727 * target.h (target_read_string): Change API.
7728 * target.c (target_read_string): Change API.
7729 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7730 Update.
7731 * solib-frv.c (frv_current_sos): Update.
7732 * solib-dsbt.c (dsbt_current_sos): Update.
7733 * solib-darwin.c (darwin_current_sos): Update.
7734 * linux-thread-db.c (inferior_has_bug): Update.
7735 * expprint.c (print_subexp_standard): Update.
7736 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7737 (ada_exception_message_1): Update.
7738
7739 2020-06-15 Tom Tromey <tromey@adacore.com>
7740
7741 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7742
7743 2020-06-15 Tom Tromey <tromey@adacore.com>
7744
7745 * valprint.c (read_string): Update comment.
7746 * target.c (MIN): Remove.
7747 (target_read_string): Rewrite.
7748
7749 2020-06-15 Tom Tromey <tromey@adacore.com>
7750
7751 * corefile.c (read_memory_string): Remove.
7752 * ada-valprint.c (ada_value_print_ptr): Update.
7753 * ada-lang.h (ada_tag_name): Change return type.
7754 * ada-lang.c (type_from_tag): Update.
7755 (ada_tag_name_from_tsd): Change return type. Use
7756 target_read_string.
7757 (ada_tag_name): Likewise.
7758 * gdbcore.h (read_memory_string): Don't declare.
7759
7760 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7761
7762 * symtab.c (rbreak_command): Ignore Windows drive colon.
7763
7764 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7765
7766 * NEWS: Mention removed GDBserver host support.
7767
7768 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7769
7770 * features/riscv/rebuild-csr-xml.sh: Updated.
7771
7772 2020-06-11 Tom Tromey <tom@tromey.com>
7773
7774 PR gdb/18318:
7775 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7776
7777 2020-06-09 Jonny Grant <jg@jguk.org>
7778 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * main.c (captured_main_1): Don't print new line after help.
7781 (print_gdb_help): add mailing list and IRC channel information
7782 to --help. Add new lines between items in the footer. Remove
7783 quotes around bug url.
7784
7785 2020-06-11 Keith Seitz <keiths@redhat.com>
7786
7787 PR gdb/21356
7788 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7789 Resolve typedefs for type length calculations.
7790
7791 2020-06-10 Tom de Vries <tdevries@suse.de>
7792
7793 PR ada/24713
7794 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7795 (write_psymbols): Enable .gdb_index for ada.
7796 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7797 ada.
7798
7799 2020-06-10 Tom de Vries <tdevries@suse.de>
7800
7801 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7802 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7803 namei" instead of "const char *name" argument.
7804 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7805 dw2_symtab_iter_init.
7806
7807 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7810 to use type::field and field::type instead.
7811
7812 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7815 to use field::type instead.
7816
7817 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * gdbtypes.h (struct field) <type, set_type>: New methods.
7820 Rename `type` field to...
7821 <m_type>: ... this. Change references throughout to use type or
7822 set_type methods.
7823 (FIELD_TYPE): Use field::type. Change call sites that modify
7824 the field's type to use field::set_type instead.
7825
7826 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7829 to use type::index_type instead.
7830
7831 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7834 methods.
7835 (TYPE_INDEX_TYPE): Use type::index_type.
7836 * gdbtypes.c (create_array_type_with_stride): Likewise.
7837
7838 2020-06-07 Tom Tromey <tom@tromey.com>
7839
7840 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7841 parameter.
7842 (generic_value_print): Update.
7843
7844 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 Revert commit 982a38f60b0.
7847 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7848
7849 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7852 avoid use after free.
7853
7854 2020-06-05 Tom de Vries <tdevries@suse.de>
7855
7856 * NEWS: Fix typos.
7857
7858 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7861 the per_bfd object.
7862 (dwarf2_read_debug_names): Likewise.
7863 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7864 object when re-using a per_bfd object with an index.
7865
7866 2020-06-03 Tom de Vries <tdevries@suse.de>
7867
7868 PR symtab/26046
7869 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7870 children for C++.
7871 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7872 DW_TAG_subprogram.
7873
7874 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7875
7876 * ada-lang.c (ada_language_data): Delete skip_trampoline
7877 initializer.
7878 * c-lang.c (c_language_data): Likewise.
7879 (cplus_language_data): Likewise.
7880 (cplus_language::skip_trampoline): New member function.
7881 (asm_language_data): Delete skip_trampoline initializer.
7882 (minimal_language_data): Likewise.
7883 * d-lang.c (d_language_data): Likewise.
7884 * f-lang.c (f_language_data): Likewise.
7885 * go-lang.c (go_language_data): Likewise.
7886 * language.c (unk_lang_trampoline): Delete function.
7887 (skip_language_trampoline): Update.
7888 (unknown_language_data): Delete skip_trampoline initializer.
7889 (auto_language_data): Likewise.
7890 * language.h (language_data): Delete skip_trampoline field.
7891 (language_defn::skip_trampoline): New function.
7892 * m2-lang.c (m2_language_data): Delete skip_trampoline
7893 initializer.
7894 * objc-lang.c (objc_skip_trampoline): Delete function, move
7895 implementation to objc_language::skip_trampoline.
7896 (objc_language_data): Delete skip_trampoline initializer.
7897 (objc_language::skip_trampoline): New member function with
7898 implementation from objc_skip_trampoline.
7899 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7900 initializer.
7901 * p-lang.c (pascal_language_data): Likewise.
7902 * rust-lang.c (rust_language_data): Likewise.
7903
7904 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7905
7906 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7907 (ada_language::demangle): New member function.
7908 * c-lang.c (c_language_data): Delete la_demangle initializer.
7909 (cplus_language_data): Delete la_demangle initializer.
7910 (cplus_language::demangle): New member function.
7911 (asm_language_data): Delete la_demangle initializer.
7912 (minimal_language_data): Delete la_demangle initializer.
7913 * d-lang.c (d_language_data): Delete la_demangle initializer.
7914 (d_language::demangle): New member function.
7915 * f-lang.c (f_language_data): Delete la_demangle initializer.
7916 (f_language::demangle): New member function.
7917 * go-lang.c (go_language_data): Delete la_demangle initializer.
7918 (go_language::demangle): New member function.
7919 * language.c (language_demangle): Update.
7920 (unk_lang_demangle): Delete.
7921 (unknown_language_data): Delete la_demangle initializer.
7922 (unknown_language::demangle): New member function.
7923 (auto_language_data): Delete la_demangle initializer.
7924 (auto_language::demangle): New member function.
7925 * language.h (language_data): Delete la_demangle field.
7926 (language_defn::demangle): New function.
7927 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7928 * objc-lang.c (objc_language_data): Delete la_demangle
7929 initializer.
7930 (objc_language::demangle): New member function.
7931 * opencl-lang.c (opencl_language_data): Delete la_demangle
7932 initializer.
7933 * p-lang.c (pascal_language_data): Likewise.
7934 * rust-lang.c (rust_language_data): Likewise.
7935 (rust_language::demangle): New member function.
7936
7937 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * ada-lang.c (ada_language_data): Delete la_print_type
7940 initializer.
7941 (ada_language::print_type): New member function.
7942 * c-lang.c (c_language_data): Delete la_print_type initializer.
7943 (c_language::print_type): New member function.
7944 (cplus_language_data): Delete la_print_type initializer.
7945 (cplus_language::print_type): New member function.
7946 (asm_language_data): Delete la_print_type initializer.
7947 (asm_language::print_type): New member function.
7948 (minimal_language_data): Delete la_print_type initializer.
7949 (minimal_language::print_type): New member function.
7950 * d-lang.c (d_language_data): Delete la_print_type initializer.
7951 (d_language::print_type): New member function.
7952 * f-lang.c (f_language_data): Delete la_print_type initializer.
7953 (f_language::print_type): New member function.
7954 * go-lang.c (go_language_data): Delete la_print_type initializer.
7955 (go_language::print_type): New member function.
7956 * language.c (unk_lang_print_type): Delete.
7957 (unknown_language_data): Delete la_print_type initializer.
7958 (unknown_language::print_type): New member function.
7959 (auto_language_data): Delete la_print_type initializer.
7960 (auto_language::print_type): New member function.
7961 * language.h (language_data): Delete la_print_type field.
7962 (language_defn::print_type): New function.
7963 (LA_PRINT_TYPE): Update.
7964 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7965 (m2_language::print_type): New member function.
7966 * objc-lang.c (objc_language_data): Delete la_print_type
7967 initializer.
7968 (objc_language::print_type): New member function.
7969 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7970 to opencl_language::print_type.
7971 (opencl_language_data): Delete la_print_type initializer.
7972 (opencl_language::print_type): New member function, implementation
7973 from opencl_print_type.
7974 * p-lang.c (pascal_language_data): Delete la_print_type
7975 initializer.
7976 (pascal_language::print_type): New member function.
7977 * rust-lang.c (rust_print_type): Delete, implementation moved to
7978 rust_language::print_type.
7979 (rust_language_data): Delete la_print_type initializer.
7980 (rust_language::print_type): New member function, implementation
7981 from rust_print_type.
7982
7983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7984
7985 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7986 implementation moves to...
7987 (ada_language::sniff_from_mangled_name): ...here. Update return
7988 type.
7989 (ada_language_data): Delete la_sniff_from_mangled_name
7990 initializer.
7991 * c-lang.c (c_language_data): Likewise.
7992 (cplus_language_data): Likewise.
7993 (cplus_language::sniff_from_mangled_name): New member function,
7994 implementation taken from gdb_sniff_from_mangled_name.
7995 (asm_language_data): Delete la_sniff_from_mangled_name
7996 initializer.
7997 (minimal_language_data): Likewise.
7998 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7999 implementation moves to cplus_language::sniff_from_mangled_name.
8000 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8001 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8002 moves to...
8003 (d_language::sniff_from_mangled_name): ...here.
8004 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8005 * f-lang.c (f_language_data): Likewise.
8006 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8007 moves to...
8008 (go_language::sniff_from_mangled_name): ...here.
8009 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8010 * language.c (language_sniff_from_mangled_name): Delete.
8011 (unknown_language_data): Delete la_sniff_from_mangled_name
8012 initializer.
8013 (auto_language_data): Likewise.
8014 * language.h (language_data): Delete la_sniff_from_mangled_name
8015 field.
8016 (language_defn::sniff_from_mangled_name): New function.
8017 (language_sniff_from_mangled_name): Delete declaration.
8018 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8019 field.
8020 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8021 implementation moves to...
8022 (objc_language::sniff_from_mangled_name): ...here.
8023 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8024 * opencl-lang.c (opencl_language_data): Likewise.
8025 * p-lang.c (pascal_language_data): Likewise.
8026 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8027 implementation moves to...
8028 (rust_language::sniff_from_mangled_name): ...here.
8029 (rust_language_data): Delete la_sniff_from_mangled_name
8030 initializer.
8031 * symtab.c (symbol_find_demangled_name): Call
8032 sniff_from_mangled_name member function.
8033
8034 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8037 initializer.
8038 * c-lang.c (c_language_data): Likewise.
8039 (cplus_language_data): Likewise.
8040 (cplus_language::search_name_hash): New member function.
8041 (asm_language_data): Delete la_search_name_hash initializer.
8042 (minimal_language_data): Likewise.
8043 * d-lang.c (d_language_data): Likewise.
8044 * dictionary.c (default_search_name_hash): Rename to...
8045 (language_defn::search_name_hash): ...this.
8046 * f-lang.c (f_language_data): Likewise.
8047 (f_language::search_name_hash): New member function.
8048 * go-lang.c (go_language_data): Delete la_search_name_hash
8049 initializer.
8050 * language.c (unknown_language_data): Likewise.
8051 (auto_language_data): Likewise.
8052 * language.h (struct language_data): Delete la_search_name_hash
8053 field.
8054 (language_defn::search_name_hash): Declare new member function.
8055 (default_search_name_hash): Delete declaration.
8056 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8057 initializer.
8058 * objc-lang.c (objc_language_data): Likewise.
8059 * opencl-lang.c (opencl_language_data): Likewise.
8060 * p-lang.c (pascal_language_data): Likewise.
8061 * rust-lang.c (rust_language_data): Likewise.
8062 * symtab.c (search_name_hash): Update call.
8063
8064 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8065
8066 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8067 initializer.
8068 * c-lang.c (class compile_instance): Declare.
8069 (c_language_data): Delete la_get_compile_instance initializer.
8070 (c_language::get_compile_instance): New member function.
8071 (cplus_language_data): Delete la_get_compile_instance initializer.
8072 (cplus_language::get_compile_instance): New member function.
8073 (asm_language_data): Delete la_get_compile_instance initializer.
8074 (minimal_language_data): Likewise.
8075 * c-lang.h (c_get_compile_context): Update comment.
8076 (cplus_get_compile_context): Update comment.
8077 * compile/compile.c (compile_to_object): Update calls, don't rely
8078 on function pointer being NULL.
8079 * d-lang.c (d_language_data): Delete la_get_compile_instance
8080 initializer.
8081 * f-lang.c (f_language_data): Likewise.
8082 * go-lang.c (go_language_data): Likewise.
8083 * language.c (unknown_language_data): Likewise.
8084 (auto_language_data): Likewise.
8085 * language.h (language_data): Delete la_get_compile_instance field.
8086 (language_defn::get_compile_instance): New member function.
8087 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8088 initializer.
8089 * objc-lang.c (objc_language_data): Likewise.
8090 * opencl-lang.c (opencl_language_data): Likewise.
8091 * p-lang.c (pascal_language_data): Likewise.
8092 * rust-lang.c (rust_language_data): Likewise.
8093
8094 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8095
8096 * ada-lang.c (ada_add_all_symbols): Update comment.
8097 (ada_iterate_over_symbols): Delete, move implementation to...
8098 (ada_language::iterate_over_symbols): ...here, a new member
8099 function, rewrite to use range based for loop.
8100 (ada_language_data): Delete la_iterate_over_symbols initializer.
8101 * c-lang.c (c_language_data): Likewise.
8102 (cplus_language_data): Likewise.
8103 (asm_language_data): Likewise.
8104 (minimal_language_data): Likewise.
8105 * d-lang.c (d_language_data): Likewise.
8106 * f-lang.c (f_language_data): Likewise.
8107 * go-lang.c (go_language_data): Likewise.
8108 * language.c (unknown_language_data): Likewise.
8109 (auto_language_data): Likewise.
8110 * language.h (language_data): Delete la_iterate_over_symbols field.
8111 (language_defn::iterate_over_symbols): New member function.
8112 (LA_ITERATE_OVER_SYMBOLS): Update.
8113 * linespec.c (iterate_over_all_matching_symtabs): Update.
8114 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8115 initializer.
8116 * objc-lang.c (objc_language_data): Likewise.
8117 * opencl-lang.c (opencl_language_data): Likewise.
8118 * p-lang.c (pascal_language_data): Likewise.
8119 * rust-lang.c (rust_language_data): Likewise.
8120
8121 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8122
8123 * ada-lang.c (ada_language_data): Delete
8124 la_lookup_transparent_type initializer.
8125 * c-lang.c (c_language_data): Likewise.
8126 (cplus_language_data): Likewise.
8127 (cplus_language::lookup_transparent_type): New member function.
8128 (asm_language_data): Delete la_lookup_transparent_type
8129 initializer.
8130 (minimal_language_data): Likewise.
8131 * d-lang.c (d_language_data): Likewise.
8132 * f-lang.c (f_language_data): Likewise.
8133 * go-lang.c (go_language_data): Likewise.
8134 * language.c (unknown_language_data): Likewise.
8135 (auto_language_data): Likewise.
8136 * language.h (struct language_data): Delete
8137 la_lookup_transparent_type field.
8138 (language_defn::lookup_transparent_type): New member function.
8139 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8140 initializer.
8141 * objc-lang.c (objc_language_data): Likewise.
8142 * opencl-lang.c (opencl_language_data): Likewise.
8143 * p-lang.c (pascal_language_data): Likewise.
8144 * rust-lang.c (rust_language_data): Likewise.
8145 * symtab.c (symbol_matches_domain): Update call.
8146
8147 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8148
8149 * ada-lang.c (ada_language_arch_info): Delete function, move
8150 implementation to...
8151 (ada_language::language_arch_info): ...here, a new member
8152 function.
8153 (ada_language_data): Delete la_language_arch_info.
8154 * c-lang.c (c_language_data): Likewise.
8155 (c_language::language_arch_info): New member function.
8156 (cplus_language_arch_info): Delete function, move
8157 implementation to...
8158 (cplus_language::language_arch_info): ...here, a new member
8159 function.
8160 (cplus_language_data): Delete la_language_arch_info.
8161 (asm_language_data): Likewise.
8162 (asm_language::language_arch_info): New member function.
8163 (minimal_language_data): Delete la_language_arch_info.
8164 (minimal_language::language_arch_info): New member function.
8165 * d-lang.c (d_language_arch_info): Delete function, move
8166 implementation to...
8167 (d_language::language_arch_info): ...here, a new member
8168 function.
8169 (d_language_data): Delete la_language_arch_info.
8170 * f-lang.c (f_language_arch_info): Delete function, move
8171 implementation to...
8172 (f_language::language_arch_info): ...here, a new member
8173 function.
8174 (f_language_data): Delete la_language_arch_info.
8175 * go-lang.c (go_language_arch_info): Delete function, move
8176 implementation to...
8177 (go_language::language_arch_info): ...here, a new member
8178 function.
8179 (go_language_data): Delete la_language_arch_info.
8180 * language.c (unknown_language_data): Likewise.
8181 (unknown_language::language_arch_info): New member function.
8182 (auto_language_data): Delete la_language_arch_info.
8183 (auto_language::language_arch_info): New member function.
8184 (language_gdbarch_post_init): Update call to
8185 la_language_arch_info.
8186 * language.h (language_data): Delete la_language_arch_info
8187 function pointer.
8188 (language_defn::language_arch_info): New function.
8189 * m2-lang.c (m2_language_arch_info): Delete function, move
8190 implementation to...
8191 (m2_language::language_arch_info): ...here, a new member
8192 function.
8193 (m2_language_data): Delete la_language_arch_info.
8194 * objc-lang.c (objc_language_arch_info): Delete function, move
8195 implementation to...
8196 (objc_language::language_arch_info): ...here, a new member
8197 function.
8198 (objc_language_data): Delete la_language_arch_info.
8199 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8200 implementation to...
8201 (opencl_language::language_arch_info): ...here, a new member
8202 function.
8203 (opencl_language_data): Delete la_language_arch_info.
8204 * p-lang.c (pascal_language_arch_info): Delete function, move
8205 implementation to...
8206 (pascal_language::language_arch_info): ...here, a new member
8207 function.
8208 (pascal_language_data): Delete la_language_arch_info.
8209 * rust-lang.c (rust_language_arch_info): Delete function, move
8210 implementation to...
8211 (rust_language::language_arch_info): ...here, a new member
8212 function.
8213 (rust_language_data): Delete la_language_arch_info.
8214
8215 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8216
8217 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8218 initializer.
8219 * c-lang.c (c_language_data): Likewise.
8220 (cplus_language_data): Likewise.
8221 (cplus_language::pass_by_reference_info): New method.
8222 (asm_language_data): Delete la_pass_by_reference initializer.
8223 (minimal_language_data): Likewise.
8224 * cp-abi.c (cp_pass_by_reference): Remove use of
8225 default_pass_by_reference.
8226 * d-lang.c (d_language_data): Likewise.
8227 * f-lang.c (f_language_data): Likewise.
8228 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8229 default_pass_by_reference.
8230 * go-lang.c (go_language_data): Likewise.
8231 * language.c (language_pass_by_reference): Update.
8232 (default_pass_by_reference): Delete.
8233 (unknown_language_data): Delete la_pass_by_reference
8234 initializer.
8235 (auto_language_data): Likewise.
8236 * language.h (struct language_data): Delete la_pass_by_reference
8237 field.
8238 (language_defn::pass_by_reference_info): New member function.
8239 (default_pass_by_reference): Delete declaration.
8240 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8241 initializer.
8242 * objc-lang.c (objc_language_data): Likewise.
8243 * opencl-lang.c (opencl_language_data): Likewise.
8244 * p-lang.c (pascal_language_data): Likewise.
8245 * rust-lang.c (rust_language_data): Likewise.
8246
8247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8248
8249 * ada-lang.c (ada_read_var_value): Delete function, move
8250 implementation to...
8251 (ada_language::read_var_value): ...here.
8252 (ada_language_data): Delete la_read_var_value initializer.
8253 * c-lang.c (c_language_data): Likewise.
8254 (cplus_language_data): Likewise.
8255 (minimal_language_data): Likewise.
8256 * d-lang.c (d_language_data): Likewise.
8257 * f-lang.c (f_language_data): Likewise.
8258 * findvar.c (default_read_var_value): Rename to...
8259 (language_defn::read_var_value): ...this.
8260 * findvar.c (read_var_value): Update header comment, and change to
8261 call member function instead of function pointer.
8262 * go-lang.c (go_language_data): Likewise.
8263 * language.c (unknown_language_data): Delete la_read_var_value
8264 initializer.
8265 (auto_language_data): Likewise.
8266 * language.h (struct language_data): Delete la_read_var_value
8267 field.
8268 (language_defn::read_var_value): New member function.
8269 (default_read_var_value): Delete declaration.
8270 * m2-lang.c (m2_language_data): Delete la_read_var_value
8271 initializer.
8272 * objc-lang.c (objc_language_data): Likewise.
8273 * opencl-lang.c (opencl_language_data): Likewise.
8274 * p-lang.c (pascal_language_data): Likewise.
8275 * rust-lang.c (rust_language_data): Likewise.
8276 * value.h (default_read_var_value): Delete declaration.
8277
8278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8279
8280 * ada-lang.c (ada_print_array_index): Delete function, move
8281 implementation to...
8282 (ada_language::print_array_index): ...here.
8283 (ada_language_data): Delete la_print_array_index initializer.
8284 * c-lang.c (c_language_data): Likewise.
8285 (cplus_language_data): Likewise.
8286 (minimal_language_data): Likewise.
8287 * d-lang.c (d_language_data): Likewise.
8288 * f-lang.c (f_language_data): Likewise.
8289 * go-lang.c (go_language_data): Likewise.
8290 * language.c (default_print_array_index): Delete function, move
8291 implementation to...
8292 (language_defn::print_array_index): ...here.
8293 (unknown_language_data): Delete la_print_array_index initializer.
8294 (auto_language_data): Likewise.
8295 * language.h (struct language_data): Delete la_print_array_index
8296 field.
8297 (language_defn::print_array_index): New member function.
8298 (LA_PRINT_ARRAY_INDEX): Update.
8299 (default_print_array_index): Delete declaration.
8300 * m2-lang.c (m2_language_data): Delete la_print_array_index
8301 initializer.
8302 * objc-lang.c (objc_language_data): Likewise.
8303 * opencl-lang.c (opencl_language_data): Likewise.
8304 * p-lang.c (pascal_language_data): Likewise.
8305 * rust-lang.c (rust_language_data): Likewise.
8306
8307 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8308
8309 * gdb/ada-lang.c (ada_language_defn): Convert to...
8310 (ada_language_data): ...this.
8311 (class ada_language): New class.
8312 (ada_language_defn): New static global.
8313 * gdb/c-lang.c (c_language_defn): Convert to...
8314 (c_language_data): ...this.
8315 (class c_language): New class.
8316 (c_language_defn): New static global.
8317 (cplus_language_defn): Convert to...
8318 (cplus_language_data): ...this.
8319 (class cplus_language): New class.
8320 (cplus_language_defn): New static global.
8321 (asm_language_defn): Convert to...
8322 (asm_language_data): ...this.
8323 (class asm_language): New class.
8324 (asm_language_defn): New static global.
8325 (minimal_language_defn): Convert to...
8326 (minimal_language_data): ...this.
8327 (class minimal_language): New class.
8328 (minimal_language_defn): New static global.
8329 * gdb/d-lang.c (d_language_defn): Convert to...
8330 (d_language_data): ...this.
8331 (class d_language): New class.
8332 (d_language_defn): New static global.
8333 * gdb/f-lang.c (f_language_defn): Convert to...
8334 (f_language_data): ...this.
8335 (class f_language): New class.
8336 (f_language_defn): New static global.
8337 * gdb/go-lang.c (go_language_defn): Convert to...
8338 (go_language_data): ...this.
8339 (class go_language): New class.
8340 (go_language_defn): New static global.
8341 * gdb/language.c (unknown_language_defn): Remove declaration.
8342 (current_language): Initialize to nullptr, real initialization is
8343 moved to _initialize_language.
8344 (languages): Delete global.
8345 (language_defn::languages): Define.
8346 (set_language_command): Use language_defn::languages.
8347 (set_language): Likewise.
8348 (range_error): Likewise.
8349 (language_enum): Likewise.
8350 (language_def): Likewise.
8351 (add_set_language_command): Use language_def::languages for the
8352 language list, and language_def to lookup language pointers.
8353 (skip_language_trampoline): Use language_defn::languages.
8354 (unknown_language_defn): Convert to...
8355 (unknown_language_data): ...this.
8356 (class unknown_language): New class.
8357 (unknown_language_defn): New static global.
8358 (auto_language_defn): Convert to...
8359 (auto_language_data): ...this.
8360 (class auto_language): New class.
8361 (auto_language_defn): New static global.
8362 (language_gdbarch_post_init): Use language_defn::languages.
8363 (_initialize_language): Initialize current_language.
8364 * gdb/language.h (struct language_defn): Rename to...
8365 (struct language_data): ...this.
8366 (struct language_defn): New.
8367 (auto_language_defn): Delete.
8368 (unknown_language_defn): Delete.
8369 (minimal_language_defn): Delete.
8370 (ada_language_defn): Delete.
8371 (asm_language_defn): Delete.
8372 (c_language_defn): Delete.
8373 (cplus_language_defn): Delete.
8374 (d_language_defn): Delete.
8375 (f_language_defn): Delete.
8376 (go_language_defn): Delete.
8377 (m2_language_defn): Delete.
8378 (objc_language_defn): Delete.
8379 (opencl_language_defn): Delete.
8380 (pascal_language_defn): Delete.
8381 (rust_language_defn): Delete.
8382 * gdb/m2-lang.c (m2_language_defn): Convert to...
8383 (m2_language_data): ...this.
8384 (class m2_language): New class.
8385 (m2_language_defn): New static global.
8386 * gdb/objc-lang.c (objc_language_defn): Convert to...
8387 (objc_language_data): ...this.
8388 (class objc_language): New class.
8389 (objc_language_defn): New static global.
8390 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8391 (opencl_language_data): ...this.
8392 (class opencl_language): New class.
8393 (opencl_language_defn): New static global.
8394 * gdb/p-lang.c (pascal_language_defn): Convert to...
8395 (pascal_language_data): ...this.
8396 (class pascal_language): New class.
8397 (pascal_language_defn): New static global.
8398 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8399 language pointer, update comment format.
8400 * gdb/rust-lang.c (rust_language_defn): Convert to...
8401 (rust_language_data): ...this.
8402 (class rust_language): New class.
8403 (rust_language_defn): New static global.
8404
8405 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8408 member variable.
8409 <m_stmt_at_address>: New member variable.
8410 (lnp_state_machine::record_line): Don't record some lines, update
8411 tracking of is_stmt at the same address.
8412 (lnp_state_machine::lnp_state_machine): Initialise new member
8413 variables.
8414
8415 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8416
8417 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8418 "-include gnu-nat-mig.h".
8419 * gnu-nat-mig.h: New file.
8420 * gnu-nat.c: Include "gnu-nat-mig.h".
8421 (exc_server, msg_reply_server, notify_server,
8422 process_reply_server): Remove declarations.
8423
8424 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8425
8426 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8427 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8428 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8429 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8430 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8431 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8432 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8433 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8434 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8435 to gnu_nat_target class.
8436 * gnu-nat.c: Likewise.
8437 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8438 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8439 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8440 object.
8441 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8442 instead of `gnu_target'.
8443
8444 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8445
8446 * i386-gnu-tdep.c: Include "gdbcore.h"
8447 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8448 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8449 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8450 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8451 i386_gnu_sigcontext_addr): New functions
8452 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8453 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8454 tdep.
8455
8456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8457
8458 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8459 before fork_inferior call. Avoid calling it if target_is_pushed returns
8460 true.
8461
8462 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8463
8464 * gnu-nat.h (gnu_target): New variable declaration.
8465 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8466 gnu_target.
8467 * gnu-nat.c (gnu_target): New variable.
8468 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8469 add_thread_silent, and add_thread calls.
8470 (gnu_nat_target::create_inferior): Pass gnu_target to
8471 add_thread_silent, thread_change_ptid call.
8472 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8473 call.
8474
8475 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8476
8477 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8478 (gnu_nat_target::find_memory_regions): Remove unused
8479 `old_address' variable.
8480
8481 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8482
8483 * gnu-nat.c: Include "gdbarch.h".
8484
8485 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8486
8487 * reply_mig_hack.awk (Error return): Cast function through
8488 void *, to bypass compiler function call check.
8489
8490 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8491
8492 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8493 $(srcdir)/reply_mig_hack.awk.
8494
8495 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8496
8497 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8498
8499 2020-05-30 Jonny Grant <jg@jguk.org>
8500
8501 * configure.ac (ACX_BUGURL): change bug URL to https.
8502
8503 2020-05-30 Pedro Alves <palves@redhat.com>
8504
8505 * cp-support.c (replace_typedefs_template): New.
8506 (replace_typedefs_qualified_name): Handle
8507 DEMANGLE_COMPONENT_TEMPLATE.
8508
8509 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8512 dwarf2/index-cache.h, dwarf2/index-write.c,
8513 dwarf2/index-write.h, dwarf2/line-header.c,
8514 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8515 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8516 variables and fields from `dwarf2_per_objfile` to just
8517 `per_objfile` throughout.
8518
8519 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8520
8521 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8522 <push_dwarf_reg_entry_value>: Add comment.
8523
8524 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8525 Keith Seitz <keiths@redhat.com>
8526
8527 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8528 instead of PyEval_ReleaseLock.
8529 (class gdbpy_gil): Move to earlier in file.
8530 (finalize_python): Set gdb_python_initialized.
8531 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8532 when not initialized.
8533
8534 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8535
8536 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8537 <push_dwarf_reg_entry_value>: Remove assert. Override
8538 per_objfile with caller_per_objfile.
8539
8540 2020-05-28 Tom de Vries <tdevries@suse.de>
8541
8542 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8543 PR gold/15646 workaround to symbol kind "type".
8544
8545 2020-05-27 Tom Tromey <tromey@adacore.com>
8546
8547 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8548
8549 2020-05-27 Tom Tromey <tromey@adacore.com>
8550
8551 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8552 Use htab_find_with_hash.
8553 <add_abbrev>: Remove "abbrev_number" parameter.
8554 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8555 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8556 (hash_abbrev): Add comment.
8557 (abbrev_table::lookup_abbrev): Move to header file.
8558 (abbrev_table::read): Update.
8559
8560 2020-05-27 Tom Tromey <tromey@adacore.com>
8561
8562 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8563 method.
8564 <canonical_name>: New member.
8565 <raw_name>: Rename from "name".
8566 (partial_die_info): Initialize canonical_name.
8567 (scan_partial_symbols): Check raw_name.
8568 (partial_die_parent_scope, partial_die_full_name)
8569 (add_partial_symbol, add_partial_subprogram)
8570 (add_partial_enumeration, load_partial_dies): Use "name" method.
8571 (partial_die_info::name): New method.
8572 (partial_die_info::read, guess_partial_die_structure_name)
8573 (partial_die_info::fixup): Update.
8574
8575 2020-05-27 Tom Tromey <tromey@adacore.com>
8576
8577 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8578 <get_ref_die_offset>: Inline.
8579 <get_ref_die_offset_complaint>: New method.
8580 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8581 (attribute::get_ref_die_offset_complaint): Rename from
8582 get_ref_die_offset. Just issue complaint.
8583
8584 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8585
8586 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8587
8588 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8589
8590 * exec.c (exec_file_attach): Use errno value of first openp failure.
8591
8592 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8593
8594 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8595 Don't close thread handle.
8596
8597 2020-05-27 Tom Tromey <tom@tromey.com>
8598 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8601 shared_ptr.
8602 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8603 member.
8604 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8605 dwarf2_per_bfd_objfile_data_key>: New globals.
8606 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8607 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8608 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8609 shared.
8610 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8611 short-circuit when sharing.
8612 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8613 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8614
8615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8618 to...
8619 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8620 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8621
8622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8623
8624 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8625 build_name_components, find_name_components_bounds>:
8626 Add per_objfile parameter.
8627 (struct mapped_index) <symbol_name_at>: Likewise.
8628 (struct mapped_debug_names): Remove constructor.
8629 <dwarf2_per_objfile>: Remove field.
8630 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8631 (mapped_index_base::find_name_components_bounds,
8632 mapped_index_base::build_name_components,
8633 dw2_expand_symtabs_matching_symbol): Likewise.
8634 (class mock_mapped_index) <symbol_name_at>: Likewise.
8635 (check_match): Likewise.
8636 (check_find_bounds_finds): Likewise.
8637 (test_mapped_index_find_name_component_bounds): Update.
8638 (CHECK_MATCH): Update.
8639 (dw2_expand_symtabs_matching): Update.
8640 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8641 per_objfile parameter.
8642 <find_vec_in_debug_names>: Likewise.
8643 <m_per_objfile>: New field.
8644 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8645 parameter.
8646 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8647 (dw2_debug_names_iterator::next): Update.
8648 (dw2_debug_names_lookup_symbol): Update.
8649 (dw2_debug_names_expand_symtabs_for_function): Update.
8650 (dw2_debug_names_map_matching_symbols): Update.
8651 (dw2_debug_names_expand_symtabs_matching): Update.
8652 (dwarf2_read_debug_names): Update.
8653
8654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8657 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8658 move to dwarf2_per_objfile.
8659 <read_in_chain>: Remove.
8660 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8661 remove_all_cus, age_comp_units>: New methods.
8662 <m_dwarf2_cus>: New member.
8663 (struct dwarf2_per_cu_data) <cu>: Remove.
8664 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8665 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8666 moved to methods of dwarf2_per_objfile.
8667 (dwarf2_clear_marks): Remove.
8668 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8669 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8670 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8671 (dwarf2_per_objfile::remove_all_cus): New.
8672 (class free_cached_comp_units) <~free_cached_comp_units>:
8673 Update.
8674 (load_cu): Update.
8675 (dw2_do_instantiate_symtab): Adjust.
8676 (fill_in_sig_entry_from_dwo_entry): Adjust.
8677 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8678 (cutu_reader::cutu_reader): Likewise.
8679 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8680 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8681 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8682 and dwarf2_per_objfile::age_comp_units.
8683 (load_partial_comp_unit): Update.
8684 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8685 (process_queue): Likewise.
8686 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8687 backlink.
8688 (dwarf2_read_addr_index): Likewise.
8689 (follow_die_offset): Likewise.
8690 (dwarf2_fetch_die_loc_sect_off): Likewise.
8691 (dwarf2_fetch_constant_bytes): Likewise.
8692 (dwarf2_fetch_die_type_sect_off): Likewise.
8693 (follow_die_sig_1): Likewise.
8694 (load_full_type_unit): Likewise.
8695 (read_signatured_type): Likewise.
8696 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8697 (dwarf2_cu::~dwarf2_cu): Remove.
8698 (dwarf2_per_objfile::get_cu): New.
8699 (dwarf2_per_objfile::set_cu): New.
8700 (age_cached_comp_units): Rename to...
8701 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8702 to std::unordered_map.
8703 (free_one_cached_comp_unit): Rename to...
8704 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8705 to std::unordered_map.
8706 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8707 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8708 a dwarf2_per_objfile in data.
8709 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8710 (dwarf2_clear_marks): Remove.
8711
8712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8715 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8716 (init_tu_and_read_dwo_dies): Likewise.
8717 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8718 (cutu_reader::cutu_reader): Likewise.
8719 (load_partial_comp_unit): Likewise.
8720 (process_psymtab_comp_unit): Update.
8721 (build_type_psymtabs_1): Update.
8722 (process_skeletonless_type_unit): Update.
8723 (load_full_comp_unit): Update.
8724 (find_partial_die): Update.
8725 (dwarf2_read_addr_index): Update.
8726 (read_signatured_type): Update.
8727
8728 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8729
8730 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8731 m_header_read_in>: New fields.
8732 <get_header>: New method.
8733 * dwarf2/read.c (per_cu_header_read_in): Remove.
8734 (dwarf2_per_cu_data::get_header): New.
8735 (dwarf2_per_cu_data::addr_size): Update.
8736 (dwarf2_per_cu_data::offset_size): Update.
8737 (dwarf2_per_cu_data::ref_addr_size): Update.
8738
8739 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8740
8741 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8742 (dw2_do_instantiate_symtab): Update.
8743 (queue_and_load_all_dwo_tus): Change parameter from
8744 dwarf2_per_cu_data to dwarf2_cu.
8745 (dwarf2_fetch_die_loc_sect_off): Update.
8746 (dwarf2_fetch_constant_bytes): Update.
8747 (dwarf2_fetch_die_type_sect_off): Update.
8748
8749 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8750
8751 * dwarf2/read.c (process_full_comp_unit,
8752 process_full_type_unit): Remove per_cu, per_objfile paramters.
8753 Add dwarf2_cu parameter.
8754 (process_queue): Update.
8755
8756 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8757
8758 * dwarf2/read.c (create_cu_from_index_list): Replace
8759 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8760 (create_cus_from_index_list): Likewise.
8761 (create_cus_from_index): Likewise.
8762 (create_signatured_type_table_from_index): Likewise.
8763 (create_cus_from_debug_names_list): Likewise.
8764 (create_cus_from_debug_names): Likewise.
8765 (dwarf2_read_gdb_index): Update.
8766 (dwarf2_read_debug_names): Update.
8767
8768 2020-05-27 Tom Tromey <tom@tromey.com>
8769 Simon Marchi <simon.marchi@efficios.com>
8770
8771 * dwarf2/read.h (struct dwarf2_per_objfile)
8772 <get_type_for_signatured_type, set_type_for_signatured_type>:
8773 New methods.
8774 <m_type_map>: New member.
8775 (struct signatured_type) <type>: Remove.
8776 * dwarf2/read.c
8777 (dwarf2_per_objfile::get_type_for_signatured_type,
8778 dwarf2_per_objfile::set_type_for_signatured_type): New.
8779 (get_signatured_type): Use new methods.
8780
8781 2020-05-27 Tom Tromey <tom@tromey.com>
8782 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8785 (struct dwarf2_per_objfile) <type_units>: New member.
8786 <get_type_unit_group_unshareable>: New method.
8787 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8788 num_symtabs, symtabs>: Remove; move to
8789 type_unit_group_unshareable.
8790 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8791 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8792 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8793
8794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * dwarf2/read.h (struct dwarf2_per_cu_data):
8797 <dwarf2_per_objfile>: Remove.
8798 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8799 dwarf2_per_objfile.
8800 (create_signatured_type_table_from_index): Likewise.
8801 (create_signatured_type_table_from_debug_names): Likewise.
8802 (create_debug_type_hash_table): Likewise.
8803 (fill_in_sig_entry_from_dwo_entry): Likewise.
8804 (create_type_unit_group): Likewise.
8805 (read_comp_units_from_section): Likewise.
8806 (create_cus_hash_table): Likewise.
8807
8808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8809
8810 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8811 dwarf2_per_cu_data::dwarf2_per_objfile.
8812 (compute_compunit_symtab_includes): Likewise.
8813 (dwarf2_cu::start_symtab): Likewise.
8814
8815 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8816
8817 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8818 parameter.
8819 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8820 (read_namespace_alias): Update.
8821 (lookup_die_type): Update.
8822 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8823 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8824 Update.
8825 (disassemble_dwarf_expression): Update.
8826
8827 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * dwarf2/read.h (struct dwarf2_queue_item): Add
8830 dwarf2_per_objfile parameter, assign new parameter.
8831 <per_objfile>: New field.
8832 * dwarf2/read.c (free_one_cached_comp_unit): Add
8833 dwarf2_per_objfile parameter.
8834 (queue_comp_unit): Likewise.
8835 (dw2_do_instantiate_symtab): Update.
8836 (process_psymtab_comp_unit): Update.
8837 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8838 (process_imported_unit_die): Update.
8839 (queue_and_load_dwo_tu): Update.
8840 (follow_die_offset): Update.
8841 (follow_die_sig_1): Update.
8842
8843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8846 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8847 (read_call_site_scope): Assign per_objfile.
8848 (dwarf2_per_cu_data::objfile): Remove.
8849 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8850 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8851 dwarf2_per_objfile parameter.
8852 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8853 dwarf2_per_objfile parameter.
8854 (dwarf_expr_reg_to_entry_parameter): Add output
8855 dwarf2_per_objfile parameter.
8856 (locexpr_get_frame_base): Update.
8857 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8858 <push_dwarf_reg_entry_value>: Update.
8859 <call_site_to_target_addr>: Update.
8860 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8861 parameter.
8862 (value_of_dwarf_reg_entry): Update.
8863 (rw_pieced_value): Update.
8864 (indirect_synthetic_pointer): Update.
8865 (dwarf2_evaluate_property): Update.
8866 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8867 parameter.
8868 (locexpr_read_variable): Update.
8869 (locexpr_get_symbol_read_needs): Update.
8870 (loclist_read_variable): Update.
8871
8872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8875 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8876 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8877 parameter.
8878 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8879 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8880 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8881 parameter.
8882 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8883 sect_variable_value): Add dwarf2_per_objfile parameter.
8884 (class dwarf_evaluate_loc_desc) <dwarf_call,
8885 dwarf_variable_value>: Update.
8886 (fetch_const_value_from_synthetic_pointer): Add
8887 dwarf2_per_objfile parameter.
8888 (fetch_const_value_from_synthetic_pointer): Update.
8889 (coerced_pieced_ref): Update.
8890 (class symbol_needs_eval_context) <dwarf_call,
8891 dwarf_variable_value>: Update.
8892 (dwarf2_compile_expr_to_ax): Update.
8893
8894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8897 parameter.
8898 (dwarf2_evaluate_loc_desc_full): Update.
8899
8900 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8901
8902 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8903 parameter.
8904 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8905 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8906 dwarf2_per_objfile parameter.
8907 (decode_debug_loc_dwo_addresses): Likewise.
8908 (dwarf2_find_location_expression): Update.
8909 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8910 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8911 parameter.
8912 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8913 parameter.
8914 (locexpr_describe_location_1): Likewise.
8915 (locexpr_describe_location): Update.
8916
8917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8920 Remove.
8921 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8922 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8923 (dwarf2_compile_property_to_c): Update.
8924 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8925 use text offset from objfile.
8926 (locexpr_tracepoint_var_ref): Update.
8927 (locexpr_generate_c_location): Update.
8928 (loclist_describe_location): Update.
8929 (loclist_tracepoint_var_ref): Update.
8930 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8931 dwarf2_per_objfile parameter.
8932 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8933 use text offset from objfile.
8934 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8935
8936 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * dwarf2/expr.h (struct dwarf_expr_context)
8939 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8940 <offset>: Remove.
8941 <per_objfile>: New member.
8942 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8943 dwarf2_per_objfile parameter. Don't set offset, set
8944 per_objfile.
8945 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8946 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8947 a dwarf2_per_objfile object instead of an offset.
8948 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8949 constructor.
8950 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8951 to dwarf2_expr_executor constructor. Don't set offset.
8952 (dwarf2_fetch_cfa_info): Update.
8953 (struct dwarf2_frame_cache) <text_offset>: Remove.
8954 <per_objfile>: New field.
8955 (dwarf2_frame_cache): Update.
8956 (dwarf2_frame_prev_register): Update.
8957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8958 <dwarf_evaluate_loc_desc>: Add constructor.
8959 (dwarf2_evaluate_loc_desc_full): Update.
8960 (dwarf2_locexpr_baton_eval): Update.
8961 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8962 Add constructor.
8963 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8964
8965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8966
8967 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8968 addr_sized_int_type>: Move to dwarf2_cu.
8969 <int_type>: Move to dwarf2_per_objfile.
8970 (struct dwarf2_per_objfile) <int_type>: Move here.
8971 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8972 addr_sized_int_type>: Move here.
8973 (read_func_scope): Update.
8974 (read_array_type): Update.
8975 (read_tag_string_type): Update.
8976 (attr_to_dynamic_prop): Update.
8977 (dwarf2_per_cu_data::int_type): Rename to...
8978 (dwarf2_per_objfile::int_type): ... this.
8979 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8980 (dwarf2_cu::addr_sized_int_type): ... this.
8981 (read_subrange_type): Update.
8982 (dwarf2_per_cu_data::addr_type): Rename to...
8983 (dwarf2_cu::addr_type): ... this.
8984 (set_die_type): Update.
8985
8986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8987
8988 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8989 data through per_cu->cu.
8990
8991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8994 dwarf2_per_cu_data parameter fo dwarf2_cu.
8995 (lookup_dwo_type_unit): Likewise.
8996 (read_cutu_die_from_dwo): Likewise.
8997 (lookup_dwo_unit): Likewise.
8998 (open_and_init_dwo_file): Likewise.
8999 (lookup_dwo_cutu): Likewise.
9000 (lookup_dwo_comp_unit): Likewise.
9001 (lookup_dwo_type_unit): Likewise.
9002 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9003 (cutu_reader::cutu_reader): Update.
9004
9005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9008 parameter.
9009 (process_full_type_unit): Likewise.
9010 (process_queue): Update.
9011
9012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9013
9014 * dwarf2/read.c (recursively_compute_inclusions): Add
9015 dwarf2_per_objfile parameter.
9016 (compute_compunit_symtab_includes): Likewise.
9017 (process_cu_includes): Update.
9018
9019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9022 parameter.
9023 (create_type_unit_group): Update.
9024 (process_psymtab_comp_unit_reader): Update.
9025 (build_type_psymtabs_reader): Update.
9026
9027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9028
9029 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9030 object through m_this_cu->cu.
9031
9032 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9033
9034 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9035 the info parameter.
9036 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9037
9038 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9039
9040 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9041 per_objfile parameter.
9042 (load_full_type_unit): Add per_objfile parameter.
9043 (read_signatured_type): Likewise.
9044 (load_full_comp_unit): Likewise.
9045 (load_cu): Likewise.
9046 (dw2_do_instantiate_symtab): Likewise.
9047 (dw2_get_file_names): Likewise.
9048 (dw2_map_symtabs_matching_filename): Update.
9049 (dw_expand_symtabs_matching_file_matcher): Update.
9050 (dw2_map_symbol_filenames): Update.
9051 (process_psymtab_comp_unit): Add per_objfile parameter.
9052 (build_type_psymtabs_1): Update.
9053 (process_skeletonless_type_unit): Update.
9054 (dwarf2_build_psymtabs_hard): Update.
9055 (load_partial_comp_unit): Add per_objfile parameter.
9056 (scan_partial_symbols): Update.
9057 (load_full_comp_unit): Add per_objfile parameter.
9058 (process_imported_unit_die): Update.
9059 (create_cus_hash_table): Update.
9060 (find_partial_die): Update.
9061 (dwarf2_read_addr_index): Update.
9062 (follow_die_offset): Update.
9063 (dwarf2_fetch_die_loc_sect_off): Update.
9064 (dwarf2_fetch_constant_bytes): Update.
9065 (dwarf2_fetch_die_type_sect_off): Update.
9066 (follow_die_sig_1): Update.
9067 (load_full_type_unit): Add per_objfile parameter.
9068 (read_signatured_type): Likewise.
9069
9070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9073 of objfile_name.
9074
9075 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9078 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9079 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9080 field.
9081 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9082 (create_cus_from_index): Update.
9083 (dwarf2_read_gdb_index): Update.
9084 (create_cus_from_debug_names): Update.
9085 (dwarf2_read_debug_names): Update.
9086 (get_abbrev_section_for_cu): Update.
9087 (create_all_comp_units): Update.
9088 (read_attribute_value): Update.
9089 (get_debug_line_section): Update.
9090 * dwarf2/index-cache.c (index_cache::store): Update.
9091 * dwarf2/index-write.c (save_gdb_index_command): Update.
9092 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9093
9094 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9095
9096 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9097 member.
9098 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9099 dwarf2_per_cu_data::per_bfd.
9100 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9101 (create_type_unit_group): Likewise.
9102 (queue_comp_unit): Remove reference to
9103 per_cu->dwarf2_per_objfile.
9104 (maybe_queue_comp_unit): Likewise.
9105 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9106 (create_cus_hash_table): Assign new field.
9107
9108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * dwarf2/read.c: Replace
9111 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9112 dwarf2_cu->per_objfile throughout.
9113
9114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9117 parameter, don't use per_cu->dwarf2_per_objfile.
9118 (dw2_instantiate_symtab): Likewise.
9119 (dw2_find_last_source_symtab): Update.
9120 (dw2_map_expand_apply): Update.
9121 (dw2_lookup_symbol): Update.
9122 (dw2_expand_symtabs_for_function): Update.
9123 (dw2_expand_all_symtabs): Update.
9124 (dw2_expand_symtabs_with_fullname): Update.
9125 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9126 don't use per_cu->dwarf2_per_objfile.
9127 (dw2_expand_marked_cus): Update.
9128 (dw2_find_pc_sect_compunit_symtab): Update.
9129 (dw2_debug_names_lookup_symbol): Update.
9130 (dw2_debug_names_expand_symtabs_for_function): Update.
9131 (dw2_debug_names_map_matching_symbols): Update.
9132 (dwarf2_psymtab::expand_psymtab): Update.
9133
9134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9135
9136 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9137 <per_objfile>: New member.
9138 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9139 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9140 call to dwarf2_cu.
9141 (cutu_reader::cutu_reader): Update.
9142 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9143
9144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9147 struct dwarf2_per_objfile.
9148 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9149 dwarf2_per_bfd.
9150 * dwarf2/read.c (set_die_type): Update.
9151 (get_die_type_at_offset): Update.
9152
9153 2020-05-27 Tom Tromey <tom@tromey.com>
9154 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9157 method.
9158 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9159 get_symtab, set_symtab>: New methods.
9160 <m_symtabs>: New field.
9161 (struct dwarf2_psymtab): Derive from partial_symtab.
9162 <readin_p, get_compunit_symtab>: Declare methods.
9163 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9164 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9165 New methods.
9166 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9167 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9168 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9169 (dw2_symtab_iter_next, dw2_print_stats)
9170 (dw2_expand_symtabs_with_fullname)
9171 (dw2_expand_symtabs_matching_one)
9172 (dw_expand_symtabs_matching_file_matcher)
9173 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9174 (dw2_debug_names_iterator::next)
9175 (dw2_debug_names_map_matching_symbols)
9176 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9177 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9178 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9179 New methods.
9180 (get_compunit_symtab, process_full_comp_unit)
9181 (process_full_type_unit): Update.
9182 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9183
9184 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9185
9186 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9187 then introduce a new dwarf2_per_objfile type.
9188 <read_line_string>: Move to the new dwarf2_per_objfile type.
9189 <objfile>: Likewise.
9190 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9191 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9192 dwarf2_per_objfile->per_bfd.
9193 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9194 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9195 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9196 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9197 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9198 (dwarf2_per_objfile::locate_sections): Rename to...
9199 (dwarf2_per_bfd::locate_sections): ... this.
9200 (dwarf2_per_objfile::get_cutu): Rename to...
9201 (dwarf2_per_bfd::get_cutu): ... this.
9202 (dwarf2_per_objfile::get_cu): Rename to...
9203 (dwarf2_per_bfd::get_cu): ... this.
9204 (dwarf2_per_objfile::get_tu): Rename to...
9205 (dwarf2_per_bfd::get_tu): ... this.
9206 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9207 (dwarf2_per_bfd::allocate_per_cu): ... this.
9208 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9209 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9210 (get_gdb_index_contents_ftype): Change parameter from
9211 dwarf2_per_objfile to dwarf2_per_bfd.
9212 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9213 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9214
9215 2020-05-27 Tom Tromey <tom@tromey.com>
9216 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9219 (allocate_piece_closure): Set "per_objfile" member.
9220 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9221 (locexpr_describe_location, loclist_describe_location): Use new
9222 member.
9223 * dwarf2/read.c (read_call_site_scope)
9224 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9225 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9226 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9227 handle_data_member_location): Set per_objfile member.
9228 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9229 member.
9230 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9231
9232 2020-05-27 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9235 allocate_signatured_type>: Declare new methods.
9236 <m_num_psymtabs>: New member.
9237 (struct dwarf2_per_cu_data) <index>: New member.
9238 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9239 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9240 (create_cu_from_index_list): Use allocate_per_cu.
9241 (create_signatured_type_table_from_index)
9242 (create_signatured_type_table_from_debug_names)
9243 (create_debug_type_hash_table, add_type_unit)
9244 (read_comp_units_from_section): Use allocate_signatured_type.
9245
9246 2020-05-27 Tom Tromey <tom@tromey.com>
9247
9248 * psymtab.c (partial_map_expand_apply)
9249 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9250 (psym_lookup_global_symbol_language)
9251 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9252 (psym_print_stats, psym_expand_symtabs_for_function)
9253 (psym_map_symbol_filenames, psym_map_matching_symbols)
9254 (psym_expand_symtabs_matching)
9255 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9256 (maintenance_check_psymtabs): Update.
9257 * psympriv.h (struct partial_symtab) <readin_p,
9258 get_compunit_symtab>: Add objfile parameter.
9259 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9260 Likewise.
9261 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9262 get_compunit_symtab>: Likewise.
9263 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9264
9265 2020-05-27 Tom Tromey <tom@tromey.com>
9266
9267 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9268 member.
9269 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9270 (create_cu_from_index_list)
9271 (create_signatured_type_table_from_index)
9272 (create_signatured_type_table_from_debug_names)
9273 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9274 (dwarf2_create_include_psymtab)
9275 (create_debug_type_hash_table, add_type_unit)
9276 (create_type_unit_group, read_comp_units_from_section)
9277 (dwarf2_compute_name, create_cus_hash_table)
9278 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9279 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9280 obstack.
9281 (dw2_get_real_path): Likewise. Change argument to
9282 dwarf2_per_objfile.
9283
9284 2020-05-27 Luis Machado <luis.machado@linaro.org>
9285
9286 PR tdep/26000
9287 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9288 for ldrd (immediate).
9289
9290 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9291
9292 * command.h: Add comment giving the name of class_tui.
9293 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9294 create the fake command for the help for class_tui.
9295
9296 2020-05-26 Tom Tromey <tromey@adacore.com>
9297
9298 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9299 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9300 (val_atr): New function.
9301 (value_val_atr): Use it.
9302 * ada-valprint.c (print_optional_low_bound): Change low bound
9303 handling for enums.
9304 (val_print_packed_array_elements): Don't call discrete_position.
9305 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9306 discrete_position for enum types.
9307 * language.c (default_print_array_index): Change type.
9308 * language.h (struct language_defn) <la_print_array_index>: Add
9309 index_type parameter, change type of index_value.
9310 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9311 (default_print_array_index): Update.
9312 * valprint.c (maybe_print_array_index): Don't call
9313 value_from_longest. Update.
9314 (value_print_array_elements): Don't call discrete_position.
9315
9316 2020-05-26 Tom Tromey <tromey@adacore.com>
9317
9318 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9319 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9320
9321 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9322
9323 PR gdb/13519
9324 * avr-tdep.c (avr_integer_to_address): Return data or code
9325 address accordingly to the second 'type' argument of the
9326 function.
9327
9328 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9329
9330 * infcmd.c, inferior.h: (construct_inferior_arguments):
9331 Moved function from here to gdbsupport/common-inferior.{h,cc}
9332
9333 2020-05-23 Tom Tromey <tom@tromey.com>
9334
9335 Revert commit eca1f90c:
9336 * NEWS: Remove entry for completion styling.
9337 * completer.c (_rl_completion_prefix_display_length): Move
9338 declaration later.
9339 (gdb_fnprint): Revert.
9340 (gdb_display_match_list_1): Likewise.
9341 * cli/cli-style.c (completion_prefix_style)
9342 (completion_difference_style, completion_suffix_style): Remove.
9343 (_initialize_cli_style): Revert.
9344 * cli/cli-style.h (completion_prefix_style)
9345 (completion_difference_style, completion_suffix_style): Don't
9346 declare.
9347
9348 2020-05-24 Pedro Alves <palves@redhat.com>
9349
9350 * symtab.c (completion_list_add_name): Return boolean indication
9351 of whether the symbol matched.
9352 (completion_list_add_symbol): Don't try to remove C++ aliases if
9353 the symbol didn't match in the first place.
9354 * symtab.h (completion_list_add_name): Return bool.
9355
9356 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9357
9358 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9359 type::field.
9360
9361 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9362
9363 GDB 9.2 released.
9364
9365 2020-05-23 Tom Tromey <tom@tromey.com>
9366
9367 * NEWS: Add entry for completion styling.
9368 * completer.c (_rl_completion_prefix_display_length): Move
9369 declaration earlier.
9370 (gdb_fnprint): Use completion_style.
9371 (gdb_display_match_list_1): Likewise.
9372 * cli/cli-style.c (completion_prefix_style)
9373 (completion_difference_style, completion_suffix_style): New
9374 globals.
9375 (_initialize_cli_style): Register new globals.
9376 * cli/cli-style.h (completion_prefix_style)
9377 (completion_difference_style, completion_suffix_style): Declare.
9378
9379 2020-05-23 Pedro Alves <palves@redhat.com>
9380
9381 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9382 (parse_escape): Use ISDIGIT instead of isdigit.
9383 (puts_debug): Use gdb_isprint instead of isprint.
9384 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9385 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9386 ISSPACE instead of isspace.
9387 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9388 instead of isspace.
9389 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9390 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9391 instead of isxdigit and ISDIGIT instead of isdigit.
9392
9393 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9394
9395 * gdbtypes.h (struct type) <field>: New method.
9396 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9397 or type::field.
9398
9399 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9402 (TYPE_FIELDS): Use type::fields. Change all call sites that
9403 modify the propery to use type::set_fields instead.
9404
9405 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9408 type::num_fields instead.
9409
9410 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9413 methods.
9414 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9415 that modify the number of fields to use type::set_num_fields
9416 instead.
9417
9418 2020-05-22 Tom Tromey <tromey@adacore.com>
9419
9420 * compile/compile-object-load.h (munmap_list_free): Don't
9421 declare.
9422
9423 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9424
9425 * annotate.c (annotate_source_line): Update return type, add call
9426 to update current symtab and line.
9427 * annotate.h (annotate_source_line): Update return type, and
9428 extend header comment.
9429 * source.c (info_line_command): Check annotation_level before
9430 calling annotate_source_line.
9431 * stack.c (print_frame_info): If calling annotate_source_line
9432 returns true, then don't print any other source line information.
9433
9434 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9437
9438 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * coffread.c (patch_type): Remove NULL check before xfree.
9441 * corefile.c (set_gnutarget): Likewise.
9442 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9443 * exec.c (build_section_table): Likewise.
9444 * remote.c (remote_target::pass_signals): Likewise.
9445 * utils.c (n_spaces): Likewise.
9446 * cli/cli-script.c (document_command): Likewise.
9447 * i386-windows-tdep.c (core_process_module_section): Likewise.
9448 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9449
9450 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * symfile.c (reread_symbols): Clear objfile's section_offsets
9453 vector and section indices, re-compute them by calling
9454 sym_offsets.
9455
9456 2020-05-20 Tom Tromey <tromey@adacore.com>
9457
9458 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9459 (desc_one_bound, desc_index_type): Compute field name.
9460
9461 2020-05-20 Tom de Vries <tdevries@suse.de>
9462
9463 PR symtab/25833
9464 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9465
9466 2020-05-20 Alan Modra <amodra@gmail.com>
9467
9468 PR 25993
9469 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9470 bfd_set_filename.
9471 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9472 passed to bfd_set_filename.
9473 * symfile-mem.c (add_vsyscall_page): Likewise for string
9474 passed to symbol_file_add_from_memory.
9475 (symbol_file_add_from_memory): Make name param a const char* and
9476 don't strdup.
9477
9478 2020-05-20 Alan Modra <amodra@gmail.com>
9479
9480 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9481 rather than accessing bfd->filename directly.
9482 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9483 and use bfd_section_name.
9484 * dwarf2/frame.c (decode_frame_entry): Likewise.
9485 * exec.c (exec_set_section_address): Likewise.
9486 * solib-aix.c (solib_aix_bfd_open): Likewise.
9487 * stap-probe.c (get_stap_base_address): Likewise.
9488 * symfile.c (reread_symbols): Likewise.
9489
9490 2020-05-19 Tom Tromey <tromey@adacore.com>
9491
9492 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9493
9494 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9495
9496 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9497
9498 2020-05-19 Pedro Alves <palves@redhat.com>
9499
9500 * NEWS (set exec-file-mismatch): Adjust entry.
9501 * exec.c: Include "build-id.h".
9502 (validate_exec_file): Try to match build IDs instead of filenames.
9503 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9504 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9505 and pass down 'warn_if_slow'.
9506 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9507 gdb_bfd_open_closure to pass it down.
9508 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9509
9510 2020-05-19 Pedro Alves <palves@redhat.com>
9511
9512 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9513 * target.c (target_fileio_open_1): Rename to target_fileio_open
9514 and make extern. Use bool.
9515 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9516 (target_fileio_read_alloc_1): Adjust.
9517 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9518 (target_fileio_open_warn_if_slow): Delete declaration.
9519
9520 2020-05-19 Pedro Alves <palves@redhat.com>
9521
9522 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9523 Adjust all callers.
9524
9525 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9526
9527 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9528 whether disp is negative.
9529
9530 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9531
9532 * symfile.h (struct symfile_segment_data)
9533 <~symfile_segment_data>: Remove.
9534 <segment_info>: Change to std::vector.
9535 * symfile.c (default_symfile_segments): Update.
9536 * elfread.c (elf_symfile_segments): Update.
9537
9538 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9541 <segments>: New.
9542 <segment_bases, segment_sizes>: Remove.
9543 * symfile.c (default_symfile_segments): Update.
9544 * elfread.c (elf_symfile_segments): Update.
9545 * remote.c (remote_target::get_offsets): Update.
9546 * solib-target.c (solib_target_relocate_section_addresses):
9547 Update.
9548
9549 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * symfile.h (struct symfile_segment_data): Initialize fields.
9552 <~symfile_segment_data>: Add.
9553 (symfile_segment_data_up): New.
9554 (struct sym_fns) <sym_segments>: Return a
9555 symfile_segment_data_up.
9556 (default_symfile_segments): Return a symfile_segment_data_up.
9557 (free_symfile_segment_data): Remove.
9558 (get_symfile_segment_data): Return a symfile_segment_data_up.
9559 * symfile.c (default_symfile_segments): Likewise.
9560 (get_symfile_segment_data): Likewise.
9561 (free_symfile_segment_data): Remove.
9562 (symfile_find_segment_sections): Update.
9563 * elfread.c (elf_symfile_segments): Return a
9564 symfile_segment_data_up.
9565 * remote.c (remote_target::get_offsets): Update.
9566 * solib-target.c (solib_target_relocate_section_addresses):
9567 Update.
9568 * symfile-debug.c (debug_sym_segments): Return a
9569 symfile_segment_data_up.
9570
9571 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9572
9573 PR build/25981
9574 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9575 Hardcode register numbers.
9576
9577 PR build/25981
9578 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9579 procfs_find_LDT_entry): Remove.
9580 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9581 procfs_find_LDT_entry): Remove.
9582 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9583 Remove.
9584
9585 2020-05-17 Pedro Alves <palves@redhat.com>
9586 Andrew Burgess <andrew.burgess@embecosm.com>
9587 Keno Fischer <keno@juliacomputing.com>
9588
9589 PR gdb/25741
9590 * breakpoint.c (build_target_condition_list): Update comments.
9591 (build_target_command_list): Update comments and skip matching
9592 locations.
9593 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9594 a separate function. Simplify "set breakpoint auto-hw off"
9595 handling.
9596 (insert_breakpoints): Update comment.
9597 (tracepoint_locations_match): New parameter. For breakpoints,
9598 compare location types too, if the caller wants to.
9599 (handle_automatic_hardware_breakpoints): New functions.
9600 (bp_location_is_less_than): Also sort by location type and
9601 hardware breakpoint length.
9602 (update_global_location_list): Handle "set breakpoint auto-hw on"
9603 here.
9604 (update_breakpoint_locations): Ask breakpoint_locations_match to
9605 ignore location types.
9606
9607 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9610 type::name instead.
9611
9612 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * gdbtypes.h (struct type) <name, set_name>: New methods.
9615 (TYPE_CODE): Use type::name. Change all call sites used to set
9616 the name to use type::set_name instead.
9617
9618 2020-05-16 Tom Tromey <tom@tromey.com>
9619
9620 * top.c (quit_force): Update.
9621 * infrun.c (handle_no_resumed): Update.
9622 * top.h (all_uis): New function.
9623 (ALL_UIS): Remove.
9624
9625 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9628
9629 2020-05-16 Pedro Alves <palves@redhat.com>
9630
9631 * ia64-linux-nat.c
9632 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9633 Declare method.
9634 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9635
9636 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9639 (sparc64_adi_info): Likewise.
9640
9641 2020-05-15 Tom Tromey <tom@tromey.com>
9642
9643 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9644 block_objfile.
9645 (lookup_objfile_from_block): Remove.
9646 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9647 (lookup_global_symbol): Use block_objfile.
9648 * symtab.h (lookup_objfile_from_block): Don't declare.
9649 * printcmd.c (clear_dangling_display_expressions): Use
9650 block_objfile.
9651 * parse.c (operator_check_standard): Use block_objfile.
9652
9653 2020-05-15 Tom Tromey <tom@tromey.com>
9654
9655 * language.c (language_alloc_type_symbol): Set
9656 SYMBOL_SECTION.
9657 * symtab.c (initialize_objfile_symbol): Remove.
9658 (allocate_symbol): Remove.
9659 (allocate_template_symbol): Remove.
9660 * dwarf2/read.c (fixup_go_packaging): Use "new".
9661 (new_symbol): Use "new".
9662 (read_variable): Don't call initialize_objfile_symbol. Use
9663 "new".
9664 (read_func_scope): Use "new".
9665 * xcoffread.c (process_xcoff_symbol): Don't call
9666 initialize_objfile_symbol.
9667 (SYMBOL_DUP): Remove.
9668 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9669 "new".
9670 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9671 (allocate_template_symbol): Don't declare.
9672 (struct symbol): Add copy constructor. Change defaults.
9673 * jit.c (finalize_symtab): Use "new".
9674 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9675 Use "new".
9676 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9677 (common_block_end): Use "new".
9678 * mdebugread.c (parse_symbol): Use "new".
9679 (new_symbol): Likewise.
9680
9681 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9682
9683 * NEWS: Mention changes to help and apropos.
9684
9685 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9686
9687 * command.h (enum command_class): Improve comments, document
9688 that class_alias is for user-defined aliases, give the class
9689 name for each class, remove unused class_xdb.
9690 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9691 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9692 by a precise class.
9693 * infcmd.c (_initialize_infcmd): Likewise.
9694 * reverse.c (_initialize_reverse): Likewise.
9695 * stack.c (_initialize_stack): Likewise.
9696 * symfile.c (_initialize_symfile): Likewise.
9697 * tracepoint.c (_initialize_tracepoint): Likewise.
9698
9699 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9700
9701 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9702 when their aliased command is traversed.
9703 (help_cmd): Add fput_command_names_styled call to
9704 output command name and aliases when command has an alias.
9705
9706 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9707
9708 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9709 * cli/cli-decode.c (help_cmd_list): Declare as static,
9710 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9711 a command together with the command.
9712 (fput_command_name_styled, fput_command_names_styled): New functions.
9713 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9714 fput_command_name_styled.
9715 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9716 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9717
9718 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9719
9720 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9721 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9722 * command.h (cmd_show_list): Likewise.
9723 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9724 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9725
9726 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9727
9728 * unittests/command-def-selftests.c (traverse_command_structure):
9729 Verify all commands of a list have the same prefix command and
9730 that only the top cmdlist commands have a null prefix.
9731
9732 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9733
9734 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9735 as prefix, not one of its aliases.
9736 (set_cmd_prefix): Remove.
9737 (do_add_cmd): Centralize the setting of the prefix of a command, when
9738 command is defined after its full chain of prefix commands.
9739 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9740 (add_setshow_cmd_full): Likewise.
9741 (update_prefix_field_of_prefixed_commands): New function.
9742 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9743 update_prefix_field_of_prefixed_commands.
9744 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9745 addresses of remote_set_cmdlist and remote_show_cmdlist given
9746 as argument, not the address of an argument.
9747 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9748 * gdb/remote.c (_initialize_remote): Likewise.
9749
9750 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9751
9752 * cli/cli-cmds.c (alias_command): Check for an existing alias
9753 using lookup_cmd_composition, as valid_command_p is too strict
9754 and forbids aliases that are the prefix of an existing alias
9755 or command.
9756 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9757 command is properly recognised as a valid command.
9758
9759 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9760
9761 * unittests/help-doc-selftests.c: Rename to
9762 unittests/command-def-selftests.c
9763 * unittests/command-def-selftests.c (help_doc_tests): Update some
9764 comments.
9765 (command_structure_tests, traverse_command_structure): New namespace
9766 and function.
9767 (command_structure_invariants_tests): New function.
9768 (_initialize_command_def_selftests) Renamed from
9769 _initialize_help_doc_selftests, register command_structure_invariants
9770 selftest.
9771
9772 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9773
9774 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9775 an alias of 'show'.
9776
9777 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9778
9779 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9780 ada_is_fixed_point_type. Update all callers.
9781 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9782 all callers.
9783 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9784 Update all callers.
9785 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9786 print_fixed_point_type. Update all callers.
9787 * ada-valprint.c (ada_value_print_num): Replace call to
9788 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9789
9790 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9791
9792 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9793 processors.
9794 (cpu_supports_bts): Add CV_AMD case.
9795
9796 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9797 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * infrun.c (stop_all_threads): Collect multiple wait events at
9800 each pass.
9801
9802 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9805 type::code instead.
9806
9807 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * gdbtypes.h (struct type) <code, set_code>: New methods.
9810 (TYPE_CODE): Use type::code. Change all call sites used to set
9811 the code to use type::set_code instead.
9812
9813 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9814 Tom de Vries <tdevries@suse.de>
9815 Pedro Alves <palves@redhat.com>
9816
9817 PR threads/25478
9818 * infrun.c (stop_all_threads): Do NOT ignore
9819 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9820 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9821 received.
9822 (handle_no_resumed): Remove code handling a live inferior with no
9823 threads.
9824 * remote.c (has_single_non_exited_thread): New.
9825 (remote_target::update_thread_list): Do not delete a thread if is
9826 the last thread of the process.
9827 * thread.c (thread_select): Call delete_exited_threads instead of
9828 prune_threads.
9829
9830 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9831
9832 * infrun.c (stop_all_threads): Enable/disable thread events of all
9833 targets. Move a debug message denoting the end of the function
9834 into the SCOPED_EXIT block.
9835
9836 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9837
9838 * process-stratum-target.h: Include <set>.
9839 (all_non_exited_process_targets, switch_to_target_no_thread): New
9840 function declarations.
9841 * process-stratum-target.c (all_non_exited_process_targets)
9842 (switch_to_target_no_thread): New function implementations.
9843
9844 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9845
9846 * infrun.c (handle_inferior_event): Extract out a piece of code
9847 into...
9848 (mark_non_executing_threads): ...this new function.
9849
9850 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9851
9852 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9853 use.
9854
9855 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9856
9857 * regcache.c (regcache_read_pc_protected): New function
9858 implementation that returns 0 if the PC cannot read via
9859 'regcache_read_pc'.
9860 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9861 instead of 'regcache_read_pc'.
9862 (keep_going_pass_signal): Ditto.
9863
9864 2020-05-13 Tom Tromey <tromey@adacore.com>
9865
9866 * ada-lang.c (align_value): Remove.
9867 (ada_template_to_fixed_record_type_1): Use align_up.
9868
9869 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9870
9871 * async-event.c: Update the copyright year.
9872 * async-event.h: Update the copyright year.
9873
9874 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * objfiles.h (is_addr_in_objfile,
9877 shared_objfile_contains_address_p): Return bool.
9878 * objfile.c (is_addr_in_objfile,
9879 shared_objfile_contains_address_p): Return bool.
9880
9881 2020-05-11 Tom Tromey <tromey@adacore.com>
9882
9883 * cli/cli-cmds.c (info_command): Restore.
9884 (_initialize_cli_cmds): Use add_prefix_command for "info".
9885 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9886
9887 2020-05-11 Tom Tromey <tromey@adacore.com>
9888
9889 * ada-lang.c (ada_value_primitive_field): Now public.
9890 * ada-lang.h (ada_value_primitive_field): Declare.
9891 * ada-valprint.c (print_field_values): Use
9892 ada_value_primitive_field for wrapper fields.
9893
9894 2020-05-11 Tom de Vries <tdevries@suse.de>
9895
9896 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9897 MODULE_DOMAIN.
9898
9899 2020-05-11 Tom de Vries <tdevries@suse.de>
9900
9901 PR symtab/25941
9902 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9903 with length 0, if not gdb-produced.
9904 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9905
9906 2020-05-09 Tom de Vries <tdevries@suse.de>
9907
9908 PR gdb/25955
9909 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9910 calculation.
9911
9912 2020-05-09 Tom Tromey <tom@tromey.com>
9913
9914 * top.c (server_command): Now bool.
9915 * top.h (server_command): Now bool.
9916
9917 2020-05-08 Tom Tromey <tromey@adacore.com>
9918
9919 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9920 already being processed.
9921
9922 2020-05-08 Tom Tromey <tom@tromey.com>
9923
9924 * printcmd.c (struct display) <next>: Remove.
9925 <display>: New constructor.
9926 <exp_string>: Now a std::string.
9927 <enabled_p>: Now a bool.
9928 (display_number): Move definition earlier.
9929 (displays): Rename from display_chain. Now a std::vector.
9930 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9931 (display_command): Update.
9932 (do_one_display, disable_display)
9933 (enable_disable_display_command, do_enable_disable_display):
9934 Update.
9935 (free_display): Remove.
9936 (clear_displays): Rewrite.
9937 (delete_display): Update.
9938 (map_display_numbers): Use function_view. Remove "data"
9939 parameter. Update.
9940 (do_delete_display): Remove.
9941 (undisplay_command): Update.
9942 (do_one_display, do_displays, disable_display)
9943 (info_display_command): Update.
9944 (do_enable_disable_display): Remove.
9945 (enable_disable_display_command)
9946 (clear_dangling_display_expressions): Update.
9947
9948 2020-05-08 Tom Tromey <tom@tromey.com>
9949
9950 * symtab.c (set_symbol_cache_size)
9951 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9952 (maintenance_print_symbol_cache_statistics): Update.
9953 * symmisc.c (print_symbol_bcache_statistics)
9954 (print_objfile_statistics, maintenance_print_objfiles)
9955 (maintenance_info_symtabs, maintenance_check_symtabs)
9956 (maintenance_expand_symtabs, maintenance_info_line_tables):
9957 Update.
9958 * symfile-debug.c (set_debug_symfile): Update.
9959 * source.c (forget_cached_source_info): Update.
9960 * python/python.c (gdbpy_progspaces): Update.
9961 * psymtab.c (maintenance_info_psymtabs): Update.
9962 * probe.c (parse_probes): Update.
9963 * linespec.c (iterate_over_all_matching_symtabs)
9964 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9965 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9966 * exec.c (exec_target::close): Update.
9967 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9968 * breakpoint.c (print_one_breakpoint_location)
9969 (create_longjmp_master_breakpoint)
9970 (create_std_terminate_master_breakpoint): Update.
9971 * progspace.c (program_spaces): Now a std::vector.
9972 (maybe_new_address_space): Update.
9973 (add_program_space): Remove.
9974 (program_space::program_space): Update.
9975 (remove_program_space): Update.
9976 (number_of_program_spaces): Remove.
9977 (print_program_space, update_address_spaces): Update.
9978 * progspace.h (program_spaces): Change type.
9979 (ALL_PSPACES): Remove.
9980 (number_of_program_spaces): Don't declare.
9981 (struct program_space) <next>: Remove.
9982
9983 2020-05-08 Tom Tromey <tom@tromey.com>
9984
9985 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9986 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9987 (enable_break): Update.
9988 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9989 (frv_fdpic_find_canonical_descriptor): Update.
9990 (frv_fetch_objfile_link_map): Update.
9991 * progspace.c (program_space::free_all_objfiles): Update.
9992 (program_space::solibs): New method.
9993 * progspace.h (struct program_space) <solibs>: New method.
9994 * solist.h (master_so_list): Don't declare.
9995 (ALL_SO_LIBS): Remove.
9996 * solib.h (so_list_head): Remove.
9997 (update_solib_list): Update comment.
9998 * solib.c (master_so_list): Remove.
9999 (solib_used, update_solib_list, solib_add)
10000 (info_sharedlibrary_command, clear_solib)
10001 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10002
10003 2020-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * extension.c (extension_languages): Now a std::array.
10006 (ALL_EXTENSION_LANGUAGES): Remove.
10007 (get_ext_lang_defn, get_ext_lang_of_file)
10008 (eval_ext_lang_from_control_command): Update.
10009 (finish_ext_lang_initialization)
10010 (auto_load_ext_lang_scripts_for_objfile)
10011 (ext_lang_type_printers::ext_lang_type_printers)
10012 (apply_ext_lang_type_printers)
10013 (ext_lang_type_printers::~ext_lang_type_printers)
10014 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10015 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10016 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10017 (get_matching_xmethod_workers, ext_lang_colorize)
10018 (ext_lang_before_prompt): Update.
10019 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10020
10021 2020-05-08 Tom Tromey <tom@tromey.com>
10022
10023 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10024 overload.
10025 <swap_string, m_string>: Remove.
10026 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10027 Update.
10028 * stabsread.c (define_symbol, read_type): Update.
10029 * linespec.c (find_linespec_symbols): Update.
10030 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10031 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10032 * dbxread.c (read_dbx_symtab): Update.
10033 * cp-support.h (cp_canonicalize_string_full)
10034 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10035 Return unique_xmalloc_ptr.
10036 * cp-support.c (inspect_type): Update.
10037 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10038 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10039 Likewise.
10040 * c-typeprint.c (print_name_maybe_canonical): Update.
10041 * break-catch-throw.c (check_status_exception_catchpoint):
10042 Update.
10043
10044 2020-05-08 Tom de Vries <tdevries@suse.de>
10045
10046 * infrun.c (follow_fork): Copy current_line and current_symtab to
10047 child thread.
10048
10049 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * async-event.c (struct async_signal_handler, struct
10052 async_event_handler): Reformat, remove typedef.
10053
10054 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10057 access thistype->main_type->dyn_prop_list directly.
10058
10059 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10062 (remove_dyn_prop): Remove. Update all users to use
10063 type::remove_dyn_prop.
10064 * gdbtypes.c (remove_dyn_prop): Rename to...
10065 (type::remove_dyn_prop): ... this.
10066
10067 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10068
10069 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10070 (add_dyn_prop): Remove. Update all users to use
10071 type::add_dyn_prop.
10072 * gdbtypes.c (add_dyn_prop): Rename to...
10073 (type::add_dyn_prop): ... this.
10074
10075 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10076
10077 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10078 (get_dyn_prop): Remove. Update all users to use
10079 type::dyn_prop.
10080 * gdbtypes.c (get_dyn_prop): Rename to...
10081 (type::dyn_prop): ... this.
10082
10083 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10086
10087 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10088
10089 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10090 instruction, skip it if it's there.
10091
10092 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10095
10096 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10099 * gdbtypes.c (recursive_dump_type): Remove use of
10100 TYPE_INCOMPLETE.
10101
10102 2020-05-03 Tom Tromey <tom@tromey.com>
10103
10104 * breakpoint.c (catch_command, tcatch_command): Remove.
10105 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10106 add_show_prefix_cmd.
10107 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10108 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10109 Remove.
10110 (add_internal_problem_command): Use add_basic_prefix_cmd,
10111 add_show_prefix_cmd.
10112 * mips-tdep.c (set_mipsfpu_command): Remove.
10113 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10114 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10115 (_initialize_index_cache): Use add_basic_prefix_cmd.
10116 * memattr.c (dummy_cmd): Remove.
10117 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10118 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10119 (_initialize_tui_win): Use add_basic_prefix_cmd,
10120 add_show_prefix_cmd.
10121 * cli/cli-logging.c (set_logging_command): Remove.
10122 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10123 add_show_prefix_cmd.
10124 (show_logging_command): Remove.
10125 * target.c (target_command): Remove.
10126 (add_target): Use add_basic_prefix_cmd.
10127
10128 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10129
10130 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10131
10132 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10133
10134 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10135 info_command.
10136
10137 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10138
10139 * nbsd-nat.c (nbsd_enable_proc_events)
10140 (nbsd_nat_target::post_startup_inferior): Add.
10141 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10142 (nbsd_nat_target::update_thread_list): Rewrite.
10143 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10144 "PTRACE_LWP_CREATE".
10145 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10146
10147 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10148
10149 * stack.c (_initialize_stack): Remove duplicated creation
10150 of "frame" command and "f" alias.
10151
10152 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10153
10154 PR gdb/18706
10155 * gdbtypes.c (check_typedef): Calculate size of array of
10156 stubbed type.
10157
10158 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10159
10160 PR gdb/15559
10161 * i386-tdep.c (i386_push_dummy_call): Call
10162 i386_thiscall_push_dummy_call.
10163 (i386_thiscall_push_dummy_call): New function.
10164 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10165 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10166 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10167
10168 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * gdbarch.sh (do_read): Add shellcheck disable directive for
10171 warning SC2162.
10172
10173 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10174
10175 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10176 "referenced but not assigned" warning.
10177
10178 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * gdbarch.sh: Remove code that sets fallbackdefault.
10181
10182 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10183
10184 * gdbarch.sh: Use shell operators && and || instead of
10185 -a and -o.
10186
10187 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * gdbarch.sh: Use $(...) instead of `...`.
10190
10191 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * gdbarch.sh: Use double quotes around variables.
10194
10195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * gdbarch.sh: Use %s with printf, instead of variables in the
10198 format string.
10199
10200 2020-04-29 Tom Tromey <tromey@adacore.com>
10201
10202 PR ada/25875:
10203 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10204 type fields here.
10205 (read_enumeration_type): Call
10206 update_enumeration_type_from_children later. Update comments.
10207 (process_enumeration_scope): Don't create type fields.
10208
10209 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10210
10211 * nbsd-tdep.c: Include "xml-syscall.h".
10212 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10213
10214 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10215
10216 * nbsd-nat.c: Include "sys/wait.h".
10217 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10218 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10219 (nbsd_nat_target::remove_exec_catchpoint)
10220 (nbsd_nat_target::set_syscall_catchpoint): Add.
10221 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10222 (nbsd_nat_target::insert_exec_catchpoint)
10223 (nbsd_nat_target::remove_exec_catchpoint)
10224 (nbsd_nat_target::set_syscall_catchpoint): Add.
10225 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10226 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10227 `nbsd_get_syscall_number'.
10228
10229 2020-04-29 Tom Tromey <tom@tromey.com>
10230
10231 * stack.c (print_block_frame_labels): Remove.
10232
10233 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10234
10235 PR gdb/17320
10236 * ada-valprint.c (val_print_packed_array_elements): Move array
10237 end bracket to new line.
10238 (ada_val_print_string): Remove extra spaces before first array
10239 element.
10240 * c-valprint.c (c_value_print_array): Likewise.
10241 * m2-valprint.c (m2_print_array_contents): Likewise.
10242 (m2_value_print_inner): Likewise.
10243 * p-valprint.c (pascal_value_print_inner): Likewise.
10244 * valprint.c (generic_val_print_array): Likewise.
10245 (value_print_array_elements): Move first array element and array
10246 end bracket to new line.
10247
10248 2020-04-29 Tom de Vries <tdevries@suse.de>
10249
10250 PR symtab/25889
10251 * linespec.c (find_method): Fix ix calculation.
10252
10253 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10254
10255 * syscalls/update-netbsd.sh: New file.
10256 * syscalls/netbsd.xml: Regenerate.
10257 * data-directory/Makefile.in: Register `netbsd.xml' in
10258 `SYSCALLS_FILES'.
10259
10260 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10261
10262 * syscalls/update-freebsd.sh: Add double quotes.
10263
10264 2020-04-28 Tom Tromey <tom@tromey.com>
10265
10266 * NEWS: Update.
10267 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10268 (cmdpy_init): Allow class_tui.
10269
10270 2020-04-28 Mark Williams <mark@myosotissp.com>
10271
10272 PR gdb/24480
10273 * dwarf2read.c: Add missing assingments to list_in_scope when
10274 start_symtab was already called.
10275
10276 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10277
10278 PR gdb/25881
10279 * dwarf2/read.c (offset_map_type): Use
10280 gdb:hash_enum<sect_offset> as hash function.
10281
10282 2020-04-28 Tom de Vries <tdevries@suse.de>
10283
10284 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10285 with DW_AT_signature.
10286
10287 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * configure.ac: Remove check for fs_base/gs_base in
10290 user_regs_struct.
10291 * configure: Re-generate.
10292 * config.in: Re-generate.
10293 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10294 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10295 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10296
10297 2020-04-27 Luis Machado <luis.machado@linaro.org>
10298
10299 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10300 problematic inline frame unwinding situation.
10301 * frame.c (frame_id_computed_p): New function.
10302 * frame.h (frame_id_computed_p): New prototype.
10303
10304 2020-04-26 Tom Tromey <tom@tromey.com>
10305
10306 * command.h (enum command_class) <class_pseudo>: Remove.
10307
10308 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10309
10310 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10311 and whitespace.
10312
10313 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10314
10315 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10316 `PT_GET_PROCESS_STATE' block.
10317
10318 2020-04-24 Tom Tromey <tom@tromey.com>
10319
10320 * symtab.h (symbol_get_demangled_name): Don't declare.
10321 * symtab.c (symbol_get_demangled_name): Remove.
10322 (general_symbol_info::natural_name)
10323 (general_symbol_info::demangled_name): Update.
10324
10325 2020-04-24 Tom Tromey <tom@tromey.com>
10326
10327 PR rust/25025:
10328 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10329
10330 2020-04-24 Tom Tromey <tom@tromey.com>
10331
10332 PR symtab/12707:
10333 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10334 exists.
10335 (new_symbol): Likewise.
10336 * compile/compile-object-load.c (get_out_value_type): Use
10337 symbol_matches_search_name.
10338
10339 2020-04-24 Tom Tromey <tom@tromey.com>
10340
10341 * dwarf2/read.c (add_partial_symbol): Do not call
10342 compute_and_set_names.
10343
10344 2020-04-24 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10347 overload.
10348
10349 2020-04-24 Tom Tromey <tom@tromey.com>
10350
10351 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10352 (add_psymbol_to_list): New overload. Make old overload call new
10353 one.
10354 * psympriv.h (add_psymbol_to_list): New overload.
10355
10356 2020-04-24 Tom Tromey <tom@tromey.com>
10357
10358 * dwarf2/read.c (partial_die_info::read) <case
10359 DW_AT_linkage_name>: Use value_as_string.
10360 (dwarf2_string_attr): Use value_as_string.
10361 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10362 method.
10363 * dwarf2/attribute.c (attribute::value_as_string): New method.
10364
10365 2020-04-24 Tom Tromey <tom@tromey.com>
10366
10367 * symtab.c (general_symbol_info::natural_name)
10368 (general_symbol_info::demangled_name): Check for language_rust.
10369
10370 2020-04-24 Tom Tromey <tom@tromey.com>
10371
10372 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10373 (dwarf2_physname): ... from here.
10374 (partial_die_info::read): Add Rust "{" hack.
10375
10376 2020-04-24 Tom Tromey <tom@tromey.com>
10377
10378 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10379 method.
10380 (symbol_set_demangled_name): Don't declare.
10381 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10382 symbol_set_demangled_name.
10383 (general_symbol_info::set_language)
10384 (general_symbol_info::compute_and_set_names): Update.
10385 * minsyms.c (minimal_symbol_reader::install): Update.
10386 * dwarf2/read.c (new_symbol): Update.
10387
10388 2020-04-24 Tom Tromey <tromey@adacore.com>
10389
10390 PR python/23662:
10391 * python/py-type.c (convert_field): Handle
10392 FIELD_LOC_KIND_DWARF_BLOCK.
10393 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10394 (typy_get_dynamic): Nw function.
10395 (type_object_getset): Add "dynamic".
10396 * NEWS: Add entry.
10397
10398 2020-04-24 Tom Tromey <tromey@adacore.com>
10399
10400 * ada-typeprint.c (print_choices, print_variant_part)
10401 (print_record_field_types_dynamic): New functions.
10402 (print_record_field_types): Use print_record_field_types_dynamic.
10403
10404 2020-04-24 Tom Tromey <tromey@adacore.com>
10405
10406 * dwarf2/read.c (handle_data_member_location): New overload.
10407 (dwarf2_add_field): Use it.
10408 (decode_locdesc): Add "computed" parameter. Update comment.
10409 * gdbtypes.c (is_dynamic_type_internal): Also look for
10410 FIELD_LOC_KIND_DWARF_BLOCK.
10411 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10412 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10413 virtual base classes.
10414 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10415 FIELD_LOC_KIND_DWARF_BLOCK.
10416
10417 2020-04-24 Tom Tromey <tromey@adacore.com>
10418
10419 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10420 * gdbtypes.c (is_dynamic_type_internal): Check
10421 TYPE_HAS_DYNAMIC_LENGTH.
10422 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10423 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10424 New macros.
10425 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10426 constant.
10427
10428 2020-04-24 Tom Tromey <tromey@adacore.com>
10429
10430 * dwarf2/read.c (struct variant_field): Rewrite.
10431 (struct variant_part_builder): New.
10432 (struct nextfield): Remove "variant" field. Add "offset".
10433 (struct field_info): Add "current_variant_part" and
10434 "variant_parts".
10435 (alloc_discriminant_info): Remove.
10436 (alloc_rust_variant): New function.
10437 (quirk_rust_enum): Update.
10438 (dwarf2_add_field): Set "offset" member. Don't handle
10439 DW_TAG_variant_part.
10440 (offset_map_type): New typedef.
10441 (convert_variant_range, create_one_variant)
10442 (create_one_variant_part, create_variant_parts)
10443 (add_variant_property): New functions.
10444 (dwarf2_attach_fields_to_type): Call add_variant_property.
10445 (read_structure_type): Don't handle DW_TAG_variant_part.
10446 (handle_variant_part, handle_variant): New functions.
10447 (handle_struct_member_die): Use them.
10448 (process_structure_scope): Don't handle variant parts.
10449 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10450 (struct discriminant_info): Remove.
10451 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10452 (struct main_type) <flag_discriminated_union>: Remove.
10453 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10454 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10455 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10456 Update.
10457 * valops.c (value_union_variant): Remove.
10458 * value.h (value_union_variant): Don't declare.
10459
10460 2020-04-24 Tom Tromey <tromey@adacore.com>
10461
10462 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10463 (ada_value_primitive_packed_val): Update.
10464 * ada-valprint.c (ada_value_print_1): Update.
10465 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10466 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10467 just an address. Use evaluate_for_locexpr_baton.
10468 (dwarf2_evaluate_property): Update.
10469 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10470 array_view.
10471 * findvar.c (default_read_var_value): Update.
10472 * gdbtypes.c (compute_variant_fields_inner)
10473 (resolve_dynamic_type_internal): Update.
10474 (resolve_dynamic_type): Change type of valaddr parameter.
10475 * gdbtypes.h (resolve_dynamic_type): Update.
10476 * valarith.c (value_subscripted_rvalue): Update.
10477 * value.c (value_from_contents_and_address): Update.
10478
10479 2020-04-24 Tom Tromey <tromey@adacore.com>
10480
10481 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10482 "push_initial_value" parameter.
10483 (dwarf2_evaluate_property): Likewise.
10484 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10485
10486 2020-04-24 Tom Tromey <tromey@adacore.com>
10487
10488 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10489 (variant::matches, compute_variant_fields_recurse)
10490 (compute_variant_fields_inner, compute_variant_fields): New
10491 functions.
10492 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10493 Use resolved_type after type is made.
10494 (operator==): Add new cases.
10495 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10496 (struct discriminant_range, struct variant, struct variant_part):
10497 New.
10498 (union dynamic_prop_data) <variant_parts, original_type>: New
10499 members.
10500 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10501 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10502 constants.
10503 * value.c (unpack_bits_as_long): Now public.
10504 * value.h (unpack_bits_as_long): Declare.
10505
10506 2020-04-24 Tom Tromey <tromey@adacore.com>
10507
10508 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10509 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10510
10511 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10512
10513 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10514
10515 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10516
10517 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10518 (remove_fork_catchpoint, post_startup_inferior)
10519 (post_attach): Move...
10520 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10521 (remove_fork_catchpoint, post_startup_inferior)
10522 (post_attach): ...here.
10523 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10524 (remove_fork_catchpoint, post_startup_inferior)
10525 (post_attach): Move...
10526 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10527 (remove_fork_catchpoint, post_startup_inferior)
10528 (post_attach): ...here.
10529
10530 2020-04-24 Tom Tromey <tromey@adacore.com>
10531
10532 * nat/windows-nat.h (struct windows_thread_info)
10533 <pc_adjusted>: New member.
10534 * windows-nat.c (windows_fetch_one_register): Check
10535 pc_adjusted.
10536 (windows_nat_target::get_windows_debug_event)
10537 (windows_nat_target::wait): Set pc_adjusted.
10538
10539 2020-04-24 Tom de Vries <tdevries@suse.de>
10540
10541 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10542 Run gdb-add-index inside temp dir.
10543
10544 2020-04-23 Tom Tromey <tromey@adacore.com>
10545
10546 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10547 in loop.
10548
10549 2020-04-23 Luis Machado <luis.machado@linaro.org>
10550
10551 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10552 get_frame_register instead of gdbarch_unwind_pc.
10553
10554 2020-04-23 Tom de Vries <tdevries@suse.de>
10555
10556 * symtab.c (lookup_global_symbol): Prefer def over decl.
10557
10558 2020-04-23 Tom de Vries <tdevries@suse.de>
10559
10560 PR symtab/25807
10561 * block.c (best_symbol, better_symbol): Promote to external.
10562 * block.h (best_symbol, better_symbol): Declare.
10563 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10564 decl.
10565
10566 2020-04-23 Tom Tromey <tromey@adacore.com>
10567
10568 PR ada/25837:
10569 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10570 "const char *", not a "const std::string &".
10571 <name_and_matcher::operator==>: Update.
10572 * unittests/lookup_name_info-selftests.c: Change type of
10573 "result".
10574
10575 2020-04-23 Tom Tromey <tom@tromey.com>
10576
10577 * inferior.h (iterate_over_inferiors): Don't declare.
10578 * inferior.c (iterate_over_inferiors): Remove.
10579 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10580 Remove.
10581 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10582 use iterate_over_inferiors.
10583 (darwin_resume_inferior_it)
10584 (struct resume_inferior_threads_param)
10585 (darwin_resume_inferior_threads_it): Remove.
10586 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10587
10588 2020-04-23 Tom de Vries <tdevries@suse.de>
10589
10590 * blockframe.c (find_pc_partial_function): Use
10591 find_pc_sect_compunit_symtab rather than
10592 objfile->sf->qf->find_pc_sect_compunit_symtab.
10593
10594 2020-04-22 Tom de Vries <tdevries@suse.de>
10595
10596 PR symtab/25764
10597 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10598 in psymtabs.
10599
10600 2020-04-22 Tom de Vries <tdevries@suse.de>
10601
10602 PR symtab/25801
10603 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10604 symtabs.
10605
10606 2020-04-22 Tom de Vries <tdevries@suse.de>
10607
10608 PR symtab/25700
10609 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10610 CU if already created.
10611
10612 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10613
10614 * infrun.c (displaced_step_fixup): Switch to the event_thread
10615 before calling displaced_step_restore, not after.
10616
10617 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10618
10619 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10620 its inferior is not recorded by us.
10621 (record_btrace_target_open): Replace call to
10622 all_non_exited_threads () with call to current_inferior
10623 ()->non_exited_threads ().
10624 (record_btrace_target::stop_recording): Likewise.
10625 (record_btrace_target::close): Likewise.
10626 (record_btrace_target::wait): Likewise.
10627 (record_btrace_target::record_stop_replaying): Likewise.
10628
10629 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10630
10631 * btrace.c (btrace_enable): Throw an error on double enables and
10632 when enabling recording fails.
10633 (btrace_disable): Throw an error if the thread is not recorded.
10634
10635 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10636
10637 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10638 request if we do not have a thread_info.
10639
10640 2020-04-21 Tom de Vries <tdevries@suse.de>
10641
10642 PR gdb/25471
10643 * thread.c
10644 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10645 exception in get_frame_id.
10646
10647 2020-04-20 Tom Tromey <tromey@adacore.com>
10648
10649 * python/python.c (struct gdbpy_event): Mark move constructor as
10650 noexcept.
10651 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10652 constructor as noexcept.
10653 * completer.h (struct completion_result): Mark move constructor as
10654 noexcept.
10655 * completer.c (completion_result::completion_result): Use
10656 initialization style. Don't call reset_match_list.
10657
10658 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10659
10660 * MAINTAINERS (Write After Approval): Add myself.
10661
10662 2020-04-18 Tom Tromey <tom@tromey.com>
10663
10664 * windows-tdep.c (init_w32_command_list)
10665 (w32_prefix_command_valid): Restore.
10666 (_initialize_windows_tdep): Call init_w32_command_list.
10667
10668 2020-04-18 Tom Tromey <tom@tromey.com>
10669
10670 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10671 * value.c (value_fn_field): Update.
10672 * valops.c (find_function_in_inferior)
10673 (value_allocate_space_in_inferior): Update.
10674 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10675 Update.
10676 * tui/tui-source.c (tui_source_window::set_contents): Update.
10677 * symtab.c (lookup_global_or_static_symbol)
10678 (find_function_start_sal_1, skip_prologue_sal)
10679 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10680 * symmisc.c (dump_msymbols, dump_symtab_1)
10681 (maintenance_print_one_line_table): Update.
10682 * symfile.c (init_entry_point_info, section_is_mapped)
10683 (list_overlays_command, simple_read_overlay_table)
10684 (simple_overlay_update_1): Update.
10685 * stap-probe.c (handle_stap_probe): Update.
10686 * stabsread.c (dbx_init_float_type, define_symbol)
10687 (read_one_struct_field, read_enum_type, read_range_type): Update.
10688 * source.c (info_line_command): Update.
10689 * python/python.c (gdbpy_source_objfile_script)
10690 (gdbpy_execute_objfile_script): Update.
10691 * python/py-type.c (save_objfile_types): Update.
10692 * python/py-objfile.c (py_free_objfile): Update.
10693 * python/py-inferior.c (python_new_objfile): Update.
10694 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10695 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10696 (maintenance_check_psymtabs): Update.
10697 * printcmd.c (info_address_command): Update.
10698 * objfiles.h (struct objfile) <arch>: New method, from
10699 get_objfile_arch.
10700 (get_objfile_arch): Don't declare.
10701 * objfiles.c (get_objfile_arch): Remove.
10702 (filter_overlapping_sections): Update.
10703 * minsyms.c (msymbol_is_function): Update.
10704 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10705 (output_nondebug_symbol): Update.
10706 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10707 (mdebug_expand_psymtab): Update.
10708 * machoread.c (macho_add_oso_symfile): Update.
10709 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10710 Update.
10711 * linux-fork.c (checkpoint_command): Update.
10712 * linespec.c (convert_linespec_to_sals): Update.
10713 * jit.c (finalize_symtab): Update.
10714 * infrun.c (insert_exception_resume_from_probe): Update.
10715 * ia64-tdep.c (ia64_find_unwind_table): Update.
10716 * hppa-tdep.c (internalize_unwinds): Update.
10717 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10718 Update.
10719 * gcore.c (call_target_sbrk): Update.
10720 * elfread.c (record_minimal_symbol, elf_symtab_read)
10721 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10722 (elf_gnu_ifunc_resolve_by_got): Update.
10723 * dwarf2/read.c (create_addrmap_from_index)
10724 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10725 (read_debug_names_from_section)
10726 (process_psymtab_comp_unit_reader, add_partial_symbol)
10727 (add_partial_subprogram, process_full_comp_unit)
10728 (read_file_scope, read_func_scope, read_lexical_block_scope)
10729 (read_call_site_scope, dwarf2_ranges_read)
10730 (dwarf2_record_block_ranges, dwarf2_add_field)
10731 (mark_common_block_symbol_computed, read_tag_pointer_type)
10732 (read_tag_string_type, dwarf2_init_float_type)
10733 (dwarf2_init_complex_target_type, read_base_type)
10734 (partial_die_info::read, partial_die_info::read)
10735 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10736 (dwarf2_fetch_die_loc_sect_off): Update.
10737 * dwarf2/loc.c (dwarf2_find_location_expression)
10738 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10739 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10740 (dwarf2_loc_desc_get_symbol_read_needs)
10741 (locexpr_describe_location_piece, locexpr_describe_location_1)
10742 (loclist_describe_location): Update.
10743 * dwarf2/index-write.c (write_debug_names): Update.
10744 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10745 * dtrace-probe.c (dtrace_process_dof): Update.
10746 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10747 (process_one_symbol): Update.
10748 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10749 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10750 (coff_read_enum_type): Update.
10751 * cli/cli-cmds.c (edit_command, list_command): Update.
10752 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10753 * breakpoint.c (create_overlay_event_breakpoint)
10754 (create_longjmp_master_breakpoint)
10755 (create_std_terminate_master_breakpoint)
10756 (create_exception_master_breakpoint, get_sal_arch): Update.
10757 * block.c (block_gdbarch): Update.
10758 * annotate.c (annotate_source_line): Update.
10759
10760 2020-04-17 Tom Tromey <tromey@adacore.com>
10761
10762 * auto-load.c (show_auto_load_cmd): Remove.
10763 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10764 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10765 (maintenance_print_arc_command): Remove.
10766 * tui/tui-win.c (tui_command): Remove.
10767 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10768 * tui/tui-layout.c (tui_layout_command): Remove.
10769 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10770 * python/python.c (user_set_python, user_show_python): Remove.
10771 (_initialize_python): Use add_basic_prefix_cmd,
10772 add_show_prefix_cmd.
10773 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10774 (install_gdb_commands): Use add_basic_prefix_cmd,
10775 add_show_prefix_cmd.
10776 (info_guile_command): Remove.
10777 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10778 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10779 add_show_prefix_cmd.
10780 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10781 Remove do_set and do_show parameters.
10782 * cli/cli-style.c (set_style, show_style): Remove.
10783 (_initialize_cli_style): Use add_basic_prefix_cmd,
10784 add_show_prefix_cmd.
10785 (cli_style_option::add_setshow_commands): Remove do_set and
10786 do_show parameters.
10787 (cli_style_option::add_setshow_commands): Use
10788 add_basic_prefix_cmd, add_show_prefix_cmd.
10789 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10790 (set_style_name): Remove.
10791 * cli/cli-dump.c (dump_command, append_command): Remove.
10792 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10793 (tekhex_dump_command, binary_dump_command)
10794 (binary_append_command): Remove.
10795 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10796 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10797 (init_w32_command_list): Remove; move into ...
10798 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10799 * valprint.c (set_print, show_print, set_print_raw)
10800 (show_print_raw): Remove.
10801 (_initialize_valprint): Use add_basic_prefix_cmd,
10802 add_show_prefix_cmd.
10803 * typeprint.c (set_print_type, show_print_type): Remove.
10804 (_initialize_typeprint): Use add_basic_prefix_cmd,
10805 add_show_prefix_cmd.
10806 * record.c (set_record_command, show_record_command): Remove.
10807 (_initialize_record): Use add_basic_prefix_cmd,
10808 add_show_prefix_cmd.
10809 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10810 add_show_prefix_cmd.
10811 (info_command, show_command, set_debug, show_debug): Remove.
10812 * top.h (set_history, show_history): Don't declare.
10813 * top.c (set_history, show_history): Remove.
10814 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10815 (unset_tdesc_cmd): Remove.
10816 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10817 add_show_prefix_cmd.
10818 * symtab.c (info_module_command): Remove.
10819 (_initialize_symtab): Use add_basic_prefix_cmd.
10820 * symfile.c (overlay_command): Remove.
10821 (_initialize_symfile): Use add_basic_prefix_cmd.
10822 * sparc64-tdep.c (info_adi_command): Remove.
10823 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10824 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10825 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10826 add_show_prefix_cmd.
10827 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10828 (_initialize_serial): Use add_basic_prefix_cmd,
10829 add_show_prefix_cmd.
10830 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10831 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10832 add_show_prefix_cmd.
10833 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10834 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10835 add_show_prefix_cmd.
10836 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10837 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10838 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10839 add_show_prefix_cmd.
10840 * remote.c (remote_command, set_remote_cmd): Remove.
10841 (_initialize_remote): Use add_basic_prefix_cmd.
10842 * record-full.c (set_record_full_command)
10843 (show_record_full_command): Remove.
10844 (_initialize_record_full): Use add_basic_prefix_cmd,
10845 add_show_prefix_cmd.
10846 * record-btrace.c (cmd_set_record_btrace)
10847 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10848 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10849 (cmd_show_record_btrace_pt): Remove.
10850 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10851 add_show_prefix_cmd.
10852 * ravenscar-thread.c (set_ravenscar_command)
10853 (show_ravenscar_command): Remove.
10854 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10855 add_show_prefix_cmd.
10856 * mips-tdep.c (show_mips_command, set_mips_command)
10857 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10858 add_show_prefix_cmd.
10859 * maint.c (maintenance_command, maintenance_info_command)
10860 (maintenance_check_command, maintenance_print_command)
10861 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10862 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10863 add_show_prefix_cmd.
10864 (show_per_command_cmd): Remove.
10865 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10866 Remove.
10867 (maintenance_show_test_settings_cmd): Remove.
10868 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10869 add_show_prefix_cmd.
10870 * maint-test-options.c (maintenance_test_options_command):
10871 Remove.
10872 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10873 * macrocmd.c (macro_command): Remove
10874 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10875 * language.c (set_check, show_check): Remove.
10876 (_initialize_language): Use add_basic_prefix_cmd,
10877 add_show_prefix_cmd.
10878 * infcmd.c (unset_command): Remove.
10879 (_initialize_infcmd): Use add_basic_prefix_cmd.
10880 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10881 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10882 add_show_prefix_cmd.
10883 * go32-nat.c (go32_info_dos_command): Remove.
10884 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10885 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10886 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10887 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10888 (_initialize_frame): Use add_basic_prefix_cmd,
10889 add_show_prefix_cmd.
10890 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10891 (_initialize_dcache): Use add_basic_prefix_cmd,
10892 add_show_prefix_cmd.
10893 * cp-support.c (maint_cplus_command): Remove.
10894 (_initialize_cp_support): Use add_basic_prefix_cmd.
10895 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10896 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10897 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10898 add_basic_prefix_cmd, add_show_prefix_cmd.
10899 * breakpoint.c (save_command): Remove.
10900 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10901 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10902 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10903 add_show_prefix_cmd.
10904 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10905 (set_ada_command, show_ada_command): Remove.
10906 (_initialize_ada_language): Use add_basic_prefix_cmd,
10907 add_show_prefix_cmd.
10908 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10909
10910 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10911
10912 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10913 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10914
10915 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10916
10917 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10918 warning messages.
10919
10920 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10921
10922 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10923 import table is not at beginning of .idata section.
10924
10925 2020-04-16 Pedro Alves <palves@redhat.com>
10926
10927 * inferior.c (delete_inferior): Use delete operator directly
10928 instead of delete_program_space.
10929 * progspace.c (add_program_space): New, factored out from
10930 program_space::program_space.
10931 (remove_program_space): New, factored out from
10932 delete_program_space.
10933 (program_space::program_space): Remove intro comment. Rewrite.
10934 (program_space::~program_space): Remove intro comment. Call
10935 remove_program_space.
10936 (delete_program_space): Delete.
10937 * progspace.h (program_space::program_space): Make explicit. Move
10938 intro comment here, adjusted.
10939 (program_space::~program_space): Move intro comment here,
10940 adjusted.
10941 (delete_program_space): Remove.
10942
10943 2020-04-16 Tom Tromey <tromey@adacore.com>
10944
10945 * windows-nat.c (windows_nat::handle_access_violation): New
10946 function.
10947 * nat/windows-nat.h (handle_access_violation): Declare.
10948 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10949 windows-nat.c. Call handle_access_violation.
10950
10951 2020-04-16 Tom de Vries <tdevries@suse.de>
10952
10953 PR symtab/25791
10954 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10955 CUs without psymtab.
10956
10957 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10958
10959 * python/python.c (do_start_initialization): Don't call
10960 PyEval_InitThreads for Python 3.9 and beyond.
10961
10962 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10963
10964 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10965 thread functions.
10966 (obsd_nat_target::wait): Likewise.
10967
10968 2020-04-15 Tom Tromey <tromey@adacore.com>
10969
10970 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10971 (DEBUG_EXCEPT): Use debug_printf.
10972
10973 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10974
10975 * completer.c (class completion_tracker::completion_hash_entry)
10976 <hash_name>: New member function.
10977 (completion_tracker::discard_completions): New callback to hash a
10978 completion_hash_entry, pass this to htab_create_alloc.
10979
10980 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10981
10982 * windows-nat.c (windows_make_so): Warn rather than stopping with
10983 an error if realpath() fails.
10984
10985 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10986
10987 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10988 (nbsd_nat_target::info_proc): Add do_status.
10989
10990 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10991 Tom de Vries <tdevries@suse.de>
10992
10993 PR symtab/25718
10994 * psympriv.h (struct partial_symtab::read_symtab)
10995 (struct partial_symtab::expand_psymtab)
10996 (struct partial_symtab::read_dependencies): Update comments.
10997 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10998 read_symtab for includer.
10999 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11000 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11001 (struct dwarf2_include_psymtab::m_readin): Remove.
11002 (struct dwarf2_include_psymtab::includer): New member function.
11003 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11004
11005 2020-04-14 Tom de Vries <tdevries@suse.de>
11006
11007 PR symtab/25720
11008 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11009 with NULL symbol_matcher and lookup_name.
11010 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11011 and lookup_name.
11012 * dwarf2/read.c (dw2_expand_symtabs_matching)
11013 (dw2_debug_names_expand_symtabs_matching): Same.
11014 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11015 Make lookup_name a pointer. Update comment.
11016 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11017 lookup_name being a pointer.
11018 * symfile.c (expand_symtabs_matching): Same.
11019 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11020 * linespec.c (iterate_over_all_matching_symtabs): Same.
11021
11022 2020-04-13 Tom Tromey <tom@tromey.com>
11023
11024 * run-on-main-thread.c: Update include.
11025 * unittests/main-thread-selftests.c: Update include.
11026 * tui/tui-win.c: Update include.
11027 * tui/tui-io.c: Update include.
11028 * tui/tui-interp.c: Update include.
11029 * tui/tui-hooks.c: Update include.
11030 * top.h: Update include.
11031 * top.c: Update include.
11032 * ser-base.c: Update include.
11033 * remote.c: Update include.
11034 * remote-notif.c: Update include.
11035 * remote-fileio.c: Update include.
11036 * record-full.c: Update include.
11037 * record-btrace.c: Update include.
11038 * python/python.c: Update include.
11039 * posix-hdep.c: Update include.
11040 * mingw-hdep.c: Update include.
11041 * mi/mi-main.c: Update include.
11042 * mi/mi-interp.c: Update include.
11043 * main.c: Update include.
11044 * linux-nat.c: Update include.
11045 * interps.c: Update include.
11046 * infrun.c: Update include.
11047 * inf-loop.c: Update include.
11048 * event-top.c: Update include.
11049 * event-loop.c: Move to ../gdbsupport/.
11050 * event-loop.h: Move to ../gdbsupport/.
11051 * async-event.h: Update include.
11052 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11053
11054 2020-04-13 Tom Tromey <tom@tromey.com>
11055
11056 * tui/tui-win.c: Include async-event.h.
11057 * remote.c: Include async-event.h.
11058 * remote-notif.c: Include async-event.h.
11059 * record-full.c: Include async-event.h.
11060 * record-btrace.c: Include async-event.h.
11061 * infrun.c: Include async-event.h.
11062 * event-top.c: Include async-event.h.
11063 * event-loop.h: Move some declarations to async-event.h.
11064 * event-loop.c: Don't include ser-event.h or top.h. Move some
11065 code to async-event.c.
11066 * async-event.h: New file.
11067 * async-event.c: New file.
11068 * Makefile.in (COMMON_SFILES): Add async-event.c.
11069 (HFILES_NO_SRCDIR): Add async-event.h.
11070
11071 2020-04-13 Tom Tromey <tom@tromey.com>
11072
11073 * utils.c (flush_streams): New function.
11074 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11075
11076 2020-04-13 Tom Tromey <tom@tromey.com>
11077
11078 * event-loop.c (handle_file_event): Use warning, not
11079 printf_unfiltered.
11080
11081 2020-04-13 Tom Tromey <tom@tromey.com>
11082
11083 * event-loop.c: Include <chrono>.
11084
11085 2020-04-13 Tom Tromey <tom@tromey.com>
11086
11087 * gdb_select.h: Move to ../gdbsupport/.
11088 * event-loop.c: Update include path.
11089 * top.c: Update include path.
11090 * ser-base.c: Update include path.
11091 * ui-file.c: Update include path.
11092 * ser-tcp.c: Update include path.
11093 * guile/scm-ports.c: Update include path.
11094 * posix-hdep.c: Update include path.
11095 * ser-unix.c: Update include path.
11096 * gdb_usleep.c: Update include path.
11097 * mingw-hdep.c: Update include path.
11098 * inflow.c: Update include path.
11099 * infrun.c: Update include path.
11100 * event-top.c: Update include path.
11101
11102 2020-04-13 Tom Tromey <tom@tromey.com>
11103
11104 * configure: Rebuild.
11105 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11106
11107 2020-04-13 Tom Tromey <tom@tromey.com>
11108
11109 * event-loop.h (start_event_loop): Don't declare.
11110 * event-loop.c (start_event_loop): Move...
11111 * main.c (start_event_loop): ...here. Now static.
11112
11113 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11114
11115 * MAINTAINERS: Update my email address.
11116
11117 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11118
11119 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11120 IP_ALL.
11121
11122 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11123
11124 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11125 (nbsd_nat_target::info_proc): Add do_cmdline.
11126
11127 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11128
11129 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11130 (nbsd_nat_target::info_proc): Add do_cwd.
11131
11132 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11133
11134 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11135
11136 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11137
11138 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11139 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11140 (nbsd_nat_target::info_proc): New functions.
11141 * nbsd-nat.c (kinfo_get_vmmap): New function.
11142 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11143 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11144 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11145 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11146 functions.
11147 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11148 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11149 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11150 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11151 (KINFO_VME_FLAG_GROWS_DOWN): New.
11152
11153 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11154
11155 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11156 bit shift.
11157
11158 2020-04-10 Tom Tromey <tromey@adacore.com>
11159
11160 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11161
11162 2020-04-10 Tom Tromey <tromey@adacore.com>
11163
11164 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11165 separate debug files.
11166
11167 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11168
11169 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11170 Move to...
11171 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11172 ... here.
11173 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11174 Check for STATUS_WX86_BREAKPOINT.
11175 (windows_nat_target::wait): Same.
11176
11177 2020-04-10 Tom de Vries <tdevries@suse.de>
11178
11179 PR cli/25808
11180 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11181
11182 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11183
11184 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11185 (Write After Approval): Remove Tom de Vries.
11186
11187 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11188
11189 revert partially:
11190 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11191
11192 * buildsym.c (record_line): Fix undefined behavior and preserve
11193 lines at eof.
11194
11195 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11196
11197 * auxv.h (svr4_auxv_parse): New.
11198 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11199 and generic_auxv_parse.
11200 (svr4_auxv_parse): Add.
11201 * obsd-tdep.c: Include "auxv.h".
11202 (obsd_auxv_parse): Remove.
11203 (obsd_init_abi): Remove comment.
11204 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11205 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11206 * nbsd-tdep.c: Include "auxv.h".
11207 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11208
11209 2020-04-08 Tom Tromey <tromey@adacore.com>
11210
11211 * nat/windows-nat.h (last_wait_event): Don't declare.
11212 (wait_for_debug_event): Update comment.
11213 * nat/windows-nat.c (last_wait_event): Now static.
11214
11215 2020-04-08 Tom Tromey <tromey@adacore.com>
11216
11217 * windows-nat.c (wait_for_debug_event): Move to
11218 nat/windows-nat.c.
11219 * nat/windows-nat.h (wait_for_debug_event): Declare.
11220 * nat/windows-nat.c (wait_for_debug_event): Move from
11221 windows-nat.c. No longer static.
11222
11223 2020-04-08 Tom Tromey <tromey@adacore.com>
11224
11225 * windows-nat.c (get_windows_debug_event): Use
11226 fetch_pending_stop.
11227 * nat/windows-nat.h (fetch_pending_stop): Declare.
11228 * nat/windows-nat.c (fetch_pending_stop): New function.
11229
11230 2020-04-08 Tom Tromey <tromey@adacore.com>
11231
11232 * windows-nat.c (windows_continue): Use matching_pending_stop and
11233 continue_last_debug_event.
11234 * nat/windows-nat.h (matching_pending_stop)
11235 (continue_last_debug_event): Declare.
11236 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11237 (matching_pending_stop, continue_last_debug_event): New
11238 functions.
11239
11240 2020-04-08 Tom Tromey <tromey@adacore.com>
11241
11242 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11243 (handle_exception_result): Move to nat/windows-nat.h.
11244 (DEBUG_EXCEPTION_SIMPLE): Remove.
11245 (windows_nat::handle_ms_vc_exception): New function.
11246 (handle_exception): Move to nat/windows-nat.c.
11247 (get_windows_debug_event): Update.
11248 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11249 nat/windows-nat.c.
11250 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11251 (handle_exception_result): Move from windows-nat.c.
11252 (handle_exception): Declare.
11253 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11254 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11255 windows-nat.c.
11256
11257 2020-04-08 Tom Tromey <tromey@adacore.com>
11258
11259 * windows-nat.c (exception_count, event_count): Remove.
11260 (handle_exception, get_windows_debug_event)
11261 (do_initial_windows_stuff): Update.
11262
11263 2020-04-08 Tom Tromey <tromey@adacore.com>
11264
11265 * windows-nat.c (windows_nat::handle_load_dll)
11266 (windows_nat::handle_unload_dll): Rename. No longer static.
11267 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11268 Declare.
11269
11270 2020-04-08 Tom Tromey <tromey@adacore.com>
11271
11272 * complaints.h (stop_whining): Declare at top-level.
11273 (complaint): Don't declare stop_whining.
11274
11275 2020-04-08 Tom Tromey <tromey@adacore.com>
11276
11277 * windows-nat.c (windows_nat::handle_output_debug_string):
11278 Rename. No longer static.
11279 * nat/windows-nat.h (handle_output_debug_string): Declare.
11280
11281 2020-04-08 Tom Tromey <tromey@adacore.com>
11282
11283 * windows-nat.c (current_process_handle, current_process_id)
11284 (main_thread_id, last_sig, current_event, last_wait_event)
11285 (current_windows_thread, desired_stop_thread_id, pending_stops)
11286 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11287 (display_selectors, fake_create_process)
11288 (get_windows_debug_event): Update.
11289 * nat/windows-nat.h (current_process_handle, current_process_id)
11290 (main_thread_id, last_sig, current_event, last_wait_event)
11291 (current_windows_thread, desired_stop_thread_id, pending_stops)
11292 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11293 * nat/windows-nat.c (current_process_handle, current_process_id)
11294 (main_thread_id, last_sig, current_event, last_wait_event)
11295 (current_windows_thread, desired_stop_thread_id, pending_stops)
11296 (siginfo_er): New globals. Move from windows-nat.c.
11297
11298 2020-04-08 Tom Tromey <tromey@adacore.com>
11299
11300 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11301 (handle_load_dll): Update.
11302 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11303
11304 2020-04-08 Tom Tromey <tromey@adacore.com>
11305
11306 * windows-nat.c (enum thread_disposition_type): Move to
11307 nat/windows-nat.h.
11308 (windows_nat::thread_rec): Rename from thread_rec. No longer
11309 static.
11310 (windows_add_thread, windows_nat_target::fetch_registers)
11311 (windows_nat_target::store_registers, handle_exception)
11312 (windows_nat_target::resume, get_windows_debug_event)
11313 (windows_nat_target::get_tib_address)
11314 (windows_nat_target::thread_name)
11315 (windows_nat_target::thread_alive): Update.
11316 * nat/windows-nat.h (enum thread_disposition_type): Move from
11317 windows-nat.c.
11318 (thread_rec): Declare.
11319
11320 2020-04-08 Tom Tromey <tromey@adacore.com>
11321
11322 * windows-nat.c: Add "using namespace".
11323 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11324 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11325
11326 2020-04-08 Tom Tromey <tromey@adacore.com>
11327
11328 * nat/windows-nat.h (struct windows_thread_info): Declare
11329 destructor.
11330 * nat/windows-nat.c (~windows_thread_info): New.
11331
11332 2020-04-08 Tom Tromey <tromey@adacore.com>
11333
11334 PR gdb/22992
11335 * windows-nat.c (current_event): Update comment.
11336 (last_wait_event, desired_stop_thread_id): New globals.
11337 (struct pending_stop): New.
11338 (pending_stops): New global.
11339 (windows_nat_target) <stopped_by_sw_breakpoint>
11340 <supports_stopped_by_sw_breakpoint>: New methods.
11341 (windows_fetch_one_register): Add assertions. Adjust PC.
11342 (windows_continue): Handle pending stops. Suspend other threads
11343 when stepping. Use last_wait_event
11344 (wait_for_debug_event): New function.
11345 (get_windows_debug_event): Use wait_for_debug_event. Handle
11346 pending stops. Queue spurious stops.
11347 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11348 (windows_nat_target::kill): Use wait_for_debug_event.
11349 * nat/windows-nat.h (struct windows_thread_info)
11350 <stopped_at_software_breakpoint>: New field.
11351 * nat/windows-nat.c (windows_thread_info::resume): Clear
11352 stopped_at_software_breakpoint.
11353
11354 2020-04-08 Tom Tromey <tromey@adacore.com>
11355
11356 * windows-nat.c (enum thread_disposition_type): New.
11357 (thread_rec): Replace "get_context" parameter with "disposition";
11358 change type.
11359 (windows_add_thread, windows_nat_target::fetch_registers)
11360 (windows_nat_target::store_registers, handle_exception)
11361 (windows_nat_target::resume, get_windows_debug_event)
11362 (windows_nat_target::get_tib_address)
11363 (windows_nat_target::thread_name)
11364 (windows_nat_target::thread_alive): Update.
11365
11366 2020-04-08 Tom Tromey <tromey@adacore.com>
11367
11368 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11369 (windows_continue): Use windows_continue::resume.
11370 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11371 resume>: Declare new methods.
11372 * nat/windows-nat.c: New file.
11373 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11374
11375 2020-04-08 Tom Tromey <tromey@adacore.com>
11376
11377 * windows-nat.c (windows_add_thread, windows_delete_thread)
11378 (windows_nat_target::fetch_registers)
11379 (windows_nat_target::store_registers, fake_create_process)
11380 (windows_nat_target::resume, windows_nat_target::resume)
11381 (get_windows_debug_event, windows_nat_target::wait)
11382 (windows_nat_target::pid_to_str)
11383 (windows_nat_target::get_tib_address)
11384 (windows_nat_target::get_ada_task_ptid)
11385 (windows_nat_target::thread_name)
11386 (windows_nat_target::thread_alive): Use lwp, not tid.
11387
11388 2020-04-08 Tom Tromey <tromey@adacore.com>
11389
11390 * windows-nat.c (handle_exception)
11391 (windows_nat_target::thread_name): Update.
11392 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11393 <name>: Now unique_xmalloc_ptr.
11394
11395 2020-04-08 Tom Tromey <tromey@adacore.com>
11396
11397 * windows-nat.c (thread_rec)
11398 (windows_nat_target::fetch_registers): Update.
11399 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11400 Update comment.
11401 <debug_registers_changed, reload_context>: Now bool.
11402
11403 2020-04-08 Tom Tromey <tromey@adacore.com>
11404
11405 * windows-nat.c (windows_add_thread): Use new.
11406 (windows_init_thread_list, windows_delete_thread): Use delete.
11407 (get_windows_debug_event): Update.
11408 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11409 destructor, and initializers.
11410
11411 2020-04-08 Tom Tromey <tromey@adacore.com>
11412
11413 * windows-nat.c (struct windows_thread_info): Remove.
11414 * nat/windows-nat.h: New file.
11415
11416 2020-04-08 Tom Tromey <tromey@adacore.com>
11417
11418 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11419 (thread_rec, windows_add_thread, windows_delete_thread)
11420 (windows_continue): Update.
11421
11422 2020-04-08 Tom Tromey <tromey@adacore.com>
11423
11424 * windows-nat.c (struct windows_thread_info): Remove typedef.
11425 (thread_head): Remove.
11426 (thread_list): New global.
11427 (thread_rec, windows_add_thread, windows_init_thread_list)
11428 (windows_delete_thread, windows_continue): Update.
11429
11430 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11431
11432 * windows-tdep.h (windows_init_abi): Add comment.
11433 (cygwin_init_abi): New declaration.
11434 * windows-tdep.c: Split signal enumeration in two, one for
11435 Windows and one for Cygwin.
11436 (windows_gdb_signal_to_target): Only deal with signal of the
11437 Windows OS ABI.
11438 (cygwin_gdb_signal_to_target): New function.
11439 (windows_init_abi): Rename to windows_init_abi_common, don't set
11440 gdb_signal_to_target gdbarch method. Add new new function with
11441 this name.
11442 (cygwin_init_abi): New function.
11443 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11444 comment. Don't call windows_init_abi.
11445 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11446 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11447 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11448 i386_windows_init_abi_common, don't call windows_init_abi. Add
11449 a new function of this name.
11450 (i386_cygwin_init_abi): New function.
11451 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11452 OS ABI Cygwin.
11453
11454 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11455
11456 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11457 parameter.c.
11458 (dwarf2_read_gdb_index): Update.
11459
11460 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11461
11462 * nbsd-tdep.c: Include "objfiles.h".
11463 (nbsd_skip_solib_resolver): New.
11464 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11465
11466 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11467
11468 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11469 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11470 with DW_LLE_base_addressx are being emitted in DWARFv5.
11471 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11472 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11473 unsigned integer.
11474
11475 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11476
11477 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11478 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11479 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11480 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11481 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11482 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11483 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11484
11485
11486 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11487
11488 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11489 (read_loclist_index): New function definition.
11490 (lookup_loclist_base): New function definition.
11491 (read_loclist_header): New function definition.
11492 (dwarf2_cu): Add loclist_base and loclist_header field.
11493 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11494 (read_full_die_1): Read the value of DW_AT_loclists_base.
11495 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11496 (read_attribute_value): Handle DW_FORM_loclistx.
11497 (skip_one_die): Handle DW_FORM_loclistx.
11498 (loclist_header): New structure declaration.
11499 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11500
11501 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11502
11503 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11504 constructor. Remove `addr` parameter from other constructor and
11505 add `per_cu` parameter.
11506 * dwarf2/read.c (create_partial_symtab): Update.
11507
11508 2020-04-07 Tom de Vries <tdevries@suse.de>
11509
11510 PR symtab/25796
11511 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11512 (partial_die_info::fixup): Inherit has_const_value.
11513
11514 2020-04-07 Tom de Vries <tdevries@suse.de>
11515
11516 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11517 symbols without address.
11518
11519 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11520
11521 * nbsd-nat.h (struct thread_info): Add forward declaration.
11522 (nbsd_nat_target::thread_alive): Add.
11523 (nbsd_nat_target::thread_name): Likewise.
11524 (nbsd_nat_target::update_thread_list): Likewise.
11525 (update_thread_list::post_attach): Likewise.
11526 (post_attach::pid_to_str): Likewise.
11527 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11528 (nbsd_thread_lister): Add.
11529 (nbsd_nat_target::thread_alive): Likewise.
11530 (nbsd_nat_target::thread_name): Likewise.
11531 (nbsd_add_threads): Likewise.
11532 (update_thread_list::post_attach): Likewise.
11533 (nbsd_nat_target::update_thread_list): Likewise.
11534 (post_attach::pid_to_str): Likewise.
11535
11536 2020-04-06 Tom Tromey <tromey@adacore.com>
11537
11538 * ada-valprint.c (print_variant_part): Extract the variant field.
11539 (print_field_values): Use the field as the outer value when
11540 recursing.
11541
11542 2020-04-06 Tom Tromey <tromey@adacore.com>
11543
11544 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11545 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11546 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11547 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11548 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11549
11550 2020-04-06 Tom Tromey <tromey@adacore.com>
11551
11552 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11553 TYPE_CODE_ERROR.
11554
11555 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11556
11557 * nbsd-tdep.c: Include "gdbarch.h".
11558 Define enum with NetBSD signal numbers.
11559 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11560 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11561 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11562 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11563 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11564 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11565 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11566 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11567 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11568 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11569 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11570 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11571
11572 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11573
11574 PR gdb/25325
11575 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11576
11577 2020-04-03 Tom Tromey <tromey@adacore.com>
11578
11579 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11580 Read constant block.
11581
11582 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11583
11584 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11585 (gdb_bfd_get_full_section_contents): New declaration.
11586 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11587 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11588 gdb_bfd_get_full_section_contents.
11589
11590 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11591
11592 * exec.c (build_section_table): Replace internal_error with
11593 gdb_assert.
11594 (section_table_xfer_memory_partial): Likewise.
11595 * mdebugread.c (parse_partial_symbols): Likewise.
11596 * psymtab.c (lookup_partial_symbol): Likewise.
11597 * utils.c (wrap_here): Likewise.
11598
11599 2020-04-02 Tom Tromey <tromey@adacore.com>
11600
11601 * f-lang.c (build_fortran_types): Use arch_type to initialize
11602 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11603
11604 2020-04-02 Tom Tromey <tromey@adacore.com>
11605
11606 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11607 of attributes.
11608
11609 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11610 Bernd Edlinger <bernd.edlinger@hotmail.de>
11611 Tom Tromey <tromey@adacore.com>
11612
11613 * buildsym.c (buildsym_compunit::record_line): Remove
11614 deduplication code.
11615
11616 2020-04-02 Tom de Vries <tdevries@suse.de>
11617
11618 PR ada/24671
11619 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11620
11621 2020-04-02 Tom de Vries <tdevries@suse.de>
11622
11623 * dwarf2/read.c (dwarf2_gdb_index_functions,
11624 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11625 NULL.
11626 * psymtab.c (psym_lookup_global_symbol_language): New function.
11627 (psym_functions): Init psym_lookup_global_symbol_language with
11628 psym_lookup_global_symbol_language.
11629 * symfile-debug.c (debug_sym_quick_functions): Init
11630 lookup_global_symbol_language with NULL.
11631 * symfile.c (set_initial_language): Remove fixme comment.
11632 * symfile.h (struct quick_symbol_functions): Add
11633 lookup_global_symbol_language.
11634 * symtab.c (find_quick_global_symbol_language): New function.
11635 (find_main_name): Use find_quick_global_symbol_language.
11636
11637 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11638
11639 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11640
11641 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11642
11643 * buildsym.c (record_line): Fix undefined behavior and preserve
11644 lines at eof.
11645
11646 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11647
11648 * buildsym.c (record_line): Fix the resizing condition.
11649
11650 2020-04-01 Tom Tromey <tom@tromey.com>
11651
11652 * value.h (value_literal_complex): Add comment.
11653 * valops.c (value_literal_complex): Refer to value.h.
11654
11655 2020-04-01 Tom Tromey <tom@tromey.com>
11656
11657 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11658 (scalar_type): New rule, from typebase.
11659 (typebase): Use scalar_type. Recognize complex types.
11660 (field_name): Handle FLOAT_KEYWORD.
11661 (ident_tokens): Add _Complex and __complex__.
11662
11663 2020-04-01 Tom Tromey <tom@tromey.com>
11664
11665 PR exp/25299:
11666 * valarith.c (promotion_type, complex_binop): New functions.
11667 (scalar_binop): Handle complex numbers. Use promotion_type.
11668 (value_pos, value_neg, value_complement): Handle complex numbers.
11669
11670 2020-04-01 Tom Tromey <tom@tromey.com>
11671
11672 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11673 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11674 (parse_number): Handle complex numbers.
11675
11676 2020-04-01 Tom Tromey <tom@tromey.com>
11677
11678 * c-valprint.c (c_decorations): Change complex suffix to "i".
11679
11680 2020-04-01 Tom Tromey <tom@tromey.com>
11681
11682 * valprint.c (generic_value_print_complex): Use accessors.
11683 * value.h (value_real_part, value_imaginary_part): Declare.
11684 * valops.c (value_real_part, value_imaginary_part): New
11685 functions.
11686 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11687
11688 2020-04-01 Tom Tromey <tom@tromey.com>
11689
11690 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11691 (read_range_type): Update.
11692 * mdebugread.c (basic_type): Update.
11693 * go-lang.c (build_go_types): Use init_complex_type.
11694 * gdbtypes.h (struct main_type) <complex_type>: New member.
11695 (init_complex_type): Update.
11696 (arch_complex_type): Don't declare.
11697 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11698 Make name if none given. Use alloc_type_copy. Look for cached
11699 complex type.
11700 (arch_complex_type): Remove.
11701 (gdbtypes_post_init): Use init_complex_type.
11702 * f-lang.c (build_fortran_types): Use init_complex_type.
11703 * dwarf2/read.c (read_base_type): Update.
11704 * d-lang.c (build_d_types): Use init_complex_type.
11705 * ctfread.c (read_base_type): Update.
11706
11707 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11708
11709 * infrun.c (stop_all_threads): Update assertion, plus when
11710 stopping threads, take into account that we might be trying
11711 to stop an all-stop target.
11712 (stop_waiting): Call 'stop_all_threads' if there exists a
11713 non-stop target.
11714
11715 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11716
11717 * target.h (exists_non_stop_target): New function declaration.
11718 * target.c (exists_non_stop_target): New function.
11719
11720 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11721
11722 PR gdb/24789
11723 * eval.c (is_integral_or_integral_reference): New function.
11724 (evaluate_subexp_standard): Allow integer references in
11725 pointer arithmetic.
11726
11727 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11728
11729 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11730 check for no ptid in the stop reply when the target is non-stop.
11731
11732 2020-04-01 Tom Tromey <tromey@adacore.com>
11733
11734 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11735 "name" parameter to rvalue reference. Initialize m_name_holder.
11736 <lookup_name_info>: New overloads.
11737 <name>: Return gdb::string_view.
11738 <c_str>: New method.
11739 <make_ignore_params>: Update.
11740 <search_name_hash>: Update.
11741 <language_lookup_name>: Return const char *.
11742 <m_name>: Change type.
11743 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11744 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11745 (lookup_name_info::match_any): Update.
11746 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11747 Update.
11748 * minsyms.c (linkage_name_str): Update.
11749 * language.c (default_symbol_name_matcher): Update.
11750 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11751 Update.
11752 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11753 (ada_lookup_name_info::ada_lookup_name_info): Update.
11754 (literal_symbol_name_matcher): Update.
11755
11756 2020-04-01 Tom Tromey <tromey@adacore.com>
11757
11758 * psymtab.c (psymtab_search_name): Remove function.
11759 (psym_lookup_symbol): Create search name and lookup name here.
11760 (lookup_partial_symbol): Remove "name" parameter; add
11761 lookup_name.
11762 (psym_expand_symtabs_for_function): Update.
11763
11764 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11765
11766 PR tui/25597:
11767 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11768
11769 2020-03-31 Tom Tromey <tromey@adacore.com>
11770
11771 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11772 memcpy.
11773
11774 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11775
11776 * features/riscv/32bit-csr.xml: Regenerated.
11777 * features/riscv/64bit-csr.xml: Regenerated.
11778
11779 2020-03-30 Tom Tromey <tromey@adacore.com>
11780
11781 * ada-valprint.c (print_variant_part): Update.
11782 * ada-lang.h (ada_which_variant_applies): Update.
11783 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11784 outer_valaddr parameters; replace with "outer" value parameter.
11785 (to_fixed_variant_branch_type): Update.
11786
11787 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11788
11789 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11790 <list>. Remove inclusion of observable.h.
11791 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11792 (struct arch_lwp_info): New struct.
11793 (class ppc_linux_dreg_interface): New class.
11794 (struct ppc_linux_process_info): New struct.
11795 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11796 <low_new_clone, low_forget_process, low_prepare_to_resume>
11797 <copy_thread_dreg_state, mark_thread_stale>
11798 <mark_debug_registers_changed, register_hw_breakpoint>
11799 <clear_hw_breakpoint, register_wp, clear_wp>
11800 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11801 <num_memory_accesses, get_trigger_type>
11802 <create_watchpoint_request, hwdebug_point_cmp>
11803 <init_arch_lwp_info, get_arch_lwp_info>
11804 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11805 methods.
11806 <struct ptid_hash>: New inner struct.
11807 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11808 members.
11809 (saved_dabr_value, hwdebug_info, max_slots_number)
11810 (struct hw_break_tuple, struct thread_points, ppc_threads)
11811 (have_ptrace_hwdebug_interface)
11812 (hwdebug_find_thread_points_by_tid)
11813 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11814 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11815 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11816 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11817 use m_dreg_interface.
11818 (hwdebug_point_cmp): Change to...
11819 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11820 reference arguments instead of pointers.
11821 (ppc_linux_nat_target::ranged_break_num_registers): Use
11822 m_dreg_interface.
11823 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11824 m_dreg_interface. Call register_hw_breakpoint.
11825 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11826 m_dreg_interface. Call clear_hw_breakpoint.
11827 (get_trigger_type): Change to...
11828 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11829 comment.
11830 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11831 use m_dreg_interface. Call register_hw_breakpoint.
11832 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11833 use m_dreg_interface. Call clear_hw_breakpoint.
11834 (can_use_watchpoint_cond_accel): Change to...
11835 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11836 method. Update comment, use m_dreg_interface and
11837 m_process_info.
11838 (calculate_dvc): Change to...
11839 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11840 m_dreg_interface.
11841 (num_memory_accesses): Change to...
11842 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11843 (check_condition): Change to...
11844 (ppc_linux_nat_target::check_condition): ...this method.
11845 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11846 comment, use m_dreg_interface.
11847 (create_watchpoint_request): Change to...
11848 (ppc_linux_nat_target::create_watchpoint_request): ...this
11849 method. Use m_dreg_interface.
11850 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11851 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11852 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11853 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11854 (ppc_linux_nat_target::low_forget_process)
11855 (ppc_linux_nat_target::low_new_fork)
11856 (ppc_linux_nat_target::low_new_clone)
11857 (ppc_linux_nat_target::low_delete_thread)
11858 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11859 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11860 only call mark_thread_stale.
11861 (ppc_linux_thread_exit): Remove.
11862 (ppc_linux_nat_target::stopped_data_address): Change to...
11863 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11864 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11865 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11866 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11867 comment. Call low_stopped_data_address.
11868 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11869 m_dreg_interface.
11870 (ppc_linux_nat_target::masked_watch_num_registers): Use
11871 m_dreg_interface.
11872 (ppc_linux_nat_target::copy_thread_dreg_state)
11873 (ppc_linux_nat_target::mark_thread_stale)
11874 (ppc_linux_nat_target::mark_debug_registers_changed)
11875 (ppc_linux_nat_target::register_hw_breakpoint)
11876 (ppc_linux_nat_target::clear_hw_breakpoint)
11877 (ppc_linux_nat_target::register_wp)
11878 (ppc_linux_nat_target::clear_wp)
11879 (ppc_linux_nat_target::init_arch_lwp_info)
11880 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11881 (_initialize_ppc_linux_nat): Remove observer callback.
11882
11883 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11884
11885 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11886 (ppc_linux_nat_target::auxv_parse)
11887 (ppc_linux_nat_target::read_description)
11888 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11889 Move up.
11890
11891 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11892
11893 * linux-nat.h (low_new_clone): New method.
11894 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11895
11896 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11897
11898 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11899 (dbx_expand_psymtab): ... this.
11900 (start_psymtab): Update.
11901 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11902 (mdebug_expand_psymtab): ... this.
11903 (parse_partial_symbols): Update.
11904 (new_psymtab): Update.
11905 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11906 (xcoff_expand_psymtab): ... this.
11907 (xcoff_start_psymtab): Update.
11908
11909 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11910
11911 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11912 <expand_dependencies>: ... this.
11913 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11914 (partial_symtab::expand_dependencies): ... this.
11915 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11916 Update.
11917 (dwarf2_psymtab::expand_psymtab): Update.
11918 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11919 * mdebugread.c (psymtab_to_symtab_1): Update.
11920 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11921
11922 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11923
11924 * psympriv.h (discard_psymtab): Remove.
11925 * dbxread.c (dbx_end_psymtab): Update.
11926 * xcoffread.c (xcoff_end_psymtab): Update.
11927
11928 2020-03-28 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11931 comment.
11932
11933 2020-03-28 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11936
11937 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11938
11939 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11940
11941 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11942
11943 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11944
11945 2020-03-26 Tom Tromey <tom@tromey.com>
11946
11947 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11948 (mark_common_block_symbol_computed, read_tag_string_type)
11949 (attr_to_dynamic_prop, read_subrange_type): Update.
11950 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11951 to be methods on struct attribute.
11952 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11953 (read_call_site_scope, partial_die_info::read)
11954 (partial_die_info::read, lookup_die_type, follow_die_ref):
11955 Update.
11956 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11957 from dwarf2_get_ref_die_offset.
11958 (attribute::constant_value): New method, from
11959 dwarf2_get_attr_constant_value.
11960 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11961 Declare method.
11962 <constant_value>: New method.
11963
11964 2020-03-26 Tom Tromey <tom@tromey.com>
11965
11966 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11967 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11968 (dwarf_type_encoding_name): Move to stringify.c.
11969 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11970 * dwarf2/stringify.c: New file.
11971 * dwarf2/stringify.h: New file.
11972
11973 2020-03-26 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11976 Rewrite.
11977
11978 2020-03-26 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11981 methods.
11982 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11983 (lookup_ranges_base): Likewise.
11984 (read_cutu_die_from_dwo, read_full_die_1): Update.
11985
11986 2020-03-26 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2/read.c (read_import_statement, read_file_scope)
11989 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11990 (read_lexical_block_scope, read_call_site_scope)
11991 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11992 (handle_struct_member_die, process_structure_scope)
11993 (update_enumeration_type_from_children)
11994 (process_enumeration_scope, read_array_type, read_common_block)
11995 (read_namespace, read_module, read_subroutine_type): Update.
11996 (sibling_die): Remove.
11997
11998 2020-03-26 Tom Tromey <tom@tromey.com>
11999
12000 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12001 (build_type_psymtabs_reader, read_structure_type)
12002 (read_enumeration_type, read_full_die_1): Update.
12003 (dwarf2_attr_no_follow): Move to die.h.
12004 * dwarf2/die.h (struct die_info) <attr>: New method.
12005
12006 2020-03-26 Tom Tromey <tom@tromey.com>
12007
12008 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12009 <base_address>: Now an optional.
12010 (dwarf2_find_base_address, dwarf2_rnglists_process)
12011 (dwarf2_ranges_process, fill_in_loclist_baton)
12012 (dwarf2_symbol_mark_computed): Update.
12013
12014 2020-03-26 Tom Tromey <tom@tromey.com>
12015
12016 * dwarf2/read.c (struct die_info): Move to die.h.
12017 * dwarf2/die.h: New file.
12018
12019 2020-03-26 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12022 * dwarf2/read.c
12023 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12024 Move to line-header.c.
12025 (read_checked_initial_length_and_offset, read_formatted_entries):
12026 Likewise.
12027 (dwarf_decode_line_header): Split into two.
12028 * dwarf2/line-header.c
12029 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12030 Move from read.c.
12031 (read_checked_initial_length_and_offset, read_formatted_entries):
12032 Likewise.
12033 (dwarf_decode_line_header): New function, split from read.c.
12034
12035 2020-03-26 Tom Tromey <tom@tromey.com>
12036
12037 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12038 Declare method.
12039 * dwarf2/read.c (read_attribute_value): Update.
12040 (dwarf2_per_objfile::read_line_string): Rename from
12041 read_indirect_line_string.
12042 (read_formatted_entries): Update.
12043
12044 2020-03-26 Tom Tromey <tom@tromey.com>
12045
12046 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12047 variable.
12048
12049 2020-03-26 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12052 const.
12053 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12054 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12055 parameter const.
12056
12057 2020-03-26 Tom Tromey <tom@tromey.com>
12058
12059 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12060 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12061 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12062 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12063
12064 2020-03-26 Tom Tromey <tom@tromey.com>
12065
12066 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12067 file_names_size, file_full_name, file_file_name>: Use const.
12068 <file_name_at, file_names>: Add const overload.
12069 * dwarf2/line-header.c (line_header::file_file_name)
12070 (line_header::file_full_name): Update.
12071
12072 2020-03-26 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12075 (macro_start_file, consume_improper_spaces)
12076 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12077 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12078 (dwarf_decode_macros): Move to macro.c.
12079 * dwarf2/macro.c: New file.
12080 * dwarf2/macro.h: New file.
12081 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12082
12083 2020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12086 method.
12087 * dwarf2/section.c: New method. From
12088 read_indirect_string_at_offset_from.
12089 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12090 (read_indirect_string_at_offset_from): Move to section.c.
12091 (read_indirect_string_at_offset): Rewrite.
12092 (read_indirect_line_string_at_offset): Remove.
12093 (read_indirect_string, read_indirect_line_string)
12094 (dwarf_decode_macro_bytes): Update.
12095
12096 2020-03-26 Tom Tromey <tom@tromey.com>
12097
12098 * dwarf2/section.h (struct dwarf2_section_info)
12099 <overload_complaint>: Declare.
12100 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12101 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12102 Rename from dwarf2_section_buffer_overflow_complaint.
12103 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12104 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12105
12106 2020-03-26 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12109 Declare.
12110 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12111 Move from read.c.
12112 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12113 to section.c.
12114
12115 2020-03-26 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12118
12119 2020-03-26 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12122 "builder".
12123 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12124 parameter.
12125 (dwarf_decode_macros): Update.
12126
12127 2020-03-26 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/read.c (read_attribute_value): Update.
12130 (read_indirect_string_from_dwz): Move to dwz.c; change into
12131 method.
12132 (dwarf_decode_macro_bytes): Update.
12133 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12134 * dwarf2/dwz.c: New file.
12135 * Makefile.in (COMMON_SFILES): Add dwz.c.
12136
12137 2020-03-26 Tom Tromey <tom@tromey.com>
12138
12139 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12140 * dwarf2/read.c: Add include.
12141 * dwarf2/index-write.c: Add include.
12142 * dwarf2/index-cache.c: Add include.
12143 * dwarf2/dwz.h: New file.
12144
12145 2020-03-25 Tom Tromey <tom@tromey.com>
12146
12147 * compile/compile-object-load.c (get_out_value_type): Mention
12148 correct symbol name in error message.
12149
12150 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12151
12152 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12153
12154 2020-03-25 Tom de Vries <tdevries@suse.de>
12155
12156 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12157 * symmisc.c (dump_symtab_1): Print user and includes fields.
12158 (maintenance_info_symtabs): Same.
12159
12160 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12161
12162 PR gdb/25534
12163 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12164 (riscv_regcache_cooked_write): New function.
12165 (riscv_push_dummy_call): Use new function.
12166 (riscv_return_value): Likewise.
12167
12168 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12169
12170 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12171 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12172 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12173 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12174 * infrun.c (follow_fork): Likewise.
12175 (follow_fork_inferior): Likewise.
12176 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12177 * linux-nat.h (class linux_nat_target): Likewise.
12178 * remote.c (class remote_target) <follow_fork>: Likewise.
12179 (remote_target::follow_fork): Likewise.
12180 * target-delegates.c: Re-generate.
12181 * target.c (default_follow_fork): Likewise.
12182 (target_follow_fork): Likewise.
12183 * target.h (struct target_ops) <follow_fork>: Likewise.
12184 (target_follow_fork): Likewise.
12185
12186 2020-03-24 Tom de Vries <tdevries@suse.de>
12187
12188 * psymtab.c (maintenance_info_psymtabs): Print user field.
12189
12190 2020-03-20 Tom Tromey <tromey@adacore.com>
12191
12192 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12193 const.
12194 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12195 const.
12196
12197 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12198
12199 * ptrace.m4: Don't check for ptrace declaration.
12200 * config.in: Re-generate.
12201 * configure: Re-generate.
12202 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12203 not defined.
12204
12205 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12206
12207 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12208 `PTRACE_TYPE_RET'.
12209 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12210 * sparc-nat.c (gdb_ptrace): Likewise.
12211 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12212
12213 2020-03-20 Tom Tromey <tromey@adacore.com>
12214
12215 * c-exp.y (lex_one_token): Fix assert.
12216
12217 2020-03-20 Tom Tromey <tromey@adacore.com>
12218
12219 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12220 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12221 strncpy call.
12222
12223 2020-03-20 Tom Tromey <tromey@adacore.com>
12224
12225 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12226
12227 2020-03-20 Tom Tromey <tromey@adacore.com>
12228
12229 * ada-valprint.c (print_variant_part): Remove parameters; switch
12230 to value-based API.
12231 (print_field_values): Likewise.
12232 (ada_val_print_struct_union): Likewise.
12233 (ada_value_print_1): Update.
12234
12235 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12236
12237 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12238 nbsd_nat_target instead of inf_ptrace_target.
12239 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12240 nbsd_nat_target.
12241
12242 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12243
12244 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12245 it to the ptrace call.
12246 * (store_registers): Likewise.
12247
12248 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12249
12250 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12251 it to the ptrace call.
12252 * (store_registers): Likewise.
12253
12254 2020-03-19 Luis Machado <luis.machado@linaro.org>
12255
12256 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12257 valid, fetch vg value from ptrace.
12258
12259 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12260 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12261 * inf-ptrace.c: Likewise.
12262 * (gdb_ptrace): Add.
12263 * (inf_ptrace_target::resume): Update.
12264 * (inf_ptrace_target::xfer_partial): Likewise.
12265 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12266 * (inf_ptrace_peek_poke): Update.
12267
12268 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12269
12270 * x86-bsd-nat.c (gdb_ptrace): New.
12271 * (x86bsd_dr_set): Add new argument `ptid'.
12272 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12273 x86bsd_dr_set_addr): Update.
12274
12275 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12276
12277 * remote.c (remote_target::process_stop_reply): Handle events for
12278 all threads differently.
12279
12280 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12281
12282 * completer.c (completion_tracker::remove_completion): Define new
12283 function.
12284 * completer.h (completion_tracker::remove_completion): Declare new
12285 function.
12286 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12287 when adding a C++ function symbol.
12288
12289 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12290
12291 * completer.c (completion_tracker::completion_hash_entry): Define
12292 new class.
12293 (advance_to_filename_complete_word_point): Call
12294 recompute_lowest_common_denominator.
12295 (completion_tracker::completion_tracker): Call discard_completions
12296 to setup the hash table.
12297 (completion_tracker::discard_completions): Allow for being called
12298 from the constructor, pass new equal function, and element deleter
12299 when constructing the hash table. Initialise new class member
12300 variables.
12301 (completion_tracker::maybe_add_completion): Remove use of
12302 m_entries_vec, and store more information into m_entries_hash.
12303 (completion_tracker::recompute_lcd_visitor): New function, most
12304 content taken from...
12305 (completion_tracker::recompute_lowest_common_denominator):
12306 ...here, this now just visits each item in the hash calling the
12307 above visitor.
12308 (completion_tracker::build_completion_result): Remove use of
12309 m_entries_vec, call recompute_lowest_common_denominator.
12310 * completer.h (completion_tracker::have_completions): Remove use
12311 of m_entries_vec.
12312 (completion_tracker::completion_hash_entry): Declare new class.
12313 (completion_tracker::recompute_lowest_common_denominator): Change
12314 function signature.
12315 (completion_tracker::recompute_lcd_visitor): Declare new function.
12316 (completion_tracker::m_entries_vec): Delete.
12317 (completion_tracker::m_entries_hash): Initialize to NULL.
12318 (completion_tracker::m_lowest_common_denominator_valid): New
12319 member variable.
12320 (completion_tracker::m_lowest_common_denominator_max_length): New
12321 member variable.
12322
12323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12324
12325 * regformats/regdef.h: Put reg in gdb namespace.
12326
12327 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12328
12329 * i386-bsd-nat.c (gdb_ptrace): New.
12330 * (i386bsd_fetch_inferior_registers,
12331 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12332 * (i386bsd_fetch_inferior_registers,
12333 i386bsd_store_inferior_registers) Use gdb_ptrace.
12334
12335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12336
12337 * amd64-bsd-nat.c (gdb_ptrace): New.
12338 * (amd64bsd_fetch_inferior_registers,
12339 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12340 * (amd64bsd_fetch_inferior_registers,
12341 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12342
12343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12344
12345 * user-regs.c (user_reg::read): Rename to...
12346 (user_reg::xread): ...this.
12347 * (append_user_reg): Rename argument `read' to `xread'.
12348 * (user_reg_add_builtin): Likewise.
12349 * (user_reg_add): Likewise.
12350 * (value_of_user_reg): Likewise.
12351
12352 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12353
12354 * sparc-nat.c (gdb_ptrace): New.
12355 * sparc-nat.c (sparc_fetch_inferior_registers)
12356 (sparc_store_inferior_registers) Remove obsolete comment.
12357 * sparc-nat.c (sparc_fetch_inferior_registers)
12358 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12359 * sparc-nat.c (sparc_fetch_inferior_registers)
12360 (sparc_store_inferior_registers) Use gdb_ptrace.
12361
12362 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12363
12364 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12365 it to the ptrace call.
12366 * sh-nbsd-nat.c (store_registers): Likewise.
12367
12368 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12369
12370 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12371 nbsd_nat_target instead of inf_ptrace_target.
12372 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12373 nbsd_nat_target.
12374
12375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12376
12377 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12378
12379 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12380
12381 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12382 <sys/sysctl.h>.
12383 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12384
12385 2020-03-17 Tom de Vries <tdevries@suse.de>
12386
12387 PR gdb/23710
12388 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12389 fields.
12390 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12391 fields.
12392 (process_imported_unit_die): Skip import of c++ CUs.
12393
12394 2020-03-16 Tom Tromey <tom@tromey.com>
12395
12396 * p-valprint.c (pascal_object_print_value): Initialize
12397 base_value.
12398
12399 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12400 Shahab Vahedi <shahab@synopsys.com>
12401
12402 * Makefile.in: Add arch/arc.o
12403 * configure.tgt: Likewise.
12404 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12405 (_initialize_arc_tdep): Don't initialize old target descriptions.
12406 (arc_read_description): New function to cache target descriptions.
12407 * arc-tdep.h (arc_read_description): Add proto type.
12408 * arch/arc.c: New file.
12409 * arch/arc.h: Likewise.
12410 * features/Makefile: Replace old target descriptions with new.
12411 * features/arc-arcompact.c: Remove.
12412 * features/arc-arcompact.xml: Likewise.
12413 * features/arc-v2.c: Likewise
12414 * features/arc-v2.xml: Likewise
12415 * features/arc/aux-arcompact.xml: New file.
12416 * features/arc/aux-v2.xml: Likewise.
12417 * features/arc/core-arcompact.xml: Likewise.
12418 * features/arc/core-v2.xml: Likewise.
12419 * features/arc/aux-arcompact.c: Generate.
12420 * features/arc/aux-v2.c: Likewise.
12421 * features/arc/core-arcompact.c: Likewise.
12422 * features/arc/core-v2.c: Likewise.
12423 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12424
12425 2020-03-16 Tom Tromey <tromey@adacore.com>
12426
12427 PR gdb/25663:
12428 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12429 putting value into bcache.
12430
12431 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12432
12433 PR gdb/21500
12434 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12435 to...
12436 (amd64_windows_init_abi_common): ... this. Don't set size of
12437 long type.
12438 (amd64_windows_init_abi): New function.
12439 (amd64_cygwin_init_abi): New function.
12440 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12441 the Cygwin OS ABI.
12442 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12443 comment.
12444
12445 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12446
12447 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12448 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12449 (pe_import_directory_entry): New struct type.
12450 (is_linked_with_cygwin_dll): New function.
12451 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12452 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12453 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12454
12455 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12456
12457 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12458 i386_cygwin_core_osabi_sniffer.
12459
12460 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * i386-cygwin-tdep.c: Rename to...
12463 * i386-windows-tdep.c: ... this.
12464 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12465 i386-windows-tdep.c.
12466 * configure.tgt: Likewise.
12467
12468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12469
12470 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12471 * osabi.c (gdb_osabi_names): Add "Windows".
12472 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12473 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12474 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12475 i386_cygwin_osabi_sniffer.
12476 (_initialize_i386_cygwin_tdep): Register OS ABI
12477 GDB_OSABI_WINDOWS for i386.
12478 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12479 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12480 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12481 for x86-64.
12482 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12483 when the target matches '*-*-mingw*'.
12484
12485 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12486
12487 * defs.h (enum gdb_osabi): Move to...
12488 * osabi.h (enum gdb_osabi): ... here.
12489 * gdbarch.sh: Include osabi.h in gdbarch.h.
12490 * gdbarch.h: Re-generate.
12491
12492 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12493
12494 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12495 function.
12496 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12497
12498 2020-03-14 Tom Tromey <tom@tromey.com>
12499
12500 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12501 for C++.
12502 (c_type_print_modifier): Likewise. Add "language" parameter.
12503 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12504 (c_type_print_base_1): Update.
12505 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12506 constants.
12507 * type-stack.c (type_stack::insert): Handle tp_atomic and
12508 tp_restrict.
12509 (type_stack::follow_type_instance_flags): Likewise.
12510 (type_stack::follow_types): Likewise. Merge type-following code.
12511 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12512 (space_identifier, cv_with_space_id)
12513 (const_or_volatile_or_space_identifier_noopt)
12514 (const_or_volatile_or_space_identifier): Remove.
12515 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12516 rules.
12517 (ptr_operator, typebase): Update.
12518 (enum token_flag) <FLAG_C>: New constant.
12519 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12520 "_Atomic".
12521 (lex_one_token): Handle FLAG_C.
12522
12523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12524
12525 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12526 it to the ptrace call.
12527 * m68k-bsd-nat.c (store_registers): Likewise.
12528
12529 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12530
12531 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12532 gdb_byte *.
12533 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12534 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12535 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12536
12537 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12538
12539 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12540 nbsd_nat_target instead of inf_ptrace_target.
12541 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12542 nbsd_nat_target.
12543
12544 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12545
12546 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12547 register_t.
12548
12549 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12550
12551 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12552 it to the ptrace call.
12553 * alpha-bsd-nat.c (store_registers): Likewise.
12554
12555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12556
12557 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12558 includes.
12559 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12560 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12561 fill_fpregset): Likewise.
12562
12563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12564
12565 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12566 nbsd_nat_target instead of inf_ptrace_target.
12567 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12568 nbsd_nat_target.
12569
12570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12571
12572 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12573 register_t.
12574
12575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12576
12577 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12578 it to the ptrace call.
12579 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12580 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12581 * arm-nbsd-nat.c (store_register): Likewise.
12582 * arm-nbsd-nat.c (store_regs): Likewise.
12583 * arm-nbsd-nat.c (store_fp_register): Likewise.
12584 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12585
12586 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12587
12588 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12589 nbsd_nat_target instead of inf_ptrace_target.
12590 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12591 nbsd_nat_target.
12592
12593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12594
12595 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12596 it to the ptrace call.
12597 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12598
12599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12600
12601 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12602 it to the ptrace call.
12603 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12604
12605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12606
12607 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12608 gdb_byte *.
12609 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12610
12611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12612
12613 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12614 instead of inf_ptrace_target.
12615 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12616 nbsd_nat_target.
12617
12618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12619
12620 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12621 register_t.
12622
12623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12624
12625 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12626 register_t.
12627
12628 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12629
12630 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12631 register_t.
12632
12633 2020-03-13 Tom Tromey <tom@tromey.com>
12634
12635 * value.h (val_print): Don't declare.
12636 * valprint.h (val_print_array_elements)
12637 (val_print_scalar_formatted, generic_val_print): Don't declare.
12638 * valprint.c (generic_val_print_array): Take a struct value.
12639 (generic_val_print_ptr, generic_val_print_memberptr)
12640 (generic_val_print_bool, generic_val_print_int)
12641 (generic_val_print_char, generic_val_print_complex)
12642 (generic_val_print): Remove.
12643 (generic_value_print): Update.
12644 (do_val_print): Remove unused parameters. Don't call
12645 la_val_print.
12646 (val_print): Remove.
12647 (common_val_print): Update. Don't call value_check_printable.
12648 (val_print_scalar_formatted, val_print_array_elements): Remove.
12649 * rust-lang.c (rust_val_print): Remove.
12650 (rust_language_defn): Update.
12651 * p-valprint.c (pascal_val_print): Remove.
12652 (pascal_value_print_inner): Update.
12653 (pascal_object_print_val_fields, pascal_object_print_val):
12654 Remove.
12655 (pascal_object_print_static_field): Update.
12656 * p-lang.h (pascal_val_print): Don't declare.
12657 * p-lang.c (pascal_language_defn): Update.
12658 * opencl-lang.c (opencl_language_defn): Update.
12659 * objc-lang.c (objc_language_defn): Update.
12660 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12661 * m2-lang.h (m2_val_print): Don't declare.
12662 * m2-lang.c (m2_language_defn): Update.
12663 * language.h (struct language_defn) <la_val_print>: Remove.
12664 * language.c (unk_lang_value_print_inner): Rename. Change
12665 argument types.
12666 (unknown_language_defn, auto_language_defn): Update.
12667 * go-valprint.c (go_val_print): Remove.
12668 * go-lang.h (go_val_print): Don't declare.
12669 * go-lang.c (go_language_defn): Update.
12670 * f-valprint.c (f_val_print): Remove.
12671 * f-lang.h (f_value_print): Don't declare.
12672 * f-lang.c (f_language_defn): Update.
12673 * d-valprint.c (d_val_print): Remove.
12674 * d-lang.h (d_value_print): Don't declare.
12675 * d-lang.c (d_language_defn): Update.
12676 * cp-valprint.c (cp_print_value_fields)
12677 (cp_print_value_fields_rtti, cp_print_value): Remove.
12678 (cp_print_static_field): Update.
12679 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12680 (c_val_print_struct, c_val_print_union, c_val_print_int)
12681 (c_val_print_memberptr, c_val_print): Remove.
12682 * c-lang.h (c_val_print_array, cp_print_value_fields)
12683 (cp_print_value_fields_rtti): Don't declare.
12684 * c-lang.c (c_language_defn, cplus_language_defn)
12685 (asm_language_defn, minimal_language_defn): Update.
12686 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12687 (ada_val_print_enum): Take a struct value.
12688 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12689 (ada_val_print): Remove.
12690 (ada_value_print_1): Update.
12691 (printable_val_type): Remove.
12692 * ada-lang.h (ada_val_print): Don't declare.
12693 * ada-lang.c (ada_language_defn): Update.
12694
12695 2020-03-13 Tom Tromey <tom@tromey.com>
12696
12697 * valprint.c (do_val_print): Update.
12698 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12699 a struct value.
12700 (value_to_value_object_no_release): Declare.
12701 * python/py-value.c (value_to_value_object_no_release): New
12702 function.
12703 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12704 struct value.
12705 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12706 function.
12707 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12708 a struct value.
12709 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12710 Declare.
12711 (gdbscm_apply_val_pretty_printer): Take a struct value.
12712 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12713 value.
12714 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12715 value.
12716 * extension-priv.h (struct extension_language_ops)
12717 <apply_val_pretty_printer>: Take a struct value.
12718 * cp-valprint.c (cp_print_value): Create a struct value.
12719 (cp_print_value): Update.
12720
12721 2020-03-13 Tom Tromey <tom@tromey.com>
12722
12723 * ada-valprint.c (print_field_values): Call common_val_print.
12724
12725 2020-03-13 Tom Tromey <tom@tromey.com>
12726
12727 * ada-valprint.c (val_print_packed_array_elements): Remove
12728 bitoffset and val parameters. Call common_val_print.
12729 (ada_val_print_string): Remove offset, address, and original_value
12730 parameters.
12731 (ada_val_print_array): Update.
12732 (ada_value_print_array): New function.
12733 (ada_value_print_1): Call it.
12734
12735 2020-03-13 Tom Tromey <tom@tromey.com>
12736
12737 * ada-valprint.c (ada_value_print): Use common_val_print.
12738
12739 2020-03-13 Tom Tromey <tom@tromey.com>
12740
12741 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12742
12743 2020-03-13 Tom Tromey <tom@tromey.com>
12744
12745 * ada-valprint.c (ada_value_print_num): New function.
12746 (ada_value_print_1): Use it.
12747
12748 2020-03-13 Tom Tromey <tom@tromey.com>
12749
12750 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12751
12752 2020-03-13 Tom Tromey <tom@tromey.com>
12753
12754 * ada-valprint.c (ada_value_print_ptr): New function.
12755 (ada_value_print_1): Use it.
12756
12757 2020-03-13 Tom Tromey <tom@tromey.com>
12758
12759 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12760 call common_val_print.
12761 (ada_val_print_1): Update.
12762 (ada_value_print_1): New function.
12763 (ada_value_print_inner): Rewrite.
12764
12765 2020-03-13 Tom Tromey <tom@tromey.com>
12766
12767 * cp-valprint.c (cp_print_value_fields): Update.
12768 (cp_print_value): New function.
12769
12770 2020-03-13 Tom Tromey <tom@tromey.com>
12771
12772 * m2-valprint.c (m2_value_print_inner): Use
12773 cp_print_value_fields.
12774 * cp-valprint.c (cp_print_value_fields): New function.
12775 * c-valprint.c (c_value_print_struct): New function.
12776 (c_value_print_inner): Use c_value_print_struct.
12777 * c-lang.h (cp_print_value_fields): Declare.
12778
12779 2020-03-13 Tom Tromey <tom@tromey.com>
12780
12781 * c-valprint.c (c_value_print_array): New function.
12782 (c_value_print_inner): Use it.
12783
12784 2020-03-13 Tom Tromey <tom@tromey.com>
12785
12786 * c-valprint.c (c_value_print_memberptr): New function.
12787 (c_value_print_inner): Use it.
12788
12789 2020-03-13 Tom Tromey <tom@tromey.com>
12790
12791 * c-valprint.c (c_value_print_int): New function.
12792 (c_value_print_inner): Use it.
12793
12794 2020-03-13 Tom Tromey <tom@tromey.com>
12795
12796 * c-valprint.c (c_value_print_ptr): New function.
12797 (c_value_print_inner): Use it.
12798
12799 2020-03-13 Tom Tromey <tom@tromey.com>
12800
12801 * c-valprint.c (c_value_print_inner): Rewrite.
12802
12803 2020-03-13 Tom Tromey <tom@tromey.com>
12804
12805 * valprint.c (generic_value_print_complex): New function.
12806 (generic_value_print): Use it.
12807
12808 2020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * valprint.c (generic_val_print_float): Don't call
12811 val_print_scalar_formatted.
12812 (generic_val_print, generic_value_print): Update.
12813
12814 2020-03-13 Tom Tromey <tom@tromey.com>
12815
12816 * valprint.c (generic_value_print_char): New function
12817 (generic_value_print): Use it.
12818
12819 2020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * valprint.c (generic_value_print_int): New function.
12822 (generic_value_print): Use it.
12823
12824 2020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * valprint.c (generic_value_print_bool): New function.
12827 (generic_value_print): Use it.
12828
12829 2020-03-13 Tom Tromey <tom@tromey.com>
12830
12831 * valprint.c (generic_val_print_func): Simplify.
12832 (generic_val_print, generic_value_print): Update.
12833
12834 2020-03-13 Tom Tromey <tom@tromey.com>
12835
12836 * valprint.c (generic_val_print_flags): Remove.
12837 (generic_val_print, generic_value_print): Update.
12838 (val_print_type_code_flags): Add original_value parameter.
12839
12840 2020-03-13 Tom Tromey <tom@tromey.com>
12841
12842 * valprint.c (generic_val_print): Update.
12843 (generic_value_print): Update.
12844 * valprint.c (generic_val_print_enum): Don't call
12845 val_print_scalar_formatted.
12846
12847 2020-03-13 Tom Tromey <tom@tromey.com>
12848
12849 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12850 * valprint.c (generic_value_print_ptr): New function.
12851
12852 2020-03-13 Tom Tromey <tom@tromey.com>
12853
12854 * valprint.c (generic_value_print): Rewrite.
12855
12856 2020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * p-valprint.c (pascal_object_print_value_fields)
12859 (pascal_object_print_value): New functions.
12860
12861 2020-03-13 Tom Tromey <tom@tromey.com>
12862
12863 * p-valprint.c (pascal_value_print_inner): Rewrite.
12864
12865 2020-03-13 Tom Tromey <tom@tromey.com>
12866
12867 * f-valprint.c (f_value_print_innner): Rewrite.
12868
12869 2020-03-13 Tom Tromey <tom@tromey.com>
12870
12871 * m2-valprint.c (m2_print_unbounded_array): New overload.
12872 (m2_print_unbounded_array): Update.
12873 (m2_print_array_contents): Take a struct value.
12874 (m2_value_print_inner): Rewrite.
12875
12876 2020-03-13 Tom Tromey <tom@tromey.com>
12877
12878 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12879 (d_value_print_inner): New function.
12880 * d-lang.h (d_value_print_inner): Declare.
12881 * d-lang.c (d_language_defn): Use d_value_print_inner.
12882
12883 2020-03-13 Tom Tromey <tom@tromey.com>
12884
12885 * go-valprint.c (go_value_print_inner): New function.
12886 * go-lang.h (go_value_print_inner): Declare.
12887 * go-lang.c (go_language_defn): Use go_value_print_inner.
12888
12889 2020-03-13 Tom Tromey <tom@tromey.com>
12890
12891 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12892 API.
12893 (rust_val_print): Rewrite.
12894 (rust_value_print_inner): New function, from rust_val_print.
12895 (rust_language_defn): Use rust_value_print_inner.
12896
12897 2020-03-13 Tom Tromey <tom@tromey.com>
12898
12899 * ada-valprint.c (ada_value_print_inner): New function.
12900 * ada-lang.h (ada_value_print_inner): Declare.
12901 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12902
12903 2020-03-13 Tom Tromey <tom@tromey.com>
12904
12905 * f-valprint.c (f_value_print_innner): New function.
12906 * f-lang.h (f_value_print_innner): Declare.
12907 * f-lang.c (f_language_defn): Use f_value_print_innner.
12908
12909 2020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * p-valprint.c (pascal_value_print_inner): New function.
12912 * p-lang.h (pascal_value_print_inner): Declare.
12913 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12914
12915 2020-03-13 Tom Tromey <tom@tromey.com>
12916
12917 * m2-valprint.c (m2_value_print_inner): New function.
12918 * m2-lang.h (m2_value_print_inner): Declare.
12919 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12920
12921 2020-03-13 Tom Tromey <tom@tromey.com>
12922
12923 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12924 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12925 * c-valprint.c (c_value_print_inner): New function.
12926 * c-lang.h (c_value_print_inner): Declare.
12927 * c-lang.c (c_language_defn, cplus_language_defn)
12928 (asm_language_defn, minimal_language_defn): Use
12929 c_value_print_inner.
12930
12931 2020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * p-valprint.c (pascal_object_print_value_fields): Now static.
12934 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12935
12936 2020-03-13 Tom Tromey <tom@tromey.com>
12937
12938 * c-valprint.c (c_val_print_array): Simplify.
12939
12940 2020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * valprint.c (value_print_array_elements): New function.
12943 * valprint.h (value_print_array_elements): Declare.
12944
12945 2020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12948 * mips-tdep.c (mips_print_register): Use
12949 value_print_scalar_formatted.
12950
12951 2020-03-13 Tom Tromey <tom@tromey.com>
12952
12953 * valprint.h (value_print_scalar_formatted): Declare.
12954 * valprint.c (value_print_scalar_formatted): New function.
12955
12956 2020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * valprint.h (generic_value_print): Declare.
12959 * valprint.c (generic_value_print): New function.
12960
12961 2020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * valprint.c (do_val_print): Call la_value_print_inner, if
12964 available.
12965 * rust-lang.c (rust_language_defn): Update.
12966 * p-lang.c (pascal_language_defn): Update.
12967 * opencl-lang.c (opencl_language_defn): Update.
12968 * objc-lang.c (objc_language_defn): Update.
12969 * m2-lang.c (m2_language_defn): Update.
12970 * language.h (struct language_defn) <la_value_print_inner>: New
12971 member.
12972 * language.c (unknown_language_defn, auto_language_defn): Update.
12973 * go-lang.c (go_language_defn): Update.
12974 * f-lang.c (f_language_defn): Update.
12975 * d-lang.c (d_language_defn): Update.
12976 * c-lang.c (c_language_defn, cplus_language_defn)
12977 (asm_language_defn, minimal_language_defn): Update.
12978 * ada-lang.c (ada_language_defn): Update.
12979
12980 2020-03-13 Tom Tromey <tom@tromey.com>
12981
12982 * c-valprint.c (c_value_print): Use common_val_print.
12983
12984 2020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12987
12988 2020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * f-valprint.c (f77_print_array_1, f_val_print): Use
12991 common_val_print.
12992
12993 2020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * riscv-tdep.c (riscv_print_one_register_info): Use
12996 common_val_print.
12997
12998 2020-03-13 Tom Tromey <tom@tromey.com>
12999
13000 * mi/mi-main.c (output_register): Use common_val_print.
13001
13002 2020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * infcmd.c (default_print_one_register_info): Use
13005 common_val_print.
13006
13007 2020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * valprint.h (common_val_print_checked): Declare.
13010 * valprint.c (common_val_print_checked): New function.
13011 * stack.c (print_frame_arg): Use common_val_print_checked.
13012
13013 2020-03-13 Tom Tromey <tom@tromey.com>
13014
13015 * valprint.c (do_val_print): New function, from val_print.
13016 (val_print): Use do_val_print.
13017 (common_val_print): Use do_val_print.
13018
13019 2020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * valprint.c (value_print): Use scoped_value_mark.
13022
13023 2020-03-13 Tom de Vries <tdevries@suse.de>
13024
13025 PR symtab/25646
13026 * psymtab.c (partial_symtab::partial_symtab): Don't set
13027 globals_offset and statics_offset. Push element onto
13028 current_global_psymbols and current_static_psymbols stacks.
13029 (concat): New function.
13030 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13031 element from current_global_psymbols and current_static_psymbols
13032 stacks. Concat popped elements to global_psymbols and
13033 static_symbols.
13034 (add_psymbol_to_list): Use current_global_psymbols and
13035 current_static_psymbols stacks.
13036 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13037 current_static_psymbols fields.
13038
13039 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13040
13041 * corelow.c (sniff_core_bfd): Remove.
13042 (class core_target) <m_core_vec>: Remove.
13043 (core_target::core_target): Update.
13044 (core_file_fns): Remove.
13045 (deprecated_add_core_fns): Remove.
13046 (default_core_sniffer): Remove.
13047 (sniff_core_bfd): Remove.
13048 (default_check_format): Remove.
13049 (gdb_check_format): Remove.
13050 (core_target_open): Update.
13051 (core_target::get_core_register_section): Update.
13052 (get_core_registers_cb): Update.
13053 (core_target::fetch_registers): Update.
13054 * gdbcore.h (struct core_fns): Remove.
13055 (deprecated_add_core_fns): Remove.
13056 (default_core_sniffer): Remove.
13057 (default_check_format): Remove.
13058
13059 2020-03-12 Tom Tromey <tom@tromey.com>
13060
13061 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13062 CORE_ADDR.
13063 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13064
13065 2020-03-12 Tom Tromey <tom@tromey.com>
13066
13067 * remote.c (remote_target::download_tracepoint)
13068 (remote_target::enable_tracepoint)
13069 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13070 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13071 sprintf_vma.
13072
13073 2020-03-12 Tom Tromey <tom@tromey.com>
13074
13075 * symfile-mem.c: Update CORE_ADDR size assert.
13076
13077 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13078
13079 * selftest.m4: Move to gdbsupport/.
13080 * acinclude.m4: Update path to selftest.m4.
13081
13082 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13083
13084 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13085 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13086 gdbarch-selfselftests.c and selftest-arch.c.
13087 (SUBDIR_UNITTESTS_OBS): Rename to...
13088 (SELFTESTS_OBS): ... this.
13089 (COMMON_SFILES): Remove disasm-selftests.c and
13090 gdbarch-selftests.c.
13091 * configure.ac: Don't add selftest-arch.{c,o} to
13092 CONFIG_{SRCS,OBS}.
13093 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13094 preprocessor conditions.
13095
13096 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13097
13098 * configure.ac: Don't source bfd/development.sh.
13099 * selftest.m4: Modify comment.
13100 * configure: Re-generate.
13101
13102 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13103
13104 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13105 not "true" or "false".
13106 * configure: Re-generate.
13107
13108 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13109
13110 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13111 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13112 renamed to arm_nbsd_supply_gregset.
13113 (fetch_register): Update to call arm_nbsd_supply_gregset.
13114 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13115 (arm_netbsd_nat_target::fetch_registers): Update.
13116 (fetch_elfcore_registers): Removed.
13117 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13118 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13119 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13120 not require NetBSD system headers.
13121 (arm_nbsd_regset): New struct.
13122 (arm_nbsd_iterate_over_regset_sections): New function.
13123 (arm_netbsd_init_abi_common): Updated to call
13124 set_gdbarch_iterate_over_regset_sections.
13125 * arm-nbsd-tdep.h: New file.
13126
13127 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13128
13129 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13130 recursion.
13131
13132 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13133
13134 * configure: Re-generate.
13135
13136 2020-03-11 Tom Tromey <tromey@adacore.com>
13137
13138 * ada-typeprint.c (print_choices): Fix comment.
13139
13140 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13141
13142 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13143 previous item in the list, when the list has no items.
13144
13145 2020-03-11 Tom de Vries <tdevries@suse.de>
13146
13147 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13148 PROP_LOCLIST handling code.
13149
13150 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13151
13152 * buildsym-legacy.c (record_line): Pass extra parameter to
13153 record_line.
13154 * buildsym.c (buildsym_compunit::record_line): Take an extra
13155 parameter, reduce duplication in the line table, and record the
13156 is_stmt flag in the line table.
13157 * buildsym.h (buildsym_compunit::record_line): Add extra
13158 parameter.
13159 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13160 non-statement lines.
13161 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13162 this to the symtab builder.
13163 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13164 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13165 through to dwarf_record_line_1.
13166 * infrun.c (process_event_stop_test): When stepping, don't stop at
13167 a non-statement instruction, and only refresh the step info when
13168 we land in the middle of a line's range. Also add an extra
13169 comment.
13170 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13171 field.
13172 * record-btrace.c (btrace_find_line_range): Only record lines
13173 marked as is-statement.
13174 * stack.c (frame_show_address): Show the frame address if we are
13175 in a non-statement sal.
13176 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13177 (maintenance_print_one_line_table): Print a header for the is_stmt
13178 column, and include is_stmt information in the output.
13179 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13180 preference to non-statements.
13181 (find_pcs_for_symtab_line): Prefer is-statement entries.
13182 (find_line_common): Likewise.
13183 * symtab.h (struct linetable_entry): Add is_stmt field.
13184 (struct symtab_and_line): Likewise.
13185 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13186 arranging the line table.
13187
13188 2020-03-07 Tom de Vries <tdevries@suse.de>
13189
13190 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13191 DIE.
13192
13193 2020-03-07 Tom Tromey <tom@tromey.com>
13194
13195 * valops.c (value_literal_complex): Remove obsolete comment.
13196 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13197 comment.
13198
13199 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13200
13201 * infrun.h: Forward-declare thread_info.
13202 (set_step_info): Add thread_info parameter, add doc.
13203 * infrun.c (set_step_info): Add thread_info parameter, move doc
13204 to header.
13205 * infrun.c (process_event_stop_test): Pass thread to
13206 set_step_info call.
13207 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13208 set_step_info.
13209 (prepare_one_step): Add thread_info parameter, pass it to
13210 set_step_frame and prepare_one_step (recursive) call.
13211 (step_1): Pass thread to prepare_one_step call.
13212 (step_command_fsm::should_stop): Pass thread to
13213 prepare_one_step.
13214 (until_next_fsm): Pass thread to set_step_frame call.
13215 (finish_command): Pass thread to set_step_info call.
13216
13217 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13218
13219 * windows-tdep.c (windows_solib_create_inferior_hook):
13220 Check if inferior is running.
13221
13222 2020-03-06 Tom de Vries <tdevries@suse.de>
13223
13224 * NEWS: Fix "the the".
13225 * ctfread.c: Same.
13226
13227 2020-03-06 Tom de Vries <tdevries@suse.de>
13228
13229 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13230
13231 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13232
13233 * .dir-locals.el: Add a comment referencing the other copies of
13234 this file.
13235
13236 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13237
13238 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13239 psargs.
13240
13241 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13242
13243 * .gitattributes: New file.
13244
13245 2020-03-04 Tom Tromey <tom@tromey.com>
13246
13247 * symmisc.c (print_symbol_bcache_statistics)
13248 (print_objfile_statistics): Update.
13249 * symfile.c (allocate_symtab): Use intern.
13250 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13251 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13252 macro_cache>: Remove.
13253 <string_cache>: New member.
13254 (struct objfile) <intern>: New methods.
13255 * elfread.c (elf_symtab_read): Use intern.
13256 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13257 (dwarf2_compute_name, dwarf2_physname)
13258 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13259 names.
13260 (guess_partial_die_structure_name): Update.
13261 (partial_die_info::fixup): Intern name.
13262 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13263 name.
13264 (dwarf2_name): Intern name. Update.
13265 * buildsym.c (buildsym_compunit::get_macro_table): Use
13266 string_cache.
13267
13268 2020-03-04 Tom Tromey <tom@tromey.com>
13269
13270 * jit.c (bfd_open_from_target_memory): Make "target" const.
13271 * corefile.c (gnutarget): Now const.
13272 * gdbcore.h (gnutarget): Now const.
13273
13274 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13275
13276 * NEWS: Mention support for WOW64 processes.
13277 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13278 (amd64_windows_segment_register_p): Remove static.
13279 (_initialize_amd64_windows_nat): Update.
13280 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13281 * i386-windows-nat.c (context_offset): Update.
13282 (i386_mappings): Rename and remove static.
13283 (i386_windows_segment_register_p): Remove static.
13284 (_initialize_i386_windows_nat): Update.
13285 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13286 (STATUS_WX86_SINGLE_STEP): New macro.
13287 (EnumProcessModulesEx): New macro.
13288 (Wow64SuspendThread): New macro.
13289 (Wow64GetThreadContext): New macro.
13290 (Wow64SetThreadContext): New macro.
13291 (Wow64GetThreadSelectorEntry): New macro.
13292 (windows_set_context_register_offsets): Add static.
13293 (windows_set_segment_register_p): Likewise.
13294 (windows_add_thread): Adapt for WOW64 processes.
13295 (windows_fetch_one_register): Likewise.
13296 (windows_nat_target::fetch_registers): Likewise.
13297 (windows_store_one_register): Likewise.
13298 (display_selector): Likewise.
13299 (display_selectors): Likewise.
13300 (handle_exception): Likewise.
13301 (windows_continue): Likewise.
13302 (windows_nat_target::resume): Likewise.
13303 (windows_add_all_dlls): Likewise.
13304 (do_initial_windows_stuff): Likewise.
13305 (windows_nat_target::attach): Likewise.
13306 (windows_get_exec_module_filename): Likewise.
13307 (windows_nat_target::create_inferior): Likewise.
13308 (windows_xfer_siginfo): Likewise.
13309 (_initialize_loadable): Initialize Wow64SuspendThread,
13310 Wow64GetThreadContext, Wow64SetThreadContext,
13311 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13312 * windows-nat.h (windows_set_context_register_offsets):
13313 Remove declaration.
13314 (windows_set_segment_register_p): Likewise.
13315 (i386_windows_segment_register_p): Add declaration.
13316 (amd64_windows_segment_register_p): Likewise.
13317
13318 2020-03-04 Luis Machado <luis.machado@linaro.org>
13319
13320 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13321 in "info registers" for AArch64/ARM.
13322
13323 The change caused "info registers" to not print GPR's.
13324
13325 gdb/ChangeLog:
13326
13327 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13328
13329 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13330 when reg->group is empty and reggroup is not.
13331
13332 2020-03-03 Tom Tromey <tromey@adacore.com>
13333
13334 * dwarf2/frame.c (struct dwarf2_frame_cache)
13335 <checked_tailcall_bottom, entry_cfa_sp_offset,
13336 entry_cfa_sp_offset_p>: Remove members.
13337 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13338 (dwarf2_frame_prev_register): Don't call
13339 dwarf2_tailcall_sniffer_first.
13340 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13341 * frame-unwind.c (add_unwinder): New fuction.
13342 (frame_unwind_init): Use it. Add tailcall unwinder.
13343
13344 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13345 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13346
13347 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13348 value should be printed as true.
13349
13350 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13351
13352 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13353 (windows_init_abi): Set and use windows_so_ops.
13354
13355 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13356
13357 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13358 when verifying if dealing with a convenience variable.
13359
13360 2020-03-03 Luis Machado <luis.machado@linaro.org>
13361
13362 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13363
13364 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13365
13366 * infrun.c (gdbarch_supports_displaced_stepping): New.
13367 (use_displaced_stepping): Break up conditions in smaller pieces.
13368 Use gdbarch_supports_displaced_stepping.
13369 (displaced_step_prepare_throw): Use
13370 gdbarch_supports_displaced_stepping.
13371
13372 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * NEWS: Mention new behaviour of the history filename.
13375 * top.c (write_history_p): Add comment.
13376 (show_write_history_p): Add header comment, give a different
13377 message when history writing is on, but the history filename is
13378 empty.
13379 (history_filename): Add comment.
13380 (history_filename_empty): New function.
13381 (show_history_filename): Add header comment, give a different
13382 message when the filename is empty.
13383 (init_history): Compare history_filename against nullptr, and only
13384 read history if the filename is not empty.
13385 (set_history_filename): Add header comment, and only make
13386 non-empty filenames absolute.
13387 (init_main): Make the filename argument to 'set history filename'
13388 optional.
13389
13390 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13391
13392 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13393 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13394 (fetch_fp_register): Update.
13395 (fetch_fp_regs): Update.
13396 (store_fp_register): Update.
13397 (store_fp_regs): Update.
13398 (arm_netbsd_nat_target::read_description): New function.
13399 (fetch_elfcore_registers): Update.
13400
13401 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13402
13403 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13404 general_thread if the stop reply is missing a thread-id.
13405 (remote_target::process_stop_reply): Use the first non-exited
13406 thread if the target didn't pass a thread-id.
13407 * infrun.c (do_target_wait): Move call to
13408 switch_to_inferior_no_thread to ....
13409 (do_target_wait_1): ... here.
13410
13411 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13412
13413 * debuginfod-support.c: Include defs.h first.
13414
13415 2020-02-28 Tom de Vries <tdevries@suse.de>
13416
13417 * symfile.c (set_initial_language): Use default language for lookup.
13418
13419 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13420
13421 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13422 reader variable, pass `this` to read_cutu_die_from_dwo.
13423
13424 2020-02-27 Aaron Merey <amerey@redhat.com>
13425
13426 * source.c (open_source_file): Check for nullptr when computing
13427 srcpath.
13428
13429 2020-02-27 Tom Tromey <tromey@adacore.com>
13430
13431 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13432 member.
13433 (dwarf2_add_field): Don't update nfields.
13434 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13435
13436 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13437
13438 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13439 abs.
13440
13441 2020-02-26 Tom Tromey <tom@tromey.com>
13442
13443 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13444 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13445 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13446 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13447 per_cu_data.
13448
13449 2020-02-26 Tom Tromey <tom@tromey.com>
13450
13451 * dwarf2/index-write.c (psym_index_map): Change type.
13452 (add_address_entry_worker, write_one_signatured_type)
13453 (recursively_count_psymbols, recursively_write_psymbols)
13454 (class debug_names, psyms_seen_size, write_gdbindex)
13455 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13456
13457 2020-02-26 Aaron Merey <amerey@redhat.com>
13458
13459 * Makefile.in: Handle optional debuginfod support.
13460 * NEWS: Update.
13461 * README: Add --with-debuginfod summary.
13462 * config.in: Regenerate.
13463 * configure: Regenerate.
13464 * configure.ac: Handle optional debuginfod support.
13465 * debuginfod-support.c: debuginfod helper functions.
13466 * debuginfod-support.h: Ditto.
13467 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13468 summary.
13469 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13470 when a dwz file cannot be found.
13471 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13472 debuginfo file cannot be found.
13473 * source.c (open_source_file): Query debuginfod servers when a
13474 source file cannot be found.
13475 * top.c (print_gdb_configuration): Include
13476 --{with,without}-debuginfod in the output.
13477
13478 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13479
13480 * thread.c (thr_try_catch_cmd): Print thread name.
13481
13482 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13483
13484 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13485 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13486 dwarf2_fetch_die_type_sect_off): Move to...
13487 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13488 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13489 dwarf2_fetch_die_type_sect_off): ... here.
13490 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13491 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13492 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13493
13494 2020-02-26 Tom de Vries <tdevries@suse.de>
13495
13496 PR gdb/25603
13497 * symfile.c (set_initial_language): Exit-early if
13498 language_mode == language_mode_manual.
13499
13500 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13501
13502 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13503 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13504 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13505
13506 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13507
13508 * gdbtypes.c (create_array_type_with_stride): Handle negative
13509 array strides.
13510 * valarith.c (value_subscripted_rvalue): Likewise.
13511
13512 2020-02-25 Luis Machado <luis.machado@linaro.org>
13513
13514 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13515
13516 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13517
13518 * loc.h (dwarf2_get_die_type): Move to...
13519 * read.h (dwarf2_get_die_type): ... here.
13520 * read.c (dwarf2_get_die_type): Move doc to header.
13521
13522 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13523
13524 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13525 'gnulib/Makefile.in' to the list.
13526
13527 2020-02-24 Tom Tromey <tom@tromey.com>
13528
13529 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13530 Remove.
13531 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13532 XOBNEWVEC.
13533
13534 2020-02-24 Tom Tromey <tom@tromey.com>
13535
13536 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13537 New method.
13538 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13539 (dw2_do_instantiate_symtab, dw2_get_file_names)
13540 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13541
13542 2020-02-24 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13545 make_scoped_restore.
13546 (dwarf2_psymtab::read_symtab): Don't clear
13547 reading_partial_symbols.
13548
13549 2020-02-24 Tom de Vries <tdevries@suse.de>
13550
13551 PR gdb/25592
13552 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13553
13554 2020-02-24 Tom de Vries <tdevries@suse.de>
13555
13556 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13557 commands layout next/prev/regs.
13558
13559 2020-02-22 Tom Tromey <tom@tromey.com>
13560
13561 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13562 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13563
13564 2020-02-22 Tom Tromey <tom@tromey.com>
13565
13566 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13567
13568 2020-02-22 Tom Tromey <tom@tromey.com>
13569
13570 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13571 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13572 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13573 * tui/tui.c (_initialize_tui): Add usage text.
13574
13575 2020-02-22 Tom Tromey <tom@tromey.com>
13576
13577 * tui/tui-win.c (tui_set_focus_command)
13578 (tui_set_win_height_command): Use error_no_arg.
13579 (_initialize_tui_win): Update help text.
13580 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13581
13582 2020-02-22 Tom Tromey <tom@tromey.com>
13583
13584 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13585 * tui/tui-disasm.h (struct tui_disasm_window)
13586 <display_start_addr>: Declare.
13587 * tui/tui-source.h (struct tui_source_window)
13588 <display_start_addr>: Declare.
13589 * tui/tui-winsource.h (struct tui_source_window_base)
13590 <show_source_line, display_start_addr>: New methods.
13591 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13592 Rename and move to protected section.
13593 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13594 (tui_source_window_base::do_erase_source_content): Update.
13595 (tui_source_window_base::show_source_line): Now a method.
13596 (tui_source_window_base::show_source_content)
13597 (tui_source_window_base::tui_source_window_base)
13598 (tui_source_window_base::rerender)
13599 (tui_source_window_base::refill)
13600 (tui_source_window_base::do_scroll_horizontal)
13601 (tui_source_window_base::set_is_exec_point_at)
13602 (tui_source_window_base::update_breakpoint_info)
13603 (tui_source_window_base::update_exec_info): Update.
13604 * tui/tui-source.c (tui_source_window::set_contents)
13605 (tui_source_window::showing_source_p)
13606 (tui_source_window::do_scroll_vertical)
13607 (tui_source_window::location_matches_p)
13608 (tui_source_window::line_is_displayed): Update.
13609 (tui_source_window::display_start_addr): New method.
13610 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13611 (tui_disasm_window::do_scroll_vertical)
13612 (tui_disasm_window::location_matches_p): Update.
13613 (tui_disasm_window::display_start_addr): New method.
13614
13615 2020-02-22 Tom Tromey <tom@tromey.com>
13616
13617 * NEWS: Add entry for gdb.register_window_type.
13618 * tui/tui-layout.h (window_factory): New typedef.
13619 (tui_register_window): Declare.
13620 * tui/tui-layout.c (saved_tui_windows): New global.
13621 (tui_apply_current_layout): Use it.
13622 (tui_register_window): New function.
13623 * python/python.c (do_start_initialization): Call
13624 gdbpy_initialize_tui.
13625 (python_GdbMethods): Add "register_window_type" function.
13626 * python/python-internal.h (gdbpy_register_tui_window)
13627 (gdbpy_initialize_tui): Declare.
13628 * python/py-tui.c: New file.
13629 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13630
13631 2020-02-22 Tom Tromey <tom@tromey.com>
13632
13633 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13634
13635 2020-02-22 Tom Tromey <tom@tromey.com>
13636
13637 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13638 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13639 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13640 (tui_set_win_focus_to): Move from tui-win.c.
13641
13642 2020-02-22 Tom Tromey <tom@tromey.com>
13643
13644 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13645 functions.
13646 (known_window_types): New global.
13647 (tui_get_window_by_name): Reimplement.
13648 (initialize_known_windows): New function.
13649 (validate_window_name): Rewrite.
13650 (_initialize_tui_layout): Call initialize_known_windows.
13651
13652 2020-02-22 Tom Tromey <tom@tromey.com>
13653
13654 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13655 Remove constants.
13656 * tui/tui-winsource.h (struct tui_source_window_base)
13657 <tui_source_window_base>: Remove parameter.
13658 * tui/tui-winsource.c
13659 (tui_source_window_base::tui_source_window_base): Remove
13660 parameter.
13661 (tui_source_window_base::refill): Update.
13662 * tui/tui-stack.h (struct tui_locator_window)
13663 <tui_locator_window>: Update.
13664 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13665 Default the constructor.
13666 * tui/tui-regs.h (struct tui_data_item_window)
13667 <tui_data_item_window>: Default the constructor.
13668 (struct tui_data_window) <tui_data_window>: Likewise.
13669 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13670 Default the constructor.
13671 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13672 Default the constructor.
13673 <type>: Remove.
13674 (struct tui_win_info) <tui_win_info>: Default the constructor.
13675 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13676 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13677 Default the constructor.
13678
13679 2020-02-22 Tom Tromey <tom@tromey.com>
13680
13681 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13682 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13683 * tui/tui-win.c (tui_resize_all): Don't call
13684 tui_delete_invisible_windows.
13685 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13686 done.
13687 (tui_set_layout): Update.
13688 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13689 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13690 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13691
13692 2020-02-22 Tom Tromey <tom@tromey.com>
13693
13694 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13695 correctly.
13696
13697 2020-02-22 Tom Tromey <tom@tromey.com>
13698
13699 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13700
13701 2020-02-22 Tom Tromey <tom@tromey.com>
13702
13703 * tui/tui-winsource.h (struct tui_source_window_iterator)
13704 <inner_iterator>: New etytypedef.
13705 <tui_source_window_iterator>: Take "end" parameter.
13706 <tui_source_window_iterator>: Take iterator.
13707 <operator*, advance>: Update.
13708 <m_iter>: Change type.
13709 <m_end>: New field.
13710 (struct tui_source_windows) <begin, end>: Update.
13711 * tui/tui-layout.c (tui_windows): New global.
13712 (tui_apply_current_layout): Clear tui_windows.
13713 (tui_layout_window::apply): Update tui_windows.
13714 * tui/tui-data.h (tui_windows): Declare.
13715 (all_tui_windows): Now inline function.
13716 (class tui_window_iterator, struct all_tui_windows): Remove.
13717
13718 2020-02-22 Tom Tromey <tom@tromey.com>
13719
13720 PR tui/17850:
13721 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13722 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13723 "height" argument.
13724 (class tui_layout_window) <get_sizes>: Likewise.
13725 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13726 argument.
13727 <get_sizes>: Add "height" argument.
13728 <m_vertical>: New field.
13729 * tui/tui-layout.c (tui_layout_split::clone): Update.
13730 (tui_layout_split::get_sizes): Add "height" argument.
13731 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13732 (tui_new_layout_command): Parse "-horizontal".
13733 (_initialize_tui_layout): Update help string.
13734 (tui_layout_split::specification): Add "-horizontal" when needed.
13735 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13736 argument.
13737 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13738 New methods.
13739
13740 2020-02-22 Tom Tromey <tom@tromey.com>
13741
13742 * tui/tui-layout.h (enum tui_adjust_result): New.
13743 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13744 (class tui_layout_window) <adjust_size>: Return
13745 tui_adjust_result. Rewrite.
13746 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13747 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13748
13749 2020-02-22 Tom Tromey <tom@tromey.com>
13750
13751 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13752 parameter and return types.
13753 (class tui_layout_base) <specification>: Add "depth".
13754 (class tui_layout_window) <specification>: Add "depth".
13755 (class tui_layout_split) <specification>: Add "depth".
13756 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13757 and return types.
13758 (tui_new_layout_command): Parse sub-layouts.
13759 (_initialize_tui_layout): Update help string.
13760 (tui_layout_window::specification): Add "depth".
13761 (add_layout_command): Update.
13762
13763 2020-02-22 Tom Tromey <tom@tromey.com>
13764
13765 * NEWS: Add "tui new-layout" item.
13766 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13767 Add new-layout command to help text.
13768 (validate_window_name): New function.
13769 (tui_new_layout_command): New function.
13770 (_initialize_tui_layout): Register "new-layout".
13771 (tui_layout_window::specification): New method.
13772 (tui_layout_window::specification): New method.
13773 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13774 method.
13775 (class tui_layout_window) <specification>: New method.
13776 (class tui_layout_split) <specification>: New method.
13777
13778 2020-02-22 Tom Tromey <tom@tromey.com>
13779
13780 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13781 * tui/tui-win.c (window_name_completer): Update comment.
13782 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13783 Declare method.
13784 (class tui_layout_window) <replace_window>: Likewise.
13785 (class tui_layout_split) <replace_window>: Likewise.
13786 (tui_set_layout): Don't declare.
13787 (tui_set_initial_layout): Declare function.
13788 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13789 (asm_regs_layout): New globals.
13790 (tui_current_layout, show_layout): Remove.
13791 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13792 (find_layout, tui_apply_layout): New function.
13793 (layout_completer): Remove.
13794 (tui_next_layout): Reimplement.
13795 (tui_next_layout_command): New function.
13796 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13797 (tui_regs_layout): Reimplement.
13798 (tui_regs_layout_command): New function.
13799 (extract_display_start_addr): Rewrite.
13800 (next_layout, prev_layout): Remove.
13801 (tui_layout_window::replace_window): New method.
13802 (tui_layout_split::replace_window): New method.
13803 (destroy_layout): New function.
13804 (layout_list): New global.
13805 (add_layout_command): New function.
13806 (initialize_layouts): Update.
13807 (tui_layout_command): New function.
13808 (_initialize_tui_layout): Install "layout" commands.
13809 * tui/tui-data.h (enum tui_layout_type): Remove.
13810 (tui_current_layout): Don't declare.
13811
13812 2020-02-22 Tom Tromey <tom@tromey.com>
13813
13814 * tui/tui-regs.c (tui_reg_layout): Remove.
13815 (tui_reg_command): Use tui_regs_layout.
13816 * tui/tui-layout.h (tui_reg_command): Declare.
13817 * tui/tui-layout.c (tui_reg_command): New function.
13818
13819 2020-02-22 Tom Tromey <tom@tromey.com>
13820
13821 * tui/tui.c (tui_rl_delete_other_windows): Call
13822 tui_remove_some_windows.
13823 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13824 Declare method.
13825 (class tui_layout_window) <remove_windows>: New method.
13826 (class tui_layout_split) <remove_windows>: Declare.
13827 (tui_remove_some_windows): Declare.
13828 * tui/tui-layout.c (tui_remove_some_windows): New function.
13829 (tui_layout_split::remove_windows): New method.
13830
13831 2020-02-22 Tom Tromey <tom@tromey.com>
13832
13833 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13834 * tui/tui-layout.h (tui_next_layout): Declare.
13835 * tui/tui-layout.c (tui_next_layout): New function.
13836
13837 2020-02-22 Tom Tromey <tom@tromey.com>
13838
13839 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13840 correct coordinates.
13841
13842 2020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13845 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13846 DATA_WIN case.
13847
13848 2020-02-22 Tom Tromey <tom@tromey.com>
13849
13850 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13851 TUI_DISASM_WIN, not tui_win_list.
13852
13853 2020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 * valprint.c (generic_val_print_enum_1)
13856 (val_print_type_code_flags): Style member names.
13857 * rust-lang.c (val_print_struct, rust_print_enum)
13858 (rust_print_struct_def, rust_internal_print_type): Style member
13859 names.
13860 * p-valprint.c (pascal_object_print_value_fields): Style member
13861 names. Only call fprintf_symbol_filtered for static members.
13862 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13863 * f-valprint.c (f_val_print): Style member names.
13864 * f-typeprint.c (f_type_print_base): Style member names.
13865 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13866 call fprintf_symbol_filtered for static members.
13867 (cp_print_class_member): Style member names.
13868 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13869 member names.
13870 * ada-valprint.c (ada_print_scalar): Style enum names.
13871 (ada_val_print_enum): Likewise.
13872 * ada-typeprint.c (print_enum_type): Style enum names.
13873
13874 2020-02-21 Tom Tromey <tom@tromey.com>
13875
13876 * psympriv.h (struct partial_symtab): Update comment.
13877
13878 2020-02-21 Tom Tromey <tromey@adacore.com>
13879
13880 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13881 type is CORE_ADDR.
13882
13883 2020-02-21 Tom de Vries <tdevries@suse.de>
13884
13885 PR gdb/25534
13886 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13887 if dependencies[i]->user != NULL.
13888
13889 2020-02-21 Ali Tamur <tamur@google.com>
13890
13891 * dwarf2/read.c (dwarf2_name): Add null check.
13892
13893 2020-02-20 Tom Tromey <tom@tromey.com>
13894
13895 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13896 ">=", in binary search.
13897 (dwarf2_find_containing_comp_unit): New overload.
13898 (run_test): New self-test.
13899 (_initialize_dwarf2_read): Register new test.
13900
13901 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13902
13903 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13904 * riscv-tdep.h: Likewise.
13905 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13906 rv32-only CSR.
13907 * features/riscv/64bit-csr.xml: Regenerated.
13908
13909 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13910 Tom Tromey <tom@tromey.com>
13911
13912 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13913 of 'fputc_unfiltered'.
13914 (putchar_unfiltered): Call 'fputc_unfiltered'.
13915 (fputc_unfiltered): Call 'fputs_unfiltered'.
13916
13917 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13918
13919 * config.in: Regenerate.
13920 * configure: Regenerate.
13921 * configure.ac: Add --with-python-libdir option.
13922 * main.c: Use WITH_PYTHON_LIBDIR.
13923
13924 2020-02-19 Tom Tromey <tom@tromey.com>
13925
13926 * symtab.c (general_symbol_info::compute_and_set_names): Use
13927 obstack_strndup. Simplify call to symbol_set_demangled_name.
13928
13929 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13930
13931 * dwarf2/read.c (allocate_signatured_type_table,
13932 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13933 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13934 Remove objfile parameter, update all callers.
13935
13936 2020-02-19 Doug Evans <dje@google.com>
13937
13938 PR rust/25535
13939 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13940 rust_enum_variant calculation.
13941
13942 2020-02-19 Tom Tromey <tromey@adacore.com>
13943
13944 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13945
13946 2020-02-19 Tom Tromey <tromey@adacore.com>
13947
13948 * ada-lang.c (cache_symbol): Use obstack_strdup.
13949
13950 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13951
13952 * configure: Regenerate.
13953
13954 2020-02-19 Tom Tromey <tromey@adacore.com>
13955
13956 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13957 NULL check.
13958
13959 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13960
13961 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13962
13963 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13964
13965 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13966 if GDBSERVER is not defined.
13967 (riscv_tdesc_cache): Likewise, also store const target_desc.
13968 (STATIC_IN_GDB): Define.
13969 (riscv_create_target_description): Update declaration with
13970 STATIC_IN_GDB.
13971 (riscv_lookup_target_description): New function, only define if
13972 GDBSERVER is not defined.
13973 * arch/riscv.h (riscv_create_target_description): Declare only
13974 when GDBSERVER is defined.
13975 (riscv_lookup_target_description): New declaration when GDBSERVER
13976 is not defined.
13977 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13978 (riscv_linux_read_features): ...this, and return
13979 riscv_gdbarch_features instead of target_desc.
13980 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13981 (riscv_linux_read_description): Rename to...
13982 (riscv_linux_read_features): ...this.
13983 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13984 Update to use riscv_gdbarch_features and
13985 riscv_lookup_target_description.
13986 * riscv-tdep.c (riscv_find_default_target_description): Use
13987 riscv_lookup_target_description instead of
13988 riscv_create_target_description.
13989
13990 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13991
13992 * valprint.c (generic_val_print_enum_1): When printing a flag
13993 enum with value 0 and there is no enumerator with value 0, print
13994 just "0" instead of "(unknown: 0x0)".
13995
13996 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13997
13998 * valprint.c (generic_val_print_enum_1): Print unknown part of
13999 flag enum in hex.
14000
14001 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14002
14003 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14004 flag enums to contain duplicate enumerators.
14005 * valprint.c (generic_val_print_enum_1): Update comment.
14006
14007 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14008
14009 * dwarf2/read.c: Include "count-one-bits.h".
14010 (update_enumeration_type_from_children): If an enumerator has
14011 multiple bits set, don't treat the enumeration as a "flag enum".
14012 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14013 of flag enums have 0 or 1 bit set.
14014
14015 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14016
14017 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14018 conversion.
14019 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14020 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14021 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14022 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14023 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14024
14025 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14026
14027 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14028
14029 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14030
14031 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14032 displaced_step_closure_up.
14033 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14034 (struct displaced_step_closure_up):
14035 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14036 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14037 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14038 Likewise.
14039 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14040 * gdbarch.c, gdbarch.h: Re-generate.
14041 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14042 displaced_step_closure_up.
14043 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14044 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14045 * infrun.h (displaced_step_closure_up): New type alias.
14046 (struct displaced_step_inferior_state) <step_closure>: Change
14047 type to displaced_step_closure_up.
14048 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14049 displaced_step_closure_up.
14050 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14051
14052 2020-02-14 Tom Tromey <tom@tromey.com>
14053
14054 * minidebug.c (gnu_debug_key): New global.
14055 (find_separate_debug_file_in_section): Use it.
14056
14057 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14058
14059 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14060 std::unique_ptr.
14061 * gdbarch.c: Re-generate.
14062 * gdbarch.h: Re-generate.
14063 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14064 change.
14065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14066 type to std::unique_ptr.
14067 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14068 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14069 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14070 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14071 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14072 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14073 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14074 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14075 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14076
14077 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14078
14079 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14080 std::unique_ptr.
14081 (displaced_step_clear): Rename to...
14082 (displaced_step_reset): ... this. Just call displaced->reset ().
14083 (displaced_step_clear_cleanup): Rename to...
14084 (displaced_step_reset_cleanup): ... this.
14085 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14086 (displaced_step_fixup): Likewise.
14087 (resume_1): Likewise.
14088 (handle_inferior_event): Restore child's memory before calling
14089 displaced_step_fixup on the parent.
14090 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14091 to std::unique_ptr.
14092 <step_closure>: Change type to std::unique_ptr.
14093
14094 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14095
14096 * arm-tdep.c: Include count-one-bits.h.
14097 (cleanup_block_store_pc): Use count_one_bits.
14098 (cleanup_block_load_pc): Use count_one_bits.
14099 (arm_copy_block_xfer): Use count_one_bits.
14100 (thumb2_copy_block_xfer): Use count_one_bits.
14101 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14102 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14103 (thumb_get_next_pcs_raw): Use count_one_bits.
14104 (arm_get_next_pcs_raw): Use count_one_bits_l.
14105 * arch/arm.c (bitcount): Remove.
14106 * arch/arm.h (bitcount): Remove.
14107
14108 2020-02-14 Tom Tromey <tromey@adacore.com>
14109
14110 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14111 Update.
14112 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14113 * dwarf2/loc.c (call_site_find_chain_1): Return
14114 unique_xmalloc_ptr.
14115 (call_site_find_chain): Likewise.
14116
14117 2020-02-14 Richard Biener <rguenther@suse.de>
14118
14119 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14120 on expression with division operators.
14121
14122 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14123
14124 * MAINTAINERS (Write After Approval): Adding myself.
14125
14126 2020-02-12 Tom Tromey <tom@tromey.com>
14127
14128 * event-loop.c (event_data, gdb_event, event_handler_func):
14129 Remove.
14130
14131 2020-02-12 Tom Tromey <tom@tromey.com>
14132
14133 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14134 (dwarf2_frame_objfile_data): Add comment.
14135 (find_comp_unit, set_comp_unit): New functions.
14136 (dwarf2_frame_find_fde): Use find_comp_unit.
14137 (dwarf2_build_frame_info): Use set_comp_unit.
14138
14139 2020-02-12 Tom Tromey <tom@tromey.com>
14140
14141 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14142 (comp_unit): Don't initialize objfile.
14143 (execute_cfa_program): Add text_offset parameter.
14144 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14145 (dwarf2_frame_cache): Update.
14146 (dwarf2_build_frame_info): Don't set "objfile" member.
14147
14148 2020-02-12 Tom Tromey <tom@tromey.com>
14149
14150 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14151 (decode_frame_entry): Likewise.
14152 (dwarf2_build_frame_info): Update.
14153
14154 2020-02-12 Tom Tromey <tom@tromey.com>
14155
14156 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14157 (decode_frame_entry_1): Use the comp_unit obstack.
14158
14159 2020-02-12 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/frame.c (struct comp_unit): Add initializers and
14162 constructor.
14163 (dwarf2_frame_objfile_data): Store a comp_unit.
14164 (dwarf2_frame_find_fde): Update.
14165 (dwarf2_build_frame_info): Use "new".
14166
14167 2020-02-12 Tom Tromey <tom@tromey.com>
14168
14169 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14170 (dwarf2_fde_table): Typedef for std::vector.
14171 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14172 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14173 (decode_frame_entry): Update.
14174 (dwarf2_build_frame_info): Use "new".
14175
14176 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14177
14178 * arm-tdep.c (arm_gdbarch_init): Update.
14179 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14180 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14181 have_neon, is_m>: Change to bool.
14182
14183 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14184
14185 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14186
14187 2020-02-12 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14190
14191 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14192
14193 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14194 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14195
14196 2020-02-11 Tom Tromey <tom@tromey.com>
14197
14198 * psymtab.h: Update comment.
14199
14200 2020-02-11 Tom Tromey <tom@tromey.com>
14201
14202 * gdb_obstack.h (struct auto_obstack): Use
14203 DISABLE_COPY_AND_ASSIGN.
14204
14205 2020-02-11 Tom Tromey <tom@tromey.com>
14206
14207 * dwarf2/frame.h (struct objfile): Don't forward declare.
14208
14209 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14210
14211 * cris-tdep.c (cris_supply_gregset): Change signature to match
14212 what struct regset expects.
14213 (cris_regset): New struct.
14214 (fetch_core_registers): Remove.
14215 (cris_iterate_over_regset_sections): New function.
14216 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14217 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14218
14219 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14220
14221 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14222 registers.
14223
14224 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14225
14226 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14227
14228 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14229
14230 * configure: Re-generate.
14231
14232 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14233
14234 * configure: Re-generate.
14235
14236 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14237
14238 * acinclude: Update warning.m4 path.
14239 * warning.m4: Move to gdbsupport.
14240
14241 2020-02-11 Tom Tromey <tromey@adacore.com>
14242
14243 * remote.c (remote_console_output): Update.
14244 * printcmd.c (printf_command): Update.
14245 * event-loop.c (gdb_wait_for_event): Update.
14246 * linux-nat.c (sigchld_handler): Update.
14247 * remote-sim.c (gdb_os_write_stdout): Update.
14248 (gdb_os_flush_stdout): Update.
14249 (gdb_os_flush_stderr): Update.
14250 (gdb_os_write_stderr): Update.
14251 * exceptions.c (print_exception): Update.
14252 * remote-fileio.c (remote_fileio_func_read): Update.
14253 (remote_fileio_func_write): Update.
14254 * tui/tui.c (tui_enable): Update.
14255 * tui/tui-interp.c (tui_interp::init): Update.
14256 * utils.c (init_page_info): Update.
14257 (putchar_unfiltered, fputc_unfiltered): Update.
14258 (gdb_flush): Update.
14259 (emit_style_escape): Update.
14260 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14261 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14262 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14263 (stderr_file::write): Update.
14264 (stderr_file::puts): Update.
14265 * ui-file.h (ui_file_isatty, ui_file_write)
14266 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14267 (ui_file_puts): Don't declare.
14268
14269 2020-02-10 Tom de Vries <tdevries@suse.de>
14270
14271 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14272 sentinel to char *.
14273
14274 2020-02-09 Tom de Vries <tdevries@suse.de>
14275
14276 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14277 filename if it matches "<artificial>".
14278
14279 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14280
14281 * windows-tdep.c (struct enum_value_name): New struct.
14282 (create_enum): New function.
14283 (windows_get_siginfo_type): Create and use enum types.
14284
14285 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14286
14287 * NEWS: Mention $_siginfo support for Windows.
14288 * windows-nat.c (handle_exception): Set siginfo_er.
14289 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14290 (windows_xfer_siginfo): New function.
14291 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14292 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14293 (init_windows_gdbarch_data): New function.
14294 (get_windows_gdbarch_data): New function.
14295 (windows_get_siginfo_type): New function.
14296 (windows_init_abi): Register windows_get_siginfo_type.
14297 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14298
14299 2020-02-08 Tom Tromey <tom@tromey.com>
14300
14301 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14302 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14303 <keep>: Declare method.
14304 <m_keep>: Remove member.
14305 <~cutu_reader>: Remove.
14306 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14307 (cutu_reader::cutu_reader): Update.
14308 (cutu_reader::keep): Rename from ~cutu_reader.
14309 (process_psymtab_comp_unit, build_type_psymtabs_1)
14310 (process_skeletonless_type_unit, load_partial_comp_unit)
14311 (load_full_comp_unit, dwarf2_read_addr_index)
14312 (read_signatured_type): Update.
14313
14314 2020-02-08 Tom Tromey <tom@tromey.com>
14315
14316 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14317 "want_partial_unit" parameter.
14318 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14319 Inline check for DW_TAG_partial_unit.
14320 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14321
14322 2020-02-08 Tom Tromey <tom@tromey.com>
14323
14324 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14325 read.c.
14326 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14327 read.c.
14328
14329 2020-02-08 Tom Tromey <tom@tromey.com>
14330
14331 * dwarf2/read.c (read_address): Move to comp-unit.c.
14332 (dwarf2_rnglists_process, dwarf2_ranges_process)
14333 (read_attribute_value, dwarf_decode_lines_1)
14334 (var_decode_location, decode_locdesc): Update.
14335 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14336 read.c. Remove "cu" parameter.
14337 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14338 method.
14339
14340 2020-02-08 Tom Tromey <tom@tromey.com>
14341
14342 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14343 (read_indirect_line_string): Update.
14344 * dwarf2/comp-unit.c (read_offset): Remove.
14345 (read_comp_unit_head): Update.
14346 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14347 method.
14348 (read_offset): Don't declare.
14349
14350 2020-02-08 Tom Tromey <tom@tromey.com>
14351
14352 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14353 * dwarf2/read.c (struct comp_unit_head): Move to
14354 dwarf2/comp-unit.h.
14355 (enum class rcuh_kind): Move to comp-unit.h.
14356 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14357 (read_comp_unit_head, error_check_comp_unit_head)
14358 (read_and_check_comp_unit_head): Move to comp-unit.c.
14359 (read_offset, dwarf_unit_type_name): Likewise.
14360 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14361 (cutu_reader::cutu_reader, read_call_site_scope)
14362 (find_partial_die, follow_die_offset): Update.
14363 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14364
14365 2020-02-08 Tom Tromey <tom@tromey.com>
14366
14367 * dwarf2/read.c (read_offset_1): Move to leb.c.
14368 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14369 (dwarf_decode_macro_bytes): Update.
14370 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14371 * dwarf2/leb.h (read_offset): Declare.
14372
14373 2020-02-08 Tom Tromey <tom@tromey.com>
14374
14375 * dwarf2/read.c (dwarf2_section_size): Remove.
14376 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14377 Update.
14378 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14379
14380 2020-02-08 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2/read.c (read_initial_length): Move to leb.c.
14383 * dwarf2/leb.h (read_initial_length): Declare.
14384 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14385 handle_nonstd parameter.
14386 * dwarf2/frame.c (read_initial_length): Remove.
14387 (decode_frame_entry_1): Update.
14388
14389 2020-02-08 Tom Tromey <tom@tromey.com>
14390
14391 * dwarf2/loc.c (dwarf2_find_location_expression)
14392 (dwarf_evaluate_loc_desc::get_tls_address)
14393 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14394 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14395 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14396 (dwarf2_compile_property_to_c)
14397 (dwarf2_loc_desc_get_symbol_read_needs)
14398 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14399 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14400 (loclist_describe_location, loclist_tracepoint_var_ref)
14401 (loclist_generate_c_location): Update.
14402 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14403 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14404 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14405 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14406 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14407 (dwarf2_per_cu_data::addr_size)
14408 (dwarf2_per_cu_data::ref_addr_size)
14409 (dwarf2_per_cu_data::text_offset)
14410 (dwarf2_per_cu_data::addr_type): Now methods.
14411 (per_cu_header_read_in): Make per_cu "const".
14412 (dwarf2_version): Remove.
14413 (dwarf2_per_cu_data::int_type): Now a method.
14414 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14415 (set_die_type, read_array_type, read_subrange_index_type)
14416 (read_tag_string_type, read_subrange_type): Update.
14417 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14418 offset_size, ref_addr_size, text_offset, addr_type, version,
14419 objfile, int_type, addr_sized_int_type>: Declare methods.
14420
14421 2020-02-08 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14424 Move earlier.
14425
14426 2020-02-08 Tom Tromey <tom@tromey.com>
14427
14428 * dwarf2/read.h (dwarf_line_debug): Declare.
14429 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14430 * dwarf2/read.c: Move line_header code to new files.
14431 (dwarf_line_debug): No longer static.
14432 * dwarf2/line-header.c: New file.
14433 * dwarf2/line-header.h: New file.
14434
14435 2020-02-08 Tom Tromey <tom@tromey.com>
14436
14437 * dwarf2/read.c (struct line_header) <file_full_name,
14438 file_file_name>: Return unique_xmalloc_ptr.
14439 (line_header::file_file_name): Update.
14440 (line_header::file_full_name): Update.
14441 (dw2_get_file_names_reader): Update.
14442 (macro_start_file): Update.
14443
14444 2020-02-08 Tom Tromey <tom@tromey.com>
14445
14446 * dwarf2/read.c (struct line_header) <file_full_name,
14447 file_file_name>: Declare methods.
14448 (dw2_get_file_names_reader): Update.
14449 (file_file_name): Now a method.
14450 (file_full_name): Likewise.
14451 (macro_start_file): Update.
14452
14453 2020-02-08 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2/read.c (dwarf_always_disassemble)
14456 (show_dwarf_always_disassemble): Move to loc.c.
14457 (_initialize_dwarf2_read): Move "always-disassemble" registration
14458 to loc.c.
14459 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14460 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14461 static.
14462 (show_dwarf_always_disassemble): Move from read.c.
14463 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14464
14465 2020-02-08 Tom Tromey <tom@tromey.com>
14466
14467 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14468 (create_quick_file_names_table): Return htab_up.
14469 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14470 Update.
14471 * dwarf2/read.h (struct dwarf2_per_objfile)
14472 <quick_file_names_table>: Now htab_up.
14473
14474 2020-02-08 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14477
14478 2020-02-08 Tom Tromey <tom@tromey.com>
14479
14480 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14481 Rewrite.
14482 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14483 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14484 (abbrev_table::abbrev_table): No longer inline.
14485 (ABBREV_HASH_SIZE): Remove.
14486 (abbrev_table::m_abbrevs): Now an htab_up.
14487
14488 2020-02-08 Tom Tromey <tom@tromey.com>
14489
14490 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14491 (cutu_reader): Update.
14492 (build_type_psymtabs_1): Update.
14493 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14494 (abbrev_table::alloc_abbrev): Update.
14495 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14496 (abbrev_table::read): New static method, renamed from
14497 abbrev_table_read_table.
14498 (abbrev_table::alloc_abbrev)
14499 (abbrev_table::add_abbrev): Now private.
14500 (abbrev_table::abbrev_table): Now private.
14501 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14502
14503 2020-02-08 Tom Tromey <tom@tromey.com>
14504
14505 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14506 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14507 htab_up.
14508
14509 2020-02-08 Tom Tromey <tom@tromey.com>
14510
14511 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14512 htab_up.
14513 (lookup_dwo_unit_in_dwp): Update.
14514 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14515 on obstack.
14516
14517 2020-02-08 Tom Tromey <tom@tromey.com>
14518
14519 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14520 obstack.
14521
14522 2020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14525 line_header_hash.
14526 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14527 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14528 Change type to htab_up.
14529
14530 2020-02-08 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14533 htab_up. Don't allocate on obstack.
14534 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14535 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14536 Change type to htab_up.
14537
14538 2020-02-08 Tom Tromey <tom@tromey.com>
14539
14540 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14541 Change type to htab_up.
14542 * dwarf2/read.c (create_signatured_type_table_from_index)
14543 (create_signatured_type_table_from_debug_names)
14544 (create_all_type_units, add_type_unit)
14545 (lookup_dwo_signatured_type, lookup_signatured_type)
14546 (process_skeletonless_type_unit): Update.
14547 (create_debug_type_hash_table, create_debug_types_hash_table):
14548 Change type of types_htab.
14549 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14550 htab_up. Don't allocate on obstack.
14551 (create_cus_hash_table): Change type of cus_htab parameter.
14552 (struct dwo_file) <cus, tus>: Now htab_up.
14553 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14554 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14555 (queue_and_load_all_dwo_tus): Update.
14556 * dwarf2/index-write.c (write_gdbindex): Update.
14557 (write_debug_names): Update.
14558
14559 2020-02-08 Tom Tromey <tom@tromey.com>
14560
14561 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14562 dwarf2/read.c. Remove "next" member. Add constructor ntad
14563 destructor.
14564 (struct dwarf2_per_objfile) <queue>: New member.
14565 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14566 dwarf2/read.h.
14567 (dwarf2_queue, dwarf2_queue_tail): Remove.
14568 (class dwarf2_queue_guard): Add parameter to constructor. Use
14569 DISABLE_COPY_AND_ASSIGN.
14570 <m_per_objfile>: New member.
14571 <~dwarf2_queue_guard>: Rewrite.
14572 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14573 Update.
14574 (~dwarf2_queue_item): New.
14575
14576 2020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2/read.c (struct die_info) <has_children>: New member.
14579 (dw2_get_file_names_reader): Remove has_children.
14580 (dw2_get_file_names): Update.
14581 (read_cutu_die_from_dwo): Remove has_children.
14582 (cutu_reader::init_tu_and_read_dwo_dies)
14583 (cutu_reader::cutu_reader): Update.
14584 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14585 Remove has_children.
14586 (build_type_psymtabs_1, process_skeletonless_type_unit)
14587 (load_partial_comp_unit, load_full_comp_unit): Update.
14588 (create_dwo_cu_reader): Remove has_children.
14589 (create_cus_hash_table, read_die_and_children): Update.
14590 (read_full_die_1,read_full_die): Remove has_children.
14591 (read_signatured_type): Update.
14592 (class cutu_reader) <has_children>: Remove.
14593
14594 2020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2/expr.c: Rename from dwarf2expr.c.
14597 * dwarf2/expr.h: Rename from dwarf2expr.h.
14598 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14599 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14600 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14601 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14602 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14603 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14604 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14605 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14606 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14607 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14608 * dwarf2/loc.c: Rename from dwarf2loc.c.
14609 * dwarf2/loc.h: Rename from dwarf2loc.h.
14610 * dwarf2/read.c: Rename from dwarf2read.c.
14611 * dwarf2/read.h: Rename from dwarf2read.h.
14612 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14613 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14614 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14615 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14616 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14617 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14618 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14619 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14620 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14621 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14622 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14623 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14624 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14625 Update.
14626 * Makefile.in (COMMON_SFILES): Update.
14627 (HFILES_NO_SRCDIR): Update.
14628
14629 2020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14632 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14633
14634 2020-02-08 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2read.h (struct die_info): Don't declare.
14637
14638 2020-02-08 Tom Tromey <tom@tromey.com>
14639
14640 * dwarf2read.h (die_info_ptr): Remove typedef.
14641
14642 2020-02-08 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2read.c (read_call_site_scope)
14645 (handle_data_member_location, dwarf2_add_member_fn)
14646 (mark_common_block_symbol_computed, read_common_block)
14647 (attr_to_dynamic_prop, partial_die_info::read)
14648 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14649 (dwarf2_symbol_mark_computed, set_die_type): Update.
14650 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14651 method.
14652 (attr_form_is_block): Don't declare.
14653 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14654
14655 2020-02-08 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2read.c (dwarf2_find_base_address, )
14658 (read_call_site_scope, rust_containing_type)
14659 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14660 (handle_data_member_location, dwarf2_add_member_fn)
14661 (get_alignment, read_structure_type, process_structure_scope)
14662 (mark_common_block_symbol_computed, read_common_block)
14663 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14664 (partial_die_info::read, read_attribute_value, new_symbol)
14665 (lookup_die_type, dwarf2_get_ref_die_offset)
14666 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14667 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14668 (dwarf2_symbol_mark_computed): Update.
14669 * dwarf2/attribute.h (struct attribute) <value_as_address,
14670 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14671 methods.
14672 (value_as_address, attr_form_is_section_offset)
14673 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14674 * dwarf2/attribute.c (attribute::value_as_address)
14675 (attribute::form_is_section_offset, attribute::form_is_constant)
14676 (attribute::form_is_ref): Now methods.
14677
14678 2020-02-08 Tom Tromey <tom@tromey.com>
14679
14680 * dwarf2read.c (struct attribute, DW_STRING)
14681 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14682 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14683 (attr_form_is_block, attr_form_is_section_offset)
14684 (attr_form_is_constant, attr_form_is_ref): Move.
14685 * dwarf2/attribute.h: New file.
14686 * dwarf2/attribute.c: New file, from dwarf2read.c.
14687 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14688
14689 2020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14692 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14693 Move.
14694 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14695 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14696 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14697 abbrev.c.
14698 * dwarf2/abbrev.h: New file.
14699 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14700 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14701
14702 2020-02-08 Tom Tromey <tom@tromey.com>
14703
14704 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14705 (dwarf2_section_size, dwarf2_get_section_info)
14706 (create_signatured_type_table_from_debug_names)
14707 (create_addrmap_from_aranges, read_debug_names_from_section)
14708 (get_gdb_index_contents_from_section, read_comp_unit_head)
14709 (error_check_comp_unit_head, read_abbrev_offset)
14710 (create_debug_type_hash_table, init_cu_die_reader)
14711 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14712 (read_comp_units_from_section, create_cus_hash_table)
14713 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14714 (create_dwp_v2_section, dwarf2_rnglists_process)
14715 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14716 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14717 (read_indirect_string_from_dwz, read_addr_index_1)
14718 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14719 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14720 (fill_in_loclist_baton): Update.
14721 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14722 get_containing_section, get_bfd_owner, get_bfd_section,
14723 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14724 (dwarf2_read_section, get_section_name, get_section_file_name)
14725 (get_containing_section, get_section_bfd_owner)
14726 (get_section_bfd_section, get_section_name, get_section_file_name)
14727 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14728 declare.
14729 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14730 (dwarf2_section_info::get_bfd_owner)
14731 (dwarf2_section_info::get_bfd_section)
14732 (dwarf2_section_info::get_name)
14733 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14734 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14735 (dwarf2_section_info::read): Now methods.
14736 * dwarf-index-write.c (class debug_names): Update.
14737
14738 2020-02-08 Tom Tromey <tom@tromey.com>
14739
14740 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14741 Move to dwarf2/section.h.
14742 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14743 (get_section_bfd_section, get_section_name)
14744 (get_section_file_name, get_section_id, get_section_flags)
14745 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14746 dwarf2/section.c.
14747 * dwarf2/section.h: New file.
14748 * dwarf2/section.c: New file, from dwarf2read.c.
14749 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14750
14751 2020-02-08 Tom Tromey <tom@tromey.com>
14752
14753 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14754 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14755 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14756 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14757 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14758 * dwarf2/leb.h: New file, from dwarf2read.c.
14759 * dwarf2/leb.c: New file, from dwarf2read.c.
14760 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14761 Remove.
14762 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14763 (COMMON_SFILES): Add dwarf2/leb.c.
14764
14765 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14766
14767 GDB 9.1 released.
14768
14769 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14770
14771 PR gdb/25190:
14772 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14773 * gdb/remote.c (remote_console_output): Update.
14774 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14775 (ui_file_puts): ...this.
14776 * gdb/ui-file.h (ui_file_puts): Add declaration.
14777 * gdb/utils.c (emit_style_escape): Update.
14778 (flush_wrap_buffer): Update.
14779 (fputs_maybe_filtered): Update.
14780 (fputs_unfiltered): Add function.
14781
14782 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14783
14784 * gdb/event-loop.c (gdb_wait_for_event): Update.
14785 * gdb/printcmd.c (printf_command): Update.
14786 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14787 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14788 (gdb_os_flush_stderr): Update.
14789 * gdb/remote.c (remote_console_output): Update.
14790 * gdb/ui-file.c (gdb_flush): Rename to...
14791 (ui_file_flush): ...this.
14792 (stderr_file::write): Update.
14793 (stderr_file::puts): Update.
14794 * gdb/ui-file.h (gdb_flush): Rename to...
14795 (ui_file_flush): ...this.
14796 * gdb/utils.c (gdb_flush): Add function.
14797 * gdb/utils.h (gdb_flush): Add declaration.
14798
14799 2020-02-07 Tom Tromey <tromey@adacore.com>
14800
14801 PR breakpoints/24915:
14802 * source.c (find_and_open_source): Do not check basenames_may_differ.
14803
14804 2020-02-07 Tom Tromey <tom@tromey.com>
14805
14806 * README: Update gdbserver documentation.
14807 * gdbserver: Move to top level.
14808 * configure.tgt (build_gdbserver): Remove.
14809 * configure.ac: Remove --enable-gdbserver.
14810 * configure: Rebuild.
14811 * Makefile.in (distclean): Don't mention gdbserver.
14812
14813 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14814
14815 * source-cache.c (source_cache::ensure): Surround
14816 get_plain_source_lines with a try/catch.
14817 (source_cache::get_line_charpos): Get rid of try/catch
14818 and only check for the return value of "ensure".
14819 * tui/tui-source.c (tui_source_window::set_contents):
14820 Simplify "nlines" calculation.
14821
14822 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14823
14824 * MAINTAINERS (Write After Approval): Add myself.
14825
14826 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14827
14828 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14829 function call.
14830
14831 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14832
14833 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14834
14835 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14836
14837 * nat/riscv-linux-tdesc.h: New file.
14838 * nat/riscv-linux-tdesc.c: New file, taking code from...
14839 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14840 ... here.
14841 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14842 NATDEPFILES.
14843
14844 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14845
14846 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14847 we don't set the fake simulator ptid to the null_ptid.
14848
14849 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14850
14851 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14852 * gdbthread.h (class thread_info) <resumed>: Likewise.
14853 * infrun.c (resume_1): Likewise.
14854 (proceed): Likewise.
14855 (infrun_thread_stop_requested): Likewise.
14856 (stop_all_threads): Likewise.
14857 (handle_inferior_event): Likewise.
14858 (restart_threads): Likewise.
14859 (finish_step_over): Likewise.
14860 (keep_going_stepped_thread): Likewise.
14861 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14862 (linux_handle_extended_wait): Likewise.
14863 * record-btrace.c (get_thread_current_frame_id): Likewise.
14864 * record-full.c (record_full_wait_1): Likewise.
14865 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14866 * target.c (target_resume): Likewise.
14867 * thread.c (set_running_thread): Likewise.
14868
14869 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14870
14871 * f-valprint.c (f77_print_array_1): Changed datatype of index
14872 variable to LONGEST from int to enable it to contain bound
14873 values correctly.
14874
14875 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14876
14877 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14878 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14879 offsets according to FLEN determined.
14880 (riscv_linux_nat_target::read_description): Determine FLEN
14881 dynamically.
14882 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14883 according to FLEN determined.
14884 (riscv_linux_nat_target::store_registers): Likewise.
14885
14886 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14887
14888 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14889 when reg->group is empty and reggroup is not.
14890
14891 2020-01-31 Tom Tromey <tromey@adacore.com>
14892
14893 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14894 Call beneath target's mourn_inferior after unpushing.
14895
14896 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14897
14898 PR tui/9765
14899 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14900 have enough lines to fill the screen, still return the lowest
14901 address we found.
14902
14903 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14904
14905 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14906 '-', '<', and '>' commands.
14907
14908 2020-01-29 Pedro Alves <palves@redhat.com>
14909 Sergio Durigan Junior <sergiodj@redhat.com>
14910
14911 * infcmd.c (construct_inferior_arguments): Assert that
14912 'argc' is greater than 0.
14913
14914 2020-01-29 Luis Machado <luis.machado@linaro.org>
14915
14916 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14917 (BRK_INSN_MASK): Define to 0xd4200000.
14918 (aarch64_program_breakpoint_here_p): New function.
14919 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14920 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14921 breakpoint.c.
14922 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14923 breakpoint.h
14924 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14925 call gdbarch_program_breakpoint_here_p.
14926 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14927 default_program_breakpoint_here_p, changed return type to bool and
14928 simplified.
14929 * breakpoint.h (program_breakpoint_here): Moved prototype to
14930 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14931 return type to bool.
14932 * gdbarch.c: Regenerate.
14933 * gdbarch.h: Regenerate.
14934 * gdbarch.sh (program_breakpoint_here_p): New method.
14935 * infrun.c (handle_signal_stop): Call
14936 gdbarch_program_breakpoint_here_p.
14937
14938 2020-01-26 Tom Tromey <tom@tromey.com>
14939
14940 * ctfread.c (struct ctf_fp_info): Reindent.
14941 (_initialize_ctfread): Remove.
14942
14943 2020-01-26 Tom Tromey <tom@tromey.com>
14944
14945 * psymtab.c (partial_map_expand_apply)
14946 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14947 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14948 (psym_print_stats, psym_expand_symtabs_for_function)
14949 (psym_map_symbol_filenames, psym_map_matching_symbols)
14950 (psym_expand_symtabs_matching)
14951 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14952 (maintenance_check_psymtabs): Use new methods.
14953 * psympriv.h (struct partial_symtab) <readin_p,
14954 get_compunit_symtab>: New methods.
14955 <readin, compunit_symtab>: Remove members.
14956 (struct standard_psymtab): New.
14957 (struct legacy_psymtab): Derive from standard_psymtab.
14958 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14959 standard_psymtab.
14960 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14961
14962 2020-01-26 Tom Tromey <tom@tromey.com>
14963
14964 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14965 read_dependencies. Add assert.
14966 * psymtab.c (partial_symtab::read_dependencies): New method.
14967 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14968 method.
14969 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14970 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14971 read_dependencies.
14972 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14973 Add assert.
14974
14975 2020-01-26 Tom Tromey <tom@tromey.com>
14976
14977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14978 Call expand_psymtab.
14979 (xcoff_read_symtab): Call expand_psymtab.
14980 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14981 legacy_expand_psymtab.
14982 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14983 method.
14984 (struct legacy_psymtab) <expand_psymtab>: Implement.
14985 <legacy_expand_psymtab>: New member.
14986 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14987 (parse_partial_symbols): Set legacy_expand_psymtab.
14988 (psymtab_to_symtab_1): Change argument order. Call
14989 expand_psymtab.
14990 (new_psymtab): Set legacy_expand_psymtab.
14991 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14992 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14993 expand_psymtab.
14994 (dwarf2_psymtab::expand_psymtab): Rename from
14995 psymtab_to_symtab_1. Call expand_psymtab.
14996 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14997 (dbx_end_psymtab): Likewise.
14998 (dbx_psymtab_to_symtab_1): Change argument order. Call
14999 expand_psymtab.
15000 (dbx_read_symtab): Call expand_psymtab.
15001 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15002 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15003 (ctf_psymtab::read_symtab): Call expand_psymtab.
15004
15005 2020-01-26 Tom Tromey <tom@tromey.com>
15006
15007 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15008 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15009 messages.
15010 * mdebugread.c (mdebug_read_symtab): Remove prints.
15011 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15012 assert.
15013 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15014
15015 2020-01-26 Tom Tromey <tom@tromey.com>
15016
15017 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15018 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15019 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15020 legacy_symtab.
15021 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15022 * psymtab.c (psymtab_to_symtab): Call method.
15023 (dump_psymtab): Update.
15024 * psympriv.h (struct partial_symtab): Add virtual destructor.
15025 <read_symtab>: New method.
15026 (struct legacy_symtab): New.
15027 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15028 (struct pst_map) <pst>: Now a legacy_psymtab.
15029 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15030 (new_psymtab): Use legacy_psymtab.
15031 * dwarf2read.h (struct dwarf2_psymtab): New.
15032 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15033 * dwarf2read.c (dwarf2_create_include_psymtab)
15034 (dwarf2_build_include_psymtabs, create_type_unit_group)
15035 (create_partial_symtab, process_psymtab_comp_unit_reader)
15036 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15037 (set_partial_user): Use dwarf2_psymtab.
15038 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15039 (psymtab_to_symtab_1, process_full_comp_unit)
15040 (process_full_type_unit, dwarf2_ranges_read)
15041 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15042 (dwarf_decode_lines): Use dwarf2_psymtab.
15043 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15044 (add_address_entry_worker, write_one_signatured_type)
15045 (recursively_count_psymbols, recursively_write_psymbols)
15046 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15047 (write_debug_names): Likewise.
15048 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15049 <pst>: Now a legacy_psymtab.
15050 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15051 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15052 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15053 * ctfread.c (struct ctf_psymtab): New.
15054 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15055 ctf_psymtab.
15056 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15057 (create_partial_symtab): Return a ctf_psymtab.
15058 (scan_partial_symbols): Update.
15059
15060 2020-01-26 Tom Tromey <tom@tromey.com>
15061
15062 * xcoffread.c (xcoff_start_psymtab): Use new.
15063 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15064 renamed from start_psymtab_common.
15065 * psympriv.h (struct partial_symtab): Add new constructor.
15066 (start_psymtab_common): Don't declare.
15067 * mdebugread.c (parse_partial_symbols): Use new.
15068 * dwarf2read.c (create_partial_symtab): Use new.
15069 * dbxread.c (start_psymtab): Use new.
15070 * ctfread.c (create_partial_symtab): Use new.
15071
15072 2020-01-26 Tom Tromey <tom@tromey.com>
15073
15074 * xcoffread.c (xcoff_end_psymtab): Use new.
15075 * psymtab.c (start_psymtab_common): Use new.
15076 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15077 Update.
15078 * psympriv.h (struct partial_symtab): Add parameters to
15079 constructor. Don't inline.
15080 (allocate_psymtab): Don't declare.
15081 * mdebugread.c (new_psymtab): Use new.
15082 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15083 * dbxread.c (dbx_end_psymtab): Use new.
15084
15085 2020-01-26 Tom Tromey <tom@tromey.com>
15086
15087 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15088 allocate_psymtab. Update documentation.
15089 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15090 allocate_psymtab. Do not use new.
15091 (allocate_psymtab): Use new. Update.
15092
15093 2020-01-26 Tom Tromey <tom@tromey.com>
15094
15095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15096 * psymtab.c (psym_print_stats): Update.
15097 * psympriv.h (struct partial_symtab) <readin,
15098 psymtabs_addrmap_supported, anonymous>: Now bool.
15099 * mdebugread.c (psymtab_to_symtab_1): Update.
15100 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15101 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15102 (process_full_comp_unit, process_full_type_unit): Update.
15103 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15104 * ctfread.c (psymtab_to_symtab): Update.
15105
15106 2020-01-26 Tom Tromey <tom@tromey.com>
15107
15108 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15109 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15110 * psymtab.c (psymtab_storage): Delete psymtabs.
15111 (psymtab_storage::allocate_psymtab): Use new.
15112 (psymtab_storage::discard_psymtab): Use delete.
15113 * psympriv.h (struct partial_symtab): Add constructor and
15114 initializers.
15115
15116 2020-01-26 Tom Tromey <tom@tromey.com>
15117
15118 * machoread.c: Do not include psympriv.h.
15119
15120 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15121
15122 * NEWS: Mention the new option and the set/show commands.
15123
15124 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15125
15126 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15127 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15128 (validate_exec_file): New variables, enums, functions.
15129 (exec_file_locate_attach, print_section_info): Style the filenames.
15130 (_initialize_exec): Install show_exec_file_mismatch_command and
15131 set_exec_file_mismatch_command.
15132 * gdbcore.h (validate_exec_file): Declare.
15133 * infcmd.c (attach_command): Call validate_exec_file.
15134 * remote.c ( remote_target::remote_add_inferior): Likewise.
15135
15136 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15137
15138 * frame.c (find_frame_sal): Move call to get_next_frame into more
15139 inner scope.
15140 * inline-frame.c (inilne_state) <inline_state>: Update argument
15141 types.
15142 (inilne_state) <skipped_symbol>: Rename to...
15143 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15144 (skip_inline_frames): Build vector of skipped symbols and use this
15145 to reate the inline_state.
15146 (inline_skipped_symbol): Add a comment and some assertions, fetch
15147 skipped symbol from the list.
15148
15149 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15150
15151 * buildsym.c (lte_is_less_than): Delete.
15152 (buildsym_compunit::end_symtab_with_blockvector): Create local
15153 lambda function to sort line table entries, and use
15154 std::stable_sort instead of std::sort.
15155 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15156 markers when looking for a previous line.
15157
15158 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15159
15160 * dwarf2read.c (lnp_state_machine::record_line): Include
15161 end_sequence parameter in debug print out. Record the line if we
15162 are at an end_sequence marker even if it's not the start of a
15163 statement.
15164 * symmisc.c (maintenance_print_one_line_table): Print end of
15165 sequence markers with 'END' not '0'.
15166
15167 2020-01-24 Pedro Alves <palves@redhat.com>
15168
15169 PR gdb/25410
15170 * thread.c (scoped_restore_current_thread::restore): Use
15171 switch_to_inferior_no_thread.
15172 * exec.c: Include "progspace-and-thread.h".
15173 (add_target_sections, remove_target_sections):
15174 scoped_restore_current_pspace_and_thread instead of
15175 scoped_restore_current_thread.
15176 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15177 and aspace to the inferior before calling clone_program_space.
15178 Remove stale comment.
15179
15180 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15181
15182 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15183 (arm_netbsd_nat_target::fetch_registers): ...this.
15184 (arm_nbsd_nat_target::store_registers): Rename to...
15185 (arm_netbsd_nat_target::store_registers): ...this.
15186
15187 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15188
15189 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15190 register_t.
15191
15192 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15193
15194 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15195 Update comment.
15196 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15197 Likewise.
15198 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15199 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15200 the correct replacement (iterate_over_regset_sections).
15201 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15202 Update comment.
15203
15204 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15205
15206 PR gdb/23718
15207 * gdb/python/python.c (execute_gdb_command): Call
15208 async_enable_stdin in catch block.
15209
15210 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15211
15212 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15213 SWITCH_THRU_ALL_UIS.
15214
15215 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15216
15217 PR tui/9765
15218 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15219 comment, add extra parameter, and update to store previous symbol
15220 when appropriate.
15221 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15222 add extra parameter.
15223 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15224 remove unneeded parameter, add try/catch around gdb_print_insn,
15225 rewrite to add items to asm_lines vector.
15226 (tui_find_backward_disassembly_start_address): New function.
15227 (tui_find_disassembly_address): Updated throughout.
15228 (tui_disasm_window::set_contents): Update for changes to
15229 tui_disassemble.
15230 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15231 number of lines to scroll.
15232
15233 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15234
15235 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15236 (SECT_OFF_DATA): Likewise.
15237 (SECT_OFF_RODATA): Likewise.
15238 (SECT_OFF_TEXT): Likewise.
15239 (SECT_OFF_BSS): Likewise.
15240 (struct objfile) <text_section_offset, data_section_offset>: New
15241 methods.
15242 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15243 objfile::text_section_offset.
15244 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15245 * coffread.c (coff_symtab_read): Likewise.
15246 (enter_linenos): Likewise.
15247 (process_coff_symbol): Likewise.
15248 * ctfread.c (get_objfile_text_range): Likewise.
15249 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15250 Use objfile::data_section_offset.
15251 * dwarf2-frame.c (execute_cfa_program): Use
15252 objfile::text_section_offset.
15253 (dwarf2_frame_find_fde): Likewise.
15254 * dwarf2read.c (create_addrmap_from_index): Likewise.
15255 (create_addrmap_from_aranges): Likewise.
15256 (dw2_find_pc_sect_compunit_symtab): Likewise.
15257 (process_psymtab_comp_unit_reader): Likewise.
15258 (add_partial_symbol): Likewise.
15259 (add_partial_subprogram): Likewise.
15260 (process_full_comp_unit): Likewise.
15261 (read_file_scope): Likewise.
15262 (read_func_scope): Likewise.
15263 (read_lexical_block_scope): Likewise.
15264 (read_call_site_scope): Likewise.
15265 (dwarf2_rnglists_process): Likewise.
15266 (dwarf2_ranges_process): Likewise.
15267 (dwarf2_ranges_read): Likewise.
15268 (dwarf_decode_lines_1): Likewise.
15269 (new_symbol): Likewise.
15270 (dwarf2_fetch_die_loc_sect_off): Likewise.
15271 (dwarf2_per_cu_text_offset): Likewise.
15272 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15273 * hppa-tdep.c (read_unwind_info): Likewise.
15274 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15275 * psympriv.h (struct partial_symtab): Likewise.
15276 * psymtab.c (find_pc_sect_psymtab): Likewise.
15277 * solib-svr4.c (enable_break): Likewise.
15278 * stap-probe.c (relocate_address): Use
15279 objfile::data_section_offset.
15280 * xcoffread.c (enter_line_range): Use
15281 objfile::text_section_offset.
15282 (read_xcoff_symtab): Likewise.
15283
15284 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15285
15286 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15287 declaration to narrower scopes.
15288
15289 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15290
15291 * darwin-nat.h (struct darwin_exception_msg, enum
15292 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15293 Move up.
15294 (class darwin_nat_target) <wait_1, check_new_threads,
15295 decode_exception_message, decode_message, stop_inferior,
15296 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15297 * darwin-nat.c (darwin_check_new_threads): Rename to...
15298 (darwin_nat_target::check_new_threads): ... this.
15299 (darwin_suspend_inferior_it): Remove.
15300 (darwin_decode_exception_message): Rename to...
15301 (darwin_nat_target::decode_exception_message): ... this.
15302 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15303 (darwin_decode_message): Rename to...
15304 (darwin_nat_target::decode_message): ... this.
15305 (cancel_breakpoint): Rename to...
15306 (darwin_nat_target::cancel_breakpoint): ... this.
15307 (darwin_wait): Rename to...
15308 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15309 instead of iterate_over_inferiors.
15310 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15311 (darwin_stop_inferior): Rename to...
15312 (darwin_nat_target::stop_inferior): ... this.
15313 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15314 (darwin_init_thread_list): Rename to...
15315 (darwin_nat_target::init_thread_list): ... this.
15316 (darwin_ptrace_him): Rename to...
15317 (darwin_nat_target::ptrace_him): ... this.
15318 (darwin_nat_target::create_inferior): Pass lambda function to
15319 fork_inferior.
15320 (darwin_nat_target::detach): Call stop_inferior instead of
15321 darwin_stop_inferior.
15322 * fork-inferior.h (fork_inferior): Change init_trace_fun
15323 parameter to gdb::function_view.
15324 * fork-inferior.c (fork_inferior): Likewise.
15325
15326 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15327
15328 * i386-cygwin-tdep.c (core_process_module_section): Update.
15329 * windows-nat.c (struct lm_info_windows): Add text_offset.
15330 (windows_xfer_shared_libraries): Update.
15331 * windows-tdep.c (windows_xfer_shared_library):
15332 Add text_offset_cached argument.
15333 * windows-tdep.h (windows_xfer_shared_library): Update.
15334
15335 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15336
15337 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15338
15339 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15340
15341 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15342 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15343 replace with range-based for.
15344 (gdbsim_interrupt_inferior): Remove.
15345 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15346 with a range-based for. Inline code from
15347 gdbsim_interrupt_inferior.
15348
15349 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15350
15351 * infrun.c (proceed): Fix indentation.
15352
15353 2020-01-21 Tom Tromey <tromey@adacore.com>
15354
15355 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15356 * python/python.c (python_extension_ops): Update.
15357 (gdbpy_colorize): New function.
15358 * python/lib/gdb/__init__.py (colorize): New function.
15359 * extension.h (ext_lang_colorize): Declare.
15360 * extension.c (ext_lang_colorize): New function.
15361 * extension-priv.h (struct extension_language_ops) <colorize>: New
15362 member.
15363 * cli/cli-style.c (_initialize_cli_style): Update help text.
15364
15365 2020-01-21 Luis Machado <luis.machado@linaro.org>
15366
15367 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15368 <cond>: Change type to bool.
15369 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15370 (aarch64_displaced_step_cb): Likewise.
15371 (aarch64_displaced_step_tb): Likewise.
15372
15373 2020-01-21 Luis Machado <luis.machado@linaro.org>
15374
15375 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15376 output.
15377
15378 2020-01-21 Luis Machado <luis.machado@linaro.org>
15379
15380 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15381 <pc_adjust>: Adjust the documentation.
15382 (aarch64_displaced_step_fixup): Check if PC really moved before
15383 adjusting it.
15384
15385 2020-01-19 Tom Tromey <tom@tromey.com>
15386
15387 * disasm.c (~gdb_disassembler): New destructor.
15388 (gdb_buffered_insn_length): Call disassemble_free_target.
15389 * disasm.h (class gdb_disassembler): Declare destructor. Use
15390 DISABLE_COPY_AND_ASSIGN.
15391
15392 2020-01-19 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15395 (die_reader_func_ftype): Remove.
15396 (cutu_reader): New class.
15397 (dw2_get_file_names_reader): Remove "data" parameter.
15398 (dw2_get_file_names): Use cutu_reader.
15399 (create_debug_type_hash_table): Update.
15400 (read_cutu_die_from_dwo): Update comment.
15401 (lookup_dwo_unit): Add dwo_name parameter.
15402 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15403 die_reader_func_ftype and data parameters.
15404 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15405 Remove die_reader_func_ftype and data parameters.
15406 (~cutu_reader): New; from init_cutu_and_read_dies.
15407 (cutu_reader::cutu_reader): Rename from
15408 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15409 and data parameters.
15410 (init_cutu_and_read_dies_simple): Remove.
15411 (struct process_psymtab_comp_unit_data): Remove.
15412 (process_psymtab_comp_unit_reader): Remove data parameter; add
15413 want_partial_unit and pretend_language parameters.
15414 (process_psymtab_comp_unit): Use cutu_reader.
15415 (build_type_psymtabs_reader): Remove data parameter.
15416 (build_type_psymtabs_1): Use cutu_reader.
15417 (process_skeletonless_type_unit): Likewise.
15418 (load_partial_comp_unit_reader): Remove.
15419 (load_partial_comp_unit): Use cutu_reader.
15420 (load_full_comp_unit_reader): Remove.
15421 (load_full_comp_unit): Use cutu_reader.
15422 (struct create_dwo_cu_data): Remove.
15423 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15424 dwo_unit parameters.
15425 (create_cus_hash_table): Use cutu_reader.
15426 (struct dwarf2_read_addr_index_data): Remove.
15427 (dwarf2_read_addr_index_reader): Remove.
15428 (dwarf2_read_addr_index): Use cutu_reader.
15429 (read_signatured_type_reader): Remove.
15430 (read_signatured_type): Use cutu_reader.
15431
15432 2020-01-19 Tom Tromey <tom@tromey.com>
15433
15434 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15435 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15436 (tui_wrefresh): Declare.
15437 * tui/tui-wingeneral.c (suppress_output): New global.
15438 (tui_suppress_output, ~tui_suppress_output): New constructor and
15439 destructor.
15440 (tui_wrefresh): New function.
15441 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15442 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15443 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15444 method.
15445 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15446 tui_wrefresh.
15447 (tui_data_window::no_refresh): New method.
15448 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15449 (tui_reg_command): Use tui_suppress_output
15450 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15451 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15452 method.
15453 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15454
15455 2020-01-19 Tom Tromey <tom@tromey.com>
15456
15457 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15458 Handle case where symtab is null.
15459
15460 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15461
15462 * linux-fork.c (one_fork_p): Simplify.
15463
15464 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15465
15466 * top.c (struct qt_args): Remove.
15467 (kill_or_detach): Change return type to void, replace `void *`
15468 parameter with a proper one.
15469 (print_inferior_quit_action): Likewise.
15470 (quit_confirm): Use range-based for loop to iterate over inferiors.
15471 (quit_force): Likewise.
15472
15473 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15474
15475 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15476 `void *` parameter with proper parameters.
15477 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15478 (print_one_inferior): Change return type to void, replace `void *`
15479 parameter with proper parameters.
15480 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15481 inferiors.
15482 (get_other_inferior): Remove.
15483 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15484 inferiors.
15485
15486 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15487
15488 * mi/mi-interp.c (report_initial_inferior): Remove.
15489 (mi_interp::init): Use range-based for to iterate over inferiors.
15490
15491 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15492
15493 * python/py-inferior.c (build_inferior_list): Remove.
15494 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15495
15496 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15497
15498 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15499 (btrace_stitch_trace): Likewise.
15500 * charset.c (intermediate_encoding): Likewise (vaild).
15501 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15502 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15503 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15504
15505 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15506
15507 * windows-tdep.c (windows_get_tlb_type):
15508 Add rtl_user_process_parameters type.
15509
15510 2020-01-16 Pedro Alves <palves@redhat.com>
15511 Norbert Lange <nolange79@gmail.com>
15512
15513 PR build/24805
15514 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15515 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15516 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15517 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15518 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15519 (ps_plog): Redeclare exported functions with default visibility.
15520
15521 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15522
15523 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15524 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15525
15526 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15527
15528 * infcmd.c (post_create_inferior): Use get_thread_regcache
15529 instead of get_current_regcache.
15530
15531 2020-01-14 Tom Tromey <tom@tromey.com>
15532
15533 PR symtab/12535:
15534 * python/python.c (gdbpy_decode_line): Treat empty string the same
15535 as no argument.
15536
15537 2020-01-14 Tom Tromey <tom@tromey.com>
15538
15539 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15540
15541 2020-01-14 Tom Tromey <tom@tromey.com>
15542
15543 * nat/linux-btrace.c: Don't include <config.h>.
15544 * nat/linux-ptrace.c: Don't include <config.h>.
15545 * nat/x86-linux-dregs.c: Don't include <config.h>.
15546
15547 2020-01-14 Tom Tromey <tom@tromey.com>
15548
15549 * configure: Rebuild.
15550 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15551
15552 2020-01-14 Tom Tromey <tom@tromey.com>
15553
15554 * nat/x86-linux-dregs.c: Include configh.h.
15555 * nat/linux-ptrace.c: Include configh.h.
15556 * nat/linux-btrace.c: Include configh.h.
15557 * defs.h: Include config.h, bfd.h.
15558 * configure.ac: Don't source common.host.
15559 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15560 * configure: Rebuild.
15561 * acinclude.m4: Update path.
15562 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15563 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15564 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15565 (CLIBS): Add LIBSUPPORT.
15566 (CDEPS): Likewise.
15567 (COMMON_SFILES): Remove gdbsupport files.
15568 (HFILES_NO_SRCDIR): Likewise.
15569 (stamp-version): Update path to create-version.sh.
15570 (ALLDEPFILES): Remove gdbsupport files.
15571
15572 2020-01-14 Tom Tromey <tom@tromey.com>
15573
15574 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15575 USE_WIN32API when needed.
15576 * configure.ac (USE_WIN32API): Don't define.
15577 (WIN32LIBS): Use WIN32APILIBS.
15578 * configure: Rebuild.
15579
15580 2020-01-14 Tom Tromey <tom@tromey.com>
15581
15582 * configure: Rebuild.
15583 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15584
15585 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15586
15587 * skip.c (skip_function_command): Make skip w/o arguments use the
15588 name of the inlined function if pc is inside any inlined function.
15589
15590 2020-01-14 Luis Machado <luis.machado@linaro.org>
15591
15592 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15593 * infrun.c (resume_1): Likewise.
15594 (handle_inferior_event): Remove stale comment.
15595 * linux-nat.c (linux_nat_target::resume): Update comments.
15596 (save_stop_reason): Likewise.
15597 (linux_nat_filter_event): Likewise.
15598 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15599
15600 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15601
15602 * elfread.c (record_minimal_symbol): Set section index to 0 for
15603 non-allocatable sections.
15604
15605
15606 2020-01-13 Ali Tamur <tamur@google.com>
15607
15608 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15609 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15610 to gdb::optional. Update comments.
15611 (dwo_file): Update comments.
15612 (read_attribute): Update API to take an additional out parameter,
15613 need_reprocess. This is used to mark attributes that need other
15614 attributes (e.g. str_offsets_base) for correct computation which may not
15615 have been read yet.
15616 (read_attribute_reprocess): New function declaration.
15617 (read_addr_index): Likewise.
15618 (read_dwo_str_index): Likewise.
15619 (read_stub_str_index): Likewise.
15620 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15621 (lookup_addr_base): New function definition.
15622 (lookup_ranges_base): Likewise.
15623 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15624 lookup_ranges_base.
15625 (init_cutu_and_read_dies): Update comments.
15626 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15627 unit. This is used to inherit parent's str_offsets_base and addr_base.
15628 Update comments.
15629 (init_cutu_and_read_dies_simple): Reflect API changes.
15630 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15631 (create_cus_hash_table): Change API to take parent compile unit.
15632 Reflect API changes.
15633 (open_and_init_dwo_file): Reflect API changes.
15634 (dwarf2_get_pc_bounds): Update comments.
15635 (dwarf2_record_block_ranges): Likewise.
15636 (read_full_die_1): Change implementation to reprocess attributes that
15637 need str_offsets_base and addr_base.
15638 (partial_die_info::read): Likewise.
15639 (read_attribute_reprocess): New function definition.
15640 (read_attribute_value): Change API to take an additional out parameter,
15641 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15642 when a non-dwo compile unit has index based attributes.
15643 (read_attribute): Reflect API changes.
15644 (read_addr_index_1): Reflect API changes. Update comments.
15645 (dwarf2_read_addr_index_data): Reflect API changes.
15646 (dwarf2_read_addr_index): Likewise.
15647 (read_str_index): Change API and implementation. This becomes a helper
15648 to be used by the new string index related methods. Update error
15649 message and comments.
15650 (read_dwo_str_index): New function definition.
15651 (read_stub_str_index): Likewise.
15652 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15653 * symfile.h (dwarf2_debug_sections): Likewise.
15654 * xcoffread.c (dwarf2_debug_sections): Likewise.
15655
15656 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15657
15658 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15659 core_reg_sect type to gdb_byte *.
15660 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15661 * cris-tdep.c (fetch_core_registers): Likewise.
15662 * corelow.c (core_target::get_core_register_section): Change
15663 type of `contents` to gdb::byte_vector.
15664
15665 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15666
15667 * tui/tui-wingeneral.c (box_win): Position the title in the center
15668 of the border.
15669
15670 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15671
15672 * corelow.c (core_target::get_core_register_section): Use
15673 std::vector instead of alloca.
15674
15675 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15676
15677 * warning.m4: Add -Wmissing-declarations to build_warnings.
15678 * configure: Re-generate.
15679
15680 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15681
15682 * python/python.c (init__gdb_module): Add declaration.
15683
15684 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15685
15686 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15687 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15688 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15689 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15690 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15691 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15692 * ada-exp.y (_initialize_ada_exp): Add declaration.
15693 * ada-lang.c (_initialize_ada_language): Add declaration.
15694 * ada-tasks.c (_initialize_tasks): Add declaration.
15695 * agent.c (_initialize_agent): Add declaration.
15696 * aix-thread.c (_initialize_aix_thread): Add declaration.
15697 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15698 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15699 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15700 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15701 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15702 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15703 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15704 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15705 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15706 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15707 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15708 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15709 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15710 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15711 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15712 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15713 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15714 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15715 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15716 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15717 * annotate.c (_initialize_annotate): Add declaration.
15718 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15719 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15720 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15721 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15722 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15723 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15724 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15725 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15726 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15727 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15728 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15729 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15730 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15731 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15732 * auto-load.c (_initialize_auto_load): Add declaration.
15733 * auxv.c (_initialize_auxv): Add declaration.
15734 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15735 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15736 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15737 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15738 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15739 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15740 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15741 * breakpoint.c (_initialize_breakpoint): Add declaration.
15742 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15743 * btrace.c (_initialize_btrace): Add declaration.
15744 * charset.c (_initialize_charset): Add declaration.
15745 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15746 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15747 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15748 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15749 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15750 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15751 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15752 * coffread.c (_initialize_coffread): Add declaration.
15753 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15754 * compile/compile.c (_initialize_compile): Add declaration.
15755 * complaints.c (_initialize_complaints): Add declaration.
15756 * completer.c (_initialize_completer): Add declaration.
15757 * copying.c (_initialize_copying): Add declaration.
15758 * corefile.c (_initialize_core): Add declaration.
15759 * corelow.c (_initialize_corelow): Add declaration.
15760 * cp-abi.c (_initialize_cp_abi): Add declaration.
15761 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15762 * cp-support.c (_initialize_cp_support): Add declaration.
15763 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15764 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15765 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15766 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15767 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15768 * ctfread.c (_initialize_ctfread): Add declaration.
15769 * d-lang.c (_initialize_d_language): Add declaration.
15770 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15771 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15772 * dbxread.c (_initialize_dbxread): Add declaration.
15773 * dcache.c (_initialize_dcache): Add declaration.
15774 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15775 * disasm.c (_initialize_disasm): Add declaration.
15776 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15777 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15778 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15779 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15780 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15781 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15782 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15783 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15784 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15785 * elfread.c (_initialize_elfread): Add declaration.
15786 * exec.c (_initialize_exec): Add declaration.
15787 * extension.c (_initialize_extension): Add declaration.
15788 * f-lang.c (_initialize_f_language): Add declaration.
15789 * f-valprint.c (_initialize_f_valprint): Add declaration.
15790 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15791 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15792 * filesystem.c (_initialize_filesystem): Add declaration.
15793 * findcmd.c (_initialize_mem_search): Add declaration.
15794 * findvar.c (_initialize_findvar): Add declaration.
15795 * fork-child.c (_initialize_fork_child): Add declaration.
15796 * frame-base.c (_initialize_frame_base): Add declaration.
15797 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15798 * frame.c (_initialize_frame): Add declaration.
15799 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15800 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15801 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15802 * gcore.c (_initialize_gcore): Add declaration.
15803 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15804 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15805 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15806 * gdbarch.c (_initialize_gdbarch): Add declaration.
15807 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15808 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15809 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15810 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15811 * go-lang.c (_initialize_go_language): Add declaration.
15812 * go32-nat.c (_initialize_go32_nat): Add declaration.
15813 * guile/guile.c (_initialize_guile): Add declaration.
15814 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15815 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15816 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15817 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15818 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15819 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15820 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15821 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15822 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15823 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15824 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15825 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15826 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15827 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15828 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15829 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15830 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15831 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15832 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15833 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15834 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15835 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15836 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15837 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15838 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15839 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15840 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15841 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15842 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15843 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15844 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15845 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15846 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15847 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15848 * infcall.c (_initialize_infcall): Add declaration.
15849 * infcmd.c (_initialize_infcmd): Add declaration.
15850 * inflow.c (_initialize_inflow): Add declaration.
15851 * infrun.c (_initialize_infrun): Add declaration.
15852 * interps.c (_initialize_interpreter): Add declaration.
15853 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15854 * jit.c (_initialize_jit): Add declaration.
15855 * language.c (_initialize_language): Add declaration.
15856 * linux-fork.c (_initialize_linux_fork): Add declaration.
15857 * linux-nat.c (_initialize_linux_nat): Add declaration.
15858 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15859 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15860 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15861 * m2-lang.c (_initialize_m2_language): Add declaration.
15862 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15863 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15864 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15865 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15867 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15868 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15869 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15870 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15871 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15872 * machoread.c (_initialize_machoread): Add declaration.
15873 * macrocmd.c (_initialize_macrocmd): Add declaration.
15874 * macroscope.c (_initialize_macroscope): Add declaration.
15875 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15876 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15877 * maint.c (_initialize_maint_cmds): Add declaration.
15878 * mdebugread.c (_initialize_mdebugread): Add declaration.
15879 * memattr.c (_initialize_mem): Add declaration.
15880 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15881 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15882 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15883 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15884 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15885 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15886 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15887 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15888 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15889 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15890 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15891 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15892 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15893 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15894 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15895 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15896 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15897 * mipsread.c (_initialize_mipsread): Add declaration.
15898 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15899 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15900 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15901 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15902 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15903 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15904 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15905 * nto-procfs.c (_initialize_procfs): Add declaration.
15906 * objc-lang.c (_initialize_objc_language): Add declaration.
15907 * observable.c (_initialize_observer): Add declaration.
15908 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15909 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15910 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15911 * osabi.c (_initialize_gdb_osabi): Add declaration.
15912 * osdata.c (_initialize_osdata): Add declaration.
15913 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15914 * parse.c (_initialize_parse): Add declaration.
15915 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15916 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15917 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15918 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15919 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15920 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15921 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15922 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15923 * printcmd.c (_initialize_printcmd): Add declaration.
15924 * probe.c (_initialize_probe): Add declaration.
15925 * proc-api.c (_initialize_proc_api): Add declaration.
15926 * proc-events.c (_initialize_proc_events): Add declaration.
15927 * proc-service.c (_initialize_proc_service): Add declaration.
15928 * procfs.c (_initialize_procfs): Add declaration.
15929 * producer.c (_initialize_producer): Add declaration.
15930 * psymtab.c (_initialize_psymtab): Add declaration.
15931 * python/python.c (_initialize_python): Add declaration.
15932 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15933 * record-btrace.c (_initialize_record_btrace): Add declaration.
15934 * record-full.c (_initialize_record_full): Add declaration.
15935 * record.c (_initialize_record): Add declaration.
15936 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15937 * regcache.c (_initialize_regcache): Add declaration.
15938 * reggroups.c (_initialize_reggroup): Add declaration.
15939 * remote-notif.c (_initialize_notif): Add declaration.
15940 * remote-sim.c (_initialize_remote_sim): Add declaration.
15941 * remote.c (_initialize_remote): Add declaration.
15942 * reverse.c (_initialize_reverse): Add declaration.
15943 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15944 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15945 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15946 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15947 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15948 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15949 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15950 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15951 Add declaration.
15952 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15953 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15954 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15955 * rust-exp.y (_initialize_rust_exp): Add declaration.
15956 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15957 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15958 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15959 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15960 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15961 * score-tdep.c (_initialize_score_tdep): Add declaration.
15962 * ser-go32.c (_initialize_ser_dos): Add declaration.
15963 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15964 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15965 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15966 * ser-uds.c (_initialize_ser_socket): Add declaration.
15967 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15968 * serial.c (_initialize_serial): Add declaration.
15969 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15970 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15971 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15972 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15973 * skip.c (_initialize_step_skip): Add declaration.
15974 * sol-thread.c (_initialize_sol_thread): Add declaration.
15975 * solib-aix.c (_initialize_solib_aix): Add declaration.
15976 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15977 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15978 * solib-frv.c (_initialize_frv_solib): Add declaration.
15979 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15980 * solib-target.c (_initialize_solib_target): Add declaration.
15981 * solib.c (_initialize_solib): Add declaration.
15982 * source-cache.c (_initialize_source_cache): Add declaration.
15983 * source.c (_initialize_source): Add declaration.
15984 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15985 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15986 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15987 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15988 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15989 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15990 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15991 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15992 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15993 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15994 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15995 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15996 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15997 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15998 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15999 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16000 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16001 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16002 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16003 * stabsread.c (_initialize_stabsread): Add declaration.
16004 * stack.c (_initialize_stack): Add declaration.
16005 * stap-probe.c (_initialize_stap_probe): Add declaration.
16006 * std-regs.c (_initialize_frame_reg): Add declaration.
16007 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16008 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16009 * symfile.c (_initialize_symfile): Add declaration.
16010 * symmisc.c (_initialize_symmisc): Add declaration.
16011 * symtab.c (_initialize_symtab): Add declaration.
16012 * target.c (_initialize_target): Add declaration.
16013 * target-connection.c (_initialize_target_connection): Add
16014 declaration.
16015 * target-dcache.c (_initialize_target_dcache): Add declaration.
16016 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16017 * thread.c (_initialize_thread): Add declaration.
16018 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16019 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16020 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16021 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16022 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16023 * tracectf.c (_initialize_ctf): Add declaration.
16024 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16025 * tracefile.c (_initialize_tracefile): Add declaration.
16026 * tracepoint.c (_initialize_tracepoint): Add declaration.
16027 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16028 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16029 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16030 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16031 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16032 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16033 * tui/tui.c (_initialize_tui): Add declaration.
16034 * typeprint.c (_initialize_typeprint): Add declaration.
16035 * ui-style.c (_initialize_ui_style): Add declaration.
16036 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16037 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16038 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16039 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16040 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16041 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16042 * unittests/filtered_iterator-selftests.c
16043 (_initialize_filtered_iterator_selftests): Add declaration.
16044 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16045 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16046 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16047 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16048 * unittests/main-thread-selftests.c
16049 (_initialize_main_thread_selftests): Add declaration.
16050 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16051 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16052 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16053 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16054 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16055 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16056 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16057 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16058 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16059 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16060 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16061 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16062 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16063 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16064 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16065 declaration.
16066 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16067 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16068 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16069 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16070 * user-regs.c (_initialize_user_regs): Add declaration.
16071 * utils.c (_initialize_utils): Add declaration.
16072 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16073 * valops.c (_initialize_valops): Add declaration.
16074 * valprint.c (_initialize_valprint): Add declaration.
16075 * value.c (_initialize_values): Add declaration.
16076 * varobj.c (_initialize_varobj): Add declaration.
16077 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16078 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16079 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16080 * windows-nat.c (_initialize_windows_nat): Add declaration.
16081 (_initialize_check_for_gdb_ini): Add declaration.
16082 (_initialize_loadable): Add declaration.
16083 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16084 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16085 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16086 * xcoffread.c (_initialize_xcoffread): Add declaration.
16087 * xml-support.c (_initialize_xml_support): Add declaration.
16088 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16089 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16090 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16091 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16092
16093 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16094
16095 * regformats/regdat.sh: Generate declaration for init function.
16096
16097 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16098
16099 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16100 up.
16101 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16102 close_one_inferior>: New methods.
16103 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16104 pass down target to find_inferior_pid.
16105 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16106 Pass down target to find_inferior_ptid.
16107 (gdbsim_target::create_inferior): Pass down target to
16108 add_thread_silent.
16109 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16110 target down to find_inferior_ptid and switch_to_thread.
16111 (gdbsim_target::close): Update to call close_one_inferior.
16112 (struct resume_data): Remove.
16113 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16114 directly, rather than through a void pointer.
16115 (gdbsim_target::resume): Update to call resume_one_inferior.
16116
16117 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16118
16119 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16120
16121 2020-01-12 Pedro Alves <palves@redhat.com>
16122
16123 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16124 directly for the current inferior instead of
16125 discard_all_inferiors.
16126 (discard_all_inferiors): Delete.
16127
16128 2020-01-11 Tom Tromey <tom@tromey.com>
16129
16130 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16131 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16132 deprecated_safe_get_selected_frame.
16133
16134 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16135
16136 * inferior.c (print_inferior): Switch inferior before printing it.
16137
16138 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16139 Pedro Alves <palves@redhat.com>
16140
16141 * progspace-and-thread.c (switch_to_program_space_and_thread):
16142 Assert there's an inferior for PSPACE. Use
16143 switch_to_inferior_no_thread to switch the inferior too.
16144 * progspace.c (program_space::~program_space): Call
16145 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16146 (program_space::free_all_objfiles): Don't call clear_symtab_users
16147 here.
16148 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16149
16150 2020-01-10 Pedro Alves <palves@redhat.com>
16151
16152 * NEWS: Mention multi-target debugging, "info connections", and
16153 "add-inferior -no-connection".
16154
16155 2020-01-10 Pedro Alves <palves@redhat.com>
16156
16157 * infrun.c: Include "target-connection.h".
16158 (check_multi_target_resumption): New.
16159 (proceed): Call it.
16160 * target-connection.c (make_target_connection_string): Make
16161 extern.
16162 * target-connection.h (make_target_connection_string): Declare.
16163
16164 2020-01-10 Pedro Alves <palves@redhat.com>
16165
16166 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16167 * inferior.c (uiout_field_connection): New function.
16168 (print_inferior): Add new "connection-id" column.
16169 (add_inferior_command): Show connection number/string of added
16170 inferior.
16171 * process-stratum-target.h
16172 (process_stratum_target::connection_string): New virtual method.
16173 (process_stratum_target::connection_number): New field.
16174 * remote.c (remote_target::connection_string): New override.
16175 * target-connection.c: New file.
16176 * target-connection.h: New file.
16177 * target.c (decref_target): Remove process_stratum targets from
16178 the connection list.
16179 (target_stack::push): Add process_stratum targets to the
16180 connection list.
16181
16182 2020-01-10 Pedro Alves <palves@redhat.com>
16183
16184 Revert:
16185 2016-04-12 Pedro Alves <palves@redhat.com>
16186 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16187 Remove references to name.
16188 * serial.h (struct serial) <name>: Delete.
16189
16190 2020-01-10 Pedro Alves <palves@redhat.com>
16191
16192 * gdbarch-selftests.c (register_to_value_test): Remove "target
16193 already pushed" check.
16194
16195 2020-01-10 Pedro Alves <palves@redhat.com>
16196 John Baldwin <jhb@FreeBSD.org>
16197
16198 * aarch64-linux-nat.c
16199 (aarch64_linux_nat_target::thread_architecture): Adjust.
16200 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16201 (task_command_1): Likewise.
16202 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16203 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16204 (aix_thread_target::store_registers)
16205 (aix_thread_target::thread_alive): Adjust.
16206 * amd64-fbsd-tdep.c: Include "inferior.h".
16207 (amd64fbsd_get_thread_local_address): Pass down target.
16208 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16209 thread's gdbarch instead of target_gdbarch.
16210 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16211 get_last_target_status.
16212 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16213 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16214 inferiors.
16215 (update_inserted_breakpoint_locations): Skip if inferiors with no
16216 execution.
16217 (update_global_location_list): When handling moribund locations,
16218 find representative inferior for location's pspace, and use thread
16219 count of its process_stratum target.
16220 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16221 * bsd-uthread.c (bsd_uthread_target::wait): Use
16222 as_process_stratum_target and adjust thread_change_ptid and
16223 add_thread calls.
16224 (bsd_uthread_target::update_thread_list): Use
16225 as_process_stratum_target and adjust find_thread_ptid,
16226 thread_change_ptid and add_thread calls.
16227 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16228 find_thread_ptid call.
16229 * corelow.c (add_to_thread_list): Adjust add_thread call.
16230 (core_target_open): Adjust add_thread_silent and thread_count
16231 calls.
16232 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16233 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16234 * event-top.c (async_disconnect): Pop targets from all inferiors.
16235 * exec.c (add_target_sections): Push exec target on all inferiors
16236 sharing the program space.
16237 (remove_target_sections): Remove the exec target from all
16238 inferiors sharing the program space.
16239 (exec_on_vfork): New.
16240 * exec.h (exec_on_vfork): Declare.
16241 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16242 Pass it down.
16243 (fbsd_nat_target::update_thread_list): Adjust.
16244 (fbsd_nat_target::resume): Adjust.
16245 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16246 down.
16247 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16248 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16249 get_thread_arch_regcache call.
16250 * fork-child.c (gdb_startup_inferior): Pass target down to
16251 startup_inferior and set_executing.
16252 * gdbthread.h (struct process_stratum_target): Forward declare.
16253 (add_thread, add_thread_silent, add_thread_with_info)
16254 (in_thread_list): Add process_stratum_target parameter.
16255 (find_thread_ptid(inferior*, ptid_t)): New overload.
16256 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16257 parameter.
16258 (all_threads()): Delete overload.
16259 (all_threads, all_non_exited_threads): Add process_stratum_target
16260 parameter.
16261 (all_threads_safe): Use brace initialization.
16262 (thread_count): Add process_stratum_target parameter.
16263 (set_resumed, set_running, set_stop_requested, set_executing)
16264 (threads_are_executing, finish_thread_state): Add
16265 process_stratum_target parameter.
16266 (switch_to_thread): Use is_current_thread.
16267 * i386-fbsd-tdep.c: Include "inferior.h".
16268 (i386fbsd_get_thread_local_address): Pass down target.
16269 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16270 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16271 have_inferiors check.
16272 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16273 (inf_ptrace_target::attach): Adjust.
16274 * infcall.c (run_inferior_call): Adjust.
16275 * infcmd.c (run_command_1): Pass target to
16276 scoped_finish_thread_state.
16277 (proceed_thread_callback): Skip inferiors with no execution.
16278 (continue_command): Rename 'all_threads' local to avoid hiding
16279 'all_threads' function. Adjust get_last_target_status call.
16280 (prepare_one_step): Adjust set_running call.
16281 (signal_command): Use user_visible_resume_target. Compare thread
16282 pointers instead of inferior_ptid.
16283 (info_program_command): Adjust to pass down target.
16284 (attach_command): Mark target's 'thread_executing' flag.
16285 (stop_current_target_threads_ns): New, factored out from ...
16286 (interrupt_target_1): ... this. Switch inferior before making
16287 target calls.
16288 * inferior-iter.h
16289 (struct all_inferiors_iterator, struct all_inferiors_range)
16290 (struct all_inferiors_safe_range)
16291 (struct all_non_exited_inferiors_range): Filter on
16292 process_stratum_target too. Remove explicit.
16293 * inferior.c (inferior::inferior): Push dummy target on target
16294 stack.
16295 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16296 Add process_stratum_target parameter, and pass it down.
16297 (have_live_inferiors): Adjust.
16298 (switch_to_inferior_and_push_target): New.
16299 (add_inferior_command, clone_inferior_command): Handle
16300 "-no-connection" parameter. Use
16301 switch_to_inferior_and_push_target.
16302 (_initialize_inferior): Mention "-no-connection" option in
16303 the help of "add-inferior" and "clone-inferior" commands.
16304 * inferior.h: Include "process-stratum-target.h".
16305 (interrupt_target_1): Use bool.
16306 (struct inferior) <push_target, unpush_target, target_is_pushed,
16307 find_target_beneath, top_target, process_target, target_at,
16308 m_stack>: New.
16309 (discard_all_inferiors): Delete.
16310 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16311 (all_inferiors, all_non_exited_inferiors): Add
16312 process_stratum_target parameter.
16313 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16314 (target_last_proc_target): New global.
16315 (follow_fork_inferior): Push target on new inferior. Pass target
16316 to add_thread_silent. Call exec_on_vfork. Handle target's
16317 reference count.
16318 (follow_fork): Adjust get_last_target_status call. Also consider
16319 target.
16320 (follow_exec): Push target on new inferior.
16321 (struct execution_control_state) <target>: New field.
16322 (user_visible_resume_target): New.
16323 (do_target_resume): Call target_async.
16324 (resume_1): Set target's threads_executing flag. Consider resume
16325 target.
16326 (commit_resume_all_targets): New.
16327 (proceed): Also consider resume target. Skip threads of inferiors
16328 with no execution. Commit resumtion in all targets.
16329 (start_remote): Pass current inferior to wait_for_inferior.
16330 (infrun_thread_stop_requested): Consider target as well. Pass
16331 thread_info pointer to clear_inline_frame_state instead of ptid.
16332 (infrun_thread_thread_exit): Consider target as well.
16333 (random_pending_event_thread): New inferior parameter. Use it.
16334 (do_target_wait): Rename to ...
16335 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16336 down.
16337 (threads_are_resumed_pending_p, do_target_wait): New.
16338 (prepare_for_detach): Adjust calls.
16339 (wait_for_inferior): New inferior parameter. Handle it. Use
16340 do_target_wait_1 instead of do_target_wait.
16341 (fetch_inferior_event): Adjust. Switch to representative
16342 inferior. Pass target down.
16343 (set_last_target_status): Add process_stratum_target parameter.
16344 Save target in global.
16345 (get_last_target_status): Add process_stratum_target parameter and
16346 handle it.
16347 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16348 (context_switch): Check inferior_ptid == null_ptid before calling
16349 inferior_thread().
16350 (get_inferior_stop_soon): Pass down target.
16351 (wait_one): Rename to ...
16352 (poll_one_curr_target): ... this.
16353 (struct wait_one_event): New.
16354 (wait_one): New.
16355 (stop_all_threads): Adjust.
16356 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16357 event's target.
16358 (switch_back_to_stepped_thread): Also consider target.
16359 (print_stop_event): Update.
16360 (normal_stop): Update. Also consider the resume target.
16361 * infrun.h (wait_for_inferior): Remove declaration.
16362 (user_visible_resume_target): New declaration.
16363 (get_last_target_status, set_last_target_status): New
16364 process_stratum_target parameter.
16365 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16366 process_stratum_target parameter, and use it.
16367 (clear_inline_frame_state (thread_info*)): New.
16368 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16369 process_stratum_target parameter.
16370 (clear_inline_frame_state (thread_info*)): Declare.
16371 * linux-fork.c (delete_checkpoint_command): Pass target down to
16372 find_thread_ptid.
16373 (checkpoint_command): Adjust.
16374 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16375 instead of just tweaking inferior_ptid.
16376 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16377 (exit_lwp): Pass target down to find_thread_ptid.
16378 (attach_proc_task_lwp_callback): Pass target down to
16379 add_thread/set_running/set_executing.
16380 (linux_nat_target::attach): Pass target down to
16381 thread_change_ptid.
16382 (get_detach_signal): Pass target down to find_thread_ptid.
16383 Consider last target status's target.
16384 (linux_resume_one_lwp_throw, resume_lwp)
16385 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16386 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16387 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16388 (linux_nat_target::async_wait_fd): New.
16389 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16390 target down.
16391 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16392 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16393 * linux-thread-db.c (struct thread_db_info::process_target): New
16394 field.
16395 (add_thread_db_info): Save target.
16396 (get_thread_db_info): New process_stratum_target parameter. Also
16397 match target.
16398 (delete_thread_db_info): New process_stratum_target parameter.
16399 Also match target.
16400 (thread_from_lwp): Adjust to pass down target.
16401 (thread_db_notice_clone): Pass down target.
16402 (check_thread_db_callback): Pass down target.
16403 (try_thread_db_load_1): Always push the thread_db target.
16404 (try_thread_db_load, record_thread): Pass target down.
16405 (thread_db_target::detach): Pass target down. Always unpush the
16406 thread_db target.
16407 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16408 target down. Always unpush the thread_db target.
16409 (find_new_threads_callback, thread_db_find_new_threads_2)
16410 (thread_db_target::update_thread_list): Pass target down.
16411 (thread_db_target::pid_to_str): Pass current inferior down.
16412 (thread_db_target::get_thread_local_address): Pass target down.
16413 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16414 target down.
16415 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16416 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16417 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16418 (procfs_init_inferior): Rename to ...
16419 (procfs_target::procfs_init_inferior): ... this and adjust.
16420 (procfs_target::create_inferior, procfs_notice_thread)
16421 (procfs_do_thread_registers): Adjust.
16422 * ppc-fbsd-tdep.c: Include "inferior.h".
16423 (ppcfbsd_get_thread_local_address): Pass down target.
16424 * proc-service.c (ps_xfer_memory): Switch current inferior and
16425 program space as well.
16426 (get_ps_regcache): Pass target down.
16427 * process-stratum-target.c
16428 (process_stratum_target::thread_address_space)
16429 (process_stratum_target::thread_architecture): Pass target down.
16430 * process-stratum-target.h
16431 (process_stratum_target::threads_executing): New field.
16432 (as_process_stratum_target): New.
16433 * ravenscar-thread.c
16434 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16435 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16436 down.
16437 * record-btrace.c (record_btrace_target::info_record): Adjust.
16438 (record_btrace_target::record_method)
16439 (record_btrace_target::record_is_replaying)
16440 (record_btrace_target::fetch_registers)
16441 (get_thread_current_frame_id, record_btrace_target::resume)
16442 (record_btrace_target::wait, record_btrace_target::stop): Pass
16443 target down.
16444 * record-full.c (record_full_wait_1): Switch to event thread.
16445 Pass target down.
16446 * regcache.c (regcache::regcache)
16447 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16448 process_stratum_target parameter and handle it.
16449 (current_thread_target): New global.
16450 (get_thread_regcache): Add process_stratum_target parameter and
16451 handle it. Switch inferior before calling target method.
16452 (get_thread_regcache): Pass target down.
16453 (get_thread_regcache_for_ptid): Pass target down.
16454 (registers_changed_ptid): Add process_stratum_target parameter and
16455 handle it.
16456 (registers_changed_thread, registers_changed): Pass target down.
16457 (test_get_thread_arch_aspace_regcache): New.
16458 (current_regcache_test): Define a couple local test_target_ops
16459 instances and use them for testing.
16460 (readwrite_regcache): Pass process_stratum_target parameter.
16461 (cooked_read_test, cooked_write_test): Pass mock_target down.
16462 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16463 (get_thread_arch_aspace_regcache): Add process_stratum_target
16464 parameter.
16465 (regcache::target): New method.
16466 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16467 (regcache::registers_changed_ptid): Add process_stratum_target
16468 parameter.
16469 (regcache::m_target): New field.
16470 (registers_changed_ptid): Add process_stratum_target parameter.
16471 * remote.c (remote_state::supports_vCont_probed): New field.
16472 (remote_target::async_wait_fd): New method.
16473 (remote_unpush_and_throw): Add remote_target parameter.
16474 (get_current_remote_target): Adjust.
16475 (remote_target::remote_add_inferior): Push target.
16476 (remote_target::remote_add_thread)
16477 (remote_target::remote_notice_new_inferior)
16478 (get_remote_thread_info): Pass target down.
16479 (remote_target::update_thread_list): Skip threads of inferiors
16480 bound to other targets. (remote_target::close): Don't discard
16481 inferiors. (remote_target::add_current_inferior_and_thread)
16482 (remote_target::process_initial_stop_replies)
16483 (remote_target::start_remote)
16484 (remote_target::remote_serial_quit_handler): Pass down target.
16485 (remote_target::remote_unpush_target): New remote_target
16486 parameter. Unpush the target from all inferiors.
16487 (remote_target::remote_unpush_and_throw): New remote_target
16488 parameter. Pass it down.
16489 (remote_target::open_1): Check whether the current inferior has
16490 execution instead of checking whether any inferior is live. Pass
16491 target down.
16492 (remote_target::remote_detach_1): Pass down target. Use
16493 remote_unpush_target.
16494 (extended_remote_target::attach): Pass down target.
16495 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16496 (remote_target::append_resumption): Pass down target.
16497 (remote_target::append_pending_thread_resumptions)
16498 (remote_target::remote_resume_with_hc, remote_target::resume)
16499 (remote_target::commit_resume): Pass down target.
16500 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16501 (remote_target::interrupt_query)
16502 (remote_target::remove_new_fork_children)
16503 (remote_target::check_pending_events_prevent_wildcard_vcont)
16504 (remote_target::remote_parse_stop_reply)
16505 (remote_target::process_stop_reply): Pass down target.
16506 (first_remote_resumed_thread): New remote_target parameter. Pass
16507 it down.
16508 (remote_target::wait_as): Pass down target.
16509 (unpush_and_perror): New remote_target parameter. Pass it down.
16510 (remote_target::readchar, remote_target::remote_serial_write)
16511 (remote_target::getpkt_or_notif_sane_1)
16512 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16513 down target.
16514 (remote_target::mourn_inferior): Pass down target. Use
16515 remote_unpush_target.
16516 (remote_target::core_of_thread)
16517 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16518 (remote_target::pid_to_exec_file)
16519 (remote_target::thread_handle_to_thread_info): Pass down target.
16520 (remote_target::async_wait_fd): New.
16521 * riscv-fbsd-tdep.c: Include "inferior.h".
16522 (riscv_fbsd_get_thread_local_address): Pass down target.
16523 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16524 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16525 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16526 Adjust.
16527 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16528 * solib-svr4.c (enable_break): Pass down target.
16529 * spu-multiarch.c (parse_spufs_run): Pass down target.
16530 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16531 * target-delegates.c: Regenerate.
16532 * target.c (g_target_stack): Delete.
16533 (current_top_target): Return the current inferior's top target.
16534 (target_has_execution_1): Refer to the passed-in inferior's top
16535 target.
16536 (target_supports_terminal_ours): Check whether the initial
16537 inferior was already created.
16538 (decref_target): New.
16539 (target_stack::push): Incref/decref the target.
16540 (push_target, push_target, unpush_target): Adjust.
16541 (target_stack::unpush): Defref target.
16542 (target_is_pushed): Return bool. Adjust to refer to the current
16543 inferior's target stack.
16544 (dispose_inferior): Delete, and inline parts ...
16545 (target_preopen): ... here. Only dispose of the current inferior.
16546 (target_detach): Hold strong target reference while detaching.
16547 Pass target down.
16548 (target_thread_name): Add assertion.
16549 (target_resume): Pass down target.
16550 (target_ops::beneath, find_target_at): Adjust to refer to the
16551 current inferior's target stack.
16552 (get_dummy_target): New.
16553 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16554 has a thread running.
16555 (initialize_targets): Rename to ...
16556 (_initialize_target): ... this.
16557 * target.h: Include "gdbsupport/refcounted-object.h".
16558 (struct target_ops): Inherit refcounted_object.
16559 (target_ops::shortname, target_ops::longname): Make const.
16560 (target_ops::async_wait_fd): New method.
16561 (decref_target): Declare.
16562 (struct target_ops_ref_policy): New.
16563 (target_ops_ref): New typedef.
16564 (get_dummy_target): Declare function.
16565 (target_is_pushed): Return bool.
16566 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16567 (all_matching_threads_iterator::all_matching_threads_iterator):
16568 Handle filter target.
16569 * thread-iter.h (struct all_matching_threads_iterator, struct
16570 all_matching_threads_range, class all_non_exited_threads_range):
16571 Filter by target too. Remove explicit.
16572 * thread.c (threads_executing): Delete.
16573 (inferior_thread): Pass down current inferior.
16574 (clear_thread_inferior_resources): Pass down thread pointer
16575 instead of ptid_t.
16576 (add_thread_silent, add_thread_with_info, add_thread): Add
16577 process_stratum_target parameter. Use it for thread and inferior
16578 searches.
16579 (is_current_thread): New.
16580 (thread_info::deletable): Use it.
16581 (find_thread_ptid, thread_count, in_thread_list)
16582 (thread_change_ptid, set_resumed, set_running): New
16583 process_stratum_target parameter. Pass it down.
16584 (set_executing): New process_stratum_target parameter. Pass it
16585 down. Adjust reference to 'threads_executing'.
16586 (threads_are_executing): New process_stratum_target parameter.
16587 Adjust reference to 'threads_executing'.
16588 (set_stop_requested, finish_thread_state): New
16589 process_stratum_target parameter. Pass it down.
16590 (switch_to_thread): Also match inferior.
16591 (switch_to_thread): New process_stratum_target parameter. Pass it
16592 down.
16593 (update_threads_executing): Reimplement.
16594 * top.c (quit_force): Pop targets from all inferior.
16595 (gdb_init): Don't call initialize_targets.
16596 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16597 Declare.
16598 (windows_add_thread, windows_delete_thread): Adjust.
16599 (get_windows_debug_event): Rename to ...
16600 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16601 * tracefile-tfile.c (tfile_target_open): Pass down target.
16602 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16603 Forward declare.
16604 (switch_to_thread): Add process_stratum_target parameter.
16605 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16606 parameter. Use it.
16607 (mi_on_resume): Pass target down.
16608 * nat/fork-inferior.c (startup_inferior): Add
16609 process_stratum_target parameter. Pass it down.
16610 * nat/fork-inferior.h (startup_inferior): Add
16611 process_stratum_target parameter.
16612 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16613
16614 2020-01-10 Pedro Alves <palves@redhat.com>
16615
16616 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16617 directly. Instead find the first thread in the thread list and
16618 use switch_to_thread.
16619
16620 2020-01-10 Pedro Alves <palves@redhat.com>
16621
16622 * remote.c (remote_target::remote_add_inferior): Don't bind a
16623 process to the current inferior if the current inferior is already
16624 bound to a process.
16625
16626 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16627 Pedro Alves <palves@redhat.com>
16628
16629 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16630 If no process is specified, return null_ptid instead of
16631 inferior_ptid.
16632 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16633 TARGET_WAITKIND_SIGNALLED with no pid.
16634
16635 2020-01-10 Pedro Alves <palves@redhat.com>
16636
16637 * remote.c (first_remote_resumed_thread): New.
16638 (remote_target::wait_as): Use it as default event_ptid instead of
16639 inferior_ptid.
16640
16641 2020-01-10 Pedro Alves <palves@redhat.com>
16642
16643 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16644
16645 2020-01-10 Pedro Alves <palves@redhat.com>
16646
16647 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16648 not -1.
16649
16650 2020-01-10 Pedro Alves <palves@redhat.com>
16651
16652 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16653 ptid to get_last_target_status.
16654 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16655 ptid to get_last_target_status.
16656 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16657 get_last_target_status.
16658 (info_program_command): Don't pass a target_waitstatus to
16659 get_last_target_status.
16660 * infrun.c (init_wait_for_inferior): Use
16661 nullify_last_target_wait_ptid.
16662 (get_last_target_status): Handle nullptr arguments.
16663 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16664 (print_stop_event): Don't pass a ptid to get_last_target_status.
16665 (normal_stop): Don't pass a ptid to get_last_target_status.
16666 * infrun.h (get_last_target_status, set_last_target_status): Move
16667 comments here and update.
16668 (nullify_last_target_wait_ptid): Declare.
16669 * linux-fork.c (fork_load_infrun_state): Remove local extern
16670 declaration of nullify_last_target_wait_ptid.
16671 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16672 to get_last_target_status.
16673
16674 2020-01-10 Pedro Alves <palves@redhat.com>
16675
16676 * gdbthread.h (scoped_restore_current_thread)
16677 <dont_restore, restore, m_dont_restore>: Declare.
16678 * thread.c (thread_alive): Add assertion. Return bool.
16679 (switch_to_thread_if_alive): New.
16680 (prune_threads): Switch inferior/thread.
16681 (print_thread_info_1): Switch thread before calling target methods.
16682 (scoped_restore_current_thread::restore): New, factored out from
16683 ...
16684 (scoped_restore_current_thread::~scoped_restore_current_thread):
16685 ... this.
16686 (scoped_restore_current_thread::scoped_restore_current_thread):
16687 Add assertion.
16688 (thread_apply_all_command, thread_select): Use
16689 switch_to_thread_if_alive.
16690 * infrun.c (proceed, restart_threads, handle_signal_stop)
16691 (switch_back_to_stepped_thread): Switch current thread before
16692 calling target methods.
16693
16694 2020-01-10 Pedro Alves <palves@redhat.com>
16695
16696 * inferior.c (switch_to_inferior_no_thread): New function,
16697 factored out from ...
16698 (inferior_command): ... here.
16699 * inferior.h (switch_to_inferior_no_thread): Declare.
16700 * mi/mi-main.c (run_one_inferior): Use
16701 switch_to_inferior_no_thread.
16702
16703 2020-01-10 Pedro Alves <palves@redhat.com>
16704
16705 * infcmd.c (kill_command): Remove dead code.
16706
16707 2020-01-10 Pedro Alves <palves@redhat.com>
16708
16709 * remote.c (remote_target::mourn_inferior): No longer check
16710 whether the target is running.
16711
16712 2020-01-10 Pedro Alves <palves@redhat.com>
16713
16714 * corelow.c (core_target::has_execution): Change parameter type to
16715 inferior pointer.
16716 * inferior.c (number_of_live_inferiors): Use
16717 inferior::has_execution instead of target_has_execution_1.
16718 * inferior.h (inferior::has_execution): New.
16719 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16720 inferior::has_execution instead of target_has_execution_1.
16721 * process-stratum-target.c
16722 (process_stratum_target::has_execution): Change parameter type to
16723 inferior pointer. Check the inferior's PID instead of
16724 inferior_ptid.
16725 * process-stratum-target.h
16726 (process_stratum_target::has_execution): Change parameter type to
16727 inferior pointer.
16728 * record-full.c (record_full_core_target::has_execution): Change
16729 parameter type to inferior pointer.
16730 * target.c (target_has_execution_1): Change parameter type to
16731 inferior pointer.
16732 (target_has_execution_current): Adjust.
16733 * target.h (target_ops::has_execution): Change parameter type to
16734 inferior pointer.
16735 (target_has_execution_1): Change parameter type to inferior
16736 pointer. Change return type to bool.
16737 * tracefile.h (tracefile_target::has_execution): Change parameter
16738 type to inferior pointer.
16739
16740 2020-01-10 Pedro Alves <palves@redhat.com>
16741
16742 * exceptions.c (print_flush): Remove current_top_target() check.
16743
16744 2020-01-10 Pedro Alves <palves@redhat.com>
16745
16746 * remote.c (show_remote_exec_file): Show the current inferior's
16747 exec-file instead of the command variable's value.
16748
16749 2020-01-10 Pedro Alves <palves@redhat.com>
16750
16751 * record-full.c (record_full_resume_ptid): New global.
16752 (record_full_target::resume): Set it.
16753 (record_full_wait_1): Use record_full_resume_ptid instead of
16754 inferior_ptid.
16755
16756 2020-01-10 Pedro Alves <palves@redhat.com>
16757
16758 * gdbthread.h (scoped_restore_current_thread)
16759 <dont_restore, restore, m_dont_restore>: Declare.
16760 * thread.c (thread_alive): Add assertion. Return bool.
16761 (switch_to_thread_if_alive): New.
16762 (prune_threads): Switch inferior/thread.
16763 (print_thread_info_1): Switch thread before calling target methods.
16764 (scoped_restore_current_thread::restore): New, factored out from
16765 ...
16766 (scoped_restore_current_thread::~scoped_restore_current_thread):
16767 ... this.
16768 (scoped_restore_current_thread::scoped_restore_current_thread):
16769 Add assertion.
16770 (thread_apply_all_command, thread_select): Use
16771 switch_to_thread_if_alive.
16772
16773 2020-01-10 George Barrett <bob@bob131.so>
16774
16775 * stap-probe.c (stap_modify_semaphore): Don't check for null
16776 semaphores.
16777 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16778 for null semaphores.
16779
16780 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16781
16782 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16783 all source windows, and maintain horizontal scroll status while
16784 doing so.
16785
16786 2020-01-09 Tom Tromey <tom@tromey.com>
16787
16788 PR tui/18932:
16789 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16790 update_source_window, not print_source_lines.
16791
16792 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16793
16794 * tui/tui.c (tui_enable): Register tui hooks after calling
16795 tui_display_main.
16796
16797 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16798
16799 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16800
16801 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16802
16803 * thread.c (print_thread_info_1): Fix indentation.
16804
16805 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16806
16807 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16808 unique_xmalloc_ptr outside the if to always free the demangled name.
16809
16810 2020-01-08 Tom Tromey <tromey@adacore.com>
16811
16812 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16813 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16814 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16815 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16816 Remove.
16817 (section_offsets): New typedef.
16818 * symtab.c (fixup_section, get_msymbol_address): Update.
16819 * symmisc.c (dump_msymbols): Update.
16820 * symfile.h (relative_addr_info_to_section_offsets)
16821 (symfile_map_offsets_to_segments): Update.
16822 * symfile.c (build_section_addr_info_from_objfile)
16823 (init_objfile_sect_indices): Update.
16824 (struct place_section_arg): Change type of "offsets".
16825 (place_section): Update.
16826 (relative_addr_info_to_section_offsets): Change type of
16827 "section_offsets". Remove "num_sections" parameter.
16828 (default_symfile_offsets, syms_from_objfile_1)
16829 (set_objfile_default_section_offset): Update.
16830 (reread_symbols): No need to preserve section offsets by hand.
16831 (symfile_map_offsets_to_segments): Change type of "offsets".
16832 * stap-probe.c (relocate_address): Update.
16833 * stabsread.h (process_one_symbol): Update.
16834 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16835 (solib_target_relocate_section_addresses): Update.
16836 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16837 Update.
16838 * solib-frv.c (frv_relocate_main_executable): Update.
16839 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16840 * solib-aix.c (solib_aix_get_section_offsets): Change return
16841 type.
16842 (solib_aix_solib_create_inferior_hook): Update.
16843 * remote.c (remote_target::get_offsets): Update.
16844 * psymtab.c (find_pc_sect_psymtab): Update.
16845 * psympriv.h (struct partial_symbol) <address, text_low,
16846 text_high>: Update.
16847 * objfiles.h (obj_section_offset): Update.
16848 (struct objfile) <section_offsets>: Change type.
16849 <num_sections>: Remove.
16850 (objfile_relocate): Update.
16851 * objfiles.c (entry_point_address_query): Update
16852 (relocate_one_symbol): Change type of "section_offsets".
16853 (objfile_relocate1, objfile_relocate1): Change type of
16854 "new_offsets".
16855 (objfile_rebase1): Update.
16856 * mipsread.c (mipscoff_symfile_read): Update.
16857 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16858 parameter.
16859 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16860 (parse_external, psymtab_to_symtab_1): Update.
16861 * machoread.c (macho_symfile_offsets): Update.
16862 * ia64-tdep.c (ia64_find_unwind_table): Update.
16863 * hppa-tdep.c (read_unwind_info): Update.
16864 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16865 * dwarf2read.c (create_addrmap_from_index)
16866 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16867 (process_psymtab_comp_unit_reader, add_partial_symbol)
16868 (add_partial_subprogram, process_full_comp_unit)
16869 (read_file_scope, read_func_scope, read_lexical_block_scope)
16870 (read_call_site_scope, dwarf2_rnglists_process)
16871 (dwarf2_ranges_process, dwarf2_ranges_read)
16872 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16873 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16874 Update.
16875 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16876 Update.
16877 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16878 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16879 (process_one_symbol): Change type of "section_offsets".
16880 * ctfread.c (get_objfile_text_range): Update.
16881 * coffread.c (coff_symtab_read, enter_linenos)
16882 (process_coff_symbol): Update.
16883 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16884 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16885
16886 2020-01-08 Tom Tromey <tromey@adacore.com>
16887
16888 * dwarf2read.c (parse_macro_definition): Use std::string.
16889 (parse_macro_definition): Likewise.
16890
16891 2020-01-08 Tom Tromey <tromey@adacore.com>
16892
16893 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16894 (ATTR_ALLOC_CHUNK): Remove.
16895
16896 2020-01-08 Tom Tromey <tromey@adacore.com>
16897
16898 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16899
16900 2020-01-08 Tom Tromey <tromey@adacore.com>
16901
16902 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16903 (dwarf2_compute_name, open_dwo_file): Likewise.
16904 (process_enumeration_scope): Use std::vector.
16905 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16906 (partial_die_info::fixup, dwarf2_start_subfile)
16907 (guess_full_die_structure_name, dwarf2_name): Likewise.
16908 (determine_prefix): Update.
16909 (guess_full_die_structure_name): Make return type const.
16910 (partial_die_full_name): Return unique_xmalloc_ptr.
16911 (DW_FIELD_ALLOC_CHUNK): Remove.
16912
16913 2020-01-07 Tom Tromey <tromey@adacore.com>
16914
16915 PR build/24937:
16916 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16917
16918 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16919
16920 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16921
16922 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16923
16924 * stack.c (print_frame_info): Move disassemble_next_line code
16925 inside source_print block.
16926
16927 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16928
16929 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16930 gdb/signals.h, as we are now using native signal symbols.
16931
16932 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16933
16934 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16935 overflow by an early check of content vs threshold.
16936 * tui/tui-source.c (tui_source_window::line_is_displayed):
16937 Likewise.
16938
16939 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16940
16941 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16942
16943 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16944
16945 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16946 export table if no section contains it's RVA.
16947
16948 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16949
16950 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16951
16952 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16953
16954 * source.c (print_source_lines_base): Set last_line_listed.
16955
16956 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16957
16958 * tui/tui-disasm.c: Remove trailing spaces.
16959
16960 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16961 Pedro Alves <palves@redhat.com>
16962
16963 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16964 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16965 (windows_gdb_signal_to_target): New function, uses the above
16966 enumeration to convert GDB internal signal codes to equivalent
16967 Windows codes.
16968 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16969 * windows-nat.c: Include "gdb_wait.h".
16970 (get_windows_debug_event): Extract the fatal exception from the
16971 exit status and convert to the equivalent Posix signal number.
16972 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16973 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16974 * gdbsupport/gdb_wait.c: New file, implements
16975 windows_status_to_termsig.
16976 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16977 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16978
16979 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16980
16981 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16982 show_layout.
16983
16984 2020-01-05 Luis Machado <luis.machado@linaro.org>
16985
16986 * aarch64-linux-nat.c
16987 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16988 and bfd_mach_aarch64.
16989
16990 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16991
16992 * ui-file.c (stdio_file::can_emit_style_escape)
16993 (tee_file::can_emit_style_escape): Ensure style is used also on
16994 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16995 to gdb_stdout.
16996 * main.c (set_gdb_data_directory): Use file style to output the
16997 warning that the given pathname is not a directory.
16998 * top.c (show_history_filename, gdb_safe_append_history)
16999 (show_gdb_datadir): Use file style.
17000
17001 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17002
17003 * solib-target.c (struct lm_info_target):
17004 Change offsets to be a unique_xmalloc_ptr.
17005 (solib_target_relocate_section_addresses): Update.
17006
17007 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17008
17009 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17010
17011 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17012
17013 * MAINTAINERS (Write After Approval): Add myself.
17014
17015 2020-01-02 Luis Machado <luis.machado@linaro.org>
17016
17017 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17018 Cell BE architecture.
17019 * target.h (struct target_ops) <thread_architecture>: Likewise.
17020
17021 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17022
17023 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17024
17025 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17026
17027 * MAINTAINERS (Write After Approval): Add myself.
17028
17029 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17030
17031 * gdbarch.sh: Update copyright year range of generated files.
17032
17033 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17034
17035 Update copyright year range in all GDB files.
17036
17037 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17038
17039 * copyright.py: Convert to Python 3.
17040
17041 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17042
17043 * copyright.py: Adapt after move of gnulib directory from gdb
17044 directory to toplevel directory.
17045
17046 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17047
17048 * copyright.py (main): Exit if run from the wrong directory.
17049
17050 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17051
17052 * top.c (print_gdb_version): Change copyright year to 2020.
17053
17054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17055
17056 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17057
17058 For older changes see ChangeLog-2019.
17059 \f
17060 Local Variables:
17061 mode: change-log
17062 left-margin: 8
17063 fill-column: 74
17064 version-control: never
17065 coding: utf-8
17066 End:
This page took 0.39763 seconds and 5 git commands to generate.