gmp-utils: New API to simply use of GMP's integer/rational/float objects
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b34c74ab
JB
12020-11-15 Joel Brobecker <brobecker@adacore.com>
2
3 * gmp-utils.h, gmp-utils.h: New file.
4 * unittests/gmp-utils-selftests.c: New file.
5 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6 unittests/gmp-utils-selftests.c.
7 (COMMON_SFILES) Add gmp-utils.c.
8 (HFILES_NO_SRCDIR): Add gmp-utils.h.
9
1b4ac058
JB
102020-11-15 Joel Brobecker <brobecker@adacore.com>
11
12 * configure.ac: Generate an error if a usable GMP library
13 could not be found.
14 * configure: Regenerate.
15
2c947d9b
JB
162020-11-15 Joel Brobecker <brobecker@adacore.com>
17
18 * configure.ac: Add support for --with-libgmp-prefix.
19 * Makefile.in (LIBGMP): New variable.
20 (CLIBS): Include $(LIBGMP).
21 * configure, config.in: Regenerate
22
9dd02fc0
AB
232020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
24
25 PR cli/26879
26 * f-exp.y (COMPLETE): New token.
27 (exp): Two new rules for tab-completion.
28 (saw_name_at_eof): New static global.
29 (last_was_structop): Likewise.
30 (yylex): Set new variables, and return COMPLETE token at the end
31 of the input stream in some cases.
32
758cb810
TT
332020-11-14 Tom Tromey <tom@tromey.com>
34
35 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
36
749065b7
TT
372020-11-14 Tom Tromey <tom@tromey.com>
38
39 * opencl-lang.c (opencl_component_ref): Make "comps" const.
40
2c5b1849
SM
412020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
44
e8b2f0d9
TT
452020-11-13 Tom Tromey <tom@tromey.com>
46
47 * c-lang.c (convert_ucn, convert_octal, convert_hex)
48 (convert_escape, parse_one_string): Constify.
49
25f4c262
KS
502020-11-13 Keith Seitz <keiths@redhat.com>
51
52 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
53 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
54 outside of ELF segments" warning for debugin
55
9d3ab915
KS
562020-11-13 Keith Seitz <keiths@redhat.com>
57
58 PR gdb/23034
59 * elfread.c (elf_symfile_segments): Output a BFD file name
60 for the "Loadable section ... outside of ELF segments" warning.
61
9ecab40c
SM
622020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
63
64 PR gdb/26835
65 * arm-tdep.c (class arm_instruction_reader): New.
66 (target_arm_instruction_reader): New.
67 (arm_analyze_prologue): Add instruction reader parameter and use
68 it. Use arm_expand_immediate.
69 (class target_arm_instruction_reader): Adjust.
70 (arm_skip_prologue): Adjust.
71 (arm_expand_immediate): New.
72 (arm_scan_prologue): Adjust.
73 (arm_analyze_prologue_test): New.
74 (class test_arm_instruction_reader): New.
75
5a7cf527
AB
762020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * f-lang.c (fortran_argument_convert): Add declaration. Add
79 header comment, taken from f-lang.h. Make static.
80 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
81 (fortran_argument_convert): Delete declaration.
82
7bea47f0
AB
832020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * ada-exp.y (find_primitive_type): Make parameter const.
86 * ada-lang.c (enum ada_primitive_types): Delete.
87 (ada_language::language_arch_info): Update.
88 * c-lang.c (enum c_primitive_types): Delete.
89 (c_language_arch_info): Update.
90 (enum cplus_primitive_types): Delete.
91 (cplus_language::language_arch_info): Update.
92 * d-lang.c (enum d_primitive_types): Delete.
93 (d_language::language_arch_info): Update.
94 * f-lang.c (enum f_primitive_types): Delete.
95 (f_language::language_arch_info): Update.
96 * go-lang.c (enum go_primitive_types): Delete.
97 (go_language::language_arch_info): Update.
98 * language.c (auto_or_unknown_language::language_arch_info):
99 Update.
100 (language_gdbarch_post_init): Use obstack_new, use array indexing.
101 (language_string_char_type): Add header comment, call function in
102 language_arch_info.
103 (language_bool_type): Likewise
104 (language_arch_info::bool_type): Define.
105 (language_lookup_primitive_type_1): Delete.
106 (language_lookup_primitive_type): Rewrite as a templated function
107 to call function in language_arch_info, then instantiate twice.
108 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
109 (language_arch_info::lookup_primitive_type_and_symbol): Define.
110 (language_arch_info::lookup_primitive_type): Define twice with
111 different signatures.
112 (language_arch_info::lookup_primitive_type_as_symbol): Define.
113 (language_lookup_primitive_type_as_symbol): Rewrite to call a
114 member function in language_arch_info.
115 * language.h (language_arch_info): Complete rewrite.
116 (language_lookup_primitive_type): Make templated.
117 * m2-lang.c (enum m2_primitive_types): Delete.
118 (m2_language::language_arch_info): Update.
119 * opencl-lang.c (OCL_P_TYPE): Delete.
120 (enum opencl_primitive_types): Delete.
121 (opencl_type_data): Delete.
122 (builtin_opencl_type): Delete.
123 (lookup_opencl_vector_type): Update.
124 (opencl_language::language_arch_info): Update, lots of content
125 moved from...
126 (build_opencl_types): ...here. This function is now deleted.
127 (_initialize_opencl_language): Delete.
128 * p-lang.c (enum pascal_primitive_types): Delete.
129 (pascal_language::language_arch_info): Update.
130 * rust-lang.c (enum rust_primitive_types): Delete.
131 (rust_language::language_arch_info): Update.
132
bf6e5d01
SM
1332020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
136 dwarf2_queue_guard.
137
1350c3b4
SM
1382020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
141 comment.
142
6f738b01
SM
1432020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * dwarf2/read.c (dwarf_read_debug_printf,
146 dwarf_read_debug_printf_v): New macros, use throughout the file.
147
10c19fad
SV
1482020-11-12 Shahab Vahedi <shahab@synopsys.com>
149
150 * arc-linux-tdep.c (collect_register): Populate "eret" by
151 "pc" value from the regcache when asked for "pc" value.
152
1f2624a3
TT
1532020-11-12 Tom Tromey <tom@tromey.com>
154
155 PR rust/26799:
156 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
157 exist.
158
ab33b152
AB
1592020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * features/Makefile (XMLTOC): Add rx.xml.
162 (FEATURE_XMLFILES): Remove rx.xml.
163 (FEATURE_CFILES rule): Pass '-single-feature' flag.
164 * features/rx.c: Regenerate.
165 * features/rx.xml: Wrap in `target` tags, and reindent.
166 * target-descriptions.c (struct maint_print_c_tdesc_options): New
167 structure.
168 (maint_print_c_tdesc_opt_def): New typedef.
169 (maint_print_c_tdesc_opt_defs): New static global.
170 (make_maint_print_c_tdesc_options_def_group): New function.
171 (maint_print_c_tdesc_cmd): Make use of command line flags, only
172 print single feature C file for target descriptions containing a
173 single feature.
174 (maint_print_c_tdesc_cmd_completer): New function.
175 (_initialize_target_descriptions): Update call to register command
176 completer, and include command line flag in help text.
177
550820e1
AB
1782020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
181 numbers.
182 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
183 enum values.
184
baf20f76
TT
1852020-11-10 Tom Tromey <tom@tromey.com>
186
187 * value.h (internalvar_name): Update.
188 * value.c (internalvar_name): Make return type const.
189
caaece0e
TT
1902020-11-10 Tom Tromey <tom@tromey.com>
191
192 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
193 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
194 const.
195
8e20b4be
TT
1962020-11-10 Tom Tromey <tom@tromey.com>
197
198 * objc-lang.h (value_nsstring): Update.
199 * objc-lang.c (value_nsstring): Make "ptr" const.
200
86775fab
AB
2012020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * expprint.c (print_subexp_funcall): Increment expression position
204 after reading argument count.
205 * f-lang.c (print_subexp_f): Skip over opcode before calling
206 common function.
207 (dump_subexp_body_f): Likewise.
208
3fed4c0b
RG
2092020-11-06 Romain Geissler <romain.geissler@amadeus.com>
210
211 PR python/26832
212 * configure: Regenerate.
213 * configure.ac: Check for python modules ctypes instead of
214 itertools.
215
ac3d4064
PA
2162020-11-06 Pedro Alves <pedro@palves.net>
217
218 * macroexp.c (struct macro_buffer): Split in two classes. Add
219 uses adjusted.
220 (struct shared_macro_buffer): New, factored out from struct
221 macro_buffer.
222 (struct growable_macro_buffer): New, factored out from struct
223 macro_buffer.
224 (set_token, get_comment, get_identifier, get_pp_number)
225 (get_character_constant, get_string_literal, get_punctuator)
226 (get_next_token_for_substitution): Constify parameters.
227 (substitute_args): Constify locals.
228
606decb2
TT
2292020-11-05 Tom Tromey <tom@tromey.com>
230
231 * dwarf2/read.c (read_cutu_die_from_dwo)
232 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
233 (build_type_psymtabs_1): Update.
234 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
235 parameter.
236 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
237 Don't read section. Add assert.
238
9c91c725
TT
2392020-11-04 Tom Tromey <tromey@adacore.com>
240
241 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
242
8d9fd3a1
TT
2432020-11-04 Tom Tromey <tromey@adacore.com>
244
245 * ada-typeprint.c (ada_print_type): Handle __T types.
246
d8f62e84
TT
2472020-11-04 Tom Tromey <tromey@adacore.com>
248
249 * dwarf2/read.c (add_partial_symbol, process_die):
250 Handle DW_TAG_array_type.
251 (is_type_tag_for_partial): Add "lang" parameter.
252 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
253
7ff5b937
TT
2542020-11-04 Tom Tromey <tromey@adacore.com>
255
256 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
257
10f6a3ad
TT
2582020-11-04 Tom Tromey <tromey@adacore.com>
259
260 * dwarf2/read.c (read_array_type): Only apply stride to innermost
261 array.
262
b72795a8
TT
2632020-11-04 Tom Tromey <tromey@adacore.com>
264
265 * gdbtypes.c (update_static_array_size): Handle bit stride.
266
24aa1b02
TT
2672020-11-04 Tom Tromey <tromey@adacore.com>
268
269 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
270
c9a28cbe
TT
2712020-11-04 Tom Tromey <tromey@adacore.com>
272
273 * ada-lang.c (ada_is_any_packed_array_type): New function.
274 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
275
57567375
TT
2762020-11-04 Tom Tromey <tromey@adacore.com>
277
278 * dwarf2/read.c (recognize_bound_expression)
279 (quirk_ada_thick_pointer): New functions.
280 (read_array_type): Call quirk_ada_thick_pointer.
281 (set_die_type): Add "skip_data_location" parameter.
282 (quirk_ada_thick_pointer): New function.
283 (process_structure_scope): Call quirk_ada_thick_pointer.
284 * ada-lang.c (ada_is_unconstrained_packed_array_type)
285 (decode_packed_array_bitsize): Handle thick pointers without
286 parallel types.
287 (ada_is_gnat_encoded_packed_array_type): Rename from
288 ada_is_packed_array_type.
289 (ada_is_constrained_packed_array_type): Update.
290 * ada-valprint.c (ada_val_print_gnat_array): Remove.
291 (ada_value_print_1): Use ada_get_decoded_value.
292
a7400e44
TT
2932020-11-04 Tom Tromey <tromey@adacore.com>
294
295 * ada-lang.c (recursively_update_array_bitsize): New function.
296 (decode_constrained_packed_array_type): Call it.
297
75fd6a26
TT
2982020-11-04 Tom Tromey <tromey@adacore.com>
299
300 * ada-lang.c (to_fixed_array_type): Error if
301 decode_constrained_packed_array_type returns NULL.
302
93f9561e
TT
3032020-11-04 Tom Tromey <tromey@adacore.com>
304
305 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
306
257e02d8
TT
3072020-11-02 Tom Tromey <tromey@adacore.com>
308
309 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
310 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
311 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
312 * amd64-ravenscar-thread.c: New file.
313 * amd64-ravenscar-thread.h: New file.
314 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
315 * configure.tgt (amd64_tobjs): Add ravenscar objects.
316
74d877e5
AB
3172020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * main.c (execute_cmdargs): New function.
320 (captured_main_1): Make use of execute_cmdargs.
321
64aaad63
AB
3222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * NEWS: Mention changes to config file search path.
325 * main.c
326
5b3d3560
TT
3272020-11-02 Tom Tromey <tromey@adacore.com>
328
329 * python/python.c: Consolidate two HAVE_PYTHON blocks.
330 (python_GdbModuleDef): Move earlier. Now static.
331 (do_start_initialization): Consolidate some IS_PY3K blocks.
332
dda83cd7
SM
3332020-11-02 Simon Marchi <simon.marchi@efficios.com>
334
335 * aarch64-linux-tdep.c: Fix indentation.
336 * aarch64-ravenscar-thread.c: Fix indentation.
337 * aarch64-tdep.c: Fix indentation.
338 * aarch64-tdep.h: Fix indentation.
339 * ada-lang.c: Fix indentation.
340 * ada-lang.h: Fix indentation.
341 * ada-tasks.c: Fix indentation.
342 * ada-typeprint.c: Fix indentation.
343 * ada-valprint.c: Fix indentation.
344 * ada-varobj.c: Fix indentation.
345 * addrmap.c: Fix indentation.
346 * addrmap.h: Fix indentation.
347 * agent.c: Fix indentation.
348 * aix-thread.c: Fix indentation.
349 * alpha-bsd-nat.c: Fix indentation.
350 * alpha-linux-tdep.c: Fix indentation.
351 * alpha-mdebug-tdep.c: Fix indentation.
352 * alpha-nbsd-tdep.c: Fix indentation.
353 * alpha-obsd-tdep.c: Fix indentation.
354 * alpha-tdep.c: Fix indentation.
355 * amd64-bsd-nat.c: Fix indentation.
356 * amd64-darwin-tdep.c: Fix indentation.
357 * amd64-linux-nat.c: Fix indentation.
358 * amd64-linux-tdep.c: Fix indentation.
359 * amd64-nat.c: Fix indentation.
360 * amd64-obsd-tdep.c: Fix indentation.
361 * amd64-tdep.c: Fix indentation.
362 * amd64-windows-tdep.c: Fix indentation.
363 * annotate.c: Fix indentation.
364 * arc-tdep.c: Fix indentation.
365 * arch-utils.c: Fix indentation.
366 * arch/arm-get-next-pcs.c: Fix indentation.
367 * arch/arm.c: Fix indentation.
368 * arm-linux-nat.c: Fix indentation.
369 * arm-linux-tdep.c: Fix indentation.
370 * arm-nbsd-tdep.c: Fix indentation.
371 * arm-pikeos-tdep.c: Fix indentation.
372 * arm-tdep.c: Fix indentation.
373 * arm-tdep.h: Fix indentation.
374 * arm-wince-tdep.c: Fix indentation.
375 * auto-load.c: Fix indentation.
376 * auxv.c: Fix indentation.
377 * avr-tdep.c: Fix indentation.
378 * ax-gdb.c: Fix indentation.
379 * ax-general.c: Fix indentation.
380 * bfin-linux-tdep.c: Fix indentation.
381 * block.c: Fix indentation.
382 * block.h: Fix indentation.
383 * blockframe.c: Fix indentation.
384 * bpf-tdep.c: Fix indentation.
385 * break-catch-sig.c: Fix indentation.
386 * break-catch-syscall.c: Fix indentation.
387 * break-catch-throw.c: Fix indentation.
388 * breakpoint.c: Fix indentation.
389 * breakpoint.h: Fix indentation.
390 * bsd-uthread.c: Fix indentation.
391 * btrace.c: Fix indentation.
392 * build-id.c: Fix indentation.
393 * buildsym-legacy.h: Fix indentation.
394 * buildsym.c: Fix indentation.
395 * c-typeprint.c: Fix indentation.
396 * c-valprint.c: Fix indentation.
397 * c-varobj.c: Fix indentation.
398 * charset.c: Fix indentation.
399 * cli/cli-cmds.c: Fix indentation.
400 * cli/cli-decode.c: Fix indentation.
401 * cli/cli-decode.h: Fix indentation.
402 * cli/cli-script.c: Fix indentation.
403 * cli/cli-setshow.c: Fix indentation.
404 * coff-pe-read.c: Fix indentation.
405 * coffread.c: Fix indentation.
406 * compile/compile-cplus-types.c: Fix indentation.
407 * compile/compile-object-load.c: Fix indentation.
408 * compile/compile-object-run.c: Fix indentation.
409 * completer.c: Fix indentation.
410 * corefile.c: Fix indentation.
411 * corelow.c: Fix indentation.
412 * cp-abi.h: Fix indentation.
413 * cp-namespace.c: Fix indentation.
414 * cp-support.c: Fix indentation.
415 * cp-valprint.c: Fix indentation.
416 * cris-linux-tdep.c: Fix indentation.
417 * cris-tdep.c: Fix indentation.
418 * darwin-nat-info.c: Fix indentation.
419 * darwin-nat.c: Fix indentation.
420 * darwin-nat.h: Fix indentation.
421 * dbxread.c: Fix indentation.
422 * dcache.c: Fix indentation.
423 * disasm.c: Fix indentation.
424 * dtrace-probe.c: Fix indentation.
425 * dwarf2/abbrev.c: Fix indentation.
426 * dwarf2/attribute.c: Fix indentation.
427 * dwarf2/expr.c: Fix indentation.
428 * dwarf2/frame.c: Fix indentation.
429 * dwarf2/index-cache.c: Fix indentation.
430 * dwarf2/index-write.c: Fix indentation.
431 * dwarf2/line-header.c: Fix indentation.
432 * dwarf2/loc.c: Fix indentation.
433 * dwarf2/macro.c: Fix indentation.
434 * dwarf2/read.c: Fix indentation.
435 * dwarf2/read.h: Fix indentation.
436 * elfread.c: Fix indentation.
437 * eval.c: Fix indentation.
438 * event-top.c: Fix indentation.
439 * exec.c: Fix indentation.
440 * exec.h: Fix indentation.
441 * expprint.c: Fix indentation.
442 * f-lang.c: Fix indentation.
443 * f-typeprint.c: Fix indentation.
444 * f-valprint.c: Fix indentation.
445 * fbsd-nat.c: Fix indentation.
446 * fbsd-tdep.c: Fix indentation.
447 * findvar.c: Fix indentation.
448 * fork-child.c: Fix indentation.
449 * frame-unwind.c: Fix indentation.
450 * frame-unwind.h: Fix indentation.
451 * frame.c: Fix indentation.
452 * frv-linux-tdep.c: Fix indentation.
453 * frv-tdep.c: Fix indentation.
454 * frv-tdep.h: Fix indentation.
455 * ft32-tdep.c: Fix indentation.
456 * gcore.c: Fix indentation.
457 * gdb_bfd.c: Fix indentation.
458 * gdbarch.sh: Fix indentation.
459 * gdbarch.c: Re-generate
460 * gdbarch.h: Re-generate.
461 * gdbcore.h: Fix indentation.
462 * gdbthread.h: Fix indentation.
463 * gdbtypes.c: Fix indentation.
464 * gdbtypes.h: Fix indentation.
465 * glibc-tdep.c: Fix indentation.
466 * gnu-nat.c: Fix indentation.
467 * gnu-nat.h: Fix indentation.
468 * gnu-v2-abi.c: Fix indentation.
469 * gnu-v3-abi.c: Fix indentation.
470 * go32-nat.c: Fix indentation.
471 * guile/guile-internal.h: Fix indentation.
472 * guile/scm-cmd.c: Fix indentation.
473 * guile/scm-frame.c: Fix indentation.
474 * guile/scm-iterator.c: Fix indentation.
475 * guile/scm-math.c: Fix indentation.
476 * guile/scm-ports.c: Fix indentation.
477 * guile/scm-pretty-print.c: Fix indentation.
478 * guile/scm-value.c: Fix indentation.
479 * h8300-tdep.c: Fix indentation.
480 * hppa-linux-nat.c: Fix indentation.
481 * hppa-linux-tdep.c: Fix indentation.
482 * hppa-nbsd-nat.c: Fix indentation.
483 * hppa-nbsd-tdep.c: Fix indentation.
484 * hppa-obsd-nat.c: Fix indentation.
485 * hppa-tdep.c: Fix indentation.
486 * hppa-tdep.h: Fix indentation.
487 * i386-bsd-nat.c: Fix indentation.
488 * i386-darwin-nat.c: Fix indentation.
489 * i386-darwin-tdep.c: Fix indentation.
490 * i386-dicos-tdep.c: Fix indentation.
491 * i386-gnu-nat.c: Fix indentation.
492 * i386-linux-nat.c: Fix indentation.
493 * i386-linux-tdep.c: Fix indentation.
494 * i386-nto-tdep.c: Fix indentation.
495 * i386-obsd-tdep.c: Fix indentation.
496 * i386-sol2-nat.c: Fix indentation.
497 * i386-tdep.c: Fix indentation.
498 * i386-tdep.h: Fix indentation.
499 * i386-windows-tdep.c: Fix indentation.
500 * i387-tdep.c: Fix indentation.
501 * i387-tdep.h: Fix indentation.
502 * ia64-libunwind-tdep.c: Fix indentation.
503 * ia64-libunwind-tdep.h: Fix indentation.
504 * ia64-linux-nat.c: Fix indentation.
505 * ia64-linux-tdep.c: Fix indentation.
506 * ia64-tdep.c: Fix indentation.
507 * ia64-tdep.h: Fix indentation.
508 * ia64-vms-tdep.c: Fix indentation.
509 * infcall.c: Fix indentation.
510 * infcmd.c: Fix indentation.
511 * inferior.c: Fix indentation.
512 * infrun.c: Fix indentation.
513 * iq2000-tdep.c: Fix indentation.
514 * language.c: Fix indentation.
515 * linespec.c: Fix indentation.
516 * linux-fork.c: Fix indentation.
517 * linux-nat.c: Fix indentation.
518 * linux-tdep.c: Fix indentation.
519 * linux-thread-db.c: Fix indentation.
520 * lm32-tdep.c: Fix indentation.
521 * m2-lang.c: Fix indentation.
522 * m2-typeprint.c: Fix indentation.
523 * m2-valprint.c: Fix indentation.
524 * m32c-tdep.c: Fix indentation.
525 * m32r-linux-tdep.c: Fix indentation.
526 * m32r-tdep.c: Fix indentation.
527 * m68hc11-tdep.c: Fix indentation.
528 * m68k-bsd-nat.c: Fix indentation.
529 * m68k-linux-nat.c: Fix indentation.
530 * m68k-linux-tdep.c: Fix indentation.
531 * m68k-tdep.c: Fix indentation.
532 * machoread.c: Fix indentation.
533 * macrocmd.c: Fix indentation.
534 * macroexp.c: Fix indentation.
535 * macroscope.c: Fix indentation.
536 * macrotab.c: Fix indentation.
537 * macrotab.h: Fix indentation.
538 * main.c: Fix indentation.
539 * mdebugread.c: Fix indentation.
540 * mep-tdep.c: Fix indentation.
541 * mi/mi-cmd-catch.c: Fix indentation.
542 * mi/mi-cmd-disas.c: Fix indentation.
543 * mi/mi-cmd-env.c: Fix indentation.
544 * mi/mi-cmd-stack.c: Fix indentation.
545 * mi/mi-cmd-var.c: Fix indentation.
546 * mi/mi-cmds.c: Fix indentation.
547 * mi/mi-main.c: Fix indentation.
548 * mi/mi-parse.c: Fix indentation.
549 * microblaze-tdep.c: Fix indentation.
550 * minidebug.c: Fix indentation.
551 * minsyms.c: Fix indentation.
552 * mips-linux-nat.c: Fix indentation.
553 * mips-linux-tdep.c: Fix indentation.
554 * mips-nbsd-tdep.c: Fix indentation.
555 * mips-tdep.c: Fix indentation.
556 * mn10300-linux-tdep.c: Fix indentation.
557 * mn10300-tdep.c: Fix indentation.
558 * moxie-tdep.c: Fix indentation.
559 * msp430-tdep.c: Fix indentation.
560 * namespace.h: Fix indentation.
561 * nat/fork-inferior.c: Fix indentation.
562 * nat/gdb_ptrace.h: Fix indentation.
563 * nat/linux-namespaces.c: Fix indentation.
564 * nat/linux-osdata.c: Fix indentation.
565 * nat/netbsd-nat.c: Fix indentation.
566 * nat/x86-dregs.c: Fix indentation.
567 * nbsd-nat.c: Fix indentation.
568 * nbsd-tdep.c: Fix indentation.
569 * nios2-linux-tdep.c: Fix indentation.
570 * nios2-tdep.c: Fix indentation.
571 * nto-procfs.c: Fix indentation.
572 * nto-tdep.c: Fix indentation.
573 * objfiles.c: Fix indentation.
574 * objfiles.h: Fix indentation.
575 * opencl-lang.c: Fix indentation.
576 * or1k-tdep.c: Fix indentation.
577 * osabi.c: Fix indentation.
578 * osabi.h: Fix indentation.
579 * osdata.c: Fix indentation.
580 * p-lang.c: Fix indentation.
581 * p-typeprint.c: Fix indentation.
582 * p-valprint.c: Fix indentation.
583 * parse.c: Fix indentation.
584 * ppc-linux-nat.c: Fix indentation.
585 * ppc-linux-tdep.c: Fix indentation.
586 * ppc-nbsd-nat.c: Fix indentation.
587 * ppc-nbsd-tdep.c: Fix indentation.
588 * ppc-obsd-nat.c: Fix indentation.
589 * ppc-ravenscar-thread.c: Fix indentation.
590 * ppc-sysv-tdep.c: Fix indentation.
591 * ppc64-tdep.c: Fix indentation.
592 * printcmd.c: Fix indentation.
593 * proc-api.c: Fix indentation.
594 * producer.c: Fix indentation.
595 * producer.h: Fix indentation.
596 * prologue-value.c: Fix indentation.
597 * prologue-value.h: Fix indentation.
598 * psymtab.c: Fix indentation.
599 * python/py-arch.c: Fix indentation.
600 * python/py-bpevent.c: Fix indentation.
601 * python/py-event.c: Fix indentation.
602 * python/py-event.h: Fix indentation.
603 * python/py-finishbreakpoint.c: Fix indentation.
604 * python/py-frame.c: Fix indentation.
605 * python/py-framefilter.c: Fix indentation.
606 * python/py-inferior.c: Fix indentation.
607 * python/py-infthread.c: Fix indentation.
608 * python/py-objfile.c: Fix indentation.
609 * python/py-prettyprint.c: Fix indentation.
610 * python/py-registers.c: Fix indentation.
611 * python/py-signalevent.c: Fix indentation.
612 * python/py-stopevent.c: Fix indentation.
613 * python/py-stopevent.h: Fix indentation.
614 * python/py-threadevent.c: Fix indentation.
615 * python/py-tui.c: Fix indentation.
616 * python/py-unwind.c: Fix indentation.
617 * python/py-value.c: Fix indentation.
618 * python/py-xmethods.c: Fix indentation.
619 * python/python-internal.h: Fix indentation.
620 * python/python.c: Fix indentation.
621 * ravenscar-thread.c: Fix indentation.
622 * record-btrace.c: Fix indentation.
623 * record-full.c: Fix indentation.
624 * record.c: Fix indentation.
625 * reggroups.c: Fix indentation.
626 * regset.h: Fix indentation.
627 * remote-fileio.c: Fix indentation.
628 * remote.c: Fix indentation.
629 * reverse.c: Fix indentation.
630 * riscv-linux-tdep.c: Fix indentation.
631 * riscv-ravenscar-thread.c: Fix indentation.
632 * riscv-tdep.c: Fix indentation.
633 * rl78-tdep.c: Fix indentation.
634 * rs6000-aix-tdep.c: Fix indentation.
635 * rs6000-lynx178-tdep.c: Fix indentation.
636 * rs6000-nat.c: Fix indentation.
637 * rs6000-tdep.c: Fix indentation.
638 * rust-lang.c: Fix indentation.
639 * rx-tdep.c: Fix indentation.
640 * s12z-tdep.c: Fix indentation.
641 * s390-linux-tdep.c: Fix indentation.
642 * score-tdep.c: Fix indentation.
643 * ser-base.c: Fix indentation.
644 * ser-mingw.c: Fix indentation.
645 * ser-uds.c: Fix indentation.
646 * ser-unix.c: Fix indentation.
647 * serial.c: Fix indentation.
648 * sh-linux-tdep.c: Fix indentation.
649 * sh-nbsd-tdep.c: Fix indentation.
650 * sh-tdep.c: Fix indentation.
651 * skip.c: Fix indentation.
652 * sol-thread.c: Fix indentation.
653 * solib-aix.c: Fix indentation.
654 * solib-darwin.c: Fix indentation.
655 * solib-frv.c: Fix indentation.
656 * solib-svr4.c: Fix indentation.
657 * solib.c: Fix indentation.
658 * source.c: Fix indentation.
659 * sparc-linux-tdep.c: Fix indentation.
660 * sparc-nbsd-tdep.c: Fix indentation.
661 * sparc-obsd-tdep.c: Fix indentation.
662 * sparc-ravenscar-thread.c: Fix indentation.
663 * sparc-tdep.c: Fix indentation.
664 * sparc64-linux-tdep.c: Fix indentation.
665 * sparc64-nbsd-tdep.c: Fix indentation.
666 * sparc64-obsd-tdep.c: Fix indentation.
667 * sparc64-tdep.c: Fix indentation.
668 * stabsread.c: Fix indentation.
669 * stack.c: Fix indentation.
670 * stap-probe.c: Fix indentation.
671 * stubs/ia64vms-stub.c: Fix indentation.
672 * stubs/m32r-stub.c: Fix indentation.
673 * stubs/m68k-stub.c: Fix indentation.
674 * stubs/sh-stub.c: Fix indentation.
675 * stubs/sparc-stub.c: Fix indentation.
676 * symfile-mem.c: Fix indentation.
677 * symfile.c: Fix indentation.
678 * symfile.h: Fix indentation.
679 * symmisc.c: Fix indentation.
680 * symtab.c: Fix indentation.
681 * symtab.h: Fix indentation.
682 * target-float.c: Fix indentation.
683 * target.c: Fix indentation.
684 * target.h: Fix indentation.
685 * tic6x-tdep.c: Fix indentation.
686 * tilegx-linux-tdep.c: Fix indentation.
687 * tilegx-tdep.c: Fix indentation.
688 * top.c: Fix indentation.
689 * tracefile-tfile.c: Fix indentation.
690 * tracepoint.c: Fix indentation.
691 * tui/tui-disasm.c: Fix indentation.
692 * tui/tui-io.c: Fix indentation.
693 * tui/tui-regs.c: Fix indentation.
694 * tui/tui-stack.c: Fix indentation.
695 * tui/tui-win.c: Fix indentation.
696 * tui/tui-winsource.c: Fix indentation.
697 * tui/tui.c: Fix indentation.
698 * typeprint.c: Fix indentation.
699 * ui-out.h: Fix indentation.
700 * unittests/copy_bitwise-selftests.c: Fix indentation.
701 * unittests/memory-map-selftests.c: Fix indentation.
702 * utils.c: Fix indentation.
703 * v850-tdep.c: Fix indentation.
704 * valarith.c: Fix indentation.
705 * valops.c: Fix indentation.
706 * valprint.c: Fix indentation.
707 * valprint.h: Fix indentation.
708 * value.c: Fix indentation.
709 * value.h: Fix indentation.
710 * varobj.c: Fix indentation.
711 * vax-tdep.c: Fix indentation.
712 * windows-nat.c: Fix indentation.
713 * windows-tdep.c: Fix indentation.
714 * xcoffread.c: Fix indentation.
715 * xml-syscall.c: Fix indentation.
716 * xml-tdesc.c: Fix indentation.
717 * xstormy16-tdep.c: Fix indentation.
718 * xtensa-config.c: Fix indentation.
719 * xtensa-linux-nat.c: Fix indentation.
720 * xtensa-linux-tdep.c: Fix indentation.
721 * xtensa-tdep.c: Fix indentation.
722
e1f57067
AB
7232020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
724 Craig Blackmore <craig.blackmore@embecosm.com>
725
726 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
727 as an unsigned value.
728
ae7754b2
TT
7292020-11-01 Tom Tromey <tom@tromey.com>
730
731 * dbxread.c (dbx_end_psymtab): Update.
732 * dwarf2/read.c (process_psymtab_comp_unit_reader)
733 (build_type_psymtabs_reader): Update.
734 * xcoffread.c (xcoff_end_psymtab): Update.
735 * ctfread.c (scan_partial_symbols): Update.
736 * psymtab.c (sort_pst_symbols): Remove.
737 (partial_symtab::end): Rename from end_psymtab_common. Inline
738 sort_pst_symbols.
739 * psympriv.h (struct partial_symtab) <end>: New method.
740 (end_psymtab_common): Don't declare.
741
0684bb51
TT
7422020-11-01 Tom Tromey <tom@tromey.com>
743
744 * symmisc.c (count_psyms): New function.
745 (print_objfile_statistics): Use it.
746 * psymtab.c (append_psymbol_to_list): Remove.
747 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
748 * objfiles.h (struct objstats) <n_psyms>: Remove.
749
089002bb
TT
7502020-11-01 Tom Tromey <tom@tromey.com>
751
752 * dbxread.c (dbx_end_psymtab): Update.
753 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
754 (build_type_psymtabs_reader): Update.
755 * xcoffread.c (xcoff_end_psymtab): Update.
756 * ctfread.c (scan_partial_symbols): Update.
757 * psympriv.h (end_psymtab_common): Update.
758 * psymtab.c (end_psymtab_common): Remove objfile parameter.
759 (sort_pst_symbols): Likewise.
760
525454d6
TT
7612020-11-01 Tom Tromey <tom@tromey.com>
762
763 * dbxread.c (dbx_symfile_read): Update.
764 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
765 * xcoffread.c (xcoff_initial_scan): Update.
766 * psympriv.h (init_psymbol_list): Don't declare.
767 * psymtab.c (init_psymbol_list): Remove.
768
60bd1d53
JB
7692020-11-01 Joel Brobecker <brobecker@adacore.com>
770
771 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
772 gnat_encoded_fixed_type_info. Update all callers.
773
db99d0d0
JB
7742020-11-01 Joel Brobecker <brobecker@adacore.com>
775
776 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
777 line too long.
778
75f24e86
JB
7792020-11-01 Joel Brobecker <brobecker@adacore.com>
780
781 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
782 cast_from_fixed. Update all callers.
783 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
784 Update all callers.
785 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
786 Update all callers.
787 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
788 ada_scaling_factor.
789 * ada-typeprint.c: Replace call to ada_scaling_factor by call
790 to print_gnat_encoded_fixed_point_type.
791 * ada-valprint.c: Likewise.
792
4f0469cd
AB
7932020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
796 (debug_prefixed_printf): Add check of debug_displaced flag.
797 * linux-nat.c (linux_nat_debug_printf): Add check of
798 debug_linux_nat flag.
799
17417fb0
SM
8002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * infrun.c (infrun_debug_printf_1): Remove.
803 (displaced_debug_printf_1): Remove.
804 (stop_all_threads): Use debug_prefixed_printf.
805 * infrun.h (infrun_debug_printf_1): Remove.
806 (infrun_debug_printf): Use debug_prefixed_printf.
807 (displaced_debug_printf_1): Remove.
808 (displaced_debug_printf): Use debug_prefixed_printf.
809 * linux-nat.c (linux_nat_debug_printf_1): Remove.
810 (linux_nat_debug_printf): Use debug_prefixed_printf.
811
ad6dba1c
SM
8122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * configure: Re-generate.
815 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
816 AC_LANG_PROGRAM.
817
b6fb30ed
SM
8182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * configure: Re-generate.
821
5164c117
SM
8222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * configure: Re-generate.
825
864ca435
SM
8262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * configure: Re-generate.
829
b9442ec1
SM
8302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * configure: Re-generate.
833
294f2697
SM
8342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * acinclude.m4: Modernize.
837 * configure: Re-generate.
838
5593a99a
SM
8392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * configure.ac: Modernize.
842 * configure: Re-generate.
843
e41fda1d
SM
8442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
847 * configure: Re-generate.
848 * configure.ac: Remove AM_PROG_CC_STDC.
849
91e1a0ed
SM
8502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
851
852 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
853 AC_CANONICAL_SYSTEM.
854 * configure: Re-generate.
855
136821d9
SM
8562020-10-30 Simon Marchi <simon.marchi@efficios.com>
857
858 * infrun.h (displaced_debug_printf): New macro. Replace
859 displaced debug prints throughout to use it.
860 (displaced_debug_printf_1): New declaration.
861 (displaced_step_dump_bytes): Return string, remove ui_file
862 parameter, update all callers.
863 * infrun.c (displaced_debug_printf_1): New function.
864 (displaced_step_dump_bytes): Return string, remove ui_file
865 parameter
866
aa2045e7
SM
8672020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
868
869 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
870
b1ec2735
TT
8712020-10-30 Tom Tromey <tromey@adacore.com>
872
873 * Makefile.in (stamp-init): Depend on config.status.
874
b78b3a29
TBA
8752020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
876
877 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
878
d70bdd3c
PA
8792020-10-30 Pedro Alves <pedro@palves.net>
880
881 * thread.c (lookup_selected_frame): Move ...
882 * frame.c (lookup_selected_frame): ... here.
883
79952e69
PA
8842020-10-30 Pedro Alves <pedro@palves.net>
885
886 * blockframe.c (block_innermost_frame): Use get_selected_frame.
887 * frame.c
888 (scoped_restore_selected_frame::scoped_restore_selected_frame):
889 Use save_selected_frame. Save language as well.
890 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
891 Use restore_selected_frame, and restore language as well.
892 (selected_frame_id, selected_frame_level): New.
893 (selected_frame): Update comments.
894 (save_selected_frame, restore_selected_frame): New.
895 (get_selected_frame): Use lookup_selected_frame.
896 (get_selected_frame_if_set): Delete.
897 (select_frame): Record selected_frame_level and selected_frame_id.
898 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
899 fields.
900 (get_selected_frame): Make 'message' parameter optional.
901 (get_selected_frame_if_set): Delete declaration.
902 (select_frame): Update comments.
903 (save_selected_frame, restore_selected_frame)
904 (lookup_selected_frame): Declare.
905 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
906 * infrun.c (struct infcall_control_state) <selected_frame_level>:
907 New field.
908 (save_infcall_control_state): Use save_selected_frame.
909 (restore_selected_frame): Delete.
910 (restore_infcall_control_state): Use restore_selected_frame.
911 * stack.c (select_frame_command_core, frame_command_core): Use
912 get_selected_frame.
913 * thread.c (restore_selected_frame): Rename to ...
914 (lookup_selected_frame): ... this and make extern. Select the
915 current frame if the frame level is -1.
916 (scoped_restore_current_thread::restore): Also restore the
917 language.
918 (scoped_restore_current_thread::~scoped_restore_current_thread):
919 Don't try/catch.
920 (scoped_restore_current_thread::scoped_restore_current_thread):
921 Save the language as well. Use save_selected_frame.
922
58103c33
SM
9232020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
926 documentation.
927 * gdbarch.h: Re-generate.
928
40a53766
SM
9292020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
932 parameter.
933 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
934 Likewise.
935 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
936 Likewise.
937 * arch-utils.c (default_displaced_step_hw_singlestep):
938 Likewise.
939 * arch-utils.h (default_displaced_step_hw_singlestep):
940 Likewise.
941 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
942 Likewise.
943 * s390-tdep.c (s390_displaced_step_hw_singlestep):
944 Likewise.
945 * gdbarch.c: Re-generate.
946 * gdbarch.h: Re-generate.
947 * infrun.c (resume_1): Adjust.
948
8407f91b
TT
9492020-10-29 Tom Tromey <tom@tromey.com>
950
951 * progspace.c (program_space::~program_space): Don't call
952 exec_close.
953
5008b3b2
TT
9542020-10-29 Tom Tromey <tom@tromey.com>
955
956 * exec.c (exec_target::close): Don't change current program
957 space.
958
d9eebde0
TT
9592020-10-29 Tom Tromey <tom@tromey.com>
960
961 * symfile.c (add_symbol_file_command): Update.
962 * exec.c (program_space::add_target_sections): Rename.
963 * symfile-mem.c (symbol_file_add_from_memory): Update.
964 * progspace.h (struct program_space) <add_target_sections>:
965 Declare new overload.
966 * exec.h (add_target_sections_of_objfile): Don't declare.
967
3769e227
TT
9682020-10-29 Tom Tromey <tom@tromey.com>
969
970 * solib.c (solib_map_sections): Update.
971 * exec.c (program_space::add_target_sections): Now a method.
972 (exec_file_attach): Update.
973 * exec.h (add_target_sections): Don't declare.
974 * progspace.h (struct program_space) <add_target_sections>:
975 Declare.
976
2a3f84af
TT
9772020-10-29 Tom Tromey <tom@tromey.com>
978
979 * progspace.h (struct program_space) <remove_target_sections>:
980 Declare.
981 * exec.c (program_space::remove_target_sections): Now a method.
982 * exec.h (remove_target_sections): Don't declare.
983
004eecfd
TT
9842020-10-29 Tom Tromey <tom@tromey.com>
985
986 * inferior.c (delete_inferior): Update.
987 * progspace.c (program_space::empty): Rename from
988 program_space_empty_p. Return bool.
989 * progspace.h (struct program_space) <empty>: New method.
990 (program_space_empty_p): Don't declare.
991
e39fb971
TT
9922020-10-29 Tom Tromey <tom@tromey.com>
993
994 * progspace.c (program_space::~program_space): Don't call
995 clear_program_space_solib_cache.
996 (program_space::clear_solib_cache): Rename from
997 clear_solib_cache.
998 * solib.c (handle_solib_event): Update.
999 * progspace.h (struct program_space) <clear_solib_cache>: New
1000 method.
1001 (clear_program_space_solib_cache): Don't declare.
1002
a42d7dd8
TT
10032020-10-29 Tom Tromey <tom@tromey.com>
1004
1005 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1006 * target.c (info_target_command): Update.
1007 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1008 (symbol_file_clear, reread_symbols): Update.
1009 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1010 * stabsread.c (scan_file_globals): Update.
1011 * solib.c (update_solib_list): Update.
1012 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1013 (svr4_fetch_objfile_link_map, enable_break)
1014 (svr4_relocate_main_executable)
1015 (svr4_iterate_over_objfiles_in_search_order): Update.
1016 * solib-frv.c (lm_base, enable_break)
1017 (frv_relocate_main_executable): Update.
1018 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1019 (frv_fetch_objfile_link_map): Update.
1020 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1021 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1022 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1023 * remote.c (remote_target::get_offsets): Update.
1024 (remote_target::start_remote)
1025 (extended_remote_target::post_attach): Update.
1026 * objfiles.c (entry_point_address_query): Update.
1027 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1028 * minsyms.c (get_symbol_leading_char): Update.
1029 * frame.c (inside_main_func): Update.
1030 * progspace.h (symfile_objfile): Remove macro.
1031
19f6550e
TT
10322020-10-29 Tom Tromey <tom@tromey.com>
1033
1034 * exec.c (exec_file_attach): Update.
1035 * progspace.c (program_space::exec_close): Update.
1036 * progspace.h (struct program_space) <ebfd>: Now a
1037 gdb_bfd_ref_ptr.
1038 <set_exec_bfd>: Change argument type.
1039 <exec_bfd>: Update.
1040
7e10abd1
TT
10412020-10-29 Tom Tromey <tom@tromey.com>
1042
1043 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1044 * symfile.c (reread_symbols): Update.
1045 * symfile-mem.c (add_symbol_file_from_memory_command)
1046 (add_vsyscall_page): Update.
1047 * source-cache.c (source_cache::get_plain_source_lines): Update.
1048 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1049 (svr4_current_sos_direct, svr4_exec_displacement)
1050 (svr4_relocate_main_executable): Update.
1051 (svr4_iterate_over_objfiles_in_search_order): Update.
1052 * solib-frv.c (enable_break2, enable_break): Update.
1053 * solib-dsbt.c (lm_base, enable_break): Update.
1054 * solib-darwin.c (find_program_interpreter)
1055 (darwin_solib_create_inferior_hook): Update.
1056 * sol-thread.c (rw_common, ps_pdmodel): Update.
1057 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1058 * remote.c (compare_sections_command)
1059 (remote_target::trace_set_readonly_regions): Update.
1060 * remote-sim.c (get_sim_inferior_data)
1061 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1062 (gdbsim_target_open, gdbsim_target::files_info): Update.
1063 * exec.h (exec_bfd): Remove macro.
1064 * progspace.c (initialize_progspace): Update.
1065 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1066 Update.
1067 * nto-procfs.c (nto_procfs_target::post_attach)
1068 (nto_procfs_target::create_inferior): Update.
1069 * maint.c (maintenance_info_sections): Update.
1070 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1071 Update.
1072 * infcmd.c (post_create_inferior): Update.
1073 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1074 (objfile_find_memory_regions): Update.
1075 * exec.c (validate_exec_file, exec_file_attach)
1076 (exec_read_partial_read_only, print_section_info): Update.
1077 * corelow.c (core_target_open): Update.
1078 * corefile.c (reopen_exec_file, validate_files): Update.
1079 * arm-tdep.c (gdb_print_insn_arm): Update.
1080 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1081 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1082 methods.
1083
b55221ab
TT
10842020-10-29 Tom Tromey <tom@tromey.com>
1085
1086 * progspace.h (current_target_sections): Remove macro.
1087 * solib-svr4.c (scan_dyntag): Update.
1088 * solib-dsbt.c (scan_dyntag): Update.
1089 * exec.c (exec_target::close): Update.
1090 (add_target_sections, add_target_sections_of_objfile)
1091 (remove_target_sections, exec_target::get_section_table)
1092 (exec_target::files_info, set_section_command)
1093 (exec_set_section_address, exec_target::has_memory)
1094 (exec_target::has_memory): Update.
1095
5a36e715
TT
10962020-10-29 Tom Tromey <tom@tromey.com>
1097
1098 * source-cache.c (source_cache::get_plain_source_lines): Use
1099 current_program_space.
1100 * corefile.c (reopen_exec_file): Use current_program_space.
1101 * exec.c (exec_file_attach): Use current_program_space.
1102 * exec.h (exec_bfd_mtime): Remove.
1103
784c8592
TT
11042020-10-29 Tom Tromey <tom@tromey.com>
1105
1106 * gcore.c (default_gcore_mach): Remove.
1107 (create_gcore_bfd): Update.
1108
8a4f1402
TT
11092020-10-29 Tom Tromey <tom@tromey.com>
1110
1111 * progspace.c (program_space::exec_close): New method, from
1112 exec_close in exec.c.
1113 * exec.c (exec_close): Move to progspace.c.
1114 (exec_target::close, exec_file_attach): Update.
1115 * progspace.h (struct program_space) <exec_close>: Declare
1116 method.
1117
c20cb686
TT
11182020-10-29 Tom Tromey <tom@tromey.com>
1119
1120 * progspace.h (struct program_space) <exec_filename>: Rename from
1121 pspace_exec_filename. Now a unique_xmalloc_ptr.
1122 * inferior.c (print_selected_inferior): Update.
1123 (print_inferior): Update.
1124 * mi/mi-main.c (print_one_inferior): Update.
1125 * exec.h (exec_filename): Remove macro.
1126 * corefile.c (get_exec_file): Update.
1127 * exec.c (exec_close): Update.
1128 (exec_file_attach): Update.
1129 * progspace.c (clone_program_space): Update.
1130 (print_program_space): Update.
1131
6be2a9ab
TT
11322020-10-29 Tom Tromey <tom@tromey.com>
1133
1134 * target-section.h (struct target_section): Add constructor.
1135 * exec.c (build_section_table, add_target_sections_of_objfile):
1136 Update.
1137 * corelow.c (core_target::build_file_mappings): Update.
1138
cfaa8f76
TBA
11392020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1140
1141 PR gdb/19318
1142 * inferior.c (detach_inferior_command): Restore the current thread.
1143 (kill_inferior_command): Ditto.
1144
1b00ef06
TV
11452020-10-28 Tom de Vries <tdevries@suse.de>
1146
1147 PR symtab/26772
1148 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1149 map, check it in the "best match" loop.
1150
7f40ce1a
SM
11512020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * m32c-tdep.c: Remove unused includes.
1154
5eb9e3f5
SM
11552020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 * xtensa-tdep.c: Remove includes.
1158
b1d4d8d1
TBA
11592020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1160
1161 * breakpoint.c (struct condition_command_opts): New struct.
1162 (condition_command_option_defs): New static global.
1163 (make_condition_command_options_def_group): New function.
1164 (condition_completer): Update to consider the '-force' flag.
1165 (condition_command): Use gdb::option for the '-force' flag.
1166
bd24c5d6
TV
11672020-10-27 Tom de Vries <tdevries@suse.de>
1168
1169 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1170 symbols in section check.
1171
61eb46a4
TV
11722020-10-27 Tom de Vries <tdevries@suse.de>
1173
1174 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1175
733d554a
TBA
11762020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177
1178 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1179 * breakpoint.c: Update the help text of the 'condition' and 'break'
1180 commands.
1181 (set_breakpoint_condition): Take a new bool parameter
1182 to control whether condition definition should be forced even when
1183 the condition expression is invalid in all of the current locations.
1184 (condition_command): Update the call to 'set_breakpoint_condition'.
1185 (find_condition_and_thread): Take the "-force-condition" flag into
1186 account.
1187 * linespec.c (linespec_keywords): Add "-force-condition" as an
1188 element.
1189 (FORCE_KEYWORD_INDEX): New #define.
1190 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1191 as a keyword.
1192 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1193 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1194 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1195 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1196
b5fa468f
TBA
11972020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1198
1199 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1200 * breakpoint.c (set_breakpoint_location_condition): New function.
1201 (set_breakpoint_condition): Disable a breakpoint location if parsing
1202 the condition string gives an error.
1203 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1204 (build_target_condition_list): Ditto.
1205 (build_target_command_list): Ditto.
1206 (build_bpstat_chain): Ditto.
1207 (print_one_breakpoint_location): Ditto.
1208 (print_one_breakpoint): Ditto.
1209 (breakpoint_1): Ditto.
1210 (bp_location::bp_location): Ditto.
1211 (locations_are_equal): Ditto.
1212 (update_breakpoint_locations): Ditto.
1213 (enable_disable_bp_num_loc): Ditto.
1214 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1215 (find_condition_and_thread_for_sals): New static function.
1216 (create_breakpoint): Call find_condition_and_thread_for_sals.
1217 (location_to_sals): Call find_condition_and_thread_for_sals instead
1218 of find_condition_and_thread.
1219
1c47ec3e
TV
12202020-10-26 Tom de Vries <tdevries@suse.de>
1221
1222 * dwarf2/read.c (process_full_comp_unit): Call
1223 dwarf2_find_base_address.
1224
6390859c
TT
12252020-10-26 Tom Tromey <tromey@adacore.com>
1226
1227 * gdbtypes.c (create_range_type): Revert previous patch. Add
1228 comment.
1229
d744f0f9
PA
12302020-10-26 Pedro Alves <pedro@palves.net>
1231
1232 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1233 (my_waitpid): Use gdb::handle_eintr.
1234
006811bc
SM
12352020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * acinclude.m4: Update ptrace.m4 path.
1238 * ptrace.m4: Moved to gdbsupport.
1239
c75e31a1
SM
12402020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1243 instead of target_gdbarch.
1244
32495661
SM
12452020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * jit.c (jit_reader_load_command): Pass current inferior.
1248 (jit_inferior_init): Change parameter type to inferior, use it.
1249 (jit_inferior_created): Remove.
1250 (jit_inferior_created_hook): Pass inferior parameter down.
1251 (_initialize_jit): Use jit_inferior_created_hook instead of
1252 jit_inferior_created.
1253 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1254 * infrun.c (follow_exec): Pass inferior to
1255 jit_inferior_created_hook.
1256
3f66685e
SM
12572020-10-24 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1260 parameter and use it.
1261 (thread_db_inferior_created): Pass inferior argument.
1262
a0ff652f
SM
12632020-10-24 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * aix-thread.c (aix_thread_inferior_created): Add inferior
1266 parameter.
1267 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1268 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1269 * jit.c (jit_inferior_created): Likewise.
1270 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1271 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1272 * observable.h (inferior_created): Likewise.
1273 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1274 * symfile-mem.c (add_vsyscall_page): Likewise.
1275 * infcmd.c (post_create_inferior): Pass inferior argument.
1276
3c67532c
JB
12772020-10-24 Joel Brobecker <brobecker@adacore.com>
1278
1279 GDB 10.1 released.
1280
8747316e
JB
12812020-10-23 Joel Brobecker <brobecker@adacore.com>
1282
1283 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1284 to ada_check_typedef.
1285
1a0ea399
AB
12862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * f-exp.y (f_parse): Rename to...
1289 (f_language::parser): ...this.
1290 * f-lang.c (f_get_encoding): Rename to...
1291 (f_language::get_encoding): ...this.
1292 (f_op_print_tab): Rename to...
1293 (f_language::op_print_tab): ...this.
1294 (exp_descriptor_f): Rename to...
1295 (f_language::exp_descriptor_tab): ...this.
1296 (class f_language): Moved to f-lang.h.
1297 (f_language::language_arch_info): New function, moved out of class
1298 declaration.
1299 (f_language::search_name_hash): Likewise.
1300 (f_language::lookup_symbol_nonlocal): Likewise.
1301 (f_language::get_symbol_name_matcher_inner): Likewise.
1302 * f-lang.h: Add 'valprint.h' include.
1303 (class f_language): Moved here from f-lang.c.
1304 * f-typeprint.c (f_type_print_args): Delete commented out
1305 declaration.
1306 (f_print_typedef): Rename to...
1307 (f_language::print_typedef): ...this.
1308 (f_print_type): Rename to...
1309 (f_language::print_type): ...this.
1310 (f_type_print_varspec_prefix): Delete declaration and rename to...
1311 (f_language::f_type_print_varspec_prefix): ...this.
1312 (f_type_print_varspec_suffix): Delete declaration and rename to...
1313 (f_language::f_type_print_varspec_suffix): ...this.
1314 (f_type_print_base): Delete declaration and rename to...
1315 (f_language::f_type_print_base): ...this.
1316 * f-valprint.c (f_value_print_inner): Rename to...
1317 (f_language::value_print_inner): ...this.
1318 * parse.c: Delete 'f-lang.h' include.
1319
88cefd9b
AB
13202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * language.h (language_defn::print_type): Add variable names in
1323 declaration, and update header comment.
1324
5399db93
AB
13252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * ada-lang.c (ada_language::demangle): Rename to...
1328 (ada_language::demangle_symbol): ...this.
1329 * c-lang.c (cplus_language::demangle): Rename to...
1330 (cplus_language::demangle_symbol): ...this.
1331 * d-lang.c (d_language::demangle): Rename to...
1332 (d_language::demangle_symbol): ...this.
1333 * f-lang.c (f_language::demangle): Rename to...
1334 (f_language::demangle_symbol): ...this.
1335 * go-lang.c (go_language::demangle): Rename to...
1336 (go_language::demangle_symbol): ...this.
1337 * language.c (language_demangle): Update call to demangle_symbol.
1338 (auto_or_unknown_language::demangle): Rename to...
1339 (auto_or_unknown_language::demangle_symbol): ...this.
1340 * language.h (language_defn::demangle): Rename to...
1341 (language_defn::demangle_symbol): ...this.
1342 * objc-lang.c (objc_language::demangle): Rename to...
1343 (objc_language::demangle_symbol): ...this.
1344 * rust-lang.c (rust_language::demangle): Rename to...
1345 (rust_language::demangle_symbol): ...this.
1346
4b2f86ef
AB
13472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1350 (iterate_over_file_blocks): Replace use of macro with the macros
1351 definition.
1352
e74b39de
AB
13532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1356 * valprint.c (maybe_print_array_index): Replace use of macro with
1357 the macros definition.
1358
00c696a6
AB
13592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * ada-lang.c (ada_language::print_array_index): Call value_print
1362 directly.
1363 * language.c (language_defn::print_array_index): Likewise.
1364 * language.h (LA_VALUE_PRINT): Delete.
1365 * valprint.c (value_print): Call value_print on the
1366 current_language directly.
1367
d3b67c56
AB
13682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * language.h (LA_PRINT_TYPEDEF): Delete.
1371 * typeprint.c (typedef_print): Call print_typedef directly on the
1372 current_language object.
1373
790e2a12
AB
13742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * m2-exp.y (m2_parse): Rename to...
1377 (m2_language::parser): ...this. Update function signature.
1378 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1379 (m2_op_print): Rename to...
1380 (m2_language::op_print_tab): ...this, and make const.
1381 (exp_descriptor_modula2): Rename to...
1382 (m2_language::exp_descriptor_modula2): ...this.
1383 (class m2_language): Move to m2-lang.h.
1384 (m2_language::language_arch_info): New function, moved out of
1385 class declaration.
1386 (m2_language::printchar): New function, body from m2_printchar.
1387 (m2_language::printstr): New function, moved out of class
1388 declaration.
1389 (m2_language::emitchar): Likewise.
1390 * m2-lang.h (m2_parse): Delete declaration.
1391 (m2_print_typedef): Delete declaration.
1392 (m2_value_print_inner): Delete declaration.
1393 (class m2_language): Class declaration moved from m2-lang.c,
1394 larger functions are left in m2-lang.c.
1395 * m2-typeprint.c (m2_print_typedef): Rename to...
1396 (m2_language::print_typedef): ...this, and update function
1397 signature.
1398 * m2-valprint.c (m2_value_print_inner): Rename to...
1399 (m2_language::value_print_inner): ...this, replace use of
1400 LA_PRINT_STRING with a direct call to printstr member function,
1401 and update recursive call.
1402
b01175fc
AB
14032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * language.c (default_is_string_type_p): Delete, implementation
1406 moved into auto_or_unknown_language::is_string_type_p.
1407 (unk_op_print_tab): Moved into
1408 auto_or_unknown_language::opcode_print_table.
1409 (unknown_language_arch_info): Delete, implementation moved into
1410 auto_or_unknown_language::language_arch_info.
1411 (class auto_or_unknown_language): New class, member functions
1412 copied from unknown_language class, with some updates.
1413 (class unknown_language): Most member functions moved into
1414 auto_or_unknown_language class. Inherit from
1415 auto_or_unknown_language class.
1416 (class auto_language): Inherit from auto_or_unknown_language.
1417 Delete most member functions.
1418
1a97fe8c
HD
14192020-10-22 Hannes Domani <ssbssa@yahoo.de>
1420
1421 * stabsread.c (read_member_functions): Remove gdb_assert.
1422
6b9d0dfd
HD
14232020-10-22 Hannes Domani <ssbssa@yahoo.de>
1424
1425 * gdbtypes.c (init_complex_type): Check target type name.
1426
4b4bb603
SM
14272020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * target-debug.h (target_debug_print_struct_target_ops_p):
1430 Remove.
1431 (target_debug_print_async_callback_ftype_p): Remove.
1432 (target_debug_print_struct_trace_state_variable_p): Remove.
1433 (target_debug_print_struct_traceframe_info_p): Remove.
1434 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1435 (target_debug_print_enum_btrace_format): Remove.
1436 (target_debug_print_enum_info_proc_what): Remove.
1437 (target_debug_print_thread_info_pp): Remove.
1438
24f5300a
SM
14392020-10-22 Simon Marchi <simon.marchi@efficios.com>
1440
1441 * target.h (struct target_ops) <make_corefile_notes>:
1442 Change return type to unique pointer.
1443 * target.c (dummy_make_corefile_notes): Likewise.
1444 * exec.c (struct exec_target) <make_corefile_notes>:
1445 Likewise.
1446 (exec_target::make_corefile_notes): Likewise.
1447 * procfs.c (class procfs_target) <make_corefile_notes>:
1448 Likewise.
1449 (procfs_do_thread_registers): Adjust to unique pointer.
1450 (struct procfs_corefile_thread_data): Add constructor.
1451 <note_data>: Change type to unique pointer.
1452 (procfs_corefile_thread_callback): Adjust to unique pointer.
1453 (procfs_target::make_corefile_notes): Change return type to
1454 unique pointer.
1455 * target-delegates.c: Re-generate.
1456 * gcore.c (write_gcore_file_1): Adjust.
1457 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1458 New.
1459
5fb4027f
TV
14602020-10-22 Tom de Vries <tdevries@suse.de>
1461
1462 * block.c (find_block_in_blockvector): Make sure the returned block
1463 contains pc.
1464
4a636814
SM
14652020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 PR gdb/26693
1468 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1469 parameter.
1470 (load_cu): Pass existing CU.
1471 (process_imported_unit_die): Likewise.
1472 (follow_die_offset): Likewise.
1473
1bd57575
LM
14742020-10-22 Luis Machado <luis.machado@linaro.org>
1475
1476 * corelow.c (core_target::xfer_partial): Also check for an empty
1477 m_core_unavailable_mappings vector.
1478
6b4c676c
AB
14792020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1482 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1483 * f-exp.y (arglist): Allow for a series of subranges.
1484 (subrange): Add cases for subranges with strides.
1485 * f-lang.c (value_f90_subarray): Catch use of array strides and
1486 throw an error.
1487 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1488
f2d8e4c5
AB
14892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * expprint.c (print_subexp_standard): Change enum range_type to
1492 range_flag and rename variables to match.
1493 (dump_subexp_body_standard): Likewise.
1494 * expression.h (enum range_type): Rename to...
1495 (enum range_flag): ...this.
1496 (range_types): Rename to...
1497 (range_flags): ...this.
1498 * f-lang.c (value_f90_subarray): Change enum range_type to
1499 range_flag and rename variables to match.
1500 * parse.c (operator_length_standard): Likewise.
1501 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1502 range_type to range_flag.
1503 * rust-lang.c (rust_evaluate_funcall): Likewise.
1504 (rust_range): Likewise.
1505 (rust_compute_range): Likewise.
1506 (rust_subscript): Likewise.
1507
2f1b18db
AB
15082020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * expprint.c (print_subexp_standard): Update to reflect changes to
1511 enum range_type.
1512 (dump_subexp_body_standard): Likewise.
1513 * expression.h (enum range_type): Convert to a bit field enum, and
1514 make the enum unsigned.
1515 * f-exp.y (subrange): Update to reflect changes to enum
1516 range_type.
1517 * f-lang.c (value_f90_subarray): Likewise.
1518 * parse.c (operator_length_standard): Likewise.
1519 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1520 * rust-lang.c (rust_range): Likewise.
1521 (rust_compute_range): Likewise.
1522 (rust_subscript): Likewise.
1523
a46d1843
SM
15242020-10-21 Simon Marchi <simon.marchi@efficios.com>
1525
1526 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1527 (displaced_step_in_progress): Fix comment.
1528
c21f37a8
SM
15292020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1530
1531 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1532 * gdbarch.c: Re-generate.
1533 * gdbarch.h: Re-generate.
1534 * gcore.c (write_gcore_file_1): Adjust.
1535 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1536 constructor.
1537 <note_data>: Change type to unique pointer.
1538 <abort_iteration>: Change type to bool.
1539 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1540 (fbsd_collect_thread_registers): Return void, adjust.
1541 (struct fbsd_corefile_thread_data): Add construtor.
1542 <note_data>: Change type to unique pointer.
1543 (fbsd_corefile_thread): Adjust.
1544 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1545 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1546 to unique pointer, adjust.
1547 (struct linux_collect_regset_section_cb_data): Add constructor.
1548 <note_data>: Change type to unique pointer.
1549 <abort_iteration>: Change type to bool.
1550 (linux_collect_thread_registers): Return void, adjust.
1551 (struct linux_corefile_thread_data): Add constructor.
1552 <note_data>: Change type to unique pointer.
1553 (linux_corefile_thread): Adjust.
1554 (linux_make_corefile_notes): Return unique pointer, adjust.
1555
07fbbd01
SM
15562020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1559 * gdbarch.c: Re-generate.
1560 * gdbarch.h: Re-generate.
1561 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1562 bool.
1563 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1564 Likewise.
1565 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1566 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1567 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1568 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1569
39535193
SM
15702020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * gdbarch.sh: Make generated predicates return bool.
1573 * gdbarch.c: Re-generate.
1574 * gdbarch.h: Re-generate.
1575
ad523d01
TT
15762020-10-20 Tom Tromey <tom@tromey.com>
1577
1578 * varobj-iter.h (struct varobj_item): Remove typedef.
1579
c4464ade
SM
15802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * infrun.c (currently_stepping): Change int to bool
1583 (maybe_software_singlestep): Likewise.
1584 (show_stop_on_solib_events): Likewise.
1585 (stepping_past_nonsteppable_watchpoint): Likewise.
1586 (displaced_step_in_progress_any_inferior): Likewise.
1587 (displaced_step_in_progress_thread): Likewise.
1588 (keep_going_stepped_thread): Likewise.
1589 (thread_still_needs_step_over): Likewise.
1590 (start_step_over): Likewise.
1591 (do_target_resume): Likewise.
1592 (resume_1): Likewise.
1593 (clear_proceed_status): Likewise.
1594 (thread_still_needs_step_over_bp): Likewise.
1595 (proceed): Likewise.
1596 (switch_back_to_stepped_thread): Likewise.
1597 (adjust_pc_after_break): Likewise.
1598 (stepped_in_from): Likewise.
1599 (handle_stop_requested): Likewise.
1600 (handle_syscall_event): Likewise.
1601 (handle_no_resumed): Likewise.
1602 (handle_inferior_event): Likewise.
1603 (finish_step_over): Likewise.
1604 (handle_signal_stop): Likewise.
1605 (process_event_stop_test): Likewise.
1606
2eb20436
SM
16072020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * infrun.c (get_displaced_stepping_state): Fix comment.
1610
e0c45ded
AS
16112020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1612
1613 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1614
22cc388e
TT
16152020-10-19 Tom Tromey <tromey@adacore.com>
1616
1617 PR tui/26719
1618 * tui/tui-winsource.h (struct tui_source_window_base)
1619 <refresh_window>: Rename from refresh_pad.
1620 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1621 Rename from refresh_pad.
1622 (tui_source_window_base::show_source_content)
1623 (tui_source_window_base::do_scroll_horizontal): Update.
1624
3c6eb4d4
TBA
16252020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1626
1627 * thread.c (_initialize_thread): Fine-tune the help text of
1628 'info threads'.
1629
26703721
TBA
16302020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1631
1632 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1633
61c26be8
MS
16342020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1635
1636 * breakpoint.c (handle_jit_event): Add an argument, change how
1637 `jit_event_handler` is called.
1638
932539d7
TT
16392020-10-17 Tom Tromey <tom@tromey.com>
1640
1641 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1642 (scan_xcoff_symtab): Update.
1643 * psymtab.h (class psymtab_storage) <global_psymbols,
1644 static_psymbols, current_global_psymbols,
1645 current_static_psymbols>: Remove.
1646 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1647 (match_partial_symbol, lookup_partial_symbol): Update.
1648 (print_partial_symbols): Change parameters.
1649 (dump_psymtab, recursively_search_psymtabs)
1650 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1651 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1652 (concat): Remove.
1653 (end_psymtab_common): Simplify.
1654 (append_psymbol_to_list): Change parameters.
1655 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1656 (init_psymbol_list): Simplify.
1657 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1658 * psympriv.h (struct partial_symtab) <empty>: New method.
1659 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1660 Remove.
1661 <global_psymbols, static_psymbols>: New members.
1662 <add_psymbol>: New methods.
1663 (add_psymbol_to_list): Don't declare.
1664 (psymbol_placement): Move earlier.
1665 * mdebugread.c (parse_partial_symbols): Update.
1666 (handle_psymbol_enumerators): Change parameters.
1667 (mdebug_expand_psymtab): Update.
1668 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1669 (add_partial_symbol): Update.
1670 * dwarf2/index-write.c (write_psymbols): Change parameters.
1671 (write_one_signatured_type): Update.
1672 (recursively_count_psymbols): Update.
1673 (recursively_write_psymbols): Update.
1674 (class debug_names) <recursively_write_psymbols>: Update.
1675 <write_psymbols>: Change parameters.
1676 <write_one_signatured_type>: Update.
1677 * dbxread.c (read_dbx_symtab): Update.
1678 (dbx_end_psymtab): Use partial_symtab::empty.
1679 * ctfread.c (struct ctf_context) <pst>: New member.
1680 (create_partial_symtab): Set it.
1681 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1682 (scan_partial_symbols): Use the psymtab's context. Update.
1683
cfabbd35
TT
16842020-10-17 Tom Tromey <tom@tromey.com>
1685
1686 * valprint.c (generic_value_print): Remove comment.
1687 * m2-valprint.c (m2_value_print_inner): Remove comment.
1688 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1689 type.
1690
520596f2
TV
16912020-10-17 Tom de Vries <tdevries@suse.de>
1692
1693 PR symtab/26317
1694 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1695 symbol main.
1696
76547ab3
TV
16972020-10-14 Tom de Vries <tdevries@suse.de>
1698
1699 PR gdb/26733
1700 * solib.c (solib_contains_address_p): Handle
1701 'solib->sections == nullptr'.
1702
d3a07122
SM
17032020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 PR gdb/26642
1706 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1707 target can't do async.
1708 * target.c (target_wait): Assert that we don't pass
1709 TARGET_WNOHANG to a target that can't async.
1710
1b71cfcf
KR
17112020-10-13 Kamil Rytarowski <n54@gmx.com>
1712
1713 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1714 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1715 * alpha-bsd-nat.c: Adjust include.
1716 * alpha-bsd-tdep.h: Adjust comment.
1717 * alpha-nbsd-tdep.c: Rename to ...
1718 * alpha-netbsd-tdep.c: ... this, adjust include.
1719 * amd64-nbsd-nat.c: Rename to ...
1720 * amd64-netbsd-nat.c: ... this, adjust include.
1721 * amd64-nbsd-tdep.c: Rename to ...
1722 * amd64-netbsd-tdep.c: ... this, adjust include.
1723 * amd64-tdep.h: Adjust include.
1724 * arm-nbsd-nat.c: Rename to ...
1725 * arm-netbsd-nat.c: ... this, adjust include.
1726 * arm-nbsd-tdep.c: Rename to ...
1727 * arm-netbsd-tdep.c: ... this, adjust include.
1728 * arm-nbsd-tdep.h: Rename to ...
1729 * arm-netbsd-tdep.h: ... this, adjust include.
1730 * configure.nat: Adjust file lists.
1731 * configure.tgt: Likewise.
1732 * hppa-nbsd-nat.c: Rename to ...
1733 * hppa-netbsd-nat.c: ... this, adjust include.
1734 * hppa-nbsd-tdep.c: Rename to ...
1735 * hppa-netbsd-tdep.c: ... this, adjust include.
1736 * i386-nbsd-nat.c: Rename to ...
1737 * i386-netbsd-nat.c: ... this, adjust include.
1738 * i386-nbsd-tdep.c: Rename to ...
1739 * i386-netbsd-tdep.c: ... this, adjust include.
1740 * m68k-bsd-nat.c: Adjust include.
1741 * mips-nbsd-nat.c: Rename to ...
1742 * mips-netbsd-nat.c: ... this, adjust include.
1743 * mips-nbsd-tdep.c: Rename to ...
1744 * mips-netbsd-tdep.c: ... this, adjust include.
1745 * mips-nbsd-tdep.h: Rename to ...
1746 * mips-netbsd-tdep.h: ... this.
1747 * nbsd-nat.c: Rename to ...
1748 * netbsd-nat.c: ... this, adjust include.
1749 * nbsd-nat.h: Rename to ...
1750 * netbsd-nat.h: ... this, adjust include.
1751 * nbsd-tdep.c: Rename to ...
1752 * netbsd-tdep.c: ... this, adjust include.
1753 * nbsd-tdep.h: Rename to ...
1754 * netbsd-tdep.h: ... this.
1755 * ppc-nbsd-nat.c: Rename to ...
1756 * ppc-netbsd-nat.c: ... this, adjust include.
1757 * ppc-nbsd-tdep.c: Rename to ...
1758 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1759 * ppc-nbsd-tdep.h: Rename to ...
1760 * ppc-netbsd-tdep.h: ... this.
1761 * sh-nbsd-nat.c: Rename to ...
1762 * sh-netbsd-nat.c: ... this, adjust include.
1763 * sh-nbsd-tdep.c: Rename to ...
1764 * sh-netbsd-tdep.c: ... this, adjust include.
1765 * sparc-nbsd-nat.c: Rename to ...
1766 * sparc-netbsd-nat.c: ... this.
1767 * sparc-nbsd-tdep.c: Rename to ...
1768 * sparc-netbsd-tdep.c: ... this, adjust include.
1769 * sparc64-nbsd-nat.c: Rename to ...
1770 * sparc64-netbsd-nat.c: ... this.
1771 * sparc64-nbsd-tdep.c: Rename to ...
1772 * sparc64-netbsd-tdep.c: ... this, adjust include.
1773 * sparc64-tdep.h: Adjust comment.
1774 * vax-bsd-nat.c: Adjust include.
1775 * vax-nbsd-tdep.c: Rename to ...
1776 * vax-netbsd-tdep.c: ... this, adjust include.
1777
d7a78e5c
TT
17782020-10-12 Tom Tromey <tom@tromey.com>
1779
1780 * target.h (struct target_ops) <get_section_table>: Update.
1781 (target_get_section_table): Update.
1782 * target.c (target_get_section_table, target_section_by_addr)
1783 (memory_xfer_partial_1): Update.
1784 * target-section.h (target_section_table): Now an alias.
1785 * target-delegates.c: Rebuild.
1786 * target-debug.h (target_debug_print_target_section_table_p):
1787 Rename from target_debug_print_struct_target_section_table_p.
1788 * symfile.c (build_section_addr_info_from_section_table): Update.
1789 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1790 * solib-svr4.c (scan_dyntag): Update.
1791 * solib-dsbt.c (scan_dyntag): Update.
1792 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1793 Update.
1794 * record-full.c (record_full_core_target::xfer_partial): Update.
1795 * progspace.h (struct program_space) <target_sections>: Update.
1796 * exec.h (print_section_info): Update.
1797 * exec.c (exec_target::close, build_section_table)
1798 (add_target_sections, add_target_sections_of_objfile)
1799 (remove_target_sections, exec_on_vfork)
1800 (section_table_available_memory)
1801 (section_table_xfer_memory_partial)
1802 (exec_target::get_section_table, exec_target::xfer_partial)
1803 (print_section_info, set_section_command)
1804 (exec_set_section_address, exec_target::has_memory): Update.
1805 * corelow.c (core_target::build_file_mappings)
1806 (core_target::xfer_partial, core_target::info_proc_mappings)
1807 (core_target::info_proc_mappings): Update.
1808 * bfd-target.c (class target_bfd): Update
1809
eda214ce
TT
18102020-10-12 Tom Tromey <tom@tromey.com>
1811
1812 * progspace.c (program_space::~program_space): Don't call
1813 clear_section_table.
1814 * exec.h (clear_section_table): Don't declare.
1815 * exec.c (exec_target::close): Update.
1816 (clear_section_table): Remove.
1817
91840ee3
TT
18182020-10-12 Tom Tromey <tom@tromey.com>
1819
1820 * exec.c (add_target_sections_of_objfile): Simplify.
1821
2d128614
TT
18222020-10-12 Tom Tromey <tom@tromey.com>
1823
1824 * solib.c (solib_map_sections): Update.
1825 * record-full.c (record_full_core_open_1): Update.
1826 * exec.h (build_section_table): Return a target_section_table.
1827 * exec.c (exec_file_attach): Update.
1828 (build_section_table): Return a target_section_table.
1829 * corelow.c (core_target::core_target): Update.
1830 * bfd-target.c (target_bfd::target_bfd): Update.
1831
bb2a6777
TT
18322020-10-12 Tom Tromey <tom@tromey.com>
1833
1834 * target.c (target_section_by_addr, memory_xfer_partial_1):
1835 Update.
1836 * target-section.h (struct target_section_table): Use
1837 std::vector.
1838 * symfile.h (build_section_addr_info_from_section_table): Take a
1839 target_section_table.
1840 * symfile.c (build_section_addr_info_from_section_table): Take a
1841 target_section_table.
1842 * solist.h (struct so_list) <sections>: Change type.
1843 <sections_end>: Remove.
1844 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1845 (solib_contains_address_p): Update.
1846 * solib-svr4.c (scan_dyntag): Update.
1847 * solib-dsbt.c (scan_dyntag): Update.
1848 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1849 Update.
1850 * record-full.c (record_full_core_start, record_full_core_end):
1851 Remove.
1852 (record_full_core_sections): New global.
1853 (record_full_core_open_1, record_full_core_target::xfer_partial):
1854 Update.
1855 * exec.h (build_section_table, section_table_xfer_memory_partial)
1856 (add_target_sections): Take a target_section_table.
1857 * exec.c (exec_file_attach, clear_section_table): Update.
1858 (resize_section_table): Remove.
1859 (build_section_table, add_target_sections): Take a
1860 target_section_table.
1861 (add_target_sections_of_objfile, remove_target_sections)
1862 (exec_on_vfork): Update.
1863 (section_table_available_memory): Take a target_section_table.
1864 (section_table_read_available_memory): Update.
1865 (section_table_xfer_memory_partial): Take a target_section_table.
1866 (print_section_info, set_section_command)
1867 (exec_set_section_address, exec_target::has_memory): Update.
1868 * corelow.c (class core_target) <m_core_section_table,
1869 m_core_file_mappings>: Remove braces.
1870 <~core_target>: Remove.
1871 (core_target::core_target): Update.
1872 (core_target::~core_target): Remove.
1873 (core_target::build_file_mappings)
1874 (core_target::xfer_memory_via_mappings)
1875 (core_target::xfer_partial, core_target::info_proc_mappings):
1876 Update.
1877 * bfd-target.c (target_bfd::xfer_partial): Update.
1878 (target_bfd::target_bfd): Update.
1879 (target_bfd::~target_bfd): Remove.
1880
7b466b10
TT
18812020-10-12 Tom Tromey <tom@tromey.com>
1882
1883 * target.h (struct target_section, struct target_section_table):
1884 Move to target-section.h.
1885 * target-section.h: New file.
1886
87a37e5e
PA
18872020-10-12 Pedro Alves <pedro@palves.net>
1888
1889 PR exp/26602
1890 * valops.c (struct struct_field_searcher): New.
1891 (update_search_result): Rename to ...
1892 (struct_field_searcher::update_result): ... this. Simplify
1893 prototype. Record all found fields.
1894 (do_search_struct_field): Rename to ...
1895 (struct_field_searcher::search): ... this. Simplify prototype.
1896 Maintain stack of visited baseclass path. Call update_result for
1897 fields too. Keep searching fields in baseclasses instead of
1898 stopping at the first found field.
1899 (search_struct_field): Use struct_field_searcher. When looking
1900 for fields, report ambiguous access attempts.
1901
9370fd51
AB
19022020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * frame.c (inside_main_func): Check full symbols as well as
1905 minimal symbols.
1906
59c8a30b
JB
19072020-10-09 Joel Brobecker <brobecker@adacore.com>
1908
1909 * ada-lang.c (advance_wild_match): Rewrite the function's
1910 description. Change the type of target0, t0 and t1 to char.
1911
7c184d33
TT
19122020-10-09 Tom Tromey <tromey@adacore.com>
1913
1914 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1915
5c4258f4
TT
19162020-10-09 Tom Tromey <tromey@adacore.com>
1917
1918 * ada-lang.h (ada_encode): Return std::string.
1919 * ada-lang.c (ada_encode_1): Return std::string.
1920 (ada_encode): Likewise.
1921 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1922 Update.
1923 * ada-exp.y (block_lookup, write_var_or_type): Update.
1924
3d87245c
HD
19252020-10-09 Hannes Domani <ssbssa@yahoo.de>
1926
1927 PR exp/26714
1928 * printcmd.c (print_formatted): Handle void results as
1929 unformatted prints.
1930
bbb826f5
AB
19312020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * arch/aarch32.c (aarch32_create_target_description): Release the
1934 target_desc_up as late as possible.
1935 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1936 * arch/amd64.c (amd64_create_target_description): Likewise.
1937 * arch/arc.c (arc_create_target_description): Return a
1938 target_desc_up, don't release it.
1939 * arch/arc.h (arc_create_target_description): Update declaration.
1940 (arc_lookup_target_description): Move target_desc_up into the
1941 cache, and return a borrowed pointer.
1942 * arch/arm.c (arm_create_target_description): Release the
1943 target_desc_up as late as possible.
1944 * arch/i386.c (i386_create_target_description): Likewise.
1945 * arch/riscv.h (riscv_create_target_description): Update
1946 declaration to match definition.
1947 * arch/tic6x.c (tic6x_create_target_description): Release the
1948 target_desc_up as late as possible.
1949
361cb219
AB
19502020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1953 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1954
f5c4b229
JV
19552020-10-09 Jan Vrany <jan.vrany@labware.com>
1956
1957 * source.c (directory_command): Notify observers that "directories"
1958 parameter has changed.
1959
b2701685
TT
19602020-10-08 Tom Tromey <tom@tromey.com>
1961
1962 * cli/cli-cmds.c (print_disassembly): Style function name and
1963 addresses. Add _() wrappers.
1964
ada508b6
SV
19652020-10-08 Shahab Vahedi <shahab@synopsys.com>
1966
1967 * NEWS: Mention ARC support in GDBserver.
1968
51a948fd
AB
19692020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * arch/aarch32.c (aarch32_create_target_description): Release
1972 unique_ptr returned from allocate_target_description.
1973 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1974 * arch/amd64.c (amd64_create_target_description): Likewise.
1975 * arch/arc.c (arc_create_target_description): Likewise.
1976 * arch/arm.c (arm_create_target_description): Likewise.
1977 * arch/i386.c (i386_create_target_description): Likewise.
1978 * arch/riscv.c (riscv_create_target_description): Update return
1979 type. Handle allocate_target_description returning a unique_ptr.
1980 (riscv_lookup_target_description): Update to handle unique_ptr.
1981 * arch/tic6x.c (tic6x_create_target_description): Release
1982 unique_ptr returned from allocate_target_description.
1983 * features/microblaze-with-stack-protect.c: Regenerate.
1984 * features/microblaze.c: Regenerate.
1985 * features/mips-dsp-linux.c: Regenerate.
1986 * features/mips-linux.c: Regenerate.
1987 * features/mips64-dsp-linux.c: Regenerate.
1988 * features/mips64-linux.c: Regenerate.
1989 * features/nds32.c: Regenerate.
1990 * features/nios2.c: Regenerate.
1991 * features/or1k.c: Regenerate.
1992 * features/rs6000/powerpc-32.c: Regenerate.
1993 * features/rs6000/powerpc-32l.c: Regenerate.
1994 * features/rs6000/powerpc-403.c: Regenerate.
1995 * features/rs6000/powerpc-403gc.c: Regenerate.
1996 * features/rs6000/powerpc-405.c: Regenerate.
1997 * features/rs6000/powerpc-505.c: Regenerate.
1998 * features/rs6000/powerpc-601.c: Regenerate.
1999 * features/rs6000/powerpc-602.c: Regenerate.
2000 * features/rs6000/powerpc-603.c: Regenerate.
2001 * features/rs6000/powerpc-604.c: Regenerate.
2002 * features/rs6000/powerpc-64.c: Regenerate.
2003 * features/rs6000/powerpc-64l.c: Regenerate.
2004 * features/rs6000/powerpc-7400.c: Regenerate.
2005 * features/rs6000/powerpc-750.c: Regenerate.
2006 * features/rs6000/powerpc-860.c: Regenerate.
2007 * features/rs6000/powerpc-altivec32.c: Regenerate.
2008 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2009 * features/rs6000/powerpc-altivec64.c: Regenerate.
2010 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2011 * features/rs6000/powerpc-e500.c: Regenerate.
2012 * features/rs6000/powerpc-e500l.c: Regenerate.
2013 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2014 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2015 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2016 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2017 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2018 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2019 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2020 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2021 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2022 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2023 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2024 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2025 * features/rs6000/powerpc-vsx32.c: Regenerate.
2026 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2027 * features/rs6000/powerpc-vsx64.c: Regenerate.
2028 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2029 * features/rs6000/rs6000.c: Regenerate.
2030 * features/rx.c: Regenerate.
2031 * features/s390-gs-linux64.c: Regenerate.
2032 * features/s390-linux32.c: Regenerate.
2033 * features/s390-linux32v1.c: Regenerate.
2034 * features/s390-linux32v2.c: Regenerate.
2035 * features/s390-linux64.c: Regenerate.
2036 * features/s390-linux64v1.c: Regenerate.
2037 * features/s390-linux64v2.c: Regenerate.
2038 * features/s390-te-linux64.c: Regenerate.
2039 * features/s390-tevx-linux64.c: Regenerate.
2040 * features/s390-vx-linux64.c: Regenerate.
2041 * features/s390x-gs-linux64.c: Regenerate.
2042 * features/s390x-linux64.c: Regenerate.
2043 * features/s390x-linux64v1.c: Regenerate.
2044 * features/s390x-linux64v2.c: Regenerate.
2045 * features/s390x-te-linux64.c: Regenerate.
2046 * features/s390x-tevx-linux64.c: Regenerate.
2047 * features/s390x-vx-linux64.c: Regenerate.
2048 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2049 from allocate_target_description.
2050 * target-descriptions.c (allocate_target_description): Update
2051 return type.
2052 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2053 allocate_target_description.
2054
485c47e5
TT
20552020-10-07 Tom Tromey <tromey@adacore.com>
2056
2057 * unittests/search-memory-selftests.c: New file.
2058 * Makefile.in (SELFTESTS_SRCS): Add
2059 unittests/search-memory-selftests.c.
2060
3a135a91
TT
20612020-10-07 Tom Tromey <tromey@adacore.com>
2062
2063 PR gdb/16930:
2064 * findcmd.c (_initialize_mem_search): Mention that the range is
2065 inclusive.
2066
4a72de73
TT
20672020-10-07 Tom Tromey <tromey@adacore.com>
2068
2069 * target.h (simple_search_memory): Don't declare.
2070 * target.c (simple_search_memory): Move to gdbsupport.
2071 (default_search_memory): Update.
2072 * remote.c (remote_target::search_memory): Update.
2073
a038ffd8
SM
20742020-10-07 Simon Marchi <simon.marchi@efficios.com>
2075
2076 * Makefile.in (COMPILE): Add CXXFLAGS.
2077 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2078 (check-headers): Add CXXFLAGS.
2079
cc463201
AK
20802020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2081
2082 * arc-linux-tdep.h: New file.
2083 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2084 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2085 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2086 arc_linux_gregset, arc_linux_v2_regset,
2087 arc_linux_iterate_over_regset_sections,
2088 arc_linux_core_read_description): Implement.
2089 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2090 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2091 (arc_gdbarch_features_create): Add.
2092 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2093
e4bd363f
SV
20942020-10-07 Shahab Vahedi <shahab@synopsys.com>
2095
2096 * arch/arc.h: Rename "arc_gdbarch_features" to
2097 "arc_arch_features".
2098 * arc-tdep.h: Likewise.
2099 * arc-tdep.c: Likewise.
2100
b68bef99
TBA
21012020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102
2103 * infcmd.c (attach_command): Remove the redundant call to
2104 `clear_proceed_status`.
2105
4641551a
KR
21062020-10-07 Kamil Rytarowski <n54@gmx.com>
2107
2108 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2109
91e5e8db
KR
21102020-10-07 Kamil Rytarowski <n54@gmx.com>
2111
2112 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2113 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2114 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2115
64c03bdb
SM
21162020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2119 (_initialize_break_catch_sig): Don't allocate array.
2120
31a8f60f
AB
21212020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * symtab.c (find_pc_line): Return unmapped addresses when the
2124 requested address is also unmapped.
2125
9e6dbd8b
SM
21262020-10-05 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2129 tui/tui-out.h.
2130
a1d217e8
SM
21312020-10-05 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2134 type::is_vector instead of TYPE_VECTOR.
2135
7d144117
SM
21362020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 * auto-load.c (auto_load_objfile_script_1): Don't use
2139 debugfile_holder as temporary variable when stripping drive
2140 letter.
2141
cd096ec8
HD
21422020-10-05 Hannes Domani <ssbssa@yahoo.de>
2143
2144 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2145 Add TYPE_CODE_COMPLEX.
2146 (amd64_windows_return_value): Fix types returned via XMM0.
2147
b58e7f72
AH
21482020-10-05 Alan Hayward <alan.hayward@arm.com>
2149
2150 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2151 AArch64/ARM maintainers.
2152
8d378f27
SM
21532020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * NEWS: Mention set/show debug event-loop.
2156
d5519913
TT
21572020-10-02 Tom Tromey <tromey@adacore.com>
2158
2159 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2160 REG_EXTENDED.
2161
18b67edc
SM
21622020-10-02 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2165 * procfs.c (procfs_inferior_created): Remove.
2166 (_initialize_procfs): Don't register procfs_inferior_created.
2167
6b01403b
SM
21682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * async-event.c (invoke_async_signal_handlers): Add debug
2171 print.
2172 (check_async_event_handlers): Likewise.
2173 * event-top.c (show_debug_event_loop): New function.
2174 (_initialize_event_top): Register "set debug event-loop"
2175 setting.
2176
ba988419
SM
21772020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2180 * debug.h: Remove.
2181 * infrun.c: Include gdbsupport/common-debug.h.
2182 * linux-nat.c: Likewise.
2183
db20ebdf
SM
21842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * async-event.h (create_async_signal_handler): Add name
2187 parameter.
2188 (create_async_event_handler): Likewise.
2189 * async-event.c (struct async_signal_handler) <name>: New field.
2190 (struct async_event_handler) <name>: New field.
2191 (create_async_signal_handler): Assign name.
2192 (create_async_event_handler): Assign name.
2193 * event-top.c (async_init_signals): Pass name when creating
2194 handler.
2195 * infrun.c (_initialize_infrun): Likewise.
2196 * record-btrace.c (record_btrace_push_target): Likewise.
2197 * record-full.c (record_full_open): Likewise.
2198 * remote-notif.c (remote_notif_state_allocate): Likewise.
2199 * remote.c (remote_target::open_1): Likewise.
2200 * tui/tui-win.c (tui_initialize_win): Likewise.
2201
2554f6f5
SM
22022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * async-event.c (initialize_async_signal_handlers): Pass name to
2205 add_file_handler
2206 * event-top.c (ui_register_input_event_handler): Likewise.
2207 * linux-nat.c (linux_nat_target::async): Likewise.
2208 * run-on-main-thread.c (_initialize_run_on_main_thread):
2209 Likewise
2210 * ser-base.c (reschedule): Likewise.
2211 (ser_base_async): Likewise.
2212 * tui/tui-io.c: Likewise.
2213 * top.h (struct ui) <num>: New field.
2214 * top.c (highest_ui_num): New variable.
2215 (ui::ui): Initialize num.
2216
a7aba266
SM
22172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * observable.h <inferior_created>: Remove parameters. Update all
2220 listeners.
2221 * inferior.h (post_create_inferior): Remove target parameter.
2222 Update all callers.
2223
048fde1e 22242020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2225
2226 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2227 and DW_MACRO_undef_strx.
2228 (dwarf_decode_macros): Likewise
2229 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2230 which is the value of DW_AT_str_offsets_base.
2231 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2232 str_offsets_base.
2233
064280be
KR
22342020-10-01 Kamil Rytarowski <n54@gmx.com>
2235
2236 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2237
6ff33035
KR
22382020-10-01 Kamil Rytarowski <n54@gmx.com>
2239
2240 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2241 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2242
1eb6eb79
KR
22432020-10-01 Kamil Rytarowski <n54@gmx.com>
2244
2245 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2246
95eb9e54
TV
22472020-09-30 Tom de Vries <tdevries@suse.de>
2248
2249 PR symtab/26683
2250 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2251
cae21f8e
TT
22522020-09-30 Tom Tromey <tromey@adacore.com>
2253
2254 * dwarf2/read.c (handle_variant): Use constant_value.
2255
529908cb
TT
22562020-09-29 Tom Tromey <tom@tromey.com>
2257
2258 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2259 (read_file_scope, dwarf2_get_pc_bounds)
2260 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2261 (read_structure_type, handle_struct_member_die)
2262 (read_enumeration_type, read_array_type, read_set_type)
2263 (read_tag_pointer_type, read_tag_reference_type)
2264 (read_subroutine_type, read_base_type, read_subrange_type)
2265 (read_full_die_1, partial_die_info::read)
2266 (partial_die_info::read, by, new_symbol)
2267 (dwarf2_const_value_data, dwarf2_const_value_attr)
2268 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2269 (prepare_one_comp_unit): Update.
2270 * dwarf2/attribute.h (DW_UNSND): Remove.
2271
c45bc3f8
TT
22722020-09-29 Tom Tromey <tom@tromey.com>
2273
2274 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2275 (read_subroutine_type, partial_die_info::read)
2276 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2277 (dwarf2_add_member_fn): Update.
2278 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2279 * dwarf2/attribute.c (attribute::as_boolean): New method.
2280
23dca5c3
TT
22812020-09-29 Tom Tromey <tom@tromey.com>
2282
2283 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2284 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2285 method.
2286 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2287
52c14d11
TT
22882020-09-29 Tom Tromey <tom@tromey.com>
2289
2290 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2291 the attribute's form.
2292
e8e5c158
TT
22932020-09-29 Tom Tromey <tom@tromey.com>
2294
2295 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2296 (dwarf2_add_member_fn): Update.
2297 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2298 * dwarf2/attribute.c (attribute::defaulted): New method, from
2299 is_valid_DW_AT_defaulted.
2300
d4df075e
TT
23012020-09-29 Tom Tromey <tom@tromey.com>
2302
2303 * dwarf2/read.c (dw2_get_file_names_reader)
2304 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2305 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2306 (dwarf2_symbol_mark_computed): Use as_unsigned.
2307 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2308 method.
2309 <form_is_section_offset>: Update comment.
2310
bf23a268
TT
23112020-09-29 Tom Tromey <tom@tromey.com>
2312
2313 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2314 dwarf2_default_access_attribute. Look up attribute.
2315 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2316 Update.
2317
7a5f294d
TT
23182020-09-29 Tom Tromey <tom@tromey.com>
2319
2320 * dwarf2/read.c (skip_one_die): Update.
2321 (read_full_die_1): Change how reprocessing is done.
2322 (partial_die_info::read): Update.
2323 (read_attribute_value): Remove need_reprocess parameter.
2324 (read_attribute): Likewise.
2325 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2326 New method.
2327
36d378cf
TT
23282020-09-29 Tom Tromey <tom@tromey.com>
2329
2330 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2331 (dwarf2_const_value_attr, dump_die_shallow)
2332 (dwarf2_fetch_constant_bytes): Update.
2333 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2334 comment.
2335 <set_address>: New method.
2336 (DW_ADDR): Remove.
2337 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2338 (attribute::as_string, attribute::as_address): Add assert.
2339
fe56917a
TT
23402020-09-29 Tom Tromey <tom@tromey.com>
2341
2342 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2343 (read_attribute_reprocess, read_attribute_value): Update.
2344 (read_attribute): Clear requires_reprocessing.
2345 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2346 form_requires_reprocessing>: New methods.
2347 <string_init>: Clear requires_reprocessing.
2348 <set_unsigned_reprocess>: New method.
2349 <name>: Shrink by one bit.
2350 <requires_reprocessing>: New member.
2351 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2352 method.
2353
414ad644
TT
23542020-09-29 Tom Tromey <tom@tromey.com>
2355
2356 * dwarf2/read.c (read_attribute_value): Update.
2357 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2358 set_unsigned>: New methods.
2359 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2360
1bc397c5
TT
23612020-09-29 Tom Tromey <tom@tromey.com>
2362
2363 * dwarf2/read.c (get_alignment, read_array_order)
2364 (read_attribute_value, dwarf2_const_value_attr)
2365 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2366 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2367 New methods.
2368 (DW_SND): Remove.
2369
630ed6b9
TT
23702020-09-29 Tom Tromey <tom@tromey.com>
2371
2372 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2373 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2374 Update.
2375 * dwarf2/attribute.h (struct attribute) <as_signature,
2376 set_signature>: New methods.
2377 (DW_SIGNATURE): Remove.
2378
9d2246fc
TT
23792020-09-29 Tom Tromey <tom@tromey.com>
2380
2381 * dwarf2/read.c (read_call_site_scope)
2382 (handle_data_member_location, dwarf2_add_member_fn)
2383 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2384 (partial_die_info::read, read_attribute_value)
2385 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2386 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2387 (dwarf2_symbol_mark_computed): Update.
2388 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2389 methods.
2390 (DW_BLOCK): Remove.
2391 * dwarf2/attribute.c (attribute::form_is_block): Add
2392 DW_FORM_data16.
2393
c6481205
TT
23942020-09-29 Tom Tromey <tom@tromey.com>
2395
2396 * dwarf2/read.c (read_cutu_die_from_dwo)
2397 (read_attribute_reprocess, read_attribute_value, read_attribute)
2398 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2399 (dwarf2_fetch_constant_bytes): Update.
2400 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2401 <set_string_noncanonical, set_string_canonical>: New methods.
2402 <string_is_canonical>: Update comment.
2403 <canonical_string_p>: Add assert.
2404 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2405 * dwarf2/attribute.c (attribute::form_is_string): New method.
2406 (attribute::string): Use it.
2407
3b64bf15
TT
24082020-09-29 Tom Tromey <tom@tromey.com>
2409
2410 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2411 (dump_die_shallow): Use canonical_string_p.
2412 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2413 method.
2414
2c830f54
TT
24152020-09-29 Tom Tromey <tom@tromey.com>
2416
2417 * dwarf2/read.c (partial_die_info::read)
2418 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2419 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2420 attribute::as_string.
2421
6c412691
TT
24222020-09-29 Tom Tromey <tom@tromey.com>
2423
2424 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2425 DW_ADDR.
2426 (attribute::string): Don't use DW_STRING.
2427 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2428 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2429
95f982e5
TT
24302020-09-29 Tom Tromey <tom@tromey.com>
2431
2432 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2433 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2434 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2435 * dwarf2/attribute.h (struct attribute): Rename methods.
2436 * dwarf2/attribute.c (attribute::as_address): Rename from
2437 value_as_address.
2438 (attribute::as_string): Rename from value_as_string.
2439
f800b00e
TT
24402020-09-29 Tom Tromey <tom@tromey.com>
2441
2442 * dwarf2/read.c (partial_die_info::read) <case
2443 DW_AT_linkage_name>: Use value_as_string.
2444 (dwarf2_string_attr): Use value_as_string.
2445 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2446 method.
2447 * dwarf2/attribute.c (attribute::value_as_string): New method.
2448
de38d64a
PA
24492020-09-29 Pedro Alves <pedro@palves.net>
2450
2451 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2452 defined before using '#pragma GCC diagnostic' instead of checking
2453 __clang__.
2454
9aed480c
TT
24552020-09-28 Tom Tromey <tom@tromey.com>
2456
2457 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2458 (handle_signal_stop): Update.
2459 * procfs.c (procfs_target::insert_watchpoint): Update.
2460 * target.h (target_have_steppable_watchpoint): Now a function.
2461
8a3ecb79
TT
24622020-09-28 Tom Tromey <tom@tromey.com>
2463
2464 * infrun.c (set_schedlock_func): Update.
2465 * target.h (target_can_lock_scheduler): Now a function.
2466
55f6301a
TT
24672020-09-28 Tom Tromey <tom@tromey.com>
2468
2469 * inferior.h (class inferior) <has_execution>: Update.
2470 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2471 * valops.c (find_function_in_inferior)
2472 (value_allocate_space_in_inferior): Update.
2473 * top.c (kill_or_detach): Update.
2474 * target.c (target_preopen, set_target_permissions): Update.
2475 (target_has_execution_current): Remove.
2476 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2477 Update.
2478 * solib.c (update_solib_list, reload_shared_libraries): Update.
2479 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2480 * solib-dsbt.c (enable_break): Update.
2481 * score-tdep.c (score7_fetch_inst): Update.
2482 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2483 Update.
2484 * remote.c (remote_target::start_remote)
2485 (remote_target::remote_check_symbols, remote_target::open_1)
2486 (remote_target::remote_detach_1, remote_target::verify_memory)
2487 (remote_target::xfer_partial, remote_target::read_description)
2488 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2489 * record-full.c (record_full_open_1): Update.
2490 * record-btrace.c (record_btrace_target_open): Update.
2491 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2492 (value_nsstring): Update.
2493 * linux-thread-db.c (add_thread_db_info)
2494 (thread_db_find_new_threads_silently, check_thread_db_callback)
2495 (try_thread_db_load_1, record_thread): Update.
2496 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2497 Update.
2498 * linux-fork.c (checkpoint_command): Update.
2499 * infrun.c (set_non_stop, set_observer_mode)
2500 (check_multi_target_resumption, for_each_just_stopped_thread)
2501 (maybe_remove_breakpoints, normal_stop)
2502 (class infcall_suspend_state): Update.
2503 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2504 (info_program_command, attach_command): Update.
2505 * infcall.c (call_function_by_hand_dummy): Update.
2506 * inf-loop.c (inferior_event_handler): Update.
2507 * gcore.c (gcore_command, derive_heap_segment): Update.
2508 * exec.c (exec_file_command): Update.
2509 * eval.c (evaluate_subexp): Update.
2510 * compile/compile.c (compile_to_object): Update.
2511 * cli/cli-dump.c (restore_command): Update.
2512 * breakpoint.c (update_watchpoint)
2513 (update_inserted_breakpoint_locations)
2514 (insert_breakpoint_locations, get_bpstat_thread): Update.
2515 * target.h (target_has_execution): Remove macro.
2516 (target_has_execution_current): Don't declare.
2517 (target_has_execution): Rename from target_has_execution_1. Add
2518 argument default.
2519
05374cfd
TT
25202020-09-28 Tom Tromey <tom@tromey.com>
2521
2522 * mi/mi-main.c (exec_reverse_continue)
2523 (mi_cmd_list_target_features): Update.
2524 * infrun.c (set_exec_direction_func): Update.
2525 * target.c (default_execution_direction): Update.
2526 * reverse.c (exec_reverse_once): Update.
2527 * target.h (target_can_execute_reverse): Now a function.
2528
9dccd06e
TT
25292020-09-28 Tom Tromey <tom@tromey.com>
2530
2531 * tui/tui-regs.c (tui_get_register)
2532 (tui_data_window::show_registers): Update.
2533 * thread.c (scoped_restore_current_thread::restore)
2534 (scoped_restore_current_thread::scoped_restore_current_thread):
2535 Update.
2536 * regcache-dump.c (regcache_print): Update.
2537 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2538 Update.
2539 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2540 * mep-tdep.c (current_me_module, current_options): Update.
2541 * linux-thread-db.c (thread_db_load): Update.
2542 * infcmd.c (registers_info, info_vector_command)
2543 (info_float_command): Update.
2544 * ia64-tdep.c (ia64_frame_prev_register)
2545 (ia64_sigtramp_frame_prev_register): Update.
2546 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2547 * gcore.c (derive_stack_segment): Update.
2548 * frame.c (get_current_frame, has_stack_frames): Update.
2549 * findvar.c (language_defn::read_var_value): Update.
2550 * arm-tdep.c (arm_pc_is_thumb): Update.
2551 * target.c (target_has_registers): Rename from
2552 target_has_registers_1.
2553 * target.h (target_has_registers): Remove macro.
2554 (target_has_registers): Rename from target_has_registers_1.
2555
841de120
TT
25562020-09-28 Tom Tromey <tom@tromey.com>
2557
2558 * windows-tdep.c (tlb_make_value): Update.
2559 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2560 * thread.c (scoped_restore_current_thread::restore)
2561 (scoped_restore_current_thread::scoped_restore_current_thread)
2562 (thread_command): Update.
2563 * stack.c (backtrace_command_1, frame_apply_level_command)
2564 (frame_apply_all_command, frame_apply_command): Update.
2565 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2566 Update.
2567 * gcore.c (derive_stack_segment): Update.
2568 * frame.c (get_current_frame, has_stack_frames): Update.
2569 * auxv.c (info_auxv_command): Update.
2570 * ada-tasks.c (ada_build_task_list): Update.
2571 * target.c (target_has_stack): Rename from target_has_stack_1.
2572 * target.h (target_has_stack): Remove macro.
2573 (target_has_stack): Rename from target_has_stack_1.
2574
a739972c
TT
25752020-09-28 Tom Tromey <tom@tromey.com>
2576
2577 * target.c (target_has_memory): Rename from target_has_memory_1.
2578 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2579 * thread.c (scoped_restore_current_thread::restore)
2580 (scoped_restore_current_thread::scoped_restore_current_thread):
2581 Update.
2582 * frame.c (get_current_frame, has_stack_frames): Update.
2583 * target.h (target_has_memory): Remove macro.
2584 (target_has_memory): Rename from target_has_memory_1.
2585
5b8a4776
TT
25862020-09-28 Tom Tromey <tom@tromey.com>
2587
2588 * target.c (target_has_all_memory_1): Remove.
2589 * target.h (target_has_all_memory): Remove define.
2590 (target_has_all_memory_1): Don't declare.
2591
bd356ec6
SM
25922020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * ser-base.c: Adjust comments formatting.
2595
2c72d5e5
TT
25962020-09-27 Tom Tromey <tom@tromey.com>
2597
2598 PR tui/25342:
2599 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2600
35a98237
TT
26012020-09-27 Tom Tromey <tom@tromey.com>
2602
2603 PR tui/25342:
2604 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2605
9e820dec
TT
26062020-09-27 Tom Tromey <tom@tromey.com>
2607
2608 * unittests/tui-selftests.c: Update.
2609 * tui/tui-winsource.h (struct tui_source_window_base)
2610 <extra_margin, show_line_number, refresh_pad>: New methods.
2611 <m_max_length, m_pad>: New members.
2612 (tui_copy_source_line): Update.
2613 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2614 first_col, line_width, ndigits parameters. Add length.
2615 (tui_source_window_base::show_source_line): Write to pad. Line
2616 number now 0-based.
2617 (tui_source_window_base::refresh_pad): New method.
2618 (tui_source_window_base::show_source_content): Write to pad. Call
2619 refresh_pad.
2620 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2621 not refill.
2622 (tui_source_window_base::update_exec_info): Call
2623 show_line_number.
2624 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2625 method.
2626 <m_digits>: New member.
2627 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2628 and m_max_length.
2629 (tui_source_window::show_line_number): New method.
2630 * tui/tui-io.h (tui_puts): Fix comment.
2631 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2632 m_max_length.
2633
c15c15c8
TT
26342020-09-27 Tom Tromey <tom@tromey.com>
2635
2636 * tui/tui-winsource.c
2637 (tui_source_window_base::set_is_exec_point_at): Don't call
2638 show_source_line.
2639
149830c1
TT
26402020-09-27 Tom Tromey <tom@tromey.com>
2641
2642 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2643 method.
2644 <erase>: Update.
2645 <cursor_x, cursor_y>: Remove.
2646 <m_inner_window>: New member.
2647 (tui_py_window::rerender): Create inner window.
2648 (tui_py_window::output): Write to inner window.
2649
8f9929bb
GR
26502020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2651
2652 PR python/26586
2653 * cli/cli-script.c (execute_control_commands): don't set
2654 instream to nullptr here as this breaks the from_tty argument
2655 to gdb.execute in Python.
2656 (execute_user_command): set instream to nullptr here instead.
2657
956bdb59
SM
26582020-09-25 Simon Marchi <simon.marchi@efficios.com>
2659
2660 * infrun.h (infrun_debug_printf): Fix formatting.
2661 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2662
3b93626b
SJ
26632020-09-25 Saagar Jha <saagar@saagarjha.com>
2664
2665 * compile/compile-object-load.h (struct munmap_list): Add
2666 explicitly-defined move constructor.
2667
b551a89f
TT
26682020-09-24 Tom Tromey <tromey@adacore.com>
2669
2670 PR tui/26638:
2671 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2672 method.
2673 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2674 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2675 (tui_prev_win): Rewrite.
2676
99bb393f
HD
26772020-09-23 Hannes Domani <ssbssa@yahoo.de>
2678
2679 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2680 in WOW64 processes as SIGINT.
2681 * nat/windows-nat.h: Make wow64_process a shared variable.
2682 * windows-nat.c: Remove static wow64_process variable.
2683
20a5fcbd
TT
26842020-09-23 Tom Tromey <tom@tromey.com>
2685
2686 PR symtab/25470:
2687 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2688 offset and bit size.
2689 * printcmd.c (print_scalar_formatted): Handle zero-length
2690 integer.
2691 (print_scalar_formatted): Use bit_size_differs_p.
2692 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2693 constant.
2694 (union type_specific): <int_stuff>: New member.
2695 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2696 methods.
2697 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2698 TYPE_SPECIFIC_FIELD.
2699 (recursive_dump_type, copy_type_recursive): Update.
2700 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2701 DW_AT_data_bit_offset.
2702
bac51ab7
TT
27032020-09-23 Tom Tromey <tom@tromey.com>
2704
2705 * utils.h (class gdb_argv): Add move operators.
2706 <append>: New methods.
2707 * compile/compile.c (build_argc_argv): Remove.
2708 (compile_args_argc): Remove.
2709 (compile_args_argv): Change type.
2710 (set_compile_args): Simplify.
2711 (append_args): Remove.
2712 (filter_args): Remove argcp parameter.
2713 (get_args): Return gdb_argv. Simplify.
2714 (compile_to_object): Update.
2715
92677124
TT
27162020-09-23 Tom Tromey <tom@tromey.com>
2717
2718 * compile/compile-object-run.c (do_module_cleanup)
2719 <~do_module_cleanup> :Remove.
2720 (do_module_cleanup): Update.
2721 * compile/compile-object-load.h (struct munmap_list): Add move
2722 assignment operator.
2723 <source_file>: Now a std::string.
2724 <munmap_list>: Rename. No longer a pointer.
2725 * compile/compile-object-load.c (struct setup_sections_data): Add
2726 constructor.
2727 <setup_one_section>: Declare.
2728 <munmap_list>: Move earlier.
2729 <m_bfd>: New member.
2730 <m_last_size, m_last_section_first, m_last_prot,
2731 m_last_max_alignment>: Rename, add initializers where needed.
2732 (setup_sections_data::setup_one_section): Rename from
2733 setup_sections. Update.
2734 (compile_object_load): Update. Don't use bfd_map_over_sections.
2735
e616f60a
TT
27362020-09-23 Tom Tromey <tom@tromey.com>
2737
2738 * compile/compile-object-run.c (struct do_module_cleanup): Add
2739 parameters to constructor. Update destructor.
2740 <source_file, scope, scope_data, out_value_type, out_value_addr,
2741 munmap_list_head, objfile_name_string>: Remove.
2742 <module>: New member.
2743 (do_module_cleanup): Update.
2744 (compile_object_run): Update.
2745
e947a848
TT
27462020-09-23 Tom Tromey <tom@tromey.com>
2747
2748 * compile/compile.c (eval_compile_command): Update.
2749 * compile/compile-object-run.h (compile_object_run): Take a
2750 compile_module_up.
2751 * compile/compile-object-run.c (compile_object_run): Take a
2752 compile_module_up.
2753 * compile/compile-object-load.h (struct compile_module): Add
2754 constructor, destructor.
2755 (compile_module_up): New typedef.
2756 (compile_object_load): Return compile_object_up.
2757 * compile/compile-object-load.c (compile_object_load): Return
2758 compile_module_up.
2759
0dbf6ee6
TT
27602020-09-23 Tom Tromey <tom@tromey.com>
2761
2762 * compile/compile-object-run.c (struct do_module_cleanup): Add
2763 constructor, destructor.
2764 <objfile_name_string>: Don't use struct hack.
2765 (do_module_cleanup): Use delete.
2766 (compile_object_run): Use new.
2767
ebe824f5
TT
27682020-09-23 Tom Tromey <tom@tromey.com>
2769
2770 * compile/compile-cplus-types.c
2771 (compile_cplus_convert_struct_or_union): Use std::vector.
2772 (compile_cplus_convert_func): Likewise.
2773 * compile/compile-c-types.c (convert_func): Use std::vector.
2774
5dd918d9
TT
27752020-09-21 Tom Tromey <tromey@adacore.com>
2776
2777 * sparc-tdep.c (sparc32_skip_prologue): Use
2778 skip_prologue_using_sal.
2779
5486c517
TT
27802020-09-19 Tom Tromey <tom@tromey.com>
2781
2782 * symfile.c (add_section_size_callback): Remove.
2783 (load_one_section): Rename from load_section_callback. Change
2784 parameters.
2785 (generic_load): Use foreach.
2786
8a6bb1d1
TT
27872020-09-19 Tom Tromey <tom@tromey.com>
2788
2789 * exec.c (add_to_section_table): Remove.
2790 (build_section_table): Use foreach.
2791
08f93a1a
TT
27922020-09-19 Tom Tromey <tom@tromey.com>
2793
2794 * elfread.c (elf_locate_sections): Change parameters.
2795 (elf_symfile_read): Use foreach.
2796
03cd72b8
TT
27972020-09-19 Tom Tromey <tom@tromey.com>
2798
2799 * cli/cli-dump.c (struct callback_data): Remove.
2800 (restore_one_section): Rename from restore_section_callback.
2801 Change parameters.
2802 (restore_binary_file): Change parameters.
2803 (restore_command): Use foreach.
2804
f4f2b85f
TT
28052020-09-19 Tom Tromey <tom@tromey.com>
2806
2807 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2808 (gcore_copy_callback): Likewise.
2809 (gcore_memory_sections): Use foreach.
2810
b35c1d1c
TT
28112020-09-19 Tom Tromey <tom@tromey.com>
2812
2813 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2814 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2815 parameters.
2816 (generic_elf_osabi_sniffer): Use foreach.
2817 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2818 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2819
5bb6e9dd
TT
28202020-09-19 Tom Tromey <tom@tromey.com>
2821
2822 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2823 (dwarf2_get_dwz_file): Use foreach.
2824 (dwarf2_locate_dwo_sections): Change parameters.
2825 (open_and_init_dwo_file): Use foreach.
2826 (dwarf2_locate_common_dwp_sections): Change parameters.
2827 (open_and_init_dwp_file): Use foreach.
2828
ad7277da
TT
28292020-09-19 Tom Tromey <tom@tromey.com>
2830
2831 * symfile.h: (find_lowest_section): Don't declare.
2832 * symfile.c (find_lowest_section): Now static. Change
2833 parameters.
2834 (struct place_section_arg): Remove.
2835 (place_section): Change parameters.
2836 (addr_info_make_relative): Use foreach.
2837 (symfile_dummy_outputs): Remove.
2838 (default_symfile_relocate): Use foreach.
2839
cb814f2e
TT
28402020-09-19 Tom Tromey <tom@tromey.com>
2841
2842 * objfiles.c (add_to_objfile_sections): Rename from
2843 add_to_objfile_sections_full.
2844 (add_to_objfile_sections): Remove.
2845 (build_objfile_section_table): Use foreach.
2846
3cabfd26
TT
28472020-09-19 Tom Tromey <tom@tromey.com>
2848
2849 * stap-probe.c (get_stap_base_address_1): Remove.
2850 (get_stap_base_address): Use foreach.
2851
1ce51eb5
TT
28522020-09-19 Tom Tromey <tom@tromey.com>
2853
2854 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2855 parameters.
2856 (gdb_bfd_close_or_warn): Use foreach.
2857
a190fabb
TT
28582020-09-19 Tom Tromey <tom@tromey.com>
2859
2860 * corelow.c (add_to_thread_list): Change parameters.
2861 (core_target_open): Use foreach.
2862
cafb0d81
TT
28632020-09-19 Tom Tromey <tom@tromey.com>
2864
2865 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2866 existing function.
2867
c8d5abea
AB
28682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2871 for arrays.
2872
6d816919
AB
28732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * eval.c: Remove 'f-lang.h' include.
2876 (value_f90_subarray): Moved to f-lang.c.
2877 (eval_call): Renamed to...
2878 (evaluate_subexp_do_call): ...this, is no longer static, header
2879 comment moved into header file.
2880 (evaluate_funcall): Update call to eval_call.
2881 (skip_undetermined_arglist): Moved to f-lang.c.
2882 (fortran_value_subarray): Likewise.
2883 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2884 moved to evaluate_subexp_f.
2885 (calc_f77_array_dims): Moved to f-lang.c
2886 * expprint.c (print_subexp_funcall): New function.
2887 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2888 moved to print_subexp_f, OP_FUNCALL uses new function.
2889 (dump_subexp_body_funcall): New function.
2890 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2891 moved to dump_subexp_f, OP_FUNCALL uses new function.
2892 * expression.h (evaluate_subexp_do_call): Declare.
2893 * f-lang.c (value_f90_subarray): Moved from eval.c.
2894 (skip_undetermined_arglist): Likewise.
2895 (calc_f77_array_dims): Likewise.
2896 (fortran_value_subarray): Likewise.
2897 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2898 (operator_length_f): Likewise.
2899 (print_subexp_f): Likewise.
2900 (dump_subexp_body_f): Likewise.
2901 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2902 declaration of this operation to here.
2903 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2904 support moved to operator_length_f.
2905 * parser-defs.h (dump_subexp_body_funcall): Declare.
2906 (print_subexp_funcall): Declare.
2907 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2908 fortran-operator.def.
2909
8c37706a
AB
29102020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * eval.c (fortran_value_subarray): New function, content is taken
2913 from...
2914 (evaluate_subexp_standard): ...here, in two places. Now arrays
2915 and strings both call the new function.
2916 (calc_f77_array_dims): Add header comment, handle strings.
2917
14f9473c
VC
29182020-09-18 Victor Collod <vcollod@nvidia.com>
2919
2920 PR gdb/26635
2921 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2922 (i386_analyze_prologue): Call i386_skip_endbr.
2923
b60cea74
TT
29242020-09-18 Tom Tromey <tromey@adacore.com>
2925
2926 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2927 (windows_nat_target::wait): Update.
2928 * target/wait.h (enum target_wait_flag): New. Use
2929 DEF_ENUM_FLAGS_TYPE.
2930 * target/target.h (target_wait): Change type of options.
2931 * target.h (target_options_to_string, default_target_wait):
2932 Update.
2933 (struct target_ops) <wait>: Change type of options.
2934 * target.c (target_wait, default_target_wait, do_option): Change
2935 type of "options".
2936 (target_options_to_string): Likewise.
2937 * target-delegates.c: Rebuild.
2938 * target-debug.h (target_debug_print_target_wait_flags): Rename
2939 from target_debug_print_options.
2940 * sol-thread.c (class sol_thread_target) <wait>: Update.
2941 (sol_thread_target::wait): Update.
2942 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2943 (rs6000_nat_target::wait): Update.
2944 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2945 Update.
2946 (remote_target::wait_ns, remote_target::wait_as): Change type of
2947 "options".
2948 (remote_target::wait): Update.
2949 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2950 (gdbsim_target::wait): Update.
2951 * record-full.c (class record_full_base_target) <wait>: Update.
2952 (record_full_wait_1): Change type of "options".
2953 (record_full_base_target::wait): Update.
2954 * record-btrace.c (class record_btrace_target) <wait>: Update.
2955 (record_btrace_target::wait): Update.
2956 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2957 Update.
2958 (ravenscar_thread_target::wait): Update.
2959 * procfs.c (class procfs_target) <wait>: Update.
2960 (procfs_target::wait): Update.
2961 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2962 * obsd-nat.c (obsd_nat_target::wait): Update.
2963 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2964 (nto_procfs_target::wait): Update.
2965 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2966 * nbsd-nat.c (nbsd_wait): Change type of "options".
2967 (nbsd_nat_target::wait): Update.
2968 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2969 (thread_db_target::wait): Update.
2970 * linux-nat.h (class linux_nat_target) <wait>: Update.
2971 * linux-nat.c (linux_nat_target::wait): Update.
2972 (linux_nat_wait_1): Update.
2973 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2974 "options".
2975 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2976 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2977 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2978 (go32_nat_target::wait): Update.
2979 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2980 * gnu-nat.c (gnu_nat_target::wait): Update.
2981 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2982 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2983 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2984 * darwin-nat.c (darwin_nat_target::wait): Update.
2985 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2986 (bsd_uthread_target::wait): Update.
2987 * aix-thread.c (class aix_thread_target) <wait>: Update.
2988 (aix_thread_target::wait): Update.
2989
0295dde6
AB
29902020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * compile/compile-object-run.c (create_copied_type_recursive): New
2993 function.
2994 (compile_object_run): Use new function.
2995
d3483b43
JT
29962020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2997
2998 * NEWS: Mention x86_64 Cygwin core file support.
2999
e7d612ad
JT
30002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3001
3002 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3003 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3004
aff9d387
JT
30052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3006
62a5151b
JT
3007 * windows-tdep.h: Add prototypes.
3008 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3009 (i386_windows_core_pid_to_str): Move and rename ...
3010 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3011 (windows_core_pid_to_str): ... and here.
3012 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3013
30142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3015 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3016 (amd64_windows_init_abi_common): ... and register.
3017
7d155da3
JT
30182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3019
3020 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3021 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3022
e8ef12b9
PA
30232020-09-18 Pedro Alves <pedro@palves.net>
3024
3025 PR gdb/26631
3026 * thread.c (thread_find_command): Switch inferior before calling
3027 target methods.
3028
c1e1314d
TT
30292020-09-17 Tom Tromey <tromey@adacore.com>
3030
3031 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3032 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3033 (tdesc_arch_data_up): New typedef.
3034 (tdesc_use_registers, tdesc_data_alloc): Update.
3035 (tdesc_data_cleanup): Don't declare.
3036 * target-descriptions.c (tdesc_data_alloc): Return a
3037 tdesc_arch_data_up.
3038 (tdesc_arch_data_deleter::operator()): Rename from
3039 tdesc_data_cleanup. Change argument type.
3040 (tdesc_use_registers): Change early_data to an rvalue reference.
3041 (tdesc_use_registers): Don't use delete.
3042 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3043 * s390-tdep.c (s390_gdbarch_init): Update.
3044 * rx-tdep.c (rx_gdbarch_init): Update.
3045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3046 * riscv-tdep.c (riscv_gdbarch_init): Update.
3047 * or1k-tdep.c (or1k_gdbarch_init): Update.
3048 * nios2-tdep.c (nios2_gdbarch_init): Update.
3049 * nds32-tdep.c (nds32_gdbarch_init): Update.
3050 * mips-tdep.c (mips_gdbarch_init): Update.
3051 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3052 * m68k-tdep.c (m68k_gdbarch_init): Update.
3053 * i386-tdep.c (i386_gdbarch_init): Update.
3054 * arm-tdep.c (arm_gdbarch_init): Update.
3055 * arc-tdep.c (arc_tdesc_init): Update.
3056 (arc_gdbarch_init): Update.
3057 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3058
0363df3d
HD
30592020-09-17 Hannes Domani <ssbssa@yahoo.de>
3060
3061 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3062 for WOW64 processes.
3063
280a9412
TT
30642020-09-17 Tom Tromey <tom@tromey.com>
3065
3066 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3067
6108fd18
TT
30682020-09-17 Tom Tromey <tom@tromey.com>
3069
3070 * value.c (preserve_values): Update.
3071 * python/py-type.c (save_objfile_types): Update.
3072 * guile/scm-type.c (save_objfile_types): Update.
3073 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3074 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3075 * compile/compile-object-run.c (compile_object_run): Update.
3076
fa9b1164
TT
30772020-09-17 Tom Tromey <tom@tromey.com>
3078
3079 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3080 Remove.
3081 <m_table>: Now htab_up.
3082 * typeprint.c (typedef_hash_table::recursively_update)
3083 (typedef_hash_table::add_template_parameters)
3084 (typedef_hash_table::typedef_hash_table): Update.
3085 (typedef_hash_table::~typedef_hash_table): Remove.
3086 (typedef_hash_table::typedef_hash_table)
3087 (typedef_hash_table::find_global_typedef)
3088 (typedef_hash_table::find_typedef): Update.
3089
eb53f105
TT
30902020-09-17 Tom Tromey <tom@tromey.com>
3091
3092 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3093
7a8a5d47
TT
30942020-09-17 Tom Tromey <tom@tromey.com>
3095
3096 * linespec.c (class decode_compound_collector)
3097 <~decode_compound_collector>: Remove.
3098 <m_unique_syms>: Now htab_up.
3099 (decode_compound_collector::operator ()): Update.
3100 (class symtab_collector) <~symtab_collector>: Remove.
3101 <m_symtab_table>: Now htab_up.
3102 (symtab_collector::operator ()): Update.
3103
99032cfc
TT
31042020-09-17 Tom Tromey <tom@tromey.com>
3105
3106 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3107 (filename_seen_cache::clear): Update.
3108 (~filename_seen_cache): Remove.
3109 (filename_seen_cache::seen): Update.
3110 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3111 htab_up.
3112 <~filename_seen_cache>: Remove.
3113 <traverse>: Update.
3114
32580f6d
TT
31152020-09-17 Tom Tromey <tom@tromey.com>
3116
3117 * completer.c (completion_tracker::discard_completions)
3118 (completion_tracker::~completion_tracker)
3119 (completion_tracker::maybe_add_completion)
3120 (completion_tracker::remove_completion)
3121 (completion_tracker::recompute_lowest_common_denominator)
3122 (completion_tracker::build_completion_result): Update.
3123 * completer.h (class completion_tracker) <have_completions>:
3124 Update.
3125 <m_entries_hash>: Now htab_up.
3126
c1fb9836
TT
31272020-09-17 Tom Tromey <tom@tromey.com>
3128
3129 * breakpoint.c (ambiguous_names_p): Use htab_up.
3130
88f07206
TT
31312020-09-17 Tom Tromey <tom@tromey.com>
3132
3133 * auto-load.c (struct auto_load_pspace_info)
3134 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3135 <loaded_script_files, loaded_script_texts>: Change type to
3136 htab_up.
3137 (~auto_load_pspace_info) Remove.
3138 (init_loaded_scripts_info, maybe_add_script_file)
3139 (maybe_add_script_text, auto_load_info_scripts): Update.
3140
9519b2ee
TT
31412020-09-17 Tom Tromey <tromey@adacore.com>
3142
3143 * c-exp.y (name_obstack): Now static.
3144
d2cd4113
CC
31452020-09-17 Chungyi Chi <demonic@csie.io>
3146
3147 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3148
b650a282
SM
31492020-09-16 Simon Marchi <simon.marchi@efficios.com>
3150
3151 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3152 (add_solib_catchpoint): Likewise.
3153 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3154 to bool.
3155 (add_solib_catchpoint): Change int parameter/variable to bool.
3156 (catch_load_or_unload): Likewise.
3157 (init_catchpoint): Likewise.
3158 (create_fork_vfork_event_catchpoint): Likewise.
3159 (catch_fork_command_1): Likewise.
3160 (catch_exec_command_1): Likewise.
3161
4d0bcfcf
SM
31622020-09-16 Simon Marchi <simon.marchi@efficios.com>
3163
3164 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3165 Change instance_flags to m_instance_flags.
3166
fe830662
TT
31672020-09-16 Tom Tromey <tromey@adacore.com>
3168
3169 PR gdb/26598:
3170 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3171
fe5ddfc3
JB
31722020-09-16 John Baldwin <jhb@FreeBSD.org>
3173
3174 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3175 PL_FLAG_EXEC.
3176 (fbsd_nat_target::insert_exec_catchpoint)
3177 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3178 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3179 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3180
e911c666
JB
31812020-09-16 John Baldwin <jhb@FreeBSD.org>
3182
3183 * configure.ac: Remove check for kinfo_getvmmap().
3184 * configure, config.in: Regenerate.
3185 * fbsd-nat.c (fbsd_read_mapping): Remove
3186 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3187 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3188 kinfo_get_vmmap() are always present.
3189
1f17d372
JB
31902020-09-16 John Baldwin <jhb@FreeBSD.org>
3191
3192 * fbsd-nat.c: Always include support for
3193 TARGET_OBJECT_SIGNAL_INFO.
3194
bcb1da7f
JB
31952020-09-16 John Baldwin <jhb@FreeBSD.org>
3196
3197 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3198 sysctl and remove procfs fallback.
3199
5515f729
JB
32002020-09-16 John Baldwin <jhb@FreeBSD.org>
3201
3202 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3203 * fbsd-nat.h: Likewise.
3204
da1df1db
TBA
32052020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206
3207 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3208 argument.
3209
0e25e767
AB
32102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * ada-lang.c (ada_language_data): Delete.
3213 (ada_language): Remove references to ada_language_data.
3214 * c-lang.c (c_language_data): Delete.
3215 (c_language): Remove references to c_language_data.
3216 (cplus_language_data): Delete.
3217 (cplus_language): Remove references to cplus_language_data.
3218 (asm_language_data): Delete.
3219 (asm_language): Remove references to asm_language_data.
3220 (minimal_language_data): Delete.
3221 (minimal_language): Remove references to minimal_language_data.
3222 * d-lang.c (d_language_data): Delete.
3223 (d_language): Remove references to d_language_data.
3224 * f-lang.c (f_language_data): Delete.
3225 (f_language): Remove references to f_language_data.
3226 * go-lang.c (go_language_data): Delete.
3227 (go_language): Remove references to go_language_data.
3228 * language.c (unknown_language_data): Delete.
3229 (unknown_language): Remove references to unknown_language_data.
3230 (auto_language_data): Delete.
3231 (auto_language): Remove references to auto_language_data.
3232 * language.h (language_data): Delete struct.
3233 (language_defn): No longer inherit from language_data.
3234 * m2-lang.c (m2_language_data): Delete.
3235 (m2_language): Remove references to m2_language_data.
3236 * objc-lang.c (objc_language_data): Delete.
3237 (objc_language): Remove references to objc_language_data.
3238 * opencl-lang.c (opencl_language_data): Delete.
3239 (opencl_language): Remove references to opencl_language_data.
3240 * p-lang.c (pascal_language_data): Delete.
3241 (pascal_language): Remove references to pascal_language_data.
3242 * rust-lang.c (rust_language_data): Delete.
3243 (rust_language): Remove references to rust_language_data.
3244
b7c6e27d
AB
32452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3248 initializer.
3249 (ada_language::opcode_print_table): New member function.
3250 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3251 (c_language::opcode_print_table): New member function.
3252 (cplus_language_data): Remove la_op_print_tab initializer.
3253 (cplus_language::opcode_print_table): New member function.
3254 (asm_language_data): Remove la_op_print_tab initializer.
3255 (asm_language::opcode_print_table): New member function.
3256 (minimal_language_data): Remove la_op_print_tab initializer.
3257 (minimal_language::opcode_print_table): New member function.
3258 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3259 (d_language::opcode_print_table): New member function.
3260 * expprint.c (print_subexp_standard): Update call to
3261 opcode_print_table.
3262 (op_string): Likewise.
3263 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3264 (f_language::opcode_print_table): New member function.
3265 * go-lang.c (go_language_data): Remove la_op_print_tab
3266 initializer.
3267 (go_language::opcode_print_table): New member function.
3268 * language.c (unknown_language_data): Remove la_op_print_tab
3269 initializer.
3270 (unknown_language::opcode_print_table): New member function.
3271 (auto_language_data): Remove la_op_print_tab initializer.
3272 (auto_language::opcode_print_table): New member function.
3273 * language.h (language_data): Remove la_op_print_tab field.
3274 (language_defn::opcode_print_table): Declare new member function.
3275 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3276 initializer.
3277 (m2_language::opcode_print_table): New member function.
3278 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3279 initializer.
3280 (objc_language::opcode_print_table): New member function.
3281 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3282 initializer.
3283 (opencl_language::opcode_print_table): New member function.
3284 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3285 initializer.
3286 (pascal_language::opcode_print_table): New member function.
3287 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3288 initializer.
3289 (rust_language::opcode_print_table): New member function.
3290
5aba6ebe
AB
32912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3294 (ada_language::expression_ops): New member function.
3295 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3296 (c_language::expression_ops): New member function.
3297 (cplus_language_data): Remove la_exp_desc initializer.
3298 (cplus_language::expression_ops): New member function.
3299 (asm_language_data): Remove la_exp_desc initializer.
3300 (asm_language::expression_ops): New member function.
3301 (minimal_language_data): Remove la_exp_desc initializer.
3302 (minimal_language::expression_ops): New member function.
3303 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3304 (d_language::expression_ops): New member function.
3305 * eval.c (evaluate_subexp): Update call to expression_ops.
3306 * expprint.c (print_subexp): Likewise.
3307 (op_name): Likewise.
3308 (dump_subexp_body): Likewise.
3309 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3310 (f_language::expression_ops): New member function.
3311 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3312 (go_language::expression_ops): New member function.
3313 * language.c (language_defn::expression_ops): New function.
3314 (unknown_language_data): Remove la_exp_desc initializer.
3315 (auto_language_data): Likewise.
3316 * language.h (language_data): Remove la_exp_desc field.
3317 (language_defn::expression_ops): Declare new member function.
3318 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3319 (m2_language::expression_ops): New member function.
3320 * objc-lang.c (objc_language_data): Remove la_exp_desc
3321 initializer.
3322 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3323 initializer.
3324 (opencl_language::expression_ops): New member function.
3325 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3326 * parse.c (operator_length): Update call to expression_ops.
3327 (exp_iterate): Likewise.
3328 * rust-lang.c (rust_language_data): Remove la_exp_desc
3329 initializer.
3330 (ruse_language::expression_ops): New member function.
3331
b63a3f3f
AB
33322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3335 initializer.
3336 (ada_language::varobj_ops): New member function.
3337 * c-lang.c (c_language_data): Remove la_varobj_ops
3338 initializer.
3339 (cplus_language_data): Likewise.
3340 (cplus_language::varobj_ops): New member function.
3341 (asm_language_data): Remove la_varobj_ops initializer.
3342 (minimal_language_data): Likewise.
3343 * d-lang.c (d_language_data): Likewise.
3344 * f-lang.c (f_language_data): Likewise.
3345 * go-lang.c (go_language_data): Likewise.
3346 * language.c (language_defn::varobj_ops): New function.
3347 (unknown_language_data): Remove la_varobj_ops
3348 initializer.
3349 (auto_language_data): Likewise.
3350 * language.h (language_data): Remove la_varobj_ops field.
3351 (language_defn::varobj_ops): Declare new member function.
3352 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3353 * objc-lang.c (objc_language_data): Likewise.
3354 * opencl-lang.c (opencl_language_data): Likewise.
3355 * p-lang.c (pascal_language_data): Likewise.
3356 * rust-lang.c (rust_language_data): Likewise.
3357 * varobj.c (varobj_create): Update call to varobj_ops.
3358 * varobj.h (default_varobj_ops): Delete define.
3359
1ac14a04
AB
33602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3363 initializer.
3364 * c-lang.c (c_language_data): Likewise.
3365 (c_language::macro_expansion): New member function.
3366 (cplus_language_data): Likewise.
3367 (cplus_language::macro_expansion): New member function.
3368 (asm_language_data): Likewise.
3369 (asm_language::macro_expansion): New member function.
3370 (minimal_language_data): Likewise.
3371 (minimal_language::macro_expansion): New member function.
3372 * d-lang.c (d_language_data): Remove la_macro_expansion
3373 initializer.
3374 * f-lang.c (f_language_data): Likewise.
3375 * go-lang.c (go_language_data): Likewise.
3376 * language.c (unknown_language_data): Likewise.
3377 (auto_language_data): Likewise.
3378 * language.h (language_data): Remove la_macro_expansion field.
3379 (language_defn::macro_expansion): New member function.
3380 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3381 initializer.
3382 * objc-lang.c (objc_language_data): Likewise.
3383 (objc_language::macro_expansion): New member function.
3384 * opencl-lang.c (opencl_language_data): Likewise.
3385 (opencl_language::macro_expansion): New member function.
3386 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3387 initializer.
3388 * rust-lang.c (rust_language_data): Likewise.
3389 * symtab.c (default_collect_symbol_completion_matches_break_on):
3390 Update call to macro_expansion.
3391
3a3440fb
AB
33922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * ada-lang.c (ada_language_data): Remove la_array_ordering
3395 initializer.
3396 * c-lang.c (c_language_data): Likewise.
3397 (cplus_language_data): Likewise.
3398 (asm_language_data): Likewise.
3399 (minimal_language_data): Likewise.
3400 * d-lang.c (d_language_data): Likewise.
3401 * dwarf2/read.c (read_array_order): Update for call to
3402 array_ordering.
3403 * f-lang.c (f_language_data): Remove la_array_ordering
3404 initializer.
3405 (f_language::array_ordering): New member function.
3406 * go-lang.c (go_language_data): Remove la_array_ordering
3407 initializer.
3408 * language.c (unknown_language_data): Likewise.
3409 (auto_language_data): Likewise.
3410 * language.h (language_data): Delete la_array_ordering field.
3411 (language_defn::array_ordering): New member function.
3412 * m2-lang.c (m2_language_data): Remove la_array_ordering
3413 initializer.
3414 * objc-lang.c (objc_language_data): Likewise.
3415 * opencl-lang.c (opencl_language_data): Likewise.
3416 * p-lang.c (pascal_language_data): Likewise.
3417 * rust-lang.c (rust_language_data): Likewise.
3418
0d201fa4
AB
34192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3422 initializer.
3423 * c-lang.c (c_language_data): Likewise.
3424 (cplus_language_data): Likewise.
3425 (asm_language_data): Likewise.
3426 (minimal_language_data): Likewise.
3427 * d-lang.c (d_language_data): Likewise.
3428 * f-lang.c (f_language_data): Likewise.
3429 (f_language::case_sensitivity): New member function.
3430 * go-lang.c (go_language_data): Remove la_case_sensitivity
3431 initializer.
3432 * language.c (enum case_mode): Moved here from language.h.
3433 (case_mode): Make static.
3434 (show_case_command): Update for case_sensitivity being a method.
3435 (set_case_command): Likewise.
3436 (set_range_case): Likewise.
3437 (unknown_language_data): Remove la_case_sensitivity initializer.
3438 (auto_language_data): Likewise.
3439 * language.h (case_mode): Delete, move enum declaration to
3440 language.c.
3441 (language_data): Delete la_case_sensitivity field.
3442 (language_defn::case_sensitivity): New member function.
3443 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3444 initializer.
3445 * objc-lang.c (objc_language_data): Likewise.
3446 * opencl-lang.c (opencl_language_data): Likewise.
3447 * p-lang.c (pascal_language_data): Likewise.
3448 * rust-lang.c (rust_language_data): Likewise.
3449
efdf6a73
AB
34502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * ada-lang.c (ada_language_data): Remove la_range_check
3453 initializer.
3454 * c-lang.c (c_language_data): Likewise.
3455 (cplus_language_data): Likewise.
3456 (asm_language_data): Likewise.
3457 (minimal_language_data): Likewise.
3458 * d-lang.c (d_language_data): Likewise.
3459 * f-lang.c (f_language_data): Likewise.
3460 (f_language::range_checking_on_by_default): New member function.
3461 * go-lang.c (go_language_data): Remove la_range_check initializer.
3462 * language.c (enum range_mode): Moved here from language.h.
3463 (range_mode): Made static.
3464 (show_range_command): Update to use
3465 range_checking_on_by_default.
3466 (set_range_command): Likewise.
3467 (set_range_case): Likewise.
3468 (unknown_language_data): Remove la_range_check initializer.
3469 (auto_language_data): Likewise.
3470 * language.h (range_mode): Delete. Enum definition moved to
3471 language.c.
3472 (language_data): Remove la_range_check field.
3473 (language_defn::range_checking_on_by_default): New member
3474 function.
3475 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3476 (m2_language::range_checking_on_by_default): New member function.
3477 * objc-lang.c (objc_language_data): Remove la_range_check
3478 initializer.
3479 * opencl-lang.c (opencl_language_data): Likewise.
3480 * p-lang.c (pascal_language_data): Likewise.
3481 (pascal_language::range_checking_on_by_default): New member
3482 function.
3483 * rust-lang.c (rust_language_data): Remove la_range_check
3484 initializer.
3485 (rust_language::range_checking_on_by_default): New member
3486 function.
3487
bf92aec5
AB
34882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3489
3490 * dwarf2/read.c (dwarf2_physname): Remove special case for
3491 language_go.
3492 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3493 member function.
3494
d3355e4d
AB
34952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * ada-lang.c (ada_language_data): Remove
3498 la_store_sym_names_in_linkage_form_p initializer.
3499 (ada_language::store_sym_names_in_linkage_form_p): New member
3500 function.
3501 * c-lang.c (c_language_data): Remove
3502 la_store_sym_names_in_linkage_form_p initializer.
3503 (c_language::store_sym_names_in_linkage_form_p): New member
3504 function.
3505 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3506 initializer.
3507 (asm_language_data): Likewise.
3508 (asm_language::store_sym_names_in_linkage_form_p): New member
3509 function.
3510 (minimal_language_data): Remove
3511 la_store_sym_names_in_linkage_form_p initializer.
3512 (minimal_language::store_sym_names_in_linkage_form_p): New member
3513 function.
3514 * d-lang.c (d_language_data): Remove
3515 la_store_sym_names_in_linkage_form_p initializer.
3516 * dwarf2/read.c (dwarf2_physname): Update call to
3517 store_sym_names_in_linkage_form_p.
3518 * f-lang.c (f_language_data): Remove
3519 la_store_sym_names_in_linkage_form_p initializer.
3520 * go-lang.c (go_language_data): Remove
3521 la_store_sym_names_in_linkage_form_p initializer.
3522 * language.c (unknown_language_data): Remove
3523 la_store_sym_names_in_linkage_form_p initializer.
3524 (unknown_language::store_sym_names_in_linkage_form_p): New member
3525 function.
3526 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3527 initializer.
3528 (auto_language::store_sym_names_in_linkage_form_p): New member
3529 function.
3530 * language.h (language_data): Remove
3531 la_store_sym_names_in_linkage_form_p member variable.
3532 (language_defn::store_sym_names_in_linkage_form_p): New member
3533 function.
3534 * m2-lang.c (m2_language_data): Remove
3535 la_store_sym_names_in_linkage_form_p initializer.
3536 * objc-lang.c (objc_language_data): Likewise.
3537 * opencl-lang.c (opencl_language_data): Likewise.
3538 * p-lang.c (pascal_language_data): Likewise.
3539 * rust-lang.c (rust_language_data): Likewise.
3540
22c12a6c
AB
35412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3542
3543 * ada-lang.c (ada_language_data): Remove string_lower_bound
3544 initializer.
3545 * c-lang.c (c_language_data): Likewise.
3546 (cplus_language_data): Likewise.
3547 (asm_language_data): Likewise.
3548 (minimal_language_data): Likewise.
3549 * d-lang.c (d_language_data): Likewise.
3550 * f-lang.c (f_language_data): Likewise.
3551 * go-lang.c (go_language_data): Likewise.
3552 * language.c (unknown_language_data): Likewise.
3553 (auto_language_data): Likewise.
3554 * language.h (language_data): Remove string_lower_bound field.
3555 (language_defn::string_lower_bound): New member function.
3556 * m2-lang.c (m2_language_data): Remove string_lower_bound
3557 initializer.
3558 (m2_language::string_lower_bound): New member function.
3559 * objc-lang.c (objc_language_data): Remove string_lower_bound
3560 initializer.
3561 * opencl-lang.c (opencl_language_data): Likewise.
3562 * p-lang.c (pascal_language_data): Likewise.
3563 * rust-lang.c (rust_language_data): Likewise.
3564 * valops.c (value_cstring): Update call to string_lower_bound.
3565 (value_string): Likewise.
3566 * value.c (allocate_repeated_value): Likewise.
3567
1c236ddd
AB
35682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * valops.c (value_repeat): Fix incorrect argument name in comment.
3571
67bd3fd5
AB
35722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * ada-lang.c (ada_language_data): Remove c_style_arrays
3575 initializer.
3576 (ada_language::c_style_arrays_p): New member fuction.
3577 * c-lang.c (c_language_data): Remove c_style_arrays
3578 initializer.
3579 (cplus_language_data): Likewise.
3580 (asm_language_data): Likewise.
3581 (minimal_language_data): Likewise.
3582 * d-lang.c (d_language_data): Likewise.
3583 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3584 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3585 (f_language::c_style_arrays_p): New member function.
3586 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3587 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3588 * language.c (unknown_language_data): Remove c_style_arrays
3589 initializer.
3590 (auto_language_data): Likewise.
3591 * language.h (language_data): Remove c_style_arrays field.
3592 (language_defn::c_style_arrays_p): New member function.
3593 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3594 (m2_language::c_style_arrays_p): New member function.
3595 * objc-lang.c (objc_language_data): Remove c_style_arrays
3596 initializer.
3597 * opencl-lang.c (opencl_language_data): Likewise.
3598 * p-lang.c (pascal_language_data): Likewise.
3599 * rust-lang.c (rust_language_data): Likewise.
3600 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3601 and update local variable to a bool.
3602 * valops.c (value_cast): Update call to c_style_arrays_p.
3603 (value_array): Likewise.
3604 * value.c (coerce_array): Likewise.
3605
85967615
AB
36062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3607
3608 * ada-lang.c (ada_language_data): Remove la_language initializer.
3609 * c-lang.c (c_language_data): Likewise.
3610 (cplus_language_data): Likewise.
3611 (asm_language_data): Likewise.
3612 (minimal_language_data): Likewise.
3613 * d-lang.c (d_language_data): Likewise.
3614 * f-lang.c (f_language_data): Likewise.
3615 * go-lang.c (go_language_data): Likewise.
3616 * language.c (unknown_language_data): Likewise.
3617 (auto_language_data): Likewise.
3618 * language.h (language_data): Remove la_language field.
3619 (language_defn::language_defn): Initialise la_language field.
3620 (language_defn::la_language): New member variable.
3621 * m2-lang.c (m2_language_data): Remove la_language field.
3622 * objc-lang.c (objc_language_data): Likewise.
3623 * opencl-lang.c (opencl_language_data): Likewise.
3624 * p-lang.c (pascal_language_data): Likewise.
3625 * rust-lang.c (rust_language_data): Likewise.
3626
e171d6f1
AB
36272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * ada-lang.c (ada_extensions): Delete, moved into
3630 ada_language::filename_extensions.
3631 (ada_language_data): Remove la_filename_extensions initializer.
3632 (ada_language::filename_extensions): New member function.
3633 * c-lang.c (c_extensions): Delete, moved into
3634 c_language::filename_extensions.
3635 (c_language_data): Remove la_filename_extensions initializer.
3636 (c_language::filename_extensions): New member function.
3637 (cplus_extensions): Delete, moved into
3638 cplus_language::filename_extensions.
3639 (cplus_language_data): Remove la_filename_extensions initializer.
3640 (cplus_language::filename_extensions): New member function.
3641 (asm_extensions): Delete, moved into
3642 asm_language::filename_extensions.
3643 (asm_language_data): Remove la_filename_extensions initializer.
3644 (asm_language::filename_extensions): New member function.
3645 (minimal_language_data): Remove la_filename_extensions
3646 initializer.
3647 * d-lang.c (d_extensions): Delete, moved into
3648 d_language::filename_extensions.
3649 (d_language_data): Remove la_filename_extensions initializer.
3650 (d_language::filename_extensions): New member function.
3651 * f-lang.c (f_extensions): Delete, moved into
3652 f_language::filename_extensions.
3653 (f_language_data): Remove la_filename_extensions initializer.
3654 (f_language::filename_extensions): New member function.
3655 * go-lang.c (go_language_data): Remove la_filename_extensions
3656 initializer.
3657 * language.c (add_set_language_command): Update now that
3658 filename_extensions returns a vector.
3659 (unknown_language_data): Remove la_filename_extensions
3660 initializer.
3661 (auto_language_data): Likewise.
3662 * language.h (language_data): Remove la_filename_extensions field.
3663 (language_defn::filename_extensions): New member function.
3664 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3665 initializer.
3666 * objc-lang.c (objc_extensions): Delete, moved into
3667 objc_language::filename_extensions.
3668 (objc_language_data): Remove la_filename_extensions initializer.
3669 (objc_language::filename_extensions): New member function.
3670 * opencl-lang.c (opencl_language_data): Remove
3671 la_filename_extensions initializer.
3672 * p-lang.c (pascal_extensions): Delete, moved into
3673 pascal_language::filename_extensions.
3674 (pascal_language_data): Remove la_filename_extensions initializer.
3675 (pascal_language::filename_extensions): New member function.
3676 * rust-lang.c (rust_extensions): Delete, moved into
3677 rust_language::filename_extensions.
3678 (rust_language_data): Remove la_filename_extensions initializer.
3679 (rust_language::filename_extensions): New member function.
3680 * symfile.c (add_filename_language): Add new assert.
3681
6f7664a9
AB
36822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * ada-lang.c (ada_language_data): Remove la_name and
3685 la_natural_name initializers.
3686 (ada_language::name): New member function.
3687 (ada_language::natural_name): New member function.
3688 * c-lang.c (c_language_data): Remove la_name and
3689 la_natural_name initializers.
3690 (c_language::name): New member function.
3691 (c_language::natural_name): New member function.
3692 (cplus_language_data): Remove la_name and
3693 la_natural_name initializers.
3694 (cplus_language::name): New member function.
3695 (cplus_language::natural_name): New member function.
3696 (asm_language_data): Remove la_name and
3697 la_natural_name initializers.
3698 (asm_language::name): New member function.
3699 (asm_language::natural_name): New member function.
3700 (minimal_language_data): Remove la_name and
3701 la_natural_name initializers.
3702 (minimal_language::name): New member function.
3703 (minimal_language::natural_name): New member function.
3704 * compile/compile.c (compile_to_object): Update call to
3705 lanugage_defn::name.
3706 * d-lang.c (d_language_data): Remove la_name and
3707 la_natural_name initializers.
3708 (d_language::name): New member function.
3709 (d_language::natural_name): New member function.
3710 * expprint.c (print_subexp_standard): Update call to
3711 language_defn::name.
3712 (dump_raw_expression): Likewise
3713 (dump_prefix_expression): Likewise.
3714 * f-lang.c (f_language_data): Remove la_name and
3715 la_natural_name initializers.
3716 (f_language::name): New member function.
3717 (f_language::natural_name): New member function.
3718 * go-lang.c (go_language_data): Remove la_name and
3719 la_natural_name initializers.
3720 (go_language::name): New member function.
3721 (go_language::natural_name): New member function.
3722 * language.c (show_language_command): Update call to
3723 language_defn::name.
3724 (set_language_command): Likewise.
3725 (language_enum): Likewise.
3726 (language_str): Likewise.
3727 (add_set_language_command): Likewise, use
3728 language_defn::natural_name in the doc string.
3729 (unknown_language_data): Remove la_name and
3730 la_natural_name initializers.
3731 (unknown_language::name): New member function.
3732 (unknown_language::natural_name): New member function.
3733 (auto_language_data): Remove la_name and
3734 la_natural_name initializers.
3735 (auto_language::name): New member function.
3736 (auto_language::natural_name): New member function.
3737 (language_lookup_primitive_type_as_symbol): Update call to
3738 language_defn::name.
3739 * language.h (language_data): Remove la_name and la_natural_name
3740 member variables.
3741 (language_defn::name): New member function.
3742 (language_defn::natural_name): New member function.
3743 * m2-lang.c (m2_language_data): Remove la_name and
3744 la_natural_name initializers.
3745 (m2_language::name): New member function.
3746 (m2_language::natural_name): New member function.
3747 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3748 language_defn::natural_name.
3749 * objc-lang.c (objc_language_data): Remove la_name and
3750 la_natural_name initializers.
3751 (objc_language::name): New member function.
3752 (objc_language::natural_name): New member function.
3753 * opencl-lang.c (opencl_language_data): Remove la_name and
3754 la_natural_name initializers.
3755 (opencl_language::name): New member function.
3756 (opencl_language::natural_name): New member function.
3757 * p-lang.c (pascal_language_data): Remove la_name and
3758 la_natural_name initializers.
3759 (pascal_language::name): New member function.
3760 (pascal_language::natural_name): New member function.
3761 * rust-lang.c (rust_language_data): Remove la_name and
3762 la_natural_name initializers.
3763 (rust_language::name): New member function.
3764 (rust_language::natural_name): New member function.
3765 * symtab.c (lookup_language_this): Update call to
3766 language_defn::name.
3767
5bae7c4e
AB
37682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * ada-lang.c (ada_language_data): Remove la_name_of_this
3771 initializer.
3772 * ax-gdb.c (gen_expr): Update call to name_of_this.
3773 * c-exp.y (classify_name): Likewise.
3774 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3775 (cplus_language_data): Likewise.
3776 (cplus_language::name_of_this): New member function.
3777 (asm_language_data): Remove la_name_of_this initializer.
3778 (minimal_language_data): Likewise.
3779 * d-lang.c (d_language_data): Likewise.
3780 (d_language::name_of_this): New member function.
3781 * expprint.c (print_subexp_standard): Update call to name_of_this.
3782 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3783 * go-lang.c (go_language_data): Likewise.
3784 * language.c (unknown_language_data): Likewise.
3785 (unknown_language::name_of_this): New member function.
3786 (auto_language_data): Remove la_name_of_this initializer.
3787 (auto_language::name_of_this): New member function.
3788 * language.h (language_data): Delete la_name_of_this member
3789 variable.
3790 (language_defn::name_of_this): New member function.
3791 * m2-lang.c (m2_language_data): Remove la_name_of_this
3792 initializer.
3793 * objc-lang.c (objc_language_data): Likewise.
3794 (objc_language::name_of_this): New member function.
3795 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3796 initializer.
3797 * p-lang.c (pascal_language_data): Likewise.
3798 (pascal_language::name_of_this): New member function.
3799 * rust-lang.c (rust_language_data): Remove la_name_of_this
3800 initializer.
3801 * symtab.c (lookup_language_this): Update call to name_of_this.
3802 (lookup_symbol_aux): Likewise.
3803 * valops.c (value_of_this): Likewise.
3804
22e3f3ed
AB
38052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * ada-lang.c (ada_language_data): Remove
3808 la_struct_too_deep_ellipsis initializer.
3809 (ada_language::struct_too_deep_ellipsis): New member function.
3810 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3811 initializer.
3812 (cplus_language_data): Likewise.
3813 (asm_language_data): Likewise.
3814 (minimal_language_data): Likewise.
3815 * cp-valprint.c (cp_print_value): Update call to
3816 struct_too_deep_ellipsis.
3817 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3818 initializer.
3819 * f-lang.c (f_language_data): Likewise.
3820 (f_language::struct_too_deep_ellipsis): New member function.
3821 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3822 initializer.
3823 * language.c (unknown_language_data): Likewise.
3824 (auto_language_data): Likewise.
3825 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3826 member variable.
3827 (language_defn::struct_too_deep_ellipsis): New member function.
3828 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3829 initializer.Q
3830 * objc-lang.c (objc_language_data): Likewise.
3831 * opencl-lang.c (opencl_language_data): Likewise.
3832 * p-lang.c (pascal_language_data): Likewise.
3833 * rust-lang.c (rust_language_data): Likewise.
3834 * valprint.c (val_print_check_max_depth): Update call to
3835 struct_too_deep_ellipsis.
3836
ed29e1c7
FW
38372020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3838
3839 * MAINTAINERS (Write After Approval): Add myself.
3840
12d8f940
TT
38412020-09-15 Tom Tromey <tom@tromey.com>
3842
3843 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3844 Remove.
3845
6b5a7bc7
TT
38462020-09-15 Tom Tromey <tom@tromey.com>
3847
3848 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3849 and TYPE_CODE_METHODPTR cases.
3850 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3851 (c_value_print_inner): Update.
3852 * valprint.c (generic_value_print_memberptr): New function, from
3853 c_value_print_memberptr.
3854 (generic_value_print): Use it. Call cplus_print_method_ptr.
3855
47f0e2ff
TT
38562020-09-15 Tom Tromey <tromey@adacore.com>
3857
3858 * python/python-internal.h (PyInt_FromLong): Remove define.
3859 * python/py-value.c (convert_value_from_python): Use
3860 gdb_py_object_from_longest.
3861 * python/py-type.c (typy_get_code): Use
3862 gdb_py_object_from_longest.
3863 * python/py-symtab.c (salpy_get_line): Use
3864 gdb_py_object_from_longest.
3865 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3866 gdb_py_object_from_longest.
3867 * python/py-record.c (recpy_gap_reason_code): Use
3868 gdb_py_object_from_longest.
3869 * python/py-record-btrace.c (recpy_bt_insn_size)
3870 (recpy_bt_func_level, btpy_list_count): Use
3871 gdb_py_object_from_longest.
3872 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3873 gdb_py_object_from_longest. Fix error handling.
3874 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3875 gdb_py_object_from_longest.
3876 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3877 gdb_py_object_from_longest.
3878 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3879 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3880 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3881
512116ce
TT
38822020-09-15 Tom Tromey <tromey@adacore.com>
3883
3884 * python/python.c (gdbpy_parameter_value): Use
3885 gdb_py_object_from_ulongest.
3886
4ab1029c
TT
38872020-09-15 Tom Tromey <tromey@adacore.com>
3888
3889 * python/py-infevents.c (create_register_changed_event_object):
3890 Use gdb_py_object_from_longest.
3891 * python/py-exitedevent.c (create_exited_event_object): Use
3892 gdb_py_object_from_longest.
3893
062534d4
TT
38942020-09-15 Tom Tromey <tromey@adacore.com>
3895
3896 * python/python.c (gdbpy_parameter_value): Use
3897 gdb_py_object_from_longest.
3898 * python/py-type.c (convert_field, typy_range): Use
3899 gdb_py_object_from_longest.
3900 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3901 gdb_py_object_from_longest.
3902 * python/py-lazy-string.c (stpy_get_length): Use
3903 gdb_py_object_from_longest.
3904 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3905 gdb_py_object_from_longest.
3906 * python/py-infevents.c (create_memory_changed_event_object): Use
3907 gdb_py_object_from_longest.
3908 * python/py-inferior.c (infpy_get_num): Use
3909 gdb_py_object_from_longest.
3910 (infpy_get_pid): Likewise.
3911
d1cab987
TT
39122020-09-15 Tom Tromey <tromey@adacore.com>
3913
3914 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3915 defines.
3916 * python/py-value.c (valpy_long): Use
3917 gdb_py_object_from_ulongest.
3918 * python/py-symtab.c (salpy_get_pc): Use
3919 gdb_py_object_from_ulongest.
3920 (salpy_get_last): Likewise.
3921 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3922 gdb_py_object_from_ulongest.
3923 * python/py-lazy-string.c (stpy_get_address): Use
3924 gdb_py_object_from_ulongest.
3925 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3926 * python/py-arch.c (archpy_disassemble): Use
3927 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3928 error handling.
3929
4bde49dc
TT
39302020-09-15 Tom Tromey <tromey@adacore.com>
3931
3932 * python/python-internal.h (gdb_py_long_from_longest): Remove
3933 defines.
3934 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3935 * python/py-type.c (convert_field, typy_get_sizeof): Use
3936 gdb_py_object_from_longest.
3937 * python/py-record-btrace.c (btpy_list_index): Use
3938 gdb_py_object_from_longest.
3939
37431074
TT
39402020-09-15 Tom Tromey <tromey@adacore.com>
3941
3942 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3943 * python/py-record.c (recpy_element_number): Use
3944 gdb_py_object_from_longest.
3945 (recpy_gap_number): Likewise.
3946
cbe25684
TT
39472020-09-15 Tom Tromey <tromey@adacore.com>
3948
3949 * top.c (ui::ui): Update.
3950 (highest_ui_num): Remove.
3951 * top.h (struct ui) <num>: Remove.
3952
db92ac45
TT
39532020-09-15 Tom Tromey <tromey@adacore.com>
3954
3955 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3956 * ui-style.c (ansi_regex_text): Now array.
3957 * rust-exp.y (number_regex_text): Now array.
3958 * linespec.c (linespec_quote_characters): Now array.
3959 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3960 Now arrays.
3961
d2b31b67
SM
39622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3963
3964 * debuginfod-support.c (debuginfod_client_deleter): New.
3965 (debuginfod_client_up): New.
3966 (debuginfod_init): Return debuginfod_client_up.
3967 (debuginfod_source_query): Adjust.
3968 (debuginfod_debuginfo_query): Adjust.
3969
3246bd8e
SM
39702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3971
3972 * debuginfod-support.c (debuginfod_source_query): Use
3973 make_unique_xstrdup.
3974
10242f36
SM
39752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3978 with `type::instance_flags`.
3979
e1044e6a
MM
39802020-09-14 Michael Mullin <masmullin@gmail.com>
3981
3982 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3983 Remove baton parameter.
3984
04902b09
PA
39852020-09-14 Pedro Alves <pedro@palves.net>
3986
3987 * Makefile.in (SELFTESTS_SRCS): Add
3988 unittests/enum-flags-selftests.c.
3989 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3990 btrace_function_flags instead of enum btrace_function_flag.
3991 * compile/compile-c-types.c (convert_qualified): Use
3992 enum_flags::raw.
3993 * compile/compile-cplus-symbols.c (convert_one_symbol)
3994 (convert_symbol_bmsym):
3995 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3996 (compile_cplus_convert_struct_or_union_methods)
3997 (compile_cplus_instance::convert_qualified_base):
3998 * go-exp.y (parse_string_or_char): Add cast to int.
3999 * unittests/enum-flags-selftests.c: New file.
4000 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4001 type to btrace_thread_flags from btrace_thread_flag.
4002 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4003 local's type to btrace_thread_flags from btrace_thread_flag. Add
4004 cast in DEBUG call.
4005
69896a2c
PA
40062020-09-14 Pedro Alves <pedro@palves.net>
4007
4008 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4009 * gdbtypes.c (address_space_name_to_int): Rename to ...
4010 (address_space_name_to_type_instance_flags): ... this.
4011 (address_space_int_to_name): Rename to ...
4012 (address_space_type_instance_flags_to_name): ... this.
4013 * gdbtypes.h (address_space_name_to_int): Rename to ...
4014 (address_space_name_to_type_instance_flags): ... this.
4015 (address_space_int_to_name): Rename to ...
4016 (address_space_type_instance_flags_to_name): ... this.
4017 * type-stack.c (type_stack::insert): Adjust to rename.
4018 * type-stack.h (type_stack::insert): Likewise.
4019
314ad88d
PA
40202020-09-14 Pedro Alves <pedro@palves.net>
4021 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * avr-tdep.c (avr_address_class_type_flags): Return
4024 type_instance_flags.
4025 (avr_address_class_type_flags_to_name): Take a
4026 type_instance_flags.
4027 (avr_address_class_name_to_type_flags): Return bool and take a
4028 type_instance_flags.
4029 * d-lang.c (build_d_types): Use type::set_instance_flags.
4030 * ft32-tdep.c (ft32_address_class_type_flags): Return
4031 type_instance_flags.
4032 (ft32_address_class_type_flags_to_name): Take a
4033 type_instance_flags.
4034 (ft32_address_class_name_to_type_flags): Return bool and take a
4035 type_instance_flags.
4036 (ft32_gdbarch_init): Use type::set_instance_flags.
4037 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4038 * gdbarch.h, gdbarch.c: Regenerate.
4039 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4040 (address_class_name_to_type_flags): Use type_instance_flags and
4041 bool.
4042 * gdbtypes.c (address_space_name_to_int)
4043 (address_space_int_to_name, make_qualified_type): Use
4044 type_instance_flags.
4045 (make_qualified_type): Use type_instance_flags and
4046 type::set_instance_flags.
4047 (make_type_with_address_space, make_cv_type, make_vector_type)
4048 (check_typedef): Use type_instance_flags.
4049 (recursive_dump_type): Cast type_instance_flags to unsigned for
4050 printing.
4051 (copy_type_recursive): Use type::set_instance_flags.
4052 (gdbtypes_post_init): Use type::set_instance_flags.
4053 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4054 <m_instance_flags>: ... this.
4055 <instance_flags, set_instance_flags>: New methods.
4056 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4057 (SET_TYPE_INSTANCE_FLAGS): New.
4058 (address_space_name_to_int, address_space_int_to_name)
4059 (make_type_with_address_space): Pass flags using
4060 type_instance_flags instead of int.
4061 * stabsread.c (cleanup_undefined_types_noname): Use
4062 type::set_instance_flags.
4063 * s390-tdep.c (s390_address_class_type_flags): Return
4064 type_instance_flags.
4065 (s390_address_class_type_flags_to_name): Take a
4066 type_instance_flags.
4067 (s390_address_class_name_to_type_flags): Return bool and take a
4068 type_instance_flags.
4069 * type-stack.c (type_stack::follow_types): Use
4070 type_instance_flags.
4071 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4072
27087b7f
TT
40732020-09-14 Tom Tromey <tromey@adacore.com>
4074
4075 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4076 * x86-tdep.c (x86_is_thunk_register_name)
4077 (x86_in_indirect_branch_thunk): Update.
4078 * sparc64-tdep.c (sparc64_fpu_register_names)
4079 (sparc64_cp0_register_names, sparc64_register_names)
4080 (sparc64_pseudo_register_names): Now const.
4081 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4082 cp0_registers_num>: Now const.
4083 * sparc-tdep.c (sparc_core_register_names)
4084 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4085 (sparc32_pseudo_register_names): Now const.
4086 (validate_tdesc_registers): Update.
4087 * rust-lang.c (rust_extensions): Now const.
4088 * p-lang.c (p_extensions): Now const.
4089 * objc-lang.c (objc_extensions): Now const.
4090 * nto-tdep.c (nto_thread_state_str): Now const.
4091 * moxie-tdep.c (moxie_register_names): Now const.
4092 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4093 Now const.
4094 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4095 (mips_linux_reg_names): Now const.
4096 (mips_gdbarch_init): Update.
4097 * microblaze-tdep.c (microblaze_register_names): Now const.
4098 * m68k-tdep.c (m68k_register_names): Now const.
4099 * m32r-tdep.c (m32r_register_names): Now const.
4100 * ia64-tdep.c (ia64_register_names): Now const.
4101 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4102 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4103 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4104 ymm_avx512_register_names, pkeys_register_names>: Now const.
4105 * i386-tdep.c (i386_register_names, i386_zmm_names)
4106 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4107 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4108 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4109 * f-lang.c (f_extensions): Now const.
4110 * d-lang.c (d_extensions): Now const.
4111 * csky-tdep.c (csky_register_names): Now const.
4112 * charset.c (default_charset_names, charset_enum): Now const.
4113 (_initialize_charset): Update.
4114 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4115 const.
4116 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4117 (bsd_uthread_solib_loaded): Update.
4118 (bsd_uthread_state): Now const.
4119 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4120 (amd64_ymm_avx512_names, amd64_ymmh_names)
4121 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4122 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4123 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4124 (amd64_dword_names): Now const.
4125 * agent.c (can_use_agent_enum): Now const.
4126 * ada-tasks.c (task_states, long_task_states): Now const.
4127 * ada-lang.c (known_runtime_file_name_patterns)
4128 (known_auxiliary_function_name_patterns, attribute_names)
4129 (standard_exc, ada_extensions): Now const.
4130
89806626
SM
41312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4132
4133 * bcache.h (struct bcache) <bcache>: Remove constructor.
4134 <m_hash_function, m_compare_function>: Remove.
4135 <~bcache>: Make virtual.
4136 <compare>: Remove static method, introduce virtual method.
4137 <default_hash>: Remove.
4138 <hash>: New virtual method.
4139 * bcache.c (bcache::expand_hash_table): Update.
4140 (bcache::insert): Update.
4141 (bcache::hash): New.
4142 (bcache::compare): Update comment and parameter names.
4143 * gdbtypes.c (types_deeply_equal): Update.
4144 * psymtab.h (struct psymbol_bcache): New struct.
4145 (class psymtab_storage) <psymtab_storage>: Make default.
4146 <psymbol_cache>: Change type to psymbol_bcache.
4147 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4148 (psymbol_hash): Change to...
4149 (psymbol_bcache::hash): ... this.
4150 (psymbol_compare): Change to...
4151 (psymbol_bcache::compare): ... this.
4152
677c92fe
SM
41532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4154
4155 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4156 checking for initial lwp.
4157
3eba3a01
TT
41582020-09-14 Tom Tromey <tromey@adacore.com>
4159
4160 * m68k-tdep.c (m68k_extract_return_value): Use
4161 pointer_result_regnum.
4162 (m68k_store_return_value): Likewise.
4163 (m68k_reg_struct_return_p): Handle vectors and arrays.
4164 (m68k_return_value): Handle arrays.
4165 (m68k_svr4_return_value): Fix single-element aggregate handling.
4166 Handle long double. Adjust for embedded ABI.
4167 (m68k_svr4_init_abi): Set pointer_result_regnum.
4168 (m68k_embedded_init_abi): New function.
4169 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4170 (m68k_osabi_sniffer): New function.
4171 (_initialize_m68k_tdep): Register osabi sniffer.
4172 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4173 member.
4174
33f4dd48
SM
41752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4178 with gdb::unique_xmalloc_ptr<char>.
4179
8400a90d
SM
41802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4181
4182 * xml-support.h (xml_fetch_another): Change type to be a
4183 function_view.
4184 (xml_process_xincludes): Remove baton parameter.
4185 (xml_fetch_content_from_file): Change baton parameter to
4186 dirname.
4187 * xml-support.c (struct xinclude_parsing_data)
4188 <xinclude_parsing_data>: Remove baton parameter.
4189 <fetcher_baton>: Remove.
4190 (xinclude_start_include): Adjust.
4191 (xml_process_xincludes): Adjust.
4192 (xml_fetch_content_from_file): Replace baton parameter with
4193 dirname.
4194 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4195 (xml_init_syscalls_info): Use a lambda.
4196 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4197 (file_read_description_xml): Use a lambda.
4198 (fetch_available_features_from_target): Change baton parameter
4199 to target_ops.
4200 (target_read_description_xml): Use a lambda.
4201 (target_fetch_description_xml): Use a lambda.
4202 (string_read_description_xml): Update.
4203
04f5bab2
SM
42042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4207 uses with type::endianity_is_not_default.
4208
db558e34
SM
42092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4210
4211 * gdbtypes.h (struct type) <endianity_is_not_default,
4212 set_endianity_is_not_default>: New methods.
4213 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4214 type::endianity_is_not_default, change all write call sites to
4215 use type::set_endianity_is_not_default.
4216
22c4c60c
SM
42172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4220 uses with type::is_fixed_instance.
4221
9cdd0d12
SM
42222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * gdbtypes.h (struct type) <is_fixed_instance,
4225 set_is_fixed_instance>: New methods.
4226 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4227 write call sites to use type::set_is_fixed_instance.
4228
0becda7a
SM
42292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4232 uses with type::is_gnu_ifunc.
4233
03cc7249
SM
42342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4237 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4238 use type::set_is_gnu_ifunc.
4239
3f46044c
SM
42402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4243 uses with type::stub_is_supported.
4244
9baccff6
SM
42452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4248 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4249 use type::set_stub_is_supported.
4250
bd63c870
SM
42512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4254 uses with type::is_vector.
4255
2062087b
SM
42562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4259 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4260 use type::set_is_vector.
4261
a409645d
SM
42622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4265 uses with type::has_varargs.
4266
1d6286ed
SM
42672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4270 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4271 use type::set_has_varargs.
4272
7f9f399b
SM
42732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4276 uses with type::is_prototyped.
4277
27e69b7a
SM
42782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4281 New methods.
4282 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4283 call sites to use type::set_is_prototyped.
4284
d2183968
SM
42852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4286
4287 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4288 uses with type::target_is_stub.
4289
8f53807e
SM
42902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4293 New methods.
4294 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4295 sites to use type::set_target_is_stub.
4296
e46d3488
SM
42972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * gdbtypes.h (TYPE_STUB): Remove, replace all
4300 uses with type::is_stub.
4301
b4b73759
SM
43022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4305 (TYPE_STUB): Use type::is_stub, change all write call sites to
4306 use type::set_is_stub.
4307
20ce4123
SM
43082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4311 type::has_no_signedness.
4312
15152a54
SM
43132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * gdbtypes.h (struct type) <has_no_signedness,
4316 set_has_no_signedness>: New methods.
4317 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4318 call sites to use type::set_has_no_signedness.
4319
c6d940a9
SM
43202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4323 type::is_unsigned.
4324
653223d3
SM
43252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4326
4327 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4328 methods.
4329 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4330 sites to use type::set_is_unsigned.
4331
55ea94da 43322020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4333 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4334
e851246a
SM
4335 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4336 pointer and stack frame offset when unwinding.
55ea94da 4337
6791b117
PA
43382020-09-13 Pedro Alves <pedro@palves.net>
4339
4340 * NEWS: Document "-break-insert --qualified".
4341 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4342
77f2120b
PA
43432020-09-13 Pedro Alves <pedro@palves.net>
4344
4345 * linespec.c (classify_mtype, compare_msyms): Delete.
4346 (search_minsyms_for_name): Remove classification logic. Instead
4347 filter out trampoline symbols if we also found an external
4348 function of the same name.
4349
ed6a896c
JB
43502020-09-13 Joel Brobecker <brobecker@adacore.com>
4351
4352 * NEWS: Create a new section for the next release branch.
4353 Rename the section of the current branch, now that it has
4354 been cut.
4355
32aea73e
JB
43562020-09-13 Joel Brobecker <brobecker@adacore.com>
4357
4358 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4359 * version.in: Bump version to 11.0.50.DATE-git.
4360
8087c3fa
JB
43612020-09-12 Joel Brobecker <brobecker@adacore.com>
4362
4363 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4364
2a67f09d
FW
43652020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4366 Felix Willgerodt <Felix.Willgerodt@intel.com>
4367
4368 * gdbarch.sh: Added bfloat16 type.
4369 * gdbarch.c: Regenerated.
4370 * gdbarch.h: Regenerated.
4371 * gdbtypes.c (floatformats_bfloat16): New struct.
4372 (gdbtypes_post_init): Add builtin_bfloat16.
4373 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4374 (floatformats_bfloat16): New struct.
4375 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4376 (i386_ymm_type): Add field "v16_bfloat16"
4377 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4378 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4379 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4380 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4381 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4382 * features/i386/64bit-avx512.c: Regenerated.
4383 * features/i386/64bit-sse.xml: Add bfloat16 type.
4384 * features/i386/64bit-sse.c: Regenerated.
4385
1347d111
FW
43862020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4387
4388 * i386-tdep.c (i386_zmm_type): Fix field names.
4389 (i386_ymm_type): Fix field names.
4390
7a4e8e7d
TBA
43912020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4392
4393 * breakpoint.c: Fix typo in the help message of the
4394 "set breakpoint condition-evaluation" command.
4395
cf4ac4be
KR
43962020-09-10 Kamil Rytarowski <n54@gmx.com>
4397
4398 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4399 * (nbsd_nat_target::pid_to_exec_file)
4400 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4401 (nbsd_nat_target::post_startup_inferior)
4402 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4403 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4404 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4405 * (nbsd_thread_lister): Remove.
4406
f404573e
KR
44072020-09-10 Kamil Rytarowski <n54@gmx.com>
4408
4409 * fork-inferior.c (startup_inferior): Avoid double free.
4410
1ccb2c17
KR
44112020-09-10 Kamil Rytarowski <n54@gmx.com>
4412
4413 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4414 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4415
feedfcc7
KR
44162020-09-10 Kamil Rytarowski <n54@gmx.com>
4417
4418 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4419 * netbsd-nat.c: Include <sys/ptrace.h>.
4420 * (netbsd_nat::enable_proc_events): Add.
4421
c489f8c6
KR
44222020-09-10 Kamil Rytarowski <n54@gmx.com>
4423
4424 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4425 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4426 (netbsd_nat::for_each_thread): Add.
4427 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4428 "gdbsupport/common-debug.h".
4429 * (netbsd_nat::netbsd_thread_lister)
4430 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4431 (netbsd_nat::for_each_thread): Add.
4432
330662f6
KR
44332020-09-10 Kamil Rytarowski <n54@gmx.com>
4434
4435 * netbsd-nat.h: Include <unistd.h>.
4436 * (netbsd_nat::pid_to_exec_file): Add.
4437 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4438 * (netbsd_nat::pid_to_exec_file) Add.
4439
70b67307
KR
44402020-09-10 Kamil Rytarowski <n54@gmx.com>
4441
4442 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4443
99cf6da6
KR
44442020-09-10 Kamil Rytarowski <n54@gmx.com>
4445
4446 * netbsd-nat.h: New file.
4447 * netbsd-nat.c: Likewise.
4448
1b788fb6
TT
44492020-09-09 Tom Tromey <tromey@adacore.com>
4450
4451 * ada-lang.c (remove_extra_symbols): Do not increment when
4452 removing an element
4453
03b0a45f
TT
44542020-09-08 Tom Tromey <tromey@adacore.com>
4455
4456 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4457
3cae4447
TT
44582020-09-08 Tom Tromey <tromey@adacore.com>
4459
4460 PR win32/25302:
4461 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4462 (gdb_bfd_init_data): New function.
4463 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4464
7f08fd51
TBA
44652020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4466
4467 * infrun.c (fetch_inferior_event): Use
4468 `switch_to_target_no_thread` to switch the target.
4469
3e6ff933
TT
44702020-09-06 Tom Tromey <tom@tromey.com>
4471
4472 * symfile.h (dwarf2_free_objfile): Don't declare.
4473
e56798df
AKS
44742020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4475
4476 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4477 to match 16 byte real/complex type generated by Flang compiler.
4478
8f5c6526
TV
44792020-09-03 Tom de Vries <tdevries@suse.de>
4480
4481 PR breakpoint/26546
4482 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4483 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4484
c5065df0
SM
44852020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4486
4487 * maint.c (index_digits): New function.
4488 (struct maint_print_section_data): Remove.
4489 (print_bfd_section_info): Remove print_data parameter, add arg
4490 and index_digits.
4491 (print_objfile_section_info): Likewise.
4492 (print_bfd_section_info_maybe_relocated): Likewise (plus
4493 objfile).
4494 (maintenance_info_sections): Adjust calls.
4495
02c6f3f1
TT
44962020-09-02 Tom Tromey <tromey@adacore.com>
4497
4498 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4499 for null pointers.
4500 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4501
ef5e5b0b
SM
45022020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4503
4504 * bcache.h (struct bcache) <insert>: Change type of `added` to
4505 pointer to bool.
4506 * bcache.c (bcache::insert): Likewise.
4507 * gdbtypes.c (check_types_worklist): Adjust.
4508 * psymtab.c (add_psymbol_to_bcache): Adjust.
4509
973695d6
KB
45102020-08-31 Kevin Buettner <kevinb@redhat.com>
4511
4512 * corelow.c (unordered_set): Include.
4513 (class core_target): Add field 'm_core_unavailable_mappings'.
4514 (core_target::build_file_mappings): Print only one warning
4515 per inaccessible file. Add unavailable/broken mappings
4516 to m_core_unavailable_mappings.
4517 (core_target::xfer_partial): Call...
4518 (core_target::xfer_memory_via_mappings): New method.
4519
264fc0e2
SM
45202020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4523 type to bool.
4524
2de01bdb
SM
45252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 * dwarf2/read.c (struct field_info): Fix indentation.
4528
f3bd50f1
SM
45292020-08-31 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4532 ordering in comment.
4533 * frame.c (frame_id_eq): Fix indentation.
4534
22b9b4b0
SL
45352020-08-31 Scott Linder <scott@scottlinder.com>
4536 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4539 inline frame ids in outer frame.
4540
84154d16
SM
45412020-08-31 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4544 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4545 (outer_frame_id): Use FID_STACK_OUTER instead of
4546 FID_STACK_INVALID.
4547 (frame_id_p): Don't check for outer_frame_id.
4548
8efaf6b3
SM
45492020-08-31 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4552 regnum/frame in value. Call allocate_value_lazy.
4553 * frame.c (frame_unwind_register_value): Use
4554 val_print_not_saved.
4555
fe1fe7ea
SM
45562020-08-31 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4559
f7c7700d
PA
45602020-08-29 Pedro Alves <pedro@palves.net>
4561
4562 * progspace.c (print_program_space): Use all_inferiors. Switch to
4563 the inferior before calling target_pid_to_str.
4564
e0814aae
TT
45652020-08-28 Tom Tromey <tom@tromey.com>
4566
4567 * xcoffread.c (xcoff_end_psymtab): Update comment.
4568 * dbxread.c (dbx_end_psymtab): Update comment.
4569
626d2320
TV
45702020-08-28 Tom de Vries <tdevries@suse.de>
4571
4572 PR breakpoint/26544
4573 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4574 event_location.
4575 (create_breakpoint): Same.
4576 (base_breakpoint_decode_location): Same.
4577 (bkpt_create_sals_from_location): Same.
4578 (bkpt_decode_location): Same.
4579 (bkpt_probe_create_sals_from_location): Same.
4580 (bkpt_probe_decode_location): Same.
4581 (tracepoint_create_sals_from_location): Same.
4582 (tracepoint_decode_location): Same.
4583 (tracepoint_probe_decode_location): Same.
4584 (strace_marker_create_sals_from_location): Same.
4585 (strace_marker_decode_location): Same.
4586 (create_sals_from_location_default): Same.
4587 (decode_location_default): Same.
4588 * breakpoint.h (struct breakpoint_ops): Same.
4589 (create_breakpoint): Same.
4590 * linespec.h (decode_line_full): Same.
4591 * linespec.c (decode_line_full): Same. Throw error if
4592 result.size () == 0.
4593
df631783
PA
45942020-08-27 Pedro Alves <pedro@palves.net>
4595
4596 PR gdb/26524
4597 * breakpoint.c (until_break_fsm) <location_breakpoint,
4598 caller_breakpoint>: Delete fields.
4599 <breakpoints>: New field.
4600 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4601 two individual breakpoints.
4602 (until_break_fsm::should_stop): Loop over breakpoints in the
4603 breakpoint vector.
4604 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4605 vector.
4606 (until_break_command): Handle location expanding into multiple
4607 sals.
4608
b2b38aa4
PA
46092020-08-27 Pedro Alves <pedro@palves.net>
4610
4611 PR gdb/26523
4612 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4613 bp_until breakpoints user-specified locations. Update intro
4614 comment.
4615
b886559f
SM
46162020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4617
4618 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4619 gdb_bfd_sections): New.
4620 * maint.c (print_bfd_section_info): Change param type to
4621 maint_print_section_data.
4622 (print_objfile_section_info): Likewise.
4623 (print_bfd_section_info_maybe_relocated): Likewise.
4624 (maintenance_info_sections): Use gdb_bfd_sections.
4625
4c6e63bf
SV
46262020-08-25 Shahab Vahedi <shahab@synopsys.com>
4627
4628 * MAINTAINERS: Add ARC target and maintainer.
4629
8d7f0635
AK
46302020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4631
4632 * configure.tgt: ARC support for GNU/Linux.
4633 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4634 * arc-linux-tdep.c: New file.
4635 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4636 * arc-tdep.c (arc_write_pc): Use it.
4637
fdd8731b
SV
46382020-08-25 Shahab Vahedi <shahab@synopsys.com>
4639
4640 * arc-tdep.c (arc_check_for_hardware_loop): New.
4641 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4642
22459524
SV
46432020-08-25 Shahab Vahedi <shahab@synopsys.com>
4644
4645 * arc-tdep.h: Include "gdbarch.h".
4646
995d3a19
SV
46472020-08-25 Shahab Vahedi <shahab@synopsys.com>
4648
4649 * arch/arc.h
4650 (arc_gdbarch_features): New class to stir the selection of target XML.
4651 (arc_create_target_description): Use FEATURES to choose XML target.
4652 (arc_lookup_target_description): Use arc_create_target_description
4653 to create _new_ target descriptions or return the already created
4654 ones if the FEATURES is the same.
4655 * arch/arc.c: Implementation of prototypes described above.
4656 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4657 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4658 * arc-tdep.c (*_feature_name): Make feature names consistent.
4659 (arc_register_feature): A new struct to hold information about
4660 registers of a particular target/feature.
4661 (arc_check_tdesc_feature): Check if XML provides registers in
4662 compliance with ARC_REGISTER_FEATURE structs.
4663 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4664 (determine_*_reg_feature_set): Which feature name to look for.
4665 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4666 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4667 to expected ISA enums to be used in arc_gdbarch_features structs.
4668 * features/Makefile (FEATURE_XMLFILES): Add new files.
4669 * gdb/features/arc/v1-aux.c: New file.
4670 * gdb/features/arc/v1-aux.xml: Likewise.
4671 * gdb/features/arc/v1-core.c: Likewise.
4672 * gdb/features/arc/v1-core.xml: Likewise.
4673 * gdb/features/arc/v2-aux.c: Likewise.
4674 * gdb/features/arc/v2-aux.xml: Likewise.
4675 * gdb/features/arc/v2-core.c: Likewise.
4676 * gdb/features/arc/v2-core.xml: Likewise.
4677 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4678
3945d2d7
GM
46792020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4680 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 PR m2/26372
fc5d6901 4683 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4684 an assert. Remove single element array indexing pattern as the
4685 MULTI_SUBSCRIPT support will handle this case too.
4686
2677f2d3
SM
46872020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * value.h (valprint_check_validity): Move declaration from
4690 here...
4691 * valprint.h (valprint_check_validity): ... to here.
4692
c426fddb
SM
46932020-08-24 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * debug.h: New file.
4696 * debug.c (debug_prefixed_vprintf): New function.
4697 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4698 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4699
1eb8556f
SM
47002020-08-24 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * infrun.h (infrun_debug_printf_1): New function declaration.
4703 (infrun_debug_printf): New macro.
4704 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4705 throughout.
4706 (infrun_debug_printf): New function.
4707 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4708 (handle_jit_event): Likewise.
4709
b8fff44e
MW
47102020-08-21 Mark Wielaard <mark@klomp.org>
4711
4712 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4713
d19c3068
SM
47142020-08-22 Simon Marchi <simon.marchi@efficios.com>
4715
4716 * frame.c (enum class frame_id_status): New.
4717 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4718 (fprintf_frame): Update.
4719 (compute_frame_id): Set frame id status to "computing" on entry.
4720 Set it back to "not_computed" on failure and to "computed" on
4721 success.
4722 (get_frame_id): Assert the frame id is not being computed.
4723 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4724 (create_new_frame): Likewise.
4725 (frame_cleanup_after_sniffer): Update assert.
4726
b70e516e
SM
47272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * regcache.c (pid_ptid_regcache_map): New type.
4730 (target_ptid_regcache_map): Remove.
4731 (target_pid_ptid_regcache_map): New type.
4732 (regcaches): Change type to target_pid_ptid_regcache_map.
4733 (get_thread_arch_aspace_regcache): Update.
4734 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4735 case.
4736 (regcaches_size): Update.
4737 (regcache_count): Update.
4738 (registers_changed_ptid_target_pid_test): New.
4739 (_initialize_regcache): Register new test.
4740
cdd9148a
SM
47412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * regcache.c (regcache_count): New.
4744 (struct regcache_test_data): New.
4745 (regcache_test_data_up): New.
4746 (populate_regcaches_for_test): New.
4747 (regcaches_test): Remove.
4748 (get_thread_arch_aspace_regcache_test): New.
4749 (registers_changed_ptid_all_test): New.
4750 (registers_changed_ptid_target_test): New.
4751 (registers_changed_ptid_target_ptid_test): New.
4752 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4753 (_initialize_regcache): Register new tests.
4754
dd125343
SM
47552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4758 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4759 gdbarch and aspace parameter. Use current inferior's aspace.
4760 Validate regcache's arch value.
4761 (regcaches_test): Update.
4762
3ee93972
SM
47632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * regcache.c (regcaches_test): Call registers_changed.
4766
33bf4c5c
TBA
47672020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4768
4769 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4770
c2fd7fae
AKS
47712020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4772
4773 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4774 to find the end of prologue for flang compiled binaries.
4775 * arm-tdep.c (arm_skip_prologue): Likewise.
4776 * i386-tdep.c (i386_skip_prologue): Likewise.
4777 * producer.c (producer_is_llvm): New function.
4778 (producer_parsing_tests): Added new tests for clang/flang.
4779 * producer.h (producer_is_llvm): New declaration.
4780
9327494e
SM
47812020-08-18 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * linux-nat.c (linux_nat_debug_printf): New function.
4784 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4785
d138725a
AM
47862020-08-18 Aaron Merey <amerey@redhat.com>
4787
4788 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4789 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4790 (CLIBS): Add DEBUGINFOD_LIBS.
4791
f9b11e6b
ST
47922020-08-17 Sergei Trofimovich <siarheit@google.com>
4793
4794 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4795 'gdbarch_num_regs'.
4796
3ae7ab99
TT
47972020-08-17 Tom Tromey <tromey@adacore.com>
4798
4799 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4800 ada_get_decoded_value returns NULL.
4801
b017825f
TT
48022020-08-17 Tom Tromey <tromey@adacore.com>
4803
4804 * python/py-inferior.c (infpy_search_memory): Use
4805 gdb_py_object_from_ulongest.
4806 * python/py-infevents.c (create_inferior_call_event_object)
4807 (create_memory_changed_event_object): Use
4808 gdb_py_object_from_ulongest.
4809 * python/py-linetable.c (ltpy_entry_get_pc): Use
4810 gdb_py_object_from_ulongest.
4811
7635cf79
SM
48122020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4813
4814 * loc.c (class symbol_needs_eval_context): Fix indentation.
4815
f54be24b
SM
48162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4817
4818 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4819 bool.
4820
53d5a2a5
TV
48212020-08-17 Tom de Vries <tdevries@suse.de>
4822
4823 PR gdb/26393
4824 * gdbtypes.c (dump_dynamic_prop): New function.
4825 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4826
547ce8f0
TV
48272020-08-15 Tom de Vries <tdevries@suse.de>
4828
4829 PR backtrace/26390
4830 * stack.c (print_frame_args): Temporarily set the selected
4831 frame to FRAME while printing the frame's arguments.
4832
6ea815e7
PFC
48332020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4834
4835 PR breakpoints/26385
4836 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4837 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4838
6e562fa3
PFC
48392020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4840
4841 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4842 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4843 and >= to check return value instead of == -1 and != -1.
4844
d369b608
SM
48452020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4846
4847 * utils.h (class gdb_argv) <as_array_view>: New method.
4848 * utils.c (gdb_argv_as_array_view_test): New.
4849 (_initialize_utils): Register selftest.
4850 * maint.c (maintenance_selftest): Use the new method.
4851
b31488a3
KR
48522020-08-13 Kamil Rytarowski <n54@gmx.com>
4853
4854 * target.h (supports_dumpcore, dumpcore): New
4855 function declarations.
4856 * target.c (supports_dumpcore, dumpcore): New
4857 functions.
4858 * target-delegates.c: Rebuild.
4859 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4860 and target_dumpcore ().
4861
002a3166
AM
48622020-08-13 Aaron Merey <amerey@redhat.com>
4863
4864 * debuginfod-support.c: Replace global variables with user_data.
4865
ece5bc8a
SM
48662020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4867
4868 * maint.c (maintenance_selftest): Split args and pass array_view
4869 to run_tests.
4870
6d8a0a5e
LM
48712020-08-12 Luis Machado <luis.machado@linaro.org>
4872
4873 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4874 type's length.
4875 Use %s and pulongest to print the length.
4876
7cf663a9
PA
48772020-08-12 Pedro Alves <palves@redhat.com>
4878
4879 * NEWS: Move "Multi-target debugging support" item to the
4880 "Changes since GDB 9" section.
4881
27c7b875
PA
48822020-08-12 Pedro Alves <palves@redhat.com>
4883
4884 PR gdb/26336
4885 * progspace.c (program_space::remove_objfile): Invalidate the
4886 frame cache.
4887
1796a2a1
TV
48882020-08-11 Tom de Vries <tdevries@suse.de>
4889
4890 * MAINTAINERS: Mark ms1 as deleted.
4891
f8e3fe0d
LM
48922020-08-10 Luis Machado <luis.machado@linaro.org>
4893
4894 PR gdb/26310
4895
4896 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4897 act accordingly.
4898 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4899 movz/str/stur/stp skipping behavior.
4900
cc308722
LM
49012020-08-10 Luis Machado <luis.machado@linaro.org>
4902
4903 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4904 struct user_sve_header instead of struct sve_context.
4905
041d9819
SM
49062020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4907
4908 * read.h (dwarf2_fetch_die_loc_sect_off,
4909 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4910 `void *` parameter with function_view.
4911 * read.c (dwarf2_fetch_die_loc_sect_off,
4912 dwarf2_fetch_die_loc_cu_off): Likewise.
4913 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4914 (per_cu_dwarf_call): Adjust.
4915 (get_frame_address_in_block_wrapper): Remove.
4916 (indirect_synthetic_pointer): Adjust.
4917 (get_ax_pc): Remove.
4918 (dwarf2_compile_expr_to_ax): Adjust.
4919
38f8aa06
TV
49202020-08-08 Tom de Vries <tdevries@suse.de>
4921
4922 PR build/26344
4923 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4924 constructor.
4925 * regcache.c (get_thread_arch_aspace_regcache): Same.
4926
a52b3ae2
TT
49272020-08-07 Tom Tromey <tromey@adacore.com>
4928
4929 * ravenscar-thread.c
4930 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4931 New method.
4932 (ravenscar_thread_target::wait): Check
4933 runtime_initialized.
4934 (ravenscar_thread_target::prepare_to_store)
4935 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4936 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4937 (ravenscar_thread_target::stopped_by_watchpoint)
4938 (ravenscar_thread_target::stopped_data_address)
4939 (ravenscar_thread_target::core_of_thread): Use
4940 scoped_restore_current_thread and
4941 set_base_thread_from_ravenscar_task.
4942
0e29517d
TT
49432020-08-07 Tom Tromey <tromey@adacore.com>
4944
4945 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4946
592f9bd7
TT
49472020-08-07 Tom Tromey <tromey@adacore.com>
4948
4949 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4950 update_inferior_ptid before update_thread_list.
4951 (temporarily_change_regcache_ptid): New class.
4952 (ravenscar_thread_target::fetch_registers)
4953 (ravenscar_thread_target::store_registers)
4954 (ravenscar_thread_target::prepare_to_store): Use base thread when
4955 forwarding operation.
4956
39e2018a
TT
49572020-08-07 Tom Tromey <tromey@adacore.com>
4958
4959 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4960 "is_pid" case.
4961
2080266b
TT
49622020-08-07 Tom Tromey <tromey@adacore.com>
4963
4964 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4965 New methods.
4966 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4967 first.
4968 (ravenscar_thread_target::add_thread): Rename from
4969 ravenscar_add_thread.
4970 (ravenscar_thread_target::update_thread_list): Use a lambda.
4971 (ravenscar_thread_target::xfer_partial): New method.
4972
78c02f21
TT
49732020-08-07 Tom Tromey <tromey@adacore.com>
4974
4975 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4976 gdb::function_view.
4977 (iterate_over_live_ada_tasks): Change type of argument.
4978 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4979 of argument.
4980
d5d833af
TT
49812020-08-07 Tom Tromey <tromey@adacore.com>
4982
4983 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4984 Remove.
4985 (ravenscar_thread_target::extra_thread_info): Remove.
4986 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4987 defer to target beneath for non-Ravenscar threads.
4988
a8ac85bb
TT
49892020-08-07 Tom Tromey <tromey@adacore.com>
4990
4991 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4992 get_base_thread_from_ravenscar_task>: Now methods.
4993 <m_cpu_map>: New member.
4994 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4995 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4996 (ravenscar_thread_target::task_is_currently_active): Update.
4997 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4998 Now a method.
4999 (ravenscar_thread_target::add_active_thread): Put initial thread
5000 into the m_cpu_map.
5001
550ab58d
TT
50022020-08-07 Tom Tromey <tromey@adacore.com>
5003
5004 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5005 event_ptid.
5006
e9546579
TT
50072020-08-07 Tom Tromey <tromey@adacore.com>
5008
5009 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5010 runtime_initialized.
5011
3d4470e5
TT
50122020-08-07 Tom Tromey <tromey@adacore.com>
5013
5014 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5015 add_active_thread.
5016 (ravenscar_thread_target::add_active_thread): Now public.
5017 (ravenscar_inferior_created): Call add_active_thread after pushing
5018 the target.
5019
888bdb2b
SM
50202020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * regcache.c (ptid_regcache_map): New type.
5023 (target_ptid_regcache_map): New type.
5024 (regcaches): Change type to target_ptid_regcache_map.
5025 (get_thread_arch_aspace_regcache): Update to regcaches' new
5026 type.
5027 (regcache_thread_ptid_changed): Likewise.
5028 (registers_changed_ptid): Likewise.
5029 (regcaches_size): Likewise.
5030 (regcaches_test): Update.
5031 (regcache_thread_ptid_changed): Update.
5032 * regcache.h (regcache_up): New type.
5033 * gdbsupport/ptid.h (hash_ptid): New struct.
5034
b161a60d
SM
50352020-08-07 Simon Marchi <simon.marchi@efficios.com>
5036
5037 * observable.h (thread_ptid_changed): Add parameter
5038 `process_stratum_target *`.
5039 * infrun.c (infrun_thread_ptid_changed): Add parameter
5040 `process_stratum_target *` and use it.
5041 (selftests): New namespace.
5042 (infrun_thread_ptid_changed): New function.
5043 (_initialize_infrun): Register selftest.
5044 * regcache.c (regcache_thread_ptid_changed): Add parameter
5045 `process_stratum_target *` and use it.
5046 (regcache_thread_ptid_changed): New function.
5047 (_initialize_regcache): Register selftest.
5048 * thread.c (thread_change_ptid): Pass target to
5049 thread_ptid_changed observable.
5050
d2854d8d
CT
50512020-08-06 Caroline Tice <cmtice@google.com>
5052
fe4c3d43
SM
5053 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5054 (struct dwp_sections): Update field comments. Add loclists and
5055 rnglists fields.
5056 (struct virtual_v2_dwo_sections): Rename struct to
5057 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5058 size & offset fields for loclists and rnglists.
5059 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5060 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5061 skipping dummy type units.
5062 (create_dwp_hash_table): Update the large comment above the function to
5063 discuss Version 5 DWP files as well, with references. Update all the
5064 version checks in the function to check for version 5 as well. Add new
5065 section at the end to create dwp hash table for version 5.
5066 (create_dwp_v2_section): Rename function to
5067 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5068 Add V5 to error message text.
5069 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5070 into calls to create_dwp_v2_or_v5_section.
5071 (create_dwo_unit_in_dwp_v5): New function.
5072 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5073 check for version2; add else clause to handle version 5.
5074 (open_and_init_dwo_file): Add code to check dwarf version & only call
5075 create_debug_types_hash_table (with sections.types) if version is not 5;
5076 else call create_debug_type_hash_table, with sections.info.
5077 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5078 version 5.
5079 (dwarf2_locate_v5_dwp_sections): New function.
5080 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5081 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5082
159ed7d9
SM
50832020-08-06 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * regcache.h (class regcache): Remove friend
5086 registers_changed_ptid.
5087 <regcache_thread_ptid_changed>: Remove.
5088 <regcaches>: Remove.
5089 * regcache.c (regcache::regcaches): Rename to...
5090 (regcaches): ... this. Make static.
5091 (get_thread_arch_aspace_regcache): Update.
5092 (regcache::regcache_thread_ptid_changed): Rename to...
5093 (regcache_thread_ptid_changed): ... this. Update.
5094 (class regcache_access): Remove.
5095 (regcaches_test): Update.
5096 (_initialize_regcache): Update.
5097 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5098 <forward_list>.
5099
174981ae
SM
51002020-08-06 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * regcache.h (class regcache) <current_regcache>: Rename to...
5103 <regcaches>: ... this. Move doc here.
5104 * regcache.c (regcache::current_regcache) Rename to...
5105 (regcache::regcaches): ... this. Move doc to header.
5106 (get_thread_arch_aspace_regcache): Update.
5107 (regcache::regcache_thread_ptid_changed): Update.
5108 (registers_changed_ptid): Update.
5109 (class regcache_access) <current_regcache_size>: Rename to...
5110 <regcaches_size>: ... this.
5111 (current_regcache_test): Rename to...
5112 (regcaches_test): ... this.
5113 (_initialize_regcache): Update.
5114
ed908db6
VC
51152020-08-06 Victor Collod <vcollod@nvidia.com>
5116
5117 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5118
b5582ab7
KB
51192020-08-05 Kevin Buettner <kevinb@redhat.com>
5120
5121 * corelow.c (core_target::build_file_mappings): Don't output
5122 null pathname in warning.
5123
ea946b86
SM
51242020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5125
5126 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5127 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5128 gdb.dwarf2/dw2-single-line-discriminators.exp,
5129 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5130
57d02173
TT
51312020-08-05 Tom Tromey <tromey@adacore.com>
5132
5133 PR rust/26197:
5134 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5135 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5136 Fix off-by-one and type size errors in ordinary case.
5137
5555c86d
TV
51382020-08-05 Tom de Vries <tdevries@suse.de>
5139
5140 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5141 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5142
97916bfe
SM
51432020-08-04 Simon Marchi <simon.marchi@efficios.com>
5144
5145 * frame.h (frame_id_p): Return bool.
5146 (frame_id_artificial_p): Return bool.
5147 (frame_id_eq): Return bool.
5148 (has_stack_frames): Return bool.
5149 (get_selected_frame): Fix typo in comment.
5150 (get_frame_pc_if_available): Return bool.
5151 (get_frame_address_in_block_if_available): Return bool.
5152 (get_frame_func_if_available): Return bool.
5153 (read_frame_register_unsigned): Return bool.
5154 (get_frame_register_bytes): Return bool.
5155 (safe_frame_unwind_memory): Return bool.
5156 (deprecated_frame_register_read): Return bool.
5157 (frame_unwinder_is): Return bool.
5158 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5159 bool.
5160 <this_id::p>: Likewise.
5161 <prev_p>: Likewise.
5162 (frame_stash_add): Return bool.
5163 (get_frame_id): Use bool.
5164 (frame_id_build_special) Use bool.
5165 (frame_id_build_unavailable_stack): Use bool.
5166 (frame_id_build): Use bool.
5167 (frame_id_p): Return bool, use true/false instead of 1/0.
5168 (frame_id_artificial_p): Likewise.
5169 (frame_id_eq): Likewise.
5170 (frame_id_inner): Likewise.
5171 (get_frame_func_if_available): Likewise.
5172 (read_frame_register_unsigned): Likewise.
5173 (deprecated_frame_register_read): Likewise.
5174 (get_frame_register_bytes): Likewise.
5175 (has_stack_frames): Likewise.
5176 (inside_main_func): Likewise.
5177 (inside_entry_func): Likewise.
5178 (get_frame_pc_if_available): Likewise.
5179 (get_frame_address_in_block_if_available): Likewise.
5180 (frame_unwinder_is): Likewise.
5181 (safe_frame_unwind_memory): Likewise.
5182 (frame_unwind_arch): Likewise.
5183
fedfee88
SM
51842020-08-04 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5187 type to cached_copy_status.
5188 (fprintf_frame): Adjust.
5189 (get_frame_func_if_available): Adjust.
5190 (frame_cleanup_after_sniffer): Adjust.
5191
6cfa9b59
MW
51922020-08-04 Mark Wielaard <mark@klomp.org>
5193
5194 * MAINTAINERS (Write After Approval): Update email address.
5195
66d6346b
SM
51962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5197
5198 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5199 dynamic_prop::const_val.
5200
8a6d5e35
SM
52012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5202
5203 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5204 dynamic_prop::kind.
5205
51d6067d
SM
52062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5207
5208 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5209
b26e2ae7
JM
52102020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5211
5212 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5213
39791af2
JM
52142020-08-04 Weimin Pan <weimin.pan@oracle.com>
5215 Jose E. Marchesi <jose.marchesi@oracle.com>
5216
5217 * configure.tgt: Add entry for bpf-*-*.
5218 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5219 (ALLDEPFILES): Add bpf-tdep.c.
5220 * bpf-tdep.c: New file.
5221 * MAINTAINERS: Add bpf target and maintainer.
5222 * NEWS: Mention the support for the new target.
5223
521894aa
TV
52242020-08-04 Tom de Vries <tdevries@suse.de>
5225
5226 PR symtab/23270
5227 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5228 Error.
5229
5d6356e9
JB
52302020-08-03 John Baldwin <jhb@FreeBSD.org>
5231
5232 * syscalls/freebsd.xml: Regenerate.
5233
0cf82b81
JB
52342020-08-03 John Baldwin <jhb@FreeBSD.org>
5235
5236 * syscalls/update-freebsd.sh: Fix usage and year range.
5237
8f34b746
TV
52382020-08-03 Tom de Vries <tdevries@suse.de>
5239
5240 PR symtab/26333
5241 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5242 DW_LNE_lo_user/DW_LNE_hi_user range.
5243
5e500d33
SM
52442020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 PR ada/26318
5247 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5248 kind.
5249
78319c15
TBA
52502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5251
5252 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5253
4c55e970
TBA
52542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5255
5256 * breakpoint.c (set_breakpoint_condition): Update the condition
5257 expressions after checking that the input condition string parses
5258 successfully and does not contain junk at the end.
5259
1e620590
TBA
52602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5261
5262 * breakpoint.c (set_breakpoint_condition): Update the
5263 condition string after parsing the new condition successfully.
5264
c8693053
RO
52652020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5266
5267 * proc-api.c (_STRUCTURED_PROC): Don't define.
5268 * proc-events.c: Likewise.
5269 * proc-flags.c: Likewise.
5270 * proc-why.c: Likewise.
5271 * procfs.c: Likewise.
5272
5273 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5274 * configure, config.in: Regenerate.
5275
5a99adb8
TV
52762020-07-30 Tom de Vries <tdevries@suse.de>
5277
5278 PR build/26320
5279 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5280 m_red/m_green/m_blue in a union.
5281
8ba83e91
TV
52822020-07-29 Tom de Vries <tdevries@suse.de>
5283
5284 PR tdep/26280
5285 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5286
f75a0693
AB
52872020-07-28 Tom Tromey <tromey@adacore.com>
5288
5289 PR symtab/26270:
5290 * symtab.h (find_pc_partial_function_sym): Declare.
5291 * cli/cli-cmds.c (disassemble_command): Use
5292 find_pc_partial_function_sym. Check asm_demangle.
5293 * blockframe.c (cache_pc_function_sym): New global.
5294 (cache_pc_function_name): Remove.
5295 (clear_pc_function_cache): Update.
5296 (find_pc_partial_function_sym): New function, from
5297 find_pc_partial_function.
5298 (find_pc_partial_function): Rewrite using
5299 find_pc_partial_function_sym.
5300
16f3242c
TT
53012020-07-28 Tom Tromey <tromey@adacore.com>
5302
5303 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5304 help. Add usage.
5305
4888741a
TT
53062020-07-28 Tom Tromey <tromey@adacore.com>
5307
5308 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5309 <DW_OP_GNU_variable_value>: Cast to address type.
5310
4d46f402
KR
53112020-07-28 Kamil Rytarowski <n54@gmx.com>
5312
5313 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5314 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5315 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5316 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5317 (nbsd_get_siginfo_type): New.
5318 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5319 (_initialize_nbsd_tdep): New.
5320
d70f978b
L
53212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5322
5323 PR binutils/26301
5324 * configure: Regenerated.
5325
377170fa
L
53262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5327
5328 PR binutils/26301
5329 * configure: Regenerated.
5330
43d5901d
AB
53312020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * python/py-frame.c: Remove 'user-regs.h' include.
5334 (frapy_read_register): Rewrite to make use of
5335 gdbpy_parse_register_id.
5336 * python/py-registers.c (gdbpy_parse_register_id): New function,
5337 moved here from python/py-unwind.c. Updated the return type, and
5338 also accepts register descriptor objects.
5339 * python/py-unwind.c: Remove 'user-regs.h' include.
5340 (pyuw_parse_register_id): Moved to python/py-registers.c.
5341 (unwind_infopy_add_saved_register): Update to use
5342 gdbpy_parse_register_id.
5343 (pending_framepy_read_register): Likewise.
5344 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5345
14fa8fb3
AB
53462020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * python/py-registers.c: Add 'user-regs.h' include.
5349 (register_descriptor_iter_find): New function.
5350 (register_descriptor_iterator_object_methods): New static global
5351 methods array.
5352 (register_descriptor_iterator_object_type): Add pointer to methods
5353 array.
5354
ddce1758
JB
53552020-07-27 John Baldwin <jhb@FreeBSD.org>
5356
5357 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5358 for all architectures on FreeBSD 11.3 and later.
5359
a4089f52
TT
53602020-07-27 Tom Tromey <tromey@adacore.com>
5361
5362 * gcore.h (load_corefile): Don't declare.
5363
95420d30
TV
53642020-07-27 Tom de Vries <tdevries@suse.de>
5365
5366 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5367 * config.in: Regenerate.
5368 * configure: Regenerate.
5369
05a6b8c2
EZ
53702020-07-26 Eli Zaretskii <eliz@gnu.org>
5371
5372 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5373 ws2tcpip.h. When checking whether socklen_t type is defined, use
5374 ws2tcpip.h if it is available and sys/socket.h isn't.
5375 * configure: Regenerate.
5376 * config.in: Regenerate.
5377
e79eb02f
AB
53782020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 PR fortran/23051
5381 PR fortran/26139
5382 * valops.c (value_ind): Pass address to
5383 readjust_indirect_value_type.
5384 * value.c (readjust_indirect_value_type): Make parameter
5385 non-const, and add extra address parameter. Resolve original type
5386 before using it.
5387 * value.h (readjust_indirect_value_type): Update function
5388 signature and comment.
5389
876518dd
TV
53902020-07-25 Tom de Vries <tdevries@suse.de>
5391
5392 PR symtab/26243
5393 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5394 entries.
5395
f6720b1c
AM
53962020-07-24 Aaron Merey <amerey@redhat.com>
5397
5398 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5399 * configure: Rebuild.
5400
513487e1
KB
54012020-07-23 Kevin Buettner <kevinb@redhat.com>
5402
5403 PR corefiles/26294
5404 * corelow.c (_initialize_corelow): Add period to help text
5405 for "maintenance print core-file-backed-mappings".
5406
e7bc9db8
PA
54072020-07-23 Pedro Alves <pedro@palves.net>
5408
5409 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5410 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5411 meanwhile.
5412 * frame.c (frame_cache_generation, get_frame_cache_generation):
5413 New.
5414 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5415 (get_prev_frame_if_no_cycle): On exception, don't touch
5416 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5417 * frame.h (get_frame_cache_generation): Declare.
5418
90fcc466
TV
54192020-07-23 Tom de Vries <tdevries@suse.de>
5420
5421 PR tui/26282
5422 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5423 New default constructor.
5424
78344df7
AB
54252020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5426
5427 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5428 exclude non-statement entries.
5429
b089853a
KB
54302020-07-22 Kevin Buettner <kevinb@redhat.com>
5431
5432 * NEWS (New commands): Mention new command
5433 "maintenance print core-file-backed-mappings".
5434
09c2f5d4
KB
54352020-07-22 Kevin Buettner <kevinb@redhat.com>
5436
5437 * corelow.c (gdbcmd.h): Include.
5438 (core_target::info_proc_mappings): New method.
5439 (get_current_core_target): New function.
5440 (maintenance_print_core_file_backed_mappings): New function.
5441 (_initialize_corelow): Add core-file-backed-mappings to
5442 "maint print" commands.
5443
9c5ec5c2 54442020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5445
9c5ec5c2
KB
5446 * linux-tdep.c (dump_note_entry_p): New function.
5447 (linux_dump_mapping_p_ftype): New typedef.
5448 (linux_find_memory_regions_full): Add new parameter,
5449 should_dump_mapping_p.
5450 (linux_find_memory_regions): Adjust call to
5451 linux_find_memory_regions_full.
5452 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5453 call to linux_find_memory_regions_full.
5454
db082f59
KB
54552020-07-22 Kevin Buettner <kevinb@redhat.com>
5456
5457 * corelow.c (solist.h, unordered_map): Include.
5458 (class core_target): Add field m_core_file_mappings and
5459 method build_file_mappings.
5460 (core_target::core_target): Call build_file_mappings.
5461 (core_target::~core_target): Free memory associated with
5462 m_core_file_mappings.
5463 (core_target::build_file_mappings): New method.
5464 (core_target::xfer_partial): Use m_core_file_mappings
5465 for memory transfers.
5466 * linux-tdep.c (linux_read_core_file_mappings): New
5467 function.
5468 (linux_core_info_proc_mappings): Rewrite to use
5469 linux_read_core_file_mappings.
5470 (linux_init_abi): Register linux_read_core_file_mappings.
5471
7e183d27
KB
54722020-07-22 Kevin Buettner <kevinb@redhat.com>
5473
5474 * arch-utils.c (default_read_core_file_mappings): New function.
5475 * arch-utils.c (default_read_core_file_mappings): Declare.
5476 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5477 * gdbarch.h, gdbarch.c: Regenerate.
5478
2735d421
KB
54792020-07-22 Kevin Buettner <kevinb@redhat.com>
5480
5481 PR corefiles/25631
5482 * corelow.c (core_target:xfer_partial): Revise
5483 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5484 case after first checking the stratum beneath the core
5485 target.
5486 (has_all_memory): Return true.
5487 * target.c (raw_memory_xfer_partial): Revise comment
5488 regarding use of has_all_memory.
5489
e56cb451
KB
54902020-07-22 Kevin Buettner <kevinb@redhat.com>
5491
5492 * exec.h (section_table_xfer_memory): Revise declaration,
5493 replacing section name parameter with an optional callback
5494 predicate.
5495 * exec.c (section_table_xfer_memory): Likewise.
5496 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5497 of section_table_xfer_memory.
5498
32fa152e
TT
54992020-07-22 Tom Tromey <tromey@adacore.com>
5500
5501 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5502 lookup_symbol_search_name.
5503
a67a1c41
AB
55042020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5507 redundant local variable.
5508 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5509 reference, not pointer, update code accordingly.
5510
a7b4ff4f
SM
55112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5512 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5513
5514 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5515 * jit.c (jit_breakpoint_re_set_internal): Use the
5516 `skip_jit_symbol_lookup` field.
5517
2340e834
SM
55182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5519 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5520
5521 * jit.c (jit_read_descriptor): Define the descriptor address once,
5522 use twice.
5523 (jit_breakpoint_deleted): Move the declaration of the loop variable
5524 `iter` into the loop header.
5525 (jit_breakpoint_re_set_internal): Move the declaration of the local
5526 variable `objf_data` to the first point of definition.
5527 (jit_event_handler): Move the declaration of local variables
5528 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5529 Rename `objf` to `jited`.
5530
c1072906
SM
55312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5534 Remove.
5535 * jit.c (get_jiter_objfile_data): Update.
5536
c8474dc3
TBA
55372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5538 Simon Marchi <simon.marchi@polymtl.ca>
5539
5540 * jit.c (struct jit_program_space_data): Remove.
5541 (jit_program_space_key): Remove.
5542 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5543 stuff.
5544 (get_jit_program_space_data): Remove.
5545 (jit_breakpoint_deleted): Iterate on all of the program space's
5546 objfiles.
5547 (jit_inferior_init): Likewise.
5548 (jit_breakpoint_re_set_internal): Likewise. Also change return
5549 type to void.
5550 (jit_breakpoint_re_set): Pass current_program_space to
5551 jit_breakpoint_re_set_internal.
5552
77208eb7
SM
55532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * jit.h (struct jiter_objfile_data) <cached_code_address,
5556 jit_breakpoint>: Move to here from ...
5557 * jit.c (jit_program_space_data): ... here.
5558 (jiter_objfile_data::~jiter_objfile_data): Update.
5559 (jit_breakpoint_deleted): Update.
5560 (jit_breakpoint_re_set_internal): Update.
5561
8c1c720f
SM
55622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5565 checks.
5566 (jit_read_descriptor): Remove NULL check.
5567 (jit_event_handler): Add an assertion.
5568
0e74a041
SM
55692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * jit.h (struct jit_objfile_data): Split into...
5572 (struct jiter_objfile_data): ... this ...
5573 (struct jited_objfile_data): ... and this.
5574 * objfiles.h (struct objfile) <jit_data>: Remove.
5575 <jiter_data, jited_data>: New fields.
5576 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5577 (jiter_objfile_data::~jiter_objfile_data): ... this.
5578 (get_jit_objfile_data): Rename to ...
5579 (get_jiter_objfile_data): ... this.
5580 (add_objfile_entry): Update.
5581 (jit_read_descriptor): Use get_jiter_objfile_data.
5582 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5583 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5584 (jit_inferior_exit_hook): Use objfile's jited_data field.
5585
238b5c9f
SM
55862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * jit.h: Forward-declare `struct minimal_symbol`.
5589 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5590 constructor, destructor, and an objfile* field.
5591 * jit.c (jit_objfile_data): Remove.
5592 (struct jit_objfile_data): Migrate from here to jit.h.
5593 (jit_objfile_data::~jit_objfile_data): New destructor
5594 implementation with code moved from free_objfile_data.
5595 (free_objfile_data): Delete.
5596 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5597 (jit_find_objf_with_entry_addr): Ditto.
5598 (jit_inferior_exit_hook): Ditto.
5599 (_initialize_jit): Remove the call to
5600 register_objfile_data_with_cleanup.
5601 * objfiles.h (struct objfile) <jit_data>: New field.
5602
fe053b9e
TBA
56032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5604
5605 * jit.h: Forward-declare `struct objfile`.
5606 (jit_event_handler): Add a second parameter, the JITer objfile.
5607 * jit.c (jit_read_descriptor): Change the signature to take the
5608 JITer objfile as an argument instead of the jit_program_space_data.
5609 (jit_inferior_init): Update the call to jit_read_descriptor.
5610 (jit_event_handler): Use the new JITer objfile argument when calling
5611 jit_read_descriptor.
5612 * breakpoint.c (handle_jit_event): Update the call to
5613 jit_event_handler to pass the JITer objfile.
5614
4cec0c66
JB
56152020-07-21 John Baldwin <jhb@FreeBSD.org>
5616
5617 * gdbarch.c: Regenerate.
5618 * gdbarch.h: Regenerate.
5619 * gdbarch.sh (handle_segmentation_fault): Remove method.
5620 * infrun.c (handle_segmentation_fault): Remove.
5621 (print_signal_received_reason): Remove call to
5622 handle_segmentation_fault.
5623
0e42f66a
JB
56242020-07-21 John Baldwin <jhb@FreeBSD.org>
5625
5626 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5627 Rename to sparc64_linux_report_signal_info and add siggnal
5628 argument.
5629 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5630 instead of sparc64_linux_handle_segmentation_fault.
5631
77bdfeb2
JB
56322020-07-21 John Baldwin <jhb@FreeBSD.org>
5633
5634 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5635 i386_linux_report_signal_info instead of
5636 i386_linux_handle_segmentation_fault.
5637 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5638 to i386_linux_report_signal_info and add siggnal argument.
5639 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5640 of i386_linux_handle_segmentation_fault.
5641 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5642 to i386_linux_report_signal_info and add siggnal argument.
5643
ad97bfc5
JB
56442020-07-21 John Baldwin <jhb@FreeBSD.org>
5645
5646 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5647 hook if present.
5648
272bb05c
JB
56492020-07-21 John Baldwin <jhb@FreeBSD.org>
5650
5651 * gdbarch.c: Regenerate.
5652 * gdbarch.h: Regenerate.
5653 * gdbarch.sh (report_signal_info): New method.
5654 * infrun.c (print_signal_received_reason): Invoke gdbarch
5655 report_signal_info hook if present.
5656
baf8791e
AB
56572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * python/py-registers.c : Add 'unordered_map' include.
5660 (gdbpy_new_reggroup): Renamed to...
5661 (gdbpy_get_reggroup): ...this. Update to only create register
5662 group descriptors when needed.
5663 (gdbpy_reggroup_iter_next): Update.
5664
f7306dac
AB
56652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5666
5667 * python/py-registers.c (gdbpy_register_object_data): New static
5668 global.
5669 (gdbpy_register_object_data_init): New function.
5670 (gdbpy_new_register_descriptor): Renamed to...
5671 (gdbpy_get_register_descriptor): ...this, and update to reuse
5672 existing register descriptors where possible.
5673 (gdbpy_register_descriptor_iter_next): Update.
5674 (gdbpy_initialize_registers): Register new gdbarch data.
5675
05c309a8
SM
56762020-07-21 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * linux-nat.c (stopped_pids): Make static.
5679
d1fd641e
SM
56802020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 PR ada/26235
5683 * gdbtypes.c (ada_discrete_type_low_bound,
5684 ada_discrete_type_high_bound): Handle undefined bounds.
5685
1de14d77
KR
56862020-07-21 Kamil Rytarowski <n54@gmx.com>
5687
5688 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5689 declaration.
5690 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5691 function.
5692
ed810cc7
JB
56932020-07-20 John Baldwin <jhb@FreeBSD.org>
5694
5695 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5696 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5697 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5698 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5699 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5700 method.
5701
ae5369e7
LC
57022020-07-20 Ludovic Courtès <ludo@gnu.org>
5703
5704 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5705 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5706 which are deprecated in Guile 3.0.
5707 * configure.ac (try_guile_versions): Add "guile-3.0".
5708 * configure (try_guile_versions): Regenerate.
5709 * NEWS: Update entry.
5710
68cf161c
LC
57112020-07-20 Ludovic Courtès <ludo@gnu.org>
5712 Doug Evans <dje@google.com>
5713
5714 PR gdb/21104
5715 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5716 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5717 USING_GUILE_BEFORE_2_2.
5718 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5719 Change type to 'scm_t_port_type *'.
5720 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5721 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5722 parameter and honor it. Update callers.
5723 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5724 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5725 functions.
5726 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5727 USING_GUILE_BEFORE_2_2.
5728 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5729 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5730 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5731 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5732 and 'SCM_PORT_TYPE'.
5733 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5734 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5735 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5736 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5737 [!USING_GUILE_BEFORE_2_2]: New functions.
5738 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5739 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5740 'gdbscm_memory_port_read'.
5741 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5742 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5743 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5744 function.
5745 (ioscm_init_memory_port): Remove.
5746 (ioscm_init_memory_port_stream): New function
5747 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5748 function.
5749 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5750 Return scm_from_uint (0).
5751 (gdbscm_set_memory_port_read_buffer_size_x)
5752 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5753 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5754 Return scm_from_uint (0).
5755 (gdbscm_set_memory_port_write_buffer_size_x)
5756 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5757 * configure.ac (try_guile_versions): Add "guile-2.2".
5758 * configure: Regenerate.
5759 * NEWS: Add entry.
5760
aee91db3
TT
57612020-07-18 Tom Tromey <tom@tromey.com>
5762
5763 * linux-nat.c (linux_multi_process): Remove.
5764 (linux_nat_target::supports_multi_process): Return true.
5765
0e267416
AB
57662020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5769 (riscv_lookup_target_description): Return pointer out of
5770 unique_ptr.
5771 * target-descriptions.c (allocate_target_description): Add
5772 comment.
5773 (target_desc_deleter::operator()): Likewise.
5774 * target-descriptions.h (struct target_desc_deleter): Moved to
5775 gdbsupport/tdesc.h.
5776 (target_desc_up): Likewise.
5777
f80c8ec4
TT
57782020-07-17 Tom Tromey <tromey@adacore.com>
5779
5780 * linux-nat.c (linux_nat_target::supports_non_stop)
5781 (linux_nat_target::always_non_stop_p): Use "true".
5782 (linux_nat_target::supports_disable_randomization): Use "true" and
5783 "false".
5784
d0ce17d8
CT
57852020-07-16 Caroline Tice <cmtice@google.com>
5786
5787 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5788 (RNGLIST_HEADER_SIZE64): New constant definition.
5789 (struct dwop_section_names): Add rnglists_dwo.
5790 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5791 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5792 (struct dwo_sections): Add rnglists field.
5793 (read_attribut_reprocess): Add tag parameter.
5794 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5795 (cu_debug_rnglists_section): New function (decl & definition).
5796 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5797 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5798 die whose range is being checked; get rnglist section from
5799 cu_debug_rnglists_section, to get from either objfile or dwo file as
5800 appropriate. Add cases for DW_RLE_base_addressx,
5801 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5802 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5803 test inside if-condition and updating complaint message.
5804 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5805 dwarf2_rnglists_process.
5806 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5807 dwarf2_ranges_process.
5808 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5809 need_ranges_base and update comment appropriately. Also pass die tag
5810 to dwarf2_ranges_read.
5811 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5812 need_ranges_base and update comment appropriately. Also pass die tag
5813 to dwarf2_ranges_process.
5814 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5815 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5816 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5817 need_ranges_base and update comment appropriately. Also pass die tag
5818 to read_attribute_reprocess and dwarf2_ranges_read.
5819 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5820 and update function comment appropriately.
5821 (read_loclist_index): Call read_loclists_rnglists_header instead of
5822 read_loclist_header.
5823 (read_rnglist_index): New function.
5824 (read_attribute_reprocess): Add tag parameter. Add code for
5825 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5826 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5827
3dcc261c
AB
58282020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5831 being resolved.
5832
ccb9eba6
AB
58332020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * arch-utils.c (show_architecture): Update formatting of messages.
5836
cf88be68
SM
58372020-07-12 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * gdbtypes.h (struct type) <bounds>: Handle array and string
5840 types.
5841 * ada-lang.c (assign_aggregate): Use type::bounds on
5842 array/string type.
5843 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5844 * c-varobj.c (c_number_of_children): Likewise.
5845 (c_describe_child): Likewise.
5846 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5847 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5848 (f_type_print_base): Likewise.
5849 * f-valprint.c (f77_array_offset_tbl): Likewise.
5850 (f77_get_upperbound): Likewise.
5851 (f77_print_array_1): Likewise.
5852 * guile/scm-type.c (gdbscm_type_range): Likewise.
5853 * m2-typeprint.c (m2_array): Likewise.
5854 (m2_is_long_set_of_type): Likewise.
5855 * m2-valprint.c (get_long_set_bounds): Likewise.
5856 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5857 * python/py-type.c (typy_range): Likewise.
5858 * rust-lang.c (rust_internal_print_type): Likewise.
5859 * type-stack.c (type_stack::follow_types): Likewise.
5860 * valarith.c (value_subscripted_rvalue): Likewise.
5861 * valops.c (value_cast): Likewise.
5862
509971ae
SM
58632020-07-12 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5866 callers to use the equivalent accessor methods.
5867
107406b7
SM
58682020-07-12 Simon Marchi <simon.marchi@efficios.com>
5869
5870 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5871 (struct type) <bit_stride>: New method.
5872 (TYPE_BIT_STRIDE): Remove.
5873 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5874
bb789949
SM
58752020-07-12 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5878 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5879 callers to use the equivalent accessor methods instead.
5880
39498edb
SM
58812020-07-12 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5884 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5885 callers to use the equivalent accessor methods instead.
5886
3b606f38
SM
58872020-07-12 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5890 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5891 to use dynamic_prop::kind.
5892
064d9cb9
SM
58932020-07-12 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5896 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5897 to get the bound property's kind and check against
5898 PROP_UNDEFINED.
5899
5537ddd0
SM
59002020-07-12 Simon Marchi <simon.marchi@efficios.com>
5901
5902 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5903 all callers to use type::range_bounds followed by
5904 dynamic_prop::{low,high}.
5905
8c2e4e06
SM
59062020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5909 const_val, set_const_val, baton, set_locexpr, set_loclist,
5910 set_addr_offset, variant_parts, set_variant_parts,
5911 original_type, set_original_type>: New methods.
5912 <kind>: Rename to...
5913 <m_kind>: ... this. Update all users to use the new methods
5914 instead.
5915 <data>: Rename to...
5916 <m_data>: ... this. Update all users to use the new methods
5917 instead.
5918
7c6f2712
SM
59192020-07-12 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * gdbtypes.c (get_discrete_bounds): Return failure if
5922 the range type's bounds are not both defined and constant
5923 values.
5924 (get_array_bounds): Update comment. Remove undefined bound check.
5925
599088e3
SM
59262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5929 the type::bounds method directly.
5930
c4dfcb36
SM
59312020-07-12 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5934 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5935 are used to set the range type's bounds to use set_bounds.
5936
0a278aa7
PW
59372020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5938
5939 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5940
cce20f10
PA
59412020-07-10 Pedro Alves <pedro@palves.net>
5942
5943 * gdbthread.h (inferior_ref): Define.
5944 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5945 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5946 * thread.c
5947 (scoped_restore_current_thread::restore):
5948 Adjust to gdb::ref_ptr.
5949 (scoped_restore_current_thread::~scoped_restore_current_thread):
5950 Remove manual decref handling.
5951 (scoped_restore_current_thread::scoped_restore_current_thread):
5952 Adjust to use
5953 inferior_ref::new_reference/thread_info_ref::new_reference.
5954 Incref the thread before calling get_frame_id instead of after.
5955 Let TARGET_CLOSE_ERROR propagate.
5956
6d7aa592
PA
59572020-07-10 Pedro Alves <pedro@palves.net>
5958
5959 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5960 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5961 NOT_AVAILABLE_ERROR.
5962 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5963 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5964
b3e3a4c1
SM
59652020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5966 Pedro Alves <pedro@palves.net>
5967
5968 PR gdb/26199
5969 * infrun.c (threads_are_resumed_pending_p): Delete.
5970 (do_target_wait): Remove threads_are_executing and
5971 threads_are_resumed_pending_p checks from the inferior_matches
5972 lambda. Update comments.
5973
d6cc5d98
PA
59742020-07-10 Pedro Alves <pedro@palves.net>
5975
5976 PR gdb/26199
5977 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5978 executing threads.
5979
7d3badc6
PA
59802020-07-10 Pedro Alves <pedro@palves.net>
5981
5982 PR gdb/26199
5983 * infrun.c (handle_no_resumed): Handle multiple targets.
5984
42bd97a6
PA
59852020-07-10 Pedro Alves <pedro@palves.net>
5986
5987 PR gdb/26199
5988 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5989 target_is_async_p.
5990
43667cc6
PA
59912020-07-10 Pedro Alves <pedro@palves.net>
5992
5993 PR gdb/26199
5994 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5995 threads, not all threads.
5996
96118d11
PA
59972020-07-10 Pedro Alves <pedro@palves.net>
5998
5999 PR gdb/26199
6000 * remote.c (remote_target::open_1): Pass remote target pointer as
6001 data to create_async_event_handler.
6002 (remote_async_inferior_event_handler): Mark async event handler
6003 before returning if the remote target still has either pending
6004 events or unacknowledged notifications.
6005
54904d81
JB
60062020-07-10 John Baldwin <jhb@FreeBSD.org>
6007
6008 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6009 declaration.
6010 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6011 function.
6012
f37e5866
JB
60132020-07-09 John Baldwin <jhb@FreeBSD.org>
6014
6015 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6016 inferior_ptid.
6017
fc238d4a
JB
60182020-07-09 John Baldwin <jhb@FreeBSD.org>
6019
6020 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6021 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6022 AT_FREEBSD_PS_STRINGS.
6023
6e2469ff
HD
60242020-07-08 Hannes Domani <ssbssa@yahoo.de>
6025
6026 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6027 of debugfile path on Windows.
6028
d1076c41
JB
60292020-07-08 John Baldwin <jhb@FreeBSD.org>
6030
6031 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6032 argument to 'data'.
6033
15f3b077
TT
60342020-07-08 Tom Tromey <tromey@adacore.com>
6035
6036 * ada-lang.c (ada_exception_message_1): Use read_memory.
6037
9fc501fd
AB
60382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 PR python/22748
6041 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6042 special handling for inline frames.
6043 * findvar.c (value_of_register_lazy): Skip inline frames when
6044 creating lazy register values.
6045 * frame.c (frame_id_computed_p): Delete definition.
6046 * frame.h (frame_id_computed_p): Delete declaration.
6047
64cb3757
AB
60482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6049
6050 * NEWS: Mention additions to Python API.
6051 * python/py-arch.c (archpy_register_groups): New function.
6052 (arch_object_methods): Add 'register_groups' method.
6053 * python/py-registers.c (reggroup_iterator_object): New struct.
6054 (reggroup_object): New struct.
6055 (gdbpy_new_reggroup): New function.
6056 (gdbpy_reggroup_to_string): New function.
6057 (gdbpy_reggroup_name): New function.
6058 (gdbpy_reggroup_iter): New function.
6059 (gdbpy_reggroup_iter_next): New function.
6060 (gdbpy_new_reggroup_iterator): New function
6061 (gdbpy_initialize_registers): Register new types.
6062 (reggroup_iterator_object_type): Define new Python type.
6063 (gdbpy_reggroup_getset): New static global.
6064 (reggroup_object_type): Define new Python type.
6065 * python/python-internal.h
6066
0f767f94
AB
60672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6070 * python/py-arch.c (archpy_registers): New function.
6071 (arch_object_methods): Add 'registers' method.
6072 * python/py-registers.c: New file.
6073 * python/python-internal.h
6074 (gdbpy_new_register_descriptor_iterator): Declare.
6075 (gdbpy_initialize_registers): Declare.
6076 * python/python.c (do_start_initialization): Call
6077 gdbpy_initialize_registers.
6078 * NEWS: Mention additions to the Python API.
6079
87dbc774
AB
60802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * NEWS: Mention new Python API method.
6083 * python/py-unwind.c (pending_framepy_architecture): New function.
6084 (pending_frame_object_methods): Add architecture method.
6085
3bc98c0c
AB
60862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * gdbarch.c: Regenerate.
6089 * gdbarch.h: Regenerate.
6090 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6091 (gdbarch_data): Use internal_error for the case where
6092 deprecated_set_gdbarch_data was originally needed.
6093 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6094 and use passed in obstack.
6095 (libunwind_frame_set_descr): Should no longer get back NULL from
6096 gdbarch_data.
6097 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6098 type.
6099 * user-regs.c (user_regs_init): Update parameters, and use passed
6100 in obstack.
6101 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6102 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6103
d8cc8af6
TV
61042020-07-06 Tom de Vries <tdevries@suse.de>
6105
6106 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6107 End-Of-Sequence in lte_is_less_than.
6108 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6109 "gdb: Don't reorder line table entries too much when sorting".
6110
947f7597
TV
61112020-07-06 Tom de Vries <tdevries@suse.de>
6112
6113 PR tui/26205
6114 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6115
1e7c1b22
TV
61162020-07-05 Tom de Vries <tdevries@suse.de>
6117
6118 PR build/26187
6119 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6120 std::uncaught_exceptions instead of deprecated
6121 std::uncaught_exception.
6122
a36158ec
SM
61232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * macroexp.h (macro_stringify): Return
6126 gdb::unique_xmalloc_ptr<char>.
6127 * macroexp.c (macro_stringify): Likewise.
6128 * macrotab.c (fixup_definition): Update.
6129
14d960c8
SM
61302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6133 (lex_one_token): Update.
6134 * macroexp.c (struct macro_buffer) <release>: Return
6135 gdb::unique_xmalloc_ptr<char>.
6136 (macro_stringify): Update.
6137 (macro_expand): Update.
6138 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6139 * macroexp.h (macro_expand_next): Likewise.
6140
211d5b1c
SM
61412020-07-02 Simon Marchi <simon.marchi@efficios.com>
6142
6143 * macroexp.h (macro_lookup_ftype): Remove.
6144 (macro_expand, macro_expand_once, macro_expand_next): Remove
6145 lookup function parameters, add scope parameter.
6146 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6147 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6148 * macroscope.h (standard_macro_lookup): Change parameter type
6149 to macro_scope.
6150 * macroscope.c (standard_macro_lookup): Likewise.
6151 * c-exp.y (lex_one_token): Update.
6152 * macrocmd.c (macro_expand_command): Likewise.
6153 (macro_expand_once_command): Likewise.
6154
b1a35af2
SM
61552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * inf-loop.c (inferior_event_handler): Remove client_data param.
6158 * inf-loop.h (inferior_event_handler): Likewise.
6159 * infcmd.c (step_1): Adjust.
6160 * infrun.c (proceed): Adjust.
6161 (fetch_inferior_event): Remove client_data param.
6162 (infrun_async_inferior_event_handler): Adjust.
6163 * infrun.h (fetch_inferior_event): Remove `void *` param.
6164 * linux-nat.c (handle_target_event): Adjust.
6165 * record-btrace.c (record_btrace_handle_async_inferior_event):
6166 Adjust.
6167 * record-full.c (record_full_async_inferior_event_handler):
6168 Adjust.
6169 * remote.c (remote_async_inferior_event_handler): Adjust.
6170
1cdf9e33
TT
61712020-07-01 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6174 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6175
32c1e210
TT
61762020-07-01 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6179 tui_gen_win_info.
6180 (tui_win_info::make_window): Merge with
6181 tui_gen_win_info::make_window.
6182 (tui_win_info::make_visible): Move from tui_gen_win_info.
6183 * tui/tui-win.c (tui_win_info::max_width): Move from
6184 tui_gen_win_info.
6185 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6186 type.
6187 <window_factory>: Likewise.
6188 * tui/tui-layout.c (tui_win_info::resize): Move from
6189 tui_gen_win_info.
6190 (make_standard_window): Change return type.
6191 (get_locator_window, tui_get_window_by_name): Likewise.
6192 (tui_layout_window::apply): Remove a cast.
6193 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6194 (struct tui_win_info): Merge with tui_gen_win_info.
6195 (struct tui_gen_win_info): Remove.
6196
a30cb6da
TT
61972020-07-01 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-stack.h (struct tui_locator_window): Derive from
6200 tui_win_info.
6201 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6202 <can_box>: New method.
6203
1eb2161f
TT
62042020-07-01 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6207
7134f2eb
TT
62082020-07-01 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-regs.c (tui_data_window::display_registers_from)
6211 (tui_data_window::display_registers_from)
6212 (tui_data_window::first_data_item_displayed)
6213 (tui_data_window::delete_data_content_windows): Update.
6214 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6215 Remove.
6216 (tui_data_window::check_register_values): Update.
6217 (tui_data_item_window::rerender): Add parameters. Update.
6218 (tui_data_item_window::refresh_window): Remove.
6219 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6220 virtual.
6221 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6222 tui_gen_win_info.
6223 <refresh_window, max_height, min_height>: Remove.
6224 <rerender>: Add parameters.
6225 <x, y, visible>: New members.
6226 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6227 <m_item_width>: New member.
6228
22b7b041
TT
62292020-07-01 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-regs.c (tui_data_window::show_register_group)
6232 (tui_data_window::check_register_values): Update.
6233 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6234 from item_no.
6235
c9753adb
TT
62362020-07-01 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6239 useless "if".
6240
9ab26b4a
TT
62412020-07-01 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6244 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6245
e555083f
TT
62462020-07-01 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6249 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6250 (struct tui_line_or_address): Move from tui-data.h.
6251 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6252 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6253 (tui_cmd_window, tui_source_window_base, tui_source_window)
6254 (tui_disasm_window): Don't declare.
6255 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6256 to tui-winsource.h.
6257 (SINGLE_KEY): Move to tui-stack.c.
6258
7a02bab7
TT
62592020-07-01 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6262 std::string.
6263 * tui/tui-regs.c (class tab_expansion_file): New.
6264 (tab_expansion_file::write): New method.
6265 (tui_register_format): Change return type. Use
6266 tab_expansion_file.
6267 (tui_get_register, tui_data_window::display_registers_from)
6268 (tui_data_item_window::rerender): Update.
6269 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6270 * tui/tui-io.c (tui_expand_tabs): Remove.
6271
ea68593b
TT
62722020-07-01 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6275
a8caed5d
FS
62762020-07-01 Fangrui Song <maskray@google.com>
6277
6278 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6279
9cdf9820
AKS
62802020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6281
6282 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6283 forms for DW_AT_associated and DW_AT_allocated attributes,
6284 which is already checked in function attr_to_dynamic_prop.
6285
a1520ad8
TT
62862020-06-30 Tom Tromey <tromey@adacore.com>
6287
6288 * dwarf2/read.c (quirk_rust_enum): Correctly call
6289 alloc_rust_variant for default-less enum.
6290
5ac58899
TT
62912020-06-30 Tom Tromey <tromey@adacore.com>
6292
6293 PR build/26183:
6294 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6295 gdb::to_string.
6296
19b187a9
SM
62972020-06-29 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6300 * gdbarch.h: Re-generate.
6301
cd4c4c07
TT
63022020-06-28 Tom Tromey <tom@tromey.com>
6303
6304 * command.h (cmd_types): Remove.
6305 (cmd_type): Don't declare.
6306 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6307 typedef.
6308 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6309 * cli/cli-decode.c (cmd_type): Remove.
6310
05779d57
PA
63112020-06-27 Pedro Alves <palves@redhat.com>
6312
6313 * fork-child.c (prefork_hook): Adjust.
6314 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6315 Delete.
6316 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6317 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6318 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6319 Remove declarations.
6320 (struct inferior) <set_tty, tty>: New methods.
6321 (struct inferior) <terminal>: Rename to ...
6322 (struct inferior) <m_terminal>: ... this and make private.
6323 * main.c (captured_main_1): Adjust.
6324 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6325 (mi_cmd_inferior_tty_show): Adjust.
6326 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6327 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6328
1776e3e5
NA
63292020-06-26 Nick Alcock <nick.alcock@oracle.com>
6330
6331 * configure.ac: Add --enable-libctf: handle --disable-static
6332 properly.
6333 * acinclude.m4: sinclude ../config/enable.m4.
6334 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6335 (LIBCTF): Substitute in.
6336 (CTF_DEPS): New, likewise.
6337 (CLIBS): libctf needs symbols from libbfd: move earlier.
6338 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6339 flags.
6340 * ctfread.c: Surround in ENABLE_LIBCTF.
6341 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6342 * configure: Regenerate.
6343 * config.in: Likewise.
6344
58373b80
SM
63452020-06-25 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6348
277474ee
SM
63492020-06-25 Simon Marchi <simon.marchi@efficios.com>
6350
6351 * inferior.h (struct inferior) <terminal>: Change type to
6352 gdb::unique_xmalloc_ptr<char>.
6353 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6354 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6355 field, adjust to unique pointer.
6356 (get_inferior_io_terminal): Adjust to unique pointer.
6357
6d74da72
AB
63582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6359
6360 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6361 registers, not just the known core set of registers.
6362
2e52d038
AB
63632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6366 fflags, frm, and fcsr registers.
6367 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6368 restore groups.
6369 (riscv_tdesc_unknown_reg): New function.
6370 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6371 tdesc_use_registers.
6372 * riscv-tdep.h (struct gdbarch_tdep): Add
6373 unknown_csrs_first_regnum, unknown_csrs_count,
6374 duplicate_fflags_regnum, duplicate_frm_regnum, and
6375 duplicate_fcsr_regnum fields.
6376
be64fd07
AB
63772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6380 callback, use the callback (when not null) to help number unknown
6381 registers.
6382 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6383 (tdesc_use_registers): Add extra parameter to declaration.
6384
3b9fce96
AB
63852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6388 in the file.
6389 (class riscv_pending_register_alias): Likewise.
6390 (riscv_register_feature::register_info): Change 'required_p' field
6391 to 'required', and change its type. Add 'check' member function.
6392 (riscv_register_feature::register_info::check): Define new member
6393 function.
6394 (riscv_xreg_feature): Change initialisation of 'required' field.
6395 (riscv_freg_feature): Likewise.
6396 (riscv_virtual_feature): Likewise.
6397 (riscv_csr_feature): Likewise.
6398 (riscv_check_tdesc_feature): Take extra parameter, the csr
6399 tdesc_feature, rewrite the function to use the new
6400 riscv_register_feature::register_info::check function.
6401 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6402
865bad26
AB
64032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * features/Makefile: Remove all references to the deleted files
6406 below.
6407 * features/riscv/32bit-csr.c: Deleted.
6408 * features/riscv/32bit-csr.xml: Deleted.
6409 * features/riscv/64bit-csr.c: Deleted.
6410 * features/riscv/64bit-csr.xml: Deleted.
6411 * features/riscv/rebuild-csr-xml.sh: Deleted.
6412
ed69cbc8
AB
64132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6416 whitespace error for declaration of names member variable.
6417 (struct riscv_register_feature): Add new prefer_first_name member
6418 variable, and fix whitespace error in declaration of registers.
6419 (riscv_xreg_feature): Initialize prefer_first_name field.
6420 (riscv_freg_feature): Likewise.
6421 (riscv_virtual_feature): Likewise.
6422 (riscv_csr_feature): Likewise.
6423 (riscv_register_name): Expand on comments. Remove register name
6424 modifications for CSR and virtual registers.
6425
4445e8f5
AB
64262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6427
6428 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6429 errors.
6430
767a879e
AB
64312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6434 riscv-opc.h.
6435 (class riscv_pending_register_alias): New class.
6436 (riscv_check_tdesc_feature): Take vector of pending aliases and
6437 populate it as appropriate.
6438 (riscv_setup_register_aliases): Delete.
6439 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6440 to riscv_check_tdesc_feature in all cases. Use the vector to
6441 create the register aliases.
6442
bb6e55f3
RO
64432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6444
6445 * sol2-tdep.c (sol2_static_transform_name): Remove.
6446 (sol2_init_abi): Don't register it.
6447 * gdbarch.sh (static_transform_name): Remove.
6448 * gdbarch.c, gdbarch.h: Regenerate.
6449
6450 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6451 gdbarch_static_transform_name.
6452 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6453 * stabsread.c (define_symbol) <'X'>: Remove.
6454 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6455 handling.
6456 <'V'>: Likewise.
6457 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6458 <'S'>: Remove call to gdbarch_static_transform_name.
6459
c6d36836
RO
64602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6461
6462 * procfs.c (procfs_pre_trace): New function.
6463 (procfs_target::create_inferior): Pass it to fork_inferior.
6464
a7e6196b
RO
64652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6466
6467 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6468 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6469 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6470 sol2-tdep.o, sparc-sol2-tdep.o.
6471 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6472 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6473 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6474 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6475
d412e696
RO
64762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6477
6478 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6479 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6480 Call sol2_init_abi.
6481 Remove calls to set_gdbarch_skip_solib_resolver,
6482 set_gdbarch_core_pid_to_str.
6483 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6484 (i386_sol2_static_transform_name): Remove.
6485 (i386_sol2_init_abi): Call sol2_init_abi.
6486 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6487 set_gdbarch_static_transform_name,
6488 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6489 Use sol2_sigtramp_p.
6490 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6491 (sol2_sigtramp_p): New function.
6492 (sol2_static_transform_name): New function.
6493 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6494 (sol2_init_abi): New function.
6495 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6496 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6497 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6498 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6499 (sparc_sol2_static_transform_name): Remove.
6500 (sparc32_sol2_init_abi): Call sol2_init_abi.
6501 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6502 set_gdbarch_static_transform_name,
6503 set_gdbarch_skip_solib_resolver,
6504 set_gdbarch_core_pid_to_str.
6505 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6506 (sparc_sol2_static_transform_name): Remove
6507 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6508 call sol2_sigtramp_p.
6509 (sparc64_sol2_init_abi): Call sol2_init_abi.
6510 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6511 set_gdbarch_static_transform_name,
6512 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6513
a8654e7d
PW
65142020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6515
6516 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6517 * exec.c (validate_exec_file): If from_tty, set both
6518 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6519 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6520 and from_tty, unconditionally ask a confirmation.
6521
caa7fd04
AB
65222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * target-descriptions.c (tdesc_architecture_name): Protect against
6525 NULL pointer dereference.
6526 (maint_print_xml_tdesc_cmd): New function.
6527 (_initialize_target_descriptions): Register new 'maint print
6528 xml-tdesc' command and give it the filename completer.
6529 * NEWS: Mention new 'maint print xml-tdesc' command.
6530
fbf42f4e
AB
65312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6532
6533 * target-descriptions.c (class tdesc_compatible_info): New class.
6534 (struct target_desc): Change type of compatible vector.
6535 (tdesc_compatible_p): Update for change in type of
6536 target_desc::compatible.
6537 (tdesc_compatible_info_list): New function.
6538 (tdesc_compatible_info_arch_name): New function.
6539 (tdesc_add_compatible): Update for change in type of
6540 target_desc::compatible.
6541 (print_c_tdesc::visit_pre): Likewise.
6542
20821f4e
AB
65432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6546 whitespace to underscore.
6547 (maint_print_c_tdesc_cmd): Use fake filename for target
6548 descriptions that came from the target.
6549 (_initialize_target_descriptions): Add filename command completion
6550 for 'maint print c-tdesc'.
6551
1fb5ee62
SM
65522020-06-23 Simon Marchi <simon.marchi@efficios.com>
6553
6554 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6555 lines.
6556
fc3ecb3e
SM
65572020-06-23 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6560 lines.
6561 (dwarf2_find_location_expression): Likewise.
6562 (call_site_parameter_matches): Likewise.
6563 (dwarf2_compile_expr_to_ax): Likewise.
6564 (disassemble_dwarf_expression): Likewise.
6565 (loclist_describe_location): Likewise.
6566
236ef034
PA
65672020-06-23 Pedro Alves <palves@redhat.com>
6568
6569 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6570 progspace-and-thread.h. Include scoped-mock-context.h instead.
6571 (register_to_value_test): Use scoped_mock_context.
6572 * regcache.c: Include "scoped-mock-context.h".
6573 (cooked_read_test): Don't error out if a target is already pushed.
6574 Use scoped_mock_context. Adjust.
6575 * scoped-mock-context.h: New file.
6576
39e7ecca
AB
65772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6580 initializer.
6581 (ada_language::is_string_type_p): New member function.
6582 * c-lang.c (c_language_data): Delete la_is_string_type_p
6583 initializer.
6584 (cplus_language_data): Likewise.
6585 (asm_language_data): Likewise.
6586 (minimal_language_data): Likewise.
6587 * d-lang.c (d_language_data): Likewise.
6588 * f-lang.c (f_is_string_type_p): Delete function, implementation
6589 moved to f_language::is_string_type_p.
6590 (f_language_data): Delete la_is_string_type_p initializer.
6591 (f_language::is_string_type_p): New member function,
6592 implementation from f_is_string_type_p.
6593 * go-lang.c (go_is_string_type_p): Delete function, implementation
6594 moved to go_language::is_string_type_p.
6595 (go_language_data): Delete la_is_string_type_p initializer.
6596 (go_language::is_string_type_p): New member function,
6597 implementation from go_is_string_type_p.
6598 * language.c (language_defn::is_string_type_p): Define new member
6599 function.
6600 (default_is_string_type_p): Make static, add comment copied from
6601 header file.
6602 (unknown_language_data): Delete la_is_string_type_p initializer.
6603 (unknown_language::is_string_type_p): New member function.
6604 (auto_language_data): Delete la_is_string_type_p initializer.
6605 (auto_language::is_string_type_p): New member function.
6606 * language.h (language_data): Delete la_is_string_type_p field.
6607 (language_defn::is_string_type_p): Declare new function.
6608 (default_is_string_type_p): Delete desclaration, move comment to
6609 definition.
6610 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6611 moved to m2_language::is_string_type_p.
6612 (m2_language_data): Delete la_is_string_type_p initializer.
6613 (m2_language::is_string_type_p): New member function,
6614 implementation from m2_is_string_type_p.
6615 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6616 initializer.
6617 * opencl-lang.c (opencl_language_data): Likewise.
6618 * p-lang.c (pascal_is_string_type_p): Delete function,
6619 implementation moved to pascal_language::is_string_type_p.
6620 (pascal_language_data): Delete la_is_string_type_p initializer.
6621 (pascal_language::is_string_type_p): New member function,
6622 implementation from pascal_is_string_type_p.
6623 * rust-lang.c (rust_is_string_type_p): Delete function,
6624 implementation moved to rust_language::is_string_type_p.
6625 (rust_language_data): Delete la_is_string_type_p initializer.
6626 (rust_language::is_string_type_p): New member function,
6627 implementation from rust_is_string_type_p.
6628 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6629 is_string_type_p.
6630
4ffc13fb
AB
66312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * ada-lang.c (ada_language_data): Delete la_print_typedef
6634 initializer.
6635 (ada_language::print_typedef): New member function.
6636 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6637 (cplus_language_data): Likewise.
6638 (asm_language_data): Likewise.
6639 (minimal_language_data): Likewise.
6640 * d-lang.c (d_language_data): Likewise.
6641 * f-lang.c (f_language_data): Likewise.
6642 (f_language::print_typedef): New member function.
6643 * go-lang.c (go_language_data): Delete la_print_typedef
6644 initializer.
6645 * language.c (language_defn::print_typedef): Define member
6646 function.
6647 (unknown_language_data): Delete la_print_typedef initializer.
6648 (unknown_language::print_typedef): New member function.
6649 (auto_language_data): Delete la_print_typedef initializer.
6650 (auto_language::print_typedef): New member function.
6651 * language.h (language_data): Delete la_print_typedef field.
6652 (language_defn::print_typedef): Declare new member function.
6653 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6654 (default_print_typedef): Delete declaration.
6655 * m2-lang.c (m2_language_data): Delete la_print_typedef
6656 initializer.
6657 (m2_language::print_typedef): New member function.
6658 * objc-lang.c (objc_language_data): Delete la_print_typedef
6659 initializer.
6660 * opencl-lang.c (opencl_language_data): Likewise.
6661 * p-lang.c (pascal_language_data): Likewise.
6662 (pascal_language::print_typedef): New member function.
6663 * rust-lang.c (rust_print_typedef): Delete function,
6664 implementation moved to rust_language::print_typedef.
6665 (rust_language): Delete la_print_typedef initializer.
6666 (rust_language::print_typedef): New member function,
6667 implementation from rust_print_typedef.
6668 * typeprint.c (default_print_typedef): Delete.
6669
d711ee67
AB
66702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6673 (ada_language::printstr): New member function.
6674 * c-lang.c (c_language_data): Delete la_printstr initializer.
6675 (cplus_language_data): Likewise.
6676 (asm_language_data): Likewise.
6677 (minimal_language_data): Likewise.
6678 * d-lang.c (d_language_data): Likewise.
6679 * f-lang.c (f_printstr): Rename to f_language::printstr.
6680 (f_language_data): Delete la_printstr initializer.
6681 (f_language::printstr): New member function, implementation from
6682 f_printstr.
6683 * go-lang.c (go_language_data): Delete la_printstr initializer.
6684 * language.c (language_defn::printstr): Define new member
6685 function.
6686 (unk_lang_printstr): Delete.
6687 (unknown_language_data): Delete la_printstr initializer.
6688 (unknown_language::printstr): New member function.
6689 (auto_language_data): Delete la_printstr initializer.
6690 (auto_language::printstr): New member function.
6691 * language.h (language_data): Delete la_printstr field.
6692 (language_defn::printstr): Declare new member function.
6693 (LA_PRINT_STRING): Update call to printstr.
6694 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6695 (m2_language_data): Delete la_printstr initializer.
6696 (m2_language::printstr): New member function, implementation from
6697 m2_printstr.
6698 * objc-lang.c (objc_language_data): Delete la_printstr
6699 initializer.
6700 * opencl-lang.c (opencl_language_data): Likewise.
6701 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6702 (pascal_language_data): Delete la_printstr initializer.
6703 (pascal_language::printstr): New member function, implementation
6704 from pascal_printstr.
6705 * p-lang.h (pascal_printstr): Delete declaration.
6706 * rust-lang.c (rust_printstr): Update header comment.
6707 (rust_language_data): Delete la_printstr initializer.
6708 (rust_language::printstr): New member function.
6709
52b50f2c
AB
67102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6713 (ada_language::printchar): New member function.
6714 * c-lang.c (c_language_data): Delete la_printchar initializer.
6715 (cplus_language_data): Likewise.
6716 (asm_language_data): Likewise.
6717 (minimal_language_data): Likewise.
6718 * d-lang.c (d_language_data): Likewise.
6719 * f-lang.c (f_printchar): Rename to f_language::printchar.
6720 (f_language_data): Delete la_printchar initializer.
6721 (f_language::printchar): New member function, implementation from
6722 f_printchar.
6723 * go-lang.c (go_language_data): Delete la_printchar initializer.
6724 * language.c (unk_lang_printchar): Delete.
6725 (language_defn::printchar): Define new member function.
6726 (unknown_language_data): Delete la_printchar initializer.
6727 (unknown_language::printchar): New member function.
6728 (auto_language_data): Delete la_printchar initializer.
6729 (auto_language::printchar): New member function.
6730 * language.h (language_data): Delete la_printchar field.
6731 (language_defn::printchar): Declare new member function.
6732 (LA_PRINT_CHAR): Update call to printchar.
6733 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6734 (m2_language::printchar): New member function.
6735 * objc-lang.c (objc_language_data): Delete la_printchar
6736 initializer.
6737 * opencl-lang.c (opencl_language_data): Likewise.
6738 * p-lang.c (pascal_language_data): Delete la_printchar
6739 initializer.
6740 (pascal_language::printchar): New member function.
6741 * rust-lang.c (rust_printchar): Rename to
6742 rust_language::printchar.
6743 (rust_language_data): Delete la_printchar initializer.
6744 (rust_language::printchar): New member function, implementation
6745 from rust_printchar.
6746
ec8cec5b
AB
67472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6750 (ada_language_data): Delete la_emitchar initializer.
6751 (ada_language::emitchar): New member function, implementation from
6752 emit_char.
6753 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6754 (cplus_language_data): Likewise.
6755 (asm_language_data): Likewise.
6756 (minimal_language_data): Likewise.
6757 * d-lang.c (d_language_data): Likewise.
6758 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6759 (f_language_data): Delete la_emitchar initializer.
6760 (f_language::emitchar): New member function, implementation from
6761 f_emit_char.
6762 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6763 * language.c (unk_lang_emit_char): Delete.
6764 (language_defn::emitchar): New member function definition.
6765 (unknown_language_data): Delete la_emitchar initializer.
6766 (unknown_language::emitchar): New member function.
6767 (auto_language_data): Delete la_emitchar initializer.
6768 (auto_language::emitchar): New member function.
6769 * language.h (language_data): Delete la_emitchar field.
6770 (language_defn::emitchar): New member field declaration.
6771 (LA_EMIT_CHAR): Update call to emitchar.
6772 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6773 (m2_language_data): Delete la_emitchar initializer.
6774 (m2_language::emitchar): New member function, implementation from
6775 m2_emit_char.
6776 * objc-lang.c (objc_language_data): Delete la_emitchar
6777 initializer.
6778 * opencl-lang.c (opencl_language_data): Likewise.
6779 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6780 (pascal_language_data): Delete la_emitchar initializer.
6781 (pascal_language::emitchar): New member function, implementation
6782 from pascal_emit_char.
6783 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6784 (rust_language_data): Delete la_emitchar initializer.
6785 (rust_language::emitchar): New member function, implementation
6786 from rust_emitchar.
6787
1bf9c363
AB
67882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6791 (ada_language_data): Delete la_post_parser initializer.
6792 (ada_language::post_parser): New member function.
6793 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6794 (cplus_language_data): Likewise.
6795 (asm_language_data): Likewise.
6796 (minimal_language_data): Likewise.
6797 * d-lang.c (d_language_data): Likewise.
6798 * f-lang.c (f_language_data): Likewise.
6799 * go-lang.c (go_language_data): Likewise.
6800 * language.c (unknown_language_data): Likewise.
6801 (auto_language_data): Likewise.
6802 * language.h (language_data): Delete la_post_parser field.
6803 (language_defn::post_parser): New member function.
6804 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6805 * objc-lang.c (objc_language_data): Likewise.
6806 * opencl-lang.c (opencl_language_data): Likewise.
6807 * p-lang.c (pascal_language_data): Likewise.
6808 * parse.c (parse_exp_in_context): Update call to post_parser.
6809 (null_post_parser): Delete definition.
6810 * parser-defs.h (null_post_parser): Delete declaration.
6811 * rust-lang.c (rust_language_data): Delete la_post_parser
6812 initializer.
6813
87afa652
AB
68142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6815
6816 * ada-lang.c (parse): Rename to ada_language::parser.
6817 (ada_language_data): Delete la_parser initializer.
6818 (ada_language::parser): New member function, implementation from
6819 parse.
6820 * c-lang.c (c_language_data): Delete la_parser initializer.
6821 (cplus_language_data): Likewise.
6822 (asm_language_data): Likewise.
6823 (minimal_language_data): Likewise.
6824 * d-lang.c (d_language_data): Likewise.
6825 (d_language::parser): New member function.
6826 * f-lang.c (f_language_data): Delete la_parser initializer.
6827 (f_language::parser): New member function.
6828 * go-lang.c (go_language_data): Delete la_parser initializer.
6829 (go_language::parser): New member function.
6830 * language.c (unk_lang_parser): Delete.
6831 (language_defn::parser): Define new member function.
6832 (unknown_language_data): Delete la_parser initializer.
6833 (unknown_language::parser): New member function.
6834 (auto_language_data): Delete la_parser initializer.
6835 (auto_language::parser): New member function.
6836 * language.h (language_data): Delete la_parser field.
6837 (language_defn::parser): Declare new member function.
6838 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6839 (m2_language::parser): New member function.
6840 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6841 * opencl-lang.c (opencl_language_data): Likewise.
6842 * p-lang.c (pascal_language_data): Likewise.
6843 (pascal_language::parser): New member function.
6844 * parse.c (parse_exp_in_context): Update call to parser.
6845 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6846 (rust_language::parser): New member function.
6847
37825800
AB
68482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * top.c (print_gdb_configuration): Print --with-python-libdir
6851 configuration value.
6852
5b860c93
PW
68532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6854
6855 * NEWS: Mention change to the alias command.
6856
cf00cd6f
PW
68572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6858
6859 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6860 (alias_command_completer)
6861 (make_alias_options_def_group): New functions.
6862 (alias_opts, alias_option_defs): New struct and array.
6863 (alias_usage_error): Update usage.
6864 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6865 Use option framework.
6866 (_initialize_cli_cmds): Update alias command help.
6867 Update aliases command help.
6868 (show_user):
6869 Add NULL for new default_args lookup_cmd argument.
6870 (valid_command_p): Rename to validate_aliased_command.
6871 Add NULL for new default_args lookup_cmd argument. Verify that the
6872 aliased_command has no default args.
6873 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6874 (lookup_cmd_1, lookup_cmd): New argument default_args.
6875 (add_alias_cmd):
6876 Add NULL for new default_args lookup_cmd argument.
6877 (print_help_for_command): Show default args under the layout
6878 alias some_alias = some_aliased_cmd some_alias_default_arg.
6879 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6880 xfree default_args in destructor.
6881 * cli/cli-script.c (process_next_line, do_define_command):
6882 Add NULL for new default_args lookup_cmd argument.
6883 * command.h: Declare new default_args argument in lookup_cmd
6884 and lookup_cmd_1.
6885 * completer.c (complete_line_internal_1):
6886 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6887 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6888 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6889 Likewise.
6890 * infcmd.c (_initialize_infcmd): Likewise.
6891 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6892 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6893 * python/py-param.c (add_setshow_generic): Likewise.
6894 * remote.c (_initialize_remote): Likewise.
6895 * top.c (execute_command): Prepend default_args if command has some.
6896 (set_verbose):
6897 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6898 * tracepoint.c (validate_actionline, encode_actions_1):
6899 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6900
bd920864
TBA
69012020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6902
6903 * jit.c (jit_read_descriptor): Use bool as the return type.
6904 (jit_breakpoint_re_set_internal): Use bool as the return type.
6905 Invert the return value logic; return true if the jit breakpoint
6906 has been successfully initialized.
6907 (jit_inferior_init): Update the call to
6908 jit_breakpoint_re_set_internal.
6909
f8098322
PA
69102020-06-22 Pedro Alves <palves@redhat.com>
6911
6912 PR gdb/25939
6913 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6914 Use the current inferior instead. Don't return
6915 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6916 wait again.
6917 * sol-thread.c (sol_thread_target::wait): Don't reference
6918 inferior_ptid.
6919 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6920 (sol_update_thread_list_callback): Use the current inferior's pid
6921 instead of inferior_ptid.
6922
196535a6
RO
69232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6924
6925 * procfs.c: Cleanup many comments.
6926
6927 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6928 (AFTER_WATCHFLAG): Replace by value.
6929
6930 (MAIN_PROC_NAME_FORMAT): Inline ...
6931 (create_procinfo): ... here.
6932
6933 (procfs_debug_inferior): Remove SYS_exec handling.
6934 (syscall_is_exec): Likewise.
6935 (procfs_set_exec_trap): Likewise.
6936
6937 (syscall_is_lwp_exit): Inline in callers.
6938 (syscall_is_exit): Likewise.
6939 (syscall_is_exec): Likewise.
6940 (syscall_is_lwp_create): Likewise.
6941
6942 (invalidate_cache): Remove #if 0 code.
6943
6944 (make_signal_thread_runnable): Remove.
6945 (procfs_target::resume): Remove #if 0 code.
6946
cf6f3e86
RO
69472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6948
6949 PR gdb/25939
6950 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6951 call ...
6952 (procfs_target::create_inferior): ... here.
6953
48e9cc84
PW
69542020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6955
6956 * exec.c (validate_exec_file): Ensure the build-id is up to
6957 date by calling reopen_exec_file (that checks file timestamp
6958 to decide to re-read the file).
6959
3922b302
PA
69602020-06-18 Pedro Alves <palves@redhat.com>
6961
6962 PR gdb/25412
6963 * gdbthread.h (delete_thread, delete_thread_silent)
6964 (find_thread_ptid): Update comments.
6965 * thread.c (current_thread_): New global.
6966 (is_current_thread): Move higher, and reimplement.
6967 (inferior_thread): Reimplement.
6968 (set_thread_exited): Use bool. Add assertions.
6969 (add_thread_silent): Simplify thread-reuse handling by always
6970 calling delete_thread.
6971 (delete_thread): Remove intro comment.
6972 (find_thread_ptid): Skip exited threads.
6973 (switch_to_thread_no_regs): Write to current_thread_.
6974 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6975 INFERIOR_PTID. Clear current_thread_.
6976
6dbdab44
PA
69772020-06-18 Pedro Alves <palves@redhat.com>
6978
6979 * aix-thread.c (pd_update): Use switch_to_thread.
6980
2da4b788
PA
69812020-06-18 Pedro Alves <palves@redhat.com>
6982
6983 * ravenscar-thread.c (ravenscar_thread_target): Update.
6984 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6985 (ravenscar_thread_target::add_active_thread): ... this. Don't
6986 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6987 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6988
50838d1b
PA
69892020-06-18 Pedro Alves <palves@redhat.com>
6990
6991 * nat/windows-nat.c (current_windows_thread): Remove.
6992 * nat/windows-nat.h (current_windows_thread): Remove.
6993 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6994 Adjust.
6995 (display_selectors): Adjust to fetch the current
6996 windows_thread_info based on inferior_ptid.
6997 (fake_create_process): No longer write to current_windows_thread.
6998 (windows_nat_target::get_windows_debug_event):
6999 Don't set inferior_ptid or current_windows_thread.
7000 (windows_nat_target::wait): Adjust to not rely on
7001 current_windows_thread.
7002 (do_initial_windows_stuff): Now a method of windows_nat_target.
7003 Switch to the last_ptid thread.
7004 (windows_nat_target::attach): Adjust.
7005 (windows_nat_target::detach): Use switch_to_no_thread instead of
7006 writing to inferior_ptid directly.
7007 (windows_nat_target::create_inferior): Adjust.
7008
31ce04e9
PA
70092020-06-18 Pedro Alves <palves@redhat.com>
7010
7011 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7012
1ee1a363
PA
70132020-06-18 Pedro Alves <palves@redhat.com>
7014
7015 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7016 after creating it, instead of writing to inferior_ptid. Don't
7017 write to inferior_ptid.
7018
6d350754
PA
70192020-06-18 Pedro Alves <palves@redhat.com>
7020
7021 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7022
5d971d48
PA
70232020-06-18 Pedro Alves <palves@redhat.com>
7024
7025 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7026 it, instead of writing to inferior_ptid.
7027
86e57d1b
PA
70282020-06-18 Pedro Alves <palves@redhat.com>
7029
7030 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7031 to inferior_ptid.
7032
f2e1c129
PA
70332020-06-18 Pedro Alves <palves@redhat.com>
7034
7035 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7036 instead of writing to inferior_ptid directly.
7037
60db1b85
PA
70382020-06-18 Pedro Alves <palves@redhat.com>
7039
7040 * corelow.c (core_target::close): Use switch_to_no_thread instead
7041 of writing to inferior_ptid directly.
7042 (add_to_thread_list, core_target_open): Use switch_to_thread
7043 instead of writing to inferior_ptid directly.
7044
fe7d6a8d
PA
70452020-06-18 Pedro Alves <palves@redhat.com>
7046
7047 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7048 inferior_ptid.
7049 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7050 inferior_ptid.
7051 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7052 inferior_ptid directly.
7053 (darwin_nat_target::init_thread_list): Switch to thread, instead
7054 of writing to inferior_ptid.
7055 (darwin_nat_target::attach): Don't write to inferior_ptid.
7056 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7057
975f8708
PA
70582020-06-18 Pedro Alves <palves@redhat.com>
7059
7060 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7061 thread.
7062 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7063 Instead use switch_to_thread.
7064 (gnu_nat_target::detach): Use switch_to_no_thread
7065 instead of writing to inferior_ptid directly. Used passed-in
7066 inferior instead of looking up the inferior by pid.
7067
1a204730
PA
70682020-06-18 Pedro Alves <palves@redhat.com>
7069
7070 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7071 inferior_ptid.
7072
ebe84f23
PA
70732020-06-18 Pedro Alves <palves@redhat.com>
7074
7075 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7076 inferior_ptid.
7077 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7078 thread.
7079 (nto_procfs_target::detach): Avoid referencing
7080 inferior_ptid. Use switch_to_no_thread instead of writing to
7081 inferior_ptid directly.
7082 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7083 instead of writing to inferior_ptid directly.
7084 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7085 to thread.
7086
191f02e5
PA
70872020-06-18 Pedro Alves <palves@redhat.com>
7088
7089 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7090 after creating it, instead of writing to inferior_ptid.
7091 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7092 to inferior_ptid directly.
7093 (gdbsim_target::wait): Don't write to inferior_ptid.
7094
0ac55310
PA
70952020-06-18 Pedro Alves <palves@redhat.com>
7096
7097 * remote.c (remote_target::remote_notice_new_inferior): Use
7098 switch_to_thread instead of writing to inferior_ptid directly.
7099 (remote_target::add_current_inferior_and_thread): Use
7100 switch_to_no_thread instead of writing to inferior_ptid directly.
7101 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7102 and switch_to_thread instead of using set_current_inferior or
7103 writing to inferior_ptid directly.
7104
5233f39b
PA
71052020-06-18 Pedro Alves <palves@redhat.com>
7106
7107 * tracectf.c (ctf_target_open): Switch to added thread instead of
7108 writing to inferior_ptid directly.
7109 (ctf_target::close): Use switch_to_no_thread instead of writing to
7110 inferior_ptid directly.
7111
087e161b
PA
71122020-06-18 Pedro Alves <palves@redhat.com>
7113
7114 * tracefile-tfile.c (tfile_target_open): Don't write to
7115 inferior_ptid directly, instead switch to added thread.
7116 (tfile_target::close): Use switch_to_no_thread instead of writing
7117 to inferior_ptid directly.
7118
7fb43e53
PA
71192020-06-18 Pedro Alves <palves@redhat.com>
7120
7121 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7122 (procfs_target::detach): Use switch_to_no_thread
7123 instead of writing to inferior_ptid directly.
7124 (do_attach): Change return type to void. Switch to the added
7125 thread.
7126 (procfs_target::create_inferior): Switch to the added thread.
7127 (procfs_do_thread_registers): Don't write to inferior_ptid.
7128
18493a00
PA
71292020-06-18 Pedro Alves <palves@redhat.com>
7130
7131 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7132 of writing to inferior_ptid.
7133 (scoped_restore_exited_inferior): Delete.
7134 (handle_vfork_child_exec_or_exit): Simplify using
7135 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7136 instead of writing to inferior_ptid.
7137 (THREAD_STOPPED_BY): Delete.
7138 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7139 (thread_stopped_by_hw_breakpoint): Delete.
7140 (save_waitstatus): Use
7141 scoped_restore_current_thread+switch_to_thread, and call
7142 target_stopped_by_watchpoint instead of
7143 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7144 instead of thread_stopped_by_sw_breakpoint, and
7145 target_stopped_by_hw_breakpoint instead of
7146 thread_stopped_by_hw_breakpoint.
7147 (handle_inferior_event)
7148 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7149 inferior_ptid directly, nor
7150 set_current_inferior/set_current_program_space. Use
7151 switch_to_thread / switch_to_inferior_no_thread instead.
7152
a0776b13
PA
71532020-06-18 Pedro Alves <palves@redhat.com>
7154
7155 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7156 instead of writing to inferior_ptid.
7157
6155c136
PA
71582020-06-18 Pedro Alves <palves@redhat.com>
7159
7160 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7161 added thread.
7162 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7163 to the added thread.
7164 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7165 instead of writing to inferior_ptid.
7166
c5316fc6
PA
71672020-06-18 Pedro Alves <palves@redhat.com>
7168
7169 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7170 (register_to_value_test): Mock a program_space too. Heap-allocate
7171 the address space. Don't write to inferior_ptid. Use
7172 switch_to_thread instead.
7173
8df01799
PA
71742020-06-18 Pedro Alves <palves@redhat.com>
7175
7176 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7177 Delete.
7178 (find_signalled_thread()): New, factored out from
7179 linux_make_corefile_notes and adjusted to handle exited threads.
7180 (linux_make_corefile_notes): Adjust to use the new
7181 find_signalled_thread.
7182
41792d68
PA
71832020-06-18 Pedro Alves <palves@redhat.com>
7184
7185 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7186 of saving/restoring inferior_ptid.
7187
612f258a
TT
71882020-06-17 Tom Tromey <tom@tromey.com>
7189
7190 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7191 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7192 declare.
7193 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7194
efb763a5
SM
71952020-06-15 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7198 of partial symtabs.
7199
2951f6c0
SM
72002020-06-17 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * regformats/reg-arm.dat: Remove.
7203 * regformats/reg-bfin.dat: Remove.
7204 * regformats/reg-cris.dat: Remove.
7205 * regformats/reg-crisv32.dat: Remove.
7206 * regformats/reg-m32r.dat: Remove.
7207 * regformats/reg-tilegx.dat: Remove.
7208 * regformats/reg-tilegx32.dat: Remove.
7209
7d458ea5
SM
72102020-06-17 Simon Marchi <simon.marchi@efficios.com>
7211
7212 * features/Makefile (WHICH): Remove arm files.
7213 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7214 * regformats/arm/arm-with-neon.dat: Remove.
7215 * regformats/arm/arm-with-vfpv2.dat: Remove.
7216 * regformats/arm/arm-with-vfpv3.dat: Remove.
7217
3af96c0d
SM
72182020-06-17 Simon Marchi <simon.marchi@efficios.com>
7219
7220 * features/Makefile (XMLTOC): Remove rx.xml.
7221
b25e22fd
PA
72222020-06-17 Pedro Alves <palves@redhat.com>
7223
7224 * gdbthread.h (thread_control_state) <trap_expected> Update
7225 comments.
7226
a78a19b1
AB
72272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7230 ada_language::lookup_symbol_nonlocal.
7231 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7232 (ada_language::lookup_symbol_nonlocal): New member function,
7233 implementation from ada_lookup_symbol_nonlocal.
7234 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7235 initializer.
7236 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7237 initializer.
7238 (cplus_language::lookup_symbol_nonlocal): New member function.
7239 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7240 (minimal_language_data) Likewise.
7241 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7242 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7243 initializer.
7244 (d_language::lookup_symbol_nonlocal): New member function.
7245 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7246 initializer.
7247 (f_language::lookup_symbol_nonlocal): New member function.
7248 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7249 initializer.
7250 * language.c (unknown_language_data): Likewise.
7251 (auto_language_data): Likewise.
7252 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7253 field.
7254 (language_defn::lookup_symbol_nonlocal): New member function.
7255 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7256 initializer.
7257 * objc-lang.c (objc_language_data): Likewise.
7258 * opencl-lang.c (opencl_language_data): Likewise.
7259 * p-lang.c (pascal_language_data): Likewise.
7260 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7261 rust_language::lookup_symbol_nonlocal.
7262 (rust_language_data): Delete la_lookup_symbol_nonlocal
7263 initializer.
7264 (rust_language::lookup_symbol_nonlocal): New member function,
7265 implementation from rust_lookup_symbol_nonlocal.
7266 * symtab.c (lookup_symbol_aux): Update call to
7267 lookup_symbol_nonlocal.
7268 (basic_lookup_symbol_nonlocal): Rename to...
7269 (language_defn::lookup_symbol_nonlocal): ...this, and update
7270 header comment. Remove language_defn parameter, and replace with
7271 uses of `this'.
7272 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7273
ebe2334e
AB
72742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7277 initializer.
7278 (ada_language::value_print_inner): New member function.
7279 * c-lang.c (c_language_data): Delete la_value_print_inner
7280 initializer.
7281 (cplus_language_data): Likewise.
7282 (asm_language_data): Likewise.
7283 (minimal_language_data): Likewise.
7284 * d-lang.c (d_language_data): Likewise.
7285 (d_language::value_print_inner): New member function.
7286 * f-lang.c (f_language_data): Delete la_value_print_inner
7287 initializer.
7288 (f_language::value_print_inner): New member function.
7289 * f-lang.h (f_value_print_innner): Rename to...
7290 (f_value_print_inner): ...this (note spelling of 'inner').
7291 * f-valprint.c (f_value_print_innner): Rename to...
7292 (f_value_print_inner): ...this (note spelling of 'inner').
7293 * go-lang.c (go_language_data): Delete la_value_print_inner
7294 initializer.
7295 (go_language::value_print_inner): New member function.
7296 * language.c (language_defn::value_print_inner): Define new member
7297 function.
7298 (unk_lang_value_print_inner): Delete.
7299 (unknown_language_data): Delete la_value_print_inner initializer.
7300 (unknown_language::value_print_inner): New member function.
7301 (auto_language_data): Delete la_value_print_inner initializer.
7302 (auto_language::value_print_inner): New member function.
7303 * language.h (language_data): Delete la_value_print_inner field.
7304 (language_defn::value_print_inner): Delcare new member function.
7305 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7306 initializer.
7307 (m2_language::value_print_inner): New member function.
7308 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7309 initializer.
7310 * opencl-lang.c (opencl_language_data): Likewise.
7311 * p-lang.c (pascal_language_data): Likewise.
7312 (pascal_language::value_print_inner): New member function.
7313 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7314 initializer.
7315 (rust_language::value_print_inner): New member function.
7316 * valprint.c (do_val_print): Update call to value_print_inner.
7317
a1d1fa3e
AB
73182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7319
7320 * ada-lang.c (ada_language_data): Delete la_value_print
7321 initializer.
7322 (ada_language::value_print): New member function.
7323 * c-lang.c (c_language_data): Delete la_value_print initializer.
7324 (cplus_language_data): Likewise.
7325 (asm_language_data): Likewise.
7326 (minimal_language_data): Likewise.
7327 * d-lang.c (d_language_data): Likewise.
7328 * f-lang.c (f_language_data): Likewise.
7329 * go-lang.c (go_language_data): Likewise.
7330 * language.c (unk_lang_value_print): Delete.
7331 (language_defn::value_print): Define new member function.
7332 (unknown_language_data): Delete la_value_print initializer.
7333 (unknown_language::value_print): New member function.
7334 (auto_language_data): Delete la_value_print initializer.
7335 (auto_language::value_print): New member function.
7336 * language.h (language_data): Delete la_value_print field.
7337 (language_defn::value_print): Declare new member function.
7338 (LA_VALUE_PRINT): Update call to value_print.
7339 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7340 * objc-lang.c (objc_language_data): Likewise.
7341 * opencl-lang.c (opencl_language_data): Likewise.
7342 * p-lang.c (pascal_language_data): Likewise.
7343 (pascal_language::value_print): New member function.
7344 * rust-lang.c (rust_language_data): Delete la_value_print
7345 initializer.
7346
f16a9f57
AB
73472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * ada-lang.c (ada_watch_location_expression): Rename to
7350 ada_language::watch_location_expression.
7351 (ada_language_data): Delete la_watch_location_expression
7352 initializer.
7353 (ada_language::watch_location_expression): New member function,
7354 implementation from ada_watch_location_expression.
7355 * breakpoint.c (watch_command_1): Update call to
7356 watch_location_expression.
7357 * c-lang.c (c_watch_location_expression): Rename to
7358 language_defn::watch_location_expression.
7359 (c_language_data): Delete la_watch_location_expression
7360 initializer.
7361 (cplus_language_data): Likewise.
7362 (asm_language_data): Likewise.
7363 (minimal_language_data): Likewise.
7364 * c-lang.h (c_watch_location_expression): Delete declaration.
7365 * d-lang.c (d_language_data): Delete la_watch_location_expression
7366 initializer.
7367 * f-lang.c (f_language_data): Likewise.
7368 * go-lang.c (go_language_data): Likewise.
7369 * language.c (language_defn::watch_location_expression): Member
7370 function implementation from c_watch_location_expression.
7371 (unknown_language_data): Delete la_watch_location_expression
7372 initializer.
7373 (auto_language_data): Likewise.
7374 * language.h (language_data): Delete la_watch_location_expression
7375 field.
7376 (language_defn::watch_location_expression): Declare new member
7377 function.
7378 * m2-lang.c (m2_language_data): Delete
7379 la_watch_location_expression initializer.
7380 * objc-lang.c (objc_language_data): Likewise.
7381 * opencl-lang.c (opencl_language_data): Likewise.
7382 * p-lang.c (pascal_language_data): Likewise.
7383 * rust-lang.c (rust_watch_location_expression): Rename to
7384 rust_language::watch_location_expression.
7385 (rust_language_data): Delete la_watch_location_expression
7386 initializer.
7387 (rust_language::watch_location_expression): New member function,
7388 implementation from rust_watch_location_expression.
7389
7e56227d
AB
73902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7391
7392 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7393 ada_language::collect_symbol_completion_matches.
7394 (ada_language_data): Delete la_collect_symbol_completion_matches
7395 initializer.
7396 (ada_language::collect_symbol_completion_matches): New member
7397 function, implementation from
7398 ada_collect_symbol_completion_matches.
7399 * c-lang.c (c_language_data): Delete
7400 la_collect_symbol_completion_matches initializer.
7401 (cplus_language_data): Likewise.
7402 (asm_language_data): Likewise.
7403 (minimal_language_data): Likewise.
7404 * d-lang.c (d_language_data): Likewise.
7405 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7406 f_language::collect_symbol_completion_matches.
7407 (f_language_data): Delete la_collect_symbol_completion_matches
7408 initializer.
7409 (f_language::collect_symbol_completion_matches) New member
7410 function, implementation from f_collect_symbol_completion_matches.
7411 * go-lang.c (go_language_data): Delete
7412 la_collect_symbol_completion_matches initializer.
7413 * language.c (unknown_language_data): Likewise.
7414 (auto_language_data): Likewise.
7415 * language.h (language_data): Delete
7416 la_collect_symbol_completion_matches field.
7417 (language_defn::collect_symbol_completion_matches): New member
7418 function.
7419 * m2-lang.c (m2_language_data): Delete
7420 la_collect_symbol_completion_matches initializer.
7421 * objc-lang.c (objc_language_data): Likewise.
7422 * opencl-lang.c (opencl_language_data): Likewise.
7423 * p-lang.c (pascal_language_data): Likewise.
7424 * rust-lang.c (rust_language_data): Likewise.
7425 * symtab.c (default_collect_symbol_completion_matches): Delete.
7426 (collect_symbol_completion_matches): Update call to
7427 collect_symbol_completion_matches.
7428 (collect_symbol_completion_matches_type): Likewise.
7429 * symtab.h (default_collect_symbol_completion_matches): Delete
7430 declaration.
7431
53fc67f8
AB
74322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7435 (ada_language_data): Delete la_word_break_characters initializer.
7436 (ada_language::word_break_characters): New member function.
7437 * c-lang.c (c_language_data): Delete la_word_break_characters
7438 initializer.
7439 (cplus_language_data): Likewise.
7440 (asm_language_data): Likewise.
7441 (minimal_language_data): Likewise.
7442 * completer.c: Update global comment.
7443 (advance_to_expression_complete_word_point): Update call to
7444 word_break_characters.
7445 (complete_files_symbols): Likewise.
7446 (complete_line_internal_1): Likewise.
7447 (default_completer_handle_brkchars): Likewise.
7448 (skip_quoted_chars): Likewise.
7449 * d-lang.c (d_language_data): Delete la_word_break_characters
7450 initializer.
7451 * f-lang.c (f_word_break_characters): Delete.
7452 (f_language_data): Delete la_word_break_characters initializer.
7453 (f_language::word_break_characters): New member function.
7454 * go-lang.c (go_language_data): Delete la_word_break_characters
7455 initializer.
7456 * language.c (unknown_language_data): Likewise.
7457 (auto_language_data): Likewise.
7458 * language.h (default_word_break_characters): Move declaration to
7459 earlier in the file.
7460 (language_data): Delete la_word_break_characters field.
7461 (language_defn::word_break_characters): New member function.
7462 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7463 initializer.
7464 * objc-lang.c (objc_language_data): Likewise.
7465 * opencl-lang.c (opencl_language_data): Likewise.
7466 * p-lang.c (pascal_language_data): Likewise.
7467 * rust-lang.c (rust_language_data): Likewise.
7468
c9debfb9
AB
74692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7470
7471 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7472 (ada_language_data): Delete la_get_symbol_name_matcher
7473 initializer.
7474 (language_defn::get_symbol_name_matcher_inner): New member
7475 function.
7476 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7477 initializer.
7478 (cplus_language_data): Likewise.
7479 (cplus_language::get_symbol_name_matcher_inner): New member
7480 function.
7481 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7482 (minimal_language_data): Likewise.
7483 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7484 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7485 initializer.
7486 * dictionary.c (iter_match_first_hashed): Update call to
7487 get_symbol_name_matcher.
7488 (iter_match_next_hashed): Likewise.
7489 (iter_match_next_linear): Likewise.
7490 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7491 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7492 initializer.
7493 (f_language::get_symbol_name_matcher_inner): New member function.
7494 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7495 initializer.
7496 * language.c (default_symbol_name_matcher): Update header comment,
7497 make static.
7498 (language_defn::get_symbol_name_matcher): New definition.
7499 (language_defn::get_symbol_name_matcher_inner): Likewise.
7500 (get_symbol_name_matcher): Delete.
7501 (unknown_language_data): Delete la_get_symbol_name_matcher
7502 initializer.
7503 (auto_language_data): Likewise.
7504 * language.h (language_data): Delete la_get_symbol_name_matcher
7505 field.
7506 (language_defn::get_symbol_name_matcher): New member function.
7507 (language_defn::get_symbol_name_matcher_inner): Likewise.
7508 (default_symbol_name_matcher): Delete declaration.
7509 * linespec.c (find_methods): Update call to
7510 get_symbol_name_matcher.
7511 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7512 initializer.
7513 * minsyms.c (lookup_minimal_symbol): Update call to
7514 get_symbol_name_matcher.
7515 (iterate_over_minimal_symbols): Likewise.
7516 * objc-lang.c (objc_language_data): Delete
7517 la_get_symbol_name_matcher initializer.
7518 * opencl-lang.c (opencl_language_data): Likewise.
7519 * p-lang.c (pascal_language_data): Likewise.
7520 * psymtab.c (psymbol_name_matches): Update call to
7521 get_symbol_name_matcher.
7522 * rust-lang.c (rust_language_data): Delete
7523 la_get_symbol_name_matcher initializer.
7524 * symtab.c (symbol_matches_search_name): Update call to
7525 get_symbol_name_matcher.
7526 (compare_symbol_name): Likewise.
7527
9a49ad8c
AB
75282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * ada-lang.c (ada_language_data): Delete la_compute_program
7531 initializer.
7532 * c-lang.c (c_language_data): Likewise.
7533 (c_language::compute_program): New member function.
7534 (cplus_language_data): Delete la_compute_program initializer.
7535 (cplus_language::compute_program): New member function.
7536 (asm_language_data): Delete la_compute_program initializer.
7537 (minimal_language_data): Likewise.
7538 * c-lang.h (c_compute_program): Update comment.
7539 (cplus_compute_program): Likewise.
7540 * compile/compile-c-support.c (c_compute_program): Likewise.
7541 (cplus_compute_program): Likewise.
7542 * compile/compile.c (compile_to_object): Update call to
7543 la_compute_program.
7544 * d-lang.c (d_language_data): Delete la_compute_program
7545 initializer.
7546 * f-lang.c (f_language_data): Likewise.
7547 * go-lang.c (go_language_data): Likewise.
7548 * language.c (unknown_language_data): Likewise.
7549 (auto_language_data): Likewise.
7550 * language.h (language_data): Delete la_compute_program field.
7551 (language_defn::compute_program): New member function.
7552 * m2-lang.c (m2_language_data): Delete la_compute_program
7553 initializer.
7554 * objc-lang.c (objc_language_data): Likewise.
7555 * opencl-lang.c (opencl_language_data): Likewise.
7556 * p-lang.c (pascal_language_data): Likewise.
7557 * rust-lang.c (rust_language_data): Likewise.
7558
eff93b4d
AB
75592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * ada-lang.c (ada_language_data) Delete
7562 la_class_name_from_physname initializer.
7563 * c-lang.c (c_language_data): Likewise.
7564 (cplus_language_data): Likewise.
7565 (cplus_language::class_name_from_physname): New member function.
7566 (asm_language_data): Delete la_class_name_from_physname
7567 initializer.
7568 (minimal_language_data): Likewise.
7569 * d-lang.c (d_language_data): Likewise.
7570 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7571 method on language_defn class.
7572 (guess_full_die_structure_name): Likewise.
7573 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7574 initializer.
7575 * go-lang.c (go_language_data): Likewise.
7576 * language.c (language_class_name_from_physname): Delete.
7577 (unk_lang_class_name): Delete.
7578 (unknown_language_data): Delete la_class_name_from_physname
7579 initializer.
7580 (auto_language_data): Likewise.
7581 * language.h (language_data): Delete la_class_name_from_physname
7582 field.
7583 (language_defn::class_name_from_physname): New function.
7584 (language_class_name_from_physname): Delete declaration.
7585 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7586 initializer.
7587 * objc-lang.c (objc_language_data): Likewise.
7588 * opencl-lang.c (opencl_language_data): Likewise.
7589 * p-lang.c (pascal_language_data): Likewise.
7590 * rust-lang.c (rust_language_data): Likewise.
7591
de543742
TT
75922020-06-16 Tom Tromey <tom@tromey.com>
7593
7594 * tui/tui-data.h (STATUS_NAME): New macro.
7595 * tui/tui-layout.c (tui_remove_some_windows)
7596 (initialize_known_windows, tui_register_window)
7597 (tui_layout_split::remove_windows, initialize_layouts)
7598 (tui_new_layout_command): Don't use hard-coded window names.
7599
a350efd4
TT
76002020-06-16 Tom Tromey <tom@tromey.com>
7601
7602 PR tui/25348:
7603 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7604 tui_initialize_readline. Only run once. Call rl_initialize.
7605 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7606 tui_initialize_readline.
7607 * tui/tui-io.c (tui_setup_io): Call
7608 tui_ensure_readline_initialized.
7609 * tui/tui-interp.c (tui_interp::init): Update.
7610
39ec0490
TT
76112020-06-16 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7614 Also preserve the status window.
7615
d2d1ea20
TT
76162020-06-16 Tom Tromey <tom@tromey.com>
7617
7618 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7619 where m_window==nullptr.
7620
66920317
TT
76212020-06-15 Tom Tromey <tromey@adacore.com>
7622
7623 * windows-nat.c (windows_nat::handle_output_debug_string):
7624 Update.
7625 (windows_nat::handle_ms_vc_exception): Update.
7626 * target.h (target_read_string): Change API.
7627 * target.c (target_read_string): Change API.
7628 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7629 Update.
7630 * solib-frv.c (frv_current_sos): Update.
7631 * solib-dsbt.c (dsbt_current_sos): Update.
7632 * solib-darwin.c (darwin_current_sos): Update.
7633 * linux-thread-db.c (inferior_has_bug): Update.
7634 * expprint.c (print_subexp_standard): Update.
7635 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7636 (ada_exception_message_1): Update.
7637
a5d871dd
TT
76382020-06-15 Tom Tromey <tromey@adacore.com>
7639
7640 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7641
670e35fa
TT
76422020-06-15 Tom Tromey <tromey@adacore.com>
7643
7644 * valprint.c (read_string): Update comment.
7645 * target.c (MIN): Remove.
7646 (target_read_string): Rewrite.
7647
f5272a3b
TT
76482020-06-15 Tom Tromey <tromey@adacore.com>
7649
7650 * corefile.c (read_memory_string): Remove.
7651 * ada-valprint.c (ada_value_print_ptr): Update.
7652 * ada-lang.h (ada_tag_name): Change return type.
7653 * ada-lang.c (type_from_tag): Update.
7654 (ada_tag_name_from_tsd): Change return type. Use
7655 target_read_string.
7656 (ada_tag_name): Likewise.
7657 * gdbcore.h (read_memory_string): Don't declare.
7658
2c074f49
HD
76592020-06-14 Hannes Domani <ssbssa@yahoo.de>
7660
7661 * symtab.c (rbreak_command): Ignore Windows drive colon.
7662
6a17d503
SM
76632020-06-12 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * NEWS: Mention removed GDBserver host support.
7666
453c733f
NC
76672020-06-12 Nelson Chu <nelson.chu@sifive.com>
7668
7669 * features/riscv/rebuild-csr-xml.sh: Updated.
7670
2b4e6a3f
TT
76712020-06-11 Tom Tromey <tom@tromey.com>
7672
7673 PR gdb/18318:
7674 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7675
4412332f
JG
76762020-06-09 Jonny Grant <jg@jguk.org>
76772020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7678
7679 * main.c (captured_main_1): Don't print new line after help.
7680 (print_gdb_help): add mailing list and IRC channel information
7681 to --help. Add new lines between items in the footer. Remove
7682 quotes around bug url.
7683
2f33032a
KS
76842020-06-11 Keith Seitz <keiths@redhat.com>
7685
7686 PR gdb/21356
7687 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7688 Resolve typedefs for type length calculations.
7689
7ab96794
TV
76902020-06-10 Tom de Vries <tdevries@suse.de>
7691
7692 PR ada/24713
7693 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7694 (write_psymbols): Enable .gdb_index for ada.
7695 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7696 ada.
7697
e5f3ece2
TV
76982020-06-10 Tom de Vries <tdevries@suse.de>
7699
7700 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7701 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7702 namei" instead of "const char *name" argument.
7703 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7704 dw2_symtab_iter_init.
7705
940da03e
SM
77062020-06-08 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7709 to use type::field and field::type instead.
7710
b6cdac4b
SM
77112020-06-08 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7714 to use field::type instead.
7715
5d14b6e5
SM
77162020-06-08 Simon Marchi <simon.marchi@efficios.com>
7717
7718 * gdbtypes.h (struct field) <type, set_type>: New methods.
7719 Rename `type` field to...
7720 <m_type>: ... this. Change references throughout to use type or
7721 set_type methods.
7722 (FIELD_TYPE): Use field::type. Change call sites that modify
7723 the field's type to use field::set_type instead.
7724
3d967001
SM
77252020-06-08 Simon Marchi <simon.marchi@efficios.com>
7726
7727 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7728 to use type::index_type instead.
7729
262abc0d
SM
77302020-06-08 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7733 methods.
7734 (TYPE_INDEX_TYPE): Use type::index_type.
7735 * gdbtypes.c (create_array_type_with_stride): Likewise.
7736
82836c92
TT
77372020-06-07 Tom Tromey <tom@tromey.com>
7738
7739 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7740 parameter.
7741 (generic_value_print): Update.
7742
940dace9
AB
77432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 Revert commit 982a38f60b0.
7746 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7747
982a38f6
AB
77482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7751 avoid use after free.
7752
82f06518
TV
77532020-06-05 Tom de Vries <tdevries@suse.de>
7754
7755 * NEWS: Fix typos.
7756
f8c41851
SM
77572020-06-04 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7760 the per_bfd object.
7761 (dwarf2_read_debug_names): Likewise.
7762 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7763 object when re-using a per_bfd object with an index.
7764
f9b5d5ea
TV
77652020-06-03 Tom de Vries <tdevries@suse.de>
7766
7767 PR symtab/26046
7768 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7769 children for C++.
7770 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7771 DW_TAG_subprogram.
7772
f6eee2d0
AB
77732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * ada-lang.c (ada_language_data): Delete skip_trampoline
7776 initializer.
7777 * c-lang.c (c_language_data): Likewise.
7778 (cplus_language_data): Likewise.
7779 (cplus_language::skip_trampoline): New member function.
7780 (asm_language_data): Delete skip_trampoline initializer.
7781 (minimal_language_data): Likewise.
7782 * d-lang.c (d_language_data): Likewise.
7783 * f-lang.c (f_language_data): Likewise.
7784 * go-lang.c (go_language_data): Likewise.
7785 * language.c (unk_lang_trampoline): Delete function.
7786 (skip_language_trampoline): Update.
7787 (unknown_language_data): Delete skip_trampoline initializer.
7788 (auto_language_data): Likewise.
7789 * language.h (language_data): Delete skip_trampoline field.
7790 (language_defn::skip_trampoline): New function.
7791 * m2-lang.c (m2_language_data): Delete skip_trampoline
7792 initializer.
7793 * objc-lang.c (objc_skip_trampoline): Delete function, move
7794 implementation to objc_language::skip_trampoline.
7795 (objc_language_data): Delete skip_trampoline initializer.
7796 (objc_language::skip_trampoline): New member function with
7797 implementation from objc_skip_trampoline.
7798 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7799 initializer.
7800 * p-lang.c (pascal_language_data): Likewise.
7801 * rust-lang.c (rust_language_data): Likewise.
7802
0a50df5d
AB
78032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7804
7805 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7806 (ada_language::demangle): New member function.
7807 * c-lang.c (c_language_data): Delete la_demangle initializer.
7808 (cplus_language_data): Delete la_demangle initializer.
7809 (cplus_language::demangle): New member function.
7810 (asm_language_data): Delete la_demangle initializer.
7811 (minimal_language_data): Delete la_demangle initializer.
7812 * d-lang.c (d_language_data): Delete la_demangle initializer.
7813 (d_language::demangle): New member function.
7814 * f-lang.c (f_language_data): Delete la_demangle initializer.
7815 (f_language::demangle): New member function.
7816 * go-lang.c (go_language_data): Delete la_demangle initializer.
7817 (go_language::demangle): New member function.
7818 * language.c (language_demangle): Update.
7819 (unk_lang_demangle): Delete.
7820 (unknown_language_data): Delete la_demangle initializer.
7821 (unknown_language::demangle): New member function.
7822 (auto_language_data): Delete la_demangle initializer.
7823 (auto_language::demangle): New member function.
7824 * language.h (language_data): Delete la_demangle field.
7825 (language_defn::demangle): New function.
7826 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7827 * objc-lang.c (objc_language_data): Delete la_demangle
7828 initializer.
7829 (objc_language::demangle): New member function.
7830 * opencl-lang.c (opencl_language_data): Delete la_demangle
7831 initializer.
7832 * p-lang.c (pascal_language_data): Likewise.
7833 * rust-lang.c (rust_language_data): Likewise.
7834 (rust_language::demangle): New member function.
7835
fbfb0a46
AB
78362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * ada-lang.c (ada_language_data): Delete la_print_type
7839 initializer.
7840 (ada_language::print_type): New member function.
7841 * c-lang.c (c_language_data): Delete la_print_type initializer.
7842 (c_language::print_type): New member function.
7843 (cplus_language_data): Delete la_print_type initializer.
7844 (cplus_language::print_type): New member function.
7845 (asm_language_data): Delete la_print_type initializer.
7846 (asm_language::print_type): New member function.
7847 (minimal_language_data): Delete la_print_type initializer.
7848 (minimal_language::print_type): New member function.
7849 * d-lang.c (d_language_data): Delete la_print_type initializer.
7850 (d_language::print_type): New member function.
7851 * f-lang.c (f_language_data): Delete la_print_type initializer.
7852 (f_language::print_type): New member function.
7853 * go-lang.c (go_language_data): Delete la_print_type initializer.
7854 (go_language::print_type): New member function.
7855 * language.c (unk_lang_print_type): Delete.
7856 (unknown_language_data): Delete la_print_type initializer.
7857 (unknown_language::print_type): New member function.
7858 (auto_language_data): Delete la_print_type initializer.
7859 (auto_language::print_type): New member function.
7860 * language.h (language_data): Delete la_print_type field.
7861 (language_defn::print_type): New function.
7862 (LA_PRINT_TYPE): Update.
7863 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7864 (m2_language::print_type): New member function.
7865 * objc-lang.c (objc_language_data): Delete la_print_type
7866 initializer.
7867 (objc_language::print_type): New member function.
7868 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7869 to opencl_language::print_type.
7870 (opencl_language_data): Delete la_print_type initializer.
7871 (opencl_language::print_type): New member function, implementation
7872 from opencl_print_type.
7873 * p-lang.c (pascal_language_data): Delete la_print_type
7874 initializer.
7875 (pascal_language::print_type): New member function.
7876 * rust-lang.c (rust_print_type): Delete, implementation moved to
7877 rust_language::print_type.
7878 (rust_language_data): Delete la_print_type initializer.
7879 (rust_language::print_type): New member function, implementation
7880 from rust_print_type.
7881
6f827019
AB
78822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7885 implementation moves to...
7886 (ada_language::sniff_from_mangled_name): ...here. Update return
7887 type.
7888 (ada_language_data): Delete la_sniff_from_mangled_name
7889 initializer.
7890 * c-lang.c (c_language_data): Likewise.
7891 (cplus_language_data): Likewise.
7892 (cplus_language::sniff_from_mangled_name): New member function,
7893 implementation taken from gdb_sniff_from_mangled_name.
7894 (asm_language_data): Delete la_sniff_from_mangled_name
7895 initializer.
7896 (minimal_language_data): Likewise.
7897 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7898 implementation moves to cplus_language::sniff_from_mangled_name.
7899 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7900 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7901 moves to...
7902 (d_language::sniff_from_mangled_name): ...here.
7903 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7904 * f-lang.c (f_language_data): Likewise.
7905 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7906 moves to...
7907 (go_language::sniff_from_mangled_name): ...here.
7908 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7909 * language.c (language_sniff_from_mangled_name): Delete.
7910 (unknown_language_data): Delete la_sniff_from_mangled_name
7911 initializer.
7912 (auto_language_data): Likewise.
7913 * language.h (language_data): Delete la_sniff_from_mangled_name
7914 field.
7915 (language_defn::sniff_from_mangled_name): New function.
7916 (language_sniff_from_mangled_name): Delete declaration.
7917 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7918 field.
7919 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7920 implementation moves to...
7921 (objc_language::sniff_from_mangled_name): ...here.
7922 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7923 * opencl-lang.c (opencl_language_data): Likewise.
7924 * p-lang.c (pascal_language_data): Likewise.
7925 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7926 implementation moves to...
7927 (rust_language::sniff_from_mangled_name): ...here.
7928 (rust_language_data): Delete la_sniff_from_mangled_name
7929 initializer.
7930 * symtab.c (symbol_find_demangled_name): Call
7931 sniff_from_mangled_name member function.
7932
fb8006fd
AB
79332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7934
7935 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7936 initializer.
7937 * c-lang.c (c_language_data): Likewise.
7938 (cplus_language_data): Likewise.
7939 (cplus_language::search_name_hash): New member function.
7940 (asm_language_data): Delete la_search_name_hash initializer.
7941 (minimal_language_data): Likewise.
7942 * d-lang.c (d_language_data): Likewise.
7943 * dictionary.c (default_search_name_hash): Rename to...
7944 (language_defn::search_name_hash): ...this.
7945 * f-lang.c (f_language_data): Likewise.
7946 (f_language::search_name_hash): New member function.
7947 * go-lang.c (go_language_data): Delete la_search_name_hash
7948 initializer.
7949 * language.c (unknown_language_data): Likewise.
7950 (auto_language_data): Likewise.
7951 * language.h (struct language_data): Delete la_search_name_hash
7952 field.
7953 (language_defn::search_name_hash): Declare new member function.
7954 (default_search_name_hash): Delete declaration.
7955 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7956 initializer.
7957 * objc-lang.c (objc_language_data): Likewise.
7958 * opencl-lang.c (opencl_language_data): Likewise.
7959 * p-lang.c (pascal_language_data): Likewise.
7960 * rust-lang.c (rust_language_data): Likewise.
7961 * symtab.c (search_name_hash): Update call.
7962
8e25bafe
AB
79632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7966 initializer.
7967 * c-lang.c (class compile_instance): Declare.
7968 (c_language_data): Delete la_get_compile_instance initializer.
7969 (c_language::get_compile_instance): New member function.
7970 (cplus_language_data): Delete la_get_compile_instance initializer.
7971 (cplus_language::get_compile_instance): New member function.
7972 (asm_language_data): Delete la_get_compile_instance initializer.
7973 (minimal_language_data): Likewise.
7974 * c-lang.h (c_get_compile_context): Update comment.
7975 (cplus_get_compile_context): Update comment.
7976 * compile/compile.c (compile_to_object): Update calls, don't rely
7977 on function pointer being NULL.
7978 * d-lang.c (d_language_data): Delete la_get_compile_instance
7979 initializer.
7980 * f-lang.c (f_language_data): Likewise.
7981 * go-lang.c (go_language_data): Likewise.
7982 * language.c (unknown_language_data): Likewise.
7983 (auto_language_data): Likewise.
7984 * language.h (language_data): Delete la_get_compile_instance field.
7985 (language_defn::get_compile_instance): New member function.
7986 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7987 initializer.
7988 * objc-lang.c (objc_language_data): Likewise.
7989 * opencl-lang.c (opencl_language_data): Likewise.
7990 * p-lang.c (pascal_language_data): Likewise.
7991 * rust-lang.c (rust_language_data): Likewise.
7992
4009ee92
AB
79932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * ada-lang.c (ada_add_all_symbols): Update comment.
7996 (ada_iterate_over_symbols): Delete, move implementation to...
7997 (ada_language::iterate_over_symbols): ...here, a new member
7998 function, rewrite to use range based for loop.
7999 (ada_language_data): Delete la_iterate_over_symbols initializer.
8000 * c-lang.c (c_language_data): Likewise.
8001 (cplus_language_data): Likewise.
8002 (asm_language_data): Likewise.
8003 (minimal_language_data): Likewise.
8004 * d-lang.c (d_language_data): Likewise.
8005 * f-lang.c (f_language_data): Likewise.
8006 * go-lang.c (go_language_data): Likewise.
8007 * language.c (unknown_language_data): Likewise.
8008 (auto_language_data): Likewise.
8009 * language.h (language_data): Delete la_iterate_over_symbols field.
8010 (language_defn::iterate_over_symbols): New member function.
8011 (LA_ITERATE_OVER_SYMBOLS): Update.
8012 * linespec.c (iterate_over_all_matching_symtabs): Update.
8013 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8014 initializer.
8015 * objc-lang.c (objc_language_data): Likewise.
8016 * opencl-lang.c (opencl_language_data): Likewise.
8017 * p-lang.c (pascal_language_data): Likewise.
8018 * rust-lang.c (rust_language_data): Likewise.
8019
54f4ca46
AB
80202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8021
8022 * ada-lang.c (ada_language_data): Delete
8023 la_lookup_transparent_type initializer.
8024 * c-lang.c (c_language_data): Likewise.
8025 (cplus_language_data): Likewise.
8026 (cplus_language::lookup_transparent_type): New member function.
8027 (asm_language_data): Delete la_lookup_transparent_type
8028 initializer.
8029 (minimal_language_data): Likewise.
8030 * d-lang.c (d_language_data): Likewise.
8031 * f-lang.c (f_language_data): Likewise.
8032 * go-lang.c (go_language_data): Likewise.
8033 * language.c (unknown_language_data): Likewise.
8034 (auto_language_data): Likewise.
8035 * language.h (struct language_data): Delete
8036 la_lookup_transparent_type field.
8037 (language_defn::lookup_transparent_type): New member function.
8038 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8039 initializer.
8040 * objc-lang.c (objc_language_data): Likewise.
8041 * opencl-lang.c (opencl_language_data): Likewise.
8042 * p-lang.c (pascal_language_data): Likewise.
8043 * rust-lang.c (rust_language_data): Likewise.
8044 * symtab.c (symbol_matches_domain): Update call.
8045
1fb314aa
AB
80462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * ada-lang.c (ada_language_arch_info): Delete function, move
8049 implementation to...
8050 (ada_language::language_arch_info): ...here, a new member
8051 function.
8052 (ada_language_data): Delete la_language_arch_info.
8053 * c-lang.c (c_language_data): Likewise.
8054 (c_language::language_arch_info): New member function.
8055 (cplus_language_arch_info): Delete function, move
8056 implementation to...
8057 (cplus_language::language_arch_info): ...here, a new member
8058 function.
8059 (cplus_language_data): Delete la_language_arch_info.
8060 (asm_language_data): Likewise.
8061 (asm_language::language_arch_info): New member function.
8062 (minimal_language_data): Delete la_language_arch_info.
8063 (minimal_language::language_arch_info): New member function.
8064 * d-lang.c (d_language_arch_info): Delete function, move
8065 implementation to...
8066 (d_language::language_arch_info): ...here, a new member
8067 function.
8068 (d_language_data): Delete la_language_arch_info.
8069 * f-lang.c (f_language_arch_info): Delete function, move
8070 implementation to...
8071 (f_language::language_arch_info): ...here, a new member
8072 function.
8073 (f_language_data): Delete la_language_arch_info.
8074 * go-lang.c (go_language_arch_info): Delete function, move
8075 implementation to...
8076 (go_language::language_arch_info): ...here, a new member
8077 function.
8078 (go_language_data): Delete la_language_arch_info.
8079 * language.c (unknown_language_data): Likewise.
8080 (unknown_language::language_arch_info): New member function.
8081 (auto_language_data): Delete la_language_arch_info.
8082 (auto_language::language_arch_info): New member function.
8083 (language_gdbarch_post_init): Update call to
8084 la_language_arch_info.
8085 * language.h (language_data): Delete la_language_arch_info
8086 function pointer.
8087 (language_defn::language_arch_info): New function.
8088 * m2-lang.c (m2_language_arch_info): Delete function, move
8089 implementation to...
8090 (m2_language::language_arch_info): ...here, a new member
8091 function.
8092 (m2_language_data): Delete la_language_arch_info.
8093 * objc-lang.c (objc_language_arch_info): Delete function, move
8094 implementation to...
8095 (objc_language::language_arch_info): ...here, a new member
8096 function.
8097 (objc_language_data): Delete la_language_arch_info.
8098 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8099 implementation to...
8100 (opencl_language::language_arch_info): ...here, a new member
8101 function.
8102 (opencl_language_data): Delete la_language_arch_info.
8103 * p-lang.c (pascal_language_arch_info): Delete function, move
8104 implementation to...
8105 (pascal_language::language_arch_info): ...here, a new member
8106 function.
8107 (pascal_language_data): Delete la_language_arch_info.
8108 * rust-lang.c (rust_language_arch_info): Delete function, move
8109 implementation to...
8110 (rust_language::language_arch_info): ...here, a new member
8111 function.
8112 (rust_language_data): Delete la_language_arch_info.
8113
48448202
AB
81142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8115
8116 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8117 initializer.
8118 * c-lang.c (c_language_data): Likewise.
8119 (cplus_language_data): Likewise.
8120 (cplus_language::pass_by_reference_info): New method.
8121 (asm_language_data): Delete la_pass_by_reference initializer.
8122 (minimal_language_data): Likewise.
8123 * cp-abi.c (cp_pass_by_reference): Remove use of
8124 default_pass_by_reference.
8125 * d-lang.c (d_language_data): Likewise.
8126 * f-lang.c (f_language_data): Likewise.
8127 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8128 default_pass_by_reference.
8129 * go-lang.c (go_language_data): Likewise.
8130 * language.c (language_pass_by_reference): Update.
8131 (default_pass_by_reference): Delete.
8132 (unknown_language_data): Delete la_pass_by_reference
8133 initializer.
8134 (auto_language_data): Likewise.
8135 * language.h (struct language_data): Delete la_pass_by_reference
8136 field.
8137 (language_defn::pass_by_reference_info): New member function.
8138 (default_pass_by_reference): Delete declaration.
8139 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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
15e5fd35
AB
81462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * ada-lang.c (ada_read_var_value): Delete function, move
8149 implementation to...
8150 (ada_language::read_var_value): ...here.
8151 (ada_language_data): Delete la_read_var_value initializer.
8152 * c-lang.c (c_language_data): Likewise.
8153 (cplus_language_data): Likewise.
8154 (minimal_language_data): Likewise.
8155 * d-lang.c (d_language_data): Likewise.
8156 * f-lang.c (f_language_data): Likewise.
8157 * findvar.c (default_read_var_value): Rename to...
8158 (language_defn::read_var_value): ...this.
8159 * findvar.c (read_var_value): Update header comment, and change to
8160 call member function instead of function pointer.
8161 * go-lang.c (go_language_data): Likewise.
8162 * language.c (unknown_language_data): Delete la_read_var_value
8163 initializer.
8164 (auto_language_data): Likewise.
8165 * language.h (struct language_data): Delete la_read_var_value
8166 field.
8167 (language_defn::read_var_value): New member function.
8168 (default_read_var_value): Delete declaration.
8169 * m2-lang.c (m2_language_data): Delete la_read_var_value
8170 initializer.
8171 * objc-lang.c (objc_language_data): Likewise.
8172 * opencl-lang.c (opencl_language_data): Likewise.
8173 * p-lang.c (pascal_language_data): Likewise.
8174 * rust-lang.c (rust_language_data): Likewise.
8175 * value.h (default_read_var_value): Delete declaration.
8176
5bd40f2a
AB
81772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * ada-lang.c (ada_print_array_index): Delete function, move
8180 implementation to...
8181 (ada_language::print_array_index): ...here.
8182 (ada_language_data): Delete la_print_array_index initializer.
8183 * c-lang.c (c_language_data): Likewise.
8184 (cplus_language_data): Likewise.
8185 (minimal_language_data): Likewise.
8186 * d-lang.c (d_language_data): Likewise.
8187 * f-lang.c (f_language_data): Likewise.
8188 * go-lang.c (go_language_data): Likewise.
8189 * language.c (default_print_array_index): Delete function, move
8190 implementation to...
8191 (language_defn::print_array_index): ...here.
8192 (unknown_language_data): Delete la_print_array_index initializer.
8193 (auto_language_data): Likewise.
8194 * language.h (struct language_data): Delete la_print_array_index
8195 field.
8196 (language_defn::print_array_index): New member function.
8197 (LA_PRINT_ARRAY_INDEX): Update.
8198 (default_print_array_index): Delete declaration.
8199 * m2-lang.c (m2_language_data): Delete la_print_array_index
8200 initializer.
8201 * objc-lang.c (objc_language_data): Likewise.
8202 * opencl-lang.c (opencl_language_data): Likewise.
8203 * p-lang.c (pascal_language_data): Likewise.
8204 * rust-lang.c (rust_language_data): Likewise.
8205
0874fd07
AB
82062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * gdb/ada-lang.c (ada_language_defn): Convert to...
8209 (ada_language_data): ...this.
8210 (class ada_language): New class.
8211 (ada_language_defn): New static global.
8212 * gdb/c-lang.c (c_language_defn): Convert to...
8213 (c_language_data): ...this.
8214 (class c_language): New class.
8215 (c_language_defn): New static global.
8216 (cplus_language_defn): Convert to...
8217 (cplus_language_data): ...this.
8218 (class cplus_language): New class.
8219 (cplus_language_defn): New static global.
8220 (asm_language_defn): Convert to...
8221 (asm_language_data): ...this.
8222 (class asm_language): New class.
8223 (asm_language_defn): New static global.
8224 (minimal_language_defn): Convert to...
8225 (minimal_language_data): ...this.
8226 (class minimal_language): New class.
8227 (minimal_language_defn): New static global.
8228 * gdb/d-lang.c (d_language_defn): Convert to...
8229 (d_language_data): ...this.
8230 (class d_language): New class.
8231 (d_language_defn): New static global.
8232 * gdb/f-lang.c (f_language_defn): Convert to...
8233 (f_language_data): ...this.
8234 (class f_language): New class.
8235 (f_language_defn): New static global.
8236 * gdb/go-lang.c (go_language_defn): Convert to...
8237 (go_language_data): ...this.
8238 (class go_language): New class.
8239 (go_language_defn): New static global.
8240 * gdb/language.c (unknown_language_defn): Remove declaration.
8241 (current_language): Initialize to nullptr, real initialization is
8242 moved to _initialize_language.
8243 (languages): Delete global.
8244 (language_defn::languages): Define.
8245 (set_language_command): Use language_defn::languages.
8246 (set_language): Likewise.
8247 (range_error): Likewise.
8248 (language_enum): Likewise.
8249 (language_def): Likewise.
8250 (add_set_language_command): Use language_def::languages for the
8251 language list, and language_def to lookup language pointers.
8252 (skip_language_trampoline): Use language_defn::languages.
8253 (unknown_language_defn): Convert to...
8254 (unknown_language_data): ...this.
8255 (class unknown_language): New class.
8256 (unknown_language_defn): New static global.
8257 (auto_language_defn): Convert to...
8258 (auto_language_data): ...this.
8259 (class auto_language): New class.
8260 (auto_language_defn): New static global.
8261 (language_gdbarch_post_init): Use language_defn::languages.
8262 (_initialize_language): Initialize current_language.
8263 * gdb/language.h (struct language_defn): Rename to...
8264 (struct language_data): ...this.
8265 (struct language_defn): New.
8266 (auto_language_defn): Delete.
8267 (unknown_language_defn): Delete.
8268 (minimal_language_defn): Delete.
8269 (ada_language_defn): Delete.
8270 (asm_language_defn): Delete.
8271 (c_language_defn): Delete.
8272 (cplus_language_defn): Delete.
8273 (d_language_defn): Delete.
8274 (f_language_defn): Delete.
8275 (go_language_defn): Delete.
8276 (m2_language_defn): Delete.
8277 (objc_language_defn): Delete.
8278 (opencl_language_defn): Delete.
8279 (pascal_language_defn): Delete.
8280 (rust_language_defn): Delete.
8281 * gdb/m2-lang.c (m2_language_defn): Convert to...
8282 (m2_language_data): ...this.
8283 (class m2_language): New class.
8284 (m2_language_defn): New static global.
8285 * gdb/objc-lang.c (objc_language_defn): Convert to...
8286 (objc_language_data): ...this.
8287 (class objc_language): New class.
8288 (objc_language_defn): New static global.
8289 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8290 (opencl_language_data): ...this.
8291 (class opencl_language): New class.
8292 (opencl_language_defn): New static global.
8293 * gdb/p-lang.c (pascal_language_defn): Convert to...
8294 (pascal_language_data): ...this.
8295 (class pascal_language): New class.
8296 (pascal_language_defn): New static global.
8297 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8298 language pointer, update comment format.
8299 * gdb/rust-lang.c (rust_language_defn): Convert to...
8300 (rust_language_data): ...this.
8301 (class rust_language): New class.
8302 (rust_language_defn): New static global.
8303
1313c56e
AB
83042020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8305
8306 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8307 member variable.
8308 <m_stmt_at_address>: New member variable.
8309 (lnp_state_machine::record_line): Don't record some lines, update
8310 tracking of is_stmt at the same address.
8311 (lnp_state_machine::lnp_state_machine): Initialise new member
8312 variables.
8313
b7ed9f3d
ST
83142020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8315
8316 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8317 "-include gnu-nat-mig.h".
8318 * gnu-nat-mig.h: New file.
8319 * gnu-nat.c: Include "gnu-nat-mig.h".
8320 (exc_server, msg_reply_server, notify_server,
8321 process_reply_server): Remove declarations.
8322
14a8ad62
ST
83232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8324
8325 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8326 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8327 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8328 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8329 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8330 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8331 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8332 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8333 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8334 to gnu_nat_target class.
8335 * gnu-nat.c: Likewise.
8336 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8337 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8338 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8339 object.
8340 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8341 instead of `gnu_target'.
8342
0af5e106
ST
83432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8344
8345 * i386-gnu-tdep.c: Include "gdbcore.h"
8346 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8347 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8348 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8349 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8350 i386_gnu_sigcontext_addr): New functions
8351 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8352 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8353 tdep.
8354
078f2fc9
ST
83552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8356
8357 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8358 before fork_inferior call. Avoid calling it if target_is_pushed returns
8359 true.
8360
53dff92c
ST
83612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8362
8363 * gnu-nat.h (gnu_target): New variable declaration.
8364 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8365 gnu_target.
8366 * gnu-nat.c (gnu_target): New variable.
8367 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8368 add_thread_silent, and add_thread calls.
8369 (gnu_nat_target::create_inferior): Pass gnu_target to
8370 add_thread_silent, thread_change_ptid call.
8371 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8372 call.
8373
5a8b8627
ST
83742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8375
8376 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8377 (gnu_nat_target::find_memory_regions): Remove unused
8378 `old_address' variable.
8379
366f550a
ST
83802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8381
8382 * gnu-nat.c: Include "gdbarch.h".
8383
f14871bf
ST
83842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8385
8386 * reply_mig_hack.awk (Error return): Cast function through
8387 void *, to bypass compiler function call check.
8388
c6887cfb
ST
83892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8390
8391 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8392 $(srcdir)/reply_mig_hack.awk.
8393
6930bffe
ST
83942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8395
8396 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8397
112c22ed
JG
83982020-05-30 Jonny Grant <jg@jguk.org>
8399
8400 * configure.ac (ACX_BUGURL): change bug URL to https.
8401
f68f85b5
PA
84022020-05-30 Pedro Alves <palves@redhat.com>
8403
8404 * cp-support.c (replace_typedefs_template): New.
8405 (replace_typedefs_qualified_name): Handle
8406 DEMANGLE_COMPONENT_TEMPLATE.
8407
976ca316
SM
84082020-05-29 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8411 dwarf2/index-cache.h, dwarf2/index-write.c,
8412 dwarf2/index-write.h, dwarf2/line-header.c,
8413 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8414 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8415 variables and fields from `dwarf2_per_objfile` to just
8416 `per_objfile` throughout.
8417
989ade05
SM
84182020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8419
8420 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8421 <push_dwarf_reg_entry_value>: Add comment.
8422
c47bae85
KB
84232020-05-28 Kevin Buettner <kevinb@redhat.com>
8424 Keith Seitz <keiths@redhat.com>
8425
8426 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8427 instead of PyEval_ReleaseLock.
8428 (class gdbpy_gil): Move to earlier in file.
8429 (finalize_python): Set gdb_python_initialized.
8430 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8431 when not initialized.
8432
44486dcf
SM
84332020-05-28 Simon Marchi <simon.marchi@efficios.com>
8434
8435 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8436 <push_dwarf_reg_entry_value>: Remove assert. Override
8437 per_objfile with caller_per_objfile.
8438
f030440d
TV
84392020-05-28 Tom de Vries <tdevries@suse.de>
8440
8441 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8442 PR gold/15646 workaround to symbol kind "type".
8443
f0fbb768
TT
84442020-05-27 Tom Tromey <tromey@adacore.com>
8445
8446 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8447
af0b2a3e
TT
84482020-05-27 Tom Tromey <tromey@adacore.com>
8449
8450 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8451 Use htab_find_with_hash.
8452 <add_abbrev>: Remove "abbrev_number" parameter.
8453 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8454 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8455 (hash_abbrev): Add comment.
8456 (abbrev_table::lookup_abbrev): Move to header file.
8457 (abbrev_table::read): Update.
8458
7d00ffec
TT
84592020-05-27 Tom Tromey <tromey@adacore.com>
8460
8461 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8462 method.
8463 <canonical_name>: New member.
8464 <raw_name>: Rename from "name".
8465 (partial_die_info): Initialize canonical_name.
8466 (scan_partial_symbols): Check raw_name.
8467 (partial_die_parent_scope, partial_die_full_name)
8468 (add_partial_symbol, add_partial_subprogram)
8469 (add_partial_enumeration, load_partial_dies): Use "name" method.
8470 (partial_die_info::name): New method.
8471 (partial_die_info::read, guess_partial_die_structure_name)
8472 (partial_die_info::fixup): Update.
8473
697bba18
TT
84742020-05-27 Tom Tromey <tromey@adacore.com>
8475
8476 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8477 <get_ref_die_offset>: Inline.
8478 <get_ref_die_offset_complaint>: New method.
8479 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8480 (attribute::get_ref_die_offset_complaint): Rename from
8481 get_ref_die_offset. Just issue complaint.
8482
c17ace43
HD
84832020-05-27 Hannes Domani <ssbssa@yahoo.de>
8484
8485 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8486
96445f0b
HD
84872020-05-27 Hannes Domani <ssbssa@yahoo.de>
8488
8489 * exec.c (exec_file_attach): Use errno value of first openp failure.
8490
ac637ec3
HD
84912020-05-27 Hannes Domani <ssbssa@yahoo.de>
8492
8493 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8494 Don't close thread handle.
8495
17ee85fc
TT
84962020-05-27 Tom Tromey <tom@tromey.com>
8497 Simon Marchi <simon.marchi@efficios.com>
8498
8499 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8500 shared_ptr.
8501 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8502 member.
8503 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8504 dwarf2_per_bfd_objfile_data_key>: New globals.
8505 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8506 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8507 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8508 shared.
8509 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8510 short-circuit when sharing.
8511 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8512 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8513
39b16f87
SM
85142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8517 to...
8518 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8519 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8520
fcf23d5b
SM
85212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8522
8523 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8524 build_name_components, find_name_components_bounds>:
8525 Add per_objfile parameter.
8526 (struct mapped_index) <symbol_name_at>: Likewise.
8527 (struct mapped_debug_names): Remove constructor.
8528 <dwarf2_per_objfile>: Remove field.
8529 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8530 (mapped_index_base::find_name_components_bounds,
8531 mapped_index_base::build_name_components,
8532 dw2_expand_symtabs_matching_symbol): Likewise.
8533 (class mock_mapped_index) <symbol_name_at>: Likewise.
8534 (check_match): Likewise.
8535 (check_find_bounds_finds): Likewise.
8536 (test_mapped_index_find_name_component_bounds): Update.
8537 (CHECK_MATCH): Update.
8538 (dw2_expand_symtabs_matching): Update.
8539 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8540 per_objfile parameter.
8541 <find_vec_in_debug_names>: Likewise.
8542 <m_per_objfile>: New field.
8543 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8544 parameter.
8545 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8546 (dw2_debug_names_iterator::next): Update.
8547 (dw2_debug_names_lookup_symbol): Update.
8548 (dw2_debug_names_expand_symtabs_for_function): Update.
8549 (dw2_debug_names_map_matching_symbols): Update.
8550 (dw2_debug_names_expand_symtabs_matching): Update.
8551 (dwarf2_read_debug_names): Update.
8552
7188ed02
SM
85532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8554
8555 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8556 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8557 move to dwarf2_per_objfile.
8558 <read_in_chain>: Remove.
8559 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8560 remove_all_cus, age_comp_units>: New methods.
8561 <m_dwarf2_cus>: New member.
8562 (struct dwarf2_per_cu_data) <cu>: Remove.
8563 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8564 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8565 moved to methods of dwarf2_per_objfile.
8566 (dwarf2_clear_marks): Remove.
8567 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8568 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8569 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8570 (dwarf2_per_objfile::remove_all_cus): New.
8571 (class free_cached_comp_units) <~free_cached_comp_units>:
8572 Update.
8573 (load_cu): Update.
8574 (dw2_do_instantiate_symtab): Adjust.
8575 (fill_in_sig_entry_from_dwo_entry): Adjust.
8576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8577 (cutu_reader::cutu_reader): Likewise.
8578 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8579 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8580 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8581 and dwarf2_per_objfile::age_comp_units.
8582 (load_partial_comp_unit): Update.
8583 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8584 (process_queue): Likewise.
8585 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8586 backlink.
8587 (dwarf2_read_addr_index): Likewise.
8588 (follow_die_offset): Likewise.
8589 (dwarf2_fetch_die_loc_sect_off): Likewise.
8590 (dwarf2_fetch_constant_bytes): Likewise.
8591 (dwarf2_fetch_die_type_sect_off): Likewise.
8592 (follow_die_sig_1): Likewise.
8593 (load_full_type_unit): Likewise.
8594 (read_signatured_type): Likewise.
8595 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8596 (dwarf2_cu::~dwarf2_cu): Remove.
8597 (dwarf2_per_objfile::get_cu): New.
8598 (dwarf2_per_objfile::set_cu): New.
8599 (age_cached_comp_units): Rename to...
8600 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8601 to std::unordered_map.
8602 (free_one_cached_comp_unit): Rename to...
8603 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8604 to std::unordered_map.
8605 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8606 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8607 a dwarf2_per_objfile in data.
8608 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8609 (dwarf2_clear_marks): Remove.
8610
2e671100
SM
86112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8614 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8615 (init_tu_and_read_dwo_dies): Likewise.
8616 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8617 (cutu_reader::cutu_reader): Likewise.
8618 (load_partial_comp_unit): Likewise.
8619 (process_psymtab_comp_unit): Update.
8620 (build_type_psymtabs_1): Update.
8621 (process_skeletonless_type_unit): Update.
8622 (load_full_comp_unit): Update.
8623 (find_partial_die): Update.
8624 (dwarf2_read_addr_index): Update.
8625 (read_signatured_type): Update.
8626
2e6a9f79
SM
86272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8630 m_header_read_in>: New fields.
8631 <get_header>: New method.
8632 * dwarf2/read.c (per_cu_header_read_in): Remove.
8633 (dwarf2_per_cu_data::get_header): New.
8634 (dwarf2_per_cu_data::addr_size): Update.
8635 (dwarf2_per_cu_data::offset_size): Update.
8636 (dwarf2_per_cu_data::ref_addr_size): Update.
8637
1b555f17
SM
86382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8641 (dw2_do_instantiate_symtab): Update.
8642 (queue_and_load_all_dwo_tus): Change parameter from
8643 dwarf2_per_cu_data to dwarf2_cu.
8644 (dwarf2_fetch_die_loc_sect_off): Update.
8645 (dwarf2_fetch_constant_bytes): Update.
8646 (dwarf2_fetch_die_type_sect_off): Update.
8647
8fc0b21d
SM
86482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8649
8650 * dwarf2/read.c (process_full_comp_unit,
8651 process_full_type_unit): Remove per_cu, per_objfile paramters.
8652 Add dwarf2_cu parameter.
8653 (process_queue): Update.
8654
168c9250
SM
86552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8656
8657 * dwarf2/read.c (create_cu_from_index_list): Replace
8658 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8659 (create_cus_from_index_list): Likewise.
8660 (create_cus_from_index): Likewise.
8661 (create_signatured_type_table_from_index): Likewise.
8662 (create_cus_from_debug_names_list): Likewise.
8663 (create_cus_from_debug_names): Likewise.
8664 (dwarf2_read_gdb_index): Update.
8665 (dwarf2_read_debug_names): Update.
8666
e286671b
TT
86672020-05-27 Tom Tromey <tom@tromey.com>
8668 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * dwarf2/read.h (struct dwarf2_per_objfile)
8671 <get_type_for_signatured_type, set_type_for_signatured_type>:
8672 New methods.
8673 <m_type_map>: New member.
8674 (struct signatured_type) <type>: Remove.
8675 * dwarf2/read.c
8676 (dwarf2_per_objfile::get_type_for_signatured_type,
8677 dwarf2_per_objfile::set_type_for_signatured_type): New.
8678 (get_signatured_type): Use new methods.
8679
8adb8487
TT
86802020-05-27 Tom Tromey <tom@tromey.com>
8681 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8684 (struct dwarf2_per_objfile) <type_units>: New member.
8685 <get_type_unit_group_unshareable>: New method.
8686 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8687 num_symtabs, symtabs>: Remove; move to
8688 type_unit_group_unshareable.
8689 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8690 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8691 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8692
127bbf4b
SM
86932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * dwarf2/read.h (struct dwarf2_per_cu_data):
8696 <dwarf2_per_objfile>: Remove.
8697 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8698 dwarf2_per_objfile.
8699 (create_signatured_type_table_from_index): Likewise.
8700 (create_signatured_type_table_from_debug_names): Likewise.
8701 (create_debug_type_hash_table): Likewise.
8702 (fill_in_sig_entry_from_dwo_entry): Likewise.
8703 (create_type_unit_group): Likewise.
8704 (read_comp_units_from_section): Likewise.
8705 (create_cus_hash_table): Likewise.
8706
f6e649dd
SM
87072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8710 dwarf2_per_cu_data::dwarf2_per_objfile.
8711 (compute_compunit_symtab_includes): Likewise.
8712 (dwarf2_cu::start_symtab): Likewise.
8713
aa66c379
SM
87142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8715
8716 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8717 parameter.
8718 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8719 (read_namespace_alias): Update.
8720 (lookup_die_type): Update.
8721 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8722 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8723 Update.
8724 (disassemble_dwarf_expression): Update.
8725
120ce1b5
SM
87262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * dwarf2/read.h (struct dwarf2_queue_item): Add
8729 dwarf2_per_objfile parameter, assign new parameter.
8730 <per_objfile>: New field.
8731 * dwarf2/read.c (free_one_cached_comp_unit): Add
8732 dwarf2_per_objfile parameter.
8733 (queue_comp_unit): Likewise.
8734 (dw2_do_instantiate_symtab): Update.
8735 (process_psymtab_comp_unit): Update.
8736 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8737 (process_imported_unit_die): Update.
8738 (queue_and_load_dwo_tu): Update.
8739 (follow_die_offset): Update.
8740 (follow_die_sig_1): Update.
8741
9f47c707
SM
87422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8745 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8746 (read_call_site_scope): Assign per_objfile.
8747 (dwarf2_per_cu_data::objfile): Remove.
8748 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8749 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8750 dwarf2_per_objfile parameter.
8751 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8752 dwarf2_per_objfile parameter.
8753 (dwarf_expr_reg_to_entry_parameter): Add output
8754 dwarf2_per_objfile parameter.
8755 (locexpr_get_frame_base): Update.
8756 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8757 <push_dwarf_reg_entry_value>: Update.
8758 <call_site_to_target_addr>: Update.
8759 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8760 parameter.
8761 (value_of_dwarf_reg_entry): Update.
8762 (rw_pieced_value): Update.
8763 (indirect_synthetic_pointer): Update.
8764 (dwarf2_evaluate_property): Update.
8765 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8766 parameter.
8767 (locexpr_read_variable): Update.
8768 (locexpr_get_symbol_read_needs): Update.
8769 (loclist_read_variable): Update.
8770
14095eb3
SM
87712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8774 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8775 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8776 parameter.
8777 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8778 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8779 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8780 parameter.
8781 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8782 sect_variable_value): Add dwarf2_per_objfile parameter.
8783 (class dwarf_evaluate_loc_desc) <dwarf_call,
8784 dwarf_variable_value>: Update.
8785 (fetch_const_value_from_synthetic_pointer): Add
8786 dwarf2_per_objfile parameter.
8787 (fetch_const_value_from_synthetic_pointer): Update.
8788 (coerced_pieced_ref): Update.
8789 (class symbol_needs_eval_context) <dwarf_call,
8790 dwarf_variable_value>: Update.
8791 (dwarf2_compile_expr_to_ax): Update.
8792
3c3cd3d4
SM
87932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8794
8795 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8796 parameter.
8797 (dwarf2_evaluate_loc_desc_full): Update.
8798
82ca3f51
SM
87992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8802 parameter.
8803 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8804 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8805 dwarf2_per_objfile parameter.
8806 (decode_debug_loc_dwo_addresses): Likewise.
8807 (dwarf2_find_location_expression): Update.
8808 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8809 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8810 parameter.
8811 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8812 parameter.
8813 (locexpr_describe_location_1): Likewise.
8814 (locexpr_describe_location): Update.
8815
4b167ea1
SM
88162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8819 Remove.
8820 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8821 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8822 (dwarf2_compile_property_to_c): Update.
8823 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8824 use text offset from objfile.
8825 (locexpr_tracepoint_var_ref): Update.
8826 (locexpr_generate_c_location): Update.
8827 (loclist_describe_location): Update.
8828 (loclist_tracepoint_var_ref): Update.
8829 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8830 dwarf2_per_objfile parameter.
8831 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8832 use text offset from objfile.
8833 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8834
89b07335
SM
88352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8836
8837 * dwarf2/expr.h (struct dwarf_expr_context)
8838 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8839 <offset>: Remove.
8840 <per_objfile>: New member.
8841 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8842 dwarf2_per_objfile parameter. Don't set offset, set
8843 per_objfile.
8844 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8845 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8846 a dwarf2_per_objfile object instead of an offset.
8847 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8848 constructor.
8849 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8850 to dwarf2_expr_executor constructor. Don't set offset.
8851 (dwarf2_fetch_cfa_info): Update.
8852 (struct dwarf2_frame_cache) <text_offset>: Remove.
8853 <per_objfile>: New field.
8854 (dwarf2_frame_cache): Update.
8855 (dwarf2_frame_prev_register): Update.
8856 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8857 <dwarf_evaluate_loc_desc>: Add constructor.
8858 (dwarf2_evaluate_loc_desc_full): Update.
8859 (dwarf2_locexpr_baton_eval): Update.
8860 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8861 Add constructor.
8862 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8863
293e7e51
SM
88642020-05-27 Simon Marchi <simon.marchi@efficios.com>
8865
8866 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8867 addr_sized_int_type>: Move to dwarf2_cu.
8868 <int_type>: Move to dwarf2_per_objfile.
8869 (struct dwarf2_per_objfile) <int_type>: Move here.
8870 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8871 addr_sized_int_type>: Move here.
8872 (read_func_scope): Update.
8873 (read_array_type): Update.
8874 (read_tag_string_type): Update.
8875 (attr_to_dynamic_prop): Update.
8876 (dwarf2_per_cu_data::int_type): Rename to...
8877 (dwarf2_per_objfile::int_type): ... this.
8878 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8879 (dwarf2_cu::addr_sized_int_type): ... this.
8880 (read_subrange_type): Update.
8881 (dwarf2_per_cu_data::addr_type): Rename to...
8882 (dwarf2_cu::addr_type): ... this.
8883 (set_die_type): Update.
8884
64874a40
SM
88852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8888 data through per_cu->cu.
8889
4ab09049
SM
88902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8893 dwarf2_per_cu_data parameter fo dwarf2_cu.
8894 (lookup_dwo_type_unit): Likewise.
8895 (read_cutu_die_from_dwo): Likewise.
8896 (lookup_dwo_unit): Likewise.
8897 (open_and_init_dwo_file): Likewise.
8898 (lookup_dwo_cutu): Likewise.
8899 (lookup_dwo_comp_unit): Likewise.
8900 (lookup_dwo_type_unit): Likewise.
8901 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8902 (cutu_reader::cutu_reader): Update.
8903
47b14e86
SM
89042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8907 parameter.
8908 (process_full_type_unit): Likewise.
8909 (process_queue): Update.
8910
43182c09
SM
89112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * dwarf2/read.c (recursively_compute_inclusions): Add
8914 dwarf2_per_objfile parameter.
8915 (compute_compunit_symtab_includes): Likewise.
8916 (process_cu_includes): Update.
8917
7aa104c4
SM
89182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8921 parameter.
8922 (create_type_unit_group): Update.
8923 (process_psymtab_comp_unit_reader): Update.
8924 (build_type_psymtabs_reader): Update.
8925
e3beb21d
SM
89262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8929 object through m_this_cu->cu.
8930
d460f660
SM
89312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8932
8933 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8934 the info parameter.
8935 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8936
ab432490
SM
89372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8938
8939 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8940 per_objfile parameter.
8941 (load_full_type_unit): Add per_objfile parameter.
8942 (read_signatured_type): Likewise.
8943 (load_full_comp_unit): Likewise.
8944 (load_cu): Likewise.
8945 (dw2_do_instantiate_symtab): Likewise.
8946 (dw2_get_file_names): Likewise.
8947 (dw2_map_symtabs_matching_filename): Update.
8948 (dw_expand_symtabs_matching_file_matcher): Update.
8949 (dw2_map_symbol_filenames): Update.
8950 (process_psymtab_comp_unit): Add per_objfile parameter.
8951 (build_type_psymtabs_1): Update.
8952 (process_skeletonless_type_unit): Update.
8953 (dwarf2_build_psymtabs_hard): Update.
8954 (load_partial_comp_unit): Add per_objfile parameter.
8955 (scan_partial_symbols): Update.
8956 (load_full_comp_unit): Add per_objfile parameter.
8957 (process_imported_unit_die): Update.
8958 (create_cus_hash_table): Update.
8959 (find_partial_die): Update.
8960 (dwarf2_read_addr_index): Update.
8961 (follow_die_offset): Update.
8962 (dwarf2_fetch_die_loc_sect_off): Update.
8963 (dwarf2_fetch_constant_bytes): Update.
8964 (dwarf2_fetch_die_type_sect_off): Update.
8965 (follow_die_sig_1): Update.
8966 (load_full_type_unit): Add per_objfile parameter.
8967 (read_signatured_type): Likewise.
8968
313bad1b
SM
89692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8972 of objfile_name.
8973
c3699833
SM
89742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8975
8976 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8977 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8978 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8979 field.
8980 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8981 (create_cus_from_index): Update.
8982 (dwarf2_read_gdb_index): Update.
8983 (create_cus_from_debug_names): Update.
8984 (dwarf2_read_debug_names): Update.
8985 (get_abbrev_section_for_cu): Update.
8986 (create_all_comp_units): Update.
8987 (read_attribute_value): Update.
8988 (get_debug_line_section): Update.
8989 * dwarf2/index-cache.c (index_cache::store): Update.
8990 * dwarf2/index-write.c (save_gdb_index_command): Update.
8991 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8992
1859c670
SM
89932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8994
8995 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8996 member.
8997 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8998 dwarf2_per_cu_data::per_bfd.
8999 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9000 (create_type_unit_group): Likewise.
9001 (queue_comp_unit): Remove reference to
9002 per_cu->dwarf2_per_objfile.
9003 (maybe_queue_comp_unit): Likewise.
9004 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9005 (create_cus_hash_table): Assign new field.
9006
5e22e966
SM
90072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9008
9009 * dwarf2/read.c: Replace
9010 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9011 dwarf2_cu->per_objfile throughout.
9012
97a1449a
SM
90132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9016 parameter, don't use per_cu->dwarf2_per_objfile.
9017 (dw2_instantiate_symtab): Likewise.
9018 (dw2_find_last_source_symtab): Update.
9019 (dw2_map_expand_apply): Update.
9020 (dw2_lookup_symbol): Update.
9021 (dw2_expand_symtabs_for_function): Update.
9022 (dw2_expand_all_symtabs): Update.
9023 (dw2_expand_symtabs_with_fullname): Update.
9024 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9025 don't use per_cu->dwarf2_per_objfile.
9026 (dw2_expand_marked_cus): Update.
9027 (dw2_find_pc_sect_compunit_symtab): Update.
9028 (dw2_debug_names_lookup_symbol): Update.
9029 (dw2_debug_names_expand_symtabs_for_function): Update.
9030 (dw2_debug_names_map_matching_symbols): Update.
9031 (dwarf2_psymtab::expand_psymtab): Update.
9032
9e021579
SM
90332020-05-27 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9036 <per_objfile>: New member.
9037 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9038 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9039 call to dwarf2_cu.
9040 (cutu_reader::cutu_reader): Update.
9041 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9042
ae090bdb
SM
90432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9046 struct dwarf2_per_objfile.
9047 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9048 dwarf2_per_bfd.
9049 * dwarf2/read.c (set_die_type): Update.
9050 (get_die_type_at_offset): Update.
9051
af758d11
SM
90522020-05-27 Tom Tromey <tom@tromey.com>
9053 Simon Marchi <simon.marchi@efficios.com>
9054
9055 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9056 method.
9057 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9058 get_symtab, set_symtab>: New methods.
9059 <m_symtabs>: New field.
9060 (struct dwarf2_psymtab): Derive from partial_symtab.
9061 <readin_p, get_compunit_symtab>: Declare methods.
9062 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9063 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9064 New methods.
9065 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9066 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9067 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9068 (dw2_symtab_iter_next, dw2_print_stats)
9069 (dw2_expand_symtabs_with_fullname)
9070 (dw2_expand_symtabs_matching_one)
9071 (dw_expand_symtabs_matching_file_matcher)
9072 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9073 (dw2_debug_names_iterator::next)
9074 (dw2_debug_names_map_matching_symbols)
9075 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9076 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9077 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9078 New methods.
9079 (get_compunit_symtab, process_full_comp_unit)
9080 (process_full_type_unit): Update.
9081 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9082
5989a64e
SM
90832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9084
9085 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9086 then introduce a new dwarf2_per_objfile type.
9087 <read_line_string>: Move to the new dwarf2_per_objfile type.
9088 <objfile>: Likewise.
9089 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9090 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9091 dwarf2_per_objfile->per_bfd.
9092 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9093 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9094 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9095 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9096 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9097 (dwarf2_per_objfile::locate_sections): Rename to...
9098 (dwarf2_per_bfd::locate_sections): ... this.
9099 (dwarf2_per_objfile::get_cutu): Rename to...
9100 (dwarf2_per_bfd::get_cutu): ... this.
9101 (dwarf2_per_objfile::get_cu): Rename to...
9102 (dwarf2_per_bfd::get_cu): ... this.
9103 (dwarf2_per_objfile::get_tu): Rename to...
9104 (dwarf2_per_bfd::get_tu): ... this.
9105 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9106 (dwarf2_per_bfd::allocate_per_cu): ... this.
9107 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9108 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9109 (get_gdb_index_contents_ftype): Change parameter from
9110 dwarf2_per_objfile to dwarf2_per_bfd.
9111 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9112 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9113
a50264ba
TT
91142020-05-27 Tom Tromey <tom@tromey.com>
9115 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9118 (allocate_piece_closure): Set "per_objfile" member.
9119 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9120 (locexpr_describe_location, loclist_describe_location): Use new
9121 member.
9122 * dwarf2/read.c (read_call_site_scope)
9123 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9124 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9125 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9126 handle_data_member_location): Set per_objfile member.
9127 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9128 member.
9129 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9130
d3473f0c
TT
91312020-05-27 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9134 allocate_signatured_type>: Declare new methods.
9135 <m_num_psymtabs>: New member.
9136 (struct dwarf2_per_cu_data) <index>: New member.
9137 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9138 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9139 (create_cu_from_index_list): Use allocate_per_cu.
9140 (create_signatured_type_table_from_index)
9141 (create_signatured_type_table_from_debug_names)
9142 (create_debug_type_hash_table, add_type_unit)
9143 (read_comp_units_from_section): Use allocate_signatured_type.
9144
5717c425
TT
91452020-05-27 Tom Tromey <tom@tromey.com>
9146
9147 * psymtab.c (partial_map_expand_apply)
9148 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9149 (psym_lookup_global_symbol_language)
9150 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9151 (psym_print_stats, psym_expand_symtabs_for_function)
9152 (psym_map_symbol_filenames, psym_map_matching_symbols)
9153 (psym_expand_symtabs_matching)
9154 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9155 (maintenance_check_psymtabs): Update.
9156 * psympriv.h (struct partial_symtab) <readin_p,
9157 get_compunit_symtab>: Add objfile parameter.
9158 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9159 Likewise.
9160 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9161 get_compunit_symtab>: Likewise.
9162 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9163
45940949
TT
91642020-05-27 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9167 member.
9168 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9169 (create_cu_from_index_list)
9170 (create_signatured_type_table_from_index)
9171 (create_signatured_type_table_from_debug_names)
9172 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9173 (dwarf2_create_include_psymtab)
9174 (create_debug_type_hash_table, add_type_unit)
9175 (create_type_unit_group, read_comp_units_from_section)
9176 (dwarf2_compute_name, create_cus_hash_table)
9177 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9178 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9179 obstack.
9180 (dw2_get_real_path): Likewise. Change argument to
9181 dwarf2_per_objfile.
9182
f8c6d152
LM
91832020-05-27 Luis Machado <luis.machado@linaro.org>
9184
9185 PR tdep/26000
9186 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9187 for ldrd (immediate).
9188
e98d2e6d
PW
91892020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9190
9191 * command.h: Add comment giving the name of class_tui.
9192 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9193 create the fake command for the help for class_tui.
9194
53a47a3e
TT
91952020-05-26 Tom Tromey <tromey@adacore.com>
9196
9197 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9198 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9199 (val_atr): New function.
9200 (value_val_atr): Use it.
9201 * ada-valprint.c (print_optional_low_bound): Change low bound
9202 handling for enums.
9203 (val_print_packed_array_elements): Don't call discrete_position.
9204 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9205 discrete_position for enum types.
9206 * language.c (default_print_array_index): Change type.
9207 * language.h (struct language_defn) <la_print_array_index>: Add
9208 index_type parameter, change type of index_value.
9209 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9210 (default_print_array_index): Update.
9211 * valprint.c (maybe_print_array_index): Don't call
9212 value_from_longest. Update.
9213 (value_print_array_elements): Don't call discrete_position.
9214
0bc2354b
TT
92152020-05-26 Tom Tromey <tromey@adacore.com>
9216
9217 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9218 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9219
1218a4bf
CDA
92202020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9221
9222 PR gdb/13519
9223 * avr-tdep.c (avr_integer_to_address): Return data or code
9224 address accordingly to the second 'type' argument of the
9225 function.
9226
92651b1d
MW
92272020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9228
9229 * infcmd.c, inferior.h: (construct_inferior_arguments):
9230 Moved function from here to gdbsupport/common-inferior.{h,cc}
9231
0a4f5f8c
TT
92322020-05-23 Tom Tromey <tom@tromey.com>
9233
9234 Revert commit eca1f90c:
9235 * NEWS: Remove entry for completion styling.
9236 * completer.c (_rl_completion_prefix_display_length): Move
9237 declaration later.
9238 (gdb_fnprint): Revert.
9239 (gdb_display_match_list_1): Likewise.
9240 * cli/cli-style.c (completion_prefix_style)
9241 (completion_difference_style, completion_suffix_style): Remove.
9242 (_initialize_cli_style): Revert.
9243 * cli/cli-style.h (completion_prefix_style)
9244 (completion_difference_style, completion_suffix_style): Don't
9245 declare.
9246
e08bd6c5
PA
92472020-05-24 Pedro Alves <palves@redhat.com>
9248
9249 * symtab.c (completion_list_add_name): Return boolean indication
9250 of whether the symbol matched.
9251 (completion_list_add_symbol): Don't try to remove C++ aliases if
9252 the symbol didn't match in the first place.
9253 * symtab.h (completion_list_add_name): Return bool.
9254
ceacbf6e
SM
92552020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9256
9257 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9258 type::field.
9259
26f16254
JB
92602020-05-23 Joel Brobecker <brobecker@adacore.com>
9261
9262 GDB 9.2 released.
9263
eca1f90c
TT
92642020-05-23 Tom Tromey <tom@tromey.com>
9265
9266 * NEWS: Add entry for completion styling.
9267 * completer.c (_rl_completion_prefix_display_length): Move
9268 declaration earlier.
9269 (gdb_fnprint): Use completion_style.
9270 (gdb_display_match_list_1): Likewise.
9271 * cli/cli-style.c (completion_prefix_style)
9272 (completion_difference_style, completion_suffix_style): New
9273 globals.
9274 (_initialize_cli_style): Register new globals.
9275 * cli/cli-style.h (completion_prefix_style)
9276 (completion_difference_style, completion_suffix_style): Declare.
9277
51e2cfa2
PA
92782020-05-23 Pedro Alves <palves@redhat.com>
9279
9280 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9281 (parse_escape): Use ISDIGIT instead of isdigit.
9282 (puts_debug): Use gdb_isprint instead of isprint.
9283 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9284 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9285 ISSPACE instead of isspace.
9286 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9287 instead of isspace.
9288 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9289 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9290 instead of isxdigit and ISDIGIT instead of isdigit.
9291
80fc5e77
SM
92922020-05-22 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * gdbtypes.h (struct type) <field>: New method.
9295 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9296 or type::field.
9297
3cabb6b0
SM
92982020-05-22 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9301 (TYPE_FIELDS): Use type::fields. Change all call sites that
9302 modify the propery to use type::set_fields instead.
9303
1f704f76
SM
93042020-05-22 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9307 type::num_fields instead.
9308
5e33d5f4
SM
93092020-05-22 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9312 methods.
9313 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9314 that modify the number of fields to use type::set_num_fields
9315 instead.
9316
9392ebb3
TT
93172020-05-22 Tom Tromey <tromey@adacore.com>
9318
9319 * compile/compile-object-load.h (munmap_list_free): Don't
9320 declare.
9321
7c13f4e8
AB
93222020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9323
9324 * annotate.c (annotate_source_line): Update return type, add call
9325 to update current symtab and line.
9326 * annotate.h (annotate_source_line): Update return type, and
9327 extend header comment.
9328 * source.c (info_line_command): Check annotation_level before
9329 calling annotate_source_line.
9330 * stack.c (print_frame_info): If calling annotate_source_line
9331 returns true, then don't print any other source line information.
9332
aa370940
SM
93332020-05-21 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9336
84d53fa9
SM
93372020-05-21 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * coffread.c (patch_type): Remove NULL check before xfree.
9340 * corefile.c (set_gnutarget): Likewise.
9341 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9342 * exec.c (build_section_table): Likewise.
9343 * remote.c (remote_target::pass_signals): Likewise.
9344 * utils.c (n_spaces): Likewise.
9345 * cli/cli-script.c (document_command): Likewise.
9346 * i386-windows-tdep.c (core_process_module_section): Likewise.
9347 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9348
9d428aae
SM
93492020-05-20 Simon Marchi <simon.marchi@efficios.com>
9350
9351 * symfile.c (reread_symbols): Clear objfile's section_offsets
9352 vector and section indices, re-compute them by calling
9353 sym_offsets.
9354
250106a7
TT
93552020-05-20 Tom Tromey <tromey@adacore.com>
9356
9357 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9358 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9359
9a0bacfb
TV
93602020-05-20 Tom de Vries <tdevries@suse.de>
9361
9362 PR symtab/25833
9363 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9364
7b958a48
AM
93652020-05-20 Alan Modra <amodra@gmail.com>
9366
9367 PR 25993
9368 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9369 bfd_set_filename.
9370 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9371 passed to bfd_set_filename.
9372 * symfile-mem.c (add_vsyscall_page): Likewise for string
9373 passed to symbol_file_add_from_memory.
9374 (symbol_file_add_from_memory): Make name param a const char* and
9375 don't strdup.
9376
c7e97679
AM
93772020-05-20 Alan Modra <amodra@gmail.com>
9378
9379 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9380 rather than accessing bfd->filename directly.
9381 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9382 and use bfd_section_name.
9383 * dwarf2/frame.c (decode_frame_entry): Likewise.
9384 * exec.c (exec_set_section_address): Likewise.
9385 * solib-aix.c (solib_aix_bfd_open): Likewise.
9386 * stap-probe.c (get_stap_base_address): Likewise.
9387 * symfile.c (reread_symbols): Likewise.
9388
563c591b
TT
93892020-05-19 Tom Tromey <tromey@adacore.com>
9390
9391 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9392
f408d82c
SM
93932020-05-19 Simon Marchi <simon.marchi@efficios.com>
9394
9395 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9396
98c59b52
PA
93972020-05-19 Pedro Alves <palves@redhat.com>
9398
9399 * NEWS (set exec-file-mismatch): Adjust entry.
9400 * exec.c: Include "build-id.h".
9401 (validate_exec_file): Try to match build IDs instead of filenames.
9402 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9403 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9404 and pass down 'warn_if_slow'.
9405 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9406 gdb_bfd_open_closure to pass it down.
9407 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9408
4111f652
PA
94092020-05-19 Pedro Alves <palves@redhat.com>
9410
9411 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9412 * target.c (target_fileio_open_1): Rename to target_fileio_open
9413 and make extern. Use bool.
9414 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9415 (target_fileio_read_alloc_1): Adjust.
9416 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9417 (target_fileio_open_warn_if_slow): Delete declaration.
9418
ad80db5b
PA
94192020-05-19 Pedro Alves <palves@redhat.com>
9420
9421 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9422 Adjust all callers.
9423
1d6ce4d3
YS
94242020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9425
9426 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9427 whether disp is negative.
9428
9005fbbb
SM
94292020-05-19 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * symfile.h (struct symfile_segment_data)
9432 <~symfile_segment_data>: Remove.
9433 <segment_info>: Change to std::vector.
9434 * symfile.c (default_symfile_segments): Update.
9435 * elfread.c (elf_symfile_segments): Update.
9436
68b888ff
SM
94372020-05-19 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9440 <segments>: New.
9441 <segment_bases, segment_sizes>: Remove.
9442 * symfile.c (default_symfile_segments): Update.
9443 * elfread.c (elf_symfile_segments): Update.
9444 * remote.c (remote_target::get_offsets): Update.
9445 * solib-target.c (solib_target_relocate_section_addresses):
9446 Update.
9447
62982abd
SM
94482020-05-19 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * symfile.h (struct symfile_segment_data): Initialize fields.
9451 <~symfile_segment_data>: Add.
9452 (symfile_segment_data_up): New.
9453 (struct sym_fns) <sym_segments>: Return a
9454 symfile_segment_data_up.
9455 (default_symfile_segments): Return a symfile_segment_data_up.
9456 (free_symfile_segment_data): Remove.
9457 (get_symfile_segment_data): Return a symfile_segment_data_up.
9458 * symfile.c (default_symfile_segments): Likewise.
9459 (get_symfile_segment_data): Likewise.
9460 (free_symfile_segment_data): Remove.
9461 (symfile_find_segment_sections): Update.
9462 * elfread.c (elf_symfile_segments): Return a
9463 symfile_segment_data_up.
9464 * remote.c (remote_target::get_offsets): Update.
9465 * solib-target.c (solib_target_relocate_section_addresses):
9466 Update.
9467 * symfile-debug.c (debug_sym_segments): Return a
9468 symfile_segment_data_up.
9469
7f204339
RO
94702020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9471
e52a0f1b
RO
9472 PR build/25981
9473 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9474 Hardcode register numbers.
9475
7f204339
RO
9476 PR build/25981
9477 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9478 procfs_find_LDT_entry): Remove.
9479 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9480 procfs_find_LDT_entry): Remove.
9481 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9482 Remove.
9483
7f32a4d5
PA
94842020-05-17 Pedro Alves <palves@redhat.com>
9485 Andrew Burgess <andrew.burgess@embecosm.com>
9486 Keno Fischer <keno@juliacomputing.com>
9487
9488 PR gdb/25741
9489 * breakpoint.c (build_target_condition_list): Update comments.
9490 (build_target_command_list): Update comments and skip matching
9491 locations.
9492 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9493 a separate function. Simplify "set breakpoint auto-hw off"
9494 handling.
9495 (insert_breakpoints): Update comment.
9496 (tracepoint_locations_match): New parameter. For breakpoints,
9497 compare location types too, if the caller wants to.
9498 (handle_automatic_hardware_breakpoints): New functions.
9499 (bp_location_is_less_than): Also sort by location type and
9500 hardware breakpoint length.
9501 (update_global_location_list): Handle "set breakpoint auto-hw on"
9502 here.
9503 (update_breakpoint_locations): Ask breakpoint_locations_match to
9504 ignore location types.
9505
7d93a1e0
SM
95062020-05-16 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9509 type::name instead.
9510
d0e39ea2
SM
95112020-05-16 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * gdbtypes.h (struct type) <name, set_name>: New methods.
9514 (TYPE_CODE): Use type::name. Change all call sites used to set
9515 the name to use type::set_name instead.
9516
2dab0c7b
TT
95172020-05-16 Tom Tromey <tom@tromey.com>
9518
9519 * top.c (quit_force): Update.
9520 * infrun.c (handle_no_resumed): Update.
9521 * top.h (all_uis): New function.
9522 (ALL_UIS): Remove.
9523
59f7bd8d
SM
95242020-05-16 Simon Marchi <simon.marchi@efficios.com>
9525
9526 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9527
9bf058f0
PA
95282020-05-16 Pedro Alves <palves@redhat.com>
9529
9530 * ia64-linux-nat.c
9531 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9532 Declare method.
9533 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9534
8f86ae1a
SM
95352020-05-15 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9538 (sparc64_adi_info): Likewise.
9539
d6bc0792
TT
95402020-05-15 Tom Tromey <tom@tromey.com>
9541
9542 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9543 block_objfile.
9544 (lookup_objfile_from_block): Remove.
9545 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9546 (lookup_global_symbol): Use block_objfile.
9547 * symtab.h (lookup_objfile_from_block): Don't declare.
9548 * printcmd.c (clear_dangling_display_expressions): Use
9549 block_objfile.
9550 * parse.c (operator_check_standard): Use block_objfile.
9551
8c14c3a3
TT
95522020-05-15 Tom Tromey <tom@tromey.com>
9553
9554 * language.c (language_alloc_type_symbol): Set
9555 SYMBOL_SECTION.
9556 * symtab.c (initialize_objfile_symbol): Remove.
9557 (allocate_symbol): Remove.
9558 (allocate_template_symbol): Remove.
9559 * dwarf2/read.c (fixup_go_packaging): Use "new".
9560 (new_symbol): Use "new".
9561 (read_variable): Don't call initialize_objfile_symbol. Use
9562 "new".
9563 (read_func_scope): Use "new".
9564 * xcoffread.c (process_xcoff_symbol): Don't call
9565 initialize_objfile_symbol.
9566 (SYMBOL_DUP): Remove.
9567 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9568 "new".
9569 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9570 (allocate_template_symbol): Don't declare.
9571 (struct symbol): Add copy constructor. Change defaults.
9572 * jit.c (finalize_symtab): Use "new".
9573 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9574 Use "new".
9575 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9576 (common_block_end): Use "new".
9577 * mdebugread.c (parse_symbol): Use "new".
9578 (new_symbol): Likewise.
9579
5b4a1a8d
PW
95802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9581
9582 * NEWS: Mention changes to help and apropos.
9583
57b4f16e
PW
95842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9585
9586 * command.h (enum command_class): Improve comments, document
9587 that class_alias is for user-defined aliases, give the class
9588 name for each class, remove unused class_xdb.
9589 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9590 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9591 by a precise class.
9592 * infcmd.c (_initialize_infcmd): Likewise.
9593 * reverse.c (_initialize_reverse): Likewise.
9594 * stack.c (_initialize_stack): Likewise.
9595 * symfile.c (_initialize_symfile): Likewise.
9596 * tracepoint.c (_initialize_tracepoint): Likewise.
9597
7c05caf7
PW
95982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9599
9600 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9601 when their aliased command is traversed.
9602 (help_cmd): Add fput_command_names_styled call to
9603 output command name and aliases when command has an alias.
9604
3b3aaacb
PW
96052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9606
9607 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9608 * cli/cli-decode.c (help_cmd_list): Declare as static,
9609 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9610 a command together with the command.
9611 (fput_command_name_styled, fput_command_names_styled): New functions.
9612 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9613 fput_command_name_styled.
9614 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9615 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9616
7aa1b46f
PW
96172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9618
9619 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9620 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9621 * command.h (cmd_show_list): Likewise.
9622 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9623 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9624
89bcba74
PW
96252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9626
9627 * unittests/command-def-selftests.c (traverse_command_structure):
9628 Verify all commands of a list have the same prefix command and
9629 that only the top cmdlist commands have a null prefix.
9630
3f4d92eb
PW
96312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9632
9633 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9634 as prefix, not one of its aliases.
9635 (set_cmd_prefix): Remove.
9636 (do_add_cmd): Centralize the setting of the prefix of a command, when
9637 command is defined after its full chain of prefix commands.
9638 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9639 (add_setshow_cmd_full): Likewise.
9640 (update_prefix_field_of_prefixed_commands): New function.
9641 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9642 update_prefix_field_of_prefixed_commands.
9643 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9644 addresses of remote_set_cmdlist and remote_show_cmdlist given
9645 as argument, not the address of an argument.
9646 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9647 * gdb/remote.c (_initialize_remote): Likewise.
9648
0605465f
PW
96492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9650
9651 * cli/cli-cmds.c (alias_command): Check for an existing alias
9652 using lookup_cmd_composition, as valid_command_p is too strict
9653 and forbids aliases that are the prefix of an existing alias
9654 or command.
9655 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9656 command is properly recognised as a valid command.
9657
58e6ac70
PW
96582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9659
9660 * unittests/help-doc-selftests.c: Rename to
9661 unittests/command-def-selftests.c
9662 * unittests/command-def-selftests.c (help_doc_tests): Update some
9663 comments.
9664 (command_structure_tests, traverse_command_structure): New namespace
9665 and function.
9666 (command_structure_invariants_tests): New function.
9667 (_initialize_command_def_selftests) Renamed from
9668 _initialize_help_doc_selftests, register command_structure_invariants
9669 selftest.
9670
a7b9ceb8
PW
96712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9672
9673 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9674 an alias of 'show'.
9675
b2188a06
JB
96762020-05-15 Joel Brobecker <brobecker@adacore.com>
9677
9678 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9679 ada_is_fixed_point_type. Update all callers.
9680 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9681 all callers.
9682 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9683 Update all callers.
9684 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9685 print_fixed_point_type. Update all callers.
9686 * ada-valprint.c (ada_value_print_num): Replace call to
9687 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9688
a51951c2
KB
96892020-05-14 Kevin Buettner <kevinb@redhat.com>
9690
9691 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9692 processors.
9693 (cpu_supports_bts): Add CV_AMD case.
9694
29d6859f
LM
96952020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9696 Simon Marchi <simon.marchi@efficios.com>
9697
9698 * infrun.c (stop_all_threads): Collect multiple wait events at
9699 each pass.
9700
78134374
SM
97012020-05-14 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9704 type::code instead.
9705
67607e24
SM
97062020-05-14 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * gdbtypes.h (struct type) <code, set_code>: New methods.
9709 (TYPE_CODE): Use type::code. Change all call sites used to set
9710 the code to use type::set_code instead.
9711
a05575d3
TBA
97122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9713 Tom de Vries <tdevries@suse.de>
9714 Pedro Alves <palves@redhat.com>
9715
9716 PR threads/25478
9717 * infrun.c (stop_all_threads): Do NOT ignore
9718 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9719 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9720 received.
9721 (handle_no_resumed): Remove code handling a live inferior with no
9722 threads.
9723 * remote.c (has_single_non_exited_thread): New.
9724 (remote_target::update_thread_list): Do not delete a thread if is
9725 the last thread of the process.
9726 * thread.c (thread_select): Call delete_exited_threads instead of
9727 prune_threads.
9728
6ad82919
TBA
97292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9730
9731 * infrun.c (stop_all_threads): Enable/disable thread events of all
9732 targets. Move a debug message denoting the end of the function
9733 into the SCOPED_EXIT block.
9734
d890404b
TBA
97352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9736
9737 * process-stratum-target.h: Include <set>.
9738 (all_non_exited_process_targets, switch_to_target_no_thread): New
9739 function declarations.
9740 * process-stratum-target.c (all_non_exited_process_targets)
9741 (switch_to_target_no_thread): New function implementations.
9742
293b3ebc
TBA
97432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9744
9745 * infrun.c (handle_inferior_event): Extract out a piece of code
9746 into...
9747 (mark_non_executing_threads): ...this new function.
9748
7ca9b62a
TBA
97492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9750
9751 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9752 use.
9753
fc75c28b
TBA
97542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9755
9756 * regcache.c (regcache_read_pc_protected): New function
9757 implementation that returns 0 if the PC cannot read via
9758 'regcache_read_pc'.
9759 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9760 instead of 'regcache_read_pc'.
9761 (keep_going_pass_signal): Ditto.
9762
a89febbd
TT
97632020-05-13 Tom Tromey <tromey@adacore.com>
9764
9765 * ada-lang.c (align_value): Remove.
9766 (ada_template_to_fixed_record_type_1): Use align_up.
9767
f7e23710
TBA
97682020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9769
9770 * async-event.c: Update the copyright year.
9771 * async-event.h: Update the copyright year.
9772
02ff80c2
SM
97732020-05-12 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * objfiles.h (is_addr_in_objfile,
9776 shared_objfile_contains_address_p): Return bool.
9777 * objfile.c (is_addr_in_objfile,
9778 shared_objfile_contains_address_p): Return bool.
9779
4fd6c7e8
TT
97802020-05-11 Tom Tromey <tromey@adacore.com>
9781
9782 * cli/cli-cmds.c (info_command): Restore.
9783 (_initialize_cli_cmds): Use add_prefix_command for "info".
9784 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9785
5eb68a39
TT
97862020-05-11 Tom Tromey <tromey@adacore.com>
9787
9788 * ada-lang.c (ada_value_primitive_field): Now public.
9789 * ada-lang.h (ada_value_primitive_field): Declare.
9790 * ada-valprint.c (print_field_values): Use
9791 ada_value_primitive_field for wrapper fields.
9792
7666722f
TV
97932020-05-11 Tom de Vries <tdevries@suse.de>
9794
9795 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9796 MODULE_DOMAIN.
9797
3ee6bb11
TV
97982020-05-11 Tom de Vries <tdevries@suse.de>
9799
9800 PR symtab/25941
9801 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9802 with length 0, if not gdb-produced.
9803 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9804
43434996
TV
98052020-05-09 Tom de Vries <tdevries@suse.de>
9806
9807 PR gdb/25955
9808 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9809 calculation.
9810
2f78cffc
TT
98112020-05-09 Tom Tromey <tom@tromey.com>
9812
9813 * top.c (server_command): Now bool.
9814 * top.h (server_command): Now bool.
9815
4f7bc5ed
TT
98162020-05-08 Tom Tromey <tromey@adacore.com>
9817
9818 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9819 already being processed.
9820
8be4b118
TT
98212020-05-08 Tom Tromey <tom@tromey.com>
9822
9823 * printcmd.c (struct display) <next>: Remove.
9824 <display>: New constructor.
9825 <exp_string>: Now a std::string.
9826 <enabled_p>: Now a bool.
9827 (display_number): Move definition earlier.
9828 (displays): Rename from display_chain. Now a std::vector.
9829 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9830 (display_command): Update.
9831 (do_one_display, disable_display)
9832 (enable_disable_display_command, do_enable_disable_display):
9833 Update.
9834 (free_display): Remove.
9835 (clear_displays): Rewrite.
9836 (delete_display): Update.
9837 (map_display_numbers): Use function_view. Remove "data"
9838 parameter. Update.
9839 (do_delete_display): Remove.
9840 (undisplay_command): Update.
9841 (do_one_display, do_displays, disable_display)
9842 (info_display_command): Update.
9843 (do_enable_disable_display): Remove.
9844 (enable_disable_display_command)
9845 (clear_dangling_display_expressions): Update.
9846
94c93c35
TT
98472020-05-08 Tom Tromey <tom@tromey.com>
9848
9849 * symtab.c (set_symbol_cache_size)
9850 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9851 (maintenance_print_symbol_cache_statistics): Update.
9852 * symmisc.c (print_symbol_bcache_statistics)
9853 (print_objfile_statistics, maintenance_print_objfiles)
9854 (maintenance_info_symtabs, maintenance_check_symtabs)
9855 (maintenance_expand_symtabs, maintenance_info_line_tables):
9856 Update.
9857 * symfile-debug.c (set_debug_symfile): Update.
9858 * source.c (forget_cached_source_info): Update.
9859 * python/python.c (gdbpy_progspaces): Update.
9860 * psymtab.c (maintenance_info_psymtabs): Update.
9861 * probe.c (parse_probes): Update.
9862 * linespec.c (iterate_over_all_matching_symtabs)
9863 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9864 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9865 * exec.c (exec_target::close): Update.
9866 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9867 * breakpoint.c (print_one_breakpoint_location)
9868 (create_longjmp_master_breakpoint)
9869 (create_std_terminate_master_breakpoint): Update.
9870 * progspace.c (program_spaces): Now a std::vector.
9871 (maybe_new_address_space): Update.
9872 (add_program_space): Remove.
9873 (program_space::program_space): Update.
9874 (remove_program_space): Update.
9875 (number_of_program_spaces): Remove.
9876 (print_program_space, update_address_spaces): Update.
9877 * progspace.h (program_spaces): Change type.
9878 (ALL_PSPACES): Remove.
9879 (number_of_program_spaces): Don't declare.
9880 (struct program_space) <next>: Remove.
9881
a1fd1ac9
TT
98822020-05-08 Tom Tromey <tom@tromey.com>
9883
9884 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9885 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9886 (enable_break): Update.
9887 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9888 (frv_fdpic_find_canonical_descriptor): Update.
9889 (frv_fetch_objfile_link_map): Update.
9890 * progspace.c (program_space::free_all_objfiles): Update.
9891 (program_space::solibs): New method.
9892 * progspace.h (struct program_space) <solibs>: New method.
9893 * solist.h (master_so_list): Don't declare.
9894 (ALL_SO_LIBS): Remove.
9895 * solib.h (so_list_head): Remove.
9896 (update_solib_list): Update comment.
9897 * solib.c (master_so_list): Remove.
9898 (solib_used, update_solib_list, solib_add)
9899 (info_sharedlibrary_command, clear_solib)
9900 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9901
38eae084
TT
99022020-05-08 Tom Tromey <tom@tromey.com>
9903
9904 * extension.c (extension_languages): Now a std::array.
9905 (ALL_EXTENSION_LANGUAGES): Remove.
9906 (get_ext_lang_defn, get_ext_lang_of_file)
9907 (eval_ext_lang_from_control_command): Update.
9908 (finish_ext_lang_initialization)
9909 (auto_load_ext_lang_scripts_for_objfile)
9910 (ext_lang_type_printers::ext_lang_type_printers)
9911 (apply_ext_lang_type_printers)
9912 (ext_lang_type_printers::~ext_lang_type_printers)
9913 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9914 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9915 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9916 (get_matching_xmethod_workers, ext_lang_colorize)
9917 (ext_lang_before_prompt): Update.
9918 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9919
596dc4ad
TT
99202020-05-08 Tom Tromey <tom@tromey.com>
9921
9922 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9923 overload.
9924 <swap_string, m_string>: Remove.
9925 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9926 Update.
9927 * stabsread.c (define_symbol, read_type): Update.
9928 * linespec.c (find_linespec_symbols): Update.
9929 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9930 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9931 * dbxread.c (read_dbx_symtab): Update.
9932 * cp-support.h (cp_canonicalize_string_full)
9933 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9934 Return unique_xmalloc_ptr.
9935 * cp-support.c (inspect_type): Update.
9936 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9937 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9938 Likewise.
9939 * c-typeprint.c (print_name_maybe_canonical): Update.
9940 * break-catch-throw.c (check_status_exception_catchpoint):
9941 Update.
9942
bf4cb9be
TV
99432020-05-08 Tom de Vries <tdevries@suse.de>
9944
9945 * infrun.c (follow_fork): Copy current_line and current_symtab to
9946 child thread.
9947
a1b68f28
SM
99482020-05-07 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * async-event.c (struct async_signal_handler, struct
9951 async_event_handler): Reformat, remove typedef.
9952
98d48915
SM
99532020-05-07 Simon Marchi <simon.marchi@efficios.com>
9954
9955 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9956 access thistype->main_type->dyn_prop_list directly.
9957
7aa91313
SM
99582020-05-07 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9961 (remove_dyn_prop): Remove. Update all users to use
9962 type::remove_dyn_prop.
9963 * gdbtypes.c (remove_dyn_prop): Rename to...
9964 (type::remove_dyn_prop): ... this.
9965
5c54719c
SM
99662020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9967
9968 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9969 (add_dyn_prop): Remove. Update all users to use
9970 type::add_dyn_prop.
9971 * gdbtypes.c (add_dyn_prop): Rename to...
9972 (type::add_dyn_prop): ... this.
9973
24e99c6c
SM
99742020-05-07 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9977 (get_dyn_prop): Remove. Update all users to use
9978 type::dyn_prop.
9979 * gdbtypes.c (get_dyn_prop): Rename to...
9980 (type::dyn_prop): ... this.
9981
0d4bf016
SM
99822020-05-06 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9985
ac4a4f1c
SM
99862020-05-06 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9989 instruction, skip it if it's there.
9990
a3bbacc1
SM
99912020-05-05 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9994
c3236f84
SM
99952020-05-04 Simon Marchi <simon.marchi@efficios.com>
9996
9997 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9998 * gdbtypes.c (recursive_dump_type): Remove use of
9999 TYPE_INCOMPLETE.
10000
3b6acaee
TT
100012020-05-03 Tom Tromey <tom@tromey.com>
10002
10003 * breakpoint.c (catch_command, tcatch_command): Remove.
10004 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10005 add_show_prefix_cmd.
10006 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10007 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10008 Remove.
10009 (add_internal_problem_command): Use add_basic_prefix_cmd,
10010 add_show_prefix_cmd.
10011 * mips-tdep.c (set_mipsfpu_command): Remove.
10012 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10013 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10014 (_initialize_index_cache): Use add_basic_prefix_cmd.
10015 * memattr.c (dummy_cmd): Remove.
10016 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10017 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10018 (_initialize_tui_win): Use add_basic_prefix_cmd,
10019 add_show_prefix_cmd.
10020 * cli/cli-logging.c (set_logging_command): Remove.
10021 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10022 add_show_prefix_cmd.
10023 (show_logging_command): Remove.
10024 * target.c (target_command): Remove.
10025 (add_target): Use add_basic_prefix_cmd.
10026
a51119cd
HD
100272020-05-02 Hannes Domani <ssbssa@yahoo.de>
10028
10029 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10030
652fc23a 100312020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10032
652fc23a
PW
10033 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10034 info_command.
10035
117539e6
KR
100362020-04-30 Kamil Rytarowski <n54@gmx.com>
10037
10038 * nbsd-nat.c (nbsd_enable_proc_events)
10039 (nbsd_nat_target::post_startup_inferior): Add.
10040 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10041 (nbsd_nat_target::update_thread_list): Rewrite.
10042 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10043 "PTRACE_LWP_CREATE".
10044 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10045
102e38eb 100462020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10047
102e38eb
PW
10048 * stack.c (_initialize_stack): Remove duplicated creation
10049 of "frame" command and "f" alias.
10050
ee9d1e5f
HD
100512020-04-30 Hannes Domani <ssbssa@yahoo.de>
10052
10053 PR gdb/18706
10054 * gdbtypes.c (check_typedef): Calculate size of array of
10055 stubbed type.
10056
627c7fb8
HD
100572020-04-30 Hannes Domani <ssbssa@yahoo.de>
10058
10059 PR gdb/15559
10060 * i386-tdep.c (i386_push_dummy_call): Call
10061 i386_thiscall_push_dummy_call.
10062 (i386_thiscall_push_dummy_call): New function.
10063 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10064 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10065 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10066
ffc2844e
SM
100672020-04-29 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * gdbarch.sh (do_read): Add shellcheck disable directive for
10070 warning SC2162.
10071
1207375d
SM
100722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10075 "referenced but not assigned" warning.
10076
9fdb2916
SM
100772020-04-29 Simon Marchi <simon.marchi@efficios.com>
10078
10079 * gdbarch.sh: Remove code that sets fallbackdefault.
10080
759cea5e
SM
100812020-04-29 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * gdbarch.sh: Use shell operators && and || instead of
10084 -a and -o.
10085
cb02ab24
SM
100862020-04-29 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * gdbarch.sh: Use $(...) instead of `...`.
10089
a6fc5ffc
SM
100902020-04-29 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * gdbarch.sh: Use double quotes around variables.
10093
8d113d13
SM
100942020-04-29 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * gdbarch.sh: Use %s with printf, instead of variables in the
10097 format string.
10098
ed6acedd
TT
100992020-04-29 Tom Tromey <tromey@adacore.com>
10100
10101 PR ada/25875:
10102 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10103 type fields here.
10104 (read_enumeration_type): Call
10105 update_enumeration_type_from_children later. Update comments.
10106 (process_enumeration_scope): Don't create type fields.
10107
b68b1b58
KR
101082020-04-29 Kamil Rytarowski <n54@gmx.com>
10109
10110 * nbsd-tdep.c: Include "xml-syscall.h".
10111 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10112
f94b2e03
KR
101132020-04-29 Kamil Rytarowski <n54@gmx.com>
10114
10115 * nbsd-nat.c: Include "sys/wait.h".
10116 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10117 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10118 (nbsd_nat_target::remove_exec_catchpoint)
10119 (nbsd_nat_target::set_syscall_catchpoint): Add.
10120 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10121 (nbsd_nat_target::insert_exec_catchpoint)
10122 (nbsd_nat_target::remove_exec_catchpoint)
10123 (nbsd_nat_target::set_syscall_catchpoint): Add.
10124 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10125 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10126 `nbsd_get_syscall_number'.
10127
fc49bc72
TT
101282020-04-29 Tom Tromey <tom@tromey.com>
10129
10130 * stack.c (print_block_frame_labels): Remove.
10131
d642b692
HD
101322020-04-29 Hannes Domani <ssbssa@yahoo.de>
10133
10134 PR gdb/17320
10135 * ada-valprint.c (val_print_packed_array_elements): Move array
10136 end bracket to new line.
10137 (ada_val_print_string): Remove extra spaces before first array
10138 element.
10139 * c-valprint.c (c_value_print_array): Likewise.
10140 * m2-valprint.c (m2_print_array_contents): Likewise.
10141 (m2_value_print_inner): Likewise.
10142 * p-valprint.c (pascal_value_print_inner): Likewise.
10143 * valprint.c (generic_val_print_array): Likewise.
10144 (value_print_array_elements): Move first array element and array
10145 end bracket to new line.
10146
ea90f227
TV
101472020-04-29 Tom de Vries <tdevries@suse.de>
10148
10149 PR symtab/25889
10150 * linespec.c (find_method): Fix ix calculation.
10151
4498ef4f
KR
101522020-04-28 Kamil Rytarowski <n54@gmx.com>
10153
10154 * syscalls/update-netbsd.sh: New file.
10155 * syscalls/netbsd.xml: Regenerate.
10156 * data-directory/Makefile.in: Register `netbsd.xml' in
10157 `SYSCALLS_FILES'.
10158
a55e30b5
SM
101592020-04-28 Simon Marchi <simon.marchi@efficios.com>
10160
10161 * syscalls/update-freebsd.sh: Add double quotes.
10162
2b2fbab8
TT
101632020-04-28 Tom Tromey <tom@tromey.com>
10164
10165 * NEWS: Update.
10166 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10167 (cmdpy_init): Allow class_tui.
10168
a65189c9
TV
101692020-04-28 Mark Williams <mark@myosotissp.com>
10170
10171 PR gdb/24480
10172 * dwarf2read.c: Add missing assingments to list_in_scope when
10173 start_symtab was already called.
10174
1b95cdb7
SM
101752020-04-28 Simon Marchi <simon.marchi@efficios.com>
10176
10177 PR gdb/25881
10178 * dwarf2/read.c (offset_map_type): Use
10179 gdb:hash_enum<sect_offset> as hash function.
10180
15cd93d0
TV
101812020-04-28 Tom de Vries <tdevries@suse.de>
10182
10183 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10184 with DW_AT_signature.
10185
1eb39914
SM
101862020-04-27 Simon Marchi <simon.marchi@efficios.com>
10187
10188 * configure.ac: Remove check for fs_base/gs_base in
10189 user_regs_struct.
10190 * configure: Re-generate.
10191 * config.in: Re-generate.
10192 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10193 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10194 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10195
991a3e2e
LM
101962020-04-27 Luis Machado <luis.machado@linaro.org>
10197
10198 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10199 problematic inline frame unwinding situation.
10200 * frame.c (frame_id_computed_p): New function.
10201 * frame.h (frame_id_computed_p): New prototype.
10202
361ba0e8
TT
102032020-04-26 Tom Tromey <tom@tromey.com>
10204
10205 * command.h (enum command_class) <class_pseudo>: Remove.
10206
bc3609fd
PW
102072020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10208
10209 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10210 and whitespace.
10211
b9771db7
KR
102122020-04-25 Kamil Rytarowski <n54@gmx.com>
10213
ec16513e
SM
10214 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10215 `PT_GET_PROCESS_STATE' block.
b9771db7 10216
7151c1af
TT
102172020-04-24 Tom Tromey <tom@tromey.com>
10218
10219 * symtab.h (symbol_get_demangled_name): Don't declare.
10220 * symtab.c (symbol_get_demangled_name): Remove.
10221 (general_symbol_info::natural_name)
10222 (general_symbol_info::demangled_name): Update.
10223
906bb4c5
TT
102242020-04-24 Tom Tromey <tom@tromey.com>
10225
10226 PR rust/25025:
10227 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10228
bcfe6157
TT
102292020-04-24 Tom Tromey <tom@tromey.com>
10230
10231 PR symtab/12707:
10232 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10233 exists.
10234 (new_symbol): Likewise.
10235 * compile/compile-object-load.c (get_out_value_type): Use
10236 symbol_matches_search_name.
10237
f049a313
TT
102382020-04-24 Tom Tromey <tom@tromey.com>
10239
10240 * dwarf2/read.c (add_partial_symbol): Do not call
10241 compute_and_set_names.
10242
76e288d1
TT
102432020-04-24 Tom Tromey <tom@tromey.com>
10244
10245 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10246 overload.
10247
2467f4f6
TT
102482020-04-24 Tom Tromey <tom@tromey.com>
10249
10250 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10251 (add_psymbol_to_list): New overload. Make old overload call new
10252 one.
10253 * psympriv.h (add_psymbol_to_list): New overload.
10254
e61108c9
TT
102552020-04-24 Tom Tromey <tom@tromey.com>
10256
10257 * dwarf2/read.c (partial_die_info::read) <case
10258 DW_AT_linkage_name>: Use value_as_string.
10259 (dwarf2_string_attr): Use value_as_string.
10260 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10261 method.
10262 * dwarf2/attribute.c (attribute::value_as_string): New method.
10263
8c87a452
TT
102642020-04-24 Tom Tromey <tom@tromey.com>
10265
10266 * symtab.c (general_symbol_info::natural_name)
10267 (general_symbol_info::demangled_name): Check for language_rust.
10268
787de330
TT
102692020-04-24 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10272 (dwarf2_physname): ... from here.
10273 (partial_die_info::read): Add Rust "{" hack.
10274
ff985671
TT
102752020-04-24 Tom Tromey <tom@tromey.com>
10276
10277 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10278 method.
10279 (symbol_set_demangled_name): Don't declare.
10280 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10281 symbol_set_demangled_name.
10282 (general_symbol_info::set_language)
10283 (general_symbol_info::compute_and_set_names): Update.
10284 * minsyms.c (minimal_symbol_reader::install): Update.
10285 * dwarf2/read.c (new_symbol): Update.
10286
1acda803
TT
102872020-04-24 Tom Tromey <tromey@adacore.com>
10288
10289 PR python/23662:
10290 * python/py-type.c (convert_field): Handle
10291 FIELD_LOC_KIND_DWARF_BLOCK.
10292 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10293 (typy_get_dynamic): Nw function.
10294 (type_object_getset): Add "dynamic".
10295 * NEWS: Add entry.
10296
d656f129
TT
102972020-04-24 Tom Tromey <tromey@adacore.com>
10298
10299 * ada-typeprint.c (print_choices, print_variant_part)
10300 (print_record_field_types_dynamic): New functions.
10301 (print_record_field_types): Use print_record_field_types_dynamic.
10302
7d79de9a
TT
103032020-04-24 Tom Tromey <tromey@adacore.com>
10304
10305 * dwarf2/read.c (handle_data_member_location): New overload.
10306 (dwarf2_add_field): Use it.
10307 (decode_locdesc): Add "computed" parameter. Update comment.
10308 * gdbtypes.c (is_dynamic_type_internal): Also look for
10309 FIELD_LOC_KIND_DWARF_BLOCK.
10310 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10311 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10312 virtual base classes.
10313 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10314 FIELD_LOC_KIND_DWARF_BLOCK.
10315
f8e89861
TT
103162020-04-24 Tom Tromey <tromey@adacore.com>
10317
10318 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10319 * gdbtypes.c (is_dynamic_type_internal): Check
10320 TYPE_HAS_DYNAMIC_LENGTH.
10321 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10322 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10323 New macros.
10324 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10325 constant.
10326
9c6a1327
TT
103272020-04-24 Tom Tromey <tromey@adacore.com>
10328
10329 * dwarf2/read.c (struct variant_field): Rewrite.
10330 (struct variant_part_builder): New.
10331 (struct nextfield): Remove "variant" field. Add "offset".
10332 (struct field_info): Add "current_variant_part" and
10333 "variant_parts".
10334 (alloc_discriminant_info): Remove.
10335 (alloc_rust_variant): New function.
10336 (quirk_rust_enum): Update.
10337 (dwarf2_add_field): Set "offset" member. Don't handle
10338 DW_TAG_variant_part.
10339 (offset_map_type): New typedef.
10340 (convert_variant_range, create_one_variant)
10341 (create_one_variant_part, create_variant_parts)
10342 (add_variant_property): New functions.
10343 (dwarf2_attach_fields_to_type): Call add_variant_property.
10344 (read_structure_type): Don't handle DW_TAG_variant_part.
10345 (handle_variant_part, handle_variant): New functions.
10346 (handle_struct_member_die): Use them.
10347 (process_structure_scope): Don't handle variant parts.
10348 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10349 (struct discriminant_info): Remove.
10350 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10351 (struct main_type) <flag_discriminated_union>: Remove.
10352 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10353 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10354 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10355 Update.
10356 * valops.c (value_union_variant): Remove.
10357 * value.h (value_union_variant): Don't declare.
10358
b249d2c2
TT
103592020-04-24 Tom Tromey <tromey@adacore.com>
10360
10361 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10362 (ada_value_primitive_packed_val): Update.
10363 * ada-valprint.c (ada_value_print_1): Update.
10364 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10365 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10366 just an address. Use evaluate_for_locexpr_baton.
10367 (dwarf2_evaluate_property): Update.
10368 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10369 array_view.
10370 * findvar.c (default_read_var_value): Update.
10371 * gdbtypes.c (compute_variant_fields_inner)
10372 (resolve_dynamic_type_internal): Update.
10373 (resolve_dynamic_type): Change type of valaddr parameter.
10374 * gdbtypes.h (resolve_dynamic_type): Update.
10375 * valarith.c (value_subscripted_rvalue): Update.
10376 * value.c (value_from_contents_and_address): Update.
10377
61122aa9
TT
103782020-04-24 Tom Tromey <tromey@adacore.com>
10379
10380 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10381 "push_initial_value" parameter.
10382 (dwarf2_evaluate_property): Likewise.
10383 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10384
ef83a141
TT
103852020-04-24 Tom Tromey <tromey@adacore.com>
10386
10387 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10388 (variant::matches, compute_variant_fields_recurse)
10389 (compute_variant_fields_inner, compute_variant_fields): New
10390 functions.
10391 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10392 Use resolved_type after type is made.
10393 (operator==): Add new cases.
10394 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10395 (struct discriminant_range, struct variant, struct variant_part):
10396 New.
10397 (union dynamic_prop_data) <variant_parts, original_type>: New
10398 members.
10399 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10400 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10401 constants.
10402 * value.c (unpack_bits_as_long): Now public.
10403 * value.h (unpack_bits_as_long): Declare.
10404
675127ec
TT
104052020-04-24 Tom Tromey <tromey@adacore.com>
10406
10407 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10408 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10409
9852ceef
HD
104102020-04-24 Hannes Domani <ssbssa@yahoo.de>
10411
10412 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10413
7632c6ce
KR
104142020-04-24 Kamil Rytarowski <n54@gmx.com>
10415
10416 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10417 (remove_fork_catchpoint, post_startup_inferior)
10418 (post_attach): Move...
10419 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10420 (remove_fork_catchpoint, post_startup_inferior)
10421 (post_attach): ...here.
10422 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10423 (remove_fork_catchpoint, post_startup_inferior)
10424 (post_attach): Move...
10425 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10426 (remove_fork_catchpoint, post_startup_inferior)
10427 (post_attach): ...here.
10428
7be2bb4f
TT
104292020-04-24 Tom Tromey <tromey@adacore.com>
10430
10431 * nat/windows-nat.h (struct windows_thread_info)
10432 <pc_adjusted>: New member.
10433 * windows-nat.c (windows_fetch_one_register): Check
10434 pc_adjusted.
10435 (windows_nat_target::get_windows_debug_event)
10436 (windows_nat_target::wait): Set pc_adjusted.
10437
f80cb3b4
TV
104382020-04-24 Tom de Vries <tdevries@suse.de>
10439
10440 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10441 Run gdb-add-index inside temp dir.
10442
29514b87
TT
104432020-04-23 Tom Tromey <tromey@adacore.com>
10444
10445 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10446 in loop.
10447
5939967b
LM
104482020-04-23 Luis Machado <luis.machado@linaro.org>
10449
10450 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10451 get_frame_register instead of gdbarch_unwind_pc.
10452
70bc38f5
TV
104532020-04-23 Tom de Vries <tdevries@suse.de>
10454
10455 * symtab.c (lookup_global_symbol): Prefer def over decl.
10456
de82891c
TV
104572020-04-23 Tom de Vries <tdevries@suse.de>
10458
10459 PR symtab/25807
10460 * block.c (best_symbol, better_symbol): Promote to external.
10461 * block.h (best_symbol, better_symbol): Declare.
10462 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10463 decl.
10464
ecc6c606
TT
104652020-04-23 Tom Tromey <tromey@adacore.com>
10466
10467 PR ada/25837:
10468 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10469 "const char *", not a "const std::string &".
10470 <name_and_matcher::operator==>: Update.
10471 * unittests/lookup_name_info-selftests.c: Change type of
10472 "result".
10473
740480b8
TT
104742020-04-23 Tom Tromey <tom@tromey.com>
10475
10476 * inferior.h (iterate_over_inferiors): Don't declare.
10477 * inferior.c (iterate_over_inferiors): Remove.
10478 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10479 Remove.
10480 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10481 use iterate_over_inferiors.
10482 (darwin_resume_inferior_it)
10483 (struct resume_inferior_threads_param)
10484 (darwin_resume_inferior_threads_it): Remove.
10485 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10486
ae3ab1f0
TV
104872020-04-23 Tom de Vries <tdevries@suse.de>
10488
10489 * blockframe.c (find_pc_partial_function): Use
10490 find_pc_sect_compunit_symtab rather than
10491 objfile->sf->qf->find_pc_sect_compunit_symtab.
10492
317d2668
TV
104932020-04-22 Tom de Vries <tdevries@suse.de>
10494
10495 PR symtab/25764
10496 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10497 in psymtabs.
10498
eea9e357
TV
104992020-04-22 Tom de Vries <tdevries@suse.de>
10500
10501 PR symtab/25801
10502 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10503 symtabs.
10504
3d5afab3
TV
105052020-04-22 Tom de Vries <tdevries@suse.de>
10506
10507 PR symtab/25700
10508 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10509 CU if already created.
10510
d43b7a2d
TBA
105112020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10512
10513 * infrun.c (displaced_step_fixup): Switch to the event_thread
10514 before calling displaced_step_restore, not after.
10515
d89edf9b
MM
105162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10517
10518 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10519 its inferior is not recorded by us.
10520 (record_btrace_target_open): Replace call to
10521 all_non_exited_threads () with call to current_inferior
10522 ()->non_exited_threads ().
10523 (record_btrace_target::stop_recording): Likewise.
10524 (record_btrace_target::close): Likewise.
10525 (record_btrace_target::wait): Likewise.
10526 (record_btrace_target::record_stop_replaying): Likewise.
10527
5897fd49
MM
105282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10529
10530 * btrace.c (btrace_enable): Throw an error on double enables and
10531 when enabling recording fails.
10532 (btrace_disable): Throw an error if the thread is not recorded.
10533
1a476b6d
MM
105342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10535
10536 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10537 request if we do not have a thread_info.
10538
4778a5f8
TV
105392020-04-21 Tom de Vries <tdevries@suse.de>
10540
10541 PR gdb/25471
10542 * thread.c
10543 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10544 exception in get_frame_id.
10545
0fa7617d
TT
105462020-04-20 Tom Tromey <tromey@adacore.com>
10547
10548 * python/python.c (struct gdbpy_event): Mark move constructor as
10549 noexcept.
10550 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10551 constructor as noexcept.
10552 * completer.h (struct completion_result): Mark move constructor as
10553 noexcept.
10554 * completer.c (completion_result::completion_result): Use
10555 initialization style. Don't call reset_match_list.
10556
ad23bda0
MS
105572020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10558
10559 * MAINTAINERS (Write After Approval): Add myself.
10560
45e1f031
TT
105612020-04-18 Tom Tromey <tom@tromey.com>
10562
10563 * windows-tdep.c (init_w32_command_list)
10564 (w32_prefix_command_valid): Restore.
10565 (_initialize_windows_tdep): Call init_w32_command_list.
10566
08feed99
TT
105672020-04-18 Tom Tromey <tom@tromey.com>
10568
10569 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10570 * value.c (value_fn_field): Update.
10571 * valops.c (find_function_in_inferior)
10572 (value_allocate_space_in_inferior): Update.
10573 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10574 Update.
10575 * tui/tui-source.c (tui_source_window::set_contents): Update.
10576 * symtab.c (lookup_global_or_static_symbol)
10577 (find_function_start_sal_1, skip_prologue_sal)
10578 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10579 * symmisc.c (dump_msymbols, dump_symtab_1)
10580 (maintenance_print_one_line_table): Update.
10581 * symfile.c (init_entry_point_info, section_is_mapped)
10582 (list_overlays_command, simple_read_overlay_table)
10583 (simple_overlay_update_1): Update.
10584 * stap-probe.c (handle_stap_probe): Update.
10585 * stabsread.c (dbx_init_float_type, define_symbol)
10586 (read_one_struct_field, read_enum_type, read_range_type): Update.
10587 * source.c (info_line_command): Update.
10588 * python/python.c (gdbpy_source_objfile_script)
10589 (gdbpy_execute_objfile_script): Update.
10590 * python/py-type.c (save_objfile_types): Update.
10591 * python/py-objfile.c (py_free_objfile): Update.
10592 * python/py-inferior.c (python_new_objfile): Update.
10593 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10594 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10595 (maintenance_check_psymtabs): Update.
10596 * printcmd.c (info_address_command): Update.
10597 * objfiles.h (struct objfile) <arch>: New method, from
10598 get_objfile_arch.
10599 (get_objfile_arch): Don't declare.
10600 * objfiles.c (get_objfile_arch): Remove.
10601 (filter_overlapping_sections): Update.
10602 * minsyms.c (msymbol_is_function): Update.
10603 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10604 (output_nondebug_symbol): Update.
10605 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10606 (mdebug_expand_psymtab): Update.
10607 * machoread.c (macho_add_oso_symfile): Update.
10608 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10609 Update.
10610 * linux-fork.c (checkpoint_command): Update.
10611 * linespec.c (convert_linespec_to_sals): Update.
10612 * jit.c (finalize_symtab): Update.
10613 * infrun.c (insert_exception_resume_from_probe): Update.
10614 * ia64-tdep.c (ia64_find_unwind_table): Update.
10615 * hppa-tdep.c (internalize_unwinds): Update.
10616 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10617 Update.
10618 * gcore.c (call_target_sbrk): Update.
10619 * elfread.c (record_minimal_symbol, elf_symtab_read)
10620 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10621 (elf_gnu_ifunc_resolve_by_got): Update.
10622 * dwarf2/read.c (create_addrmap_from_index)
10623 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10624 (read_debug_names_from_section)
10625 (process_psymtab_comp_unit_reader, add_partial_symbol)
10626 (add_partial_subprogram, process_full_comp_unit)
10627 (read_file_scope, read_func_scope, read_lexical_block_scope)
10628 (read_call_site_scope, dwarf2_ranges_read)
10629 (dwarf2_record_block_ranges, dwarf2_add_field)
10630 (mark_common_block_symbol_computed, read_tag_pointer_type)
10631 (read_tag_string_type, dwarf2_init_float_type)
10632 (dwarf2_init_complex_target_type, read_base_type)
10633 (partial_die_info::read, partial_die_info::read)
10634 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10635 (dwarf2_fetch_die_loc_sect_off): Update.
10636 * dwarf2/loc.c (dwarf2_find_location_expression)
10637 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10638 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10639 (dwarf2_loc_desc_get_symbol_read_needs)
10640 (locexpr_describe_location_piece, locexpr_describe_location_1)
10641 (loclist_describe_location): Update.
10642 * dwarf2/index-write.c (write_debug_names): Update.
10643 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10644 * dtrace-probe.c (dtrace_process_dof): Update.
10645 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10646 (process_one_symbol): Update.
10647 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10648 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10649 (coff_read_enum_type): Update.
10650 * cli/cli-cmds.c (edit_command, list_command): Update.
10651 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10652 * breakpoint.c (create_overlay_event_breakpoint)
10653 (create_longjmp_master_breakpoint)
10654 (create_std_terminate_master_breakpoint)
10655 (create_exception_master_breakpoint, get_sal_arch): Update.
10656 * block.c (block_gdbarch): Update.
10657 * annotate.c (annotate_source_line): Update.
10658
0743fc83
TT
106592020-04-17 Tom Tromey <tromey@adacore.com>
10660
10661 * auto-load.c (show_auto_load_cmd): Remove.
10662 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10663 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10664 (maintenance_print_arc_command): Remove.
10665 * tui/tui-win.c (tui_command): Remove.
10666 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10667 * tui/tui-layout.c (tui_layout_command): Remove.
10668 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10669 * python/python.c (user_set_python, user_show_python): Remove.
10670 (_initialize_python): Use add_basic_prefix_cmd,
10671 add_show_prefix_cmd.
10672 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10673 (install_gdb_commands): Use add_basic_prefix_cmd,
10674 add_show_prefix_cmd.
10675 (info_guile_command): Remove.
10676 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10677 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10678 add_show_prefix_cmd.
10679 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10680 Remove do_set and do_show parameters.
10681 * cli/cli-style.c (set_style, show_style): Remove.
10682 (_initialize_cli_style): Use add_basic_prefix_cmd,
10683 add_show_prefix_cmd.
10684 (cli_style_option::add_setshow_commands): Remove do_set and
10685 do_show parameters.
10686 (cli_style_option::add_setshow_commands): Use
10687 add_basic_prefix_cmd, add_show_prefix_cmd.
10688 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10689 (set_style_name): Remove.
10690 * cli/cli-dump.c (dump_command, append_command): Remove.
10691 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10692 (tekhex_dump_command, binary_dump_command)
10693 (binary_append_command): Remove.
10694 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10695 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10696 (init_w32_command_list): Remove; move into ...
10697 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10698 * valprint.c (set_print, show_print, set_print_raw)
10699 (show_print_raw): Remove.
10700 (_initialize_valprint): Use add_basic_prefix_cmd,
10701 add_show_prefix_cmd.
10702 * typeprint.c (set_print_type, show_print_type): Remove.
10703 (_initialize_typeprint): Use add_basic_prefix_cmd,
10704 add_show_prefix_cmd.
10705 * record.c (set_record_command, show_record_command): Remove.
10706 (_initialize_record): Use add_basic_prefix_cmd,
10707 add_show_prefix_cmd.
10708 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10709 add_show_prefix_cmd.
10710 (info_command, show_command, set_debug, show_debug): Remove.
10711 * top.h (set_history, show_history): Don't declare.
10712 * top.c (set_history, show_history): Remove.
10713 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10714 (unset_tdesc_cmd): Remove.
10715 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10716 add_show_prefix_cmd.
10717 * symtab.c (info_module_command): Remove.
10718 (_initialize_symtab): Use add_basic_prefix_cmd.
10719 * symfile.c (overlay_command): Remove.
10720 (_initialize_symfile): Use add_basic_prefix_cmd.
10721 * sparc64-tdep.c (info_adi_command): Remove.
10722 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10723 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10724 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10725 add_show_prefix_cmd.
10726 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10727 (_initialize_serial): Use add_basic_prefix_cmd,
10728 add_show_prefix_cmd.
10729 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10730 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10731 add_show_prefix_cmd.
10732 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10733 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10734 add_show_prefix_cmd.
10735 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10736 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10737 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10738 add_show_prefix_cmd.
10739 * remote.c (remote_command, set_remote_cmd): Remove.
10740 (_initialize_remote): Use add_basic_prefix_cmd.
10741 * record-full.c (set_record_full_command)
10742 (show_record_full_command): Remove.
10743 (_initialize_record_full): Use add_basic_prefix_cmd,
10744 add_show_prefix_cmd.
10745 * record-btrace.c (cmd_set_record_btrace)
10746 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10747 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10748 (cmd_show_record_btrace_pt): Remove.
10749 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10750 add_show_prefix_cmd.
10751 * ravenscar-thread.c (set_ravenscar_command)
10752 (show_ravenscar_command): Remove.
10753 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10754 add_show_prefix_cmd.
10755 * mips-tdep.c (show_mips_command, set_mips_command)
10756 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10757 add_show_prefix_cmd.
10758 * maint.c (maintenance_command, maintenance_info_command)
10759 (maintenance_check_command, maintenance_print_command)
10760 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10761 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10762 add_show_prefix_cmd.
10763 (show_per_command_cmd): Remove.
10764 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10765 Remove.
10766 (maintenance_show_test_settings_cmd): Remove.
10767 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10768 add_show_prefix_cmd.
10769 * maint-test-options.c (maintenance_test_options_command):
10770 Remove.
10771 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10772 * macrocmd.c (macro_command): Remove
10773 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10774 * language.c (set_check, show_check): Remove.
10775 (_initialize_language): Use add_basic_prefix_cmd,
10776 add_show_prefix_cmd.
10777 * infcmd.c (unset_command): Remove.
10778 (_initialize_infcmd): Use add_basic_prefix_cmd.
10779 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10780 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10781 add_show_prefix_cmd.
10782 * go32-nat.c (go32_info_dos_command): Remove.
10783 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10784 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10785 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10786 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10787 (_initialize_frame): Use add_basic_prefix_cmd,
10788 add_show_prefix_cmd.
10789 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10790 (_initialize_dcache): Use add_basic_prefix_cmd,
10791 add_show_prefix_cmd.
10792 * cp-support.c (maint_cplus_command): Remove.
10793 (_initialize_cp_support): Use add_basic_prefix_cmd.
10794 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10795 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10796 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10797 add_basic_prefix_cmd, add_show_prefix_cmd.
10798 * breakpoint.c (save_command): Remove.
10799 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10800 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10801 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10802 add_show_prefix_cmd.
10803 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10804 (set_ada_command, show_ada_command): Remove.
10805 (_initialize_ada_language): Use add_basic_prefix_cmd,
10806 add_show_prefix_cmd.
10807 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10808
3557f442
KR
108092020-04-16 Kamil Rytarowski <n54@gmx.com>
10810
10811 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10812 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10813
16197208
SM
108142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10817 warning messages.
10818
00ac85d3
SM
108192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10820
10821 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10822 import table is not at beginning of .idata section.
10823
381ce63f
PA
108242020-04-16 Pedro Alves <palves@redhat.com>
10825
10826 * inferior.c (delete_inferior): Use delete operator directly
10827 instead of delete_program_space.
10828 * progspace.c (add_program_space): New, factored out from
10829 program_space::program_space.
10830 (remove_program_space): New, factored out from
10831 delete_program_space.
10832 (program_space::program_space): Remove intro comment. Rewrite.
10833 (program_space::~program_space): Remove intro comment. Call
10834 remove_program_space.
10835 (delete_program_space): Delete.
10836 * progspace.h (program_space::program_space): Make explicit. Move
10837 intro comment here, adjusted.
10838 (program_space::~program_space): Move intro comment here,
10839 adjusted.
10840 (delete_program_space): Remove.
10841
a010605f
TT
108422020-04-16 Tom Tromey <tromey@adacore.com>
10843
10844 * windows-nat.c (windows_nat::handle_access_violation): New
10845 function.
10846 * nat/windows-nat.h (handle_access_violation): Declare.
10847 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10848 windows-nat.c. Call handle_access_violation.
10849
efba5c23
TV
108502020-04-16 Tom de Vries <tdevries@suse.de>
10851
10852 PR symtab/25791
10853 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10854 CUs without psymtab.
10855
97ed802d
KB
108562020-04-16 Kevin Buettner <kevinb@redhat.com>
10857
10858 * python/python.c (do_start_initialization): Don't call
10859 PyEval_InitThreads for Python 3.9 and beyond.
10860
c7d64809
KR
108612020-04-15 Kamil Rytarowski <n54@gmx.com>
10862
10863 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10864 thread functions.
10865 (obsd_nat_target::wait): Likewise.
10866
ce127a96
TT
108672020-04-15 Tom Tromey <tromey@adacore.com>
10868
10869 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10870 (DEBUG_EXCEPT): Use debug_printf.
10871
99f1bc6a
AB
108722020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10873
10874 * completer.c (class completion_tracker::completion_hash_entry)
10875 <hash_name>: New member function.
10876 (completion_tracker::discard_completions): New callback to hash a
10877 completion_hash_entry, pass this to htab_create_alloc.
10878
a0e9b532
JT
108792016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10880
10881 * windows-nat.c (windows_make_so): Warn rather than stopping with
10882 an error if realpath() fails.
10883
06ca5dd4
KR
108842020-04-14 Kamil Rytarowski <n54@gmx.com>
10885
10886 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10887 (nbsd_nat_target::info_proc): Add do_status.
10888
194d088f
TV
108892020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10890 Tom de Vries <tdevries@suse.de>
10891
10892 PR symtab/25718
10893 * psympriv.h (struct partial_symtab::read_symtab)
10894 (struct partial_symtab::expand_psymtab)
10895 (struct partial_symtab::read_dependencies): Update comments.
10896 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10897 read_symtab for includer.
10898 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10899 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10900 (struct dwarf2_include_psymtab::m_readin): Remove.
10901 (struct dwarf2_include_psymtab::includer): New member function.
10902 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10903
c1a66c06
TV
109042020-04-14 Tom de Vries <tdevries@suse.de>
10905
10906 PR symtab/25720
10907 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10908 with NULL symbol_matcher and lookup_name.
10909 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10910 and lookup_name.
10911 * dwarf2/read.c (dw2_expand_symtabs_matching)
10912 (dw2_debug_names_expand_symtabs_matching): Same.
10913 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10914 Make lookup_name a pointer. Update comment.
10915 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10916 lookup_name being a pointer.
10917 * symfile.c (expand_symtabs_matching): Same.
10918 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10919 * linespec.c (iterate_over_all_matching_symtabs): Same.
10920
400b5eca
TT
109212020-04-13 Tom Tromey <tom@tromey.com>
10922
10923 * run-on-main-thread.c: Update include.
10924 * unittests/main-thread-selftests.c: Update include.
10925 * tui/tui-win.c: Update include.
10926 * tui/tui-io.c: Update include.
10927 * tui/tui-interp.c: Update include.
10928 * tui/tui-hooks.c: Update include.
10929 * top.h: Update include.
10930 * top.c: Update include.
10931 * ser-base.c: Update include.
10932 * remote.c: Update include.
10933 * remote-notif.c: Update include.
10934 * remote-fileio.c: Update include.
10935 * record-full.c: Update include.
10936 * record-btrace.c: Update include.
10937 * python/python.c: Update include.
10938 * posix-hdep.c: Update include.
10939 * mingw-hdep.c: Update include.
10940 * mi/mi-main.c: Update include.
10941 * mi/mi-interp.c: Update include.
10942 * main.c: Update include.
10943 * linux-nat.c: Update include.
10944 * interps.c: Update include.
10945 * infrun.c: Update include.
10946 * inf-loop.c: Update include.
10947 * event-top.c: Update include.
10948 * event-loop.c: Move to ../gdbsupport/.
10949 * event-loop.h: Move to ../gdbsupport/.
10950 * async-event.h: Update include.
10951 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10952
93b54c8e
TT
109532020-04-13 Tom Tromey <tom@tromey.com>
10954
10955 * tui/tui-win.c: Include async-event.h.
10956 * remote.c: Include async-event.h.
10957 * remote-notif.c: Include async-event.h.
10958 * record-full.c: Include async-event.h.
10959 * record-btrace.c: Include async-event.h.
10960 * infrun.c: Include async-event.h.
10961 * event-top.c: Include async-event.h.
10962 * event-loop.h: Move some declarations to async-event.h.
10963 * event-loop.c: Don't include ser-event.h or top.h. Move some
10964 code to async-event.c.
10965 * async-event.h: New file.
10966 * async-event.c: New file.
10967 * Makefile.in (COMMON_SFILES): Add async-event.c.
10968 (HFILES_NO_SRCDIR): Add async-event.h.
10969
c1cd3163
TT
109702020-04-13 Tom Tromey <tom@tromey.com>
10971
10972 * utils.c (flush_streams): New function.
10973 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10974
29f2bf4f
TT
109752020-04-13 Tom Tromey <tom@tromey.com>
10976
10977 * event-loop.c (handle_file_event): Use warning, not
10978 printf_unfiltered.
10979
98029d02
TT
109802020-04-13 Tom Tromey <tom@tromey.com>
10981
10982 * event-loop.c: Include <chrono>.
10983
06cc9596
TT
109842020-04-13 Tom Tromey <tom@tromey.com>
10985
10986 * gdb_select.h: Move to ../gdbsupport/.
10987 * event-loop.c: Update include path.
10988 * top.c: Update include path.
10989 * ser-base.c: Update include path.
10990 * ui-file.c: Update include path.
10991 * ser-tcp.c: Update include path.
10992 * guile/scm-ports.c: Update include path.
10993 * posix-hdep.c: Update include path.
10994 * ser-unix.c: Update include path.
10995 * gdb_usleep.c: Update include path.
10996 * mingw-hdep.c: Update include path.
10997 * inflow.c: Update include path.
10998 * infrun.c: Update include path.
10999 * event-top.c: Update include path.
11000
8ae8e197
TT
110012020-04-13 Tom Tromey <tom@tromey.com>
11002
11003 * configure: Rebuild.
11004 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11005
58cf28e8
TT
110062020-04-13 Tom Tromey <tom@tromey.com>
11007
11008 * event-loop.h (start_event_loop): Don't declare.
11009 * event-loop.c (start_event_loop): Move...
11010 * main.c (start_event_loop): ...here. Now static.
11011
b7f999ae
SDJ
110122020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11013
11014 * MAINTAINERS: Update my email address.
11015
1085dfd4
KR
110162020-04-12 Kamil Rytarowski <n54@gmx.com>
11017
11018 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11019 IP_ALL.
11020
49d1d1f5
KR
110212020-04-12 Kamil Rytarowski <n54@gmx.com>
11022
11023 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11024 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11025
b4848d2a
KR
110262020-04-12 Kamil Rytarowski <n54@gmx.com>
11027
11028 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11029 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11030
51c133d5
KR
110312020-04-12 Kamil Rytarowski <n54@gmx.com>
11032
11033 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11034
54b8cbd0
KR
110352020-04-11 Kamil Rytarowski <n54@gmx.com>
11036
11037 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11038 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11039 (nbsd_nat_target::info_proc): New functions.
11040 * nbsd-nat.c (kinfo_get_vmmap): New function.
11041 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11042 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11043 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11044 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11045 functions.
11046 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11047 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11048 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11049 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11050 (KINFO_VME_FLAG_GROWS_DOWN): New.
11051
cf83625d
AS
110522020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11053
11054 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11055 bit shift.
11056
0c4311ab
TT
110572020-04-10 Tom Tromey <tromey@adacore.com>
11058
11059 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11060
3e65b3e9
TT
110612020-04-10 Tom Tromey <tromey@adacore.com>
11062
11063 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11064 separate debug files.
11065
13302e95
HD
110662020-04-10 Hannes Domani <ssbssa@yahoo.de>
11067
11068 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11069 Move to...
11070 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11071 ... here.
11072 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11073 Check for STATUS_WX86_BREAKPOINT.
11074 (windows_nat_target::wait): Same.
11075
bdfc1e8a
TV
110762020-04-10 Tom de Vries <tdevries@suse.de>
11077
11078 PR cli/25808
11079 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11080
f4460aec
SM
110812020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11082
11083 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11084 (Write After Approval): Remove Tom de Vries.
11085
a25198bb
BE
110862020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11087
11088 revert partially:
11089 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11090
aac66a4c
SM
11091 * buildsym.c (record_line): Fix undefined behavior and preserve
11092 lines at eof.
a25198bb 11093
206c98a6
KR
110942020-04-09 Kamil Rytarowski <n54@gmx.com>
11095
11096 * auxv.h (svr4_auxv_parse): New.
11097 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11098 and generic_auxv_parse.
11099 (svr4_auxv_parse): Add.
11100 * obsd-tdep.c: Include "auxv.h".
11101 (obsd_auxv_parse): Remove.
11102 (obsd_init_abi): Remove comment.
11103 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11104 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11105 * nbsd-tdep.c: Include "auxv.h".
11106 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11107
71fbdbaf
TT
111082020-04-08 Tom Tromey <tromey@adacore.com>
11109
11110 * nat/windows-nat.h (last_wait_event): Don't declare.
11111 (wait_for_debug_event): Update comment.
11112 * nat/windows-nat.c (last_wait_event): Now static.
11113
2c1d95e8
TT
111142020-04-08 Tom Tromey <tromey@adacore.com>
11115
11116 * windows-nat.c (wait_for_debug_event): Move to
11117 nat/windows-nat.c.
11118 * nat/windows-nat.h (wait_for_debug_event): Declare.
11119 * nat/windows-nat.c (wait_for_debug_event): Move from
11120 windows-nat.c. No longer static.
11121
d2977bc4
TT
111222020-04-08 Tom Tromey <tromey@adacore.com>
11123
11124 * windows-nat.c (get_windows_debug_event): Use
11125 fetch_pending_stop.
11126 * nat/windows-nat.h (fetch_pending_stop): Declare.
11127 * nat/windows-nat.c (fetch_pending_stop): New function.
11128
e758e19c
TT
111292020-04-08 Tom Tromey <tromey@adacore.com>
11130
11131 * windows-nat.c (windows_continue): Use matching_pending_stop and
11132 continue_last_debug_event.
11133 * nat/windows-nat.h (matching_pending_stop)
11134 (continue_last_debug_event): Declare.
11135 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11136 (matching_pending_stop, continue_last_debug_event): New
11137 functions.
11138
8d30e395
TT
111392020-04-08 Tom Tromey <tromey@adacore.com>
11140
11141 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11142 (handle_exception_result): Move to nat/windows-nat.h.
11143 (DEBUG_EXCEPTION_SIMPLE): Remove.
11144 (windows_nat::handle_ms_vc_exception): New function.
11145 (handle_exception): Move to nat/windows-nat.c.
11146 (get_windows_debug_event): Update.
11147 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11148 nat/windows-nat.c.
11149 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11150 (handle_exception_result): Move from windows-nat.c.
11151 (handle_exception): Declare.
11152 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11153 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11154 windows-nat.c.
11155
29de418d
TT
111562020-04-08 Tom Tromey <tromey@adacore.com>
11157
11158 * windows-nat.c (exception_count, event_count): Remove.
11159 (handle_exception, get_windows_debug_event)
11160 (do_initial_windows_stuff): Update.
11161
a816ba18
TT
111622020-04-08 Tom Tromey <tromey@adacore.com>
11163
11164 * windows-nat.c (windows_nat::handle_load_dll)
11165 (windows_nat::handle_unload_dll): Rename. No longer static.
11166 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11167 Declare.
11168
a00caa12
TT
111692020-04-08 Tom Tromey <tromey@adacore.com>
11170
11171 * complaints.h (stop_whining): Declare at top-level.
11172 (complaint): Don't declare stop_whining.
11173
d41b524f
TT
111742020-04-08 Tom Tromey <tromey@adacore.com>
11175
11176 * windows-nat.c (windows_nat::handle_output_debug_string):
11177 Rename. No longer static.
11178 * nat/windows-nat.h (handle_output_debug_string): Declare.
11179
3c76026d
TT
111802020-04-08 Tom Tromey <tromey@adacore.com>
11181
11182 * windows-nat.c (current_process_handle, current_process_id)
11183 (main_thread_id, last_sig, current_event, last_wait_event)
11184 (current_windows_thread, desired_stop_thread_id, pending_stops)
11185 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11186 (display_selectors, fake_create_process)
11187 (get_windows_debug_event): Update.
11188 * nat/windows-nat.h (current_process_handle, current_process_id)
11189 (main_thread_id, last_sig, current_event, last_wait_event)
11190 (current_windows_thread, desired_stop_thread_id, pending_stops)
11191 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11192 * nat/windows-nat.c (current_process_handle, current_process_id)
11193 (main_thread_id, last_sig, current_event, last_wait_event)
11194 (current_windows_thread, desired_stop_thread_id, pending_stops)
11195 (siginfo_er): New globals. Move from windows-nat.c.
11196
9d8679cc
TT
111972020-04-08 Tom Tromey <tromey@adacore.com>
11198
11199 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11200 (handle_load_dll): Update.
11201 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11202
28688adf
TT
112032020-04-08 Tom Tromey <tromey@adacore.com>
11204
11205 * windows-nat.c (enum thread_disposition_type): Move to
11206 nat/windows-nat.h.
11207 (windows_nat::thread_rec): Rename from thread_rec. No longer
11208 static.
11209 (windows_add_thread, windows_nat_target::fetch_registers)
11210 (windows_nat_target::store_registers, handle_exception)
11211 (windows_nat_target::resume, get_windows_debug_event)
11212 (windows_nat_target::get_tib_address)
11213 (windows_nat_target::thread_name)
11214 (windows_nat_target::thread_alive): Update.
11215 * nat/windows-nat.h (enum thread_disposition_type): Move from
11216 windows-nat.c.
11217 (thread_rec): Declare.
11218
4834dad0
TT
112192020-04-08 Tom Tromey <tromey@adacore.com>
11220
11221 * windows-nat.c: Add "using namespace".
11222 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11223 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11224
65bafd5b
TT
112252020-04-08 Tom Tromey <tromey@adacore.com>
11226
11227 * nat/windows-nat.h (struct windows_thread_info): Declare
11228 destructor.
11229 * nat/windows-nat.c (~windows_thread_info): New.
11230
0a4afda3
TT
112312020-04-08 Tom Tromey <tromey@adacore.com>
11232
11233 PR gdb/22992
11234 * windows-nat.c (current_event): Update comment.
11235 (last_wait_event, desired_stop_thread_id): New globals.
11236 (struct pending_stop): New.
11237 (pending_stops): New global.
11238 (windows_nat_target) <stopped_by_sw_breakpoint>
11239 <supports_stopped_by_sw_breakpoint>: New methods.
11240 (windows_fetch_one_register): Add assertions. Adjust PC.
11241 (windows_continue): Handle pending stops. Suspend other threads
11242 when stepping. Use last_wait_event
11243 (wait_for_debug_event): New function.
11244 (get_windows_debug_event): Use wait_for_debug_event. Handle
11245 pending stops. Queue spurious stops.
11246 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11247 (windows_nat_target::kill): Use wait_for_debug_event.
11248 * nat/windows-nat.h (struct windows_thread_info)
11249 <stopped_at_software_breakpoint>: New field.
11250 * nat/windows-nat.c (windows_thread_info::resume): Clear
11251 stopped_at_software_breakpoint.
11252
8e61ebec
TT
112532020-04-08 Tom Tromey <tromey@adacore.com>
11254
11255 * windows-nat.c (enum thread_disposition_type): New.
11256 (thread_rec): Replace "get_context" parameter with "disposition";
11257 change type.
11258 (windows_add_thread, windows_nat_target::fetch_registers)
11259 (windows_nat_target::store_registers, handle_exception)
11260 (windows_nat_target::resume, get_windows_debug_event)
11261 (windows_nat_target::get_tib_address)
11262 (windows_nat_target::thread_name)
11263 (windows_nat_target::thread_alive): Update.
11264
98a03287
TT
112652020-04-08 Tom Tromey <tromey@adacore.com>
11266
11267 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11268 (windows_continue): Use windows_continue::resume.
11269 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11270 resume>: Declare new methods.
11271 * nat/windows-nat.c: New file.
11272 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11273
7c7411bc
TT
112742020-04-08 Tom Tromey <tromey@adacore.com>
11275
11276 * windows-nat.c (windows_add_thread, windows_delete_thread)
11277 (windows_nat_target::fetch_registers)
11278 (windows_nat_target::store_registers, fake_create_process)
11279 (windows_nat_target::resume, windows_nat_target::resume)
11280 (get_windows_debug_event, windows_nat_target::wait)
11281 (windows_nat_target::pid_to_str)
11282 (windows_nat_target::get_tib_address)
11283 (windows_nat_target::get_ada_task_ptid)
11284 (windows_nat_target::thread_name)
11285 (windows_nat_target::thread_alive): Use lwp, not tid.
11286
2950fdf7
TT
112872020-04-08 Tom Tromey <tromey@adacore.com>
11288
11289 * windows-nat.c (handle_exception)
11290 (windows_nat_target::thread_name): Update.
11291 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11292 <name>: Now unique_xmalloc_ptr.
11293
62fe396b
TT
112942020-04-08 Tom Tromey <tromey@adacore.com>
11295
11296 * windows-nat.c (thread_rec)
11297 (windows_nat_target::fetch_registers): Update.
11298 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11299 Update comment.
11300 <debug_registers_changed, reload_context>: Now bool.
11301
e9534bd2
TT
113022020-04-08 Tom Tromey <tromey@adacore.com>
11303
11304 * windows-nat.c (windows_add_thread): Use new.
11305 (windows_init_thread_list, windows_delete_thread): Use delete.
11306 (get_windows_debug_event): Update.
11307 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11308 destructor, and initializers.
11309
ae1f8880
TT
113102020-04-08 Tom Tromey <tromey@adacore.com>
11311
11312 * windows-nat.c (struct windows_thread_info): Remove.
11313 * nat/windows-nat.h: New file.
11314
55a1e039
TT
113152020-04-08 Tom Tromey <tromey@adacore.com>
11316
11317 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11318 (thread_rec, windows_add_thread, windows_delete_thread)
11319 (windows_continue): Update.
11320
93366324
TT
113212020-04-08 Tom Tromey <tromey@adacore.com>
11322
11323 * windows-nat.c (struct windows_thread_info): Remove typedef.
11324 (thread_head): Remove.
11325 (thread_list): New global.
11326 (thread_rec, windows_add_thread, windows_init_thread_list)
11327 (windows_delete_thread, windows_continue): Update.
11328
0f2265e2
SM
113292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11330
11331 * windows-tdep.h (windows_init_abi): Add comment.
11332 (cygwin_init_abi): New declaration.
11333 * windows-tdep.c: Split signal enumeration in two, one for
11334 Windows and one for Cygwin.
11335 (windows_gdb_signal_to_target): Only deal with signal of the
11336 Windows OS ABI.
11337 (cygwin_gdb_signal_to_target): New function.
11338 (windows_init_abi): Rename to windows_init_abi_common, don't set
11339 gdb_signal_to_target gdbarch method. Add new new function with
11340 this name.
11341 (cygwin_init_abi): New function.
11342 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11343 comment. Don't call windows_init_abi.
11344 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11345 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11346 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11347 i386_windows_init_abi_common, don't call windows_init_abi. Add
11348 a new function of this name.
11349 (i386_cygwin_init_abi): New function.
11350 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11351 OS ABI Cygwin.
11352
3810f182
SM
113532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11354
11355 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11356 parameter.c.
11357 (dwarf2_read_gdb_index): Update.
11358
063f8e80
KR
113592020-04-07 Kamil Rytarowski <n54@gmx.com>
11360
11361 * nbsd-tdep.c: Include "objfiles.h".
11362 (nbsd_skip_solib_resolver): New.
11363 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11364
85a9510c 113652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11366
11367 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11368 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11369 with DW_LLE_base_addressx are being emitted in DWARFv5.
11370 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11371 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11372 unsigned integer.
11373
9fc3eaae 113742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11375
11376 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11377 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11378 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11379 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11380 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11381 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11382 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11383
11384
41144253 113852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11386
11387 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11388 (read_loclist_index): New function definition.
11389 (lookup_loclist_base): New function definition.
11390 (read_loclist_header): New function definition.
11391 (dwarf2_cu): Add loclist_base and loclist_header field.
11392 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11393 (read_full_die_1): Read the value of DW_AT_loclists_base.
11394 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11395 (read_attribute_value): Handle DW_FORM_loclistx.
11396 (skip_one_die): Handle DW_FORM_loclistx.
11397 (loclist_header): New structure declaration.
11398 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11399
9f4e76a4
SM
114002020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11401
11402 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11403 constructor. Remove `addr` parameter from other constructor and
11404 add `per_cu` parameter.
11405 * dwarf2/read.c (create_partial_symtab): Update.
11406
25c11aca
TV
114072020-04-07 Tom de Vries <tdevries@suse.de>
11408
11409 PR symtab/25796
11410 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11411 (partial_die_info::fixup): Inherit has_const_value.
11412
5707e24b
TV
114132020-04-07 Tom de Vries <tdevries@suse.de>
11414
11415 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11416 symbols without address.
11417
05f00e22
KR
114182020-04-06 Kamil Rytarowski <n54@gmx.com>
11419
11420 * nbsd-nat.h (struct thread_info): Add forward declaration.
11421 (nbsd_nat_target::thread_alive): Add.
11422 (nbsd_nat_target::thread_name): Likewise.
11423 (nbsd_nat_target::update_thread_list): Likewise.
11424 (update_thread_list::post_attach): Likewise.
11425 (post_attach::pid_to_str): Likewise.
11426 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11427 (nbsd_thread_lister): Add.
11428 (nbsd_nat_target::thread_alive): Likewise.
11429 (nbsd_nat_target::thread_name): Likewise.
11430 (nbsd_add_threads): Likewise.
11431 (update_thread_list::post_attach): Likewise.
11432 (nbsd_nat_target::update_thread_list): Likewise.
11433 (post_attach::pid_to_str): Likewise.
11434
6ee448cc
TT
114352020-04-06 Tom Tromey <tromey@adacore.com>
11436
11437 * ada-valprint.c (print_variant_part): Extract the variant field.
11438 (print_field_values): Use the field as the outer value when
11439 recursing.
11440
dea34e8c
TT
114412020-04-06 Tom Tromey <tromey@adacore.com>
11442
11443 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11444 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11445 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11446 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11447 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11448
93689ce9
TT
114492020-04-06 Tom Tromey <tromey@adacore.com>
11450
11451 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11452 TYPE_CODE_ERROR.
11453
79743962
KR
114542020-04-06 Kamil Rytarowski <n54@gmx.com>
11455
11456 * nbsd-tdep.c: Include "gdbarch.h".
11457 Define enum with NetBSD signal numbers.
11458 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11459 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11460 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11461 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11462 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11463 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11464 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11465 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11466 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11467 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11468 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11469 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11470
9e7c9a03
HD
114712020-04-03 Hannes Domani <ssbssa@yahoo.de>
11472
11473 PR gdb/25325
11474 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11475
d9e49b61
TT
114762020-04-03 Tom Tromey <tromey@adacore.com>
11477
11478 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11479 Read constant block.
11480
e0fc5c3f
SM
114812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11482
11483 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11484 (gdb_bfd_get_full_section_contents): New declaration.
11485 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11486 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11487 gdb_bfd_get_full_section_contents.
11488
e2ff18a0
SM
114892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11490
11491 * exec.c (build_section_table): Replace internal_error with
11492 gdb_assert.
11493 (section_table_xfer_memory_partial): Likewise.
11494 * mdebugread.c (parse_partial_symbols): Likewise.
11495 * psymtab.c (lookup_partial_symbol): Likewise.
11496 * utils.c (wrap_here): Likewise.
11497
0830d301
TT
114982020-04-02 Tom Tromey <tromey@adacore.com>
11499
11500 * f-lang.c (build_fortran_types): Use arch_type to initialize
11501 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11502
e7da7f8f
TT
115032020-04-02 Tom Tromey <tromey@adacore.com>
11504
11505 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11506 of attributes.
11507
c90d28ac
AB
115082020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11509 Bernd Edlinger <bernd.edlinger@hotmail.de>
11510 Tom Tromey <tromey@adacore.com>
11511
11512 * buildsym.c (buildsym_compunit::record_line): Remove
11513 deduplication code.
11514
1aa98955
TV
115152020-04-02 Tom de Vries <tdevries@suse.de>
11516
11517 PR ada/24671
11518 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11519
d3214198
TV
115202020-04-02 Tom de Vries <tdevries@suse.de>
11521
11522 * dwarf2/read.c (dwarf2_gdb_index_functions,
11523 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11524 NULL.
11525 * psymtab.c (psym_lookup_global_symbol_language): New function.
11526 (psym_functions): Init psym_lookup_global_symbol_language with
11527 psym_lookup_global_symbol_language.
11528 * symfile-debug.c (debug_sym_quick_functions): Init
11529 lookup_global_symbol_language with NULL.
11530 * symfile.c (set_initial_language): Remove fixme comment.
11531 * symfile.h (struct quick_symbol_functions): Add
11532 lookup_global_symbol_language.
11533 * symtab.c (find_quick_global_symbol_language): New function.
11534 (find_main_name): Use find_quick_global_symbol_language.
11535
2836752f
SM
115362020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11537
11538 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11539
64dc2d4b
BE
115402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11541
11542 * buildsym.c (record_line): Fix undefined behavior and preserve
11543 lines at eof.
11544
bbe3dc41
BE
115452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11546
11547 * buildsym.c (record_line): Fix the resizing condition.
11548
6b4a335b
TT
115492020-04-01 Tom Tromey <tom@tromey.com>
11550
11551 * value.h (value_literal_complex): Add comment.
11552 * valops.c (value_literal_complex): Refer to value.h.
11553
3638a098
TT
115542020-04-01 Tom Tromey <tom@tromey.com>
11555
11556 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11557 (scalar_type): New rule, from typebase.
11558 (typebase): Use scalar_type. Recognize complex types.
11559 (field_name): Handle FLOAT_KEYWORD.
11560 (ident_tokens): Add _Complex and __complex__.
11561
c34e8714
TT
115622020-04-01 Tom Tromey <tom@tromey.com>
11563
11564 PR exp/25299:
11565 * valarith.c (promotion_type, complex_binop): New functions.
11566 (scalar_binop): Handle complex numbers. Use promotion_type.
11567 (value_pos, value_neg, value_complement): Handle complex numbers.
11568
fa649bb7
TT
115692020-04-01 Tom Tromey <tom@tromey.com>
11570
11571 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11572 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11573 (parse_number): Handle complex numbers.
11574
981c08ce
TT
115752020-04-01 Tom Tromey <tom@tromey.com>
11576
11577 * c-valprint.c (c_decorations): Change complex suffix to "i".
11578
4c99290d
TT
115792020-04-01 Tom Tromey <tom@tromey.com>
11580
11581 * valprint.c (generic_value_print_complex): Use accessors.
11582 * value.h (value_real_part, value_imaginary_part): Declare.
11583 * valops.c (value_real_part, value_imaginary_part): New
11584 functions.
11585 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11586
5b930b45
TT
115872020-04-01 Tom Tromey <tom@tromey.com>
11588
11589 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11590 (read_range_type): Update.
11591 * mdebugread.c (basic_type): Update.
11592 * go-lang.c (build_go_types): Use init_complex_type.
11593 * gdbtypes.h (struct main_type) <complex_type>: New member.
11594 (init_complex_type): Update.
11595 (arch_complex_type): Don't declare.
11596 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11597 Make name if none given. Use alloc_type_copy. Look for cached
11598 complex type.
11599 (arch_complex_type): Remove.
11600 (gdbtypes_post_init): Use init_complex_type.
11601 * f-lang.c (build_fortran_types): Use init_complex_type.
11602 * dwarf2/read.c (read_base_type): Update.
11603 * d-lang.c (build_d_types): Use init_complex_type.
11604 * ctfread.c (read_base_type): Update.
11605
53cccef1
TBA
116062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11607
11608 * infrun.c (stop_all_threads): Update assertion, plus when
11609 stopping threads, take into account that we might be trying
11610 to stop an all-stop target.
11611 (stop_waiting): Call 'stop_all_threads' if there exists a
11612 non-stop target.
11613
a0714d30
TBA
116142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11615
11616 * target.h (exists_non_stop_target): New function declaration.
11617 * target.c (exists_non_stop_target): New function.
11618
60e22c1e
HD
116192020-04-01 Hannes Domani <ssbssa@yahoo.de>
11620
11621 PR gdb/24789
11622 * eval.c (is_integral_or_integral_reference): New function.
11623 (evaluate_subexp_standard): Allow integer references in
11624 pointer arithmetic.
11625
e139a727
TBA
116262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11627
11628 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11629 check for no ptid in the stop reply when the target is non-stop.
11630
e0802d59
TT
116312020-04-01 Tom Tromey <tromey@adacore.com>
11632
11633 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11634 "name" parameter to rvalue reference. Initialize m_name_holder.
11635 <lookup_name_info>: New overloads.
11636 <name>: Return gdb::string_view.
11637 <c_str>: New method.
11638 <make_ignore_params>: Update.
11639 <search_name_hash>: Update.
11640 <language_lookup_name>: Return const char *.
11641 <m_name>: Change type.
11642 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11643 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11644 (lookup_name_info::match_any): Update.
11645 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11646 Update.
11647 * minsyms.c (linkage_name_str): Update.
11648 * language.c (default_symbol_name_matcher): Update.
11649 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11650 Update.
11651 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11652 (ada_lookup_name_info::ada_lookup_name_info): Update.
11653 (literal_symbol_name_matcher): Update.
11654
8c072cb6
TT
116552020-04-01 Tom Tromey <tromey@adacore.com>
11656
11657 * psymtab.c (psymtab_search_name): Remove function.
11658 (psym_lookup_symbol): Create search name and lookup name here.
11659 (lookup_partial_symbol): Remove "name" parameter; add
11660 lookup_name.
11661 (psym_expand_symtabs_for_function): Update.
11662
6f29a534
TT
116632020-03-31 Joel Jones <joelkevinjones@gmail.com>
11664
11665 PR tui/25597:
11666 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11667
af62665e
TT
116682020-03-31 Tom Tromey <tromey@adacore.com>
11669
11670 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11671 memcpy.
11672
d1a89da5
NC
116732020-03-30 Nelson Chu <nelson.chu@sifive.com>
11674
11675 * features/riscv/32bit-csr.xml: Regenerated.
11676 * features/riscv/64bit-csr.xml: Regenerated.
11677
d8af9068
TT
116782020-03-30 Tom Tromey <tromey@adacore.com>
11679
11680 * ada-valprint.c (print_variant_part): Update.
11681 * ada-lang.h (ada_which_variant_applies): Update.
11682 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11683 outer_valaddr parameters; replace with "outer" value parameter.
11684 (to_fixed_variant_branch_type): Update.
11685
227c0bf4
PFC
116862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11687
11688 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11689 <list>. Remove inclusion of observable.h.
11690 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11691 (struct arch_lwp_info): New struct.
11692 (class ppc_linux_dreg_interface): New class.
11693 (struct ppc_linux_process_info): New struct.
11694 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11695 <low_new_clone, low_forget_process, low_prepare_to_resume>
11696 <copy_thread_dreg_state, mark_thread_stale>
11697 <mark_debug_registers_changed, register_hw_breakpoint>
11698 <clear_hw_breakpoint, register_wp, clear_wp>
11699 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11700 <num_memory_accesses, get_trigger_type>
11701 <create_watchpoint_request, hwdebug_point_cmp>
11702 <init_arch_lwp_info, get_arch_lwp_info>
11703 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11704 methods.
11705 <struct ptid_hash>: New inner struct.
11706 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11707 members.
11708 (saved_dabr_value, hwdebug_info, max_slots_number)
11709 (struct hw_break_tuple, struct thread_points, ppc_threads)
11710 (have_ptrace_hwdebug_interface)
11711 (hwdebug_find_thread_points_by_tid)
11712 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11713 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11714 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11715 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11716 use m_dreg_interface.
11717 (hwdebug_point_cmp): Change to...
11718 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11719 reference arguments instead of pointers.
11720 (ppc_linux_nat_target::ranged_break_num_registers): Use
11721 m_dreg_interface.
11722 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11723 m_dreg_interface. Call register_hw_breakpoint.
11724 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11725 m_dreg_interface. Call clear_hw_breakpoint.
11726 (get_trigger_type): Change to...
11727 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11728 comment.
11729 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11730 use m_dreg_interface. Call register_hw_breakpoint.
11731 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11732 use m_dreg_interface. Call clear_hw_breakpoint.
11733 (can_use_watchpoint_cond_accel): Change to...
11734 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11735 method. Update comment, use m_dreg_interface and
11736 m_process_info.
11737 (calculate_dvc): Change to...
11738 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11739 m_dreg_interface.
11740 (num_memory_accesses): Change to...
11741 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11742 (check_condition): Change to...
11743 (ppc_linux_nat_target::check_condition): ...this method.
11744 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11745 comment, use m_dreg_interface.
11746 (create_watchpoint_request): Change to...
11747 (ppc_linux_nat_target::create_watchpoint_request): ...this
11748 method. Use m_dreg_interface.
11749 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11750 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11751 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11752 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11753 (ppc_linux_nat_target::low_forget_process)
11754 (ppc_linux_nat_target::low_new_fork)
11755 (ppc_linux_nat_target::low_new_clone)
11756 (ppc_linux_nat_target::low_delete_thread)
11757 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11758 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11759 only call mark_thread_stale.
11760 (ppc_linux_thread_exit): Remove.
11761 (ppc_linux_nat_target::stopped_data_address): Change to...
11762 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11763 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11764 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11765 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11766 comment. Call low_stopped_data_address.
11767 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11768 m_dreg_interface.
11769 (ppc_linux_nat_target::masked_watch_num_registers): Use
11770 m_dreg_interface.
11771 (ppc_linux_nat_target::copy_thread_dreg_state)
11772 (ppc_linux_nat_target::mark_thread_stale)
11773 (ppc_linux_nat_target::mark_debug_registers_changed)
11774 (ppc_linux_nat_target::register_hw_breakpoint)
11775 (ppc_linux_nat_target::clear_hw_breakpoint)
11776 (ppc_linux_nat_target::register_wp)
11777 (ppc_linux_nat_target::clear_wp)
11778 (ppc_linux_nat_target::init_arch_lwp_info)
11779 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11780 (_initialize_ppc_linux_nat): Remove observer callback.
11781
4db10d8f
PFC
117822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11783
11784 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11785 (ppc_linux_nat_target::auxv_parse)
11786 (ppc_linux_nat_target::read_description)
11787 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11788 Move up.
11789
1310c1b0
PFC
117902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11791
11792 * linux-nat.h (low_new_clone): New method.
11793 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11794
69b037c3
SM
117952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11796
11797 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11798 (dbx_expand_psymtab): ... this.
11799 (start_psymtab): Update.
11800 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11801 (mdebug_expand_psymtab): ... this.
11802 (parse_partial_symbols): Update.
11803 (new_psymtab): Update.
11804 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11805 (xcoff_expand_psymtab): ... this.
11806 (xcoff_start_psymtab): Update.
11807
48993951
SM
118082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11809
11810 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11811 <expand_dependencies>: ... this.
11812 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11813 (partial_symtab::expand_dependencies): ... this.
11814 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11815 Update.
11816 (dwarf2_psymtab::expand_psymtab): Update.
11817 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11818 * mdebugread.c (psymtab_to_symtab_1): Update.
11819 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11820
3ad83046
SM
118212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * psympriv.h (discard_psymtab): Remove.
11824 * dbxread.c (dbx_end_psymtab): Update.
11825 * xcoffread.c (xcoff_end_psymtab): Update.
11826
4d1b9ab6
TT
118272020-03-28 Tom Tromey <tom@tromey.com>
11828
11829 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11830 comment.
11831
f1749218
TT
118322020-03-28 Tom Tromey <tom@tromey.com>
11833
11834 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11835
ebea7626
HD
118362020-03-27 Hannes Domani <ssbssa@yahoo.de>
11837
11838 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11839
a879b4d5
JB
118402020-03-26 John Baldwin <jhb@FreeBSD.org>
11841
11842 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11843
0826b30a
TT
118442020-03-26 Tom Tromey <tom@tromey.com>
11845
11846 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11847 (mark_common_block_symbol_computed, read_tag_string_type)
11848 (attr_to_dynamic_prop, read_subrange_type): Update.
11849 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11850 to be methods on struct attribute.
11851 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11852 (read_call_site_scope, partial_die_info::read)
11853 (partial_die_info::read, lookup_die_type, follow_die_ref):
11854 Update.
11855 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11856 from dwarf2_get_ref_die_offset.
11857 (attribute::constant_value): New method, from
11858 dwarf2_get_attr_constant_value.
11859 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11860 Declare method.
11861 <constant_value>: New method.
11862
2b2558bf
TT
118632020-03-26 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11866 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11867 (dwarf_type_encoding_name): Move to stringify.c.
11868 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11869 * dwarf2/stringify.c: New file.
11870 * dwarf2/stringify.h: New file.
11871
eeb64781
TT
118722020-03-26 Tom Tromey <tom@tromey.com>
11873
11874 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11875 Rewrite.
11876
a39fdb41
TT
118772020-03-26 Tom Tromey <tom@tromey.com>
11878
11879 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11880 methods.
11881 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11882 (lookup_ranges_base): Likewise.
11883 (read_cutu_die_from_dwo, read_full_die_1): Update.
11884
436c571c
TT
118852020-03-26 Tom Tromey <tom@tromey.com>
11886
11887 * dwarf2/read.c (read_import_statement, read_file_scope)
11888 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11889 (read_lexical_block_scope, read_call_site_scope)
11890 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11891 (handle_struct_member_die, process_structure_scope)
11892 (update_enumeration_type_from_children)
11893 (process_enumeration_scope, read_array_type, read_common_block)
11894 (read_namespace, read_module, read_subroutine_type): Update.
11895 (sibling_die): Remove.
11896
052c8bb8
TT
118972020-03-26 Tom Tromey <tom@tromey.com>
11898
11899 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11900 (build_type_psymtabs_reader, read_structure_type)
11901 (read_enumeration_type, read_full_die_1): Update.
11902 (dwarf2_attr_no_follow): Move to die.h.
11903 * dwarf2/die.h (struct die_info) <attr>: New method.
11904
2b24b6e4
TT
119052020-03-26 Tom Tromey <tom@tromey.com>
11906
11907 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11908 <base_address>: Now an optional.
11909 (dwarf2_find_base_address, dwarf2_rnglists_process)
11910 (dwarf2_ranges_process, fill_in_loclist_baton)
11911 (dwarf2_symbol_mark_computed): Update.
11912
c2d50fd0
TT
119132020-03-26 Tom Tromey <tom@tromey.com>
11914
11915 * dwarf2/read.c (struct die_info): Move to die.h.
11916 * dwarf2/die.h: New file.
11917
0df7ad3a
TT
119182020-03-26 Tom Tromey <tom@tromey.com>
11919
11920 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11921 * dwarf2/read.c
11922 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11923 Move to line-header.c.
11924 (read_checked_initial_length_and_offset, read_formatted_entries):
11925 Likewise.
11926 (dwarf_decode_line_header): Split into two.
11927 * dwarf2/line-header.c
11928 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11929 Move from read.c.
11930 (read_checked_initial_length_and_offset, read_formatted_entries):
11931 Likewise.
11932 (dwarf_decode_line_header): New function, split from read.c.
11933
86c0bb4c
TT
119342020-03-26 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11937 Declare method.
11938 * dwarf2/read.c (read_attribute_value): Update.
11939 (dwarf2_per_objfile::read_line_string): Rename from
11940 read_indirect_line_string.
11941 (read_formatted_entries): Update.
11942
2ef46c2f
TT
119432020-03-26 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11946 variable.
11947
4f9c1eda
TT
119482020-03-26 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11951 const.
11952 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11953 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11954 parameter const.
11955
5a0e026f
TT
119562020-03-26 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11959 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11960 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11961 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11962
8844c11b
TT
119632020-03-26 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11966 file_names_size, file_full_name, file_file_name>: Use const.
11967 <file_name_at, file_names>: Add const overload.
11968 * dwarf2/line-header.c (line_header::file_file_name)
11969 (line_header::file_full_name): Update.
11970
c90ec28a
TT
119712020-03-26 Tom Tromey <tom@tromey.com>
11972
11973 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11974 (macro_start_file, consume_improper_spaces)
11975 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11976 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11977 (dwarf_decode_macros): Move to macro.c.
11978 * dwarf2/macro.c: New file.
11979 * dwarf2/macro.h: New file.
11980 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11981
4f44ae6c
TT
119822020-03-26 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11985 method.
11986 * dwarf2/section.c: New method. From
11987 read_indirect_string_at_offset_from.
11988 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11989 (read_indirect_string_at_offset_from): Move to section.c.
11990 (read_indirect_string_at_offset): Rewrite.
11991 (read_indirect_line_string_at_offset): Remove.
11992 (read_indirect_string, read_indirect_line_string)
11993 (dwarf_decode_macro_bytes): Update.
11994
a0194fa8
TT
119952020-03-26 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/section.h (struct dwarf2_section_info)
11998 <overload_complaint>: Declare.
11999 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12000 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12001 Rename from dwarf2_section_buffer_overflow_complaint.
12002 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12003 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12004
3d27bbdb
TT
120052020-03-26 Tom Tromey <tom@tromey.com>
12006
12007 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12008 Declare.
12009 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12010 Move from read.c.
12011 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12012 to section.c.
12013
9eac9650
TT
120142020-03-26 Tom Tromey <tom@tromey.com>
12015
12016 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12017
bf80d710
TT
120182020-03-26 Tom Tromey <tom@tromey.com>
12019
12020 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12021 "builder".
12022 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12023 parameter.
12024 (dwarf_decode_macros): Update.
12025
0314b390
TT
120262020-03-26 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/read.c (read_attribute_value): Update.
12029 (read_indirect_string_from_dwz): Move to dwz.c; change into
12030 method.
12031 (dwarf_decode_macro_bytes): Update.
12032 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12033 * dwarf2/dwz.c: New file.
12034 * Makefile.in (COMMON_SFILES): Add dwz.c.
12035
9fda78b6
TT
120362020-03-26 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12039 * dwarf2/read.c: Add include.
12040 * dwarf2/index-write.c: Add include.
12041 * dwarf2/index-cache.c: Add include.
12042 * dwarf2/dwz.h: New file.
12043
33aa3c10
TT
120442020-03-25 Tom Tromey <tom@tromey.com>
12045
12046 * compile/compile-object-load.c (get_out_value_type): Mention
12047 correct symbol name in error message.
12048
d503b685
HD
120492020-03-25 Hannes Domani <ssbssa@yahoo.de>
12050
12051 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12052
7b1eff95
TV
120532020-03-25 Tom de Vries <tdevries@suse.de>
12054
12055 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12056 * symmisc.c (dump_symtab_1): Print user and includes fields.
12057 (maintenance_info_symtabs): Same.
12058
dd895392
AB
120592020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 PR gdb/25534
12062 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12063 (riscv_regcache_cooked_write): New function.
12064 (riscv_push_dummy_call): Use new function.
12065 (riscv_return_value): Likewise.
12066
5ab2fbf1
SM
120672020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12070 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12071 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12072 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12073 * infrun.c (follow_fork): Likewise.
12074 (follow_fork_inferior): Likewise.
12075 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12076 * linux-nat.h (class linux_nat_target): Likewise.
12077 * remote.c (class remote_target) <follow_fork>: Likewise.
12078 (remote_target::follow_fork): Likewise.
12079 * target-delegates.c: Re-generate.
12080 * target.c (default_follow_fork): Likewise.
12081 (target_follow_fork): Likewise.
12082 * target.h (struct target_ops) <follow_fork>: Likewise.
12083 (target_follow_fork): Likewise.
12084
a64fafb5
TV
120852020-03-24 Tom de Vries <tdevries@suse.de>
12086
12087 * psymtab.c (maintenance_info_psymtabs): Print user field.
12088
fe26d3a3
TT
120892020-03-20 Tom Tromey <tromey@adacore.com>
12090
12091 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12092 const.
12093 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12094 const.
12095
c884cc46
SM
120962020-03-20 Simon Marchi <simon.marchi@efficios.com>
12097
12098 * ptrace.m4: Don't check for ptrace declaration.
12099 * config.in: Re-generate.
12100 * configure: Re-generate.
12101 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12102 not defined.
12103
1ff700c2
KR
121042020-03-20 Kamil Rytarowski <n54@gmx.com>
12105
12106 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12107 `PTRACE_TYPE_RET'.
12108 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12109 * sparc-nat.c (gdb_ptrace): Likewise.
12110 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12111
f7d4f0b1
TT
121122020-03-20 Tom Tromey <tromey@adacore.com>
12113
12114 * c-exp.y (lex_one_token): Fix assert.
12115
f67210ff
TT
121162020-03-20 Tom Tromey <tromey@adacore.com>
12117
12118 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12119 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12120 strncpy call.
12121
1773be9e
TT
121222020-03-20 Tom Tromey <tromey@adacore.com>
12123
12124 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12125
70304be9
TT
121262020-03-20 Tom Tromey <tromey@adacore.com>
12127
12128 * ada-valprint.c (print_variant_part): Remove parameters; switch
12129 to value-based API.
12130 (print_field_values): Likewise.
12131 (ada_val_print_struct_union): Likewise.
12132 (ada_value_print_1): Update.
12133
9faa006d
KR
121342020-03-20 Kamil Rytarowski <n54@gmx.com>
12135
12136 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12137 nbsd_nat_target instead of inf_ptrace_target.
12138 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12139 nbsd_nat_target.
12140
4a90f062
KR
121412020-03-20 Kamil Rytarowski <n54@gmx.com>
12142
12143 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12144 it to the ptrace call.
12145 * (store_registers): Likewise.
12146
121472020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12148
12149 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12150 it to the ptrace call.
12151 * (store_registers): Likewise.
12152
2d07da27
LM
121532020-03-19 Luis Machado <luis.machado@linaro.org>
12154
12155 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12156 valid, fetch vg value from ptrace.
12157
f09db380
KR
121582020-03-19 Kamil Rytarowski <n54@gmx.com>
12159 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12160 * inf-ptrace.c: Likewise.
12161 * (gdb_ptrace): Add.
12162 * (inf_ptrace_target::resume): Update.
12163 * (inf_ptrace_target::xfer_partial): Likewise.
12164 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12165 * (inf_ptrace_peek_poke): Update.
12166
fcc7376e
KR
121672020-03-19 Kamil Rytarowski <n54@gmx.com>
12168
12169 * x86-bsd-nat.c (gdb_ptrace): New.
12170 * (x86bsd_dr_set): Add new argument `ptid'.
12171 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12172 x86bsd_dr_set_addr): Update.
12173
cada5fc9
AB
121742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12175
12176 * remote.c (remote_target::process_stop_reply): Handle events for
12177 all threads differently.
12178
19a2740f
AB
121792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * completer.c (completion_tracker::remove_completion): Define new
12182 function.
12183 * completer.h (completion_tracker::remove_completion): Declare new
12184 function.
12185 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12186 when adding a C++ function symbol.
12187
724fd9ba
AB
121882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12189
12190 * completer.c (completion_tracker::completion_hash_entry): Define
12191 new class.
12192 (advance_to_filename_complete_word_point): Call
12193 recompute_lowest_common_denominator.
12194 (completion_tracker::completion_tracker): Call discard_completions
12195 to setup the hash table.
12196 (completion_tracker::discard_completions): Allow for being called
12197 from the constructor, pass new equal function, and element deleter
12198 when constructing the hash table. Initialise new class member
12199 variables.
12200 (completion_tracker::maybe_add_completion): Remove use of
12201 m_entries_vec, and store more information into m_entries_hash.
12202 (completion_tracker::recompute_lcd_visitor): New function, most
12203 content taken from...
12204 (completion_tracker::recompute_lowest_common_denominator):
12205 ...here, this now just visits each item in the hash calling the
12206 above visitor.
12207 (completion_tracker::build_completion_result): Remove use of
12208 m_entries_vec, call recompute_lowest_common_denominator.
12209 * completer.h (completion_tracker::have_completions): Remove use
12210 of m_entries_vec.
12211 (completion_tracker::completion_hash_entry): Declare new class.
12212 (completion_tracker::recompute_lowest_common_denominator): Change
12213 function signature.
12214 (completion_tracker::recompute_lcd_visitor): Declare new function.
12215 (completion_tracker::m_entries_vec): Delete.
12216 (completion_tracker::m_entries_hash): Initialize to NULL.
12217 (completion_tracker::m_lowest_common_denominator_valid): New
12218 member variable.
12219 (completion_tracker::m_lowest_common_denominator_max_length): New
12220 member variable.
12221
5a82b8a1
KR
122222020-03-17 Kamil Rytarowski <n54@gmx.com>
12223
12224 * regformats/regdef.h: Put reg in gdb namespace.
12225
fb516a69
KR
122262020-03-17 Kamil Rytarowski <n54@gmx.com>
12227
12228 * i386-bsd-nat.c (gdb_ptrace): New.
12229 * (i386bsd_fetch_inferior_registers,
12230 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12231 * (i386bsd_fetch_inferior_registers,
12232 i386bsd_store_inferior_registers) Use gdb_ptrace.
12233
1c0aa1fb
KR
122342020-03-17 Kamil Rytarowski <n54@gmx.com>
12235
12236 * amd64-bsd-nat.c (gdb_ptrace): New.
12237 * (amd64bsd_fetch_inferior_registers,
12238 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12239 * (amd64bsd_fetch_inferior_registers,
12240 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12241
5ccd2fb7
KR
122422020-03-17 Kamil Rytarowski <n54@gmx.com>
12243
12244 * user-regs.c (user_reg::read): Rename to...
12245 (user_reg::xread): ...this.
12246 * (append_user_reg): Rename argument `read' to `xread'.
12247 * (user_reg_add_builtin): Likewise.
12248 * (user_reg_add): Likewise.
12249 * (value_of_user_reg): Likewise.
12250
2108a63a
KR
122512020-03-17 Kamil Rytarowski <n54@gmx.com>
12252
12253 * sparc-nat.c (gdb_ptrace): New.
12254 * sparc-nat.c (sparc_fetch_inferior_registers)
12255 (sparc_store_inferior_registers) Remove obsolete comment.
12256 * sparc-nat.c (sparc_fetch_inferior_registers)
12257 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12258 * sparc-nat.c (sparc_fetch_inferior_registers)
12259 (sparc_store_inferior_registers) Use gdb_ptrace.
12260
a225c9a8
KR
122612020-03-17 Kamil Rytarowski <n54@gmx.com>
12262
12263 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12264 it to the ptrace call.
12265 * sh-nbsd-nat.c (store_registers): Likewise.
12266
98097623
KR
122672020-03-17 Kamil Rytarowski <n54@gmx.com>
12268
12269 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12270 nbsd_nat_target instead of inf_ptrace_target.
12271 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12272 nbsd_nat_target.
12273
9e38d619
KR
122742020-03-17 Kamil Rytarowski <n54@gmx.com>
12275
12276 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12277
a2ecbe9f
KR
122782020-03-17 Kamil Rytarowski <n54@gmx.com>
12279
12280 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12281 <sys/sysctl.h>.
12282 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12283
58990295
TV
122842020-03-17 Tom de Vries <tdevries@suse.de>
12285
12286 PR gdb/23710
12287 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12288 fields.
12289 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12290 fields.
12291 (process_imported_unit_die): Skip import of c++ CUs.
12292
771dd3a8
TT
122932020-03-16 Tom Tromey <tom@tromey.com>
12294
12295 * p-valprint.c (pascal_object_print_value): Initialize
12296 base_value.
12297
817a7585
AK
122982020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12299 Shahab Vahedi <shahab@synopsys.com>
12300
12301 * Makefile.in: Add arch/arc.o
12302 * configure.tgt: Likewise.
12303 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12304 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12305 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12306 * arc-tdep.h (arc_read_description): Add proto type.
12307 * arch/arc.c: New file.
12308 * arch/arc.h: Likewise.
12309 * features/Makefile: Replace old target descriptions with new.
12310 * features/arc-arcompact.c: Remove.
12311 * features/arc-arcompact.xml: Likewise.
12312 * features/arc-v2.c: Likewise
12313 * features/arc-v2.xml: Likewise
12314 * features/arc/aux-arcompact.xml: New file.
12315 * features/arc/aux-v2.xml: Likewise.
12316 * features/arc/core-arcompact.xml: Likewise.
12317 * features/arc/core-v2.xml: Likewise.
12318 * features/arc/aux-arcompact.c: Generate.
12319 * features/arc/aux-v2.c: Likewise.
12320 * features/arc/core-arcompact.c: Likewise.
12321 * features/arc/core-v2.c: Likewise.
12322 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12323
67430cd0
TT
123242020-03-16 Tom Tromey <tromey@adacore.com>
12325
12326 PR gdb/25663:
12327 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12328 putting value into bcache.
12329
30efb6c7
SM
123302020-03-16 Simon Marchi <simon.marchi@efficios.com>
12331
12332 PR gdb/21500
12333 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12334 to...
12335 (amd64_windows_init_abi_common): ... this. Don't set size of
12336 long type.
12337 (amd64_windows_init_abi): New function.
12338 (amd64_cygwin_init_abi): New function.
12339 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12340 the Cygwin OS ABI.
12341 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12342 comment.
12343
8db52437
SM
123442020-03-16 Simon Marchi <simon.marchi@efficios.com>
12345
12346 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12347 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12348 (pe_import_directory_entry): New struct type.
12349 (is_linked_with_cygwin_dll): New function.
12350 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12351 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12352 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12353
5982a56a
SM
123542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12355
12356 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12357 i386_cygwin_core_osabi_sniffer.
12358
7a1998df
SM
123592020-03-16 Simon Marchi <simon.marchi@efficios.com>
12360
12361 * i386-cygwin-tdep.c: Rename to...
12362 * i386-windows-tdep.c: ... this.
12363 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12364 i386-windows-tdep.c.
12365 * configure.tgt: Likewise.
12366
053205cc
SM
123672020-03-16 Simon Marchi <simon.marchi@efficios.com>
12368
12369 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12370 * osabi.c (gdb_osabi_names): Add "Windows".
12371 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12372 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12373 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12374 i386_cygwin_osabi_sniffer.
12375 (_initialize_i386_cygwin_tdep): Register OS ABI
12376 GDB_OSABI_WINDOWS for i386.
12377 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12378 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12379 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12380 for x86-64.
12381 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12382 when the target matches '*-*-mingw*'.
12383
fe4b2ee6
SM
123842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12385
12386 * defs.h (enum gdb_osabi): Move to...
12387 * osabi.h (enum gdb_osabi): ... here.
12388 * gdbarch.sh: Include osabi.h in gdbarch.h.
12389 * gdbarch.h: Re-generate.
12390
cb9b645d
SM
123912020-03-16 Simon Marchi <simon.marchi@efficios.com>
12392
12393 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12394 function.
12395 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12396
3293bbaf
TT
123972020-03-14 Tom Tromey <tom@tromey.com>
12398
12399 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12400 for C++.
12401 (c_type_print_modifier): Likewise. Add "language" parameter.
12402 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12403 (c_type_print_base_1): Update.
12404 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12405 constants.
12406 * type-stack.c (type_stack::insert): Handle tp_atomic and
12407 tp_restrict.
12408 (type_stack::follow_type_instance_flags): Likewise.
12409 (type_stack::follow_types): Likewise. Merge type-following code.
12410 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12411 (space_identifier, cv_with_space_id)
12412 (const_or_volatile_or_space_identifier_noopt)
12413 (const_or_volatile_or_space_identifier): Remove.
12414 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12415 rules.
12416 (ptr_operator, typebase): Update.
12417 (enum token_flag) <FLAG_C>: New constant.
12418 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12419 "_Atomic".
12420 (lex_one_token): Handle FLAG_C.
12421
154151a6
KR
124222020-03-14 Kamil Rytarowski <n54@gmx.com>
12423
12424 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12425 it to the ptrace call.
12426 * m68k-bsd-nat.c (store_registers): Likewise.
12427
bc107784
KR
124282020-03-14 Kamil Rytarowski <n54@gmx.com>
12429
12430 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12431 gdb_byte *.
12432 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12433 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12434 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12435
01a80117
KR
124362020-03-14 Kamil Rytarowski <n54@gmx.com>
12437
12438 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12439 nbsd_nat_target instead of inf_ptrace_target.
12440 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12441 nbsd_nat_target.
12442
f90280ca
KR
124432020-03-14 Kamil Rytarowski <n54@gmx.com>
12444
12445 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12446 register_t.
12447
6def66f1
KR
124482020-03-14 Kamil Rytarowski <n54@gmx.com>
12449
12450 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12451 it to the ptrace call.
12452 * alpha-bsd-nat.c (store_registers): Likewise.
12453
66eaca97
KR
124542020-03-14 Kamil Rytarowski <n54@gmx.com>
12455
12456 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12457 includes.
12458 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12459 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12460 fill_fpregset): Likewise.
12461
4fed520b
KR
124622020-03-14 Kamil Rytarowski <n54@gmx.com>
12463
12464 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12465 nbsd_nat_target instead of inf_ptrace_target.
12466 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12467 nbsd_nat_target.
12468
2190cf06
KR
124692020-03-14 Kamil Rytarowski <n54@gmx.com>
12470
12471 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12472 register_t.
12473
75c56d3d
KR
124742020-03-14 Kamil Rytarowski <n54@gmx.com>
12475
12476 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12477 it to the ptrace call.
12478 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12479 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12480 * arm-nbsd-nat.c (store_register): Likewise.
12481 * arm-nbsd-nat.c (store_regs): Likewise.
12482 * arm-nbsd-nat.c (store_fp_register): Likewise.
12483 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12484
6018d381
KR
124852020-03-14 Kamil Rytarowski <n54@gmx.com>
12486
12487 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12488 nbsd_nat_target instead of inf_ptrace_target.
12489 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12490 nbsd_nat_target.
12491
013f99f0
KR
124922020-03-14 Kamil Rytarowski <n54@gmx.com>
12493
12494 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12495 it to the ptrace call.
12496 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12497
12753073
KR
124982020-03-14 Kamil Rytarowski <n54@gmx.com>
12499
6227b330
KR
12500 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12501 it to the ptrace call.
12502 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12503
125042020-03-14 Kamil Rytarowski <n54@gmx.com>
12505
12506 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12507 gdb_byte *.
12753073
KR
12508 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12509
d5be5fa4
KR
125102020-03-14 Kamil Rytarowski <n54@gmx.com>
12511
12512 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12513 instead of inf_ptrace_target.
12514 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12515 nbsd_nat_target.
12516
8110f842
KR
125172020-03-14 Kamil Rytarowski <n54@gmx.com>
12518
12519 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12520 register_t.
12521
52feded7
KR
125222020-03-14 Kamil Rytarowski <n54@gmx.com>
12523
12524 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12525 register_t.
12526
25567eee
KR
125272020-03-14 Kamil Rytarowski <n54@gmx.com>
12528
12529 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12530 register_t.
12531
426a9c18
TT
125322020-03-13 Tom Tromey <tom@tromey.com>
12533
12534 * value.h (val_print): Don't declare.
12535 * valprint.h (val_print_array_elements)
12536 (val_print_scalar_formatted, generic_val_print): Don't declare.
12537 * valprint.c (generic_val_print_array): Take a struct value.
12538 (generic_val_print_ptr, generic_val_print_memberptr)
12539 (generic_val_print_bool, generic_val_print_int)
12540 (generic_val_print_char, generic_val_print_complex)
12541 (generic_val_print): Remove.
12542 (generic_value_print): Update.
12543 (do_val_print): Remove unused parameters. Don't call
12544 la_val_print.
12545 (val_print): Remove.
12546 (common_val_print): Update. Don't call value_check_printable.
12547 (val_print_scalar_formatted, val_print_array_elements): Remove.
12548 * rust-lang.c (rust_val_print): Remove.
12549 (rust_language_defn): Update.
12550 * p-valprint.c (pascal_val_print): Remove.
12551 (pascal_value_print_inner): Update.
12552 (pascal_object_print_val_fields, pascal_object_print_val):
12553 Remove.
12554 (pascal_object_print_static_field): Update.
12555 * p-lang.h (pascal_val_print): Don't declare.
12556 * p-lang.c (pascal_language_defn): Update.
12557 * opencl-lang.c (opencl_language_defn): Update.
12558 * objc-lang.c (objc_language_defn): Update.
12559 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12560 * m2-lang.h (m2_val_print): Don't declare.
12561 * m2-lang.c (m2_language_defn): Update.
12562 * language.h (struct language_defn) <la_val_print>: Remove.
12563 * language.c (unk_lang_value_print_inner): Rename. Change
12564 argument types.
12565 (unknown_language_defn, auto_language_defn): Update.
12566 * go-valprint.c (go_val_print): Remove.
12567 * go-lang.h (go_val_print): Don't declare.
12568 * go-lang.c (go_language_defn): Update.
12569 * f-valprint.c (f_val_print): Remove.
12570 * f-lang.h (f_value_print): Don't declare.
12571 * f-lang.c (f_language_defn): Update.
12572 * d-valprint.c (d_val_print): Remove.
12573 * d-lang.h (d_value_print): Don't declare.
12574 * d-lang.c (d_language_defn): Update.
12575 * cp-valprint.c (cp_print_value_fields)
12576 (cp_print_value_fields_rtti, cp_print_value): Remove.
12577 (cp_print_static_field): Update.
12578 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12579 (c_val_print_struct, c_val_print_union, c_val_print_int)
12580 (c_val_print_memberptr, c_val_print): Remove.
12581 * c-lang.h (c_val_print_array, cp_print_value_fields)
12582 (cp_print_value_fields_rtti): Don't declare.
12583 * c-lang.c (c_language_defn, cplus_language_defn)
12584 (asm_language_defn, minimal_language_defn): Update.
12585 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12586 (ada_val_print_enum): Take a struct value.
12587 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12588 (ada_val_print): Remove.
12589 (ada_value_print_1): Update.
12590 (printable_val_type): Remove.
12591 * ada-lang.h (ada_val_print): Don't declare.
12592 * ada-lang.c (ada_language_defn): Update.
12593
42331a1e
TT
125942020-03-13 Tom Tromey <tom@tromey.com>
12595
12596 * valprint.c (do_val_print): Update.
12597 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12598 a struct value.
12599 (value_to_value_object_no_release): Declare.
12600 * python/py-value.c (value_to_value_object_no_release): New
12601 function.
12602 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12603 struct value.
12604 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12605 function.
12606 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12607 a struct value.
12608 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12609 Declare.
12610 (gdbscm_apply_val_pretty_printer): Take a struct value.
12611 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12612 value.
12613 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12614 value.
12615 * extension-priv.h (struct extension_language_ops)
12616 <apply_val_pretty_printer>: Take a struct value.
12617 * cp-valprint.c (cp_print_value): Create a struct value.
12618 (cp_print_value): Update.
12619
3a916a97
TT
126202020-03-13 Tom Tromey <tom@tromey.com>
12621
12622 * ada-valprint.c (print_field_values): Call common_val_print.
12623
b59eac37
TT
126242020-03-13 Tom Tromey <tom@tromey.com>
12625
12626 * ada-valprint.c (val_print_packed_array_elements): Remove
12627 bitoffset and val parameters. Call common_val_print.
12628 (ada_val_print_string): Remove offset, address, and original_value
12629 parameters.
12630 (ada_val_print_array): Update.
12631 (ada_value_print_array): New function.
12632 (ada_value_print_1): Call it.
12633
03371129
TT
126342020-03-13 Tom Tromey <tom@tromey.com>
12635
12636 * ada-valprint.c (ada_value_print): Use common_val_print.
12637
2e088f8b
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12641
39ef85a8
TT
126422020-03-13 Tom Tromey <tom@tromey.com>
12643
12644 * ada-valprint.c (ada_value_print_num): New function.
12645 (ada_value_print_1): Use it.
12646
b9fa6e07
TT
126472020-03-13 Tom Tromey <tom@tromey.com>
12648
12649 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12650
416595d6
TT
126512020-03-13 Tom Tromey <tom@tromey.com>
12652
12653 * ada-valprint.c (ada_value_print_ptr): New function.
12654 (ada_value_print_1): Use it.
12655
5b5e15ec
TT
126562020-03-13 Tom Tromey <tom@tromey.com>
12657
12658 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12659 call common_val_print.
12660 (ada_val_print_1): Update.
12661 (ada_value_print_1): New function.
12662 (ada_value_print_inner): Rewrite.
12663
fbf54e75
TT
126642020-03-13 Tom Tromey <tom@tromey.com>
12665
12666 * cp-valprint.c (cp_print_value_fields): Update.
12667 (cp_print_value): New function.
12668
64b653ca
TT
126692020-03-13 Tom Tromey <tom@tromey.com>
12670
12671 * m2-valprint.c (m2_value_print_inner): Use
12672 cp_print_value_fields.
12673 * cp-valprint.c (cp_print_value_fields): New function.
12674 * c-valprint.c (c_value_print_struct): New function.
12675 (c_value_print_inner): Use c_value_print_struct.
12676 * c-lang.h (cp_print_value_fields): Declare.
12677
6999f067
TT
126782020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * c-valprint.c (c_value_print_array): New function.
12681 (c_value_print_inner): Use it.
12682
ce80b8bd
TT
126832020-03-13 Tom Tromey <tom@tromey.com>
12684
12685 * c-valprint.c (c_value_print_memberptr): New function.
12686 (c_value_print_inner): Use it.
12687
2faac269
TT
126882020-03-13 Tom Tromey <tom@tromey.com>
12689
12690 * c-valprint.c (c_value_print_int): New function.
12691 (c_value_print_inner): Use it.
12692
da3e2c29
TT
126932020-03-13 Tom Tromey <tom@tromey.com>
12694
12695 * c-valprint.c (c_value_print_ptr): New function.
12696 (c_value_print_inner): Use it.
12697
50836231
TT
126982020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * c-valprint.c (c_value_print_inner): Rewrite.
12701
4f412b6e
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * valprint.c (generic_value_print_complex): New function.
12705 (generic_value_print): Use it.
12706
f5354008
TT
127072020-03-13 Tom Tromey <tom@tromey.com>
12708
12709 * valprint.c (generic_val_print_float): Don't call
12710 val_print_scalar_formatted.
12711 (generic_val_print, generic_value_print): Update.
12712
3eec3b05
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * valprint.c (generic_value_print_char): New function
12716 (generic_value_print): Use it.
12717
fdddfccb
TT
127182020-03-13 Tom Tromey <tom@tromey.com>
12719
12720 * valprint.c (generic_value_print_int): New function.
12721 (generic_value_print): Use it.
12722
6dde7521
TT
127232020-03-13 Tom Tromey <tom@tromey.com>
12724
12725 * valprint.c (generic_value_print_bool): New function.
12726 (generic_value_print): Use it.
12727
4112d2e6
TT
127282020-03-13 Tom Tromey <tom@tromey.com>
12729
12730 * valprint.c (generic_val_print_func): Simplify.
12731 (generic_val_print, generic_value_print): Update.
12732
65786af6
TT
127332020-03-13 Tom Tromey <tom@tromey.com>
12734
12735 * valprint.c (generic_val_print_flags): Remove.
12736 (generic_val_print, generic_value_print): Update.
12737 (val_print_type_code_flags): Add original_value parameter.
12738
40f3ce18
TT
127392020-03-13 Tom Tromey <tom@tromey.com>
12740
12741 * valprint.c (generic_val_print): Update.
12742 (generic_value_print): Update.
12743 * valprint.c (generic_val_print_enum): Don't call
12744 val_print_scalar_formatted.
12745
2a5b130b
TT
127462020-03-13 Tom Tromey <tom@tromey.com>
12747
12748 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12749 * valprint.c (generic_value_print_ptr): New function.
12750
abc66ce9
TT
127512020-03-13 Tom Tromey <tom@tromey.com>
12752
12753 * valprint.c (generic_value_print): Rewrite.
12754
07a32858
TT
127552020-03-13 Tom Tromey <tom@tromey.com>
12756
12757 * p-valprint.c (pascal_object_print_value_fields)
12758 (pascal_object_print_value): New functions.
12759
64d64d3a
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * p-valprint.c (pascal_value_print_inner): Rewrite.
12763
6a95a1f5
TT
127642020-03-13 Tom Tromey <tom@tromey.com>
12765
12766 * f-valprint.c (f_value_print_innner): Rewrite.
12767
59fcdac6
TT
127682020-03-13 Tom Tromey <tom@tromey.com>
12769
12770 * m2-valprint.c (m2_print_unbounded_array): New overload.
12771 (m2_print_unbounded_array): Update.
12772 (m2_print_array_contents): Take a struct value.
12773 (m2_value_print_inner): Rewrite.
12774
d133c3e1
TT
127752020-03-13 Tom Tromey <tom@tromey.com>
12776
12777 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12778 (d_value_print_inner): New function.
12779 * d-lang.h (d_value_print_inner): Declare.
12780 * d-lang.c (d_language_defn): Use d_value_print_inner.
12781
23b0f06b
TT
127822020-03-13 Tom Tromey <tom@tromey.com>
12783
12784 * go-valprint.c (go_value_print_inner): New function.
12785 * go-lang.h (go_value_print_inner): Declare.
12786 * go-lang.c (go_language_defn): Use go_value_print_inner.
12787
5f56f7cb
TT
127882020-03-13 Tom Tromey <tom@tromey.com>
12789
12790 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12791 API.
12792 (rust_val_print): Rewrite.
12793 (rust_value_print_inner): New function, from rust_val_print.
12794 (rust_language_defn): Use rust_value_print_inner.
12795
26792ee0
TT
127962020-03-13 Tom Tromey <tom@tromey.com>
12797
12798 * ada-valprint.c (ada_value_print_inner): New function.
12799 * ada-lang.h (ada_value_print_inner): Declare.
12800 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12801
24051bbe
TT
128022020-03-13 Tom Tromey <tom@tromey.com>
12803
12804 * f-valprint.c (f_value_print_innner): New function.
12805 * f-lang.h (f_value_print_innner): Declare.
12806 * f-lang.c (f_language_defn): Use f_value_print_innner.
12807
c0941be6
TT
128082020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * p-valprint.c (pascal_value_print_inner): New function.
12811 * p-lang.h (pascal_value_print_inner): Declare.
12812 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12813
62c4663d
TT
128142020-03-13 Tom Tromey <tom@tromey.com>
12815
12816 * m2-valprint.c (m2_value_print_inner): New function.
12817 * m2-lang.h (m2_value_print_inner): Declare.
12818 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12819
62182190
TT
128202020-03-13 Tom Tromey <tom@tromey.com>
12821
12822 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12823 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12824 * c-valprint.c (c_value_print_inner): New function.
12825 * c-lang.h (c_value_print_inner): Declare.
12826 * c-lang.c (c_language_defn, cplus_language_defn)
12827 (asm_language_defn, minimal_language_defn): Use
12828 c_value_print_inner.
12829
1e592a8a
TT
128302020-03-13 Tom Tromey <tom@tromey.com>
12831
12832 * p-valprint.c (pascal_object_print_value_fields): Now static.
12833 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12834
7fe471e9
TT
128352020-03-13 Tom Tromey <tom@tromey.com>
12836
12837 * c-valprint.c (c_val_print_array): Simplify.
12838
d121c6ce
TT
128392020-03-13 Tom Tromey <tom@tromey.com>
12840
12841 * valprint.c (value_print_array_elements): New function.
12842 * valprint.h (value_print_array_elements): Declare.
12843
4dba70ee
TT
128442020-03-13 Tom Tromey <tom@tromey.com>
12845
12846 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12847 * mips-tdep.c (mips_print_register): Use
12848 value_print_scalar_formatted.
12849
4f9ae810
TT
128502020-03-13 Tom Tromey <tom@tromey.com>
12851
12852 * valprint.h (value_print_scalar_formatted): Declare.
12853 * valprint.c (value_print_scalar_formatted): New function.
12854
156bfec9
TT
128552020-03-13 Tom Tromey <tom@tromey.com>
12856
12857 * valprint.h (generic_value_print): Declare.
12858 * valprint.c (generic_value_print): New function.
12859
2b4e573d
TT
128602020-03-13 Tom Tromey <tom@tromey.com>
12861
12862 * valprint.c (do_val_print): Call la_value_print_inner, if
12863 available.
12864 * rust-lang.c (rust_language_defn): Update.
12865 * p-lang.c (pascal_language_defn): Update.
12866 * opencl-lang.c (opencl_language_defn): Update.
12867 * objc-lang.c (objc_language_defn): Update.
12868 * m2-lang.c (m2_language_defn): Update.
12869 * language.h (struct language_defn) <la_value_print_inner>: New
12870 member.
12871 * language.c (unknown_language_defn, auto_language_defn): Update.
12872 * go-lang.c (go_language_defn): Update.
12873 * f-lang.c (f_language_defn): Update.
12874 * d-lang.c (d_language_defn): Update.
12875 * c-lang.c (c_language_defn, cplus_language_defn)
12876 (asm_language_defn, minimal_language_defn): Update.
12877 * ada-lang.c (ada_language_defn): Update.
12878
a1f6a07c
TT
128792020-03-13 Tom Tromey <tom@tromey.com>
12880
12881 * c-valprint.c (c_value_print): Use common_val_print.
12882
410cf315
TT
128832020-03-13 Tom Tromey <tom@tromey.com>
12884
12885 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12886
72a45c93
TT
128872020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * f-valprint.c (f77_print_array_1, f_val_print): Use
12890 common_val_print.
12891
040f66bd
TT
128922020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * riscv-tdep.c (riscv_print_one_register_info): Use
12895 common_val_print.
12896
a6e05a6c
TT
128972020-03-13 Tom Tromey <tom@tromey.com>
12898
12899 * mi/mi-main.c (output_register): Use common_val_print.
12900
3444c526
TT
129012020-03-13 Tom Tromey <tom@tromey.com>
12902
12903 * infcmd.c (default_print_one_register_info): Use
12904 common_val_print.
12905
c2a44efe
TT
129062020-03-13 Tom Tromey <tom@tromey.com>
12907
12908 * valprint.h (common_val_print_checked): Declare.
12909 * valprint.c (common_val_print_checked): New function.
12910 * stack.c (print_frame_arg): Use common_val_print_checked.
12911
b0c26e99
TT
129122020-03-13 Tom Tromey <tom@tromey.com>
12913
12914 * valprint.c (do_val_print): New function, from val_print.
12915 (val_print): Use do_val_print.
12916 (common_val_print): Use do_val_print.
12917
ce3acbe9
TT
129182020-03-13 Tom Tromey <tom@tromey.com>
12919
12920 * valprint.c (value_print): Use scoped_value_mark.
12921
96c7f873
TV
129222020-03-13 Tom de Vries <tdevries@suse.de>
12923
12924 PR symtab/25646
12925 * psymtab.c (partial_symtab::partial_symtab): Don't set
12926 globals_offset and statics_offset. Push element onto
12927 current_global_psymbols and current_static_psymbols stacks.
12928 (concat): New function.
12929 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12930 element from current_global_psymbols and current_static_psymbols
12931 stacks. Concat popped elements to global_psymbols and
12932 static_symbols.
12933 (add_psymbol_to_list): Use current_global_psymbols and
12934 current_static_psymbols stacks.
12935 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12936 current_static_psymbols fields.
12937
6ba0a321
CB
129382020-03-12 Christian Biesinger <cbiesinger@google.com>
12939
12940 * corelow.c (sniff_core_bfd): Remove.
12941 (class core_target) <m_core_vec>: Remove.
12942 (core_target::core_target): Update.
12943 (core_file_fns): Remove.
12944 (deprecated_add_core_fns): Remove.
12945 (default_core_sniffer): Remove.
12946 (sniff_core_bfd): Remove.
12947 (default_check_format): Remove.
12948 (gdb_check_format): Remove.
12949 (core_target_open): Update.
12950 (core_target::get_core_register_section): Update.
12951 (get_core_registers_cb): Update.
12952 (core_target::fetch_registers): Update.
12953 * gdbcore.h (struct core_fns): Remove.
12954 (deprecated_add_core_fns): Remove.
12955 (default_core_sniffer): Remove.
12956 (default_check_format): Remove.
12957
227031b2
TT
129582020-03-12 Tom Tromey <tom@tromey.com>
12959
12960 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12961 CORE_ADDR.
12962 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12963
53807e9f
TT
129642020-03-12 Tom Tromey <tom@tromey.com>
12965
12966 * remote.c (remote_target::download_tracepoint)
12967 (remote_target::enable_tracepoint)
12968 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12969 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12970 sprintf_vma.
12971
64f25102
TT
129722020-03-12 Tom Tromey <tom@tromey.com>
12973
12974 * symfile-mem.c: Update CORE_ADDR size assert.
12975
272cd5a3
SM
129762020-03-12 Simon Marchi <simon.marchi@efficios.com>
12977
12978 * selftest.m4: Move to gdbsupport/.
12979 * acinclude.m4: Update path to selftest.m4.
12980
74cd3f9d
SM
129812020-03-12 Simon Marchi <simon.marchi@efficios.com>
12982
12983 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12984 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12985 gdbarch-selfselftests.c and selftest-arch.c.
12986 (SUBDIR_UNITTESTS_OBS): Rename to...
12987 (SELFTESTS_OBS): ... this.
12988 (COMMON_SFILES): Remove disasm-selftests.c and
12989 gdbarch-selftests.c.
12990 * configure.ac: Don't add selftest-arch.{c,o} to
12991 CONFIG_{SRCS,OBS}.
12992 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12993 preprocessor conditions.
12994
db6878ac
SM
129952020-03-12 Simon Marchi <simon.marchi@efficios.com>
12996
12997 * configure.ac: Don't source bfd/development.sh.
12998 * selftest.m4: Modify comment.
12999 * configure: Re-generate.
13000
4d696a5c
SM
130012020-03-12 Simon Marchi <simon.marchi@efficios.com>
13002
13003 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13004 not "true" or "false".
13005 * configure: Re-generate.
13006
8dd8e1c7
CB
130072020-03-12 Christian Biesinger <cbiesinger@google.com>
13008
13009 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13010 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13011 renamed to arm_nbsd_supply_gregset.
13012 (fetch_register): Update to call arm_nbsd_supply_gregset.
13013 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13014 (arm_netbsd_nat_target::fetch_registers): Update.
13015 (fetch_elfcore_registers): Removed.
13016 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13017 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13018 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13019 not require NetBSD system headers.
13020 (arm_nbsd_regset): New struct.
13021 (arm_nbsd_iterate_over_regset_sections): New function.
13022 (arm_netbsd_init_abi_common): Updated to call
13023 set_gdbarch_iterate_over_regset_sections.
13024 * arm-nbsd-tdep.h: New file.
13025
dd69bf7a
KB
130262020-03-11 Kevin Buettner <kevinb@redhat.com>
13027
13028 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13029 recursion.
13030
a0761e34
SM
130312020-03-11 Simon Marchi <simon.marchi@efficios.com>
13032
13033 * configure: Re-generate.
13034
e7a82140
TT
130352020-03-11 Tom Tromey <tromey@adacore.com>
13036
13037 * ada-typeprint.c (print_choices): Fix comment.
13038
dcc050c8
AB
130392020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13040
13041 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13042 previous item in the list, when the list has no items.
13043
1c33af77
TV
130442020-03-11 Tom de Vries <tdevries@suse.de>
13045
13046 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13047 PROP_LOCLIST handling code.
13048
8c95582d
AB
130492020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13050
13051 * buildsym-legacy.c (record_line): Pass extra parameter to
13052 record_line.
13053 * buildsym.c (buildsym_compunit::record_line): Take an extra
13054 parameter, reduce duplication in the line table, and record the
13055 is_stmt flag in the line table.
13056 * buildsym.h (buildsym_compunit::record_line): Add extra
13057 parameter.
13058 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13059 non-statement lines.
13060 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13061 this to the symtab builder.
13062 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13063 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13064 through to dwarf_record_line_1.
13065 * infrun.c (process_event_stop_test): When stepping, don't stop at
13066 a non-statement instruction, and only refresh the step info when
13067 we land in the middle of a line's range. Also add an extra
13068 comment.
13069 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13070 field.
13071 * record-btrace.c (btrace_find_line_range): Only record lines
13072 marked as is-statement.
13073 * stack.c (frame_show_address): Show the frame address if we are
13074 in a non-statement sal.
13075 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13076 (maintenance_print_one_line_table): Print a header for the is_stmt
13077 column, and include is_stmt information in the output.
13078 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13079 preference to non-statements.
13080 (find_pcs_for_symtab_line): Prefer is-statement entries.
13081 (find_line_common): Likewise.
13082 * symtab.h (struct linetable_entry): Add is_stmt field.
13083 (struct symtab_and_line): Likewise.
13084 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13085 arranging the line table.
13086
e4003a34
TV
130872020-03-07 Tom de Vries <tdevries@suse.de>
13088
13089 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13090 DIE.
13091
e8932576
TT
130922020-03-07 Tom Tromey <tom@tromey.com>
13093
13094 * valops.c (value_literal_complex): Remove obsolete comment.
13095 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13096 comment.
13097
29734269
SM
130982020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13099
13100 * infrun.h: Forward-declare thread_info.
13101 (set_step_info): Add thread_info parameter, add doc.
13102 * infrun.c (set_step_info): Add thread_info parameter, move doc
13103 to header.
13104 * infrun.c (process_event_stop_test): Pass thread to
13105 set_step_info call.
13106 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13107 set_step_info.
13108 (prepare_one_step): Add thread_info parameter, pass it to
13109 set_step_frame and prepare_one_step (recursive) call.
13110 (step_1): Pass thread to prepare_one_step call.
13111 (step_command_fsm::should_stop): Pass thread to
13112 prepare_one_step.
13113 (until_next_fsm): Pass thread to set_step_frame call.
13114 (finish_command): Pass thread to set_step_info call.
13115
b7d64b29
HD
131162020-03-06 Hannes Domani <ssbssa@yahoo.de>
13117
13118 * windows-tdep.c (windows_solib_create_inferior_hook):
13119 Check if inferior is running.
13120
09f2921c
TV
131212020-03-06 Tom de Vries <tdevries@suse.de>
13122
13123 * NEWS: Fix "the the".
13124 * ctfread.c: Same.
13125
fd760e79
TV
131262020-03-06 Tom de Vries <tdevries@suse.de>
13127
13128 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13129
20ea4a60
AB
131302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13131
13132 * .dir-locals.el: Add a comment referencing the other copies of
13133 this file.
13134
0afbabf0
JB
131352020-03-05 John Baldwin <jhb@FreeBSD.org>
13136
13137 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13138 psargs.
13139
842806cb
TBA
131402020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13141
13142 * .gitattributes: New file.
13143
be1e3d3e
TT
131442020-03-04 Tom Tromey <tom@tromey.com>
13145
13146 * symmisc.c (print_symbol_bcache_statistics)
13147 (print_objfile_statistics): Update.
13148 * symfile.c (allocate_symtab): Use intern.
13149 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13150 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13151 macro_cache>: Remove.
13152 <string_cache>: New member.
13153 (struct objfile) <intern>: New methods.
13154 * elfread.c (elf_symtab_read): Use intern.
13155 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13156 (dwarf2_compute_name, dwarf2_physname)
13157 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13158 names.
13159 (guess_partial_die_structure_name): Update.
13160 (partial_die_info::fixup): Intern name.
13161 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13162 name.
13163 (dwarf2_name): Intern name. Update.
13164 * buildsym.c (buildsym_compunit::get_macro_table): Use
13165 string_cache.
13166
4e7625fd
TT
131672020-03-04 Tom Tromey <tom@tromey.com>
13168
13169 * jit.c (bfd_open_from_target_memory): Make "target" const.
13170 * corefile.c (gnutarget): Now const.
13171 * gdbcore.h (gnutarget): Now const.
13172
46f9f931
HD
131732020-03-04 Hannes Domani <ssbssa@yahoo.de>
13174
13175 * NEWS: Mention support for WOW64 processes.
13176 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13177 (amd64_windows_segment_register_p): Remove static.
13178 (_initialize_amd64_windows_nat): Update.
13179 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13180 * i386-windows-nat.c (context_offset): Update.
13181 (i386_mappings): Rename and remove static.
13182 (i386_windows_segment_register_p): Remove static.
13183 (_initialize_i386_windows_nat): Update.
13184 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13185 (STATUS_WX86_SINGLE_STEP): New macro.
13186 (EnumProcessModulesEx): New macro.
13187 (Wow64SuspendThread): New macro.
13188 (Wow64GetThreadContext): New macro.
13189 (Wow64SetThreadContext): New macro.
13190 (Wow64GetThreadSelectorEntry): New macro.
13191 (windows_set_context_register_offsets): Add static.
13192 (windows_set_segment_register_p): Likewise.
13193 (windows_add_thread): Adapt for WOW64 processes.
13194 (windows_fetch_one_register): Likewise.
13195 (windows_nat_target::fetch_registers): Likewise.
13196 (windows_store_one_register): Likewise.
13197 (display_selector): Likewise.
13198 (display_selectors): Likewise.
13199 (handle_exception): Likewise.
13200 (windows_continue): Likewise.
13201 (windows_nat_target::resume): Likewise.
13202 (windows_add_all_dlls): Likewise.
13203 (do_initial_windows_stuff): Likewise.
13204 (windows_nat_target::attach): Likewise.
13205 (windows_get_exec_module_filename): Likewise.
13206 (windows_nat_target::create_inferior): Likewise.
13207 (windows_xfer_siginfo): Likewise.
13208 (_initialize_loadable): Initialize Wow64SuspendThread,
13209 Wow64GetThreadContext, Wow64SetThreadContext,
13210 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13211 * windows-nat.h (windows_set_context_register_offsets):
13212 Remove declaration.
13213 (windows_set_segment_register_p): Likewise.
13214 (i386_windows_segment_register_p): Add declaration.
13215 (amd64_windows_segment_register_p): Likewise.
13216
440cf44e
LM
132172020-03-04 Luis Machado <luis.machado@linaro.org>
13218
13219 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13220 in "info registers" for AArch64/ARM.
13221
13222 The change caused "info registers" to not print GPR's.
13223
13224 gdb/ChangeLog:
13225
13226 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13227
13228 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13229 when reg->group is empty and reggroup is not.
13230
1009d92f
TT
132312020-03-03 Tom Tromey <tromey@adacore.com>
13232
13233 * dwarf2/frame.c (struct dwarf2_frame_cache)
13234 <checked_tailcall_bottom, entry_cfa_sp_offset,
13235 entry_cfa_sp_offset_p>: Remove members.
13236 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13237 (dwarf2_frame_prev_register): Don't call
13238 dwarf2_tailcall_sniffer_first.
13239 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13240 * frame-unwind.c (add_unwinder): New fuction.
13241 (frame_unwind_init): Use it. Add tailcall unwinder.
13242
5e5d66b6
AB
132432020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13244 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13245
13246 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13247 value should be printed as true.
13248
584cf46d
HD
132492020-03-03 Hannes Domani <ssbssa@yahoo.de>
13250
13251 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13252 (windows_init_abi): Set and use windows_so_ops.
13253
7b973adc
SDJ
132542020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13255
13256 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13257 when verifying if dealing with a convenience variable.
13258
bb7b70ab
LM
132592020-03-03 Luis Machado <luis.machado@linaro.org>
13260
13261 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13262
9822cb57
SM
132632020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13264
13265 * infrun.c (gdbarch_supports_displaced_stepping): New.
13266 (use_displaced_stepping): Break up conditions in smaller pieces.
13267 Use gdbarch_supports_displaced_stepping.
13268 (displaced_step_prepare_throw): Use
13269 gdbarch_supports_displaced_stepping.
13270
63e163f2
AB
132712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13272
13273 * NEWS: Mention new behaviour of the history filename.
13274 * top.c (write_history_p): Add comment.
13275 (show_write_history_p): Add header comment, give a different
13276 message when history writing is on, but the history filename is
13277 empty.
13278 (history_filename): Add comment.
13279 (history_filename_empty): New function.
13280 (show_history_filename): Add header comment, give a different
13281 message when the filename is empty.
13282 (init_history): Compare history_filename against nullptr, and only
13283 read history if the filename is not empty.
13284 (set_history_filename): Add header comment, and only make
13285 non-empty filenames absolute.
13286 (init_main): Make the filename argument to 'set history filename'
13287 optional.
13288
81b86b97
CB
132892020-03-02 Christian Biesinger <cbiesinger@google.com>
13290
13291 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13292 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13293 (fetch_fp_register): Update.
13294 (fetch_fp_regs): Update.
13295 (store_fp_register): Update.
13296 (store_fp_regs): Update.
13297 (arm_netbsd_nat_target::read_description): New function.
13298 (fetch_elfcore_registers): Update.
13299
24ed6739
AB
133002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13301
13302 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13303 general_thread if the stop reply is missing a thread-id.
13304 (remote_target::process_stop_reply): Use the first non-exited
13305 thread if the target didn't pass a thread-id.
13306 * infrun.c (do_target_wait): Move call to
13307 switch_to_inferior_no_thread to ....
13308 (do_target_wait_1): ... here.
13309
a84bb2a0
JT
133102020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13311
13312 * debuginfod-support.c: Include defs.h first.
13313
658dadf0
TV
133142020-02-28 Tom de Vries <tdevries@suse.de>
13315
13316 * symfile.c (set_initial_language): Use default language for lookup.
13317
4ebe4877
SM
133182020-02-28 Simon Marchi <simon.marchi@efficios.com>
13319
13320 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13321 reader variable, pass `this` to read_cutu_die_from_dwo.
13322
e5da1139
AM
133232020-02-27 Aaron Merey <amerey@redhat.com>
13324
13325 * source.c (open_source_file): Check for nullptr when computing
13326 srcpath.
13327
317f7127
TT
133282020-02-27 Tom Tromey <tromey@adacore.com>
13329
13330 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13331 member.
13332 (dwarf2_add_field): Don't update nfields.
13333 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13334
3104d9ee
AB
133352020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13336
13337 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13338 abs.
13339
b83470bf
TT
133402020-02-26 Tom Tromey <tom@tromey.com>
13341
13342 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13343 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13344 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13345 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13346 per_cu_data.
13347
edfe0a0c
TT
133482020-02-26 Tom Tromey <tom@tromey.com>
13349
13350 * dwarf2/index-write.c (psym_index_map): Change type.
13351 (add_address_entry_worker, write_one_signatured_type)
13352 (recursively_count_psymbols, recursively_write_psymbols)
13353 (class debug_names, psyms_seen_size, write_gdbindex)
13354 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13355
0d79cdc4
AM
133562020-02-26 Aaron Merey <amerey@redhat.com>
13357
13358 * Makefile.in: Handle optional debuginfod support.
13359 * NEWS: Update.
13360 * README: Add --with-debuginfod summary.
13361 * config.in: Regenerate.
13362 * configure: Regenerate.
13363 * configure.ac: Handle optional debuginfod support.
13364 * debuginfod-support.c: debuginfod helper functions.
13365 * debuginfod-support.h: Ditto.
13366 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13367 summary.
13368 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13369 when a dwz file cannot be found.
13370 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13371 debuginfo file cannot be found.
13372 * source.c (open_source_file): Query debuginfod servers when a
13373 source file cannot be found.
13374 * top.c (print_gdb_configuration): Include
13375 --{with,without}-debuginfod in the output.
13376
b65ce565
JG
133772020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13378
13379 * thread.c (thr_try_catch_cmd): Print thread name.
13380
d4c9a4f8
SM
133812020-02-26 Simon Marchi <simon.marchi@efficios.com>
13382
13383 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13384 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13385 dwarf2_fetch_die_type_sect_off): Move to...
13386 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13387 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13388 dwarf2_fetch_die_type_sect_off): ... here.
13389 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13390 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13391 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13392
0dce4280
TV
133932020-02-26 Tom de Vries <tdevries@suse.de>
13394
13395 PR gdb/25603
13396 * symfile.c (set_initial_language): Exit-early if
13397 language_mode == language_mode_manual.
13398
450a1bfc
SM
133992020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13400
13401 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13402 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13403 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13404
9e80cfa1
AB
134052020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13406
13407 * gdbtypes.c (create_array_type_with_stride): Handle negative
13408 array strides.
13409 * valarith.c (value_subscripted_rvalue): Likewise.
13410
09624f1f
LM
134112020-02-25 Luis Machado <luis.machado@linaro.org>
13412
13413 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13414
8cb5117c
SM
134152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13416
13417 * loc.h (dwarf2_get_die_type): Move to...
13418 * read.h (dwarf2_get_die_type): ... here.
13419 * read.c (dwarf2_get_die_type): Move doc to header.
13420
c325c44e
JB
134212020-02-25 Joel Brobecker <brobecker@adacore.com>
13422
13423 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13424 'gnulib/Makefile.in' to the list.
13425
4ac93832
TT
134262020-02-24 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13429 Remove.
13430 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13431 XOBNEWVEC.
13432
197400e8
TT
134332020-02-24 Tom Tromey <tom@tromey.com>
13434
13435 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13436 New method.
13437 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13438 (dw2_do_instantiate_symtab, dw2_get_file_names)
13439 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13440
76935768
TT
134412020-02-24 Tom Tromey <tom@tromey.com>
13442
13443 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13444 make_scoped_restore.
13445 (dwarf2_psymtab::read_symtab): Don't clear
13446 reading_partial_symbols.
13447
a88ef40d
TV
134482020-02-24 Tom de Vries <tdevries@suse.de>
13449
13450 PR gdb/25592
13451 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13452
c9af6521
TV
134532020-02-24 Tom de Vries <tdevries@suse.de>
13454
13455 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13456 commands layout next/prev/regs.
13457
5707a07a
TT
134582020-02-22 Tom Tromey <tom@tromey.com>
13459
13460 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13461 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13462
3b0fb49e
TT
134632020-02-22 Tom Tromey <tom@tromey.com>
13464
13465 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13466
283be8bf
TT
134672020-02-22 Tom Tromey <tom@tromey.com>
13468
13469 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13470 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13471 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13472 * tui/tui.c (_initialize_tui): Add usage text.
13473
ca793b96
TT
134742020-02-22 Tom Tromey <tom@tromey.com>
13475
13476 * tui/tui-win.c (tui_set_focus_command)
13477 (tui_set_win_height_command): Use error_no_arg.
13478 (_initialize_tui_win): Update help text.
13479 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13480
432b5c40
TT
134812020-02-22 Tom Tromey <tom@tromey.com>
13482
13483 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13484 * tui/tui-disasm.h (struct tui_disasm_window)
13485 <display_start_addr>: Declare.
13486 * tui/tui-source.h (struct tui_source_window)
13487 <display_start_addr>: Declare.
13488 * tui/tui-winsource.h (struct tui_source_window_base)
13489 <show_source_line, display_start_addr>: New methods.
13490 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13491 Rename and move to protected section.
13492 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13493 (tui_source_window_base::do_erase_source_content): Update.
13494 (tui_source_window_base::show_source_line): Now a method.
13495 (tui_source_window_base::show_source_content)
13496 (tui_source_window_base::tui_source_window_base)
13497 (tui_source_window_base::rerender)
13498 (tui_source_window_base::refill)
13499 (tui_source_window_base::do_scroll_horizontal)
13500 (tui_source_window_base::set_is_exec_point_at)
13501 (tui_source_window_base::update_breakpoint_info)
13502 (tui_source_window_base::update_exec_info): Update.
13503 * tui/tui-source.c (tui_source_window::set_contents)
13504 (tui_source_window::showing_source_p)
13505 (tui_source_window::do_scroll_vertical)
13506 (tui_source_window::location_matches_p)
13507 (tui_source_window::line_is_displayed): Update.
13508 (tui_source_window::display_start_addr): New method.
13509 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13510 (tui_disasm_window::do_scroll_vertical)
13511 (tui_disasm_window::location_matches_p): Update.
13512 (tui_disasm_window::display_start_addr): New method.
13513
01b1af32
TT
135142020-02-22 Tom Tromey <tom@tromey.com>
13515
13516 * NEWS: Add entry for gdb.register_window_type.
13517 * tui/tui-layout.h (window_factory): New typedef.
13518 (tui_register_window): Declare.
13519 * tui/tui-layout.c (saved_tui_windows): New global.
13520 (tui_apply_current_layout): Use it.
13521 (tui_register_window): New function.
13522 * python/python.c (do_start_initialization): Call
13523 gdbpy_initialize_tui.
13524 (python_GdbMethods): Add "register_window_type" function.
13525 * python/python-internal.h (gdbpy_register_tui_window)
13526 (gdbpy_initialize_tui): Declare.
13527 * python/py-tui.c: New file.
13528 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13529
fc96d20b
TT
135302020-02-22 Tom Tromey <tom@tromey.com>
13531
13532 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13533
935c78c0
TT
135342020-02-22 Tom Tromey <tom@tromey.com>
13535
13536 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13537 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13538 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13539 (tui_set_win_focus_to): Move from tui-win.c.
13540
0240c8f1
TT
135412020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13544 functions.
13545 (known_window_types): New global.
13546 (tui_get_window_by_name): Reimplement.
13547 (initialize_known_windows): New function.
13548 (validate_window_name): Rewrite.
13549 (_initialize_tui_layout): Call initialize_known_windows.
13550
fdb01f0c
TT
135512020-02-22 Tom Tromey <tom@tromey.com>
13552
13553 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13554 Remove constants.
13555 * tui/tui-winsource.h (struct tui_source_window_base)
13556 <tui_source_window_base>: Remove parameter.
13557 * tui/tui-winsource.c
13558 (tui_source_window_base::tui_source_window_base): Remove
13559 parameter.
13560 (tui_source_window_base::refill): Update.
13561 * tui/tui-stack.h (struct tui_locator_window)
13562 <tui_locator_window>: Update.
13563 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13564 Default the constructor.
13565 * tui/tui-regs.h (struct tui_data_item_window)
13566 <tui_data_item_window>: Default the constructor.
13567 (struct tui_data_window) <tui_data_window>: Likewise.
13568 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13569 Default the constructor.
13570 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13571 Default the constructor.
13572 <type>: Remove.
13573 (struct tui_win_info) <tui_win_info>: Default the constructor.
13574 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13575 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13576 Default the constructor.
13577
865a5aec
TT
135782020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13581 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13582 * tui/tui-win.c (tui_resize_all): Don't call
13583 tui_delete_invisible_windows.
13584 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13585 done.
13586 (tui_set_layout): Update.
13587 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13588 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13589 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13590
e098d18c
TT
135912020-02-22 Tom Tromey <tom@tromey.com>
13592
13593 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13594 correctly.
13595
eb9c8874
TT
135962020-02-22 Tom Tromey <tom@tromey.com>
13597
13598 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13599
7eed1a8e
TT
136002020-02-22 Tom Tromey <tom@tromey.com>
13601
13602 * tui/tui-winsource.h (struct tui_source_window_iterator)
13603 <inner_iterator>: New etytypedef.
13604 <tui_source_window_iterator>: Take "end" parameter.
13605 <tui_source_window_iterator>: Take iterator.
13606 <operator*, advance>: Update.
13607 <m_iter>: Change type.
13608 <m_end>: New field.
13609 (struct tui_source_windows) <begin, end>: Update.
13610 * tui/tui-layout.c (tui_windows): New global.
13611 (tui_apply_current_layout): Clear tui_windows.
13612 (tui_layout_window::apply): Update tui_windows.
13613 * tui/tui-data.h (tui_windows): Declare.
13614 (all_tui_windows): Now inline function.
13615 (class tui_window_iterator, struct all_tui_windows): Remove.
13616
7c043ba6
TT
136172020-02-22 Tom Tromey <tom@tromey.com>
13618
13619 PR tui/17850:
13620 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13621 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13622 "height" argument.
13623 (class tui_layout_window) <get_sizes>: Likewise.
13624 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13625 argument.
13626 <get_sizes>: Add "height" argument.
13627 <m_vertical>: New field.
13628 * tui/tui-layout.c (tui_layout_split::clone): Update.
13629 (tui_layout_split::get_sizes): Add "height" argument.
13630 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13631 (tui_new_layout_command): Parse "-horizontal".
13632 (_initialize_tui_layout): Update help string.
13633 (tui_layout_split::specification): Add "-horizontal" when needed.
13634 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13635 argument.
13636 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13637 New methods.
13638
6bc56648
TT
136392020-02-22 Tom Tromey <tom@tromey.com>
13640
13641 * tui/tui-layout.h (enum tui_adjust_result): New.
13642 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13643 (class tui_layout_window) <adjust_size>: Return
13644 tui_adjust_result. Rewrite.
13645 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13646 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13647
c22fef7e
TT
136482020-02-22 Tom Tromey <tom@tromey.com>
13649
13650 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13651 parameter and return types.
13652 (class tui_layout_base) <specification>: Add "depth".
13653 (class tui_layout_window) <specification>: Add "depth".
13654 (class tui_layout_split) <specification>: Add "depth".
13655 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13656 and return types.
13657 (tui_new_layout_command): Parse sub-layouts.
13658 (_initialize_tui_layout): Update help string.
13659 (tui_layout_window::specification): Add "depth".
13660 (add_layout_command): Update.
13661
ee325b61
TT
136622020-02-22 Tom Tromey <tom@tromey.com>
13663
13664 * NEWS: Add "tui new-layout" item.
13665 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13666 Add new-layout command to help text.
13667 (validate_window_name): New function.
13668 (tui_new_layout_command): New function.
13669 (_initialize_tui_layout): Register "new-layout".
13670 (tui_layout_window::specification): New method.
13671 (tui_layout_window::specification): New method.
13672 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13673 method.
13674 (class tui_layout_window) <specification>: New method.
13675 (class tui_layout_split) <specification>: New method.
13676
416eb92d
TT
136772020-02-22 Tom Tromey <tom@tromey.com>
13678
13679 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13680 * tui/tui-win.c (window_name_completer): Update comment.
13681 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13682 Declare method.
13683 (class tui_layout_window) <replace_window>: Likewise.
13684 (class tui_layout_split) <replace_window>: Likewise.
13685 (tui_set_layout): Don't declare.
13686 (tui_set_initial_layout): Declare function.
13687 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13688 (asm_regs_layout): New globals.
13689 (tui_current_layout, show_layout): Remove.
13690 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13691 (find_layout, tui_apply_layout): New function.
13692 (layout_completer): Remove.
13693 (tui_next_layout): Reimplement.
13694 (tui_next_layout_command): New function.
13695 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13696 (tui_regs_layout): Reimplement.
13697 (tui_regs_layout_command): New function.
13698 (extract_display_start_addr): Rewrite.
13699 (next_layout, prev_layout): Remove.
13700 (tui_layout_window::replace_window): New method.
13701 (tui_layout_split::replace_window): New method.
13702 (destroy_layout): New function.
13703 (layout_list): New global.
13704 (add_layout_command): New function.
13705 (initialize_layouts): Update.
13706 (tui_layout_command): New function.
13707 (_initialize_tui_layout): Install "layout" commands.
13708 * tui/tui-data.h (enum tui_layout_type): Remove.
13709 (tui_current_layout): Don't declare.
13710
0dbc2fc7
TT
137112020-02-22 Tom Tromey <tom@tromey.com>
13712
13713 * tui/tui-regs.c (tui_reg_layout): Remove.
13714 (tui_reg_command): Use tui_regs_layout.
13715 * tui/tui-layout.h (tui_reg_command): Declare.
13716 * tui/tui-layout.c (tui_reg_command): New function.
13717
5afe342e
TT
137182020-02-22 Tom Tromey <tom@tromey.com>
13719
13720 * tui/tui.c (tui_rl_delete_other_windows): Call
13721 tui_remove_some_windows.
13722 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13723 Declare method.
13724 (class tui_layout_window) <remove_windows>: New method.
13725 (class tui_layout_split) <remove_windows>: Declare.
13726 (tui_remove_some_windows): Declare.
13727 * tui/tui-layout.c (tui_remove_some_windows): New function.
13728 (tui_layout_split::remove_windows): New method.
13729
427326a8
TT
137302020-02-22 Tom Tromey <tom@tromey.com>
13731
13732 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13733 * tui/tui-layout.h (tui_next_layout): Declare.
13734 * tui/tui-layout.c (tui_next_layout): New function.
13735
3fe12b6d
TT
137362020-02-22 Tom Tromey <tom@tromey.com>
13737
13738 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13739 correct coordinates.
13740
59b8b5d2
TT
137412020-02-22 Tom Tromey <tom@tromey.com>
13742
13743 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13744 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13745 DATA_WIN case.
13746
2a3d458b
TT
137472020-02-22 Tom Tromey <tom@tromey.com>
13748
13749 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13750 TUI_DISASM_WIN, not tui_win_list.
13751
3f0cbb04
TT
137522020-02-22 Tom Tromey <tom@tromey.com>
13753
13754 * valprint.c (generic_val_print_enum_1)
13755 (val_print_type_code_flags): Style member names.
13756 * rust-lang.c (val_print_struct, rust_print_enum)
13757 (rust_print_struct_def, rust_internal_print_type): Style member
13758 names.
13759 * p-valprint.c (pascal_object_print_value_fields): Style member
13760 names. Only call fprintf_symbol_filtered for static members.
13761 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13762 * f-valprint.c (f_val_print): Style member names.
13763 * f-typeprint.c (f_type_print_base): Style member names.
13764 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13765 call fprintf_symbol_filtered for static members.
13766 (cp_print_class_member): Style member names.
13767 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13768 member names.
13769 * ada-valprint.c (ada_print_scalar): Style enum names.
13770 (ada_val_print_enum): Likewise.
13771 * ada-typeprint.c (print_enum_type): Style enum names.
13772
d4d947ae
TT
137732020-02-21 Tom Tromey <tom@tromey.com>
13774
13775 * psympriv.h (struct partial_symtab): Update comment.
13776
e94e944b
TT
137772020-02-21 Tom Tromey <tromey@adacore.com>
13778
13779 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13780 type is CORE_ADDR.
13781
1eb73179
TV
137822020-02-21 Tom de Vries <tdevries@suse.de>
13783
13784 PR gdb/25534
13785 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13786 if dependencies[i]->user != NULL.
13787
4f180d53
AT
137882020-02-21 Ali Tamur <tamur@google.com>
13789
13790 * dwarf2/read.c (dwarf2_name): Add null check.
13791
22b6cd70
TT
137922020-02-20 Tom Tromey <tom@tromey.com>
13793
13794 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13795 ">=", in binary search.
13796 (dwarf2_find_containing_comp_unit): New overload.
13797 (run_test): New self-test.
13798 (_initialize_dwarf2_read): Register new test.
13799
bd0cf5a6
NC
138002020-02-20 Nelson Chu <nelson.chu@sifive.com>
13801
13802 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13803 * riscv-tdep.h: Likewise.
13804 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13805 rv32-only CSR.
13806 * features/riscv/64bit-csr.xml: Regenerated.
13807
3f702acd
SDJ
138082020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13809 Tom Tromey <tom@tromey.com>
13810
13811 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13812 of 'fputc_unfiltered'.
13813 (putchar_unfiltered): Call 'fputc_unfiltered'.
13814 (fputc_unfiltered): Call 'fputs_unfiltered'.
13815
d13c7322
AB
138162020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13817
13818 * config.in: Regenerate.
13819 * configure: Regenerate.
13820 * configure.ac: Add --with-python-libdir option.
13821 * main.c: Use WITH_PYTHON_LIBDIR.
13822
869d8950
TT
138232020-02-19 Tom Tromey <tom@tromey.com>
13824
13825 * symtab.c (general_symbol_info::compute_and_set_names): Use
13826 obstack_strndup. Simplify call to symbol_set_demangled_name.
13827
298e9637
SM
138282020-02-19 Simon Marchi <simon.marchi@efficios.com>
13829
13830 * dwarf2/read.c (allocate_signatured_type_table,
13831 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13832 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13833 Remove objfile parameter, update all callers.
13834
08410482
DE
138352020-02-19 Doug Evans <dje@google.com>
13836
13837 PR rust/25535
13838 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13839 rust_enum_variant calculation.
13840
dfdeeca1
TT
138412020-02-19 Tom Tromey <tromey@adacore.com>
13842
13843 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13844
2ef5453b
TT
138452020-02-19 Tom Tromey <tromey@adacore.com>
13846
13847 * ada-lang.c (cache_symbol): Use obstack_strdup.
13848
9f1528a1
AB
138492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13850
13851 * configure: Regenerate.
13852
d3c22fa8
TT
138532020-02-19 Tom Tromey <tromey@adacore.com>
13854
13855 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13856 NULL check.
13857
bf84f706
MR
138582020-02-19 Maciej W. Rozycki <macro@wdc.com>
13859
13860 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13861
d1c9b20f
AB
138622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13863
13864 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13865 if GDBSERVER is not defined.
13866 (riscv_tdesc_cache): Likewise, also store const target_desc.
13867 (STATIC_IN_GDB): Define.
13868 (riscv_create_target_description): Update declaration with
13869 STATIC_IN_GDB.
13870 (riscv_lookup_target_description): New function, only define if
13871 GDBSERVER is not defined.
13872 * arch/riscv.h (riscv_create_target_description): Declare only
13873 when GDBSERVER is defined.
13874 (riscv_lookup_target_description): New declaration when GDBSERVER
13875 is not defined.
13876 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13877 (riscv_linux_read_features): ...this, and return
13878 riscv_gdbarch_features instead of target_desc.
13879 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13880 (riscv_linux_read_description): Rename to...
13881 (riscv_linux_read_features): ...this.
13882 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13883 Update to use riscv_gdbarch_features and
13884 riscv_lookup_target_description.
13885 * riscv-tdep.c (riscv_find_default_target_description): Use
13886 riscv_lookup_target_description instead of
13887 riscv_create_target_description.
13888
373d7ac0
SM
138892020-02-18 Simon Marchi <simon.marchi@efficios.com>
13890
13891 * valprint.c (generic_val_print_enum_1): When printing a flag
13892 enum with value 0 and there is no enumerator with value 0, print
13893 just "0" instead of "(unknown: 0x0)".
13894
b29a2df0
SM
138952020-02-18 Simon Marchi <simon.marchi@efficios.com>
13896
13897 * valprint.c (generic_val_print_enum_1): Print unknown part of
13898 flag enum in hex.
13899
6740f0cc
SM
139002020-02-18 Simon Marchi <simon.marchi@efficios.com>
13901
13902 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13903 flag enums to contain duplicate enumerators.
13904 * valprint.c (generic_val_print_enum_1): Update comment.
13905
edd45eb0
SM
139062020-02-18 Simon Marchi <simon.marchi@efficios.com>
13907
13908 * dwarf2/read.c: Include "count-one-bits.h".
13909 (update_enumeration_type_from_children): If an enumerator has
13910 multiple bits set, don't treat the enumeration as a "flag enum".
13911 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13912 of flag enums have 0 or 1 bit set.
13913
6d0cf446
BE
139142020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13915
13916 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13917 conversion.
13918 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13919 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13920 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13921 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13922 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13923
7001c1b7
SM
139242020-02-18 Simon Marchi <simon.marchi@efficios.com>
13925
13926 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13927
fdb61c6c
SM
139282020-02-14 Simon Marchi <simon.marchi@efficios.com>
13929
13930 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13931 displaced_step_closure_up.
13932 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13933 (struct displaced_step_closure_up):
13934 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13935 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13936 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13937 Likewise.
13938 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13939 * gdbarch.c, gdbarch.h: Re-generate.
13940 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13941 displaced_step_closure_up.
13942 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13943 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13944 * infrun.h (displaced_step_closure_up): New type alias.
13945 (struct displaced_step_inferior_state) <step_closure>: Change
13946 type to displaced_step_closure_up.
13947 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13948 displaced_step_closure_up.
13949 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13950
a4a38eb4
TT
139512020-02-14 Tom Tromey <tom@tromey.com>
13952
13953 * minidebug.c (gnu_debug_key): New global.
13954 (find_separate_debug_file_in_section): Use it.
13955
e8217e61
SM
139562020-02-14 Simon Marchi <simon.marchi@efficios.com>
13957
13958 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13959 std::unique_ptr.
13960 * gdbarch.c: Re-generate.
13961 * gdbarch.h: Re-generate.
13962 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13963 change.
13964 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13965 type to std::unique_ptr.
13966 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13967 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13968 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13969 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13970 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13971 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13972 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13973 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13974 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13975
d8d83535
SM
139762020-02-14 Simon Marchi <simon.marchi@efficios.com>
13977
13978 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13979 std::unique_ptr.
13980 (displaced_step_clear): Rename to...
13981 (displaced_step_reset): ... this. Just call displaced->reset ().
13982 (displaced_step_clear_cleanup): Rename to...
13983 (displaced_step_reset_cleanup): ... this.
13984 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13985 (displaced_step_fixup): Likewise.
13986 (resume_1): Likewise.
13987 (handle_inferior_event): Restore child's memory before calling
13988 displaced_step_fixup on the parent.
13989 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13990 to std::unique_ptr.
13991 <step_closure>: Change type to std::unique_ptr.
13992
5f661e03
SM
139932020-02-14 Simon Marchi <simon.marchi@efficios.com>
13994
13995 * arm-tdep.c: Include count-one-bits.h.
13996 (cleanup_block_store_pc): Use count_one_bits.
13997 (cleanup_block_load_pc): Use count_one_bits.
13998 (arm_copy_block_xfer): Use count_one_bits.
13999 (thumb2_copy_block_xfer): Use count_one_bits.
14000 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14001 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14002 (thumb_get_next_pcs_raw): Use count_one_bits.
14003 (arm_get_next_pcs_raw): Use count_one_bits_l.
14004 * arch/arm.c (bitcount): Remove.
14005 * arch/arm.h (bitcount): Remove.
14006
8084e579
TT
140072020-02-14 Tom Tromey <tromey@adacore.com>
14008
14009 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14010 Update.
14011 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14012 * dwarf2/loc.c (call_site_find_chain_1): Return
14013 unique_xmalloc_ptr.
14014 (call_site_find_chain): Likewise.
14015
258bf0ee
RB
140162020-02-14 Richard Biener <rguenther@suse.de>
14017
14018 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14019 on expression with division operators.
14020
f98a8458
AKS
140212020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14022
14023 * MAINTAINERS (Write After Approval): Adding myself.
14024
d1437c0e
TT
140252020-02-12 Tom Tromey <tom@tromey.com>
14026
14027 * event-loop.c (event_data, gdb_event, event_handler_func):
14028 Remove.
14029
3d4560f7
TT
140302020-02-12 Tom Tromey <tom@tromey.com>
14031
14032 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14033 (dwarf2_frame_objfile_data): Add comment.
14034 (find_comp_unit, set_comp_unit): New functions.
14035 (dwarf2_frame_find_fde): Use find_comp_unit.
14036 (dwarf2_build_frame_info): Use set_comp_unit.
14037
21982304
TT
140382020-02-12 Tom Tromey <tom@tromey.com>
14039
14040 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14041 (comp_unit): Don't initialize objfile.
14042 (execute_cfa_program): Add text_offset parameter.
14043 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14044 (dwarf2_frame_cache): Update.
14045 (dwarf2_build_frame_info): Don't set "objfile" member.
14046
4debb237
TT
140472020-02-12 Tom Tromey <tom@tromey.com>
14048
14049 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14050 (decode_frame_entry): Likewise.
14051 (dwarf2_build_frame_info): Update.
14052
0d404d44
TT
140532020-02-12 Tom Tromey <tom@tromey.com>
14054
14055 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14056 (decode_frame_entry_1): Use the comp_unit obstack.
14057
a7a3ae5c
TT
140582020-02-12 Tom Tromey <tom@tromey.com>
14059
14060 * dwarf2/frame.c (struct comp_unit): Add initializers and
14061 constructor.
14062 (dwarf2_frame_objfile_data): Store a comp_unit.
14063 (dwarf2_frame_find_fde): Update.
14064 (dwarf2_build_frame_info): Use "new".
14065
a9d65418
TT
140662020-02-12 Tom Tromey <tom@tromey.com>
14067
14068 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14069 (dwarf2_fde_table): Typedef for std::vector.
14070 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14071 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14072 (decode_frame_entry): Update.
14073 (dwarf2_build_frame_info): Use "new".
14074
7559c217
CB
140752020-02-12 Christian Biesinger <cbiesinger@google.com>
14076
14077 * arm-tdep.c (arm_gdbarch_init): Update.
14078 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14079 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14080 have_neon, is_m>: Change to bool.
14081
aeefc73c
CB
140822020-02-12 Christian Biesinger <cbiesinger@google.com>
14083
14084 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14085
d27b8e5f
TT
140862020-02-12 Tom Tromey <tom@tromey.com>
14087
14088 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14089
cd5900f3
HD
140902020-02-12 Hannes Domani <ssbssa@yahoo.de>
14091
14092 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14093 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14094
f056b22b
TT
140952020-02-11 Tom Tromey <tom@tromey.com>
14096
14097 * psymtab.h: Update comment.
14098
f92ff6b5
TT
140992020-02-11 Tom Tromey <tom@tromey.com>
14100
14101 * gdb_obstack.h (struct auto_obstack): Use
14102 DISABLE_COPY_AND_ASSIGN.
14103
3fd6912b
TT
141042020-02-11 Tom Tromey <tom@tromey.com>
14105
14106 * dwarf2/frame.h (struct objfile): Don't forward declare.
14107
69ed9b74
CB
141082020-02-11 Christian Biesinger <cbiesinger@google.com>
14109
14110 * cris-tdep.c (cris_supply_gregset): Change signature to match
14111 what struct regset expects.
14112 (cris_regset): New struct.
14113 (fetch_core_registers): Remove.
14114 (cris_iterate_over_regset_sections): New function.
14115 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14116 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14117
bda874f6
CB
141182020-02-11 Christian Biesinger <cbiesinger@google.com>
14119
14120 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14121 registers.
14122
754e1564
CB
141232020-02-11 Christian Biesinger <cbiesinger@google.com>
14124
14125 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14126
8ddd8e0e
SM
141272020-02-11 Simon Marchi <simon.marchi@efficios.com>
14128
14129 * configure: Re-generate.
14130
898e7f60
SM
141312020-02-11 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * configure: Re-generate.
14134
58df732b
SM
141352020-02-11 Simon Marchi <simon.marchi@efficios.com>
14136
14137 * acinclude: Update warning.m4 path.
14138 * warning.m4: Move to gdbsupport.
14139
da5bd37e
TT
141402020-02-11 Tom Tromey <tromey@adacore.com>
14141
14142 * remote.c (remote_console_output): Update.
14143 * printcmd.c (printf_command): Update.
14144 * event-loop.c (gdb_wait_for_event): Update.
14145 * linux-nat.c (sigchld_handler): Update.
14146 * remote-sim.c (gdb_os_write_stdout): Update.
14147 (gdb_os_flush_stdout): Update.
14148 (gdb_os_flush_stderr): Update.
14149 (gdb_os_write_stderr): Update.
14150 * exceptions.c (print_exception): Update.
14151 * remote-fileio.c (remote_fileio_func_read): Update.
14152 (remote_fileio_func_write): Update.
14153 * tui/tui.c (tui_enable): Update.
14154 * tui/tui-interp.c (tui_interp::init): Update.
14155 * utils.c (init_page_info): Update.
14156 (putchar_unfiltered, fputc_unfiltered): Update.
14157 (gdb_flush): Update.
14158 (emit_style_escape): Update.
14159 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14160 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14161 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14162 (stderr_file::write): Update.
14163 (stderr_file::puts): Update.
14164 * ui-file.h (ui_file_isatty, ui_file_write)
14165 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14166 (ui_file_puts): Don't declare.
14167
85f0dd3c
TV
141682020-02-10 Tom de Vries <tdevries@suse.de>
14169
14170 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14171 sentinel to char *.
14172
2e927613
TV
141732020-02-09 Tom de Vries <tdevries@suse.de>
14174
14175 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14176 filename if it matches "<artificial>".
14177
6bafc845
HD
141782020-02-09 Hannes Domani <ssbssa@yahoo.de>
14179
14180 * windows-tdep.c (struct enum_value_name): New struct.
14181 (create_enum): New function.
14182 (windows_get_siginfo_type): Create and use enum types.
14183
7928d571
HD
141842020-02-09 Hannes Domani <ssbssa@yahoo.de>
14185
14186 * NEWS: Mention $_siginfo support for Windows.
14187 * windows-nat.c (handle_exception): Set siginfo_er.
14188 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14189 (windows_xfer_siginfo): New function.
14190 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14191 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14192 (init_windows_gdbarch_data): New function.
14193 (get_windows_gdbarch_data): New function.
14194 (windows_get_siginfo_type): New function.
14195 (windows_init_abi): Register windows_get_siginfo_type.
14196 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14197
6751ebae
TT
141982020-02-08 Tom Tromey <tom@tromey.com>
14199
14200 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14201 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14202 <keep>: Declare method.
14203 <m_keep>: Remove member.
14204 <~cutu_reader>: Remove.
14205 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14206 (cutu_reader::cutu_reader): Update.
14207 (cutu_reader::keep): Rename from ~cutu_reader.
14208 (process_psymtab_comp_unit, build_type_psymtabs_1)
14209 (process_skeletonless_type_unit, load_partial_comp_unit)
14210 (load_full_comp_unit, dwarf2_read_addr_index)
14211 (read_signatured_type): Update.
14212
135f5437
TT
142132020-02-08 Tom Tromey <tom@tromey.com>
14214
14215 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14216 "want_partial_unit" parameter.
14217 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14218 Inline check for DW_TAG_partial_unit.
14219 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14220
9f66ff1c
TT
142212020-02-08 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14224 read.c.
14225 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14226 read.c.
14227
c8a7a66f
TT
142282020-02-08 Tom Tromey <tom@tromey.com>
14229
14230 * dwarf2/read.c (read_address): Move to comp-unit.c.
14231 (dwarf2_rnglists_process, dwarf2_ranges_process)
14232 (read_attribute_value, dwarf_decode_lines_1)
14233 (var_decode_location, decode_locdesc): Update.
14234 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14235 read.c. Remove "cu" parameter.
14236 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14237 method.
14238
8266302d
TT
142392020-02-08 Tom Tromey <tom@tromey.com>
14240
14241 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14242 (read_indirect_line_string): Update.
14243 * dwarf2/comp-unit.c (read_offset): Remove.
14244 (read_comp_unit_head): Update.
14245 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14246 method.
14247 (read_offset): Don't declare.
14248
4057dfde
TT
142492020-02-08 Tom Tromey <tom@tromey.com>
14250
14251 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14252 * dwarf2/read.c (struct comp_unit_head): Move to
14253 dwarf2/comp-unit.h.
14254 (enum class rcuh_kind): Move to comp-unit.h.
14255 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14256 (read_comp_unit_head, error_check_comp_unit_head)
14257 (read_and_check_comp_unit_head): Move to comp-unit.c.
14258 (read_offset, dwarf_unit_type_name): Likewise.
14259 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14260 (cutu_reader::cutu_reader, read_call_site_scope)
14261 (find_partial_die, follow_die_offset): Update.
14262 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14263
24aa364d
TT
142642020-02-08 Tom Tromey <tom@tromey.com>
14265
14266 * dwarf2/read.c (read_offset_1): Move to leb.c.
14267 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14268 (dwarf_decode_macro_bytes): Update.
14269 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14270 * dwarf2/leb.h (read_offset): Declare.
14271
2c7d5afc
TT
142722020-02-08 Tom Tromey <tom@tromey.com>
14273
14274 * dwarf2/read.c (dwarf2_section_size): Remove.
14275 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14276 Update.
14277 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14278
4075cb26
TT
142792020-02-08 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2/read.c (read_initial_length): Move to leb.c.
14282 * dwarf2/leb.h (read_initial_length): Declare.
14283 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14284 handle_nonstd parameter.
14285 * dwarf2/frame.c (read_initial_length): Remove.
14286 (decode_frame_entry_1): Update.
14287
09ba997f
TT
142882020-02-08 Tom Tromey <tom@tromey.com>
14289
14290 * dwarf2/loc.c (dwarf2_find_location_expression)
14291 (dwarf_evaluate_loc_desc::get_tls_address)
14292 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14293 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14294 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14295 (dwarf2_compile_property_to_c)
14296 (dwarf2_loc_desc_get_symbol_read_needs)
14297 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14298 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14299 (loclist_describe_location, loclist_tracepoint_var_ref)
14300 (loclist_generate_c_location): Update.
14301 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14302 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14303 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14304 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14305 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14306 (dwarf2_per_cu_data::addr_size)
14307 (dwarf2_per_cu_data::ref_addr_size)
14308 (dwarf2_per_cu_data::text_offset)
14309 (dwarf2_per_cu_data::addr_type): Now methods.
14310 (per_cu_header_read_in): Make per_cu "const".
14311 (dwarf2_version): Remove.
14312 (dwarf2_per_cu_data::int_type): Now a method.
14313 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14314 (set_die_type, read_array_type, read_subrange_index_type)
14315 (read_tag_string_type, read_subrange_type): Update.
14316 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14317 offset_size, ref_addr_size, text_offset, addr_type, version,
14318 objfile, int_type, addr_sized_int_type>: Declare methods.
14319
96c738c0
TT
143202020-02-08 Tom Tromey <tom@tromey.com>
14321
14322 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14323 Move earlier.
14324
8fdd972c
TT
143252020-02-08 Tom Tromey <tom@tromey.com>
14326
14327 * dwarf2/read.h (dwarf_line_debug): Declare.
14328 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14329 * dwarf2/read.c: Move line_header code to new files.
14330 (dwarf_line_debug): No longer static.
14331 * dwarf2/line-header.c: New file.
14332 * dwarf2/line-header.h: New file.
14333
03075812
TT
143342020-02-08 Tom Tromey <tom@tromey.com>
14335
14336 * dwarf2/read.c (struct line_header) <file_full_name,
14337 file_file_name>: Return unique_xmalloc_ptr.
14338 (line_header::file_file_name): Update.
14339 (line_header::file_full_name): Update.
14340 (dw2_get_file_names_reader): Update.
14341 (macro_start_file): Update.
14342
bb822404
TT
143432020-02-08 Tom Tromey <tom@tromey.com>
14344
14345 * dwarf2/read.c (struct line_header) <file_full_name,
14346 file_file_name>: Declare methods.
14347 (dw2_get_file_names_reader): Update.
14348 (file_file_name): Now a method.
14349 (file_full_name): Likewise.
14350 (macro_start_file): Update.
14351
009b64fc
TT
143522020-02-08 Tom Tromey <tom@tromey.com>
14353
14354 * dwarf2/read.c (dwarf_always_disassemble)
14355 (show_dwarf_always_disassemble): Move to loc.c.
14356 (_initialize_dwarf2_read): Move "always-disassemble" registration
14357 to loc.c.
14358 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14359 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14360 static.
14361 (show_dwarf_always_disassemble): Move from read.c.
14362 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14363
5895093f
TT
143642020-02-08 Tom Tromey <tom@tromey.com>
14365
14366 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14367 (create_quick_file_names_table): Return htab_up.
14368 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14369 Update.
14370 * dwarf2/read.h (struct dwarf2_per_objfile)
14371 <quick_file_names_table>: Now htab_up.
14372
b3b32279
TT
143732020-02-08 Tom Tromey <tom@tromey.com>
14374
14375 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14376
1d33d811
TT
143772020-02-08 Tom Tromey <tom@tromey.com>
14378
14379 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14380 Rewrite.
14381 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14382 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14383 (abbrev_table::abbrev_table): No longer inline.
14384 (ABBREV_HASH_SIZE): Remove.
14385 (abbrev_table::m_abbrevs): Now an htab_up.
14386
86de1d91
TT
143872020-02-08 Tom Tromey <tom@tromey.com>
14388
14389 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14390 (cutu_reader): Update.
14391 (build_type_psymtabs_1): Update.
14392 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14393 (abbrev_table::alloc_abbrev): Update.
14394 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14395 (abbrev_table::read): New static method, renamed from
14396 abbrev_table_read_table.
14397 (abbrev_table::alloc_abbrev)
14398 (abbrev_table::add_abbrev): Now private.
14399 (abbrev_table::abbrev_table): Now private.
14400 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14401
0335378b
TT
144022020-02-08 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14405 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14406 htab_up.
14407
48b490f2
TT
144082020-02-08 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14411 htab_up.
14412 (lookup_dwo_unit_in_dwp): Update.
14413 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14414 on obstack.
14415
bc68fb19
TT
144162020-02-08 Tom Tromey <tom@tromey.com>
14417
14418 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14419 obstack.
14420
d15acc42
TT
144212020-02-08 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14424 line_header_hash.
14425 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14426 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14427 Change type to htab_up.
14428
eaa5fa8b
TT
144292020-02-08 Tom Tromey <tom@tromey.com>
14430
14431 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14432 htab_up. Don't allocate on obstack.
14433 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14434 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14435 Change type to htab_up.
14436
b0b6a987
TT
144372020-02-08 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14440 Change type to htab_up.
14441 * dwarf2/read.c (create_signatured_type_table_from_index)
14442 (create_signatured_type_table_from_debug_names)
14443 (create_all_type_units, add_type_unit)
14444 (lookup_dwo_signatured_type, lookup_signatured_type)
14445 (process_skeletonless_type_unit): Update.
14446 (create_debug_type_hash_table, create_debug_types_hash_table):
14447 Change type of types_htab.
14448 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14449 htab_up. Don't allocate on obstack.
14450 (create_cus_hash_table): Change type of cus_htab parameter.
14451 (struct dwo_file) <cus, tus>: Now htab_up.
14452 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14453 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14454 (queue_and_load_all_dwo_tus): Update.
14455 * dwarf2/index-write.c (write_gdbindex): Update.
14456 (write_debug_names): Update.
14457
39856def
TT
144582020-02-08 Tom Tromey <tom@tromey.com>
14459
14460 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14461 dwarf2/read.c. Remove "next" member. Add constructor ntad
14462 destructor.
14463 (struct dwarf2_per_objfile) <queue>: New member.
14464 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14465 dwarf2/read.h.
14466 (dwarf2_queue, dwarf2_queue_tail): Remove.
14467 (class dwarf2_queue_guard): Add parameter to constructor. Use
14468 DISABLE_COPY_AND_ASSIGN.
14469 <m_per_objfile>: New member.
14470 <~dwarf2_queue_guard>: Rewrite.
14471 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14472 Update.
14473 (~dwarf2_queue_item): New.
14474
3e225074
TT
144752020-02-08 Tom Tromey <tom@tromey.com>
14476
14477 * dwarf2/read.c (struct die_info) <has_children>: New member.
14478 (dw2_get_file_names_reader): Remove has_children.
14479 (dw2_get_file_names): Update.
14480 (read_cutu_die_from_dwo): Remove has_children.
14481 (cutu_reader::init_tu_and_read_dwo_dies)
14482 (cutu_reader::cutu_reader): Update.
14483 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14484 Remove has_children.
14485 (build_type_psymtabs_1, process_skeletonless_type_unit)
14486 (load_partial_comp_unit, load_full_comp_unit): Update.
14487 (create_dwo_cu_reader): Remove has_children.
14488 (create_cus_hash_table, read_die_and_children): Update.
14489 (read_full_die_1,read_full_die): Remove has_children.
14490 (read_signatured_type): Update.
14491 (class cutu_reader) <has_children>: Remove.
14492
82ca8957
TT
144932020-02-08 Tom Tromey <tom@tromey.com>
14494
14495 * dwarf2/expr.c: Rename from dwarf2expr.c.
14496 * dwarf2/expr.h: Rename from dwarf2expr.h.
14497 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14498 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14499 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14500 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14501 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14502 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14503 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14504 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14505 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14506 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14507 * dwarf2/loc.c: Rename from dwarf2loc.c.
14508 * dwarf2/loc.h: Rename from dwarf2loc.h.
14509 * dwarf2/read.c: Rename from dwarf2read.c.
14510 * dwarf2/read.h: Rename from dwarf2read.h.
14511 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14512 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14513 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14514 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14515 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14516 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14517 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14518 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14519 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14520 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14521 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14522 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14523 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14524 Update.
14525 * Makefile.in (COMMON_SFILES): Update.
14526 (HFILES_NO_SRCDIR): Update.
14527
9e35d499
TT
145282020-02-08 Tom Tromey <tom@tromey.com>
14529
14530 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14531 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14532
1eba2311
TT
145332020-02-08 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2read.h (struct die_info): Don't declare.
14536
e41c2da2
TT
145372020-02-08 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2read.h (die_info_ptr): Remove typedef.
14540
4fc6c0d5
TT
145412020-02-08 Tom Tromey <tom@tromey.com>
14542
14543 * dwarf2read.c (read_call_site_scope)
14544 (handle_data_member_location, dwarf2_add_member_fn)
14545 (mark_common_block_symbol_computed, read_common_block)
14546 (attr_to_dynamic_prop, partial_die_info::read)
14547 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14548 (dwarf2_symbol_mark_computed, set_die_type): Update.
14549 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14550 method.
14551 (attr_form_is_block): Don't declare.
14552 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14553
cd6c91b4
TT
145542020-02-08 Tom Tromey <tom@tromey.com>
14555
14556 * dwarf2read.c (dwarf2_find_base_address, )
14557 (read_call_site_scope, rust_containing_type)
14558 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14559 (handle_data_member_location, dwarf2_add_member_fn)
14560 (get_alignment, read_structure_type, process_structure_scope)
14561 (mark_common_block_symbol_computed, read_common_block)
14562 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14563 (partial_die_info::read, read_attribute_value, new_symbol)
14564 (lookup_die_type, dwarf2_get_ref_die_offset)
14565 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14566 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14567 (dwarf2_symbol_mark_computed): Update.
14568 * dwarf2/attribute.h (struct attribute) <value_as_address,
14569 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14570 methods.
14571 (value_as_address, attr_form_is_section_offset)
14572 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14573 * dwarf2/attribute.c (attribute::value_as_address)
14574 (attribute::form_is_section_offset, attribute::form_is_constant)
14575 (attribute::form_is_ref): Now methods.
14576
162dce55
TT
145772020-02-08 Tom Tromey <tom@tromey.com>
14578
14579 * dwarf2read.c (struct attribute, DW_STRING)
14580 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14581 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14582 (attr_form_is_block, attr_form_is_section_offset)
14583 (attr_form_is_constant, attr_form_is_ref): Move.
14584 * dwarf2/attribute.h: New file.
14585 * dwarf2/attribute.c: New file, from dwarf2read.c.
14586 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14587
3054dd54
TT
145882020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14591 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14592 Move.
14593 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14594 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14595 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14596 abbrev.c.
14597 * dwarf2/abbrev.h: New file.
14598 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14599 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14600
96b79293
TT
146012020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14604 (dwarf2_section_size, dwarf2_get_section_info)
14605 (create_signatured_type_table_from_debug_names)
14606 (create_addrmap_from_aranges, read_debug_names_from_section)
14607 (get_gdb_index_contents_from_section, read_comp_unit_head)
14608 (error_check_comp_unit_head, read_abbrev_offset)
14609 (create_debug_type_hash_table, init_cu_die_reader)
14610 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14611 (read_comp_units_from_section, create_cus_hash_table)
14612 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14613 (create_dwp_v2_section, dwarf2_rnglists_process)
14614 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14615 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14616 (read_indirect_string_from_dwz, read_addr_index_1)
14617 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14618 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14619 (fill_in_loclist_baton): Update.
14620 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14621 get_containing_section, get_bfd_owner, get_bfd_section,
14622 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14623 (dwarf2_read_section, get_section_name, get_section_file_name)
14624 (get_containing_section, get_section_bfd_owner)
14625 (get_section_bfd_section, get_section_name, get_section_file_name)
14626 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14627 declare.
14628 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14629 (dwarf2_section_info::get_bfd_owner)
14630 (dwarf2_section_info::get_bfd_section)
14631 (dwarf2_section_info::get_name)
14632 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14633 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14634 (dwarf2_section_info::read): Now methods.
14635 * dwarf-index-write.c (class debug_names): Update.
14636
2c86cff9
TT
146372020-02-08 Tom Tromey <tom@tromey.com>
14638
14639 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14640 Move to dwarf2/section.h.
14641 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14642 (get_section_bfd_section, get_section_name)
14643 (get_section_file_name, get_section_id, get_section_flags)
14644 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14645 dwarf2/section.c.
14646 * dwarf2/section.h: New file.
14647 * dwarf2/section.c: New file, from dwarf2read.c.
14648 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14649
f4382c45
TT
146502020-02-08 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14653 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14654 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14655 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14656 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14657 * dwarf2/leb.h: New file, from dwarf2read.c.
14658 * dwarf2/leb.c: New file, from dwarf2read.c.
14659 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14660 Remove.
14661 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14662 (COMMON_SFILES): Add dwarf2/leb.c.
14663
01840b7a
JB
146642020-02-08 Joel Brobecker <brobecker@adacore.com>
14665
14666 GDB 9.1 released.
14667
dfcb27e4
IB
146682020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14669
14670 PR gdb/25190:
aac66a4c
SM
14671 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14672 * gdb/remote.c (remote_console_output): Update.
14673 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14674 (ui_file_puts): ...this.
14675 * gdb/ui-file.h (ui_file_puts): Add declaration.
14676 * gdb/utils.c (emit_style_escape): Update.
14677 (flush_wrap_buffer): Update.
14678 (fputs_maybe_filtered): Update.
14679 (fputs_unfiltered): Add function.
dfcb27e4 14680
faa17681
IB
146812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14682
aac66a4c
SM
14683 * gdb/event-loop.c (gdb_wait_for_event): Update.
14684 * gdb/printcmd.c (printf_command): Update.
14685 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14686 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14687 (gdb_os_flush_stderr): Update.
14688 * gdb/remote.c (remote_console_output): Update.
14689 * gdb/ui-file.c (gdb_flush): Rename to...
14690 (ui_file_flush): ...this.
14691 (stderr_file::write): Update.
14692 (stderr_file::puts): Update.
14693 * gdb/ui-file.h (gdb_flush): Rename to...
14694 (ui_file_flush): ...this.
14695 * gdb/utils.c (gdb_flush): Add function.
14696 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14697
5abbbe1d
TT
146982020-02-07 Tom Tromey <tromey@adacore.com>
14699
14700 PR breakpoints/24915:
14701 * source.c (find_and_open_source): Do not check basenames_may_differ.
14702
919adfe8
TT
147032020-02-07 Tom Tromey <tom@tromey.com>
14704
14705 * README: Update gdbserver documentation.
14706 * gdbserver: Move to top level.
14707 * configure.tgt (build_gdbserver): Remove.
14708 * configure.ac: Remove --enable-gdbserver.
14709 * configure: Rebuild.
14710 * Makefile.in (distclean): Don't mention gdbserver.
14711
1d5d29e7
SV
147122020-02-06 Shahab Vahedi <shahab@synopsys.com>
14713
14714 * source-cache.c (source_cache::ensure): Surround
14715 get_plain_source_lines with a try/catch.
14716 (source_cache::get_line_charpos): Get rid of try/catch
14717 and only check for the return value of "ensure".
14718 * tui/tui-source.c (tui_source_window::set_contents):
14719 Simplify "nlines" calculation.
14720
6eb1129c
SV
147212020-02-06 Shahab Vahedi <shahab@synopsys.com>
14722
14723 * MAINTAINERS (Write After Approval): Add myself.
14724
c6a42d11
CB
147252020-02-05 Christian Biesinger <cbiesinger@google.com>
14726
14727 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14728 function call.
14729
c8ecdda6
CB
147302020-02-05 Christian Biesinger <cbiesinger@google.com>
14731
14732 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14733
f6480e70
MR
147342020-02-05 Maciej W. Rozycki <macro@wdc.com>
14735
14736 * nat/riscv-linux-tdesc.h: New file.
14737 * nat/riscv-linux-tdesc.c: New file, taking code from...
14738 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14739 ... here.
14740 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14741 NATDEPFILES.
14742
dcc9fbc6
AB
147432020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14744
14745 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14746 we don't set the fake simulator ptid to the null_ptid.
14747
719546c4
SM
147482020-02-03 Simon Marchi <simon.marchi@efficios.com>
14749
14750 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14751 * gdbthread.h (class thread_info) <resumed>: Likewise.
14752 * infrun.c (resume_1): Likewise.
14753 (proceed): Likewise.
14754 (infrun_thread_stop_requested): Likewise.
14755 (stop_all_threads): Likewise.
14756 (handle_inferior_event): Likewise.
14757 (restart_threads): Likewise.
14758 (finish_step_over): Likewise.
14759 (keep_going_stepped_thread): Likewise.
14760 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14761 (linux_handle_extended_wait): Likewise.
14762 * record-btrace.c (get_thread_current_frame_id): Likewise.
14763 * record-full.c (record_full_wait_1): Likewise.
14764 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14765 * target.c (target_resume): Likewise.
14766 * thread.c (set_running_thread): Likewise.
14767
e409c542
AKS
147682020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14769
14770 * f-valprint.c (f77_print_array_1): Changed datatype of index
14771 variable to LONGEST from int to enable it to contain bound
14772 values correctly.
14773
ee98c0da
MR
147742020-02-03 Maciej W. Rozycki <macro@wdc.com>
14775
14776 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14777 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14778 offsets according to FLEN determined.
14779 (riscv_linux_nat_target::read_description): Determine FLEN
14780 dynamically.
14781 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14782 according to FLEN determined.
14783 (riscv_linux_nat_target::store_registers): Likewise.
14784
aa66aac4
SV
147852020-02-01 Shahab Vahedi <shahab@synopsys.com>
14786
14787 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14788 when reg->group is empty and reggroup is not.
14789
fd9faca8
TT
147902020-01-31 Tom Tromey <tromey@adacore.com>
14791
14792 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14793 Call beneath target's mourn_inferior after unpushing.
14794
42330a68
AB
147952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14796
14797 PR tui/9765
14798 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14799 have enough lines to fill the screen, still return the lowest
14800 address we found.
14801
7a27a45b
AB
148022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14803
14804 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14805 '-', '<', and '>' commands.
14806
c47f70e2
PA
148072020-01-29 Pedro Alves <palves@redhat.com>
14808 Sergio Durigan Junior <sergiodj@redhat.com>
14809
14810 * infcmd.c (construct_inferior_arguments): Assert that
14811 'argc' is greater than 0.
14812
5133a315
LM
148132020-01-29 Luis Machado <luis.machado@linaro.org>
14814
14815 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14816 (BRK_INSN_MASK): Define to 0xd4200000.
14817 (aarch64_program_breakpoint_here_p): New function.
14818 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14819 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14820 breakpoint.c.
14821 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14822 breakpoint.h
14823 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14824 call gdbarch_program_breakpoint_here_p.
14825 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14826 default_program_breakpoint_here_p, changed return type to bool and
14827 simplified.
14828 * breakpoint.h (program_breakpoint_here): Moved prototype to
14829 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14830 return type to bool.
14831 * gdbarch.c: Regenerate.
14832 * gdbarch.h: Regenerate.
14833 * gdbarch.sh (program_breakpoint_here_p): New method.
14834 * infrun.c (handle_signal_stop): Call
14835 gdbarch_program_breakpoint_here_p.
14836
168f8c6b
TT
148372020-01-26 Tom Tromey <tom@tromey.com>
14838
14839 * ctfread.c (struct ctf_fp_info): Reindent.
14840 (_initialize_ctfread): Remove.
14841
128a391f
TT
148422020-01-26 Tom Tromey <tom@tromey.com>
14843
14844 * psymtab.c (partial_map_expand_apply)
14845 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14846 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14847 (psym_print_stats, psym_expand_symtabs_for_function)
14848 (psym_map_symbol_filenames, psym_map_matching_symbols)
14849 (psym_expand_symtabs_matching)
14850 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14851 (maintenance_check_psymtabs): Use new methods.
14852 * psympriv.h (struct partial_symtab) <readin_p,
14853 get_compunit_symtab>: New methods.
14854 <readin, compunit_symtab>: Remove members.
14855 (struct standard_psymtab): New.
14856 (struct legacy_psymtab): Derive from standard_psymtab.
14857 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14858 standard_psymtab.
14859 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14860
0494dbec
TT
148612020-01-26 Tom Tromey <tom@tromey.com>
14862
14863 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14864 read_dependencies. Add assert.
14865 * psymtab.c (partial_symtab::read_dependencies): New method.
14866 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14867 method.
14868 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14869 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14870 read_dependencies.
14871 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14872 Add assert.
14873
8566b89b
TT
148742020-01-26 Tom Tromey <tom@tromey.com>
14875
14876 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14877 Call expand_psymtab.
14878 (xcoff_read_symtab): Call expand_psymtab.
14879 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14880 legacy_expand_psymtab.
14881 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14882 method.
14883 (struct legacy_psymtab) <expand_psymtab>: Implement.
14884 <legacy_expand_psymtab>: New member.
14885 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14886 (parse_partial_symbols): Set legacy_expand_psymtab.
14887 (psymtab_to_symtab_1): Change argument order. Call
14888 expand_psymtab.
14889 (new_psymtab): Set legacy_expand_psymtab.
14890 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14891 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14892 expand_psymtab.
14893 (dwarf2_psymtab::expand_psymtab): Rename from
14894 psymtab_to_symtab_1. Call expand_psymtab.
14895 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14896 (dbx_end_psymtab): Likewise.
14897 (dbx_psymtab_to_symtab_1): Change argument order. Call
14898 expand_psymtab.
14899 (dbx_read_symtab): Call expand_psymtab.
14900 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14901 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14902 (ctf_psymtab::read_symtab): Call expand_psymtab.
14903
077cbab2
TT
149042020-01-26 Tom Tromey <tom@tromey.com>
14905
14906 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14907 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14908 messages.
14909 * mdebugread.c (mdebug_read_symtab): Remove prints.
14910 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14911 assert.
14912 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14913
891813be
TT
149142020-01-26 Tom Tromey <tom@tromey.com>
14915
14916 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14917 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14918 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14919 legacy_symtab.
14920 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14921 * psymtab.c (psymtab_to_symtab): Call method.
14922 (dump_psymtab): Update.
14923 * psympriv.h (struct partial_symtab): Add virtual destructor.
14924 <read_symtab>: New method.
14925 (struct legacy_symtab): New.
14926 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14927 (struct pst_map) <pst>: Now a legacy_psymtab.
14928 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14929 (new_psymtab): Use legacy_psymtab.
14930 * dwarf2read.h (struct dwarf2_psymtab): New.
14931 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14932 * dwarf2read.c (dwarf2_create_include_psymtab)
14933 (dwarf2_build_include_psymtabs, create_type_unit_group)
14934 (create_partial_symtab, process_psymtab_comp_unit_reader)
14935 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14936 (set_partial_user): Use dwarf2_psymtab.
14937 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14938 (psymtab_to_symtab_1, process_full_comp_unit)
14939 (process_full_type_unit, dwarf2_ranges_read)
14940 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14941 (dwarf_decode_lines): Use dwarf2_psymtab.
14942 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14943 (add_address_entry_worker, write_one_signatured_type)
14944 (recursively_count_psymbols, recursively_write_psymbols)
14945 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14946 (write_debug_names): Likewise.
14947 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14948 <pst>: Now a legacy_psymtab.
14949 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14950 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14951 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14952 * ctfread.c (struct ctf_psymtab): New.
14953 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14954 ctf_psymtab.
14955 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14956 (create_partial_symtab): Return a ctf_psymtab.
14957 (scan_partial_symbols): Update.
14958
c3693a1d
TT
149592020-01-26 Tom Tromey <tom@tromey.com>
14960
14961 * xcoffread.c (xcoff_start_psymtab): Use new.
14962 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14963 renamed from start_psymtab_common.
14964 * psympriv.h (struct partial_symtab): Add new constructor.
14965 (start_psymtab_common): Don't declare.
14966 * mdebugread.c (parse_partial_symbols): Use new.
14967 * dwarf2read.c (create_partial_symtab): Use new.
14968 * dbxread.c (start_psymtab): Use new.
14969 * ctfread.c (create_partial_symtab): Use new.
14970
32caafd0
TT
149712020-01-26 Tom Tromey <tom@tromey.com>
14972
14973 * xcoffread.c (xcoff_end_psymtab): Use new.
14974 * psymtab.c (start_psymtab_common): Use new.
14975 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14976 Update.
14977 * psympriv.h (struct partial_symtab): Add parameters to
14978 constructor. Don't inline.
14979 (allocate_psymtab): Don't declare.
14980 * mdebugread.c (new_psymtab): Use new.
14981 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14982 * dbxread.c (dbx_end_psymtab): Use new.
14983
abaa2f23
TT
149842020-01-26 Tom Tromey <tom@tromey.com>
14985
14986 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14987 allocate_psymtab. Update documentation.
14988 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14989 allocate_psymtab. Do not use new.
14990 (allocate_psymtab): Use new. Update.
14991
6d94535f
TT
149922020-01-26 Tom Tromey <tom@tromey.com>
14993
14994 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14995 * psymtab.c (psym_print_stats): Update.
14996 * psympriv.h (struct partial_symtab) <readin,
14997 psymtabs_addrmap_supported, anonymous>: Now bool.
14998 * mdebugread.c (psymtab_to_symtab_1): Update.
14999 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15000 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15001 (process_full_comp_unit, process_full_type_unit): Update.
15002 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15003 * ctfread.c (psymtab_to_symtab): Update.
15004
6f17252b
TT
150052020-01-26 Tom Tromey <tom@tromey.com>
15006
15007 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15008 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15009 * psymtab.c (psymtab_storage): Delete psymtabs.
15010 (psymtab_storage::allocate_psymtab): Use new.
15011 (psymtab_storage::discard_psymtab): Use delete.
15012 * psympriv.h (struct partial_symtab): Add constructor and
15013 initializers.
15014
f6f1cebc
TT
150152020-01-26 Tom Tromey <tom@tromey.com>
15016
15017 * machoread.c: Do not include psympriv.h.
15018
e47e48f6
PW
150192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15020
15021 * NEWS: Mention the new option and the set/show commands.
15022
a2fedca9
PW
150232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15024
15025 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15026 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15027 (validate_exec_file): New variables, enums, functions.
15028 (exec_file_locate_attach, print_section_info): Style the filenames.
15029 (_initialize_exec): Install show_exec_file_mismatch_command and
15030 set_exec_file_mismatch_command.
15031 * gdbcore.h (validate_exec_file): Declare.
15032 * infcmd.c (attach_command): Call validate_exec_file.
15033 * remote.c ( remote_target::remote_add_inferior): Likewise.
15034
7ffa82e1
AB
150352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15036
15037 * frame.c (find_frame_sal): Move call to get_next_frame into more
15038 inner scope.
15039 * inline-frame.c (inilne_state) <inline_state>: Update argument
15040 types.
15041 (inilne_state) <skipped_symbol>: Rename to...
15042 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15043 (skip_inline_frames): Build vector of skipped symbols and use this
15044 to reate the inline_state.
15045 (inline_skipped_symbol): Add a comment and some assertions, fetch
15046 skipped symbol from the list.
15047
3d92a3e3
AB
150482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15049
15050 * buildsym.c (lte_is_less_than): Delete.
15051 (buildsym_compunit::end_symtab_with_blockvector): Create local
15052 lambda function to sort line table entries, and use
15053 std::stable_sort instead of std::sort.
15054 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15055 markers when looking for a previous line.
15056
94a72be7
AB
150572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15058
15059 * dwarf2read.c (lnp_state_machine::record_line): Include
15060 end_sequence parameter in debug print out. Record the line if we
15061 are at an end_sequence marker even if it's not the start of a
15062 statement.
15063 * symmisc.c (maintenance_print_one_line_table): Print end of
15064 sequence markers with 'END' not '0'.
15065
53af73bf
PA
150662020-01-24 Pedro Alves <palves@redhat.com>
15067
15068 PR gdb/25410
15069 * thread.c (scoped_restore_current_thread::restore): Use
15070 switch_to_inferior_no_thread.
15071 * exec.c: Include "progspace-and-thread.h".
15072 (add_target_sections, remove_target_sections):
15073 scoped_restore_current_pspace_and_thread instead of
15074 scoped_restore_current_thread.
15075 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15076 and aspace to the inferior before calling clone_program_space.
15077 Remove stale comment.
15078
3050c6f4
CB
150792020-01-24 Christian Biesinger <cbiesinger@google.com>
15080
15081 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15082 (arm_netbsd_nat_target::fetch_registers): ...this.
15083 (arm_nbsd_nat_target::store_registers): Rename to...
15084 (arm_netbsd_nat_target::store_registers): ...this.
15085
73685c7e
CB
150862020-01-24 Christian Biesinger <cbiesinger@google.com>
15087
15088 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15089 register_t.
15090
89203d40
CB
150912020-01-24 Christian Biesinger <cbiesinger@google.com>
15092
15093 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15094 Update comment.
15095 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15096 Likewise.
15097 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15098 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15099 the correct replacement (iterate_over_regset_sections).
15100 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15101 Update comment.
15102
1ba1ac88
AB
151032020-01-24 Graham Markall <graham.markall@embecosm.com>
15104
15105 PR gdb/23718
15106 * gdb/python/python.c (execute_gdb_command): Call
15107 async_enable_stdin in catch block.
15108
f3364a6d
AB
151092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15110
15111 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15112 SWITCH_THRU_ALL_UIS.
15113
733d0a67
AB
151142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15115
15116 PR tui/9765
15117 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15118 comment, add extra parameter, and update to store previous symbol
15119 when appropriate.
15120 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15121 add extra parameter.
15122 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15123 remove unneeded parameter, add try/catch around gdb_print_insn,
15124 rewrite to add items to asm_lines vector.
15125 (tui_find_backward_disassembly_start_address): New function.
15126 (tui_find_disassembly_address): Updated throughout.
15127 (tui_disasm_window::set_contents): Update for changes to
15128 tui_disassemble.
15129 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15130 number of lines to scroll.
15131
b3b3bada
SM
151322020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15133
15134 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15135 (SECT_OFF_DATA): Likewise.
15136 (SECT_OFF_RODATA): Likewise.
15137 (SECT_OFF_TEXT): Likewise.
15138 (SECT_OFF_BSS): Likewise.
15139 (struct objfile) <text_section_offset, data_section_offset>: New
15140 methods.
15141 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15142 objfile::text_section_offset.
15143 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15144 * coffread.c (coff_symtab_read): Likewise.
15145 (enter_linenos): Likewise.
15146 (process_coff_symbol): Likewise.
15147 * ctfread.c (get_objfile_text_range): Likewise.
15148 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15149 Use objfile::data_section_offset.
15150 * dwarf2-frame.c (execute_cfa_program): Use
15151 objfile::text_section_offset.
15152 (dwarf2_frame_find_fde): Likewise.
15153 * dwarf2read.c (create_addrmap_from_index): Likewise.
15154 (create_addrmap_from_aranges): Likewise.
15155 (dw2_find_pc_sect_compunit_symtab): Likewise.
15156 (process_psymtab_comp_unit_reader): Likewise.
15157 (add_partial_symbol): Likewise.
15158 (add_partial_subprogram): Likewise.
15159 (process_full_comp_unit): Likewise.
15160 (read_file_scope): Likewise.
15161 (read_func_scope): Likewise.
15162 (read_lexical_block_scope): Likewise.
15163 (read_call_site_scope): Likewise.
15164 (dwarf2_rnglists_process): Likewise.
15165 (dwarf2_ranges_process): Likewise.
15166 (dwarf2_ranges_read): Likewise.
15167 (dwarf_decode_lines_1): Likewise.
15168 (new_symbol): Likewise.
15169 (dwarf2_fetch_die_loc_sect_off): Likewise.
15170 (dwarf2_per_cu_text_offset): Likewise.
15171 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15172 * hppa-tdep.c (read_unwind_info): Likewise.
15173 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15174 * psympriv.h (struct partial_symtab): Likewise.
15175 * psymtab.c (find_pc_sect_psymtab): Likewise.
15176 * solib-svr4.c (enable_break): Likewise.
15177 * stap-probe.c (relocate_address): Use
15178 objfile::data_section_offset.
15179 * xcoffread.c (enter_line_range): Use
15180 objfile::text_section_offset.
15181 (read_xcoff_symtab): Likewise.
15182
ab53f382
SM
151832020-01-23 Simon Marchi <simon.marchi@efficios.com>
15184
15185 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15186 declaration to narrower scopes.
15187
e7eee665
SM
151882020-01-23 Simon Marchi <simon.marchi@efficios.com>
15189
15190 * darwin-nat.h (struct darwin_exception_msg, enum
15191 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15192 Move up.
15193 (class darwin_nat_target) <wait_1, check_new_threads,
15194 decode_exception_message, decode_message, stop_inferior,
15195 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15196 * darwin-nat.c (darwin_check_new_threads): Rename to...
15197 (darwin_nat_target::check_new_threads): ... this.
15198 (darwin_suspend_inferior_it): Remove.
15199 (darwin_decode_exception_message): Rename to...
15200 (darwin_nat_target::decode_exception_message): ... this.
15201 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15202 (darwin_decode_message): Rename to...
15203 (darwin_nat_target::decode_message): ... this.
15204 (cancel_breakpoint): Rename to...
15205 (darwin_nat_target::cancel_breakpoint): ... this.
15206 (darwin_wait): Rename to...
15207 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15208 instead of iterate_over_inferiors.
15209 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15210 (darwin_stop_inferior): Rename to...
15211 (darwin_nat_target::stop_inferior): ... this.
15212 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15213 (darwin_init_thread_list): Rename to...
15214 (darwin_nat_target::init_thread_list): ... this.
15215 (darwin_ptrace_him): Rename to...
15216 (darwin_nat_target::ptrace_him): ... this.
15217 (darwin_nat_target::create_inferior): Pass lambda function to
15218 fork_inferior.
15219 (darwin_nat_target::detach): Call stop_inferior instead of
15220 darwin_stop_inferior.
15221 * fork-inferior.h (fork_inferior): Change init_trace_fun
15222 parameter to gdb::function_view.
15223 * fork-inferior.c (fork_inferior): Likewise.
15224
c162ed3e
HD
152252020-01-23 Hannes Domani <ssbssa@yahoo.de>
15226
15227 * i386-cygwin-tdep.c (core_process_module_section): Update.
15228 * windows-nat.c (struct lm_info_windows): Add text_offset.
15229 (windows_xfer_shared_libraries): Update.
15230 * windows-tdep.c (windows_xfer_shared_library):
15231 Add text_offset_cached argument.
15232 * windows-tdep.h (windows_xfer_shared_library): Update.
15233
a1237872
SM
152342020-01-21 Simon Marchi <simon.marchi@efficios.com>
15235
15236 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15237
b3ee6dd9
SM
152382020-01-21 Simon Marchi <simon.marchi@efficios.com>
15239
15240 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15241 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15242 replace with range-based for.
15243 (gdbsim_interrupt_inferior): Remove.
15244 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15245 with a range-based for. Inline code from
15246 gdbsim_interrupt_inferior.
15247
f9fac3c8
SM
152482020-01-21 Simon Marchi <simon.marchi@efficios.com>
15249
15250 * infrun.c (proceed): Fix indentation.
15251
f6474de9
TT
152522020-01-21 Tom Tromey <tromey@adacore.com>
15253
15254 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15255 * python/python.c (python_extension_ops): Update.
15256 (gdbpy_colorize): New function.
15257 * python/lib/gdb/__init__.py (colorize): New function.
15258 * extension.h (ext_lang_colorize): Declare.
15259 * extension.c (ext_lang_colorize): New function.
15260 * extension-priv.h (struct extension_language_ops) <colorize>: New
15261 member.
15262 * cli/cli-style.c (_initialize_cli_style): Update help text.
15263
f0c702d4
LM
152642020-01-21 Luis Machado <luis.machado@linaro.org>
15265
15266 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15267 <cond>: Change type to bool.
15268 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15269 (aarch64_displaced_step_cb): Likewise.
15270 (aarch64_displaced_step_tb): Likewise.
15271
1ab139e5
LM
152722020-01-21 Luis Machado <luis.machado@linaro.org>
15273
15274 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15275 output.
15276
0c271889
LM
152772020-01-21 Luis Machado <luis.machado@linaro.org>
15278
15279 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15280 <pc_adjust>: Adjust the documentation.
15281 (aarch64_displaced_step_fixup): Check if PC really moved before
15282 adjusting it.
15283
4d89c1c7
TT
152842020-01-19 Tom Tromey <tom@tromey.com>
15285
15286 * disasm.c (~gdb_disassembler): New destructor.
15287 (gdb_buffered_insn_length): Call disassemble_free_target.
15288 * disasm.h (class gdb_disassembler): Declare destructor. Use
15289 DISABLE_COPY_AND_ASSIGN.
15290
c0ab21c2
TT
152912020-01-19 Tom Tromey <tom@tromey.com>
15292
15293 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15294 (die_reader_func_ftype): Remove.
15295 (cutu_reader): New class.
15296 (dw2_get_file_names_reader): Remove "data" parameter.
15297 (dw2_get_file_names): Use cutu_reader.
15298 (create_debug_type_hash_table): Update.
15299 (read_cutu_die_from_dwo): Update comment.
15300 (lookup_dwo_unit): Add dwo_name parameter.
15301 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15302 die_reader_func_ftype and data parameters.
15303 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15304 Remove die_reader_func_ftype and data parameters.
15305 (~cutu_reader): New; from init_cutu_and_read_dies.
15306 (cutu_reader::cutu_reader): Rename from
15307 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15308 and data parameters.
15309 (init_cutu_and_read_dies_simple): Remove.
15310 (struct process_psymtab_comp_unit_data): Remove.
15311 (process_psymtab_comp_unit_reader): Remove data parameter; add
15312 want_partial_unit and pretend_language parameters.
15313 (process_psymtab_comp_unit): Use cutu_reader.
15314 (build_type_psymtabs_reader): Remove data parameter.
15315 (build_type_psymtabs_1): Use cutu_reader.
15316 (process_skeletonless_type_unit): Likewise.
15317 (load_partial_comp_unit_reader): Remove.
15318 (load_partial_comp_unit): Use cutu_reader.
15319 (load_full_comp_unit_reader): Remove.
15320 (load_full_comp_unit): Use cutu_reader.
15321 (struct create_dwo_cu_data): Remove.
15322 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15323 dwo_unit parameters.
15324 (create_cus_hash_table): Use cutu_reader.
15325 (struct dwarf2_read_addr_index_data): Remove.
15326 (dwarf2_read_addr_index_reader): Remove.
15327 (dwarf2_read_addr_index): Use cutu_reader.
15328 (read_signatured_type_reader): Remove.
15329 (read_signatured_type): Use cutu_reader.
15330
45bbae5c
TT
153312020-01-19 Tom Tromey <tom@tromey.com>
15332
15333 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15334 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15335 (tui_wrefresh): Declare.
15336 * tui/tui-wingeneral.c (suppress_output): New global.
15337 (tui_suppress_output, ~tui_suppress_output): New constructor and
15338 destructor.
15339 (tui_wrefresh): New function.
15340 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15341 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15342 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15343 method.
15344 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15345 tui_wrefresh.
15346 (tui_data_window::no_refresh): New method.
15347 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15348 (tui_reg_command): Use tui_suppress_output
15349 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15350 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15351 method.
15352 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15353
4f13c1c0
TT
153542020-01-19 Tom Tromey <tom@tromey.com>
15355
15356 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15357 Handle case where symtab is null.
15358
fa47e446
SM
153592020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15360
15361 * linux-fork.c (one_fork_p): Simplify.
15362
26f42329
SM
153632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15364
15365 * top.c (struct qt_args): Remove.
15366 (kill_or_detach): Change return type to void, replace `void *`
15367 parameter with a proper one.
15368 (print_inferior_quit_action): Likewise.
15369 (quit_confirm): Use range-based for loop to iterate over inferiors.
15370 (quit_force): Likewise.
15371
a9ac81b1
SM
153722020-01-17 Simon Marchi <simon.marchi@efficios.com>
15373
15374 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15375 `void *` parameter with proper parameters.
15376 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15377 (print_one_inferior): Change return type to void, replace `void *`
15378 parameter with proper parameters.
15379 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15380 inferiors.
15381 (get_other_inferior): Remove.
15382 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15383 inferiors.
15384
788eca49
SM
153852020-01-17 Simon Marchi <simon.marchi@efficios.com>
15386
15387 * mi/mi-interp.c (report_initial_inferior): Remove.
15388 (mi_interp::init): Use range-based for to iterate over inferiors.
15389
d9bc85b6
SM
153902020-01-17 Simon Marchi <simon.marchi@efficios.com>
15391
15392 * python/py-inferior.c (build_inferior_list): Remove.
15393 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15394
40c94099
CB
153952020-01-16 Christian Biesinger <cbiesinger@google.com>
15396
15397 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15398 (btrace_stitch_trace): Likewise.
15399 * charset.c (intermediate_encoding): Likewise (vaild).
15400 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15401 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15402 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15403
e0cdfe3c
HD
154042020-01-16 Hannes Domani <ssbssa@yahoo.de>
15405
15406 * windows-tdep.c (windows_get_tlb_type):
15407 Add rtl_user_process_parameters type.
15408
790f1718 154092020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15410 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15411
15412 PR build/24805
15413 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15414 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15415 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15416 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15417 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15418 (ps_plog): Redeclare exported functions with default visibility.
15419
3112ed97
NA
154202020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15421
15422 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15423 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15424
8dc3273e
SM
154252020-01-15 Simon Marchi <simon.marchi@efficios.com>
15426
15427 * infcmd.c (post_create_inferior): Use get_thread_regcache
15428 instead of get_current_regcache.
15429
ff47f4f0
TT
154302020-01-14 Tom Tromey <tom@tromey.com>
15431
15432 PR symtab/12535:
15433 * python/python.c (gdbpy_decode_line): Treat empty string the same
15434 as no argument.
15435
975f45b7
TT
154362020-01-14 Tom Tromey <tom@tromey.com>
15437
15438 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15439
25e57356
TT
154402020-01-14 Tom Tromey <tom@tromey.com>
15441
15442 * nat/linux-btrace.c: Don't include <config.h>.
15443 * nat/linux-ptrace.c: Don't include <config.h>.
15444 * nat/x86-linux-dregs.c: Don't include <config.h>.
15445
05ea2a05
TT
154462020-01-14 Tom Tromey <tom@tromey.com>
15447
15448 * configure: Rebuild.
15449 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15450
01027315
TT
154512020-01-14 Tom Tromey <tom@tromey.com>
15452
15453 * nat/x86-linux-dregs.c: Include configh.h.
15454 * nat/linux-ptrace.c: Include configh.h.
15455 * nat/linux-btrace.c: Include configh.h.
15456 * defs.h: Include config.h, bfd.h.
15457 * configure.ac: Don't source common.host.
15458 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15459 * configure: Rebuild.
15460 * acinclude.m4: Update path.
15461 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15462 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15463 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15464 (CLIBS): Add LIBSUPPORT.
15465 (CDEPS): Likewise.
15466 (COMMON_SFILES): Remove gdbsupport files.
15467 (HFILES_NO_SRCDIR): Likewise.
15468 (stamp-version): Update path to create-version.sh.
15469 (ALLDEPFILES): Remove gdbsupport files.
15470
b2ceabe8
TT
154712020-01-14 Tom Tromey <tom@tromey.com>
15472
15473 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15474 USE_WIN32API when needed.
15475 * configure.ac (USE_WIN32API): Don't define.
15476 (WIN32LIBS): Use WIN32APILIBS.
15477 * configure: Rebuild.
15478
25c51f71
TT
154792020-01-14 Tom Tromey <tom@tromey.com>
15480
15481 * configure: Rebuild.
15482 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15483
717c684d
BE
154842020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15485
15486 * skip.c (skip_function_command): Make skip w/o arguments use the
15487 name of the inlined function if pc is inside any inlined function.
15488
7da6a5b9
LM
154892020-01-14 Luis Machado <luis.machado@linaro.org>
15490
15491 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15492 * infrun.c (resume_1): Likewise.
15493 (handle_inferior_event): Remove stale comment.
15494 * linux-nat.c (linux_nat_target::resume): Update comments.
15495 (save_stop_reason): Likewise.
15496 (linux_nat_filter_event): Likewise.
15497 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15498
44e4c775
AB
154992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15500
15501 * elfread.c (record_minimal_symbol): Set section index to 0 for
15502 non-allocatable sections.
15503
18a8505e
AT
15504
155052020-01-13 Ali Tamur <tamur@google.com>
15506
15507 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15508 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15509 to gdb::optional. Update comments.
15510 (dwo_file): Update comments.
15511 (read_attribute): Update API to take an additional out parameter,
15512 need_reprocess. This is used to mark attributes that need other
15513 attributes (e.g. str_offsets_base) for correct computation which may not
15514 have been read yet.
15515 (read_attribute_reprocess): New function declaration.
15516 (read_addr_index): Likewise.
15517 (read_dwo_str_index): Likewise.
15518 (read_stub_str_index): Likewise.
15519 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15520 (lookup_addr_base): New function definition.
15521 (lookup_ranges_base): Likewise.
15522 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15523 lookup_ranges_base.
15524 (init_cutu_and_read_dies): Update comments.
15525 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15526 unit. This is used to inherit parent's str_offsets_base and addr_base.
15527 Update comments.
15528 (init_cutu_and_read_dies_simple): Reflect API changes.
15529 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15530 (create_cus_hash_table): Change API to take parent compile unit.
15531 Reflect API changes.
15532 (open_and_init_dwo_file): Reflect API changes.
15533 (dwarf2_get_pc_bounds): Update comments.
15534 (dwarf2_record_block_ranges): Likewise.
15535 (read_full_die_1): Change implementation to reprocess attributes that
15536 need str_offsets_base and addr_base.
15537 (partial_die_info::read): Likewise.
15538 (read_attribute_reprocess): New function definition.
15539 (read_attribute_value): Change API to take an additional out parameter,
15540 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15541 when a non-dwo compile unit has index based attributes.
15542 (read_attribute): Reflect API changes.
15543 (read_addr_index_1): Reflect API changes. Update comments.
15544 (dwarf2_read_addr_index_data): Reflect API changes.
15545 (dwarf2_read_addr_index): Likewise.
15546 (read_str_index): Change API and implementation. This becomes a helper
15547 to be used by the new string index related methods. Update error
15548 message and comments.
15549 (read_dwo_str_index): New function definition.
15550 (read_stub_str_index): Likewise.
15551 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15552 * symfile.h (dwarf2_debug_sections): Likewise.
15553 * xcoffread.c (dwarf2_debug_sections): Likewise.
15554
0cac9354
SM
155552020-01-13 Simon Marchi <simon.marchi@efficios.com>
15556
15557 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15558 core_reg_sect type to gdb_byte *.
15559 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15560 * cris-tdep.c (fetch_core_registers): Likewise.
15561 * corelow.c (core_target::get_core_register_section): Change
15562 type of `contents` to gdb::byte_vector.
15563
9a6d629c
AB
155642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15565
15566 * tui/tui-wingeneral.c (box_win): Position the title in the center
15567 of the border.
15568
d8b2f9e3
SM
155692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15570
15571 * corelow.c (core_target::get_core_register_section): Use
15572 std::vector instead of alloca.
15573
bb564c58
SM
155742020-01-13 Simon Marchi <simon.marchi@efficios.com>
15575
15576 * warning.m4: Add -Wmissing-declarations to build_warnings.
15577 * configure: Re-generate.
15578
6b366111
SM
155792020-01-13 Simon Marchi <simon.marchi@efficios.com>
15580
15581 * python/python.c (init__gdb_module): Add declaration.
15582
6c265988
SM
155832020-01-13 Simon Marchi <simon.marchi@efficios.com>
15584
15585 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15586 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15587 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15588 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15589 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15590 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15591 * ada-exp.y (_initialize_ada_exp): Add declaration.
15592 * ada-lang.c (_initialize_ada_language): Add declaration.
15593 * ada-tasks.c (_initialize_tasks): Add declaration.
15594 * agent.c (_initialize_agent): Add declaration.
15595 * aix-thread.c (_initialize_aix_thread): Add declaration.
15596 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15597 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15598 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15599 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15600 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15601 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15602 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15603 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15604 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15605 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15606 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15607 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15608 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15609 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15610 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15611 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15612 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15613 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15614 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15615 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15616 * annotate.c (_initialize_annotate): Add declaration.
15617 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15618 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15619 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15620 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15621 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15622 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15623 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15624 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15625 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15626 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15627 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15628 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15629 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15630 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15631 * auto-load.c (_initialize_auto_load): Add declaration.
15632 * auxv.c (_initialize_auxv): Add declaration.
15633 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15634 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15635 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15636 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15637 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15638 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15639 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15640 * breakpoint.c (_initialize_breakpoint): Add declaration.
15641 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15642 * btrace.c (_initialize_btrace): Add declaration.
15643 * charset.c (_initialize_charset): Add declaration.
15644 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15645 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15646 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15647 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15648 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15649 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15650 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15651 * coffread.c (_initialize_coffread): Add declaration.
15652 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15653 * compile/compile.c (_initialize_compile): Add declaration.
15654 * complaints.c (_initialize_complaints): Add declaration.
15655 * completer.c (_initialize_completer): Add declaration.
15656 * copying.c (_initialize_copying): Add declaration.
15657 * corefile.c (_initialize_core): Add declaration.
15658 * corelow.c (_initialize_corelow): Add declaration.
15659 * cp-abi.c (_initialize_cp_abi): Add declaration.
15660 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15661 * cp-support.c (_initialize_cp_support): Add declaration.
15662 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15663 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15664 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15665 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15666 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15667 * ctfread.c (_initialize_ctfread): Add declaration.
15668 * d-lang.c (_initialize_d_language): Add declaration.
15669 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15670 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15671 * dbxread.c (_initialize_dbxread): Add declaration.
15672 * dcache.c (_initialize_dcache): Add declaration.
15673 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15674 * disasm.c (_initialize_disasm): Add declaration.
15675 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15676 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15677 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15678 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15679 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15680 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15681 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15682 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15683 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15684 * elfread.c (_initialize_elfread): Add declaration.
15685 * exec.c (_initialize_exec): Add declaration.
15686 * extension.c (_initialize_extension): Add declaration.
15687 * f-lang.c (_initialize_f_language): Add declaration.
15688 * f-valprint.c (_initialize_f_valprint): Add declaration.
15689 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15690 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15691 * filesystem.c (_initialize_filesystem): Add declaration.
15692 * findcmd.c (_initialize_mem_search): Add declaration.
15693 * findvar.c (_initialize_findvar): Add declaration.
15694 * fork-child.c (_initialize_fork_child): Add declaration.
15695 * frame-base.c (_initialize_frame_base): Add declaration.
15696 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15697 * frame.c (_initialize_frame): Add declaration.
15698 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15699 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15700 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15701 * gcore.c (_initialize_gcore): Add declaration.
15702 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15703 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15704 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15705 * gdbarch.c (_initialize_gdbarch): Add declaration.
15706 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15707 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15708 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15709 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15710 * go-lang.c (_initialize_go_language): Add declaration.
15711 * go32-nat.c (_initialize_go32_nat): Add declaration.
15712 * guile/guile.c (_initialize_guile): Add declaration.
15713 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15714 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15715 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15716 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15717 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15718 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15719 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15720 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15721 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15722 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15723 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15724 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15725 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15726 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15727 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15728 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15729 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15730 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15731 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15732 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15733 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15734 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15735 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15736 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15737 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15738 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15739 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15740 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15741 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15742 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15743 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15744 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15745 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15746 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15747 * infcall.c (_initialize_infcall): Add declaration.
15748 * infcmd.c (_initialize_infcmd): Add declaration.
15749 * inflow.c (_initialize_inflow): Add declaration.
15750 * infrun.c (_initialize_infrun): Add declaration.
15751 * interps.c (_initialize_interpreter): Add declaration.
15752 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15753 * jit.c (_initialize_jit): Add declaration.
15754 * language.c (_initialize_language): Add declaration.
15755 * linux-fork.c (_initialize_linux_fork): Add declaration.
15756 * linux-nat.c (_initialize_linux_nat): Add declaration.
15757 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15758 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15759 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15760 * m2-lang.c (_initialize_m2_language): Add declaration.
15761 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15762 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15763 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15764 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15765 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15766 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15767 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15768 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15769 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15770 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15771 * machoread.c (_initialize_machoread): Add declaration.
15772 * macrocmd.c (_initialize_macrocmd): Add declaration.
15773 * macroscope.c (_initialize_macroscope): Add declaration.
15774 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15775 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15776 * maint.c (_initialize_maint_cmds): Add declaration.
15777 * mdebugread.c (_initialize_mdebugread): Add declaration.
15778 * memattr.c (_initialize_mem): Add declaration.
15779 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15780 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15781 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15782 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15783 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15784 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15785 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15786 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15787 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15788 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15789 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15790 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15791 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15792 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15793 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15794 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15795 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15796 * mipsread.c (_initialize_mipsread): Add declaration.
15797 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15798 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15799 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15800 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15801 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15802 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15803 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15804 * nto-procfs.c (_initialize_procfs): Add declaration.
15805 * objc-lang.c (_initialize_objc_language): Add declaration.
15806 * observable.c (_initialize_observer): Add declaration.
15807 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15808 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15809 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15810 * osabi.c (_initialize_gdb_osabi): Add declaration.
15811 * osdata.c (_initialize_osdata): Add declaration.
15812 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15813 * parse.c (_initialize_parse): Add declaration.
15814 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15815 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15816 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15817 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15818 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15819 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15820 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15821 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15822 * printcmd.c (_initialize_printcmd): Add declaration.
15823 * probe.c (_initialize_probe): Add declaration.
15824 * proc-api.c (_initialize_proc_api): Add declaration.
15825 * proc-events.c (_initialize_proc_events): Add declaration.
15826 * proc-service.c (_initialize_proc_service): Add declaration.
15827 * procfs.c (_initialize_procfs): Add declaration.
15828 * producer.c (_initialize_producer): Add declaration.
15829 * psymtab.c (_initialize_psymtab): Add declaration.
15830 * python/python.c (_initialize_python): Add declaration.
15831 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15832 * record-btrace.c (_initialize_record_btrace): Add declaration.
15833 * record-full.c (_initialize_record_full): Add declaration.
15834 * record.c (_initialize_record): Add declaration.
15835 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15836 * regcache.c (_initialize_regcache): Add declaration.
15837 * reggroups.c (_initialize_reggroup): Add declaration.
15838 * remote-notif.c (_initialize_notif): Add declaration.
15839 * remote-sim.c (_initialize_remote_sim): Add declaration.
15840 * remote.c (_initialize_remote): Add declaration.
15841 * reverse.c (_initialize_reverse): Add declaration.
15842 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15843 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15844 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15845 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15846 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15847 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15848 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15849 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15850 Add declaration.
15851 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15852 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15853 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15854 * rust-exp.y (_initialize_rust_exp): Add declaration.
15855 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15856 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15857 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15858 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15859 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15860 * score-tdep.c (_initialize_score_tdep): Add declaration.
15861 * ser-go32.c (_initialize_ser_dos): Add declaration.
15862 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15863 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15864 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15865 * ser-uds.c (_initialize_ser_socket): Add declaration.
15866 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15867 * serial.c (_initialize_serial): Add declaration.
15868 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15869 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15870 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15871 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15872 * skip.c (_initialize_step_skip): Add declaration.
15873 * sol-thread.c (_initialize_sol_thread): Add declaration.
15874 * solib-aix.c (_initialize_solib_aix): Add declaration.
15875 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15876 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15877 * solib-frv.c (_initialize_frv_solib): Add declaration.
15878 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15879 * solib-target.c (_initialize_solib_target): Add declaration.
15880 * solib.c (_initialize_solib): Add declaration.
15881 * source-cache.c (_initialize_source_cache): Add declaration.
15882 * source.c (_initialize_source): Add declaration.
15883 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15884 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15885 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15886 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15887 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15888 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15889 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15890 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15891 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15892 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15893 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15894 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15895 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15896 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15897 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15898 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15899 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15900 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15901 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15902 * stabsread.c (_initialize_stabsread): Add declaration.
15903 * stack.c (_initialize_stack): Add declaration.
15904 * stap-probe.c (_initialize_stap_probe): Add declaration.
15905 * std-regs.c (_initialize_frame_reg): Add declaration.
15906 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15907 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15908 * symfile.c (_initialize_symfile): Add declaration.
15909 * symmisc.c (_initialize_symmisc): Add declaration.
15910 * symtab.c (_initialize_symtab): Add declaration.
15911 * target.c (_initialize_target): Add declaration.
15912 * target-connection.c (_initialize_target_connection): Add
15913 declaration.
15914 * target-dcache.c (_initialize_target_dcache): Add declaration.
15915 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15916 * thread.c (_initialize_thread): Add declaration.
15917 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15918 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15919 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15920 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15921 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15922 * tracectf.c (_initialize_ctf): Add declaration.
15923 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15924 * tracefile.c (_initialize_tracefile): Add declaration.
15925 * tracepoint.c (_initialize_tracepoint): Add declaration.
15926 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15927 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15928 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15929 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15930 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15931 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15932 * tui/tui.c (_initialize_tui): Add declaration.
15933 * typeprint.c (_initialize_typeprint): Add declaration.
15934 * ui-style.c (_initialize_ui_style): Add declaration.
15935 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15936 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15937 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15938 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15939 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15940 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15941 * unittests/filtered_iterator-selftests.c
15942 (_initialize_filtered_iterator_selftests): Add declaration.
15943 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15944 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15945 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15946 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15947 * unittests/main-thread-selftests.c
15948 (_initialize_main_thread_selftests): Add declaration.
15949 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15950 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15951 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15952 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15953 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15954 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15955 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15956 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15957 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15958 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15959 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15960 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15961 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15962 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15963 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15964 declaration.
15965 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15966 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15967 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15968 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15969 * user-regs.c (_initialize_user_regs): Add declaration.
15970 * utils.c (_initialize_utils): Add declaration.
15971 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15972 * valops.c (_initialize_valops): Add declaration.
15973 * valprint.c (_initialize_valprint): Add declaration.
15974 * value.c (_initialize_values): Add declaration.
15975 * varobj.c (_initialize_varobj): Add declaration.
15976 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15977 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15978 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15979 * windows-nat.c (_initialize_windows_nat): Add declaration.
15980 (_initialize_check_for_gdb_ini): Add declaration.
15981 (_initialize_loadable): Add declaration.
15982 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15983 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15984 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15985 * xcoffread.c (_initialize_xcoffread): Add declaration.
15986 * xml-support.c (_initialize_xml_support): Add declaration.
15987 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15988 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15989 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15990 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15991
e2de1eec
SM
159922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15993
15994 * regformats/regdat.sh: Generate declaration for init function.
15995
e0037b4c
SM
159962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15997
15998 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15999 up.
16000 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16001 close_one_inferior>: New methods.
16002 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16003 pass down target to find_inferior_pid.
16004 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16005 Pass down target to find_inferior_ptid.
16006 (gdbsim_target::create_inferior): Pass down target to
16007 add_thread_silent.
16008 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16009 target down to find_inferior_ptid and switch_to_thread.
16010 (gdbsim_target::close): Update to call close_one_inferior.
16011 (struct resume_data): Remove.
16012 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16013 directly, rather than through a void pointer.
16014 (gdbsim_target::resume): Update to call resume_one_inferior.
16015
58920b5b
SM
160162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16017
16018 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16019
4ec89149
PA
160202020-01-12 Pedro Alves <palves@redhat.com>
16021
16022 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16023 directly for the current inferior instead of
16024 discard_all_inferiors.
16025 (discard_all_inferiors): Delete.
16026
7c392d1d
TT
160272020-01-11 Tom Tromey <tom@tromey.com>
16028
16029 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16030 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16031 deprecated_safe_get_selected_frame.
16032
d9ebdab7
TBA
160332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16034
16035 * inferior.c (print_inferior): Switch inferior before printing it.
16036
f3c469b9
PA
160372020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16038 Pedro Alves <palves@redhat.com>
16039
16040 * progspace-and-thread.c (switch_to_program_space_and_thread):
16041 Assert there's an inferior for PSPACE. Use
16042 switch_to_inferior_no_thread to switch the inferior too.
16043 * progspace.c (program_space::~program_space): Call
16044 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16045 (program_space::free_all_objfiles): Don't call clear_symtab_users
16046 here.
16047 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16048
65c574f6
PA
160492020-01-10 Pedro Alves <palves@redhat.com>
16050
16051 * NEWS: Mention multi-target debugging, "info connections", and
16052 "add-inferior -no-connection".
16053
2f4fcf00
PA
160542020-01-10 Pedro Alves <palves@redhat.com>
16055
16056 * infrun.c: Include "target-connection.h".
16057 (check_multi_target_resumption): New.
16058 (proceed): Call it.
16059 * target-connection.c (make_target_connection_string): Make
16060 extern.
16061 * target-connection.h (make_target_connection_string): Declare.
16062
121b3efd
PA
160632020-01-10 Pedro Alves <palves@redhat.com>
16064
16065 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16066 * inferior.c (uiout_field_connection): New function.
16067 (print_inferior): Add new "connection-id" column.
16068 (add_inferior_command): Show connection number/string of added
16069 inferior.
16070 * process-stratum-target.h
16071 (process_stratum_target::connection_string): New virtual method.
16072 (process_stratum_target::connection_number): New field.
16073 * remote.c (remote_target::connection_string): New override.
16074 * target-connection.c: New file.
16075 * target-connection.h: New file.
16076 * target.c (decref_target): Remove process_stratum targets from
16077 the connection list.
16078 (target_stack::push): Add process_stratum targets to the
16079 connection list.
16080
4f837581
PA
160812020-01-10 Pedro Alves <palves@redhat.com>
16082
16083 Revert:
16084 2016-04-12 Pedro Alves <palves@redhat.com>
16085 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16086 Remove references to name.
16087 * serial.h (struct serial) <name>: Delete.
16088
f4ec508e
PA
160892020-01-10 Pedro Alves <palves@redhat.com>
16090
16091 * gdbarch-selftests.c (register_to_value_test): Remove "target
16092 already pushed" check.
16093
5b6d1e4f
PA
160942020-01-10 Pedro Alves <palves@redhat.com>
16095 John Baldwin <jhb@FreeBSD.org>
16096
16097 * aarch64-linux-nat.c
16098 (aarch64_linux_nat_target::thread_architecture): Adjust.
16099 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16100 (task_command_1): Likewise.
16101 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16102 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16103 (aix_thread_target::store_registers)
16104 (aix_thread_target::thread_alive): Adjust.
16105 * amd64-fbsd-tdep.c: Include "inferior.h".
16106 (amd64fbsd_get_thread_local_address): Pass down target.
16107 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16108 thread's gdbarch instead of target_gdbarch.
16109 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16110 get_last_target_status.
16111 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16112 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16113 inferiors.
16114 (update_inserted_breakpoint_locations): Skip if inferiors with no
16115 execution.
16116 (update_global_location_list): When handling moribund locations,
16117 find representative inferior for location's pspace, and use thread
16118 count of its process_stratum target.
16119 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16120 * bsd-uthread.c (bsd_uthread_target::wait): Use
16121 as_process_stratum_target and adjust thread_change_ptid and
16122 add_thread calls.
16123 (bsd_uthread_target::update_thread_list): Use
16124 as_process_stratum_target and adjust find_thread_ptid,
16125 thread_change_ptid and add_thread calls.
16126 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16127 find_thread_ptid call.
16128 * corelow.c (add_to_thread_list): Adjust add_thread call.
16129 (core_target_open): Adjust add_thread_silent and thread_count
16130 calls.
16131 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16132 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16133 * event-top.c (async_disconnect): Pop targets from all inferiors.
16134 * exec.c (add_target_sections): Push exec target on all inferiors
16135 sharing the program space.
16136 (remove_target_sections): Remove the exec target from all
16137 inferiors sharing the program space.
16138 (exec_on_vfork): New.
16139 * exec.h (exec_on_vfork): Declare.
16140 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16141 Pass it down.
16142 (fbsd_nat_target::update_thread_list): Adjust.
16143 (fbsd_nat_target::resume): Adjust.
16144 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16145 down.
16146 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16147 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16148 get_thread_arch_regcache call.
16149 * fork-child.c (gdb_startup_inferior): Pass target down to
16150 startup_inferior and set_executing.
16151 * gdbthread.h (struct process_stratum_target): Forward declare.
16152 (add_thread, add_thread_silent, add_thread_with_info)
16153 (in_thread_list): Add process_stratum_target parameter.
16154 (find_thread_ptid(inferior*, ptid_t)): New overload.
16155 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16156 parameter.
16157 (all_threads()): Delete overload.
16158 (all_threads, all_non_exited_threads): Add process_stratum_target
16159 parameter.
16160 (all_threads_safe): Use brace initialization.
16161 (thread_count): Add process_stratum_target parameter.
16162 (set_resumed, set_running, set_stop_requested, set_executing)
16163 (threads_are_executing, finish_thread_state): Add
16164 process_stratum_target parameter.
16165 (switch_to_thread): Use is_current_thread.
16166 * i386-fbsd-tdep.c: Include "inferior.h".
16167 (i386fbsd_get_thread_local_address): Pass down target.
16168 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16169 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16170 have_inferiors check.
16171 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16172 (inf_ptrace_target::attach): Adjust.
16173 * infcall.c (run_inferior_call): Adjust.
16174 * infcmd.c (run_command_1): Pass target to
16175 scoped_finish_thread_state.
16176 (proceed_thread_callback): Skip inferiors with no execution.
16177 (continue_command): Rename 'all_threads' local to avoid hiding
16178 'all_threads' function. Adjust get_last_target_status call.
16179 (prepare_one_step): Adjust set_running call.
16180 (signal_command): Use user_visible_resume_target. Compare thread
16181 pointers instead of inferior_ptid.
16182 (info_program_command): Adjust to pass down target.
16183 (attach_command): Mark target's 'thread_executing' flag.
16184 (stop_current_target_threads_ns): New, factored out from ...
16185 (interrupt_target_1): ... this. Switch inferior before making
16186 target calls.
16187 * inferior-iter.h
16188 (struct all_inferiors_iterator, struct all_inferiors_range)
16189 (struct all_inferiors_safe_range)
16190 (struct all_non_exited_inferiors_range): Filter on
16191 process_stratum_target too. Remove explicit.
16192 * inferior.c (inferior::inferior): Push dummy target on target
16193 stack.
16194 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16195 Add process_stratum_target parameter, and pass it down.
16196 (have_live_inferiors): Adjust.
16197 (switch_to_inferior_and_push_target): New.
16198 (add_inferior_command, clone_inferior_command): Handle
16199 "-no-connection" parameter. Use
16200 switch_to_inferior_and_push_target.
16201 (_initialize_inferior): Mention "-no-connection" option in
16202 the help of "add-inferior" and "clone-inferior" commands.
16203 * inferior.h: Include "process-stratum-target.h".
16204 (interrupt_target_1): Use bool.
16205 (struct inferior) <push_target, unpush_target, target_is_pushed,
16206 find_target_beneath, top_target, process_target, target_at,
16207 m_stack>: New.
16208 (discard_all_inferiors): Delete.
16209 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16210 (all_inferiors, all_non_exited_inferiors): Add
16211 process_stratum_target parameter.
16212 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16213 (target_last_proc_target): New global.
16214 (follow_fork_inferior): Push target on new inferior. Pass target
16215 to add_thread_silent. Call exec_on_vfork. Handle target's
16216 reference count.
16217 (follow_fork): Adjust get_last_target_status call. Also consider
16218 target.
16219 (follow_exec): Push target on new inferior.
16220 (struct execution_control_state) <target>: New field.
16221 (user_visible_resume_target): New.
16222 (do_target_resume): Call target_async.
16223 (resume_1): Set target's threads_executing flag. Consider resume
16224 target.
16225 (commit_resume_all_targets): New.
16226 (proceed): Also consider resume target. Skip threads of inferiors
16227 with no execution. Commit resumtion in all targets.
16228 (start_remote): Pass current inferior to wait_for_inferior.
16229 (infrun_thread_stop_requested): Consider target as well. Pass
16230 thread_info pointer to clear_inline_frame_state instead of ptid.
16231 (infrun_thread_thread_exit): Consider target as well.
16232 (random_pending_event_thread): New inferior parameter. Use it.
16233 (do_target_wait): Rename to ...
16234 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16235 down.
16236 (threads_are_resumed_pending_p, do_target_wait): New.
16237 (prepare_for_detach): Adjust calls.
16238 (wait_for_inferior): New inferior parameter. Handle it. Use
16239 do_target_wait_1 instead of do_target_wait.
16240 (fetch_inferior_event): Adjust. Switch to representative
16241 inferior. Pass target down.
16242 (set_last_target_status): Add process_stratum_target parameter.
16243 Save target in global.
16244 (get_last_target_status): Add process_stratum_target parameter and
16245 handle it.
16246 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16247 (context_switch): Check inferior_ptid == null_ptid before calling
16248 inferior_thread().
16249 (get_inferior_stop_soon): Pass down target.
16250 (wait_one): Rename to ...
16251 (poll_one_curr_target): ... this.
16252 (struct wait_one_event): New.
16253 (wait_one): New.
16254 (stop_all_threads): Adjust.
16255 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16256 event's target.
16257 (switch_back_to_stepped_thread): Also consider target.
16258 (print_stop_event): Update.
16259 (normal_stop): Update. Also consider the resume target.
16260 * infrun.h (wait_for_inferior): Remove declaration.
16261 (user_visible_resume_target): New declaration.
16262 (get_last_target_status, set_last_target_status): New
16263 process_stratum_target parameter.
16264 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16265 process_stratum_target parameter, and use it.
16266 (clear_inline_frame_state (thread_info*)): New.
16267 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16268 process_stratum_target parameter.
16269 (clear_inline_frame_state (thread_info*)): Declare.
16270 * linux-fork.c (delete_checkpoint_command): Pass target down to
16271 find_thread_ptid.
16272 (checkpoint_command): Adjust.
16273 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16274 instead of just tweaking inferior_ptid.
16275 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16276 (exit_lwp): Pass target down to find_thread_ptid.
16277 (attach_proc_task_lwp_callback): Pass target down to
16278 add_thread/set_running/set_executing.
16279 (linux_nat_target::attach): Pass target down to
16280 thread_change_ptid.
16281 (get_detach_signal): Pass target down to find_thread_ptid.
16282 Consider last target status's target.
16283 (linux_resume_one_lwp_throw, resume_lwp)
16284 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16285 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16286 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16287 (linux_nat_target::async_wait_fd): New.
16288 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16289 target down.
16290 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16291 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16292 * linux-thread-db.c (struct thread_db_info::process_target): New
16293 field.
16294 (add_thread_db_info): Save target.
16295 (get_thread_db_info): New process_stratum_target parameter. Also
16296 match target.
16297 (delete_thread_db_info): New process_stratum_target parameter.
16298 Also match target.
16299 (thread_from_lwp): Adjust to pass down target.
16300 (thread_db_notice_clone): Pass down target.
16301 (check_thread_db_callback): Pass down target.
16302 (try_thread_db_load_1): Always push the thread_db target.
16303 (try_thread_db_load, record_thread): Pass target down.
16304 (thread_db_target::detach): Pass target down. Always unpush the
16305 thread_db target.
16306 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16307 target down. Always unpush the thread_db target.
16308 (find_new_threads_callback, thread_db_find_new_threads_2)
16309 (thread_db_target::update_thread_list): Pass target down.
16310 (thread_db_target::pid_to_str): Pass current inferior down.
16311 (thread_db_target::get_thread_local_address): Pass target down.
16312 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16313 target down.
16314 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16315 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16316 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16317 (procfs_init_inferior): Rename to ...
16318 (procfs_target::procfs_init_inferior): ... this and adjust.
16319 (procfs_target::create_inferior, procfs_notice_thread)
16320 (procfs_do_thread_registers): Adjust.
16321 * ppc-fbsd-tdep.c: Include "inferior.h".
16322 (ppcfbsd_get_thread_local_address): Pass down target.
16323 * proc-service.c (ps_xfer_memory): Switch current inferior and
16324 program space as well.
16325 (get_ps_regcache): Pass target down.
16326 * process-stratum-target.c
16327 (process_stratum_target::thread_address_space)
16328 (process_stratum_target::thread_architecture): Pass target down.
16329 * process-stratum-target.h
16330 (process_stratum_target::threads_executing): New field.
16331 (as_process_stratum_target): New.
16332 * ravenscar-thread.c
16333 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16334 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16335 down.
16336 * record-btrace.c (record_btrace_target::info_record): Adjust.
16337 (record_btrace_target::record_method)
16338 (record_btrace_target::record_is_replaying)
16339 (record_btrace_target::fetch_registers)
16340 (get_thread_current_frame_id, record_btrace_target::resume)
16341 (record_btrace_target::wait, record_btrace_target::stop): Pass
16342 target down.
16343 * record-full.c (record_full_wait_1): Switch to event thread.
16344 Pass target down.
16345 * regcache.c (regcache::regcache)
16346 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16347 process_stratum_target parameter and handle it.
16348 (current_thread_target): New global.
16349 (get_thread_regcache): Add process_stratum_target parameter and
16350 handle it. Switch inferior before calling target method.
16351 (get_thread_regcache): Pass target down.
16352 (get_thread_regcache_for_ptid): Pass target down.
16353 (registers_changed_ptid): Add process_stratum_target parameter and
16354 handle it.
16355 (registers_changed_thread, registers_changed): Pass target down.
16356 (test_get_thread_arch_aspace_regcache): New.
16357 (current_regcache_test): Define a couple local test_target_ops
16358 instances and use them for testing.
16359 (readwrite_regcache): Pass process_stratum_target parameter.
16360 (cooked_read_test, cooked_write_test): Pass mock_target down.
16361 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16362 (get_thread_arch_aspace_regcache): Add process_stratum_target
16363 parameter.
16364 (regcache::target): New method.
16365 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16366 (regcache::registers_changed_ptid): Add process_stratum_target
16367 parameter.
16368 (regcache::m_target): New field.
16369 (registers_changed_ptid): Add process_stratum_target parameter.
16370 * remote.c (remote_state::supports_vCont_probed): New field.
16371 (remote_target::async_wait_fd): New method.
16372 (remote_unpush_and_throw): Add remote_target parameter.
16373 (get_current_remote_target): Adjust.
16374 (remote_target::remote_add_inferior): Push target.
16375 (remote_target::remote_add_thread)
16376 (remote_target::remote_notice_new_inferior)
16377 (get_remote_thread_info): Pass target down.
16378 (remote_target::update_thread_list): Skip threads of inferiors
16379 bound to other targets. (remote_target::close): Don't discard
16380 inferiors. (remote_target::add_current_inferior_and_thread)
16381 (remote_target::process_initial_stop_replies)
16382 (remote_target::start_remote)
16383 (remote_target::remote_serial_quit_handler): Pass down target.
16384 (remote_target::remote_unpush_target): New remote_target
16385 parameter. Unpush the target from all inferiors.
16386 (remote_target::remote_unpush_and_throw): New remote_target
16387 parameter. Pass it down.
16388 (remote_target::open_1): Check whether the current inferior has
16389 execution instead of checking whether any inferior is live. Pass
16390 target down.
16391 (remote_target::remote_detach_1): Pass down target. Use
16392 remote_unpush_target.
16393 (extended_remote_target::attach): Pass down target.
16394 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16395 (remote_target::append_resumption): Pass down target.
16396 (remote_target::append_pending_thread_resumptions)
16397 (remote_target::remote_resume_with_hc, remote_target::resume)
16398 (remote_target::commit_resume): Pass down target.
16399 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16400 (remote_target::interrupt_query)
16401 (remote_target::remove_new_fork_children)
16402 (remote_target::check_pending_events_prevent_wildcard_vcont)
16403 (remote_target::remote_parse_stop_reply)
16404 (remote_target::process_stop_reply): Pass down target.
16405 (first_remote_resumed_thread): New remote_target parameter. Pass
16406 it down.
16407 (remote_target::wait_as): Pass down target.
16408 (unpush_and_perror): New remote_target parameter. Pass it down.
16409 (remote_target::readchar, remote_target::remote_serial_write)
16410 (remote_target::getpkt_or_notif_sane_1)
16411 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16412 down target.
16413 (remote_target::mourn_inferior): Pass down target. Use
16414 remote_unpush_target.
16415 (remote_target::core_of_thread)
16416 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16417 (remote_target::pid_to_exec_file)
16418 (remote_target::thread_handle_to_thread_info): Pass down target.
16419 (remote_target::async_wait_fd): New.
16420 * riscv-fbsd-tdep.c: Include "inferior.h".
16421 (riscv_fbsd_get_thread_local_address): Pass down target.
16422 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16423 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16424 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16425 Adjust.
16426 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16427 * solib-svr4.c (enable_break): Pass down target.
16428 * spu-multiarch.c (parse_spufs_run): Pass down target.
16429 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16430 * target-delegates.c: Regenerate.
16431 * target.c (g_target_stack): Delete.
16432 (current_top_target): Return the current inferior's top target.
16433 (target_has_execution_1): Refer to the passed-in inferior's top
16434 target.
16435 (target_supports_terminal_ours): Check whether the initial
16436 inferior was already created.
16437 (decref_target): New.
16438 (target_stack::push): Incref/decref the target.
16439 (push_target, push_target, unpush_target): Adjust.
16440 (target_stack::unpush): Defref target.
16441 (target_is_pushed): Return bool. Adjust to refer to the current
16442 inferior's target stack.
16443 (dispose_inferior): Delete, and inline parts ...
16444 (target_preopen): ... here. Only dispose of the current inferior.
16445 (target_detach): Hold strong target reference while detaching.
16446 Pass target down.
16447 (target_thread_name): Add assertion.
16448 (target_resume): Pass down target.
16449 (target_ops::beneath, find_target_at): Adjust to refer to the
16450 current inferior's target stack.
16451 (get_dummy_target): New.
16452 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16453 has a thread running.
16454 (initialize_targets): Rename to ...
16455 (_initialize_target): ... this.
16456 * target.h: Include "gdbsupport/refcounted-object.h".
16457 (struct target_ops): Inherit refcounted_object.
16458 (target_ops::shortname, target_ops::longname): Make const.
16459 (target_ops::async_wait_fd): New method.
16460 (decref_target): Declare.
16461 (struct target_ops_ref_policy): New.
16462 (target_ops_ref): New typedef.
16463 (get_dummy_target): Declare function.
16464 (target_is_pushed): Return bool.
16465 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16466 (all_matching_threads_iterator::all_matching_threads_iterator):
16467 Handle filter target.
16468 * thread-iter.h (struct all_matching_threads_iterator, struct
16469 all_matching_threads_range, class all_non_exited_threads_range):
16470 Filter by target too. Remove explicit.
16471 * thread.c (threads_executing): Delete.
16472 (inferior_thread): Pass down current inferior.
16473 (clear_thread_inferior_resources): Pass down thread pointer
16474 instead of ptid_t.
16475 (add_thread_silent, add_thread_with_info, add_thread): Add
16476 process_stratum_target parameter. Use it for thread and inferior
16477 searches.
16478 (is_current_thread): New.
16479 (thread_info::deletable): Use it.
16480 (find_thread_ptid, thread_count, in_thread_list)
16481 (thread_change_ptid, set_resumed, set_running): New
16482 process_stratum_target parameter. Pass it down.
16483 (set_executing): New process_stratum_target parameter. Pass it
16484 down. Adjust reference to 'threads_executing'.
16485 (threads_are_executing): New process_stratum_target parameter.
16486 Adjust reference to 'threads_executing'.
16487 (set_stop_requested, finish_thread_state): New
16488 process_stratum_target parameter. Pass it down.
16489 (switch_to_thread): Also match inferior.
16490 (switch_to_thread): New process_stratum_target parameter. Pass it
16491 down.
16492 (update_threads_executing): Reimplement.
16493 * top.c (quit_force): Pop targets from all inferior.
16494 (gdb_init): Don't call initialize_targets.
16495 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16496 Declare.
16497 (windows_add_thread, windows_delete_thread): Adjust.
16498 (get_windows_debug_event): Rename to ...
16499 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16500 * tracefile-tfile.c (tfile_target_open): Pass down target.
16501 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16502 Forward declare.
16503 (switch_to_thread): Add process_stratum_target parameter.
16504 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16505 parameter. Use it.
16506 (mi_on_resume): Pass target down.
16507 * nat/fork-inferior.c (startup_inferior): Add
16508 process_stratum_target parameter. Pass it down.
16509 * nat/fork-inferior.h (startup_inferior): Add
16510 process_stratum_target parameter.
16511 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16512
75c6c844
PA
165132020-01-10 Pedro Alves <palves@redhat.com>
16514
16515 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16516 directly. Instead find the first thread in the thread list and
16517 use switch_to_thread.
16518
78f2c40a
PA
165192020-01-10 Pedro Alves <palves@redhat.com>
16520
16521 * remote.c (remote_target::remote_add_inferior): Don't bind a
16522 process to the current inferior if the current inferior is already
16523 bound to a process.
16524
e7af6c70
TBA
165252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16526 Pedro Alves <palves@redhat.com>
16527
16528 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16529 If no process is specified, return null_ptid instead of
16530 inferior_ptid.
16531 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16532 TARGET_WAITKIND_SIGNALLED with no pid.
16533
31ba933e
PA
165342020-01-10 Pedro Alves <palves@redhat.com>
16535
16536 * remote.c (first_remote_resumed_thread): New.
16537 (remote_target::wait_as): Use it as default event_ptid instead of
16538 inferior_ptid.
16539
735fc2ca
PA
165402020-01-10 Pedro Alves <palves@redhat.com>
16541
16542 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16543
c17e02e1
PA
165442020-01-10 Pedro Alves <palves@redhat.com>
16545
16546 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16547 not -1.
16548
ab1ddbcf
PA
165492020-01-10 Pedro Alves <palves@redhat.com>
16550
16551 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16552 ptid to get_last_target_status.
16553 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16554 ptid to get_last_target_status.
16555 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16556 get_last_target_status.
16557 (info_program_command): Don't pass a target_waitstatus to
16558 get_last_target_status.
16559 * infrun.c (init_wait_for_inferior): Use
16560 nullify_last_target_wait_ptid.
16561 (get_last_target_status): Handle nullptr arguments.
16562 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16563 (print_stop_event): Don't pass a ptid to get_last_target_status.
16564 (normal_stop): Don't pass a ptid to get_last_target_status.
16565 * infrun.h (get_last_target_status, set_last_target_status): Move
16566 comments here and update.
16567 (nullify_last_target_wait_ptid): Declare.
16568 * linux-fork.c (fork_load_infrun_state): Remove local extern
16569 declaration of nullify_last_target_wait_ptid.
16570 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16571 to get_last_target_status.
16572
f3f8ece4
PA
165732020-01-10 Pedro Alves <palves@redhat.com>
16574
16575 * gdbthread.h (scoped_restore_current_thread)
16576 <dont_restore, restore, m_dont_restore>: Declare.
16577 * thread.c (thread_alive): Add assertion. Return bool.
16578 (switch_to_thread_if_alive): New.
16579 (prune_threads): Switch inferior/thread.
16580 (print_thread_info_1): Switch thread before calling target methods.
16581 (scoped_restore_current_thread::restore): New, factored out from
16582 ...
16583 (scoped_restore_current_thread::~scoped_restore_current_thread):
16584 ... this.
16585 (scoped_restore_current_thread::scoped_restore_current_thread):
16586 Add assertion.
16587 (thread_apply_all_command, thread_select): Use
16588 switch_to_thread_if_alive.
16589 * infrun.c (proceed, restart_threads, handle_signal_stop)
16590 (switch_back_to_stepped_thread): Switch current thread before
16591 calling target methods.
16592
db2d40f7
PA
165932020-01-10 Pedro Alves <palves@redhat.com>
16594
16595 * inferior.c (switch_to_inferior_no_thread): New function,
16596 factored out from ...
16597 (inferior_command): ... here.
16598 * inferior.h (switch_to_inferior_no_thread): Declare.
16599 * mi/mi-main.c (run_one_inferior): Use
16600 switch_to_inferior_no_thread.
16601
bd420a2d
PA
166022020-01-10 Pedro Alves <palves@redhat.com>
16603
16604 * infcmd.c (kill_command): Remove dead code.
16605
ddf5db90
PA
166062020-01-10 Pedro Alves <palves@redhat.com>
16607
16608 * remote.c (remote_target::mourn_inferior): No longer check
16609 whether the target is running.
16610
5018ce90
PA
166112020-01-10 Pedro Alves <palves@redhat.com>
16612
16613 * corelow.c (core_target::has_execution): Change parameter type to
16614 inferior pointer.
16615 * inferior.c (number_of_live_inferiors): Use
16616 inferior::has_execution instead of target_has_execution_1.
16617 * inferior.h (inferior::has_execution): New.
16618 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16619 inferior::has_execution instead of target_has_execution_1.
16620 * process-stratum-target.c
16621 (process_stratum_target::has_execution): Change parameter type to
16622 inferior pointer. Check the inferior's PID instead of
16623 inferior_ptid.
16624 * process-stratum-target.h
16625 (process_stratum_target::has_execution): Change parameter type to
16626 inferior pointer.
16627 * record-full.c (record_full_core_target::has_execution): Change
16628 parameter type to inferior pointer.
16629 * target.c (target_has_execution_1): Change parameter type to
16630 inferior pointer.
16631 (target_has_execution_current): Adjust.
16632 * target.h (target_ops::has_execution): Change parameter type to
16633 inferior pointer.
16634 (target_has_execution_1): Change parameter type to inferior
16635 pointer. Change return type to bool.
16636 * tracefile.h (tracefile_target::has_execution): Change parameter
16637 type to inferior pointer.
16638
74375d18
PA
166392020-01-10 Pedro Alves <palves@redhat.com>
16640
16641 * exceptions.c (print_flush): Remove current_top_target() check.
16642
acdf84a6
PA
166432020-01-10 Pedro Alves <palves@redhat.com>
16644
16645 * remote.c (show_remote_exec_file): Show the current inferior's
16646 exec-file instead of the command variable's value.
16647
ec506636
PA
166482020-01-10 Pedro Alves <palves@redhat.com>
16649
16650 * record-full.c (record_full_resume_ptid): New global.
16651 (record_full_target::resume): Set it.
16652 (record_full_wait_1): Use record_full_resume_ptid instead of
16653 inferior_ptid.
16654
873657b9
PA
166552020-01-10 Pedro Alves <palves@redhat.com>
16656
16657 * gdbthread.h (scoped_restore_current_thread)
16658 <dont_restore, restore, m_dont_restore>: Declare.
16659 * thread.c (thread_alive): Add assertion. Return bool.
16660 (switch_to_thread_if_alive): New.
16661 (prune_threads): Switch inferior/thread.
16662 (print_thread_info_1): Switch thread before calling target methods.
16663 (scoped_restore_current_thread::restore): New, factored out from
16664 ...
16665 (scoped_restore_current_thread::~scoped_restore_current_thread):
16666 ... this.
16667 (scoped_restore_current_thread::scoped_restore_current_thread):
16668 Add assertion.
16669 (thread_apply_all_command, thread_select): Use
16670 switch_to_thread_if_alive.
16671
7f0ae84c
GB
166722020-01-10 George Barrett <bob@bob131.so>
16673
16674 * stap-probe.c (stap_modify_semaphore): Don't check for null
16675 semaphores.
16676 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16677 for null semaphores.
16678
f5a7c406
AB
166792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16680
16681 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16682 all source windows, and maintain horizontal scroll status while
16683 doing so.
16684
9ae6bf64
TT
166852020-01-09 Tom Tromey <tom@tromey.com>
16686
16687 PR tui/18932:
16688 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16689 update_source_window, not print_source_lines.
16690
b2efe70c
AB
166912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16692
16693 * tui/tui.c (tui_enable): Register tui hooks after calling
16694 tui_display_main.
16695
5f23a082
CB
166962020-01-09 Christian Biesinger <cbiesinger@google.com>
16697
16698 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16699
3061113b
SM
167002020-01-08 Simon Marchi <simon.marchi@efficios.com>
16701
16702 * thread.c (print_thread_info_1): Fix indentation.
16703
57d75002
CB
167042020-01-09 Christian Biesinger <cbiesinger@google.com>
16705
16706 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16707 unique_xmalloc_ptr outside the if to always free the demangled name.
16708
6a053cb1
TT
167092020-01-08 Tom Tromey <tromey@adacore.com>
16710
16711 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16712 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16713 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16714 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16715 Remove.
16716 (section_offsets): New typedef.
16717 * symtab.c (fixup_section, get_msymbol_address): Update.
16718 * symmisc.c (dump_msymbols): Update.
16719 * symfile.h (relative_addr_info_to_section_offsets)
16720 (symfile_map_offsets_to_segments): Update.
16721 * symfile.c (build_section_addr_info_from_objfile)
16722 (init_objfile_sect_indices): Update.
16723 (struct place_section_arg): Change type of "offsets".
16724 (place_section): Update.
16725 (relative_addr_info_to_section_offsets): Change type of
16726 "section_offsets". Remove "num_sections" parameter.
16727 (default_symfile_offsets, syms_from_objfile_1)
16728 (set_objfile_default_section_offset): Update.
16729 (reread_symbols): No need to preserve section offsets by hand.
16730 (symfile_map_offsets_to_segments): Change type of "offsets".
16731 * stap-probe.c (relocate_address): Update.
16732 * stabsread.h (process_one_symbol): Update.
16733 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16734 (solib_target_relocate_section_addresses): Update.
16735 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16736 Update.
16737 * solib-frv.c (frv_relocate_main_executable): Update.
16738 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16739 * solib-aix.c (solib_aix_get_section_offsets): Change return
16740 type.
16741 (solib_aix_solib_create_inferior_hook): Update.
16742 * remote.c (remote_target::get_offsets): Update.
16743 * psymtab.c (find_pc_sect_psymtab): Update.
16744 * psympriv.h (struct partial_symbol) <address, text_low,
16745 text_high>: Update.
16746 * objfiles.h (obj_section_offset): Update.
16747 (struct objfile) <section_offsets>: Change type.
16748 <num_sections>: Remove.
16749 (objfile_relocate): Update.
16750 * objfiles.c (entry_point_address_query): Update
16751 (relocate_one_symbol): Change type of "section_offsets".
16752 (objfile_relocate1, objfile_relocate1): Change type of
16753 "new_offsets".
16754 (objfile_rebase1): Update.
16755 * mipsread.c (mipscoff_symfile_read): Update.
16756 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16757 parameter.
16758 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16759 (parse_external, psymtab_to_symtab_1): Update.
16760 * machoread.c (macho_symfile_offsets): Update.
16761 * ia64-tdep.c (ia64_find_unwind_table): Update.
16762 * hppa-tdep.c (read_unwind_info): Update.
16763 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16764 * dwarf2read.c (create_addrmap_from_index)
16765 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16766 (process_psymtab_comp_unit_reader, add_partial_symbol)
16767 (add_partial_subprogram, process_full_comp_unit)
16768 (read_file_scope, read_func_scope, read_lexical_block_scope)
16769 (read_call_site_scope, dwarf2_rnglists_process)
16770 (dwarf2_ranges_process, dwarf2_ranges_read)
16771 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16772 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16773 Update.
16774 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16775 Update.
16776 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16777 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16778 (process_one_symbol): Change type of "section_offsets".
16779 * ctfread.c (get_objfile_text_range): Update.
16780 * coffread.c (coff_symtab_read, enter_linenos)
16781 (process_coff_symbol): Update.
16782 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16783 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16784
456e800a
TT
167852020-01-08 Tom Tromey <tromey@adacore.com>
16786
16787 * dwarf2read.c (parse_macro_definition): Use std::string.
16788 (parse_macro_definition): Likewise.
16789
6dfa2fc2
TT
167902020-01-08 Tom Tromey <tromey@adacore.com>
16791
16792 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16793 (ATTR_ALLOC_CHUNK): Remove.
16794
421d1616
TT
167952020-01-08 Tom Tromey <tromey@adacore.com>
16796
16797 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16798
43816ebc
TT
167992020-01-08 Tom Tromey <tromey@adacore.com>
16800
16801 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16802 (dwarf2_compute_name, open_dwo_file): Likewise.
16803 (process_enumeration_scope): Use std::vector.
16804 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16805 (partial_die_info::fixup, dwarf2_start_subfile)
16806 (guess_full_die_structure_name, dwarf2_name): Likewise.
16807 (determine_prefix): Update.
16808 (guess_full_die_structure_name): Make return type const.
16809 (partial_die_full_name): Return unique_xmalloc_ptr.
16810 (DW_FIELD_ALLOC_CHUNK): Remove.
16811
4212d509
TT
168122020-01-07 Tom Tromey <tromey@adacore.com>
16813
16814 PR build/24937:
16815 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16816
06a6207a
JT
168172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16818
16819 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16820
153d79c4
AB
168212020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16822
16823 * stack.c (print_frame_info): Move disassemble_next_line code
16824 inside source_print block.
16825
66182876
EZ
168262020-01-06 Eli Zaretskii <eliz@gnu.org>
16827
16828 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16829 gdb/signals.h, as we are now using native signal symbols.
16830
cbfa8581
SV
168312020-01-06 Shahab Vahedi <shahab@synopsys.com>
16832
16833 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16834 overflow by an early check of content vs threshold.
aac66a4c 16835 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16836 Likewise.
16837
3f602821
EZ
168382020-01-06 Eli Zaretskii <eliz@gnu.org>
16839
16840 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16841
a08c904d
JT
168422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16843
16844 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16845 export table if no section contains it's RVA.
16846
89a65580
EZ
168472020-01-06 Eli Zaretskii <eliz@gnu.org>
16848
16849 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16850
8b7fcda2
HD
168512020-01-06 Hannes Domani <ssbssa@yahoo.de>
16852
16853 * source.c (print_source_lines_base): Set last_line_listed.
16854
a61b4f69
SV
168552020-01-06 Shahab Vahedi <shahab@synopsys.com>
16856
16857 * tui/tui-disasm.c: Remove trailing spaces.
16858
559e7e50
EZ
168592020-01-06 Eli Zaretskii <eliz@gnu.org>
16860 Pedro Alves <palves@redhat.com>
16861
16862 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16863 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16864 (windows_gdb_signal_to_target): New function, uses the above
16865 enumeration to convert GDB internal signal codes to equivalent
16866 Windows codes.
16867 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16868 * windows-nat.c: Include "gdb_wait.h".
16869 (get_windows_debug_event): Extract the fatal exception from the
16870 exit status and convert to the equivalent Posix signal number.
16871 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16872 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16873 * gdbsupport/gdb_wait.c: New file, implements
16874 windows_status_to_termsig.
16875 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16876 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16877
f2302a34
AB
168782020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16879
16880 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16881 show_layout.
16882
6a5206eb
LM
168832020-01-05 Luis Machado <luis.machado@linaro.org>
16884
16885 * aarch64-linux-nat.c
16886 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16887 and bfd_mach_aarch64.
16888
6ec1d75e
PW
168892020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16890
16891 * ui-file.c (stdio_file::can_emit_style_escape)
16892 (tee_file::can_emit_style_escape): Ensure style is used also on
16893 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16894 to gdb_stdout.
16895 * main.c (set_gdb_data_directory): Use file style to output the
16896 warning that the given pathname is not a directory.
16897 * top.c (show_history_filename, gdb_safe_append_history)
16898 (show_gdb_datadir): Use file style.
16899
44f81a76
HD
169002020-01-03 Hannes Domani <ssbssa@yahoo.de>
16901
16902 * solib-target.c (struct lm_info_target):
16903 Change offsets to be a unique_xmalloc_ptr.
16904 (solib_target_relocate_section_addresses): Update.
16905
25057eb0
HD
169062020-01-03 Hannes Domani <ssbssa@yahoo.de>
16907
16908 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16909
6e2118f5
BE
169102020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16911
16912 * MAINTAINERS (Write After Approval): Add myself.
16913
8133c7dc
LM
169142020-01-02 Luis Machado <luis.machado@linaro.org>
16915
16916 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16917 Cell BE architecture.
16918 * target.h (struct target_ops) <thread_architecture>: Likewise.
16919
48189bec
HD
169202020-01-01 Hannes Domani <ssbssa@yahoo.de>
16921
16922 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16923
ead1063b
HD
169242020-01-01 Hannes Domani <ssbssa@yahoo.de>
16925
16926 * MAINTAINERS (Write After Approval): Add myself.
16927
e5d78223
JB
169282020-01-01 Joel Brobecker <brobecker@adacore.com>
16929
16930 * gdbarch.sh: Update copyright year range of generated files.
16931
b811d2c2
JB
169322020-01-01 Joel Brobecker <brobecker@adacore.com>
16933
16934 Update copyright year range in all GDB files.
16935
5f4def5c
JB
169362020-01-01 Joel Brobecker <brobecker@adacore.com>
16937
16938 * copyright.py: Convert to Python 3.
16939
51fd4002
JB
169402020-01-01 Joel Brobecker <brobecker@adacore.com>
16941
16942 * copyright.py: Adapt after move of gnulib directory from gdb
16943 directory to toplevel directory.
16944
5fb651f2
JB
169452020-01-01 Joel Brobecker <brobecker@adacore.com>
16946
16947 * copyright.py (main): Exit if run from the wrong directory.
16948
5dd8bf88
JB
169492020-01-01 Joel Brobecker <brobecker@adacore.com>
16950
16951 * top.c (print_gdb_version): Change copyright year to 2020.
16952
9f71dacb 169532020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16954
9f71dacb 16955 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16956
9f71dacb 16957For older changes see ChangeLog-2019.
c906108c
SS
16958\f
16959Local Variables:
16960mode: change-log
16961left-margin: 8
16962fill-column: 74
16963version-control: never
57da7796 16964coding: utf-8
c906108c 16965End:
This page took 3.078135 seconds and 4 git commands to generate.