]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2b3cb400
PA
12020-11-16 Pedro Alves <pedro@palves.net>
2
3 * frame.c (get_prev_frame): Move get_frame_id call from here ...
4 (get_prev_frame_always_1): ... to here.
5 * inline-frame.c (inline_frame_this_id): Mention
6 get_prev_frame_always_1 in comment.
7
b74dbc20
JB
82020-11-15 Joel Brobecker <brobecker@adacore.com>
9
10 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
11 handling.
12 (value_less): Add fixed-point handling.
13
0a12719e
JB
142020-11-15 Joel Brobecker <brobecker@adacore.com>
15
16 * eval.c (binop_promote): Add fixed-point type handling.
17 * valarith.c (fixed_point_binop): New function.
18 (scalar_binop): Add fixed-point type handling.
19 (value_neg): Add fixed-point type handling.
20 * valops.c (value_cast_to_fixed_point): New function.
21 (value_cast): Add fixed-point type handling.
22
0c9150e4
JB
232020-11-15 Joel Brobecker <brobecker@adacore.com>
24
25 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
26 range types.
27 * c-typeprint.c (c_type_print_varspec_prefix)
28 (c_type_print_varspec_suffix, c_type_print_base_1): Add
29 TYPE_CODE_FIXED_POINT handling.
30 * p-typeprint.c (pascal_type_print_varspec_prefix)
31 (pascal_type_print_varspec_suffix): Likewise.
32 * typeprint.c (print_type_fixed_point): New function.
33 * typeprint.h (print_type_fixed_point): Add declaration.
34
b26daff9
JB
352020-11-15 Joel Brobecker <brobecker@adacore.com>
36
37 * printcmd.c (print_scalar_formatted): Add fixed-point type
38 handling when options->format is set.
39
09584414
JB
402020-11-15 Joel Brobecker <brobecker@adacore.com>
41
42 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
43 * dwarf2/read.c (get_dwarf2_rational_constant)
44 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
45 (has_zero_over_zero_small_attribute): New functions.
46 read_base_type, set_die_type): Add fixed-point type handling.
47 * gdb-gdb.py.in: Add fixed-point type handling.
48 * gdbtypes.c: #include "gmp-utils.h".
49 (create_range_type, set_type_code): Add fixed-point type handling.
50 (init_fixed_point_type): New function.
51 (is_integral_type, is_scalar_type): Add fixed-point type handling.
52 (print_fixed_point_type_info): New function.
53 (recursive_dump_type, copy_type_recursive): Add fixed-point type
54 handling.
55 (fixed_point_type_storage): New typedef.
56 (fixed_point_objfile_key): New static global.
57 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
58 (fixed_point_type_base_type, fixed_point_scaling_factor): New
59 functions.
60 * gdbtypes.h: #include "gmp-utils.h".
61 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
62 (union type_specific) <fixed_point_info>: New field.
63 (struct fixed_point_type_info): New struct.
64 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
65 (init_fixed_point_type, is_fixed_point_type)
66 (fixed_point_type_base_type, fixed_point_scaling_factor)
67 (allocate_fixed_point_type_info): Add declarations.
68 * valprint.c (generic_val_print_fixed_point): New function.
69 (generic_value_print): Add fixed-point type handling.
70 * value.c (value_as_address, unpack_long): Add fixed-point type
71 handling.
72
e55c6530
JB
732020-11-15 Joel Brobecker <brobecker@adacore.com>
74
75 * utils.h (uinteger_pow): Add declaration.
76 * utils.c (uinteger_pow): Moved here (without changes)...
77 * valarith.c (uinteger_pow): ... from here.
78
b34c74ab
JB
792020-11-15 Joel Brobecker <brobecker@adacore.com>
80
81 * gmp-utils.h, gmp-utils.h: New file.
82 * unittests/gmp-utils-selftests.c: New file.
83 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
84 unittests/gmp-utils-selftests.c.
85 (COMMON_SFILES) Add gmp-utils.c.
86 (HFILES_NO_SRCDIR): Add gmp-utils.h.
87
1b4ac058
JB
882020-11-15 Joel Brobecker <brobecker@adacore.com>
89
90 * configure.ac: Generate an error if a usable GMP library
91 could not be found.
92 * configure: Regenerate.
93
2c947d9b
JB
942020-11-15 Joel Brobecker <brobecker@adacore.com>
95
96 * configure.ac: Add support for --with-libgmp-prefix.
97 * Makefile.in (LIBGMP): New variable.
98 (CLIBS): Include $(LIBGMP).
99 * configure, config.in: Regenerate
100
9dd02fc0
AB
1012020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 PR cli/26879
104 * f-exp.y (COMPLETE): New token.
105 (exp): Two new rules for tab-completion.
106 (saw_name_at_eof): New static global.
107 (last_was_structop): Likewise.
108 (yylex): Set new variables, and return COMPLETE token at the end
109 of the input stream in some cases.
110
758cb810
TT
1112020-11-14 Tom Tromey <tom@tromey.com>
112
113 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
114
749065b7
TT
1152020-11-14 Tom Tromey <tom@tromey.com>
116
117 * opencl-lang.c (opencl_component_ref): Make "comps" const.
118
2c5b1849
SM
1192020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
122
e8b2f0d9
TT
1232020-11-13 Tom Tromey <tom@tromey.com>
124
125 * c-lang.c (convert_ucn, convert_octal, convert_hex)
126 (convert_escape, parse_one_string): Constify.
127
25f4c262
KS
1282020-11-13 Keith Seitz <keiths@redhat.com>
129
130 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
131 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
132 outside of ELF segments" warning for debugin
133
9d3ab915
KS
1342020-11-13 Keith Seitz <keiths@redhat.com>
135
136 PR gdb/23034
137 * elfread.c (elf_symfile_segments): Output a BFD file name
138 for the "Loadable section ... outside of ELF segments" warning.
139
9ecab40c
SM
1402020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
141
142 PR gdb/26835
143 * arm-tdep.c (class arm_instruction_reader): New.
144 (target_arm_instruction_reader): New.
145 (arm_analyze_prologue): Add instruction reader parameter and use
146 it. Use arm_expand_immediate.
147 (class target_arm_instruction_reader): Adjust.
148 (arm_skip_prologue): Adjust.
149 (arm_expand_immediate): New.
150 (arm_scan_prologue): Adjust.
151 (arm_analyze_prologue_test): New.
152 (class test_arm_instruction_reader): New.
153
5a7cf527
AB
1542020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * f-lang.c (fortran_argument_convert): Add declaration. Add
157 header comment, taken from f-lang.h. Make static.
158 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
159 (fortran_argument_convert): Delete declaration.
160
7bea47f0
AB
1612020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * ada-exp.y (find_primitive_type): Make parameter const.
164 * ada-lang.c (enum ada_primitive_types): Delete.
165 (ada_language::language_arch_info): Update.
166 * c-lang.c (enum c_primitive_types): Delete.
167 (c_language_arch_info): Update.
168 (enum cplus_primitive_types): Delete.
169 (cplus_language::language_arch_info): Update.
170 * d-lang.c (enum d_primitive_types): Delete.
171 (d_language::language_arch_info): Update.
172 * f-lang.c (enum f_primitive_types): Delete.
173 (f_language::language_arch_info): Update.
174 * go-lang.c (enum go_primitive_types): Delete.
175 (go_language::language_arch_info): Update.
176 * language.c (auto_or_unknown_language::language_arch_info):
177 Update.
178 (language_gdbarch_post_init): Use obstack_new, use array indexing.
179 (language_string_char_type): Add header comment, call function in
180 language_arch_info.
181 (language_bool_type): Likewise
182 (language_arch_info::bool_type): Define.
183 (language_lookup_primitive_type_1): Delete.
184 (language_lookup_primitive_type): Rewrite as a templated function
185 to call function in language_arch_info, then instantiate twice.
186 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
187 (language_arch_info::lookup_primitive_type_and_symbol): Define.
188 (language_arch_info::lookup_primitive_type): Define twice with
189 different signatures.
190 (language_arch_info::lookup_primitive_type_as_symbol): Define.
191 (language_lookup_primitive_type_as_symbol): Rewrite to call a
192 member function in language_arch_info.
193 * language.h (language_arch_info): Complete rewrite.
194 (language_lookup_primitive_type): Make templated.
195 * m2-lang.c (enum m2_primitive_types): Delete.
196 (m2_language::language_arch_info): Update.
197 * opencl-lang.c (OCL_P_TYPE): Delete.
198 (enum opencl_primitive_types): Delete.
199 (opencl_type_data): Delete.
200 (builtin_opencl_type): Delete.
201 (lookup_opencl_vector_type): Update.
202 (opencl_language::language_arch_info): Update, lots of content
203 moved from...
204 (build_opencl_types): ...here. This function is now deleted.
205 (_initialize_opencl_language): Delete.
206 * p-lang.c (enum pascal_primitive_types): Delete.
207 (pascal_language::language_arch_info): Update.
208 * rust-lang.c (enum rust_primitive_types): Delete.
209 (rust_language::language_arch_info): Update.
210
bf6e5d01
SM
2112020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
214 dwarf2_queue_guard.
215
1350c3b4
SM
2162020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
219 comment.
220
6f738b01
SM
2212020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * dwarf2/read.c (dwarf_read_debug_printf,
224 dwarf_read_debug_printf_v): New macros, use throughout the file.
225
10c19fad
SV
2262020-11-12 Shahab Vahedi <shahab@synopsys.com>
227
228 * arc-linux-tdep.c (collect_register): Populate "eret" by
229 "pc" value from the regcache when asked for "pc" value.
230
1f2624a3
TT
2312020-11-12 Tom Tromey <tom@tromey.com>
232
233 PR rust/26799:
234 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
235 exist.
236
ab33b152
AB
2372020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * features/Makefile (XMLTOC): Add rx.xml.
240 (FEATURE_XMLFILES): Remove rx.xml.
241 (FEATURE_CFILES rule): Pass '-single-feature' flag.
242 * features/rx.c: Regenerate.
243 * features/rx.xml: Wrap in `target` tags, and reindent.
244 * target-descriptions.c (struct maint_print_c_tdesc_options): New
245 structure.
246 (maint_print_c_tdesc_opt_def): New typedef.
247 (maint_print_c_tdesc_opt_defs): New static global.
248 (make_maint_print_c_tdesc_options_def_group): New function.
249 (maint_print_c_tdesc_cmd): Make use of command line flags, only
250 print single feature C file for target descriptions containing a
251 single feature.
252 (maint_print_c_tdesc_cmd_completer): New function.
253 (_initialize_target_descriptions): Update call to register command
254 completer, and include command line flag in help text.
255
550820e1
AB
2562020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
259 numbers.
260 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
261 enum values.
262
baf20f76
TT
2632020-11-10 Tom Tromey <tom@tromey.com>
264
265 * value.h (internalvar_name): Update.
266 * value.c (internalvar_name): Make return type const.
267
caaece0e
TT
2682020-11-10 Tom Tromey <tom@tromey.com>
269
270 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
271 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
272 const.
273
8e20b4be
TT
2742020-11-10 Tom Tromey <tom@tromey.com>
275
276 * objc-lang.h (value_nsstring): Update.
277 * objc-lang.c (value_nsstring): Make "ptr" const.
278
86775fab
AB
2792020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * expprint.c (print_subexp_funcall): Increment expression position
282 after reading argument count.
283 * f-lang.c (print_subexp_f): Skip over opcode before calling
284 common function.
285 (dump_subexp_body_f): Likewise.
286
3fed4c0b
RG
2872020-11-06 Romain Geissler <romain.geissler@amadeus.com>
288
289 PR python/26832
290 * configure: Regenerate.
291 * configure.ac: Check for python modules ctypes instead of
292 itertools.
293
ac3d4064
PA
2942020-11-06 Pedro Alves <pedro@palves.net>
295
296 * macroexp.c (struct macro_buffer): Split in two classes. Add
297 uses adjusted.
298 (struct shared_macro_buffer): New, factored out from struct
299 macro_buffer.
300 (struct growable_macro_buffer): New, factored out from struct
301 macro_buffer.
302 (set_token, get_comment, get_identifier, get_pp_number)
303 (get_character_constant, get_string_literal, get_punctuator)
304 (get_next_token_for_substitution): Constify parameters.
305 (substitute_args): Constify locals.
306
606decb2
TT
3072020-11-05 Tom Tromey <tom@tromey.com>
308
309 * dwarf2/read.c (read_cutu_die_from_dwo)
310 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
311 (build_type_psymtabs_1): Update.
312 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
313 parameter.
314 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
315 Don't read section. Add assert.
316
9c91c725
TT
3172020-11-04 Tom Tromey <tromey@adacore.com>
318
319 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
320
8d9fd3a1
TT
3212020-11-04 Tom Tromey <tromey@adacore.com>
322
323 * ada-typeprint.c (ada_print_type): Handle __T types.
324
d8f62e84
TT
3252020-11-04 Tom Tromey <tromey@adacore.com>
326
327 * dwarf2/read.c (add_partial_symbol, process_die):
328 Handle DW_TAG_array_type.
329 (is_type_tag_for_partial): Add "lang" parameter.
330 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
331
7ff5b937
TT
3322020-11-04 Tom Tromey <tromey@adacore.com>
333
334 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
335
10f6a3ad
TT
3362020-11-04 Tom Tromey <tromey@adacore.com>
337
338 * dwarf2/read.c (read_array_type): Only apply stride to innermost
339 array.
340
b72795a8
TT
3412020-11-04 Tom Tromey <tromey@adacore.com>
342
343 * gdbtypes.c (update_static_array_size): Handle bit stride.
344
24aa1b02
TT
3452020-11-04 Tom Tromey <tromey@adacore.com>
346
347 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
348
c9a28cbe
TT
3492020-11-04 Tom Tromey <tromey@adacore.com>
350
351 * ada-lang.c (ada_is_any_packed_array_type): New function.
352 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
353
57567375
TT
3542020-11-04 Tom Tromey <tromey@adacore.com>
355
356 * dwarf2/read.c (recognize_bound_expression)
357 (quirk_ada_thick_pointer): New functions.
358 (read_array_type): Call quirk_ada_thick_pointer.
359 (set_die_type): Add "skip_data_location" parameter.
360 (quirk_ada_thick_pointer): New function.
361 (process_structure_scope): Call quirk_ada_thick_pointer.
362 * ada-lang.c (ada_is_unconstrained_packed_array_type)
363 (decode_packed_array_bitsize): Handle thick pointers without
364 parallel types.
365 (ada_is_gnat_encoded_packed_array_type): Rename from
366 ada_is_packed_array_type.
367 (ada_is_constrained_packed_array_type): Update.
368 * ada-valprint.c (ada_val_print_gnat_array): Remove.
369 (ada_value_print_1): Use ada_get_decoded_value.
370
a7400e44
TT
3712020-11-04 Tom Tromey <tromey@adacore.com>
372
373 * ada-lang.c (recursively_update_array_bitsize): New function.
374 (decode_constrained_packed_array_type): Call it.
375
75fd6a26
TT
3762020-11-04 Tom Tromey <tromey@adacore.com>
377
378 * ada-lang.c (to_fixed_array_type): Error if
379 decode_constrained_packed_array_type returns NULL.
380
93f9561e
TT
3812020-11-04 Tom Tromey <tromey@adacore.com>
382
383 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
384
257e02d8
TT
3852020-11-02 Tom Tromey <tromey@adacore.com>
386
387 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
388 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
389 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
390 * amd64-ravenscar-thread.c: New file.
391 * amd64-ravenscar-thread.h: New file.
392 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
393 * configure.tgt (amd64_tobjs): Add ravenscar objects.
394
74d877e5
AB
3952020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * main.c (execute_cmdargs): New function.
398 (captured_main_1): Make use of execute_cmdargs.
399
64aaad63
AB
4002020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * NEWS: Mention changes to config file search path.
403 * main.c
404
5b3d3560
TT
4052020-11-02 Tom Tromey <tromey@adacore.com>
406
407 * python/python.c: Consolidate two HAVE_PYTHON blocks.
408 (python_GdbModuleDef): Move earlier. Now static.
409 (do_start_initialization): Consolidate some IS_PY3K blocks.
410
dda83cd7
SM
4112020-11-02 Simon Marchi <simon.marchi@efficios.com>
412
413 * aarch64-linux-tdep.c: Fix indentation.
414 * aarch64-ravenscar-thread.c: Fix indentation.
415 * aarch64-tdep.c: Fix indentation.
416 * aarch64-tdep.h: Fix indentation.
417 * ada-lang.c: Fix indentation.
418 * ada-lang.h: Fix indentation.
419 * ada-tasks.c: Fix indentation.
420 * ada-typeprint.c: Fix indentation.
421 * ada-valprint.c: Fix indentation.
422 * ada-varobj.c: Fix indentation.
423 * addrmap.c: Fix indentation.
424 * addrmap.h: Fix indentation.
425 * agent.c: Fix indentation.
426 * aix-thread.c: Fix indentation.
427 * alpha-bsd-nat.c: Fix indentation.
428 * alpha-linux-tdep.c: Fix indentation.
429 * alpha-mdebug-tdep.c: Fix indentation.
430 * alpha-nbsd-tdep.c: Fix indentation.
431 * alpha-obsd-tdep.c: Fix indentation.
432 * alpha-tdep.c: Fix indentation.
433 * amd64-bsd-nat.c: Fix indentation.
434 * amd64-darwin-tdep.c: Fix indentation.
435 * amd64-linux-nat.c: Fix indentation.
436 * amd64-linux-tdep.c: Fix indentation.
437 * amd64-nat.c: Fix indentation.
438 * amd64-obsd-tdep.c: Fix indentation.
439 * amd64-tdep.c: Fix indentation.
440 * amd64-windows-tdep.c: Fix indentation.
441 * annotate.c: Fix indentation.
442 * arc-tdep.c: Fix indentation.
443 * arch-utils.c: Fix indentation.
444 * arch/arm-get-next-pcs.c: Fix indentation.
445 * arch/arm.c: Fix indentation.
446 * arm-linux-nat.c: Fix indentation.
447 * arm-linux-tdep.c: Fix indentation.
448 * arm-nbsd-tdep.c: Fix indentation.
449 * arm-pikeos-tdep.c: Fix indentation.
450 * arm-tdep.c: Fix indentation.
451 * arm-tdep.h: Fix indentation.
452 * arm-wince-tdep.c: Fix indentation.
453 * auto-load.c: Fix indentation.
454 * auxv.c: Fix indentation.
455 * avr-tdep.c: Fix indentation.
456 * ax-gdb.c: Fix indentation.
457 * ax-general.c: Fix indentation.
458 * bfin-linux-tdep.c: Fix indentation.
459 * block.c: Fix indentation.
460 * block.h: Fix indentation.
461 * blockframe.c: Fix indentation.
462 * bpf-tdep.c: Fix indentation.
463 * break-catch-sig.c: Fix indentation.
464 * break-catch-syscall.c: Fix indentation.
465 * break-catch-throw.c: Fix indentation.
466 * breakpoint.c: Fix indentation.
467 * breakpoint.h: Fix indentation.
468 * bsd-uthread.c: Fix indentation.
469 * btrace.c: Fix indentation.
470 * build-id.c: Fix indentation.
471 * buildsym-legacy.h: Fix indentation.
472 * buildsym.c: Fix indentation.
473 * c-typeprint.c: Fix indentation.
474 * c-valprint.c: Fix indentation.
475 * c-varobj.c: Fix indentation.
476 * charset.c: Fix indentation.
477 * cli/cli-cmds.c: Fix indentation.
478 * cli/cli-decode.c: Fix indentation.
479 * cli/cli-decode.h: Fix indentation.
480 * cli/cli-script.c: Fix indentation.
481 * cli/cli-setshow.c: Fix indentation.
482 * coff-pe-read.c: Fix indentation.
483 * coffread.c: Fix indentation.
484 * compile/compile-cplus-types.c: Fix indentation.
485 * compile/compile-object-load.c: Fix indentation.
486 * compile/compile-object-run.c: Fix indentation.
487 * completer.c: Fix indentation.
488 * corefile.c: Fix indentation.
489 * corelow.c: Fix indentation.
490 * cp-abi.h: Fix indentation.
491 * cp-namespace.c: Fix indentation.
492 * cp-support.c: Fix indentation.
493 * cp-valprint.c: Fix indentation.
494 * cris-linux-tdep.c: Fix indentation.
495 * cris-tdep.c: Fix indentation.
496 * darwin-nat-info.c: Fix indentation.
497 * darwin-nat.c: Fix indentation.
498 * darwin-nat.h: Fix indentation.
499 * dbxread.c: Fix indentation.
500 * dcache.c: Fix indentation.
501 * disasm.c: Fix indentation.
502 * dtrace-probe.c: Fix indentation.
503 * dwarf2/abbrev.c: Fix indentation.
504 * dwarf2/attribute.c: Fix indentation.
505 * dwarf2/expr.c: Fix indentation.
506 * dwarf2/frame.c: Fix indentation.
507 * dwarf2/index-cache.c: Fix indentation.
508 * dwarf2/index-write.c: Fix indentation.
509 * dwarf2/line-header.c: Fix indentation.
510 * dwarf2/loc.c: Fix indentation.
511 * dwarf2/macro.c: Fix indentation.
512 * dwarf2/read.c: Fix indentation.
513 * dwarf2/read.h: Fix indentation.
514 * elfread.c: Fix indentation.
515 * eval.c: Fix indentation.
516 * event-top.c: Fix indentation.
517 * exec.c: Fix indentation.
518 * exec.h: Fix indentation.
519 * expprint.c: Fix indentation.
520 * f-lang.c: Fix indentation.
521 * f-typeprint.c: Fix indentation.
522 * f-valprint.c: Fix indentation.
523 * fbsd-nat.c: Fix indentation.
524 * fbsd-tdep.c: Fix indentation.
525 * findvar.c: Fix indentation.
526 * fork-child.c: Fix indentation.
527 * frame-unwind.c: Fix indentation.
528 * frame-unwind.h: Fix indentation.
529 * frame.c: Fix indentation.
530 * frv-linux-tdep.c: Fix indentation.
531 * frv-tdep.c: Fix indentation.
532 * frv-tdep.h: Fix indentation.
533 * ft32-tdep.c: Fix indentation.
534 * gcore.c: Fix indentation.
535 * gdb_bfd.c: Fix indentation.
536 * gdbarch.sh: Fix indentation.
537 * gdbarch.c: Re-generate
538 * gdbarch.h: Re-generate.
539 * gdbcore.h: Fix indentation.
540 * gdbthread.h: Fix indentation.
541 * gdbtypes.c: Fix indentation.
542 * gdbtypes.h: Fix indentation.
543 * glibc-tdep.c: Fix indentation.
544 * gnu-nat.c: Fix indentation.
545 * gnu-nat.h: Fix indentation.
546 * gnu-v2-abi.c: Fix indentation.
547 * gnu-v3-abi.c: Fix indentation.
548 * go32-nat.c: Fix indentation.
549 * guile/guile-internal.h: Fix indentation.
550 * guile/scm-cmd.c: Fix indentation.
551 * guile/scm-frame.c: Fix indentation.
552 * guile/scm-iterator.c: Fix indentation.
553 * guile/scm-math.c: Fix indentation.
554 * guile/scm-ports.c: Fix indentation.
555 * guile/scm-pretty-print.c: Fix indentation.
556 * guile/scm-value.c: Fix indentation.
557 * h8300-tdep.c: Fix indentation.
558 * hppa-linux-nat.c: Fix indentation.
559 * hppa-linux-tdep.c: Fix indentation.
560 * hppa-nbsd-nat.c: Fix indentation.
561 * hppa-nbsd-tdep.c: Fix indentation.
562 * hppa-obsd-nat.c: Fix indentation.
563 * hppa-tdep.c: Fix indentation.
564 * hppa-tdep.h: Fix indentation.
565 * i386-bsd-nat.c: Fix indentation.
566 * i386-darwin-nat.c: Fix indentation.
567 * i386-darwin-tdep.c: Fix indentation.
568 * i386-dicos-tdep.c: Fix indentation.
569 * i386-gnu-nat.c: Fix indentation.
570 * i386-linux-nat.c: Fix indentation.
571 * i386-linux-tdep.c: Fix indentation.
572 * i386-nto-tdep.c: Fix indentation.
573 * i386-obsd-tdep.c: Fix indentation.
574 * i386-sol2-nat.c: Fix indentation.
575 * i386-tdep.c: Fix indentation.
576 * i386-tdep.h: Fix indentation.
577 * i386-windows-tdep.c: Fix indentation.
578 * i387-tdep.c: Fix indentation.
579 * i387-tdep.h: Fix indentation.
580 * ia64-libunwind-tdep.c: Fix indentation.
581 * ia64-libunwind-tdep.h: Fix indentation.
582 * ia64-linux-nat.c: Fix indentation.
583 * ia64-linux-tdep.c: Fix indentation.
584 * ia64-tdep.c: Fix indentation.
585 * ia64-tdep.h: Fix indentation.
586 * ia64-vms-tdep.c: Fix indentation.
587 * infcall.c: Fix indentation.
588 * infcmd.c: Fix indentation.
589 * inferior.c: Fix indentation.
590 * infrun.c: Fix indentation.
591 * iq2000-tdep.c: Fix indentation.
592 * language.c: Fix indentation.
593 * linespec.c: Fix indentation.
594 * linux-fork.c: Fix indentation.
595 * linux-nat.c: Fix indentation.
596 * linux-tdep.c: Fix indentation.
597 * linux-thread-db.c: Fix indentation.
598 * lm32-tdep.c: Fix indentation.
599 * m2-lang.c: Fix indentation.
600 * m2-typeprint.c: Fix indentation.
601 * m2-valprint.c: Fix indentation.
602 * m32c-tdep.c: Fix indentation.
603 * m32r-linux-tdep.c: Fix indentation.
604 * m32r-tdep.c: Fix indentation.
605 * m68hc11-tdep.c: Fix indentation.
606 * m68k-bsd-nat.c: Fix indentation.
607 * m68k-linux-nat.c: Fix indentation.
608 * m68k-linux-tdep.c: Fix indentation.
609 * m68k-tdep.c: Fix indentation.
610 * machoread.c: Fix indentation.
611 * macrocmd.c: Fix indentation.
612 * macroexp.c: Fix indentation.
613 * macroscope.c: Fix indentation.
614 * macrotab.c: Fix indentation.
615 * macrotab.h: Fix indentation.
616 * main.c: Fix indentation.
617 * mdebugread.c: Fix indentation.
618 * mep-tdep.c: Fix indentation.
619 * mi/mi-cmd-catch.c: Fix indentation.
620 * mi/mi-cmd-disas.c: Fix indentation.
621 * mi/mi-cmd-env.c: Fix indentation.
622 * mi/mi-cmd-stack.c: Fix indentation.
623 * mi/mi-cmd-var.c: Fix indentation.
624 * mi/mi-cmds.c: Fix indentation.
625 * mi/mi-main.c: Fix indentation.
626 * mi/mi-parse.c: Fix indentation.
627 * microblaze-tdep.c: Fix indentation.
628 * minidebug.c: Fix indentation.
629 * minsyms.c: Fix indentation.
630 * mips-linux-nat.c: Fix indentation.
631 * mips-linux-tdep.c: Fix indentation.
632 * mips-nbsd-tdep.c: Fix indentation.
633 * mips-tdep.c: Fix indentation.
634 * mn10300-linux-tdep.c: Fix indentation.
635 * mn10300-tdep.c: Fix indentation.
636 * moxie-tdep.c: Fix indentation.
637 * msp430-tdep.c: Fix indentation.
638 * namespace.h: Fix indentation.
639 * nat/fork-inferior.c: Fix indentation.
640 * nat/gdb_ptrace.h: Fix indentation.
641 * nat/linux-namespaces.c: Fix indentation.
642 * nat/linux-osdata.c: Fix indentation.
643 * nat/netbsd-nat.c: Fix indentation.
644 * nat/x86-dregs.c: Fix indentation.
645 * nbsd-nat.c: Fix indentation.
646 * nbsd-tdep.c: Fix indentation.
647 * nios2-linux-tdep.c: Fix indentation.
648 * nios2-tdep.c: Fix indentation.
649 * nto-procfs.c: Fix indentation.
650 * nto-tdep.c: Fix indentation.
651 * objfiles.c: Fix indentation.
652 * objfiles.h: Fix indentation.
653 * opencl-lang.c: Fix indentation.
654 * or1k-tdep.c: Fix indentation.
655 * osabi.c: Fix indentation.
656 * osabi.h: Fix indentation.
657 * osdata.c: Fix indentation.
658 * p-lang.c: Fix indentation.
659 * p-typeprint.c: Fix indentation.
660 * p-valprint.c: Fix indentation.
661 * parse.c: Fix indentation.
662 * ppc-linux-nat.c: Fix indentation.
663 * ppc-linux-tdep.c: Fix indentation.
664 * ppc-nbsd-nat.c: Fix indentation.
665 * ppc-nbsd-tdep.c: Fix indentation.
666 * ppc-obsd-nat.c: Fix indentation.
667 * ppc-ravenscar-thread.c: Fix indentation.
668 * ppc-sysv-tdep.c: Fix indentation.
669 * ppc64-tdep.c: Fix indentation.
670 * printcmd.c: Fix indentation.
671 * proc-api.c: Fix indentation.
672 * producer.c: Fix indentation.
673 * producer.h: Fix indentation.
674 * prologue-value.c: Fix indentation.
675 * prologue-value.h: Fix indentation.
676 * psymtab.c: Fix indentation.
677 * python/py-arch.c: Fix indentation.
678 * python/py-bpevent.c: Fix indentation.
679 * python/py-event.c: Fix indentation.
680 * python/py-event.h: Fix indentation.
681 * python/py-finishbreakpoint.c: Fix indentation.
682 * python/py-frame.c: Fix indentation.
683 * python/py-framefilter.c: Fix indentation.
684 * python/py-inferior.c: Fix indentation.
685 * python/py-infthread.c: Fix indentation.
686 * python/py-objfile.c: Fix indentation.
687 * python/py-prettyprint.c: Fix indentation.
688 * python/py-registers.c: Fix indentation.
689 * python/py-signalevent.c: Fix indentation.
690 * python/py-stopevent.c: Fix indentation.
691 * python/py-stopevent.h: Fix indentation.
692 * python/py-threadevent.c: Fix indentation.
693 * python/py-tui.c: Fix indentation.
694 * python/py-unwind.c: Fix indentation.
695 * python/py-value.c: Fix indentation.
696 * python/py-xmethods.c: Fix indentation.
697 * python/python-internal.h: Fix indentation.
698 * python/python.c: Fix indentation.
699 * ravenscar-thread.c: Fix indentation.
700 * record-btrace.c: Fix indentation.
701 * record-full.c: Fix indentation.
702 * record.c: Fix indentation.
703 * reggroups.c: Fix indentation.
704 * regset.h: Fix indentation.
705 * remote-fileio.c: Fix indentation.
706 * remote.c: Fix indentation.
707 * reverse.c: Fix indentation.
708 * riscv-linux-tdep.c: Fix indentation.
709 * riscv-ravenscar-thread.c: Fix indentation.
710 * riscv-tdep.c: Fix indentation.
711 * rl78-tdep.c: Fix indentation.
712 * rs6000-aix-tdep.c: Fix indentation.
713 * rs6000-lynx178-tdep.c: Fix indentation.
714 * rs6000-nat.c: Fix indentation.
715 * rs6000-tdep.c: Fix indentation.
716 * rust-lang.c: Fix indentation.
717 * rx-tdep.c: Fix indentation.
718 * s12z-tdep.c: Fix indentation.
719 * s390-linux-tdep.c: Fix indentation.
720 * score-tdep.c: Fix indentation.
721 * ser-base.c: Fix indentation.
722 * ser-mingw.c: Fix indentation.
723 * ser-uds.c: Fix indentation.
724 * ser-unix.c: Fix indentation.
725 * serial.c: Fix indentation.
726 * sh-linux-tdep.c: Fix indentation.
727 * sh-nbsd-tdep.c: Fix indentation.
728 * sh-tdep.c: Fix indentation.
729 * skip.c: Fix indentation.
730 * sol-thread.c: Fix indentation.
731 * solib-aix.c: Fix indentation.
732 * solib-darwin.c: Fix indentation.
733 * solib-frv.c: Fix indentation.
734 * solib-svr4.c: Fix indentation.
735 * solib.c: Fix indentation.
736 * source.c: Fix indentation.
737 * sparc-linux-tdep.c: Fix indentation.
738 * sparc-nbsd-tdep.c: Fix indentation.
739 * sparc-obsd-tdep.c: Fix indentation.
740 * sparc-ravenscar-thread.c: Fix indentation.
741 * sparc-tdep.c: Fix indentation.
742 * sparc64-linux-tdep.c: Fix indentation.
743 * sparc64-nbsd-tdep.c: Fix indentation.
744 * sparc64-obsd-tdep.c: Fix indentation.
745 * sparc64-tdep.c: Fix indentation.
746 * stabsread.c: Fix indentation.
747 * stack.c: Fix indentation.
748 * stap-probe.c: Fix indentation.
749 * stubs/ia64vms-stub.c: Fix indentation.
750 * stubs/m32r-stub.c: Fix indentation.
751 * stubs/m68k-stub.c: Fix indentation.
752 * stubs/sh-stub.c: Fix indentation.
753 * stubs/sparc-stub.c: Fix indentation.
754 * symfile-mem.c: Fix indentation.
755 * symfile.c: Fix indentation.
756 * symfile.h: Fix indentation.
757 * symmisc.c: Fix indentation.
758 * symtab.c: Fix indentation.
759 * symtab.h: Fix indentation.
760 * target-float.c: Fix indentation.
761 * target.c: Fix indentation.
762 * target.h: Fix indentation.
763 * tic6x-tdep.c: Fix indentation.
764 * tilegx-linux-tdep.c: Fix indentation.
765 * tilegx-tdep.c: Fix indentation.
766 * top.c: Fix indentation.
767 * tracefile-tfile.c: Fix indentation.
768 * tracepoint.c: Fix indentation.
769 * tui/tui-disasm.c: Fix indentation.
770 * tui/tui-io.c: Fix indentation.
771 * tui/tui-regs.c: Fix indentation.
772 * tui/tui-stack.c: Fix indentation.
773 * tui/tui-win.c: Fix indentation.
774 * tui/tui-winsource.c: Fix indentation.
775 * tui/tui.c: Fix indentation.
776 * typeprint.c: Fix indentation.
777 * ui-out.h: Fix indentation.
778 * unittests/copy_bitwise-selftests.c: Fix indentation.
779 * unittests/memory-map-selftests.c: Fix indentation.
780 * utils.c: Fix indentation.
781 * v850-tdep.c: Fix indentation.
782 * valarith.c: Fix indentation.
783 * valops.c: Fix indentation.
784 * valprint.c: Fix indentation.
785 * valprint.h: Fix indentation.
786 * value.c: Fix indentation.
787 * value.h: Fix indentation.
788 * varobj.c: Fix indentation.
789 * vax-tdep.c: Fix indentation.
790 * windows-nat.c: Fix indentation.
791 * windows-tdep.c: Fix indentation.
792 * xcoffread.c: Fix indentation.
793 * xml-syscall.c: Fix indentation.
794 * xml-tdesc.c: Fix indentation.
795 * xstormy16-tdep.c: Fix indentation.
796 * xtensa-config.c: Fix indentation.
797 * xtensa-linux-nat.c: Fix indentation.
798 * xtensa-linux-tdep.c: Fix indentation.
799 * xtensa-tdep.c: Fix indentation.
800
e1f57067
AB
8012020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
802 Craig Blackmore <craig.blackmore@embecosm.com>
803
804 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
805 as an unsigned value.
806
ae7754b2
TT
8072020-11-01 Tom Tromey <tom@tromey.com>
808
809 * dbxread.c (dbx_end_psymtab): Update.
810 * dwarf2/read.c (process_psymtab_comp_unit_reader)
811 (build_type_psymtabs_reader): Update.
812 * xcoffread.c (xcoff_end_psymtab): Update.
813 * ctfread.c (scan_partial_symbols): Update.
814 * psymtab.c (sort_pst_symbols): Remove.
815 (partial_symtab::end): Rename from end_psymtab_common. Inline
816 sort_pst_symbols.
817 * psympriv.h (struct partial_symtab) <end>: New method.
818 (end_psymtab_common): Don't declare.
819
0684bb51
TT
8202020-11-01 Tom Tromey <tom@tromey.com>
821
822 * symmisc.c (count_psyms): New function.
823 (print_objfile_statistics): Use it.
824 * psymtab.c (append_psymbol_to_list): Remove.
825 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
826 * objfiles.h (struct objstats) <n_psyms>: Remove.
827
089002bb
TT
8282020-11-01 Tom Tromey <tom@tromey.com>
829
830 * dbxread.c (dbx_end_psymtab): Update.
831 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
832 (build_type_psymtabs_reader): Update.
833 * xcoffread.c (xcoff_end_psymtab): Update.
834 * ctfread.c (scan_partial_symbols): Update.
835 * psympriv.h (end_psymtab_common): Update.
836 * psymtab.c (end_psymtab_common): Remove objfile parameter.
837 (sort_pst_symbols): Likewise.
838
525454d6
TT
8392020-11-01 Tom Tromey <tom@tromey.com>
840
841 * dbxread.c (dbx_symfile_read): Update.
842 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
843 * xcoffread.c (xcoff_initial_scan): Update.
844 * psympriv.h (init_psymbol_list): Don't declare.
845 * psymtab.c (init_psymbol_list): Remove.
846
60bd1d53
JB
8472020-11-01 Joel Brobecker <brobecker@adacore.com>
848
849 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
850 gnat_encoded_fixed_type_info. Update all callers.
851
db99d0d0
JB
8522020-11-01 Joel Brobecker <brobecker@adacore.com>
853
854 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
855 line too long.
856
75f24e86
JB
8572020-11-01 Joel Brobecker <brobecker@adacore.com>
858
859 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
860 cast_from_fixed. Update all callers.
861 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
862 Update all callers.
863 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
864 Update all callers.
865 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
866 ada_scaling_factor.
867 * ada-typeprint.c: Replace call to ada_scaling_factor by call
868 to print_gnat_encoded_fixed_point_type.
869 * ada-valprint.c: Likewise.
870
4f0469cd
AB
8712020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
874 (debug_prefixed_printf): Add check of debug_displaced flag.
875 * linux-nat.c (linux_nat_debug_printf): Add check of
876 debug_linux_nat flag.
877
17417fb0
SM
8782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * infrun.c (infrun_debug_printf_1): Remove.
881 (displaced_debug_printf_1): Remove.
882 (stop_all_threads): Use debug_prefixed_printf.
883 * infrun.h (infrun_debug_printf_1): Remove.
884 (infrun_debug_printf): Use debug_prefixed_printf.
885 (displaced_debug_printf_1): Remove.
886 (displaced_debug_printf): Use debug_prefixed_printf.
887 * linux-nat.c (linux_nat_debug_printf_1): Remove.
888 (linux_nat_debug_printf): Use debug_prefixed_printf.
889
ad6dba1c
SM
8902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * configure: Re-generate.
893 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
894 AC_LANG_PROGRAM.
895
b6fb30ed
SM
8962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * configure: Re-generate.
899
5164c117
SM
9002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * configure: Re-generate.
903
864ca435
SM
9042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * configure: Re-generate.
907
b9442ec1
SM
9082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * configure: Re-generate.
911
294f2697
SM
9122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * acinclude.m4: Modernize.
915 * configure: Re-generate.
916
5593a99a
SM
9172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * configure.ac: Modernize.
920 * configure: Re-generate.
921
e41fda1d
SM
9222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
925 * configure: Re-generate.
926 * configure.ac: Remove AM_PROG_CC_STDC.
927
91e1a0ed
SM
9282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
931 AC_CANONICAL_SYSTEM.
932 * configure: Re-generate.
933
136821d9
SM
9342020-10-30 Simon Marchi <simon.marchi@efficios.com>
935
936 * infrun.h (displaced_debug_printf): New macro. Replace
937 displaced debug prints throughout to use it.
938 (displaced_debug_printf_1): New declaration.
939 (displaced_step_dump_bytes): Return string, remove ui_file
940 parameter, update all callers.
941 * infrun.c (displaced_debug_printf_1): New function.
942 (displaced_step_dump_bytes): Return string, remove ui_file
943 parameter
944
aa2045e7
SM
9452020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
948
b1ec2735
TT
9492020-10-30 Tom Tromey <tromey@adacore.com>
950
951 * Makefile.in (stamp-init): Depend on config.status.
952
b78b3a29
TBA
9532020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954
955 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
956
d70bdd3c
PA
9572020-10-30 Pedro Alves <pedro@palves.net>
958
959 * thread.c (lookup_selected_frame): Move ...
960 * frame.c (lookup_selected_frame): ... here.
961
79952e69
PA
9622020-10-30 Pedro Alves <pedro@palves.net>
963
964 * blockframe.c (block_innermost_frame): Use get_selected_frame.
965 * frame.c
966 (scoped_restore_selected_frame::scoped_restore_selected_frame):
967 Use save_selected_frame. Save language as well.
968 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
969 Use restore_selected_frame, and restore language as well.
970 (selected_frame_id, selected_frame_level): New.
971 (selected_frame): Update comments.
972 (save_selected_frame, restore_selected_frame): New.
973 (get_selected_frame): Use lookup_selected_frame.
974 (get_selected_frame_if_set): Delete.
975 (select_frame): Record selected_frame_level and selected_frame_id.
976 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
977 fields.
978 (get_selected_frame): Make 'message' parameter optional.
979 (get_selected_frame_if_set): Delete declaration.
980 (select_frame): Update comments.
981 (save_selected_frame, restore_selected_frame)
982 (lookup_selected_frame): Declare.
983 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
984 * infrun.c (struct infcall_control_state) <selected_frame_level>:
985 New field.
986 (save_infcall_control_state): Use save_selected_frame.
987 (restore_selected_frame): Delete.
988 (restore_infcall_control_state): Use restore_selected_frame.
989 * stack.c (select_frame_command_core, frame_command_core): Use
990 get_selected_frame.
991 * thread.c (restore_selected_frame): Rename to ...
992 (lookup_selected_frame): ... this and make extern. Select the
993 current frame if the frame level is -1.
994 (scoped_restore_current_thread::restore): Also restore the
995 language.
996 (scoped_restore_current_thread::~scoped_restore_current_thread):
997 Don't try/catch.
998 (scoped_restore_current_thread::scoped_restore_current_thread):
999 Save the language as well. Use save_selected_frame.
1000
58103c33
SM
10012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1004 documentation.
1005 * gdbarch.h: Re-generate.
1006
40a53766
SM
10072020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1010 parameter.
1011 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1012 Likewise.
1013 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1014 Likewise.
1015 * arch-utils.c (default_displaced_step_hw_singlestep):
1016 Likewise.
1017 * arch-utils.h (default_displaced_step_hw_singlestep):
1018 Likewise.
1019 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1020 Likewise.
1021 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1022 Likewise.
1023 * gdbarch.c: Re-generate.
1024 * gdbarch.h: Re-generate.
1025 * infrun.c (resume_1): Adjust.
1026
8407f91b
TT
10272020-10-29 Tom Tromey <tom@tromey.com>
1028
1029 * progspace.c (program_space::~program_space): Don't call
1030 exec_close.
1031
5008b3b2
TT
10322020-10-29 Tom Tromey <tom@tromey.com>
1033
1034 * exec.c (exec_target::close): Don't change current program
1035 space.
1036
d9eebde0
TT
10372020-10-29 Tom Tromey <tom@tromey.com>
1038
1039 * symfile.c (add_symbol_file_command): Update.
1040 * exec.c (program_space::add_target_sections): Rename.
1041 * symfile-mem.c (symbol_file_add_from_memory): Update.
1042 * progspace.h (struct program_space) <add_target_sections>:
1043 Declare new overload.
1044 * exec.h (add_target_sections_of_objfile): Don't declare.
1045
3769e227
TT
10462020-10-29 Tom Tromey <tom@tromey.com>
1047
1048 * solib.c (solib_map_sections): Update.
1049 * exec.c (program_space::add_target_sections): Now a method.
1050 (exec_file_attach): Update.
1051 * exec.h (add_target_sections): Don't declare.
1052 * progspace.h (struct program_space) <add_target_sections>:
1053 Declare.
1054
2a3f84af
TT
10552020-10-29 Tom Tromey <tom@tromey.com>
1056
1057 * progspace.h (struct program_space) <remove_target_sections>:
1058 Declare.
1059 * exec.c (program_space::remove_target_sections): Now a method.
1060 * exec.h (remove_target_sections): Don't declare.
1061
004eecfd
TT
10622020-10-29 Tom Tromey <tom@tromey.com>
1063
1064 * inferior.c (delete_inferior): Update.
1065 * progspace.c (program_space::empty): Rename from
1066 program_space_empty_p. Return bool.
1067 * progspace.h (struct program_space) <empty>: New method.
1068 (program_space_empty_p): Don't declare.
1069
e39fb971
TT
10702020-10-29 Tom Tromey <tom@tromey.com>
1071
1072 * progspace.c (program_space::~program_space): Don't call
1073 clear_program_space_solib_cache.
1074 (program_space::clear_solib_cache): Rename from
1075 clear_solib_cache.
1076 * solib.c (handle_solib_event): Update.
1077 * progspace.h (struct program_space) <clear_solib_cache>: New
1078 method.
1079 (clear_program_space_solib_cache): Don't declare.
1080
a42d7dd8
TT
10812020-10-29 Tom Tromey <tom@tromey.com>
1082
1083 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1084 * target.c (info_target_command): Update.
1085 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1086 (symbol_file_clear, reread_symbols): Update.
1087 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1088 * stabsread.c (scan_file_globals): Update.
1089 * solib.c (update_solib_list): Update.
1090 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1091 (svr4_fetch_objfile_link_map, enable_break)
1092 (svr4_relocate_main_executable)
1093 (svr4_iterate_over_objfiles_in_search_order): Update.
1094 * solib-frv.c (lm_base, enable_break)
1095 (frv_relocate_main_executable): Update.
1096 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1097 (frv_fetch_objfile_link_map): Update.
1098 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1099 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1100 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1101 * remote.c (remote_target::get_offsets): Update.
1102 (remote_target::start_remote)
1103 (extended_remote_target::post_attach): Update.
1104 * objfiles.c (entry_point_address_query): Update.
1105 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1106 * minsyms.c (get_symbol_leading_char): Update.
1107 * frame.c (inside_main_func): Update.
1108 * progspace.h (symfile_objfile): Remove macro.
1109
19f6550e
TT
11102020-10-29 Tom Tromey <tom@tromey.com>
1111
1112 * exec.c (exec_file_attach): Update.
1113 * progspace.c (program_space::exec_close): Update.
1114 * progspace.h (struct program_space) <ebfd>: Now a
1115 gdb_bfd_ref_ptr.
1116 <set_exec_bfd>: Change argument type.
1117 <exec_bfd>: Update.
1118
7e10abd1
TT
11192020-10-29 Tom Tromey <tom@tromey.com>
1120
1121 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1122 * symfile.c (reread_symbols): Update.
1123 * symfile-mem.c (add_symbol_file_from_memory_command)
1124 (add_vsyscall_page): Update.
1125 * source-cache.c (source_cache::get_plain_source_lines): Update.
1126 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1127 (svr4_current_sos_direct, svr4_exec_displacement)
1128 (svr4_relocate_main_executable): Update.
1129 (svr4_iterate_over_objfiles_in_search_order): Update.
1130 * solib-frv.c (enable_break2, enable_break): Update.
1131 * solib-dsbt.c (lm_base, enable_break): Update.
1132 * solib-darwin.c (find_program_interpreter)
1133 (darwin_solib_create_inferior_hook): Update.
1134 * sol-thread.c (rw_common, ps_pdmodel): Update.
1135 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1136 * remote.c (compare_sections_command)
1137 (remote_target::trace_set_readonly_regions): Update.
1138 * remote-sim.c (get_sim_inferior_data)
1139 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1140 (gdbsim_target_open, gdbsim_target::files_info): Update.
1141 * exec.h (exec_bfd): Remove macro.
1142 * progspace.c (initialize_progspace): Update.
1143 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1144 Update.
1145 * nto-procfs.c (nto_procfs_target::post_attach)
1146 (nto_procfs_target::create_inferior): Update.
1147 * maint.c (maintenance_info_sections): Update.
1148 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1149 Update.
1150 * infcmd.c (post_create_inferior): Update.
1151 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1152 (objfile_find_memory_regions): Update.
1153 * exec.c (validate_exec_file, exec_file_attach)
1154 (exec_read_partial_read_only, print_section_info): Update.
1155 * corelow.c (core_target_open): Update.
1156 * corefile.c (reopen_exec_file, validate_files): Update.
1157 * arm-tdep.c (gdb_print_insn_arm): Update.
1158 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1159 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1160 methods.
1161
b55221ab
TT
11622020-10-29 Tom Tromey <tom@tromey.com>
1163
1164 * progspace.h (current_target_sections): Remove macro.
1165 * solib-svr4.c (scan_dyntag): Update.
1166 * solib-dsbt.c (scan_dyntag): Update.
1167 * exec.c (exec_target::close): Update.
1168 (add_target_sections, add_target_sections_of_objfile)
1169 (remove_target_sections, exec_target::get_section_table)
1170 (exec_target::files_info, set_section_command)
1171 (exec_set_section_address, exec_target::has_memory)
1172 (exec_target::has_memory): Update.
1173
5a36e715
TT
11742020-10-29 Tom Tromey <tom@tromey.com>
1175
1176 * source-cache.c (source_cache::get_plain_source_lines): Use
1177 current_program_space.
1178 * corefile.c (reopen_exec_file): Use current_program_space.
1179 * exec.c (exec_file_attach): Use current_program_space.
1180 * exec.h (exec_bfd_mtime): Remove.
1181
784c8592
TT
11822020-10-29 Tom Tromey <tom@tromey.com>
1183
1184 * gcore.c (default_gcore_mach): Remove.
1185 (create_gcore_bfd): Update.
1186
8a4f1402
TT
11872020-10-29 Tom Tromey <tom@tromey.com>
1188
1189 * progspace.c (program_space::exec_close): New method, from
1190 exec_close in exec.c.
1191 * exec.c (exec_close): Move to progspace.c.
1192 (exec_target::close, exec_file_attach): Update.
1193 * progspace.h (struct program_space) <exec_close>: Declare
1194 method.
1195
c20cb686
TT
11962020-10-29 Tom Tromey <tom@tromey.com>
1197
1198 * progspace.h (struct program_space) <exec_filename>: Rename from
1199 pspace_exec_filename. Now a unique_xmalloc_ptr.
1200 * inferior.c (print_selected_inferior): Update.
1201 (print_inferior): Update.
1202 * mi/mi-main.c (print_one_inferior): Update.
1203 * exec.h (exec_filename): Remove macro.
1204 * corefile.c (get_exec_file): Update.
1205 * exec.c (exec_close): Update.
1206 (exec_file_attach): Update.
1207 * progspace.c (clone_program_space): Update.
1208 (print_program_space): Update.
1209
6be2a9ab
TT
12102020-10-29 Tom Tromey <tom@tromey.com>
1211
1212 * target-section.h (struct target_section): Add constructor.
1213 * exec.c (build_section_table, add_target_sections_of_objfile):
1214 Update.
1215 * corelow.c (core_target::build_file_mappings): Update.
1216
cfaa8f76
TBA
12172020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1218
1219 PR gdb/19318
1220 * inferior.c (detach_inferior_command): Restore the current thread.
1221 (kill_inferior_command): Ditto.
1222
1b00ef06
TV
12232020-10-28 Tom de Vries <tdevries@suse.de>
1224
1225 PR symtab/26772
1226 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1227 map, check it in the "best match" loop.
1228
7f40ce1a
SM
12292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * m32c-tdep.c: Remove unused includes.
1232
5eb9e3f5
SM
12332020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * xtensa-tdep.c: Remove includes.
1236
b1d4d8d1
TBA
12372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1238
1239 * breakpoint.c (struct condition_command_opts): New struct.
1240 (condition_command_option_defs): New static global.
1241 (make_condition_command_options_def_group): New function.
1242 (condition_completer): Update to consider the '-force' flag.
1243 (condition_command): Use gdb::option for the '-force' flag.
1244
bd24c5d6
TV
12452020-10-27 Tom de Vries <tdevries@suse.de>
1246
1247 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1248 symbols in section check.
1249
61eb46a4
TV
12502020-10-27 Tom de Vries <tdevries@suse.de>
1251
1252 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1253
733d554a
TBA
12542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1255
1256 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1257 * breakpoint.c: Update the help text of the 'condition' and 'break'
1258 commands.
1259 (set_breakpoint_condition): Take a new bool parameter
1260 to control whether condition definition should be forced even when
1261 the condition expression is invalid in all of the current locations.
1262 (condition_command): Update the call to 'set_breakpoint_condition'.
1263 (find_condition_and_thread): Take the "-force-condition" flag into
1264 account.
1265 * linespec.c (linespec_keywords): Add "-force-condition" as an
1266 element.
1267 (FORCE_KEYWORD_INDEX): New #define.
1268 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1269 as a keyword.
1270 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1271 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1272 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1273 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1274
b5fa468f
TBA
12752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276
1277 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1278 * breakpoint.c (set_breakpoint_location_condition): New function.
1279 (set_breakpoint_condition): Disable a breakpoint location if parsing
1280 the condition string gives an error.
1281 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1282 (build_target_condition_list): Ditto.
1283 (build_target_command_list): Ditto.
1284 (build_bpstat_chain): Ditto.
1285 (print_one_breakpoint_location): Ditto.
1286 (print_one_breakpoint): Ditto.
1287 (breakpoint_1): Ditto.
1288 (bp_location::bp_location): Ditto.
1289 (locations_are_equal): Ditto.
1290 (update_breakpoint_locations): Ditto.
1291 (enable_disable_bp_num_loc): Ditto.
1292 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1293 (find_condition_and_thread_for_sals): New static function.
1294 (create_breakpoint): Call find_condition_and_thread_for_sals.
1295 (location_to_sals): Call find_condition_and_thread_for_sals instead
1296 of find_condition_and_thread.
1297
1c47ec3e
TV
12982020-10-26 Tom de Vries <tdevries@suse.de>
1299
1300 * dwarf2/read.c (process_full_comp_unit): Call
1301 dwarf2_find_base_address.
1302
6390859c
TT
13032020-10-26 Tom Tromey <tromey@adacore.com>
1304
1305 * gdbtypes.c (create_range_type): Revert previous patch. Add
1306 comment.
1307
d744f0f9
PA
13082020-10-26 Pedro Alves <pedro@palves.net>
1309
1310 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1311 (my_waitpid): Use gdb::handle_eintr.
1312
006811bc
SM
13132020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * acinclude.m4: Update ptrace.m4 path.
1316 * ptrace.m4: Moved to gdbsupport.
1317
c75e31a1
SM
13182020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1321 instead of target_gdbarch.
1322
32495661
SM
13232020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * jit.c (jit_reader_load_command): Pass current inferior.
1326 (jit_inferior_init): Change parameter type to inferior, use it.
1327 (jit_inferior_created): Remove.
1328 (jit_inferior_created_hook): Pass inferior parameter down.
1329 (_initialize_jit): Use jit_inferior_created_hook instead of
1330 jit_inferior_created.
1331 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1332 * infrun.c (follow_exec): Pass inferior to
1333 jit_inferior_created_hook.
1334
3f66685e
SM
13352020-10-24 Simon Marchi <simon.marchi@efficios.com>
1336
1337 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1338 parameter and use it.
1339 (thread_db_inferior_created): Pass inferior argument.
1340
a0ff652f
SM
13412020-10-24 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * aix-thread.c (aix_thread_inferior_created): Add inferior
1344 parameter.
1345 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1346 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1347 * jit.c (jit_inferior_created): Likewise.
1348 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1349 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1350 * observable.h (inferior_created): Likewise.
1351 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1352 * symfile-mem.c (add_vsyscall_page): Likewise.
1353 * infcmd.c (post_create_inferior): Pass inferior argument.
1354
3c67532c
JB
13552020-10-24 Joel Brobecker <brobecker@adacore.com>
1356
1357 GDB 10.1 released.
1358
8747316e
JB
13592020-10-23 Joel Brobecker <brobecker@adacore.com>
1360
1361 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1362 to ada_check_typedef.
1363
1a0ea399
AB
13642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * f-exp.y (f_parse): Rename to...
1367 (f_language::parser): ...this.
1368 * f-lang.c (f_get_encoding): Rename to...
1369 (f_language::get_encoding): ...this.
1370 (f_op_print_tab): Rename to...
1371 (f_language::op_print_tab): ...this.
1372 (exp_descriptor_f): Rename to...
1373 (f_language::exp_descriptor_tab): ...this.
1374 (class f_language): Moved to f-lang.h.
1375 (f_language::language_arch_info): New function, moved out of class
1376 declaration.
1377 (f_language::search_name_hash): Likewise.
1378 (f_language::lookup_symbol_nonlocal): Likewise.
1379 (f_language::get_symbol_name_matcher_inner): Likewise.
1380 * f-lang.h: Add 'valprint.h' include.
1381 (class f_language): Moved here from f-lang.c.
1382 * f-typeprint.c (f_type_print_args): Delete commented out
1383 declaration.
1384 (f_print_typedef): Rename to...
1385 (f_language::print_typedef): ...this.
1386 (f_print_type): Rename to...
1387 (f_language::print_type): ...this.
1388 (f_type_print_varspec_prefix): Delete declaration and rename to...
1389 (f_language::f_type_print_varspec_prefix): ...this.
1390 (f_type_print_varspec_suffix): Delete declaration and rename to...
1391 (f_language::f_type_print_varspec_suffix): ...this.
1392 (f_type_print_base): Delete declaration and rename to...
1393 (f_language::f_type_print_base): ...this.
1394 * f-valprint.c (f_value_print_inner): Rename to...
1395 (f_language::value_print_inner): ...this.
1396 * parse.c: Delete 'f-lang.h' include.
1397
88cefd9b
AB
13982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * language.h (language_defn::print_type): Add variable names in
1401 declaration, and update header comment.
1402
5399db93
AB
14032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * ada-lang.c (ada_language::demangle): Rename to...
1406 (ada_language::demangle_symbol): ...this.
1407 * c-lang.c (cplus_language::demangle): Rename to...
1408 (cplus_language::demangle_symbol): ...this.
1409 * d-lang.c (d_language::demangle): Rename to...
1410 (d_language::demangle_symbol): ...this.
1411 * f-lang.c (f_language::demangle): Rename to...
1412 (f_language::demangle_symbol): ...this.
1413 * go-lang.c (go_language::demangle): Rename to...
1414 (go_language::demangle_symbol): ...this.
1415 * language.c (language_demangle): Update call to demangle_symbol.
1416 (auto_or_unknown_language::demangle): Rename to...
1417 (auto_or_unknown_language::demangle_symbol): ...this.
1418 * language.h (language_defn::demangle): Rename to...
1419 (language_defn::demangle_symbol): ...this.
1420 * objc-lang.c (objc_language::demangle): Rename to...
1421 (objc_language::demangle_symbol): ...this.
1422 * rust-lang.c (rust_language::demangle): Rename to...
1423 (rust_language::demangle_symbol): ...this.
1424
4b2f86ef
AB
14252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1428 (iterate_over_file_blocks): Replace use of macro with the macros
1429 definition.
1430
e74b39de
AB
14312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1434 * valprint.c (maybe_print_array_index): Replace use of macro with
1435 the macros definition.
1436
00c696a6
AB
14372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (ada_language::print_array_index): Call value_print
1440 directly.
1441 * language.c (language_defn::print_array_index): Likewise.
1442 * language.h (LA_VALUE_PRINT): Delete.
1443 * valprint.c (value_print): Call value_print on the
1444 current_language directly.
1445
d3b67c56
AB
14462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * language.h (LA_PRINT_TYPEDEF): Delete.
1449 * typeprint.c (typedef_print): Call print_typedef directly on the
1450 current_language object.
1451
790e2a12
AB
14522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * m2-exp.y (m2_parse): Rename to...
1455 (m2_language::parser): ...this. Update function signature.
1456 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1457 (m2_op_print): Rename to...
1458 (m2_language::op_print_tab): ...this, and make const.
1459 (exp_descriptor_modula2): Rename to...
1460 (m2_language::exp_descriptor_modula2): ...this.
1461 (class m2_language): Move to m2-lang.h.
1462 (m2_language::language_arch_info): New function, moved out of
1463 class declaration.
1464 (m2_language::printchar): New function, body from m2_printchar.
1465 (m2_language::printstr): New function, moved out of class
1466 declaration.
1467 (m2_language::emitchar): Likewise.
1468 * m2-lang.h (m2_parse): Delete declaration.
1469 (m2_print_typedef): Delete declaration.
1470 (m2_value_print_inner): Delete declaration.
1471 (class m2_language): Class declaration moved from m2-lang.c,
1472 larger functions are left in m2-lang.c.
1473 * m2-typeprint.c (m2_print_typedef): Rename to...
1474 (m2_language::print_typedef): ...this, and update function
1475 signature.
1476 * m2-valprint.c (m2_value_print_inner): Rename to...
1477 (m2_language::value_print_inner): ...this, replace use of
1478 LA_PRINT_STRING with a direct call to printstr member function,
1479 and update recursive call.
1480
b01175fc
AB
14812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * language.c (default_is_string_type_p): Delete, implementation
1484 moved into auto_or_unknown_language::is_string_type_p.
1485 (unk_op_print_tab): Moved into
1486 auto_or_unknown_language::opcode_print_table.
1487 (unknown_language_arch_info): Delete, implementation moved into
1488 auto_or_unknown_language::language_arch_info.
1489 (class auto_or_unknown_language): New class, member functions
1490 copied from unknown_language class, with some updates.
1491 (class unknown_language): Most member functions moved into
1492 auto_or_unknown_language class. Inherit from
1493 auto_or_unknown_language class.
1494 (class auto_language): Inherit from auto_or_unknown_language.
1495 Delete most member functions.
1496
1a97fe8c
HD
14972020-10-22 Hannes Domani <ssbssa@yahoo.de>
1498
1499 * stabsread.c (read_member_functions): Remove gdb_assert.
1500
6b9d0dfd
HD
15012020-10-22 Hannes Domani <ssbssa@yahoo.de>
1502
1503 * gdbtypes.c (init_complex_type): Check target type name.
1504
4b4bb603
SM
15052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * target-debug.h (target_debug_print_struct_target_ops_p):
1508 Remove.
1509 (target_debug_print_async_callback_ftype_p): Remove.
1510 (target_debug_print_struct_trace_state_variable_p): Remove.
1511 (target_debug_print_struct_traceframe_info_p): Remove.
1512 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1513 (target_debug_print_enum_btrace_format): Remove.
1514 (target_debug_print_enum_info_proc_what): Remove.
1515 (target_debug_print_thread_info_pp): Remove.
1516
24f5300a
SM
15172020-10-22 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * target.h (struct target_ops) <make_corefile_notes>:
1520 Change return type to unique pointer.
1521 * target.c (dummy_make_corefile_notes): Likewise.
1522 * exec.c (struct exec_target) <make_corefile_notes>:
1523 Likewise.
1524 (exec_target::make_corefile_notes): Likewise.
1525 * procfs.c (class procfs_target) <make_corefile_notes>:
1526 Likewise.
1527 (procfs_do_thread_registers): Adjust to unique pointer.
1528 (struct procfs_corefile_thread_data): Add constructor.
1529 <note_data>: Change type to unique pointer.
1530 (procfs_corefile_thread_callback): Adjust to unique pointer.
1531 (procfs_target::make_corefile_notes): Change return type to
1532 unique pointer.
1533 * target-delegates.c: Re-generate.
1534 * gcore.c (write_gcore_file_1): Adjust.
1535 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1536 New.
1537
5fb4027f
TV
15382020-10-22 Tom de Vries <tdevries@suse.de>
1539
1540 * block.c (find_block_in_blockvector): Make sure the returned block
1541 contains pc.
1542
4a636814
SM
15432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 PR gdb/26693
1546 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1547 parameter.
1548 (load_cu): Pass existing CU.
1549 (process_imported_unit_die): Likewise.
1550 (follow_die_offset): Likewise.
1551
1bd57575
LM
15522020-10-22 Luis Machado <luis.machado@linaro.org>
1553
1554 * corelow.c (core_target::xfer_partial): Also check for an empty
1555 m_core_unavailable_mappings vector.
1556
6b4c676c
AB
15572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1560 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1561 * f-exp.y (arglist): Allow for a series of subranges.
1562 (subrange): Add cases for subranges with strides.
1563 * f-lang.c (value_f90_subarray): Catch use of array strides and
1564 throw an error.
1565 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1566
f2d8e4c5
AB
15672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * expprint.c (print_subexp_standard): Change enum range_type to
1570 range_flag and rename variables to match.
1571 (dump_subexp_body_standard): Likewise.
1572 * expression.h (enum range_type): Rename to...
1573 (enum range_flag): ...this.
1574 (range_types): Rename to...
1575 (range_flags): ...this.
1576 * f-lang.c (value_f90_subarray): Change enum range_type to
1577 range_flag and rename variables to match.
1578 * parse.c (operator_length_standard): Likewise.
1579 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1580 range_type to range_flag.
1581 * rust-lang.c (rust_evaluate_funcall): Likewise.
1582 (rust_range): Likewise.
1583 (rust_compute_range): Likewise.
1584 (rust_subscript): Likewise.
1585
2f1b18db
AB
15862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1587
1588 * expprint.c (print_subexp_standard): Update to reflect changes to
1589 enum range_type.
1590 (dump_subexp_body_standard): Likewise.
1591 * expression.h (enum range_type): Convert to a bit field enum, and
1592 make the enum unsigned.
1593 * f-exp.y (subrange): Update to reflect changes to enum
1594 range_type.
1595 * f-lang.c (value_f90_subarray): Likewise.
1596 * parse.c (operator_length_standard): Likewise.
1597 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1598 * rust-lang.c (rust_range): Likewise.
1599 (rust_compute_range): Likewise.
1600 (rust_subscript): Likewise.
1601
a46d1843
SM
16022020-10-21 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1605 (displaced_step_in_progress): Fix comment.
1606
c21f37a8
SM
16072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1610 * gdbarch.c: Re-generate.
1611 * gdbarch.h: Re-generate.
1612 * gcore.c (write_gcore_file_1): Adjust.
1613 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1614 constructor.
1615 <note_data>: Change type to unique pointer.
1616 <abort_iteration>: Change type to bool.
1617 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1618 (fbsd_collect_thread_registers): Return void, adjust.
1619 (struct fbsd_corefile_thread_data): Add construtor.
1620 <note_data>: Change type to unique pointer.
1621 (fbsd_corefile_thread): Adjust.
1622 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1623 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1624 to unique pointer, adjust.
1625 (struct linux_collect_regset_section_cb_data): Add constructor.
1626 <note_data>: Change type to unique pointer.
1627 <abort_iteration>: Change type to bool.
1628 (linux_collect_thread_registers): Return void, adjust.
1629 (struct linux_corefile_thread_data): Add constructor.
1630 <note_data>: Change type to unique pointer.
1631 (linux_corefile_thread): Adjust.
1632 (linux_make_corefile_notes): Return unique pointer, adjust.
1633
07fbbd01
SM
16342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1637 * gdbarch.c: Re-generate.
1638 * gdbarch.h: Re-generate.
1639 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1640 bool.
1641 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1642 Likewise.
1643 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1644 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1645 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1646 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1647
39535193
SM
16482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * gdbarch.sh: Make generated predicates return bool.
1651 * gdbarch.c: Re-generate.
1652 * gdbarch.h: Re-generate.
1653
ad523d01
TT
16542020-10-20 Tom Tromey <tom@tromey.com>
1655
1656 * varobj-iter.h (struct varobj_item): Remove typedef.
1657
c4464ade
SM
16582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * infrun.c (currently_stepping): Change int to bool
1661 (maybe_software_singlestep): Likewise.
1662 (show_stop_on_solib_events): Likewise.
1663 (stepping_past_nonsteppable_watchpoint): Likewise.
1664 (displaced_step_in_progress_any_inferior): Likewise.
1665 (displaced_step_in_progress_thread): Likewise.
1666 (keep_going_stepped_thread): Likewise.
1667 (thread_still_needs_step_over): Likewise.
1668 (start_step_over): Likewise.
1669 (do_target_resume): Likewise.
1670 (resume_1): Likewise.
1671 (clear_proceed_status): Likewise.
1672 (thread_still_needs_step_over_bp): Likewise.
1673 (proceed): Likewise.
1674 (switch_back_to_stepped_thread): Likewise.
1675 (adjust_pc_after_break): Likewise.
1676 (stepped_in_from): Likewise.
1677 (handle_stop_requested): Likewise.
1678 (handle_syscall_event): Likewise.
1679 (handle_no_resumed): Likewise.
1680 (handle_inferior_event): Likewise.
1681 (finish_step_over): Likewise.
1682 (handle_signal_stop): Likewise.
1683 (process_event_stop_test): Likewise.
1684
2eb20436
SM
16852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1686
1687 * infrun.c (get_displaced_stepping_state): Fix comment.
1688
e0c45ded
AS
16892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1690
1691 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1692
22cc388e
TT
16932020-10-19 Tom Tromey <tromey@adacore.com>
1694
1695 PR tui/26719
1696 * tui/tui-winsource.h (struct tui_source_window_base)
1697 <refresh_window>: Rename from refresh_pad.
1698 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1699 Rename from refresh_pad.
1700 (tui_source_window_base::show_source_content)
1701 (tui_source_window_base::do_scroll_horizontal): Update.
1702
3c6eb4d4
TBA
17032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704
1705 * thread.c (_initialize_thread): Fine-tune the help text of
1706 'info threads'.
1707
26703721
TBA
17082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1709
1710 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1711
61c26be8
MS
17122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1713
1714 * breakpoint.c (handle_jit_event): Add an argument, change how
1715 `jit_event_handler` is called.
1716
932539d7
TT
17172020-10-17 Tom Tromey <tom@tromey.com>
1718
1719 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1720 (scan_xcoff_symtab): Update.
1721 * psymtab.h (class psymtab_storage) <global_psymbols,
1722 static_psymbols, current_global_psymbols,
1723 current_static_psymbols>: Remove.
1724 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1725 (match_partial_symbol, lookup_partial_symbol): Update.
1726 (print_partial_symbols): Change parameters.
1727 (dump_psymtab, recursively_search_psymtabs)
1728 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1729 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1730 (concat): Remove.
1731 (end_psymtab_common): Simplify.
1732 (append_psymbol_to_list): Change parameters.
1733 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1734 (init_psymbol_list): Simplify.
1735 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1736 * psympriv.h (struct partial_symtab) <empty>: New method.
1737 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1738 Remove.
1739 <global_psymbols, static_psymbols>: New members.
1740 <add_psymbol>: New methods.
1741 (add_psymbol_to_list): Don't declare.
1742 (psymbol_placement): Move earlier.
1743 * mdebugread.c (parse_partial_symbols): Update.
1744 (handle_psymbol_enumerators): Change parameters.
1745 (mdebug_expand_psymtab): Update.
1746 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1747 (add_partial_symbol): Update.
1748 * dwarf2/index-write.c (write_psymbols): Change parameters.
1749 (write_one_signatured_type): Update.
1750 (recursively_count_psymbols): Update.
1751 (recursively_write_psymbols): Update.
1752 (class debug_names) <recursively_write_psymbols>: Update.
1753 <write_psymbols>: Change parameters.
1754 <write_one_signatured_type>: Update.
1755 * dbxread.c (read_dbx_symtab): Update.
1756 (dbx_end_psymtab): Use partial_symtab::empty.
1757 * ctfread.c (struct ctf_context) <pst>: New member.
1758 (create_partial_symtab): Set it.
1759 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1760 (scan_partial_symbols): Use the psymtab's context. Update.
1761
cfabbd35
TT
17622020-10-17 Tom Tromey <tom@tromey.com>
1763
1764 * valprint.c (generic_value_print): Remove comment.
1765 * m2-valprint.c (m2_value_print_inner): Remove comment.
1766 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1767 type.
1768
520596f2
TV
17692020-10-17 Tom de Vries <tdevries@suse.de>
1770
1771 PR symtab/26317
1772 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1773 symbol main.
1774
76547ab3
TV
17752020-10-14 Tom de Vries <tdevries@suse.de>
1776
1777 PR gdb/26733
1778 * solib.c (solib_contains_address_p): Handle
1779 'solib->sections == nullptr'.
1780
d3a07122
SM
17812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 PR gdb/26642
1784 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1785 target can't do async.
1786 * target.c (target_wait): Assert that we don't pass
1787 TARGET_WNOHANG to a target that can't async.
1788
1b71cfcf
KR
17892020-10-13 Kamil Rytarowski <n54@gmx.com>
1790
1791 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1792 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1793 * alpha-bsd-nat.c: Adjust include.
1794 * alpha-bsd-tdep.h: Adjust comment.
1795 * alpha-nbsd-tdep.c: Rename to ...
1796 * alpha-netbsd-tdep.c: ... this, adjust include.
1797 * amd64-nbsd-nat.c: Rename to ...
1798 * amd64-netbsd-nat.c: ... this, adjust include.
1799 * amd64-nbsd-tdep.c: Rename to ...
1800 * amd64-netbsd-tdep.c: ... this, adjust include.
1801 * amd64-tdep.h: Adjust include.
1802 * arm-nbsd-nat.c: Rename to ...
1803 * arm-netbsd-nat.c: ... this, adjust include.
1804 * arm-nbsd-tdep.c: Rename to ...
1805 * arm-netbsd-tdep.c: ... this, adjust include.
1806 * arm-nbsd-tdep.h: Rename to ...
1807 * arm-netbsd-tdep.h: ... this, adjust include.
1808 * configure.nat: Adjust file lists.
1809 * configure.tgt: Likewise.
1810 * hppa-nbsd-nat.c: Rename to ...
1811 * hppa-netbsd-nat.c: ... this, adjust include.
1812 * hppa-nbsd-tdep.c: Rename to ...
1813 * hppa-netbsd-tdep.c: ... this, adjust include.
1814 * i386-nbsd-nat.c: Rename to ...
1815 * i386-netbsd-nat.c: ... this, adjust include.
1816 * i386-nbsd-tdep.c: Rename to ...
1817 * i386-netbsd-tdep.c: ... this, adjust include.
1818 * m68k-bsd-nat.c: Adjust include.
1819 * mips-nbsd-nat.c: Rename to ...
1820 * mips-netbsd-nat.c: ... this, adjust include.
1821 * mips-nbsd-tdep.c: Rename to ...
1822 * mips-netbsd-tdep.c: ... this, adjust include.
1823 * mips-nbsd-tdep.h: Rename to ...
1824 * mips-netbsd-tdep.h: ... this.
1825 * nbsd-nat.c: Rename to ...
1826 * netbsd-nat.c: ... this, adjust include.
1827 * nbsd-nat.h: Rename to ...
1828 * netbsd-nat.h: ... this, adjust include.
1829 * nbsd-tdep.c: Rename to ...
1830 * netbsd-tdep.c: ... this, adjust include.
1831 * nbsd-tdep.h: Rename to ...
1832 * netbsd-tdep.h: ... this.
1833 * ppc-nbsd-nat.c: Rename to ...
1834 * ppc-netbsd-nat.c: ... this, adjust include.
1835 * ppc-nbsd-tdep.c: Rename to ...
1836 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1837 * ppc-nbsd-tdep.h: Rename to ...
1838 * ppc-netbsd-tdep.h: ... this.
1839 * sh-nbsd-nat.c: Rename to ...
1840 * sh-netbsd-nat.c: ... this, adjust include.
1841 * sh-nbsd-tdep.c: Rename to ...
1842 * sh-netbsd-tdep.c: ... this, adjust include.
1843 * sparc-nbsd-nat.c: Rename to ...
1844 * sparc-netbsd-nat.c: ... this.
1845 * sparc-nbsd-tdep.c: Rename to ...
1846 * sparc-netbsd-tdep.c: ... this, adjust include.
1847 * sparc64-nbsd-nat.c: Rename to ...
1848 * sparc64-netbsd-nat.c: ... this.
1849 * sparc64-nbsd-tdep.c: Rename to ...
1850 * sparc64-netbsd-tdep.c: ... this, adjust include.
1851 * sparc64-tdep.h: Adjust comment.
1852 * vax-bsd-nat.c: Adjust include.
1853 * vax-nbsd-tdep.c: Rename to ...
1854 * vax-netbsd-tdep.c: ... this, adjust include.
1855
d7a78e5c
TT
18562020-10-12 Tom Tromey <tom@tromey.com>
1857
1858 * target.h (struct target_ops) <get_section_table>: Update.
1859 (target_get_section_table): Update.
1860 * target.c (target_get_section_table, target_section_by_addr)
1861 (memory_xfer_partial_1): Update.
1862 * target-section.h (target_section_table): Now an alias.
1863 * target-delegates.c: Rebuild.
1864 * target-debug.h (target_debug_print_target_section_table_p):
1865 Rename from target_debug_print_struct_target_section_table_p.
1866 * symfile.c (build_section_addr_info_from_section_table): Update.
1867 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1868 * solib-svr4.c (scan_dyntag): Update.
1869 * solib-dsbt.c (scan_dyntag): Update.
1870 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1871 Update.
1872 * record-full.c (record_full_core_target::xfer_partial): Update.
1873 * progspace.h (struct program_space) <target_sections>: Update.
1874 * exec.h (print_section_info): Update.
1875 * exec.c (exec_target::close, build_section_table)
1876 (add_target_sections, add_target_sections_of_objfile)
1877 (remove_target_sections, exec_on_vfork)
1878 (section_table_available_memory)
1879 (section_table_xfer_memory_partial)
1880 (exec_target::get_section_table, exec_target::xfer_partial)
1881 (print_section_info, set_section_command)
1882 (exec_set_section_address, exec_target::has_memory): Update.
1883 * corelow.c (core_target::build_file_mappings)
1884 (core_target::xfer_partial, core_target::info_proc_mappings)
1885 (core_target::info_proc_mappings): Update.
1886 * bfd-target.c (class target_bfd): Update
1887
eda214ce
TT
18882020-10-12 Tom Tromey <tom@tromey.com>
1889
1890 * progspace.c (program_space::~program_space): Don't call
1891 clear_section_table.
1892 * exec.h (clear_section_table): Don't declare.
1893 * exec.c (exec_target::close): Update.
1894 (clear_section_table): Remove.
1895
91840ee3
TT
18962020-10-12 Tom Tromey <tom@tromey.com>
1897
1898 * exec.c (add_target_sections_of_objfile): Simplify.
1899
2d128614
TT
19002020-10-12 Tom Tromey <tom@tromey.com>
1901
1902 * solib.c (solib_map_sections): Update.
1903 * record-full.c (record_full_core_open_1): Update.
1904 * exec.h (build_section_table): Return a target_section_table.
1905 * exec.c (exec_file_attach): Update.
1906 (build_section_table): Return a target_section_table.
1907 * corelow.c (core_target::core_target): Update.
1908 * bfd-target.c (target_bfd::target_bfd): Update.
1909
bb2a6777
TT
19102020-10-12 Tom Tromey <tom@tromey.com>
1911
1912 * target.c (target_section_by_addr, memory_xfer_partial_1):
1913 Update.
1914 * target-section.h (struct target_section_table): Use
1915 std::vector.
1916 * symfile.h (build_section_addr_info_from_section_table): Take a
1917 target_section_table.
1918 * symfile.c (build_section_addr_info_from_section_table): Take a
1919 target_section_table.
1920 * solist.h (struct so_list) <sections>: Change type.
1921 <sections_end>: Remove.
1922 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1923 (solib_contains_address_p): Update.
1924 * solib-svr4.c (scan_dyntag): Update.
1925 * solib-dsbt.c (scan_dyntag): Update.
1926 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1927 Update.
1928 * record-full.c (record_full_core_start, record_full_core_end):
1929 Remove.
1930 (record_full_core_sections): New global.
1931 (record_full_core_open_1, record_full_core_target::xfer_partial):
1932 Update.
1933 * exec.h (build_section_table, section_table_xfer_memory_partial)
1934 (add_target_sections): Take a target_section_table.
1935 * exec.c (exec_file_attach, clear_section_table): Update.
1936 (resize_section_table): Remove.
1937 (build_section_table, add_target_sections): Take a
1938 target_section_table.
1939 (add_target_sections_of_objfile, remove_target_sections)
1940 (exec_on_vfork): Update.
1941 (section_table_available_memory): Take a target_section_table.
1942 (section_table_read_available_memory): Update.
1943 (section_table_xfer_memory_partial): Take a target_section_table.
1944 (print_section_info, set_section_command)
1945 (exec_set_section_address, exec_target::has_memory): Update.
1946 * corelow.c (class core_target) <m_core_section_table,
1947 m_core_file_mappings>: Remove braces.
1948 <~core_target>: Remove.
1949 (core_target::core_target): Update.
1950 (core_target::~core_target): Remove.
1951 (core_target::build_file_mappings)
1952 (core_target::xfer_memory_via_mappings)
1953 (core_target::xfer_partial, core_target::info_proc_mappings):
1954 Update.
1955 * bfd-target.c (target_bfd::xfer_partial): Update.
1956 (target_bfd::target_bfd): Update.
1957 (target_bfd::~target_bfd): Remove.
1958
7b466b10
TT
19592020-10-12 Tom Tromey <tom@tromey.com>
1960
1961 * target.h (struct target_section, struct target_section_table):
1962 Move to target-section.h.
1963 * target-section.h: New file.
1964
87a37e5e
PA
19652020-10-12 Pedro Alves <pedro@palves.net>
1966
1967 PR exp/26602
1968 * valops.c (struct struct_field_searcher): New.
1969 (update_search_result): Rename to ...
1970 (struct_field_searcher::update_result): ... this. Simplify
1971 prototype. Record all found fields.
1972 (do_search_struct_field): Rename to ...
1973 (struct_field_searcher::search): ... this. Simplify prototype.
1974 Maintain stack of visited baseclass path. Call update_result for
1975 fields too. Keep searching fields in baseclasses instead of
1976 stopping at the first found field.
1977 (search_struct_field): Use struct_field_searcher. When looking
1978 for fields, report ambiguous access attempts.
1979
9370fd51
AB
19802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * frame.c (inside_main_func): Check full symbols as well as
1983 minimal symbols.
1984
59c8a30b
JB
19852020-10-09 Joel Brobecker <brobecker@adacore.com>
1986
1987 * ada-lang.c (advance_wild_match): Rewrite the function's
1988 description. Change the type of target0, t0 and t1 to char.
1989
7c184d33
TT
19902020-10-09 Tom Tromey <tromey@adacore.com>
1991
1992 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1993
5c4258f4
TT
19942020-10-09 Tom Tromey <tromey@adacore.com>
1995
1996 * ada-lang.h (ada_encode): Return std::string.
1997 * ada-lang.c (ada_encode_1): Return std::string.
1998 (ada_encode): Likewise.
1999 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2000 Update.
2001 * ada-exp.y (block_lookup, write_var_or_type): Update.
2002
3d87245c
HD
20032020-10-09 Hannes Domani <ssbssa@yahoo.de>
2004
2005 PR exp/26714
2006 * printcmd.c (print_formatted): Handle void results as
2007 unformatted prints.
2008
bbb826f5
AB
20092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * arch/aarch32.c (aarch32_create_target_description): Release the
2012 target_desc_up as late as possible.
2013 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2014 * arch/amd64.c (amd64_create_target_description): Likewise.
2015 * arch/arc.c (arc_create_target_description): Return a
2016 target_desc_up, don't release it.
2017 * arch/arc.h (arc_create_target_description): Update declaration.
2018 (arc_lookup_target_description): Move target_desc_up into the
2019 cache, and return a borrowed pointer.
2020 * arch/arm.c (arm_create_target_description): Release the
2021 target_desc_up as late as possible.
2022 * arch/i386.c (i386_create_target_description): Likewise.
2023 * arch/riscv.h (riscv_create_target_description): Update
2024 declaration to match definition.
2025 * arch/tic6x.c (tic6x_create_target_description): Release the
2026 target_desc_up as late as possible.
2027
361cb219
AB
20282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2031 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2032
f5c4b229
JV
20332020-10-09 Jan Vrany <jan.vrany@labware.com>
2034
2035 * source.c (directory_command): Notify observers that "directories"
2036 parameter has changed.
2037
b2701685
TT
20382020-10-08 Tom Tromey <tom@tromey.com>
2039
2040 * cli/cli-cmds.c (print_disassembly): Style function name and
2041 addresses. Add _() wrappers.
2042
ada508b6
SV
20432020-10-08 Shahab Vahedi <shahab@synopsys.com>
2044
2045 * NEWS: Mention ARC support in GDBserver.
2046
51a948fd
AB
20472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * arch/aarch32.c (aarch32_create_target_description): Release
2050 unique_ptr returned from allocate_target_description.
2051 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2052 * arch/amd64.c (amd64_create_target_description): Likewise.
2053 * arch/arc.c (arc_create_target_description): Likewise.
2054 * arch/arm.c (arm_create_target_description): Likewise.
2055 * arch/i386.c (i386_create_target_description): Likewise.
2056 * arch/riscv.c (riscv_create_target_description): Update return
2057 type. Handle allocate_target_description returning a unique_ptr.
2058 (riscv_lookup_target_description): Update to handle unique_ptr.
2059 * arch/tic6x.c (tic6x_create_target_description): Release
2060 unique_ptr returned from allocate_target_description.
2061 * features/microblaze-with-stack-protect.c: Regenerate.
2062 * features/microblaze.c: Regenerate.
2063 * features/mips-dsp-linux.c: Regenerate.
2064 * features/mips-linux.c: Regenerate.
2065 * features/mips64-dsp-linux.c: Regenerate.
2066 * features/mips64-linux.c: Regenerate.
2067 * features/nds32.c: Regenerate.
2068 * features/nios2.c: Regenerate.
2069 * features/or1k.c: Regenerate.
2070 * features/rs6000/powerpc-32.c: Regenerate.
2071 * features/rs6000/powerpc-32l.c: Regenerate.
2072 * features/rs6000/powerpc-403.c: Regenerate.
2073 * features/rs6000/powerpc-403gc.c: Regenerate.
2074 * features/rs6000/powerpc-405.c: Regenerate.
2075 * features/rs6000/powerpc-505.c: Regenerate.
2076 * features/rs6000/powerpc-601.c: Regenerate.
2077 * features/rs6000/powerpc-602.c: Regenerate.
2078 * features/rs6000/powerpc-603.c: Regenerate.
2079 * features/rs6000/powerpc-604.c: Regenerate.
2080 * features/rs6000/powerpc-64.c: Regenerate.
2081 * features/rs6000/powerpc-64l.c: Regenerate.
2082 * features/rs6000/powerpc-7400.c: Regenerate.
2083 * features/rs6000/powerpc-750.c: Regenerate.
2084 * features/rs6000/powerpc-860.c: Regenerate.
2085 * features/rs6000/powerpc-altivec32.c: Regenerate.
2086 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2087 * features/rs6000/powerpc-altivec64.c: Regenerate.
2088 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2089 * features/rs6000/powerpc-e500.c: Regenerate.
2090 * features/rs6000/powerpc-e500l.c: Regenerate.
2091 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2092 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2093 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2094 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2095 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2096 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2097 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2098 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2099 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2100 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2101 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2102 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2103 * features/rs6000/powerpc-vsx32.c: Regenerate.
2104 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2105 * features/rs6000/powerpc-vsx64.c: Regenerate.
2106 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2107 * features/rs6000/rs6000.c: Regenerate.
2108 * features/rx.c: Regenerate.
2109 * features/s390-gs-linux64.c: Regenerate.
2110 * features/s390-linux32.c: Regenerate.
2111 * features/s390-linux32v1.c: Regenerate.
2112 * features/s390-linux32v2.c: Regenerate.
2113 * features/s390-linux64.c: Regenerate.
2114 * features/s390-linux64v1.c: Regenerate.
2115 * features/s390-linux64v2.c: Regenerate.
2116 * features/s390-te-linux64.c: Regenerate.
2117 * features/s390-tevx-linux64.c: Regenerate.
2118 * features/s390-vx-linux64.c: Regenerate.
2119 * features/s390x-gs-linux64.c: Regenerate.
2120 * features/s390x-linux64.c: Regenerate.
2121 * features/s390x-linux64v1.c: Regenerate.
2122 * features/s390x-linux64v2.c: Regenerate.
2123 * features/s390x-te-linux64.c: Regenerate.
2124 * features/s390x-tevx-linux64.c: Regenerate.
2125 * features/s390x-vx-linux64.c: Regenerate.
2126 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2127 from allocate_target_description.
2128 * target-descriptions.c (allocate_target_description): Update
2129 return type.
2130 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2131 allocate_target_description.
2132
485c47e5
TT
21332020-10-07 Tom Tromey <tromey@adacore.com>
2134
2135 * unittests/search-memory-selftests.c: New file.
2136 * Makefile.in (SELFTESTS_SRCS): Add
2137 unittests/search-memory-selftests.c.
2138
3a135a91
TT
21392020-10-07 Tom Tromey <tromey@adacore.com>
2140
2141 PR gdb/16930:
2142 * findcmd.c (_initialize_mem_search): Mention that the range is
2143 inclusive.
2144
4a72de73
TT
21452020-10-07 Tom Tromey <tromey@adacore.com>
2146
2147 * target.h (simple_search_memory): Don't declare.
2148 * target.c (simple_search_memory): Move to gdbsupport.
2149 (default_search_memory): Update.
2150 * remote.c (remote_target::search_memory): Update.
2151
a038ffd8
SM
21522020-10-07 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * Makefile.in (COMPILE): Add CXXFLAGS.
2155 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2156 (check-headers): Add CXXFLAGS.
2157
cc463201
AK
21582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2159
2160 * arc-linux-tdep.h: New file.
2161 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2162 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2163 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2164 arc_linux_gregset, arc_linux_v2_regset,
2165 arc_linux_iterate_over_regset_sections,
2166 arc_linux_core_read_description): Implement.
2167 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2168 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2169 (arc_gdbarch_features_create): Add.
2170 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2171
e4bd363f
SV
21722020-10-07 Shahab Vahedi <shahab@synopsys.com>
2173
2174 * arch/arc.h: Rename "arc_gdbarch_features" to
2175 "arc_arch_features".
2176 * arc-tdep.h: Likewise.
2177 * arc-tdep.c: Likewise.
2178
b68bef99
TBA
21792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2180
2181 * infcmd.c (attach_command): Remove the redundant call to
2182 `clear_proceed_status`.
2183
4641551a
KR
21842020-10-07 Kamil Rytarowski <n54@gmx.com>
2185
2186 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2187
91e5e8db
KR
21882020-10-07 Kamil Rytarowski <n54@gmx.com>
2189
2190 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2191 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2192 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2193
64c03bdb
SM
21942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2197 (_initialize_break_catch_sig): Don't allocate array.
2198
31a8f60f
AB
21992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * symtab.c (find_pc_line): Return unmapped addresses when the
2202 requested address is also unmapped.
2203
9e6dbd8b
SM
22042020-10-05 Simon Marchi <simon.marchi@efficios.com>
2205
2206 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2207 tui/tui-out.h.
2208
a1d217e8
SM
22092020-10-05 Simon Marchi <simon.marchi@efficios.com>
2210
2211 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2212 type::is_vector instead of TYPE_VECTOR.
2213
7d144117
SM
22142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * auto-load.c (auto_load_objfile_script_1): Don't use
2217 debugfile_holder as temporary variable when stripping drive
2218 letter.
2219
cd096ec8
HD
22202020-10-05 Hannes Domani <ssbssa@yahoo.de>
2221
2222 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2223 Add TYPE_CODE_COMPLEX.
2224 (amd64_windows_return_value): Fix types returned via XMM0.
2225
b58e7f72
AH
22262020-10-05 Alan Hayward <alan.hayward@arm.com>
2227
2228 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2229 AArch64/ARM maintainers.
2230
8d378f27
SM
22312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * NEWS: Mention set/show debug event-loop.
2234
d5519913
TT
22352020-10-02 Tom Tromey <tromey@adacore.com>
2236
2237 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2238 REG_EXTENDED.
2239
18b67edc
SM
22402020-10-02 Simon Marchi <simon.marchi@efficios.com>
2241
2242 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2243 * procfs.c (procfs_inferior_created): Remove.
2244 (_initialize_procfs): Don't register procfs_inferior_created.
2245
6b01403b
SM
22462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * async-event.c (invoke_async_signal_handlers): Add debug
2249 print.
2250 (check_async_event_handlers): Likewise.
2251 * event-top.c (show_debug_event_loop): New function.
2252 (_initialize_event_top): Register "set debug event-loop"
2253 setting.
2254
ba988419
SM
22552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2256
2257 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2258 * debug.h: Remove.
2259 * infrun.c: Include gdbsupport/common-debug.h.
2260 * linux-nat.c: Likewise.
2261
db20ebdf
SM
22622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 * async-event.h (create_async_signal_handler): Add name
2265 parameter.
2266 (create_async_event_handler): Likewise.
2267 * async-event.c (struct async_signal_handler) <name>: New field.
2268 (struct async_event_handler) <name>: New field.
2269 (create_async_signal_handler): Assign name.
2270 (create_async_event_handler): Assign name.
2271 * event-top.c (async_init_signals): Pass name when creating
2272 handler.
2273 * infrun.c (_initialize_infrun): Likewise.
2274 * record-btrace.c (record_btrace_push_target): Likewise.
2275 * record-full.c (record_full_open): Likewise.
2276 * remote-notif.c (remote_notif_state_allocate): Likewise.
2277 * remote.c (remote_target::open_1): Likewise.
2278 * tui/tui-win.c (tui_initialize_win): Likewise.
2279
2554f6f5
SM
22802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * async-event.c (initialize_async_signal_handlers): Pass name to
2283 add_file_handler
2284 * event-top.c (ui_register_input_event_handler): Likewise.
2285 * linux-nat.c (linux_nat_target::async): Likewise.
2286 * run-on-main-thread.c (_initialize_run_on_main_thread):
2287 Likewise
2288 * ser-base.c (reschedule): Likewise.
2289 (ser_base_async): Likewise.
2290 * tui/tui-io.c: Likewise.
2291 * top.h (struct ui) <num>: New field.
2292 * top.c (highest_ui_num): New variable.
2293 (ui::ui): Initialize num.
2294
a7aba266
SM
22952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2296
2297 * observable.h <inferior_created>: Remove parameters. Update all
2298 listeners.
2299 * inferior.h (post_create_inferior): Remove target parameter.
2300 Update all callers.
2301
048fde1e 23022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2303
2304 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2305 and DW_MACRO_undef_strx.
2306 (dwarf_decode_macros): Likewise
2307 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2308 which is the value of DW_AT_str_offsets_base.
2309 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2310 str_offsets_base.
2311
064280be
KR
23122020-10-01 Kamil Rytarowski <n54@gmx.com>
2313
2314 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2315
6ff33035
KR
23162020-10-01 Kamil Rytarowski <n54@gmx.com>
2317
2318 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2319 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2320
1eb6eb79
KR
23212020-10-01 Kamil Rytarowski <n54@gmx.com>
2322
2323 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2324
95eb9e54
TV
23252020-09-30 Tom de Vries <tdevries@suse.de>
2326
2327 PR symtab/26683
2328 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2329
cae21f8e
TT
23302020-09-30 Tom Tromey <tromey@adacore.com>
2331
2332 * dwarf2/read.c (handle_variant): Use constant_value.
2333
529908cb
TT
23342020-09-29 Tom Tromey <tom@tromey.com>
2335
2336 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2337 (read_file_scope, dwarf2_get_pc_bounds)
2338 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2339 (read_structure_type, handle_struct_member_die)
2340 (read_enumeration_type, read_array_type, read_set_type)
2341 (read_tag_pointer_type, read_tag_reference_type)
2342 (read_subroutine_type, read_base_type, read_subrange_type)
2343 (read_full_die_1, partial_die_info::read)
2344 (partial_die_info::read, by, new_symbol)
2345 (dwarf2_const_value_data, dwarf2_const_value_attr)
2346 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2347 (prepare_one_comp_unit): Update.
2348 * dwarf2/attribute.h (DW_UNSND): Remove.
2349
c45bc3f8
TT
23502020-09-29 Tom Tromey <tom@tromey.com>
2351
2352 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2353 (read_subroutine_type, partial_die_info::read)
2354 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2355 (dwarf2_add_member_fn): Update.
2356 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2357 * dwarf2/attribute.c (attribute::as_boolean): New method.
2358
23dca5c3
TT
23592020-09-29 Tom Tromey <tom@tromey.com>
2360
2361 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2362 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2363 method.
2364 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2365
52c14d11
TT
23662020-09-29 Tom Tromey <tom@tromey.com>
2367
2368 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2369 the attribute's form.
2370
e8e5c158
TT
23712020-09-29 Tom Tromey <tom@tromey.com>
2372
2373 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2374 (dwarf2_add_member_fn): Update.
2375 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2376 * dwarf2/attribute.c (attribute::defaulted): New method, from
2377 is_valid_DW_AT_defaulted.
2378
d4df075e
TT
23792020-09-29 Tom Tromey <tom@tromey.com>
2380
2381 * dwarf2/read.c (dw2_get_file_names_reader)
2382 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2383 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2384 (dwarf2_symbol_mark_computed): Use as_unsigned.
2385 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2386 method.
2387 <form_is_section_offset>: Update comment.
2388
bf23a268
TT
23892020-09-29 Tom Tromey <tom@tromey.com>
2390
2391 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2392 dwarf2_default_access_attribute. Look up attribute.
2393 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2394 Update.
2395
7a5f294d
TT
23962020-09-29 Tom Tromey <tom@tromey.com>
2397
2398 * dwarf2/read.c (skip_one_die): Update.
2399 (read_full_die_1): Change how reprocessing is done.
2400 (partial_die_info::read): Update.
2401 (read_attribute_value): Remove need_reprocess parameter.
2402 (read_attribute): Likewise.
2403 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2404 New method.
2405
36d378cf
TT
24062020-09-29 Tom Tromey <tom@tromey.com>
2407
2408 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2409 (dwarf2_const_value_attr, dump_die_shallow)
2410 (dwarf2_fetch_constant_bytes): Update.
2411 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2412 comment.
2413 <set_address>: New method.
2414 (DW_ADDR): Remove.
2415 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2416 (attribute::as_string, attribute::as_address): Add assert.
2417
fe56917a
TT
24182020-09-29 Tom Tromey <tom@tromey.com>
2419
2420 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2421 (read_attribute_reprocess, read_attribute_value): Update.
2422 (read_attribute): Clear requires_reprocessing.
2423 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2424 form_requires_reprocessing>: New methods.
2425 <string_init>: Clear requires_reprocessing.
2426 <set_unsigned_reprocess>: New method.
2427 <name>: Shrink by one bit.
2428 <requires_reprocessing>: New member.
2429 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2430 method.
2431
414ad644
TT
24322020-09-29 Tom Tromey <tom@tromey.com>
2433
2434 * dwarf2/read.c (read_attribute_value): Update.
2435 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2436 set_unsigned>: New methods.
2437 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2438
1bc397c5
TT
24392020-09-29 Tom Tromey <tom@tromey.com>
2440
2441 * dwarf2/read.c (get_alignment, read_array_order)
2442 (read_attribute_value, dwarf2_const_value_attr)
2443 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2444 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2445 New methods.
2446 (DW_SND): Remove.
2447
630ed6b9
TT
24482020-09-29 Tom Tromey <tom@tromey.com>
2449
2450 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2451 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2452 Update.
2453 * dwarf2/attribute.h (struct attribute) <as_signature,
2454 set_signature>: New methods.
2455 (DW_SIGNATURE): Remove.
2456
9d2246fc
TT
24572020-09-29 Tom Tromey <tom@tromey.com>
2458
2459 * dwarf2/read.c (read_call_site_scope)
2460 (handle_data_member_location, dwarf2_add_member_fn)
2461 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2462 (partial_die_info::read, read_attribute_value)
2463 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2464 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2465 (dwarf2_symbol_mark_computed): Update.
2466 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2467 methods.
2468 (DW_BLOCK): Remove.
2469 * dwarf2/attribute.c (attribute::form_is_block): Add
2470 DW_FORM_data16.
2471
c6481205
TT
24722020-09-29 Tom Tromey <tom@tromey.com>
2473
2474 * dwarf2/read.c (read_cutu_die_from_dwo)
2475 (read_attribute_reprocess, read_attribute_value, read_attribute)
2476 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2477 (dwarf2_fetch_constant_bytes): Update.
2478 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2479 <set_string_noncanonical, set_string_canonical>: New methods.
2480 <string_is_canonical>: Update comment.
2481 <canonical_string_p>: Add assert.
2482 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2483 * dwarf2/attribute.c (attribute::form_is_string): New method.
2484 (attribute::string): Use it.
2485
3b64bf15
TT
24862020-09-29 Tom Tromey <tom@tromey.com>
2487
2488 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2489 (dump_die_shallow): Use canonical_string_p.
2490 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2491 method.
2492
2c830f54
TT
24932020-09-29 Tom Tromey <tom@tromey.com>
2494
2495 * dwarf2/read.c (partial_die_info::read)
2496 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2497 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2498 attribute::as_string.
2499
6c412691
TT
25002020-09-29 Tom Tromey <tom@tromey.com>
2501
2502 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2503 DW_ADDR.
2504 (attribute::string): Don't use DW_STRING.
2505 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2506 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2507
95f982e5
TT
25082020-09-29 Tom Tromey <tom@tromey.com>
2509
2510 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2511 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2512 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2513 * dwarf2/attribute.h (struct attribute): Rename methods.
2514 * dwarf2/attribute.c (attribute::as_address): Rename from
2515 value_as_address.
2516 (attribute::as_string): Rename from value_as_string.
2517
f800b00e
TT
25182020-09-29 Tom Tromey <tom@tromey.com>
2519
2520 * dwarf2/read.c (partial_die_info::read) <case
2521 DW_AT_linkage_name>: Use value_as_string.
2522 (dwarf2_string_attr): Use value_as_string.
2523 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2524 method.
2525 * dwarf2/attribute.c (attribute::value_as_string): New method.
2526
de38d64a
PA
25272020-09-29 Pedro Alves <pedro@palves.net>
2528
2529 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2530 defined before using '#pragma GCC diagnostic' instead of checking
2531 __clang__.
2532
9aed480c
TT
25332020-09-28 Tom Tromey <tom@tromey.com>
2534
2535 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2536 (handle_signal_stop): Update.
2537 * procfs.c (procfs_target::insert_watchpoint): Update.
2538 * target.h (target_have_steppable_watchpoint): Now a function.
2539
8a3ecb79
TT
25402020-09-28 Tom Tromey <tom@tromey.com>
2541
2542 * infrun.c (set_schedlock_func): Update.
2543 * target.h (target_can_lock_scheduler): Now a function.
2544
55f6301a
TT
25452020-09-28 Tom Tromey <tom@tromey.com>
2546
2547 * inferior.h (class inferior) <has_execution>: Update.
2548 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2549 * valops.c (find_function_in_inferior)
2550 (value_allocate_space_in_inferior): Update.
2551 * top.c (kill_or_detach): Update.
2552 * target.c (target_preopen, set_target_permissions): Update.
2553 (target_has_execution_current): Remove.
2554 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2555 Update.
2556 * solib.c (update_solib_list, reload_shared_libraries): Update.
2557 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2558 * solib-dsbt.c (enable_break): Update.
2559 * score-tdep.c (score7_fetch_inst): Update.
2560 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2561 Update.
2562 * remote.c (remote_target::start_remote)
2563 (remote_target::remote_check_symbols, remote_target::open_1)
2564 (remote_target::remote_detach_1, remote_target::verify_memory)
2565 (remote_target::xfer_partial, remote_target::read_description)
2566 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2567 * record-full.c (record_full_open_1): Update.
2568 * record-btrace.c (record_btrace_target_open): Update.
2569 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2570 (value_nsstring): Update.
2571 * linux-thread-db.c (add_thread_db_info)
2572 (thread_db_find_new_threads_silently, check_thread_db_callback)
2573 (try_thread_db_load_1, record_thread): Update.
2574 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2575 Update.
2576 * linux-fork.c (checkpoint_command): Update.
2577 * infrun.c (set_non_stop, set_observer_mode)
2578 (check_multi_target_resumption, for_each_just_stopped_thread)
2579 (maybe_remove_breakpoints, normal_stop)
2580 (class infcall_suspend_state): Update.
2581 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2582 (info_program_command, attach_command): Update.
2583 * infcall.c (call_function_by_hand_dummy): Update.
2584 * inf-loop.c (inferior_event_handler): Update.
2585 * gcore.c (gcore_command, derive_heap_segment): Update.
2586 * exec.c (exec_file_command): Update.
2587 * eval.c (evaluate_subexp): Update.
2588 * compile/compile.c (compile_to_object): Update.
2589 * cli/cli-dump.c (restore_command): Update.
2590 * breakpoint.c (update_watchpoint)
2591 (update_inserted_breakpoint_locations)
2592 (insert_breakpoint_locations, get_bpstat_thread): Update.
2593 * target.h (target_has_execution): Remove macro.
2594 (target_has_execution_current): Don't declare.
2595 (target_has_execution): Rename from target_has_execution_1. Add
2596 argument default.
2597
05374cfd
TT
25982020-09-28 Tom Tromey <tom@tromey.com>
2599
2600 * mi/mi-main.c (exec_reverse_continue)
2601 (mi_cmd_list_target_features): Update.
2602 * infrun.c (set_exec_direction_func): Update.
2603 * target.c (default_execution_direction): Update.
2604 * reverse.c (exec_reverse_once): Update.
2605 * target.h (target_can_execute_reverse): Now a function.
2606
9dccd06e
TT
26072020-09-28 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-regs.c (tui_get_register)
2610 (tui_data_window::show_registers): Update.
2611 * thread.c (scoped_restore_current_thread::restore)
2612 (scoped_restore_current_thread::scoped_restore_current_thread):
2613 Update.
2614 * regcache-dump.c (regcache_print): Update.
2615 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2616 Update.
2617 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2618 * mep-tdep.c (current_me_module, current_options): Update.
2619 * linux-thread-db.c (thread_db_load): Update.
2620 * infcmd.c (registers_info, info_vector_command)
2621 (info_float_command): Update.
2622 * ia64-tdep.c (ia64_frame_prev_register)
2623 (ia64_sigtramp_frame_prev_register): Update.
2624 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2625 * gcore.c (derive_stack_segment): Update.
2626 * frame.c (get_current_frame, has_stack_frames): Update.
2627 * findvar.c (language_defn::read_var_value): Update.
2628 * arm-tdep.c (arm_pc_is_thumb): Update.
2629 * target.c (target_has_registers): Rename from
2630 target_has_registers_1.
2631 * target.h (target_has_registers): Remove macro.
2632 (target_has_registers): Rename from target_has_registers_1.
2633
841de120
TT
26342020-09-28 Tom Tromey <tom@tromey.com>
2635
2636 * windows-tdep.c (tlb_make_value): Update.
2637 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2638 * thread.c (scoped_restore_current_thread::restore)
2639 (scoped_restore_current_thread::scoped_restore_current_thread)
2640 (thread_command): Update.
2641 * stack.c (backtrace_command_1, frame_apply_level_command)
2642 (frame_apply_all_command, frame_apply_command): Update.
2643 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2644 Update.
2645 * gcore.c (derive_stack_segment): Update.
2646 * frame.c (get_current_frame, has_stack_frames): Update.
2647 * auxv.c (info_auxv_command): Update.
2648 * ada-tasks.c (ada_build_task_list): Update.
2649 * target.c (target_has_stack): Rename from target_has_stack_1.
2650 * target.h (target_has_stack): Remove macro.
2651 (target_has_stack): Rename from target_has_stack_1.
2652
a739972c
TT
26532020-09-28 Tom Tromey <tom@tromey.com>
2654
2655 * target.c (target_has_memory): Rename from target_has_memory_1.
2656 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2657 * thread.c (scoped_restore_current_thread::restore)
2658 (scoped_restore_current_thread::scoped_restore_current_thread):
2659 Update.
2660 * frame.c (get_current_frame, has_stack_frames): Update.
2661 * target.h (target_has_memory): Remove macro.
2662 (target_has_memory): Rename from target_has_memory_1.
2663
5b8a4776
TT
26642020-09-28 Tom Tromey <tom@tromey.com>
2665
2666 * target.c (target_has_all_memory_1): Remove.
2667 * target.h (target_has_all_memory): Remove define.
2668 (target_has_all_memory_1): Don't declare.
2669
bd356ec6
SM
26702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * ser-base.c: Adjust comments formatting.
2673
2c72d5e5
TT
26742020-09-27 Tom Tromey <tom@tromey.com>
2675
2676 PR tui/25342:
2677 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2678
35a98237
TT
26792020-09-27 Tom Tromey <tom@tromey.com>
2680
2681 PR tui/25342:
2682 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2683
9e820dec
TT
26842020-09-27 Tom Tromey <tom@tromey.com>
2685
2686 * unittests/tui-selftests.c: Update.
2687 * tui/tui-winsource.h (struct tui_source_window_base)
2688 <extra_margin, show_line_number, refresh_pad>: New methods.
2689 <m_max_length, m_pad>: New members.
2690 (tui_copy_source_line): Update.
2691 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2692 first_col, line_width, ndigits parameters. Add length.
2693 (tui_source_window_base::show_source_line): Write to pad. Line
2694 number now 0-based.
2695 (tui_source_window_base::refresh_pad): New method.
2696 (tui_source_window_base::show_source_content): Write to pad. Call
2697 refresh_pad.
2698 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2699 not refill.
2700 (tui_source_window_base::update_exec_info): Call
2701 show_line_number.
2702 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2703 method.
2704 <m_digits>: New member.
2705 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2706 and m_max_length.
2707 (tui_source_window::show_line_number): New method.
2708 * tui/tui-io.h (tui_puts): Fix comment.
2709 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2710 m_max_length.
2711
c15c15c8
TT
27122020-09-27 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.c
2715 (tui_source_window_base::set_is_exec_point_at): Don't call
2716 show_source_line.
2717
149830c1
TT
27182020-09-27 Tom Tromey <tom@tromey.com>
2719
2720 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2721 method.
2722 <erase>: Update.
2723 <cursor_x, cursor_y>: Remove.
2724 <m_inner_window>: New member.
2725 (tui_py_window::rerender): Create inner window.
2726 (tui_py_window::output): Write to inner window.
2727
8f9929bb
GR
27282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2729
2730 PR python/26586
2731 * cli/cli-script.c (execute_control_commands): don't set
2732 instream to nullptr here as this breaks the from_tty argument
2733 to gdb.execute in Python.
2734 (execute_user_command): set instream to nullptr here instead.
2735
956bdb59
SM
27362020-09-25 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * infrun.h (infrun_debug_printf): Fix formatting.
2739 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2740
3b93626b
SJ
27412020-09-25 Saagar Jha <saagar@saagarjha.com>
2742
2743 * compile/compile-object-load.h (struct munmap_list): Add
2744 explicitly-defined move constructor.
2745
b551a89f
TT
27462020-09-24 Tom Tromey <tromey@adacore.com>
2747
2748 PR tui/26638:
2749 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2750 method.
2751 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2752 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2753 (tui_prev_win): Rewrite.
2754
99bb393f
HD
27552020-09-23 Hannes Domani <ssbssa@yahoo.de>
2756
2757 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2758 in WOW64 processes as SIGINT.
2759 * nat/windows-nat.h: Make wow64_process a shared variable.
2760 * windows-nat.c: Remove static wow64_process variable.
2761
20a5fcbd
TT
27622020-09-23 Tom Tromey <tom@tromey.com>
2763
2764 PR symtab/25470:
2765 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2766 offset and bit size.
2767 * printcmd.c (print_scalar_formatted): Handle zero-length
2768 integer.
2769 (print_scalar_formatted): Use bit_size_differs_p.
2770 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2771 constant.
2772 (union type_specific): <int_stuff>: New member.
2773 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2774 methods.
2775 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2776 TYPE_SPECIFIC_FIELD.
2777 (recursive_dump_type, copy_type_recursive): Update.
2778 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2779 DW_AT_data_bit_offset.
2780
bac51ab7
TT
27812020-09-23 Tom Tromey <tom@tromey.com>
2782
2783 * utils.h (class gdb_argv): Add move operators.
2784 <append>: New methods.
2785 * compile/compile.c (build_argc_argv): Remove.
2786 (compile_args_argc): Remove.
2787 (compile_args_argv): Change type.
2788 (set_compile_args): Simplify.
2789 (append_args): Remove.
2790 (filter_args): Remove argcp parameter.
2791 (get_args): Return gdb_argv. Simplify.
2792 (compile_to_object): Update.
2793
92677124
TT
27942020-09-23 Tom Tromey <tom@tromey.com>
2795
2796 * compile/compile-object-run.c (do_module_cleanup)
2797 <~do_module_cleanup> :Remove.
2798 (do_module_cleanup): Update.
2799 * compile/compile-object-load.h (struct munmap_list): Add move
2800 assignment operator.
2801 <source_file>: Now a std::string.
2802 <munmap_list>: Rename. No longer a pointer.
2803 * compile/compile-object-load.c (struct setup_sections_data): Add
2804 constructor.
2805 <setup_one_section>: Declare.
2806 <munmap_list>: Move earlier.
2807 <m_bfd>: New member.
2808 <m_last_size, m_last_section_first, m_last_prot,
2809 m_last_max_alignment>: Rename, add initializers where needed.
2810 (setup_sections_data::setup_one_section): Rename from
2811 setup_sections. Update.
2812 (compile_object_load): Update. Don't use bfd_map_over_sections.
2813
e616f60a
TT
28142020-09-23 Tom Tromey <tom@tromey.com>
2815
2816 * compile/compile-object-run.c (struct do_module_cleanup): Add
2817 parameters to constructor. Update destructor.
2818 <source_file, scope, scope_data, out_value_type, out_value_addr,
2819 munmap_list_head, objfile_name_string>: Remove.
2820 <module>: New member.
2821 (do_module_cleanup): Update.
2822 (compile_object_run): Update.
2823
e947a848
TT
28242020-09-23 Tom Tromey <tom@tromey.com>
2825
2826 * compile/compile.c (eval_compile_command): Update.
2827 * compile/compile-object-run.h (compile_object_run): Take a
2828 compile_module_up.
2829 * compile/compile-object-run.c (compile_object_run): Take a
2830 compile_module_up.
2831 * compile/compile-object-load.h (struct compile_module): Add
2832 constructor, destructor.
2833 (compile_module_up): New typedef.
2834 (compile_object_load): Return compile_object_up.
2835 * compile/compile-object-load.c (compile_object_load): Return
2836 compile_module_up.
2837
0dbf6ee6
TT
28382020-09-23 Tom Tromey <tom@tromey.com>
2839
2840 * compile/compile-object-run.c (struct do_module_cleanup): Add
2841 constructor, destructor.
2842 <objfile_name_string>: Don't use struct hack.
2843 (do_module_cleanup): Use delete.
2844 (compile_object_run): Use new.
2845
ebe824f5
TT
28462020-09-23 Tom Tromey <tom@tromey.com>
2847
2848 * compile/compile-cplus-types.c
2849 (compile_cplus_convert_struct_or_union): Use std::vector.
2850 (compile_cplus_convert_func): Likewise.
2851 * compile/compile-c-types.c (convert_func): Use std::vector.
2852
5dd918d9
TT
28532020-09-21 Tom Tromey <tromey@adacore.com>
2854
2855 * sparc-tdep.c (sparc32_skip_prologue): Use
2856 skip_prologue_using_sal.
2857
5486c517
TT
28582020-09-19 Tom Tromey <tom@tromey.com>
2859
2860 * symfile.c (add_section_size_callback): Remove.
2861 (load_one_section): Rename from load_section_callback. Change
2862 parameters.
2863 (generic_load): Use foreach.
2864
8a6bb1d1
TT
28652020-09-19 Tom Tromey <tom@tromey.com>
2866
2867 * exec.c (add_to_section_table): Remove.
2868 (build_section_table): Use foreach.
2869
08f93a1a
TT
28702020-09-19 Tom Tromey <tom@tromey.com>
2871
2872 * elfread.c (elf_locate_sections): Change parameters.
2873 (elf_symfile_read): Use foreach.
2874
03cd72b8
TT
28752020-09-19 Tom Tromey <tom@tromey.com>
2876
2877 * cli/cli-dump.c (struct callback_data): Remove.
2878 (restore_one_section): Rename from restore_section_callback.
2879 Change parameters.
2880 (restore_binary_file): Change parameters.
2881 (restore_command): Use foreach.
2882
f4f2b85f
TT
28832020-09-19 Tom Tromey <tom@tromey.com>
2884
2885 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2886 (gcore_copy_callback): Likewise.
2887 (gcore_memory_sections): Use foreach.
2888
b35c1d1c
TT
28892020-09-19 Tom Tromey <tom@tromey.com>
2890
2891 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2892 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2893 parameters.
2894 (generic_elf_osabi_sniffer): Use foreach.
2895 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2896 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2897
5bb6e9dd
TT
28982020-09-19 Tom Tromey <tom@tromey.com>
2899
2900 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2901 (dwarf2_get_dwz_file): Use foreach.
2902 (dwarf2_locate_dwo_sections): Change parameters.
2903 (open_and_init_dwo_file): Use foreach.
2904 (dwarf2_locate_common_dwp_sections): Change parameters.
2905 (open_and_init_dwp_file): Use foreach.
2906
ad7277da
TT
29072020-09-19 Tom Tromey <tom@tromey.com>
2908
2909 * symfile.h: (find_lowest_section): Don't declare.
2910 * symfile.c (find_lowest_section): Now static. Change
2911 parameters.
2912 (struct place_section_arg): Remove.
2913 (place_section): Change parameters.
2914 (addr_info_make_relative): Use foreach.
2915 (symfile_dummy_outputs): Remove.
2916 (default_symfile_relocate): Use foreach.
2917
cb814f2e
TT
29182020-09-19 Tom Tromey <tom@tromey.com>
2919
2920 * objfiles.c (add_to_objfile_sections): Rename from
2921 add_to_objfile_sections_full.
2922 (add_to_objfile_sections): Remove.
2923 (build_objfile_section_table): Use foreach.
2924
3cabfd26
TT
29252020-09-19 Tom Tromey <tom@tromey.com>
2926
2927 * stap-probe.c (get_stap_base_address_1): Remove.
2928 (get_stap_base_address): Use foreach.
2929
1ce51eb5
TT
29302020-09-19 Tom Tromey <tom@tromey.com>
2931
2932 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2933 parameters.
2934 (gdb_bfd_close_or_warn): Use foreach.
2935
a190fabb
TT
29362020-09-19 Tom Tromey <tom@tromey.com>
2937
2938 * corelow.c (add_to_thread_list): Change parameters.
2939 (core_target_open): Use foreach.
2940
cafb0d81
TT
29412020-09-19 Tom Tromey <tom@tromey.com>
2942
2943 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2944 existing function.
2945
c8d5abea
AB
29462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2949 for arrays.
2950
6d816919
AB
29512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * eval.c: Remove 'f-lang.h' include.
2954 (value_f90_subarray): Moved to f-lang.c.
2955 (eval_call): Renamed to...
2956 (evaluate_subexp_do_call): ...this, is no longer static, header
2957 comment moved into header file.
2958 (evaluate_funcall): Update call to eval_call.
2959 (skip_undetermined_arglist): Moved to f-lang.c.
2960 (fortran_value_subarray): Likewise.
2961 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2962 moved to evaluate_subexp_f.
2963 (calc_f77_array_dims): Moved to f-lang.c
2964 * expprint.c (print_subexp_funcall): New function.
2965 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2966 moved to print_subexp_f, OP_FUNCALL uses new function.
2967 (dump_subexp_body_funcall): New function.
2968 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2969 moved to dump_subexp_f, OP_FUNCALL uses new function.
2970 * expression.h (evaluate_subexp_do_call): Declare.
2971 * f-lang.c (value_f90_subarray): Moved from eval.c.
2972 (skip_undetermined_arglist): Likewise.
2973 (calc_f77_array_dims): Likewise.
2974 (fortran_value_subarray): Likewise.
2975 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2976 (operator_length_f): Likewise.
2977 (print_subexp_f): Likewise.
2978 (dump_subexp_body_f): Likewise.
2979 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2980 declaration of this operation to here.
2981 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2982 support moved to operator_length_f.
2983 * parser-defs.h (dump_subexp_body_funcall): Declare.
2984 (print_subexp_funcall): Declare.
2985 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2986 fortran-operator.def.
2987
8c37706a
AB
29882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * eval.c (fortran_value_subarray): New function, content is taken
2991 from...
2992 (evaluate_subexp_standard): ...here, in two places. Now arrays
2993 and strings both call the new function.
2994 (calc_f77_array_dims): Add header comment, handle strings.
2995
14f9473c
VC
29962020-09-18 Victor Collod <vcollod@nvidia.com>
2997
2998 PR gdb/26635
2999 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3000 (i386_analyze_prologue): Call i386_skip_endbr.
3001
b60cea74
TT
30022020-09-18 Tom Tromey <tromey@adacore.com>
3003
3004 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3005 (windows_nat_target::wait): Update.
3006 * target/wait.h (enum target_wait_flag): New. Use
3007 DEF_ENUM_FLAGS_TYPE.
3008 * target/target.h (target_wait): Change type of options.
3009 * target.h (target_options_to_string, default_target_wait):
3010 Update.
3011 (struct target_ops) <wait>: Change type of options.
3012 * target.c (target_wait, default_target_wait, do_option): Change
3013 type of "options".
3014 (target_options_to_string): Likewise.
3015 * target-delegates.c: Rebuild.
3016 * target-debug.h (target_debug_print_target_wait_flags): Rename
3017 from target_debug_print_options.
3018 * sol-thread.c (class sol_thread_target) <wait>: Update.
3019 (sol_thread_target::wait): Update.
3020 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3021 (rs6000_nat_target::wait): Update.
3022 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3023 Update.
3024 (remote_target::wait_ns, remote_target::wait_as): Change type of
3025 "options".
3026 (remote_target::wait): Update.
3027 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3028 (gdbsim_target::wait): Update.
3029 * record-full.c (class record_full_base_target) <wait>: Update.
3030 (record_full_wait_1): Change type of "options".
3031 (record_full_base_target::wait): Update.
3032 * record-btrace.c (class record_btrace_target) <wait>: Update.
3033 (record_btrace_target::wait): Update.
3034 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3035 Update.
3036 (ravenscar_thread_target::wait): Update.
3037 * procfs.c (class procfs_target) <wait>: Update.
3038 (procfs_target::wait): Update.
3039 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3040 * obsd-nat.c (obsd_nat_target::wait): Update.
3041 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3042 (nto_procfs_target::wait): Update.
3043 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3044 * nbsd-nat.c (nbsd_wait): Change type of "options".
3045 (nbsd_nat_target::wait): Update.
3046 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3047 (thread_db_target::wait): Update.
3048 * linux-nat.h (class linux_nat_target) <wait>: Update.
3049 * linux-nat.c (linux_nat_target::wait): Update.
3050 (linux_nat_wait_1): Update.
3051 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3052 "options".
3053 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3054 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3055 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3056 (go32_nat_target::wait): Update.
3057 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3058 * gnu-nat.c (gnu_nat_target::wait): Update.
3059 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3060 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3061 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3062 * darwin-nat.c (darwin_nat_target::wait): Update.
3063 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3064 (bsd_uthread_target::wait): Update.
3065 * aix-thread.c (class aix_thread_target) <wait>: Update.
3066 (aix_thread_target::wait): Update.
3067
0295dde6
AB
30682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * compile/compile-object-run.c (create_copied_type_recursive): New
3071 function.
3072 (compile_object_run): Use new function.
3073
d3483b43
JT
30742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3075
3076 * NEWS: Mention x86_64 Cygwin core file support.
3077
e7d612ad
JT
30782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3079
3080 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3081 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3082
aff9d387
JT
30832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3084
62a5151b
JT
3085 * windows-tdep.h: Add prototypes.
3086 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3087 (i386_windows_core_pid_to_str): Move and rename ...
3088 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3089 (windows_core_pid_to_str): ... and here.
3090 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3091
30922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3093 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3094 (amd64_windows_init_abi_common): ... and register.
3095
7d155da3
JT
30962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3097
3098 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3099 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3100
e8ef12b9
PA
31012020-09-18 Pedro Alves <pedro@palves.net>
3102
3103 PR gdb/26631
3104 * thread.c (thread_find_command): Switch inferior before calling
3105 target methods.
3106
c1e1314d
TT
31072020-09-17 Tom Tromey <tromey@adacore.com>
3108
3109 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3110 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3111 (tdesc_arch_data_up): New typedef.
3112 (tdesc_use_registers, tdesc_data_alloc): Update.
3113 (tdesc_data_cleanup): Don't declare.
3114 * target-descriptions.c (tdesc_data_alloc): Return a
3115 tdesc_arch_data_up.
3116 (tdesc_arch_data_deleter::operator()): Rename from
3117 tdesc_data_cleanup. Change argument type.
3118 (tdesc_use_registers): Change early_data to an rvalue reference.
3119 (tdesc_use_registers): Don't use delete.
3120 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3121 * s390-tdep.c (s390_gdbarch_init): Update.
3122 * rx-tdep.c (rx_gdbarch_init): Update.
3123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3124 * riscv-tdep.c (riscv_gdbarch_init): Update.
3125 * or1k-tdep.c (or1k_gdbarch_init): Update.
3126 * nios2-tdep.c (nios2_gdbarch_init): Update.
3127 * nds32-tdep.c (nds32_gdbarch_init): Update.
3128 * mips-tdep.c (mips_gdbarch_init): Update.
3129 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3130 * m68k-tdep.c (m68k_gdbarch_init): Update.
3131 * i386-tdep.c (i386_gdbarch_init): Update.
3132 * arm-tdep.c (arm_gdbarch_init): Update.
3133 * arc-tdep.c (arc_tdesc_init): Update.
3134 (arc_gdbarch_init): Update.
3135 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3136
0363df3d
HD
31372020-09-17 Hannes Domani <ssbssa@yahoo.de>
3138
3139 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3140 for WOW64 processes.
3141
280a9412
TT
31422020-09-17 Tom Tromey <tom@tromey.com>
3143
3144 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3145
6108fd18
TT
31462020-09-17 Tom Tromey <tom@tromey.com>
3147
3148 * value.c (preserve_values): Update.
3149 * python/py-type.c (save_objfile_types): Update.
3150 * guile/scm-type.c (save_objfile_types): Update.
3151 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3152 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3153 * compile/compile-object-run.c (compile_object_run): Update.
3154
fa9b1164
TT
31552020-09-17 Tom Tromey <tom@tromey.com>
3156
3157 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3158 Remove.
3159 <m_table>: Now htab_up.
3160 * typeprint.c (typedef_hash_table::recursively_update)
3161 (typedef_hash_table::add_template_parameters)
3162 (typedef_hash_table::typedef_hash_table): Update.
3163 (typedef_hash_table::~typedef_hash_table): Remove.
3164 (typedef_hash_table::typedef_hash_table)
3165 (typedef_hash_table::find_global_typedef)
3166 (typedef_hash_table::find_typedef): Update.
3167
eb53f105
TT
31682020-09-17 Tom Tromey <tom@tromey.com>
3169
3170 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3171
7a8a5d47
TT
31722020-09-17 Tom Tromey <tom@tromey.com>
3173
3174 * linespec.c (class decode_compound_collector)
3175 <~decode_compound_collector>: Remove.
3176 <m_unique_syms>: Now htab_up.
3177 (decode_compound_collector::operator ()): Update.
3178 (class symtab_collector) <~symtab_collector>: Remove.
3179 <m_symtab_table>: Now htab_up.
3180 (symtab_collector::operator ()): Update.
3181
99032cfc
TT
31822020-09-17 Tom Tromey <tom@tromey.com>
3183
3184 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3185 (filename_seen_cache::clear): Update.
3186 (~filename_seen_cache): Remove.
3187 (filename_seen_cache::seen): Update.
3188 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3189 htab_up.
3190 <~filename_seen_cache>: Remove.
3191 <traverse>: Update.
3192
32580f6d
TT
31932020-09-17 Tom Tromey <tom@tromey.com>
3194
3195 * completer.c (completion_tracker::discard_completions)
3196 (completion_tracker::~completion_tracker)
3197 (completion_tracker::maybe_add_completion)
3198 (completion_tracker::remove_completion)
3199 (completion_tracker::recompute_lowest_common_denominator)
3200 (completion_tracker::build_completion_result): Update.
3201 * completer.h (class completion_tracker) <have_completions>:
3202 Update.
3203 <m_entries_hash>: Now htab_up.
3204
c1fb9836
TT
32052020-09-17 Tom Tromey <tom@tromey.com>
3206
3207 * breakpoint.c (ambiguous_names_p): Use htab_up.
3208
88f07206
TT
32092020-09-17 Tom Tromey <tom@tromey.com>
3210
3211 * auto-load.c (struct auto_load_pspace_info)
3212 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3213 <loaded_script_files, loaded_script_texts>: Change type to
3214 htab_up.
3215 (~auto_load_pspace_info) Remove.
3216 (init_loaded_scripts_info, maybe_add_script_file)
3217 (maybe_add_script_text, auto_load_info_scripts): Update.
3218
9519b2ee
TT
32192020-09-17 Tom Tromey <tromey@adacore.com>
3220
3221 * c-exp.y (name_obstack): Now static.
3222
d2cd4113
CC
32232020-09-17 Chungyi Chi <demonic@csie.io>
3224
3225 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3226
b650a282
SM
32272020-09-16 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3230 (add_solib_catchpoint): Likewise.
3231 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3232 to bool.
3233 (add_solib_catchpoint): Change int parameter/variable to bool.
3234 (catch_load_or_unload): Likewise.
3235 (init_catchpoint): Likewise.
3236 (create_fork_vfork_event_catchpoint): Likewise.
3237 (catch_fork_command_1): Likewise.
3238 (catch_exec_command_1): Likewise.
3239
4d0bcfcf
SM
32402020-09-16 Simon Marchi <simon.marchi@efficios.com>
3241
3242 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3243 Change instance_flags to m_instance_flags.
3244
fe830662
TT
32452020-09-16 Tom Tromey <tromey@adacore.com>
3246
3247 PR gdb/26598:
3248 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3249
fe5ddfc3
JB
32502020-09-16 John Baldwin <jhb@FreeBSD.org>
3251
3252 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3253 PL_FLAG_EXEC.
3254 (fbsd_nat_target::insert_exec_catchpoint)
3255 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3256 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3257 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3258
e911c666
JB
32592020-09-16 John Baldwin <jhb@FreeBSD.org>
3260
3261 * configure.ac: Remove check for kinfo_getvmmap().
3262 * configure, config.in: Regenerate.
3263 * fbsd-nat.c (fbsd_read_mapping): Remove
3264 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3265 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3266 kinfo_get_vmmap() are always present.
3267
1f17d372
JB
32682020-09-16 John Baldwin <jhb@FreeBSD.org>
3269
3270 * fbsd-nat.c: Always include support for
3271 TARGET_OBJECT_SIGNAL_INFO.
3272
bcb1da7f
JB
32732020-09-16 John Baldwin <jhb@FreeBSD.org>
3274
3275 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3276 sysctl and remove procfs fallback.
3277
5515f729
JB
32782020-09-16 John Baldwin <jhb@FreeBSD.org>
3279
3280 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3281 * fbsd-nat.h: Likewise.
3282
da1df1db
TBA
32832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3284
3285 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3286 argument.
3287
0e25e767
AB
32882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * ada-lang.c (ada_language_data): Delete.
3291 (ada_language): Remove references to ada_language_data.
3292 * c-lang.c (c_language_data): Delete.
3293 (c_language): Remove references to c_language_data.
3294 (cplus_language_data): Delete.
3295 (cplus_language): Remove references to cplus_language_data.
3296 (asm_language_data): Delete.
3297 (asm_language): Remove references to asm_language_data.
3298 (minimal_language_data): Delete.
3299 (minimal_language): Remove references to minimal_language_data.
3300 * d-lang.c (d_language_data): Delete.
3301 (d_language): Remove references to d_language_data.
3302 * f-lang.c (f_language_data): Delete.
3303 (f_language): Remove references to f_language_data.
3304 * go-lang.c (go_language_data): Delete.
3305 (go_language): Remove references to go_language_data.
3306 * language.c (unknown_language_data): Delete.
3307 (unknown_language): Remove references to unknown_language_data.
3308 (auto_language_data): Delete.
3309 (auto_language): Remove references to auto_language_data.
3310 * language.h (language_data): Delete struct.
3311 (language_defn): No longer inherit from language_data.
3312 * m2-lang.c (m2_language_data): Delete.
3313 (m2_language): Remove references to m2_language_data.
3314 * objc-lang.c (objc_language_data): Delete.
3315 (objc_language): Remove references to objc_language_data.
3316 * opencl-lang.c (opencl_language_data): Delete.
3317 (opencl_language): Remove references to opencl_language_data.
3318 * p-lang.c (pascal_language_data): Delete.
3319 (pascal_language): Remove references to pascal_language_data.
3320 * rust-lang.c (rust_language_data): Delete.
3321 (rust_language): Remove references to rust_language_data.
3322
b7c6e27d
AB
33232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3326 initializer.
3327 (ada_language::opcode_print_table): New member function.
3328 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3329 (c_language::opcode_print_table): New member function.
3330 (cplus_language_data): Remove la_op_print_tab initializer.
3331 (cplus_language::opcode_print_table): New member function.
3332 (asm_language_data): Remove la_op_print_tab initializer.
3333 (asm_language::opcode_print_table): New member function.
3334 (minimal_language_data): Remove la_op_print_tab initializer.
3335 (minimal_language::opcode_print_table): New member function.
3336 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3337 (d_language::opcode_print_table): New member function.
3338 * expprint.c (print_subexp_standard): Update call to
3339 opcode_print_table.
3340 (op_string): Likewise.
3341 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3342 (f_language::opcode_print_table): New member function.
3343 * go-lang.c (go_language_data): Remove la_op_print_tab
3344 initializer.
3345 (go_language::opcode_print_table): New member function.
3346 * language.c (unknown_language_data): Remove la_op_print_tab
3347 initializer.
3348 (unknown_language::opcode_print_table): New member function.
3349 (auto_language_data): Remove la_op_print_tab initializer.
3350 (auto_language::opcode_print_table): New member function.
3351 * language.h (language_data): Remove la_op_print_tab field.
3352 (language_defn::opcode_print_table): Declare new member function.
3353 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3354 initializer.
3355 (m2_language::opcode_print_table): New member function.
3356 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3357 initializer.
3358 (objc_language::opcode_print_table): New member function.
3359 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3360 initializer.
3361 (opencl_language::opcode_print_table): New member function.
3362 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3363 initializer.
3364 (pascal_language::opcode_print_table): New member function.
3365 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3366 initializer.
3367 (rust_language::opcode_print_table): New member function.
3368
5aba6ebe
AB
33692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3370
3371 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3372 (ada_language::expression_ops): New member function.
3373 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3374 (c_language::expression_ops): New member function.
3375 (cplus_language_data): Remove la_exp_desc initializer.
3376 (cplus_language::expression_ops): New member function.
3377 (asm_language_data): Remove la_exp_desc initializer.
3378 (asm_language::expression_ops): New member function.
3379 (minimal_language_data): Remove la_exp_desc initializer.
3380 (minimal_language::expression_ops): New member function.
3381 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3382 (d_language::expression_ops): New member function.
3383 * eval.c (evaluate_subexp): Update call to expression_ops.
3384 * expprint.c (print_subexp): Likewise.
3385 (op_name): Likewise.
3386 (dump_subexp_body): Likewise.
3387 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3388 (f_language::expression_ops): New member function.
3389 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3390 (go_language::expression_ops): New member function.
3391 * language.c (language_defn::expression_ops): New function.
3392 (unknown_language_data): Remove la_exp_desc initializer.
3393 (auto_language_data): Likewise.
3394 * language.h (language_data): Remove la_exp_desc field.
3395 (language_defn::expression_ops): Declare new member function.
3396 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3397 (m2_language::expression_ops): New member function.
3398 * objc-lang.c (objc_language_data): Remove la_exp_desc
3399 initializer.
3400 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3401 initializer.
3402 (opencl_language::expression_ops): New member function.
3403 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3404 * parse.c (operator_length): Update call to expression_ops.
3405 (exp_iterate): Likewise.
3406 * rust-lang.c (rust_language_data): Remove la_exp_desc
3407 initializer.
3408 (ruse_language::expression_ops): New member function.
3409
b63a3f3f
AB
34102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3413 initializer.
3414 (ada_language::varobj_ops): New member function.
3415 * c-lang.c (c_language_data): Remove la_varobj_ops
3416 initializer.
3417 (cplus_language_data): Likewise.
3418 (cplus_language::varobj_ops): New member function.
3419 (asm_language_data): Remove la_varobj_ops initializer.
3420 (minimal_language_data): Likewise.
3421 * d-lang.c (d_language_data): Likewise.
3422 * f-lang.c (f_language_data): Likewise.
3423 * go-lang.c (go_language_data): Likewise.
3424 * language.c (language_defn::varobj_ops): New function.
3425 (unknown_language_data): Remove la_varobj_ops
3426 initializer.
3427 (auto_language_data): Likewise.
3428 * language.h (language_data): Remove la_varobj_ops field.
3429 (language_defn::varobj_ops): Declare new member function.
3430 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3431 * objc-lang.c (objc_language_data): Likewise.
3432 * opencl-lang.c (opencl_language_data): Likewise.
3433 * p-lang.c (pascal_language_data): Likewise.
3434 * rust-lang.c (rust_language_data): Likewise.
3435 * varobj.c (varobj_create): Update call to varobj_ops.
3436 * varobj.h (default_varobj_ops): Delete define.
3437
1ac14a04
AB
34382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3441 initializer.
3442 * c-lang.c (c_language_data): Likewise.
3443 (c_language::macro_expansion): New member function.
3444 (cplus_language_data): Likewise.
3445 (cplus_language::macro_expansion): New member function.
3446 (asm_language_data): Likewise.
3447 (asm_language::macro_expansion): New member function.
3448 (minimal_language_data): Likewise.
3449 (minimal_language::macro_expansion): New member function.
3450 * d-lang.c (d_language_data): Remove la_macro_expansion
3451 initializer.
3452 * f-lang.c (f_language_data): Likewise.
3453 * go-lang.c (go_language_data): Likewise.
3454 * language.c (unknown_language_data): Likewise.
3455 (auto_language_data): Likewise.
3456 * language.h (language_data): Remove la_macro_expansion field.
3457 (language_defn::macro_expansion): New member function.
3458 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3459 initializer.
3460 * objc-lang.c (objc_language_data): Likewise.
3461 (objc_language::macro_expansion): New member function.
3462 * opencl-lang.c (opencl_language_data): Likewise.
3463 (opencl_language::macro_expansion): New member function.
3464 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3465 initializer.
3466 * rust-lang.c (rust_language_data): Likewise.
3467 * symtab.c (default_collect_symbol_completion_matches_break_on):
3468 Update call to macro_expansion.
3469
3a3440fb
AB
34702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * ada-lang.c (ada_language_data): Remove la_array_ordering
3473 initializer.
3474 * c-lang.c (c_language_data): Likewise.
3475 (cplus_language_data): Likewise.
3476 (asm_language_data): Likewise.
3477 (minimal_language_data): Likewise.
3478 * d-lang.c (d_language_data): Likewise.
3479 * dwarf2/read.c (read_array_order): Update for call to
3480 array_ordering.
3481 * f-lang.c (f_language_data): Remove la_array_ordering
3482 initializer.
3483 (f_language::array_ordering): New member function.
3484 * go-lang.c (go_language_data): Remove la_array_ordering
3485 initializer.
3486 * language.c (unknown_language_data): Likewise.
3487 (auto_language_data): Likewise.
3488 * language.h (language_data): Delete la_array_ordering field.
3489 (language_defn::array_ordering): New member function.
3490 * m2-lang.c (m2_language_data): Remove la_array_ordering
3491 initializer.
3492 * objc-lang.c (objc_language_data): Likewise.
3493 * opencl-lang.c (opencl_language_data): Likewise.
3494 * p-lang.c (pascal_language_data): Likewise.
3495 * rust-lang.c (rust_language_data): Likewise.
3496
0d201fa4
AB
34972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3500 initializer.
3501 * c-lang.c (c_language_data): Likewise.
3502 (cplus_language_data): Likewise.
3503 (asm_language_data): Likewise.
3504 (minimal_language_data): Likewise.
3505 * d-lang.c (d_language_data): Likewise.
3506 * f-lang.c (f_language_data): Likewise.
3507 (f_language::case_sensitivity): New member function.
3508 * go-lang.c (go_language_data): Remove la_case_sensitivity
3509 initializer.
3510 * language.c (enum case_mode): Moved here from language.h.
3511 (case_mode): Make static.
3512 (show_case_command): Update for case_sensitivity being a method.
3513 (set_case_command): Likewise.
3514 (set_range_case): Likewise.
3515 (unknown_language_data): Remove la_case_sensitivity initializer.
3516 (auto_language_data): Likewise.
3517 * language.h (case_mode): Delete, move enum declaration to
3518 language.c.
3519 (language_data): Delete la_case_sensitivity field.
3520 (language_defn::case_sensitivity): New member function.
3521 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3522 initializer.
3523 * objc-lang.c (objc_language_data): Likewise.
3524 * opencl-lang.c (opencl_language_data): Likewise.
3525 * p-lang.c (pascal_language_data): Likewise.
3526 * rust-lang.c (rust_language_data): Likewise.
3527
efdf6a73
AB
35282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * ada-lang.c (ada_language_data): Remove la_range_check
3531 initializer.
3532 * c-lang.c (c_language_data): Likewise.
3533 (cplus_language_data): Likewise.
3534 (asm_language_data): Likewise.
3535 (minimal_language_data): Likewise.
3536 * d-lang.c (d_language_data): Likewise.
3537 * f-lang.c (f_language_data): Likewise.
3538 (f_language::range_checking_on_by_default): New member function.
3539 * go-lang.c (go_language_data): Remove la_range_check initializer.
3540 * language.c (enum range_mode): Moved here from language.h.
3541 (range_mode): Made static.
3542 (show_range_command): Update to use
3543 range_checking_on_by_default.
3544 (set_range_command): Likewise.
3545 (set_range_case): Likewise.
3546 (unknown_language_data): Remove la_range_check initializer.
3547 (auto_language_data): Likewise.
3548 * language.h (range_mode): Delete. Enum definition moved to
3549 language.c.
3550 (language_data): Remove la_range_check field.
3551 (language_defn::range_checking_on_by_default): New member
3552 function.
3553 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3554 (m2_language::range_checking_on_by_default): New member function.
3555 * objc-lang.c (objc_language_data): Remove la_range_check
3556 initializer.
3557 * opencl-lang.c (opencl_language_data): Likewise.
3558 * p-lang.c (pascal_language_data): Likewise.
3559 (pascal_language::range_checking_on_by_default): New member
3560 function.
3561 * rust-lang.c (rust_language_data): Remove la_range_check
3562 initializer.
3563 (rust_language::range_checking_on_by_default): New member
3564 function.
3565
bf92aec5
AB
35662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * dwarf2/read.c (dwarf2_physname): Remove special case for
3569 language_go.
3570 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3571 member function.
3572
d3355e4d
AB
35732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_data): Remove
3576 la_store_sym_names_in_linkage_form_p initializer.
3577 (ada_language::store_sym_names_in_linkage_form_p): New member
3578 function.
3579 * c-lang.c (c_language_data): Remove
3580 la_store_sym_names_in_linkage_form_p initializer.
3581 (c_language::store_sym_names_in_linkage_form_p): New member
3582 function.
3583 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3584 initializer.
3585 (asm_language_data): Likewise.
3586 (asm_language::store_sym_names_in_linkage_form_p): New member
3587 function.
3588 (minimal_language_data): Remove
3589 la_store_sym_names_in_linkage_form_p initializer.
3590 (minimal_language::store_sym_names_in_linkage_form_p): New member
3591 function.
3592 * d-lang.c (d_language_data): Remove
3593 la_store_sym_names_in_linkage_form_p initializer.
3594 * dwarf2/read.c (dwarf2_physname): Update call to
3595 store_sym_names_in_linkage_form_p.
3596 * f-lang.c (f_language_data): Remove
3597 la_store_sym_names_in_linkage_form_p initializer.
3598 * go-lang.c (go_language_data): Remove
3599 la_store_sym_names_in_linkage_form_p initializer.
3600 * language.c (unknown_language_data): Remove
3601 la_store_sym_names_in_linkage_form_p initializer.
3602 (unknown_language::store_sym_names_in_linkage_form_p): New member
3603 function.
3604 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3605 initializer.
3606 (auto_language::store_sym_names_in_linkage_form_p): New member
3607 function.
3608 * language.h (language_data): Remove
3609 la_store_sym_names_in_linkage_form_p member variable.
3610 (language_defn::store_sym_names_in_linkage_form_p): New member
3611 function.
3612 * m2-lang.c (m2_language_data): Remove
3613 la_store_sym_names_in_linkage_form_p initializer.
3614 * objc-lang.c (objc_language_data): Likewise.
3615 * opencl-lang.c (opencl_language_data): Likewise.
3616 * p-lang.c (pascal_language_data): Likewise.
3617 * rust-lang.c (rust_language_data): Likewise.
3618
22c12a6c
AB
36192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * ada-lang.c (ada_language_data): Remove string_lower_bound
3622 initializer.
3623 * c-lang.c (c_language_data): Likewise.
3624 (cplus_language_data): Likewise.
3625 (asm_language_data): Likewise.
3626 (minimal_language_data): Likewise.
3627 * d-lang.c (d_language_data): Likewise.
3628 * f-lang.c (f_language_data): Likewise.
3629 * go-lang.c (go_language_data): Likewise.
3630 * language.c (unknown_language_data): Likewise.
3631 (auto_language_data): Likewise.
3632 * language.h (language_data): Remove string_lower_bound field.
3633 (language_defn::string_lower_bound): New member function.
3634 * m2-lang.c (m2_language_data): Remove string_lower_bound
3635 initializer.
3636 (m2_language::string_lower_bound): New member function.
3637 * objc-lang.c (objc_language_data): Remove string_lower_bound
3638 initializer.
3639 * opencl-lang.c (opencl_language_data): Likewise.
3640 * p-lang.c (pascal_language_data): Likewise.
3641 * rust-lang.c (rust_language_data): Likewise.
3642 * valops.c (value_cstring): Update call to string_lower_bound.
3643 (value_string): Likewise.
3644 * value.c (allocate_repeated_value): Likewise.
3645
1c236ddd
AB
36462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3647
3648 * valops.c (value_repeat): Fix incorrect argument name in comment.
3649
67bd3fd5
AB
36502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * ada-lang.c (ada_language_data): Remove c_style_arrays
3653 initializer.
3654 (ada_language::c_style_arrays_p): New member fuction.
3655 * c-lang.c (c_language_data): Remove c_style_arrays
3656 initializer.
3657 (cplus_language_data): Likewise.
3658 (asm_language_data): Likewise.
3659 (minimal_language_data): Likewise.
3660 * d-lang.c (d_language_data): Likewise.
3661 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3662 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3663 (f_language::c_style_arrays_p): New member function.
3664 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3665 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3666 * language.c (unknown_language_data): Remove c_style_arrays
3667 initializer.
3668 (auto_language_data): Likewise.
3669 * language.h (language_data): Remove c_style_arrays field.
3670 (language_defn::c_style_arrays_p): New member function.
3671 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3672 (m2_language::c_style_arrays_p): New member function.
3673 * objc-lang.c (objc_language_data): Remove c_style_arrays
3674 initializer.
3675 * opencl-lang.c (opencl_language_data): Likewise.
3676 * p-lang.c (pascal_language_data): Likewise.
3677 * rust-lang.c (rust_language_data): Likewise.
3678 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3679 and update local variable to a bool.
3680 * valops.c (value_cast): Update call to c_style_arrays_p.
3681 (value_array): Likewise.
3682 * value.c (coerce_array): Likewise.
3683
85967615
AB
36842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Remove la_language initializer.
3687 * c-lang.c (c_language_data): Likewise.
3688 (cplus_language_data): Likewise.
3689 (asm_language_data): Likewise.
3690 (minimal_language_data): Likewise.
3691 * d-lang.c (d_language_data): Likewise.
3692 * f-lang.c (f_language_data): Likewise.
3693 * go-lang.c (go_language_data): Likewise.
3694 * language.c (unknown_language_data): Likewise.
3695 (auto_language_data): Likewise.
3696 * language.h (language_data): Remove la_language field.
3697 (language_defn::language_defn): Initialise la_language field.
3698 (language_defn::la_language): New member variable.
3699 * m2-lang.c (m2_language_data): Remove la_language field.
3700 * objc-lang.c (objc_language_data): Likewise.
3701 * opencl-lang.c (opencl_language_data): Likewise.
3702 * p-lang.c (pascal_language_data): Likewise.
3703 * rust-lang.c (rust_language_data): Likewise.
3704
e171d6f1
AB
37052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * ada-lang.c (ada_extensions): Delete, moved into
3708 ada_language::filename_extensions.
3709 (ada_language_data): Remove la_filename_extensions initializer.
3710 (ada_language::filename_extensions): New member function.
3711 * c-lang.c (c_extensions): Delete, moved into
3712 c_language::filename_extensions.
3713 (c_language_data): Remove la_filename_extensions initializer.
3714 (c_language::filename_extensions): New member function.
3715 (cplus_extensions): Delete, moved into
3716 cplus_language::filename_extensions.
3717 (cplus_language_data): Remove la_filename_extensions initializer.
3718 (cplus_language::filename_extensions): New member function.
3719 (asm_extensions): Delete, moved into
3720 asm_language::filename_extensions.
3721 (asm_language_data): Remove la_filename_extensions initializer.
3722 (asm_language::filename_extensions): New member function.
3723 (minimal_language_data): Remove la_filename_extensions
3724 initializer.
3725 * d-lang.c (d_extensions): Delete, moved into
3726 d_language::filename_extensions.
3727 (d_language_data): Remove la_filename_extensions initializer.
3728 (d_language::filename_extensions): New member function.
3729 * f-lang.c (f_extensions): Delete, moved into
3730 f_language::filename_extensions.
3731 (f_language_data): Remove la_filename_extensions initializer.
3732 (f_language::filename_extensions): New member function.
3733 * go-lang.c (go_language_data): Remove la_filename_extensions
3734 initializer.
3735 * language.c (add_set_language_command): Update now that
3736 filename_extensions returns a vector.
3737 (unknown_language_data): Remove la_filename_extensions
3738 initializer.
3739 (auto_language_data): Likewise.
3740 * language.h (language_data): Remove la_filename_extensions field.
3741 (language_defn::filename_extensions): New member function.
3742 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3743 initializer.
3744 * objc-lang.c (objc_extensions): Delete, moved into
3745 objc_language::filename_extensions.
3746 (objc_language_data): Remove la_filename_extensions initializer.
3747 (objc_language::filename_extensions): New member function.
3748 * opencl-lang.c (opencl_language_data): Remove
3749 la_filename_extensions initializer.
3750 * p-lang.c (pascal_extensions): Delete, moved into
3751 pascal_language::filename_extensions.
3752 (pascal_language_data): Remove la_filename_extensions initializer.
3753 (pascal_language::filename_extensions): New member function.
3754 * rust-lang.c (rust_extensions): Delete, moved into
3755 rust_language::filename_extensions.
3756 (rust_language_data): Remove la_filename_extensions initializer.
3757 (rust_language::filename_extensions): New member function.
3758 * symfile.c (add_filename_language): Add new assert.
3759
6f7664a9
AB
37602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3761
3762 * ada-lang.c (ada_language_data): Remove la_name and
3763 la_natural_name initializers.
3764 (ada_language::name): New member function.
3765 (ada_language::natural_name): New member function.
3766 * c-lang.c (c_language_data): Remove la_name and
3767 la_natural_name initializers.
3768 (c_language::name): New member function.
3769 (c_language::natural_name): New member function.
3770 (cplus_language_data): Remove la_name and
3771 la_natural_name initializers.
3772 (cplus_language::name): New member function.
3773 (cplus_language::natural_name): New member function.
3774 (asm_language_data): Remove la_name and
3775 la_natural_name initializers.
3776 (asm_language::name): New member function.
3777 (asm_language::natural_name): New member function.
3778 (minimal_language_data): Remove la_name and
3779 la_natural_name initializers.
3780 (minimal_language::name): New member function.
3781 (minimal_language::natural_name): New member function.
3782 * compile/compile.c (compile_to_object): Update call to
3783 lanugage_defn::name.
3784 * d-lang.c (d_language_data): Remove la_name and
3785 la_natural_name initializers.
3786 (d_language::name): New member function.
3787 (d_language::natural_name): New member function.
3788 * expprint.c (print_subexp_standard): Update call to
3789 language_defn::name.
3790 (dump_raw_expression): Likewise
3791 (dump_prefix_expression): Likewise.
3792 * f-lang.c (f_language_data): Remove la_name and
3793 la_natural_name initializers.
3794 (f_language::name): New member function.
3795 (f_language::natural_name): New member function.
3796 * go-lang.c (go_language_data): Remove la_name and
3797 la_natural_name initializers.
3798 (go_language::name): New member function.
3799 (go_language::natural_name): New member function.
3800 * language.c (show_language_command): Update call to
3801 language_defn::name.
3802 (set_language_command): Likewise.
3803 (language_enum): Likewise.
3804 (language_str): Likewise.
3805 (add_set_language_command): Likewise, use
3806 language_defn::natural_name in the doc string.
3807 (unknown_language_data): Remove la_name and
3808 la_natural_name initializers.
3809 (unknown_language::name): New member function.
3810 (unknown_language::natural_name): New member function.
3811 (auto_language_data): Remove la_name and
3812 la_natural_name initializers.
3813 (auto_language::name): New member function.
3814 (auto_language::natural_name): New member function.
3815 (language_lookup_primitive_type_as_symbol): Update call to
3816 language_defn::name.
3817 * language.h (language_data): Remove la_name and la_natural_name
3818 member variables.
3819 (language_defn::name): New member function.
3820 (language_defn::natural_name): New member function.
3821 * m2-lang.c (m2_language_data): Remove la_name and
3822 la_natural_name initializers.
3823 (m2_language::name): New member function.
3824 (m2_language::natural_name): New member function.
3825 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3826 language_defn::natural_name.
3827 * objc-lang.c (objc_language_data): Remove la_name and
3828 la_natural_name initializers.
3829 (objc_language::name): New member function.
3830 (objc_language::natural_name): New member function.
3831 * opencl-lang.c (opencl_language_data): Remove la_name and
3832 la_natural_name initializers.
3833 (opencl_language::name): New member function.
3834 (opencl_language::natural_name): New member function.
3835 * p-lang.c (pascal_language_data): Remove la_name and
3836 la_natural_name initializers.
3837 (pascal_language::name): New member function.
3838 (pascal_language::natural_name): New member function.
3839 * rust-lang.c (rust_language_data): Remove la_name and
3840 la_natural_name initializers.
3841 (rust_language::name): New member function.
3842 (rust_language::natural_name): New member function.
3843 * symtab.c (lookup_language_this): Update call to
3844 language_defn::name.
3845
5bae7c4e
AB
38462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * ada-lang.c (ada_language_data): Remove la_name_of_this
3849 initializer.
3850 * ax-gdb.c (gen_expr): Update call to name_of_this.
3851 * c-exp.y (classify_name): Likewise.
3852 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3853 (cplus_language_data): Likewise.
3854 (cplus_language::name_of_this): New member function.
3855 (asm_language_data): Remove la_name_of_this initializer.
3856 (minimal_language_data): Likewise.
3857 * d-lang.c (d_language_data): Likewise.
3858 (d_language::name_of_this): New member function.
3859 * expprint.c (print_subexp_standard): Update call to name_of_this.
3860 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3861 * go-lang.c (go_language_data): Likewise.
3862 * language.c (unknown_language_data): Likewise.
3863 (unknown_language::name_of_this): New member function.
3864 (auto_language_data): Remove la_name_of_this initializer.
3865 (auto_language::name_of_this): New member function.
3866 * language.h (language_data): Delete la_name_of_this member
3867 variable.
3868 (language_defn::name_of_this): New member function.
3869 * m2-lang.c (m2_language_data): Remove la_name_of_this
3870 initializer.
3871 * objc-lang.c (objc_language_data): Likewise.
3872 (objc_language::name_of_this): New member function.
3873 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3874 initializer.
3875 * p-lang.c (pascal_language_data): Likewise.
3876 (pascal_language::name_of_this): New member function.
3877 * rust-lang.c (rust_language_data): Remove la_name_of_this
3878 initializer.
3879 * symtab.c (lookup_language_this): Update call to name_of_this.
3880 (lookup_symbol_aux): Likewise.
3881 * valops.c (value_of_this): Likewise.
3882
22e3f3ed
AB
38832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3884
3885 * ada-lang.c (ada_language_data): Remove
3886 la_struct_too_deep_ellipsis initializer.
3887 (ada_language::struct_too_deep_ellipsis): New member function.
3888 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3889 initializer.
3890 (cplus_language_data): Likewise.
3891 (asm_language_data): Likewise.
3892 (minimal_language_data): Likewise.
3893 * cp-valprint.c (cp_print_value): Update call to
3894 struct_too_deep_ellipsis.
3895 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3896 initializer.
3897 * f-lang.c (f_language_data): Likewise.
3898 (f_language::struct_too_deep_ellipsis): New member function.
3899 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3900 initializer.
3901 * language.c (unknown_language_data): Likewise.
3902 (auto_language_data): Likewise.
3903 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3904 member variable.
3905 (language_defn::struct_too_deep_ellipsis): New member function.
3906 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3907 initializer.Q
3908 * objc-lang.c (objc_language_data): Likewise.
3909 * opencl-lang.c (opencl_language_data): Likewise.
3910 * p-lang.c (pascal_language_data): Likewise.
3911 * rust-lang.c (rust_language_data): Likewise.
3912 * valprint.c (val_print_check_max_depth): Update call to
3913 struct_too_deep_ellipsis.
3914
ed29e1c7
FW
39152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3916
3917 * MAINTAINERS (Write After Approval): Add myself.
3918
12d8f940
TT
39192020-09-15 Tom Tromey <tom@tromey.com>
3920
3921 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3922 Remove.
3923
6b5a7bc7
TT
39242020-09-15 Tom Tromey <tom@tromey.com>
3925
3926 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3927 and TYPE_CODE_METHODPTR cases.
3928 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3929 (c_value_print_inner): Update.
3930 * valprint.c (generic_value_print_memberptr): New function, from
3931 c_value_print_memberptr.
3932 (generic_value_print): Use it. Call cplus_print_method_ptr.
3933
47f0e2ff
TT
39342020-09-15 Tom Tromey <tromey@adacore.com>
3935
3936 * python/python-internal.h (PyInt_FromLong): Remove define.
3937 * python/py-value.c (convert_value_from_python): Use
3938 gdb_py_object_from_longest.
3939 * python/py-type.c (typy_get_code): Use
3940 gdb_py_object_from_longest.
3941 * python/py-symtab.c (salpy_get_line): Use
3942 gdb_py_object_from_longest.
3943 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3944 gdb_py_object_from_longest.
3945 * python/py-record.c (recpy_gap_reason_code): Use
3946 gdb_py_object_from_longest.
3947 * python/py-record-btrace.c (recpy_bt_insn_size)
3948 (recpy_bt_func_level, btpy_list_count): Use
3949 gdb_py_object_from_longest.
3950 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3951 gdb_py_object_from_longest. Fix error handling.
3952 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3953 gdb_py_object_from_longest.
3954 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3955 gdb_py_object_from_longest.
3956 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3957 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3958 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3959
512116ce
TT
39602020-09-15 Tom Tromey <tromey@adacore.com>
3961
3962 * python/python.c (gdbpy_parameter_value): Use
3963 gdb_py_object_from_ulongest.
3964
4ab1029c
TT
39652020-09-15 Tom Tromey <tromey@adacore.com>
3966
3967 * python/py-infevents.c (create_register_changed_event_object):
3968 Use gdb_py_object_from_longest.
3969 * python/py-exitedevent.c (create_exited_event_object): Use
3970 gdb_py_object_from_longest.
3971
062534d4
TT
39722020-09-15 Tom Tromey <tromey@adacore.com>
3973
3974 * python/python.c (gdbpy_parameter_value): Use
3975 gdb_py_object_from_longest.
3976 * python/py-type.c (convert_field, typy_range): Use
3977 gdb_py_object_from_longest.
3978 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3979 gdb_py_object_from_longest.
3980 * python/py-lazy-string.c (stpy_get_length): Use
3981 gdb_py_object_from_longest.
3982 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3983 gdb_py_object_from_longest.
3984 * python/py-infevents.c (create_memory_changed_event_object): Use
3985 gdb_py_object_from_longest.
3986 * python/py-inferior.c (infpy_get_num): Use
3987 gdb_py_object_from_longest.
3988 (infpy_get_pid): Likewise.
3989
d1cab987
TT
39902020-09-15 Tom Tromey <tromey@adacore.com>
3991
3992 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3993 defines.
3994 * python/py-value.c (valpy_long): Use
3995 gdb_py_object_from_ulongest.
3996 * python/py-symtab.c (salpy_get_pc): Use
3997 gdb_py_object_from_ulongest.
3998 (salpy_get_last): Likewise.
3999 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4000 gdb_py_object_from_ulongest.
4001 * python/py-lazy-string.c (stpy_get_address): Use
4002 gdb_py_object_from_ulongest.
4003 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4004 * python/py-arch.c (archpy_disassemble): Use
4005 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4006 error handling.
4007
4bde49dc
TT
40082020-09-15 Tom Tromey <tromey@adacore.com>
4009
4010 * python/python-internal.h (gdb_py_long_from_longest): Remove
4011 defines.
4012 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4013 * python/py-type.c (convert_field, typy_get_sizeof): Use
4014 gdb_py_object_from_longest.
4015 * python/py-record-btrace.c (btpy_list_index): Use
4016 gdb_py_object_from_longest.
4017
37431074
TT
40182020-09-15 Tom Tromey <tromey@adacore.com>
4019
4020 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4021 * python/py-record.c (recpy_element_number): Use
4022 gdb_py_object_from_longest.
4023 (recpy_gap_number): Likewise.
4024
cbe25684
TT
40252020-09-15 Tom Tromey <tromey@adacore.com>
4026
4027 * top.c (ui::ui): Update.
4028 (highest_ui_num): Remove.
4029 * top.h (struct ui) <num>: Remove.
4030
db92ac45
TT
40312020-09-15 Tom Tromey <tromey@adacore.com>
4032
4033 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4034 * ui-style.c (ansi_regex_text): Now array.
4035 * rust-exp.y (number_regex_text): Now array.
4036 * linespec.c (linespec_quote_characters): Now array.
4037 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4038 Now arrays.
4039
d2b31b67
SM
40402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * debuginfod-support.c (debuginfod_client_deleter): New.
4043 (debuginfod_client_up): New.
4044 (debuginfod_init): Return debuginfod_client_up.
4045 (debuginfod_source_query): Adjust.
4046 (debuginfod_debuginfo_query): Adjust.
4047
3246bd8e
SM
40482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * debuginfod-support.c (debuginfod_source_query): Use
4051 make_unique_xstrdup.
4052
10242f36
SM
40532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4056 with `type::instance_flags`.
4057
e1044e6a
MM
40582020-09-14 Michael Mullin <masmullin@gmail.com>
4059
4060 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4061 Remove baton parameter.
4062
04902b09
PA
40632020-09-14 Pedro Alves <pedro@palves.net>
4064
4065 * Makefile.in (SELFTESTS_SRCS): Add
4066 unittests/enum-flags-selftests.c.
4067 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4068 btrace_function_flags instead of enum btrace_function_flag.
4069 * compile/compile-c-types.c (convert_qualified): Use
4070 enum_flags::raw.
4071 * compile/compile-cplus-symbols.c (convert_one_symbol)
4072 (convert_symbol_bmsym):
4073 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4074 (compile_cplus_convert_struct_or_union_methods)
4075 (compile_cplus_instance::convert_qualified_base):
4076 * go-exp.y (parse_string_or_char): Add cast to int.
4077 * unittests/enum-flags-selftests.c: New file.
4078 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4079 type to btrace_thread_flags from btrace_thread_flag.
4080 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4081 local's type to btrace_thread_flags from btrace_thread_flag. Add
4082 cast in DEBUG call.
4083
69896a2c
PA
40842020-09-14 Pedro Alves <pedro@palves.net>
4085
4086 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4087 * gdbtypes.c (address_space_name_to_int): Rename to ...
4088 (address_space_name_to_type_instance_flags): ... this.
4089 (address_space_int_to_name): Rename to ...
4090 (address_space_type_instance_flags_to_name): ... this.
4091 * gdbtypes.h (address_space_name_to_int): Rename to ...
4092 (address_space_name_to_type_instance_flags): ... this.
4093 (address_space_int_to_name): Rename to ...
4094 (address_space_type_instance_flags_to_name): ... this.
4095 * type-stack.c (type_stack::insert): Adjust to rename.
4096 * type-stack.h (type_stack::insert): Likewise.
4097
314ad88d
PA
40982020-09-14 Pedro Alves <pedro@palves.net>
4099 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * avr-tdep.c (avr_address_class_type_flags): Return
4102 type_instance_flags.
4103 (avr_address_class_type_flags_to_name): Take a
4104 type_instance_flags.
4105 (avr_address_class_name_to_type_flags): Return bool and take a
4106 type_instance_flags.
4107 * d-lang.c (build_d_types): Use type::set_instance_flags.
4108 * ft32-tdep.c (ft32_address_class_type_flags): Return
4109 type_instance_flags.
4110 (ft32_address_class_type_flags_to_name): Take a
4111 type_instance_flags.
4112 (ft32_address_class_name_to_type_flags): Return bool and take a
4113 type_instance_flags.
4114 (ft32_gdbarch_init): Use type::set_instance_flags.
4115 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4116 * gdbarch.h, gdbarch.c: Regenerate.
4117 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4118 (address_class_name_to_type_flags): Use type_instance_flags and
4119 bool.
4120 * gdbtypes.c (address_space_name_to_int)
4121 (address_space_int_to_name, make_qualified_type): Use
4122 type_instance_flags.
4123 (make_qualified_type): Use type_instance_flags and
4124 type::set_instance_flags.
4125 (make_type_with_address_space, make_cv_type, make_vector_type)
4126 (check_typedef): Use type_instance_flags.
4127 (recursive_dump_type): Cast type_instance_flags to unsigned for
4128 printing.
4129 (copy_type_recursive): Use type::set_instance_flags.
4130 (gdbtypes_post_init): Use type::set_instance_flags.
4131 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4132 <m_instance_flags>: ... this.
4133 <instance_flags, set_instance_flags>: New methods.
4134 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4135 (SET_TYPE_INSTANCE_FLAGS): New.
4136 (address_space_name_to_int, address_space_int_to_name)
4137 (make_type_with_address_space): Pass flags using
4138 type_instance_flags instead of int.
4139 * stabsread.c (cleanup_undefined_types_noname): Use
4140 type::set_instance_flags.
4141 * s390-tdep.c (s390_address_class_type_flags): Return
4142 type_instance_flags.
4143 (s390_address_class_type_flags_to_name): Take a
4144 type_instance_flags.
4145 (s390_address_class_name_to_type_flags): Return bool and take a
4146 type_instance_flags.
4147 * type-stack.c (type_stack::follow_types): Use
4148 type_instance_flags.
4149 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4150
27087b7f
TT
41512020-09-14 Tom Tromey <tromey@adacore.com>
4152
4153 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4154 * x86-tdep.c (x86_is_thunk_register_name)
4155 (x86_in_indirect_branch_thunk): Update.
4156 * sparc64-tdep.c (sparc64_fpu_register_names)
4157 (sparc64_cp0_register_names, sparc64_register_names)
4158 (sparc64_pseudo_register_names): Now const.
4159 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4160 cp0_registers_num>: Now const.
4161 * sparc-tdep.c (sparc_core_register_names)
4162 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4163 (sparc32_pseudo_register_names): Now const.
4164 (validate_tdesc_registers): Update.
4165 * rust-lang.c (rust_extensions): Now const.
4166 * p-lang.c (p_extensions): Now const.
4167 * objc-lang.c (objc_extensions): Now const.
4168 * nto-tdep.c (nto_thread_state_str): Now const.
4169 * moxie-tdep.c (moxie_register_names): Now const.
4170 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4171 Now const.
4172 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4173 (mips_linux_reg_names): Now const.
4174 (mips_gdbarch_init): Update.
4175 * microblaze-tdep.c (microblaze_register_names): Now const.
4176 * m68k-tdep.c (m68k_register_names): Now const.
4177 * m32r-tdep.c (m32r_register_names): Now const.
4178 * ia64-tdep.c (ia64_register_names): Now const.
4179 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4180 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4181 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4182 ymm_avx512_register_names, pkeys_register_names>: Now const.
4183 * i386-tdep.c (i386_register_names, i386_zmm_names)
4184 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4185 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4186 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4187 * f-lang.c (f_extensions): Now const.
4188 * d-lang.c (d_extensions): Now const.
4189 * csky-tdep.c (csky_register_names): Now const.
4190 * charset.c (default_charset_names, charset_enum): Now const.
4191 (_initialize_charset): Update.
4192 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4193 const.
4194 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4195 (bsd_uthread_solib_loaded): Update.
4196 (bsd_uthread_state): Now const.
4197 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4198 (amd64_ymm_avx512_names, amd64_ymmh_names)
4199 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4200 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4201 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4202 (amd64_dword_names): Now const.
4203 * agent.c (can_use_agent_enum): Now const.
4204 * ada-tasks.c (task_states, long_task_states): Now const.
4205 * ada-lang.c (known_runtime_file_name_patterns)
4206 (known_auxiliary_function_name_patterns, attribute_names)
4207 (standard_exc, ada_extensions): Now const.
4208
89806626
SM
42092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4210
4211 * bcache.h (struct bcache) <bcache>: Remove constructor.
4212 <m_hash_function, m_compare_function>: Remove.
4213 <~bcache>: Make virtual.
4214 <compare>: Remove static method, introduce virtual method.
4215 <default_hash>: Remove.
4216 <hash>: New virtual method.
4217 * bcache.c (bcache::expand_hash_table): Update.
4218 (bcache::insert): Update.
4219 (bcache::hash): New.
4220 (bcache::compare): Update comment and parameter names.
4221 * gdbtypes.c (types_deeply_equal): Update.
4222 * psymtab.h (struct psymbol_bcache): New struct.
4223 (class psymtab_storage) <psymtab_storage>: Make default.
4224 <psymbol_cache>: Change type to psymbol_bcache.
4225 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4226 (psymbol_hash): Change to...
4227 (psymbol_bcache::hash): ... this.
4228 (psymbol_compare): Change to...
4229 (psymbol_bcache::compare): ... this.
4230
677c92fe
SM
42312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4232
4233 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4234 checking for initial lwp.
4235
3eba3a01
TT
42362020-09-14 Tom Tromey <tromey@adacore.com>
4237
4238 * m68k-tdep.c (m68k_extract_return_value): Use
4239 pointer_result_regnum.
4240 (m68k_store_return_value): Likewise.
4241 (m68k_reg_struct_return_p): Handle vectors and arrays.
4242 (m68k_return_value): Handle arrays.
4243 (m68k_svr4_return_value): Fix single-element aggregate handling.
4244 Handle long double. Adjust for embedded ABI.
4245 (m68k_svr4_init_abi): Set pointer_result_regnum.
4246 (m68k_embedded_init_abi): New function.
4247 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4248 (m68k_osabi_sniffer): New function.
4249 (_initialize_m68k_tdep): Register osabi sniffer.
4250 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4251 member.
4252
33f4dd48
SM
42532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4256 with gdb::unique_xmalloc_ptr<char>.
4257
8400a90d
SM
42582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 * xml-support.h (xml_fetch_another): Change type to be a
4261 function_view.
4262 (xml_process_xincludes): Remove baton parameter.
4263 (xml_fetch_content_from_file): Change baton parameter to
4264 dirname.
4265 * xml-support.c (struct xinclude_parsing_data)
4266 <xinclude_parsing_data>: Remove baton parameter.
4267 <fetcher_baton>: Remove.
4268 (xinclude_start_include): Adjust.
4269 (xml_process_xincludes): Adjust.
4270 (xml_fetch_content_from_file): Replace baton parameter with
4271 dirname.
4272 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4273 (xml_init_syscalls_info): Use a lambda.
4274 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4275 (file_read_description_xml): Use a lambda.
4276 (fetch_available_features_from_target): Change baton parameter
4277 to target_ops.
4278 (target_read_description_xml): Use a lambda.
4279 (target_fetch_description_xml): Use a lambda.
4280 (string_read_description_xml): Update.
4281
04f5bab2
SM
42822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4285 uses with type::endianity_is_not_default.
4286
db558e34
SM
42872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * gdbtypes.h (struct type) <endianity_is_not_default,
4290 set_endianity_is_not_default>: New methods.
4291 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4292 type::endianity_is_not_default, change all write call sites to
4293 use type::set_endianity_is_not_default.
4294
22c4c60c
SM
42952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4298 uses with type::is_fixed_instance.
4299
9cdd0d12
SM
43002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * gdbtypes.h (struct type) <is_fixed_instance,
4303 set_is_fixed_instance>: New methods.
4304 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4305 write call sites to use type::set_is_fixed_instance.
4306
0becda7a
SM
43072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4310 uses with type::is_gnu_ifunc.
4311
03cc7249
SM
43122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4315 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4316 use type::set_is_gnu_ifunc.
4317
3f46044c
SM
43182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4321 uses with type::stub_is_supported.
4322
9baccff6
SM
43232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4326 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4327 use type::set_stub_is_supported.
4328
bd63c870
SM
43292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4332 uses with type::is_vector.
4333
2062087b
SM
43342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4337 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4338 use type::set_is_vector.
4339
a409645d
SM
43402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4343 uses with type::has_varargs.
4344
1d6286ed
SM
43452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4348 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4349 use type::set_has_varargs.
4350
7f9f399b
SM
43512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4354 uses with type::is_prototyped.
4355
27e69b7a
SM
43562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4359 New methods.
4360 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4361 call sites to use type::set_is_prototyped.
4362
d2183968
SM
43632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4366 uses with type::target_is_stub.
4367
8f53807e
SM
43682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4371 New methods.
4372 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4373 sites to use type::set_target_is_stub.
4374
e46d3488
SM
43752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * gdbtypes.h (TYPE_STUB): Remove, replace all
4378 uses with type::is_stub.
4379
b4b73759
SM
43802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4383 (TYPE_STUB): Use type::is_stub, change all write call sites to
4384 use type::set_is_stub.
4385
20ce4123
SM
43862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4389 type::has_no_signedness.
4390
15152a54
SM
43912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * gdbtypes.h (struct type) <has_no_signedness,
4394 set_has_no_signedness>: New methods.
4395 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4396 call sites to use type::set_has_no_signedness.
4397
c6d940a9
SM
43982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4401 type::is_unsigned.
4402
653223d3
SM
44032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4406 methods.
4407 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4408 sites to use type::set_is_unsigned.
4409
55ea94da 44102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4411 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4412
e851246a
SM
4413 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4414 pointer and stack frame offset when unwinding.
55ea94da 4415
6791b117
PA
44162020-09-13 Pedro Alves <pedro@palves.net>
4417
4418 * NEWS: Document "-break-insert --qualified".
4419 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4420
77f2120b
PA
44212020-09-13 Pedro Alves <pedro@palves.net>
4422
4423 * linespec.c (classify_mtype, compare_msyms): Delete.
4424 (search_minsyms_for_name): Remove classification logic. Instead
4425 filter out trampoline symbols if we also found an external
4426 function of the same name.
4427
ed6a896c
JB
44282020-09-13 Joel Brobecker <brobecker@adacore.com>
4429
4430 * NEWS: Create a new section for the next release branch.
4431 Rename the section of the current branch, now that it has
4432 been cut.
4433
32aea73e
JB
44342020-09-13 Joel Brobecker <brobecker@adacore.com>
4435
4436 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4437 * version.in: Bump version to 11.0.50.DATE-git.
4438
8087c3fa
JB
44392020-09-12 Joel Brobecker <brobecker@adacore.com>
4440
4441 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4442
2a67f09d
FW
44432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4444 Felix Willgerodt <Felix.Willgerodt@intel.com>
4445
4446 * gdbarch.sh: Added bfloat16 type.
4447 * gdbarch.c: Regenerated.
4448 * gdbarch.h: Regenerated.
4449 * gdbtypes.c (floatformats_bfloat16): New struct.
4450 (gdbtypes_post_init): Add builtin_bfloat16.
4451 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4452 (floatformats_bfloat16): New struct.
4453 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4454 (i386_ymm_type): Add field "v16_bfloat16"
4455 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4456 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4457 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4458 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4459 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4460 * features/i386/64bit-avx512.c: Regenerated.
4461 * features/i386/64bit-sse.xml: Add bfloat16 type.
4462 * features/i386/64bit-sse.c: Regenerated.
4463
1347d111
FW
44642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4465
4466 * i386-tdep.c (i386_zmm_type): Fix field names.
4467 (i386_ymm_type): Fix field names.
4468
7a4e8e7d
TBA
44692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4470
4471 * breakpoint.c: Fix typo in the help message of the
4472 "set breakpoint condition-evaluation" command.
4473
cf4ac4be
KR
44742020-09-10 Kamil Rytarowski <n54@gmx.com>
4475
4476 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4477 * (nbsd_nat_target::pid_to_exec_file)
4478 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4479 (nbsd_nat_target::post_startup_inferior)
4480 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4481 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4482 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4483 * (nbsd_thread_lister): Remove.
4484
f404573e
KR
44852020-09-10 Kamil Rytarowski <n54@gmx.com>
4486
4487 * fork-inferior.c (startup_inferior): Avoid double free.
4488
1ccb2c17
KR
44892020-09-10 Kamil Rytarowski <n54@gmx.com>
4490
4491 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4492 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4493
feedfcc7
KR
44942020-09-10 Kamil Rytarowski <n54@gmx.com>
4495
4496 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4497 * netbsd-nat.c: Include <sys/ptrace.h>.
4498 * (netbsd_nat::enable_proc_events): Add.
4499
c489f8c6
KR
45002020-09-10 Kamil Rytarowski <n54@gmx.com>
4501
4502 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4503 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4504 (netbsd_nat::for_each_thread): Add.
4505 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4506 "gdbsupport/common-debug.h".
4507 * (netbsd_nat::netbsd_thread_lister)
4508 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4509 (netbsd_nat::for_each_thread): Add.
4510
330662f6
KR
45112020-09-10 Kamil Rytarowski <n54@gmx.com>
4512
4513 * netbsd-nat.h: Include <unistd.h>.
4514 * (netbsd_nat::pid_to_exec_file): Add.
4515 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4516 * (netbsd_nat::pid_to_exec_file) Add.
4517
70b67307
KR
45182020-09-10 Kamil Rytarowski <n54@gmx.com>
4519
4520 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4521
99cf6da6
KR
45222020-09-10 Kamil Rytarowski <n54@gmx.com>
4523
4524 * netbsd-nat.h: New file.
4525 * netbsd-nat.c: Likewise.
4526
1b788fb6
TT
45272020-09-09 Tom Tromey <tromey@adacore.com>
4528
4529 * ada-lang.c (remove_extra_symbols): Do not increment when
4530 removing an element
4531
03b0a45f
TT
45322020-09-08 Tom Tromey <tromey@adacore.com>
4533
4534 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4535
3cae4447
TT
45362020-09-08 Tom Tromey <tromey@adacore.com>
4537
4538 PR win32/25302:
4539 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4540 (gdb_bfd_init_data): New function.
4541 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4542
7f08fd51
TBA
45432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4544
4545 * infrun.c (fetch_inferior_event): Use
4546 `switch_to_target_no_thread` to switch the target.
4547
3e6ff933
TT
45482020-09-06 Tom Tromey <tom@tromey.com>
4549
4550 * symfile.h (dwarf2_free_objfile): Don't declare.
4551
e56798df
AKS
45522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4553
4554 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4555 to match 16 byte real/complex type generated by Flang compiler.
4556
8f5c6526
TV
45572020-09-03 Tom de Vries <tdevries@suse.de>
4558
4559 PR breakpoint/26546
4560 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4561 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4562
c5065df0
SM
45632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * maint.c (index_digits): New function.
4566 (struct maint_print_section_data): Remove.
4567 (print_bfd_section_info): Remove print_data parameter, add arg
4568 and index_digits.
4569 (print_objfile_section_info): Likewise.
4570 (print_bfd_section_info_maybe_relocated): Likewise (plus
4571 objfile).
4572 (maintenance_info_sections): Adjust calls.
4573
02c6f3f1
TT
45742020-09-02 Tom Tromey <tromey@adacore.com>
4575
4576 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4577 for null pointers.
4578 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4579
ef5e5b0b
SM
45802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4581
4582 * bcache.h (struct bcache) <insert>: Change type of `added` to
4583 pointer to bool.
4584 * bcache.c (bcache::insert): Likewise.
4585 * gdbtypes.c (check_types_worklist): Adjust.
4586 * psymtab.c (add_psymbol_to_bcache): Adjust.
4587
973695d6
KB
45882020-08-31 Kevin Buettner <kevinb@redhat.com>
4589
4590 * corelow.c (unordered_set): Include.
4591 (class core_target): Add field 'm_core_unavailable_mappings'.
4592 (core_target::build_file_mappings): Print only one warning
4593 per inaccessible file. Add unavailable/broken mappings
4594 to m_core_unavailable_mappings.
4595 (core_target::xfer_partial): Call...
4596 (core_target::xfer_memory_via_mappings): New method.
4597
264fc0e2
SM
45982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4599
4600 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4601 type to bool.
4602
2de01bdb
SM
46032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * dwarf2/read.c (struct field_info): Fix indentation.
4606
f3bd50f1
SM
46072020-08-31 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4610 ordering in comment.
4611 * frame.c (frame_id_eq): Fix indentation.
4612
22b9b4b0
SL
46132020-08-31 Scott Linder <scott@scottlinder.com>
4614 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4617 inline frame ids in outer frame.
4618
84154d16
SM
46192020-08-31 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4622 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4623 (outer_frame_id): Use FID_STACK_OUTER instead of
4624 FID_STACK_INVALID.
4625 (frame_id_p): Don't check for outer_frame_id.
4626
8efaf6b3
SM
46272020-08-31 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4630 regnum/frame in value. Call allocate_value_lazy.
4631 * frame.c (frame_unwind_register_value): Use
4632 val_print_not_saved.
4633
fe1fe7ea
SM
46342020-08-31 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4637
f7c7700d
PA
46382020-08-29 Pedro Alves <pedro@palves.net>
4639
4640 * progspace.c (print_program_space): Use all_inferiors. Switch to
4641 the inferior before calling target_pid_to_str.
4642
e0814aae
TT
46432020-08-28 Tom Tromey <tom@tromey.com>
4644
4645 * xcoffread.c (xcoff_end_psymtab): Update comment.
4646 * dbxread.c (dbx_end_psymtab): Update comment.
4647
626d2320
TV
46482020-08-28 Tom de Vries <tdevries@suse.de>
4649
4650 PR breakpoint/26544
4651 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4652 event_location.
4653 (create_breakpoint): Same.
4654 (base_breakpoint_decode_location): Same.
4655 (bkpt_create_sals_from_location): Same.
4656 (bkpt_decode_location): Same.
4657 (bkpt_probe_create_sals_from_location): Same.
4658 (bkpt_probe_decode_location): Same.
4659 (tracepoint_create_sals_from_location): Same.
4660 (tracepoint_decode_location): Same.
4661 (tracepoint_probe_decode_location): Same.
4662 (strace_marker_create_sals_from_location): Same.
4663 (strace_marker_decode_location): Same.
4664 (create_sals_from_location_default): Same.
4665 (decode_location_default): Same.
4666 * breakpoint.h (struct breakpoint_ops): Same.
4667 (create_breakpoint): Same.
4668 * linespec.h (decode_line_full): Same.
4669 * linespec.c (decode_line_full): Same. Throw error if
4670 result.size () == 0.
4671
df631783
PA
46722020-08-27 Pedro Alves <pedro@palves.net>
4673
4674 PR gdb/26524
4675 * breakpoint.c (until_break_fsm) <location_breakpoint,
4676 caller_breakpoint>: Delete fields.
4677 <breakpoints>: New field.
4678 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4679 two individual breakpoints.
4680 (until_break_fsm::should_stop): Loop over breakpoints in the
4681 breakpoint vector.
4682 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4683 vector.
4684 (until_break_command): Handle location expanding into multiple
4685 sals.
4686
b2b38aa4
PA
46872020-08-27 Pedro Alves <pedro@palves.net>
4688
4689 PR gdb/26523
4690 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4691 bp_until breakpoints user-specified locations. Update intro
4692 comment.
4693
b886559f
SM
46942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4695
4696 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4697 gdb_bfd_sections): New.
4698 * maint.c (print_bfd_section_info): Change param type to
4699 maint_print_section_data.
4700 (print_objfile_section_info): Likewise.
4701 (print_bfd_section_info_maybe_relocated): Likewise.
4702 (maintenance_info_sections): Use gdb_bfd_sections.
4703
4c6e63bf
SV
47042020-08-25 Shahab Vahedi <shahab@synopsys.com>
4705
4706 * MAINTAINERS: Add ARC target and maintainer.
4707
8d7f0635
AK
47082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4709
4710 * configure.tgt: ARC support for GNU/Linux.
4711 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4712 * arc-linux-tdep.c: New file.
4713 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4714 * arc-tdep.c (arc_write_pc): Use it.
4715
fdd8731b
SV
47162020-08-25 Shahab Vahedi <shahab@synopsys.com>
4717
4718 * arc-tdep.c (arc_check_for_hardware_loop): New.
4719 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4720
22459524
SV
47212020-08-25 Shahab Vahedi <shahab@synopsys.com>
4722
4723 * arc-tdep.h: Include "gdbarch.h".
4724
995d3a19
SV
47252020-08-25 Shahab Vahedi <shahab@synopsys.com>
4726
4727 * arch/arc.h
4728 (arc_gdbarch_features): New class to stir the selection of target XML.
4729 (arc_create_target_description): Use FEATURES to choose XML target.
4730 (arc_lookup_target_description): Use arc_create_target_description
4731 to create _new_ target descriptions or return the already created
4732 ones if the FEATURES is the same.
4733 * arch/arc.c: Implementation of prototypes described above.
4734 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4735 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4736 * arc-tdep.c (*_feature_name): Make feature names consistent.
4737 (arc_register_feature): A new struct to hold information about
4738 registers of a particular target/feature.
4739 (arc_check_tdesc_feature): Check if XML provides registers in
4740 compliance with ARC_REGISTER_FEATURE structs.
4741 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4742 (determine_*_reg_feature_set): Which feature name to look for.
4743 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4744 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4745 to expected ISA enums to be used in arc_gdbarch_features structs.
4746 * features/Makefile (FEATURE_XMLFILES): Add new files.
4747 * gdb/features/arc/v1-aux.c: New file.
4748 * gdb/features/arc/v1-aux.xml: Likewise.
4749 * gdb/features/arc/v1-core.c: Likewise.
4750 * gdb/features/arc/v1-core.xml: Likewise.
4751 * gdb/features/arc/v2-aux.c: Likewise.
4752 * gdb/features/arc/v2-aux.xml: Likewise.
4753 * gdb/features/arc/v2-core.c: Likewise.
4754 * gdb/features/arc/v2-core.xml: Likewise.
4755 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4756
3945d2d7
GM
47572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4758 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 PR m2/26372
fc5d6901 4761 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4762 an assert. Remove single element array indexing pattern as the
4763 MULTI_SUBSCRIPT support will handle this case too.
4764
2677f2d3
SM
47652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * value.h (valprint_check_validity): Move declaration from
4768 here...
4769 * valprint.h (valprint_check_validity): ... to here.
4770
c426fddb
SM
47712020-08-24 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * debug.h: New file.
4774 * debug.c (debug_prefixed_vprintf): New function.
4775 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4776 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4777
1eb8556f
SM
47782020-08-24 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * infrun.h (infrun_debug_printf_1): New function declaration.
4781 (infrun_debug_printf): New macro.
4782 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4783 throughout.
4784 (infrun_debug_printf): New function.
4785 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4786 (handle_jit_event): Likewise.
4787
b8fff44e
MW
47882020-08-21 Mark Wielaard <mark@klomp.org>
4789
4790 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4791
d19c3068
SM
47922020-08-22 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * frame.c (enum class frame_id_status): New.
4795 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4796 (fprintf_frame): Update.
4797 (compute_frame_id): Set frame id status to "computing" on entry.
4798 Set it back to "not_computed" on failure and to "computed" on
4799 success.
4800 (get_frame_id): Assert the frame id is not being computed.
4801 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4802 (create_new_frame): Likewise.
4803 (frame_cleanup_after_sniffer): Update assert.
4804
b70e516e
SM
48052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4806
4807 * regcache.c (pid_ptid_regcache_map): New type.
4808 (target_ptid_regcache_map): Remove.
4809 (target_pid_ptid_regcache_map): New type.
4810 (regcaches): Change type to target_pid_ptid_regcache_map.
4811 (get_thread_arch_aspace_regcache): Update.
4812 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4813 case.
4814 (regcaches_size): Update.
4815 (regcache_count): Update.
4816 (registers_changed_ptid_target_pid_test): New.
4817 (_initialize_regcache): Register new test.
4818
cdd9148a
SM
48192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4820
4821 * regcache.c (regcache_count): New.
4822 (struct regcache_test_data): New.
4823 (regcache_test_data_up): New.
4824 (populate_regcaches_for_test): New.
4825 (regcaches_test): Remove.
4826 (get_thread_arch_aspace_regcache_test): New.
4827 (registers_changed_ptid_all_test): New.
4828 (registers_changed_ptid_target_test): New.
4829 (registers_changed_ptid_target_ptid_test): New.
4830 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4831 (_initialize_regcache): Register new tests.
4832
dd125343
SM
48332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4834
4835 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4836 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4837 gdbarch and aspace parameter. Use current inferior's aspace.
4838 Validate regcache's arch value.
4839 (regcaches_test): Update.
4840
3ee93972
SM
48412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * regcache.c (regcaches_test): Call registers_changed.
4844
33bf4c5c
TBA
48452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4846
4847 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4848
c2fd7fae
AKS
48492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4850
4851 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4852 to find the end of prologue for flang compiled binaries.
4853 * arm-tdep.c (arm_skip_prologue): Likewise.
4854 * i386-tdep.c (i386_skip_prologue): Likewise.
4855 * producer.c (producer_is_llvm): New function.
4856 (producer_parsing_tests): Added new tests for clang/flang.
4857 * producer.h (producer_is_llvm): New declaration.
4858
9327494e
SM
48592020-08-18 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * linux-nat.c (linux_nat_debug_printf): New function.
4862 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4863
d138725a
AM
48642020-08-18 Aaron Merey <amerey@redhat.com>
4865
4866 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4867 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4868 (CLIBS): Add DEBUGINFOD_LIBS.
4869
f9b11e6b
ST
48702020-08-17 Sergei Trofimovich <siarheit@google.com>
4871
4872 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4873 'gdbarch_num_regs'.
4874
3ae7ab99
TT
48752020-08-17 Tom Tromey <tromey@adacore.com>
4876
4877 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4878 ada_get_decoded_value returns NULL.
4879
b017825f
TT
48802020-08-17 Tom Tromey <tromey@adacore.com>
4881
4882 * python/py-inferior.c (infpy_search_memory): Use
4883 gdb_py_object_from_ulongest.
4884 * python/py-infevents.c (create_inferior_call_event_object)
4885 (create_memory_changed_event_object): Use
4886 gdb_py_object_from_ulongest.
4887 * python/py-linetable.c (ltpy_entry_get_pc): Use
4888 gdb_py_object_from_ulongest.
4889
7635cf79
SM
48902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4891
4892 * loc.c (class symbol_needs_eval_context): Fix indentation.
4893
f54be24b
SM
48942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4895
4896 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4897 bool.
4898
53d5a2a5
TV
48992020-08-17 Tom de Vries <tdevries@suse.de>
4900
4901 PR gdb/26393
4902 * gdbtypes.c (dump_dynamic_prop): New function.
4903 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4904
547ce8f0
TV
49052020-08-15 Tom de Vries <tdevries@suse.de>
4906
4907 PR backtrace/26390
4908 * stack.c (print_frame_args): Temporarily set the selected
4909 frame to FRAME while printing the frame's arguments.
4910
6ea815e7
PFC
49112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4912
4913 PR breakpoints/26385
4914 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4915 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4916
6e562fa3
PFC
49172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4918
4919 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4920 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4921 and >= to check return value instead of == -1 and != -1.
4922
d369b608
SM
49232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4924
4925 * utils.h (class gdb_argv) <as_array_view>: New method.
4926 * utils.c (gdb_argv_as_array_view_test): New.
4927 (_initialize_utils): Register selftest.
4928 * maint.c (maintenance_selftest): Use the new method.
4929
b31488a3
KR
49302020-08-13 Kamil Rytarowski <n54@gmx.com>
4931
4932 * target.h (supports_dumpcore, dumpcore): New
4933 function declarations.
4934 * target.c (supports_dumpcore, dumpcore): New
4935 functions.
4936 * target-delegates.c: Rebuild.
4937 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4938 and target_dumpcore ().
4939
002a3166
AM
49402020-08-13 Aaron Merey <amerey@redhat.com>
4941
4942 * debuginfod-support.c: Replace global variables with user_data.
4943
ece5bc8a
SM
49442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4945
4946 * maint.c (maintenance_selftest): Split args and pass array_view
4947 to run_tests.
4948
6d8a0a5e
LM
49492020-08-12 Luis Machado <luis.machado@linaro.org>
4950
4951 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4952 type's length.
4953 Use %s and pulongest to print the length.
4954
7cf663a9
PA
49552020-08-12 Pedro Alves <palves@redhat.com>
4956
4957 * NEWS: Move "Multi-target debugging support" item to the
4958 "Changes since GDB 9" section.
4959
27c7b875
PA
49602020-08-12 Pedro Alves <palves@redhat.com>
4961
4962 PR gdb/26336
4963 * progspace.c (program_space::remove_objfile): Invalidate the
4964 frame cache.
4965
1796a2a1
TV
49662020-08-11 Tom de Vries <tdevries@suse.de>
4967
4968 * MAINTAINERS: Mark ms1 as deleted.
4969
f8e3fe0d
LM
49702020-08-10 Luis Machado <luis.machado@linaro.org>
4971
4972 PR gdb/26310
4973
4974 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4975 act accordingly.
4976 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4977 movz/str/stur/stp skipping behavior.
4978
cc308722
LM
49792020-08-10 Luis Machado <luis.machado@linaro.org>
4980
4981 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4982 struct user_sve_header instead of struct sve_context.
4983
041d9819
SM
49842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * read.h (dwarf2_fetch_die_loc_sect_off,
4987 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4988 `void *` parameter with function_view.
4989 * read.c (dwarf2_fetch_die_loc_sect_off,
4990 dwarf2_fetch_die_loc_cu_off): Likewise.
4991 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4992 (per_cu_dwarf_call): Adjust.
4993 (get_frame_address_in_block_wrapper): Remove.
4994 (indirect_synthetic_pointer): Adjust.
4995 (get_ax_pc): Remove.
4996 (dwarf2_compile_expr_to_ax): Adjust.
4997
38f8aa06
TV
49982020-08-08 Tom de Vries <tdevries@suse.de>
4999
5000 PR build/26344
5001 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5002 constructor.
5003 * regcache.c (get_thread_arch_aspace_regcache): Same.
5004
a52b3ae2
TT
50052020-08-07 Tom Tromey <tromey@adacore.com>
5006
5007 * ravenscar-thread.c
5008 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5009 New method.
5010 (ravenscar_thread_target::wait): Check
5011 runtime_initialized.
5012 (ravenscar_thread_target::prepare_to_store)
5013 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5014 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5015 (ravenscar_thread_target::stopped_by_watchpoint)
5016 (ravenscar_thread_target::stopped_data_address)
5017 (ravenscar_thread_target::core_of_thread): Use
5018 scoped_restore_current_thread and
5019 set_base_thread_from_ravenscar_task.
5020
0e29517d
TT
50212020-08-07 Tom Tromey <tromey@adacore.com>
5022
5023 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5024
592f9bd7
TT
50252020-08-07 Tom Tromey <tromey@adacore.com>
5026
5027 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5028 update_inferior_ptid before update_thread_list.
5029 (temporarily_change_regcache_ptid): New class.
5030 (ravenscar_thread_target::fetch_registers)
5031 (ravenscar_thread_target::store_registers)
5032 (ravenscar_thread_target::prepare_to_store): Use base thread when
5033 forwarding operation.
5034
39e2018a
TT
50352020-08-07 Tom Tromey <tromey@adacore.com>
5036
5037 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5038 "is_pid" case.
5039
2080266b
TT
50402020-08-07 Tom Tromey <tromey@adacore.com>
5041
5042 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5043 New methods.
5044 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5045 first.
5046 (ravenscar_thread_target::add_thread): Rename from
5047 ravenscar_add_thread.
5048 (ravenscar_thread_target::update_thread_list): Use a lambda.
5049 (ravenscar_thread_target::xfer_partial): New method.
5050
78c02f21
TT
50512020-08-07 Tom Tromey <tromey@adacore.com>
5052
5053 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5054 gdb::function_view.
5055 (iterate_over_live_ada_tasks): Change type of argument.
5056 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5057 of argument.
5058
d5d833af
TT
50592020-08-07 Tom Tromey <tromey@adacore.com>
5060
5061 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5062 Remove.
5063 (ravenscar_thread_target::extra_thread_info): Remove.
5064 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5065 defer to target beneath for non-Ravenscar threads.
5066
a8ac85bb
TT
50672020-08-07 Tom Tromey <tromey@adacore.com>
5068
5069 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5070 get_base_thread_from_ravenscar_task>: Now methods.
5071 <m_cpu_map>: New member.
5072 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5073 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5074 (ravenscar_thread_target::task_is_currently_active): Update.
5075 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5076 Now a method.
5077 (ravenscar_thread_target::add_active_thread): Put initial thread
5078 into the m_cpu_map.
5079
550ab58d
TT
50802020-08-07 Tom Tromey <tromey@adacore.com>
5081
5082 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5083 event_ptid.
5084
e9546579
TT
50852020-08-07 Tom Tromey <tromey@adacore.com>
5086
5087 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5088 runtime_initialized.
5089
3d4470e5
TT
50902020-08-07 Tom Tromey <tromey@adacore.com>
5091
5092 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5093 add_active_thread.
5094 (ravenscar_thread_target::add_active_thread): Now public.
5095 (ravenscar_inferior_created): Call add_active_thread after pushing
5096 the target.
5097
888bdb2b
SM
50982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * regcache.c (ptid_regcache_map): New type.
5101 (target_ptid_regcache_map): New type.
5102 (regcaches): Change type to target_ptid_regcache_map.
5103 (get_thread_arch_aspace_regcache): Update to regcaches' new
5104 type.
5105 (regcache_thread_ptid_changed): Likewise.
5106 (registers_changed_ptid): Likewise.
5107 (regcaches_size): Likewise.
5108 (regcaches_test): Update.
5109 (regcache_thread_ptid_changed): Update.
5110 * regcache.h (regcache_up): New type.
5111 * gdbsupport/ptid.h (hash_ptid): New struct.
5112
b161a60d
SM
51132020-08-07 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * observable.h (thread_ptid_changed): Add parameter
5116 `process_stratum_target *`.
5117 * infrun.c (infrun_thread_ptid_changed): Add parameter
5118 `process_stratum_target *` and use it.
5119 (selftests): New namespace.
5120 (infrun_thread_ptid_changed): New function.
5121 (_initialize_infrun): Register selftest.
5122 * regcache.c (regcache_thread_ptid_changed): Add parameter
5123 `process_stratum_target *` and use it.
5124 (regcache_thread_ptid_changed): New function.
5125 (_initialize_regcache): Register selftest.
5126 * thread.c (thread_change_ptid): Pass target to
5127 thread_ptid_changed observable.
5128
d2854d8d
CT
51292020-08-06 Caroline Tice <cmtice@google.com>
5130
fe4c3d43
SM
5131 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5132 (struct dwp_sections): Update field comments. Add loclists and
5133 rnglists fields.
5134 (struct virtual_v2_dwo_sections): Rename struct to
5135 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5136 size & offset fields for loclists and rnglists.
5137 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5138 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5139 skipping dummy type units.
5140 (create_dwp_hash_table): Update the large comment above the function to
5141 discuss Version 5 DWP files as well, with references. Update all the
5142 version checks in the function to check for version 5 as well. Add new
5143 section at the end to create dwp hash table for version 5.
5144 (create_dwp_v2_section): Rename function to
5145 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5146 Add V5 to error message text.
5147 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5148 into calls to create_dwp_v2_or_v5_section.
5149 (create_dwo_unit_in_dwp_v5): New function.
5150 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5151 check for version2; add else clause to handle version 5.
5152 (open_and_init_dwo_file): Add code to check dwarf version & only call
5153 create_debug_types_hash_table (with sections.types) if version is not 5;
5154 else call create_debug_type_hash_table, with sections.info.
5155 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5156 version 5.
5157 (dwarf2_locate_v5_dwp_sections): New function.
5158 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5159 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5160
159ed7d9
SM
51612020-08-06 Simon Marchi <simon.marchi@efficios.com>
5162
5163 * regcache.h (class regcache): Remove friend
5164 registers_changed_ptid.
5165 <regcache_thread_ptid_changed>: Remove.
5166 <regcaches>: Remove.
5167 * regcache.c (regcache::regcaches): Rename to...
5168 (regcaches): ... this. Make static.
5169 (get_thread_arch_aspace_regcache): Update.
5170 (regcache::regcache_thread_ptid_changed): Rename to...
5171 (regcache_thread_ptid_changed): ... this. Update.
5172 (class regcache_access): Remove.
5173 (regcaches_test): Update.
5174 (_initialize_regcache): Update.
5175 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5176 <forward_list>.
5177
174981ae
SM
51782020-08-06 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * regcache.h (class regcache) <current_regcache>: Rename to...
5181 <regcaches>: ... this. Move doc here.
5182 * regcache.c (regcache::current_regcache) Rename to...
5183 (regcache::regcaches): ... this. Move doc to header.
5184 (get_thread_arch_aspace_regcache): Update.
5185 (regcache::regcache_thread_ptid_changed): Update.
5186 (registers_changed_ptid): Update.
5187 (class regcache_access) <current_regcache_size>: Rename to...
5188 <regcaches_size>: ... this.
5189 (current_regcache_test): Rename to...
5190 (regcaches_test): ... this.
5191 (_initialize_regcache): Update.
5192
ed908db6
VC
51932020-08-06 Victor Collod <vcollod@nvidia.com>
5194
5195 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5196
b5582ab7
KB
51972020-08-05 Kevin Buettner <kevinb@redhat.com>
5198
5199 * corelow.c (core_target::build_file_mappings): Don't output
5200 null pathname in warning.
5201
ea946b86
SM
52022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5203
5204 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5205 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5206 gdb.dwarf2/dw2-single-line-discriminators.exp,
5207 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5208
57d02173
TT
52092020-08-05 Tom Tromey <tromey@adacore.com>
5210
5211 PR rust/26197:
5212 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5213 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5214 Fix off-by-one and type size errors in ordinary case.
5215
5555c86d
TV
52162020-08-05 Tom de Vries <tdevries@suse.de>
5217
5218 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5219 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5220
97916bfe
SM
52212020-08-04 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * frame.h (frame_id_p): Return bool.
5224 (frame_id_artificial_p): Return bool.
5225 (frame_id_eq): Return bool.
5226 (has_stack_frames): Return bool.
5227 (get_selected_frame): Fix typo in comment.
5228 (get_frame_pc_if_available): Return bool.
5229 (get_frame_address_in_block_if_available): Return bool.
5230 (get_frame_func_if_available): Return bool.
5231 (read_frame_register_unsigned): Return bool.
5232 (get_frame_register_bytes): Return bool.
5233 (safe_frame_unwind_memory): Return bool.
5234 (deprecated_frame_register_read): Return bool.
5235 (frame_unwinder_is): Return bool.
5236 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5237 bool.
5238 <this_id::p>: Likewise.
5239 <prev_p>: Likewise.
5240 (frame_stash_add): Return bool.
5241 (get_frame_id): Use bool.
5242 (frame_id_build_special) Use bool.
5243 (frame_id_build_unavailable_stack): Use bool.
5244 (frame_id_build): Use bool.
5245 (frame_id_p): Return bool, use true/false instead of 1/0.
5246 (frame_id_artificial_p): Likewise.
5247 (frame_id_eq): Likewise.
5248 (frame_id_inner): Likewise.
5249 (get_frame_func_if_available): Likewise.
5250 (read_frame_register_unsigned): Likewise.
5251 (deprecated_frame_register_read): Likewise.
5252 (get_frame_register_bytes): Likewise.
5253 (has_stack_frames): Likewise.
5254 (inside_main_func): Likewise.
5255 (inside_entry_func): Likewise.
5256 (get_frame_pc_if_available): Likewise.
5257 (get_frame_address_in_block_if_available): Likewise.
5258 (frame_unwinder_is): Likewise.
5259 (safe_frame_unwind_memory): Likewise.
5260 (frame_unwind_arch): Likewise.
5261
fedfee88
SM
52622020-08-04 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5265 type to cached_copy_status.
5266 (fprintf_frame): Adjust.
5267 (get_frame_func_if_available): Adjust.
5268 (frame_cleanup_after_sniffer): Adjust.
5269
6cfa9b59
MW
52702020-08-04 Mark Wielaard <mark@klomp.org>
5271
5272 * MAINTAINERS (Write After Approval): Update email address.
5273
66d6346b
SM
52742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5277 dynamic_prop::const_val.
5278
8a6d5e35
SM
52792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5280
5281 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5282 dynamic_prop::kind.
5283
51d6067d
SM
52842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5285
5286 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5287
b26e2ae7
JM
52882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5289
5290 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5291
39791af2
JM
52922020-08-04 Weimin Pan <weimin.pan@oracle.com>
5293 Jose E. Marchesi <jose.marchesi@oracle.com>
5294
5295 * configure.tgt: Add entry for bpf-*-*.
5296 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5297 (ALLDEPFILES): Add bpf-tdep.c.
5298 * bpf-tdep.c: New file.
5299 * MAINTAINERS: Add bpf target and maintainer.
5300 * NEWS: Mention the support for the new target.
5301
521894aa
TV
53022020-08-04 Tom de Vries <tdevries@suse.de>
5303
5304 PR symtab/23270
5305 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5306 Error.
5307
5d6356e9
JB
53082020-08-03 John Baldwin <jhb@FreeBSD.org>
5309
5310 * syscalls/freebsd.xml: Regenerate.
5311
0cf82b81
JB
53122020-08-03 John Baldwin <jhb@FreeBSD.org>
5313
5314 * syscalls/update-freebsd.sh: Fix usage and year range.
5315
8f34b746
TV
53162020-08-03 Tom de Vries <tdevries@suse.de>
5317
5318 PR symtab/26333
5319 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5320 DW_LNE_lo_user/DW_LNE_hi_user range.
5321
5e500d33
SM
53222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5323
5324 PR ada/26318
5325 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5326 kind.
5327
78319c15
TBA
53282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5331
4c55e970
TBA
53322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5333
5334 * breakpoint.c (set_breakpoint_condition): Update the condition
5335 expressions after checking that the input condition string parses
5336 successfully and does not contain junk at the end.
5337
1e620590
TBA
53382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5339
5340 * breakpoint.c (set_breakpoint_condition): Update the
5341 condition string after parsing the new condition successfully.
5342
c8693053
RO
53432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5344
5345 * proc-api.c (_STRUCTURED_PROC): Don't define.
5346 * proc-events.c: Likewise.
5347 * proc-flags.c: Likewise.
5348 * proc-why.c: Likewise.
5349 * procfs.c: Likewise.
5350
5351 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5352 * configure, config.in: Regenerate.
5353
5a99adb8
TV
53542020-07-30 Tom de Vries <tdevries@suse.de>
5355
5356 PR build/26320
5357 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5358 m_red/m_green/m_blue in a union.
5359
8ba83e91
TV
53602020-07-29 Tom de Vries <tdevries@suse.de>
5361
5362 PR tdep/26280
5363 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5364
f75a0693
AB
53652020-07-28 Tom Tromey <tromey@adacore.com>
5366
5367 PR symtab/26270:
5368 * symtab.h (find_pc_partial_function_sym): Declare.
5369 * cli/cli-cmds.c (disassemble_command): Use
5370 find_pc_partial_function_sym. Check asm_demangle.
5371 * blockframe.c (cache_pc_function_sym): New global.
5372 (cache_pc_function_name): Remove.
5373 (clear_pc_function_cache): Update.
5374 (find_pc_partial_function_sym): New function, from
5375 find_pc_partial_function.
5376 (find_pc_partial_function): Rewrite using
5377 find_pc_partial_function_sym.
5378
16f3242c
TT
53792020-07-28 Tom Tromey <tromey@adacore.com>
5380
5381 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5382 help. Add usage.
5383
4888741a
TT
53842020-07-28 Tom Tromey <tromey@adacore.com>
5385
5386 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5387 <DW_OP_GNU_variable_value>: Cast to address type.
5388
4d46f402
KR
53892020-07-28 Kamil Rytarowski <n54@gmx.com>
5390
5391 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5392 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5393 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5394 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5395 (nbsd_get_siginfo_type): New.
5396 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5397 (_initialize_nbsd_tdep): New.
5398
d70f978b
L
53992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5400
5401 PR binutils/26301
5402 * configure: Regenerated.
5403
377170fa
L
54042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5405
5406 PR binutils/26301
5407 * configure: Regenerated.
5408
43d5901d
AB
54092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * python/py-frame.c: Remove 'user-regs.h' include.
5412 (frapy_read_register): Rewrite to make use of
5413 gdbpy_parse_register_id.
5414 * python/py-registers.c (gdbpy_parse_register_id): New function,
5415 moved here from python/py-unwind.c. Updated the return type, and
5416 also accepts register descriptor objects.
5417 * python/py-unwind.c: Remove 'user-regs.h' include.
5418 (pyuw_parse_register_id): Moved to python/py-registers.c.
5419 (unwind_infopy_add_saved_register): Update to use
5420 gdbpy_parse_register_id.
5421 (pending_framepy_read_register): Likewise.
5422 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5423
14fa8fb3
AB
54242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * python/py-registers.c: Add 'user-regs.h' include.
5427 (register_descriptor_iter_find): New function.
5428 (register_descriptor_iterator_object_methods): New static global
5429 methods array.
5430 (register_descriptor_iterator_object_type): Add pointer to methods
5431 array.
5432
ddce1758
JB
54332020-07-27 John Baldwin <jhb@FreeBSD.org>
5434
5435 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5436 for all architectures on FreeBSD 11.3 and later.
5437
a4089f52
TT
54382020-07-27 Tom Tromey <tromey@adacore.com>
5439
5440 * gcore.h (load_corefile): Don't declare.
5441
95420d30
TV
54422020-07-27 Tom de Vries <tdevries@suse.de>
5443
5444 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5445 * config.in: Regenerate.
5446 * configure: Regenerate.
5447
05a6b8c2
EZ
54482020-07-26 Eli Zaretskii <eliz@gnu.org>
5449
5450 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5451 ws2tcpip.h. When checking whether socklen_t type is defined, use
5452 ws2tcpip.h if it is available and sys/socket.h isn't.
5453 * configure: Regenerate.
5454 * config.in: Regenerate.
5455
e79eb02f
AB
54562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 PR fortran/23051
5459 PR fortran/26139
5460 * valops.c (value_ind): Pass address to
5461 readjust_indirect_value_type.
5462 * value.c (readjust_indirect_value_type): Make parameter
5463 non-const, and add extra address parameter. Resolve original type
5464 before using it.
5465 * value.h (readjust_indirect_value_type): Update function
5466 signature and comment.
5467
876518dd
TV
54682020-07-25 Tom de Vries <tdevries@suse.de>
5469
5470 PR symtab/26243
5471 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5472 entries.
5473
f6720b1c
AM
54742020-07-24 Aaron Merey <amerey@redhat.com>
5475
5476 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5477 * configure: Rebuild.
5478
513487e1
KB
54792020-07-23 Kevin Buettner <kevinb@redhat.com>
5480
5481 PR corefiles/26294
5482 * corelow.c (_initialize_corelow): Add period to help text
5483 for "maintenance print core-file-backed-mappings".
5484
e7bc9db8
PA
54852020-07-23 Pedro Alves <pedro@palves.net>
5486
5487 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5488 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5489 meanwhile.
5490 * frame.c (frame_cache_generation, get_frame_cache_generation):
5491 New.
5492 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5493 (get_prev_frame_if_no_cycle): On exception, don't touch
5494 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5495 * frame.h (get_frame_cache_generation): Declare.
5496
90fcc466
TV
54972020-07-23 Tom de Vries <tdevries@suse.de>
5498
5499 PR tui/26282
5500 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5501 New default constructor.
5502
78344df7
AB
55032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5506 exclude non-statement entries.
5507
b089853a
KB
55082020-07-22 Kevin Buettner <kevinb@redhat.com>
5509
5510 * NEWS (New commands): Mention new command
5511 "maintenance print core-file-backed-mappings".
5512
09c2f5d4
KB
55132020-07-22 Kevin Buettner <kevinb@redhat.com>
5514
5515 * corelow.c (gdbcmd.h): Include.
5516 (core_target::info_proc_mappings): New method.
5517 (get_current_core_target): New function.
5518 (maintenance_print_core_file_backed_mappings): New function.
5519 (_initialize_corelow): Add core-file-backed-mappings to
5520 "maint print" commands.
5521
9c5ec5c2 55222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5523
9c5ec5c2
KB
5524 * linux-tdep.c (dump_note_entry_p): New function.
5525 (linux_dump_mapping_p_ftype): New typedef.
5526 (linux_find_memory_regions_full): Add new parameter,
5527 should_dump_mapping_p.
5528 (linux_find_memory_regions): Adjust call to
5529 linux_find_memory_regions_full.
5530 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5531 call to linux_find_memory_regions_full.
5532
db082f59
KB
55332020-07-22 Kevin Buettner <kevinb@redhat.com>
5534
5535 * corelow.c (solist.h, unordered_map): Include.
5536 (class core_target): Add field m_core_file_mappings and
5537 method build_file_mappings.
5538 (core_target::core_target): Call build_file_mappings.
5539 (core_target::~core_target): Free memory associated with
5540 m_core_file_mappings.
5541 (core_target::build_file_mappings): New method.
5542 (core_target::xfer_partial): Use m_core_file_mappings
5543 for memory transfers.
5544 * linux-tdep.c (linux_read_core_file_mappings): New
5545 function.
5546 (linux_core_info_proc_mappings): Rewrite to use
5547 linux_read_core_file_mappings.
5548 (linux_init_abi): Register linux_read_core_file_mappings.
5549
7e183d27
KB
55502020-07-22 Kevin Buettner <kevinb@redhat.com>
5551
5552 * arch-utils.c (default_read_core_file_mappings): New function.
5553 * arch-utils.c (default_read_core_file_mappings): Declare.
5554 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5555 * gdbarch.h, gdbarch.c: Regenerate.
5556
2735d421
KB
55572020-07-22 Kevin Buettner <kevinb@redhat.com>
5558
5559 PR corefiles/25631
5560 * corelow.c (core_target:xfer_partial): Revise
5561 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5562 case after first checking the stratum beneath the core
5563 target.
5564 (has_all_memory): Return true.
5565 * target.c (raw_memory_xfer_partial): Revise comment
5566 regarding use of has_all_memory.
5567
e56cb451
KB
55682020-07-22 Kevin Buettner <kevinb@redhat.com>
5569
5570 * exec.h (section_table_xfer_memory): Revise declaration,
5571 replacing section name parameter with an optional callback
5572 predicate.
5573 * exec.c (section_table_xfer_memory): Likewise.
5574 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5575 of section_table_xfer_memory.
5576
32fa152e
TT
55772020-07-22 Tom Tromey <tromey@adacore.com>
5578
5579 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5580 lookup_symbol_search_name.
5581
a67a1c41
AB
55822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5585 redundant local variable.
5586 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5587 reference, not pointer, update code accordingly.
5588
a7b4ff4f
SM
55892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5590 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5591
5592 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5593 * jit.c (jit_breakpoint_re_set_internal): Use the
5594 `skip_jit_symbol_lookup` field.
5595
2340e834
SM
55962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5597 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5598
5599 * jit.c (jit_read_descriptor): Define the descriptor address once,
5600 use twice.
5601 (jit_breakpoint_deleted): Move the declaration of the loop variable
5602 `iter` into the loop header.
5603 (jit_breakpoint_re_set_internal): Move the declaration of the local
5604 variable `objf_data` to the first point of definition.
5605 (jit_event_handler): Move the declaration of local variables
5606 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5607 Rename `objf` to `jited`.
5608
c1072906
SM
56092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5612 Remove.
5613 * jit.c (get_jiter_objfile_data): Update.
5614
c8474dc3
TBA
56152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5616 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * jit.c (struct jit_program_space_data): Remove.
5619 (jit_program_space_key): Remove.
5620 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5621 stuff.
5622 (get_jit_program_space_data): Remove.
5623 (jit_breakpoint_deleted): Iterate on all of the program space's
5624 objfiles.
5625 (jit_inferior_init): Likewise.
5626 (jit_breakpoint_re_set_internal): Likewise. Also change return
5627 type to void.
5628 (jit_breakpoint_re_set): Pass current_program_space to
5629 jit_breakpoint_re_set_internal.
5630
77208eb7
SM
56312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 * jit.h (struct jiter_objfile_data) <cached_code_address,
5634 jit_breakpoint>: Move to here from ...
5635 * jit.c (jit_program_space_data): ... here.
5636 (jiter_objfile_data::~jiter_objfile_data): Update.
5637 (jit_breakpoint_deleted): Update.
5638 (jit_breakpoint_re_set_internal): Update.
5639
8c1c720f
SM
56402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5641
5642 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5643 checks.
5644 (jit_read_descriptor): Remove NULL check.
5645 (jit_event_handler): Add an assertion.
5646
0e74a041
SM
56472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 * jit.h (struct jit_objfile_data): Split into...
5650 (struct jiter_objfile_data): ... this ...
5651 (struct jited_objfile_data): ... and this.
5652 * objfiles.h (struct objfile) <jit_data>: Remove.
5653 <jiter_data, jited_data>: New fields.
5654 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5655 (jiter_objfile_data::~jiter_objfile_data): ... this.
5656 (get_jit_objfile_data): Rename to ...
5657 (get_jiter_objfile_data): ... this.
5658 (add_objfile_entry): Update.
5659 (jit_read_descriptor): Use get_jiter_objfile_data.
5660 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5661 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5662 (jit_inferior_exit_hook): Use objfile's jited_data field.
5663
238b5c9f
SM
56642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5665
5666 * jit.h: Forward-declare `struct minimal_symbol`.
5667 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5668 constructor, destructor, and an objfile* field.
5669 * jit.c (jit_objfile_data): Remove.
5670 (struct jit_objfile_data): Migrate from here to jit.h.
5671 (jit_objfile_data::~jit_objfile_data): New destructor
5672 implementation with code moved from free_objfile_data.
5673 (free_objfile_data): Delete.
5674 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5675 (jit_find_objf_with_entry_addr): Ditto.
5676 (jit_inferior_exit_hook): Ditto.
5677 (_initialize_jit): Remove the call to
5678 register_objfile_data_with_cleanup.
5679 * objfiles.h (struct objfile) <jit_data>: New field.
5680
fe053b9e
TBA
56812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5682
5683 * jit.h: Forward-declare `struct objfile`.
5684 (jit_event_handler): Add a second parameter, the JITer objfile.
5685 * jit.c (jit_read_descriptor): Change the signature to take the
5686 JITer objfile as an argument instead of the jit_program_space_data.
5687 (jit_inferior_init): Update the call to jit_read_descriptor.
5688 (jit_event_handler): Use the new JITer objfile argument when calling
5689 jit_read_descriptor.
5690 * breakpoint.c (handle_jit_event): Update the call to
5691 jit_event_handler to pass the JITer objfile.
5692
4cec0c66
JB
56932020-07-21 John Baldwin <jhb@FreeBSD.org>
5694
5695 * gdbarch.c: Regenerate.
5696 * gdbarch.h: Regenerate.
5697 * gdbarch.sh (handle_segmentation_fault): Remove method.
5698 * infrun.c (handle_segmentation_fault): Remove.
5699 (print_signal_received_reason): Remove call to
5700 handle_segmentation_fault.
5701
0e42f66a
JB
57022020-07-21 John Baldwin <jhb@FreeBSD.org>
5703
5704 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5705 Rename to sparc64_linux_report_signal_info and add siggnal
5706 argument.
5707 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5708 instead of sparc64_linux_handle_segmentation_fault.
5709
77bdfeb2
JB
57102020-07-21 John Baldwin <jhb@FreeBSD.org>
5711
5712 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5713 i386_linux_report_signal_info instead of
5714 i386_linux_handle_segmentation_fault.
5715 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5716 to i386_linux_report_signal_info and add siggnal argument.
5717 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5718 of i386_linux_handle_segmentation_fault.
5719 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5720 to i386_linux_report_signal_info and add siggnal argument.
5721
ad97bfc5
JB
57222020-07-21 John Baldwin <jhb@FreeBSD.org>
5723
5724 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5725 hook if present.
5726
272bb05c
JB
57272020-07-21 John Baldwin <jhb@FreeBSD.org>
5728
5729 * gdbarch.c: Regenerate.
5730 * gdbarch.h: Regenerate.
5731 * gdbarch.sh (report_signal_info): New method.
5732 * infrun.c (print_signal_received_reason): Invoke gdbarch
5733 report_signal_info hook if present.
5734
baf8791e
AB
57352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 * python/py-registers.c : Add 'unordered_map' include.
5738 (gdbpy_new_reggroup): Renamed to...
5739 (gdbpy_get_reggroup): ...this. Update to only create register
5740 group descriptors when needed.
5741 (gdbpy_reggroup_iter_next): Update.
5742
f7306dac
AB
57432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5744
5745 * python/py-registers.c (gdbpy_register_object_data): New static
5746 global.
5747 (gdbpy_register_object_data_init): New function.
5748 (gdbpy_new_register_descriptor): Renamed to...
5749 (gdbpy_get_register_descriptor): ...this, and update to reuse
5750 existing register descriptors where possible.
5751 (gdbpy_register_descriptor_iter_next): Update.
5752 (gdbpy_initialize_registers): Register new gdbarch data.
5753
05c309a8
SM
57542020-07-21 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * linux-nat.c (stopped_pids): Make static.
5757
d1fd641e
SM
57582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5759
5760 PR ada/26235
5761 * gdbtypes.c (ada_discrete_type_low_bound,
5762 ada_discrete_type_high_bound): Handle undefined bounds.
5763
1de14d77
KR
57642020-07-21 Kamil Rytarowski <n54@gmx.com>
5765
5766 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5767 declaration.
5768 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5769 function.
5770
ed810cc7
JB
57712020-07-20 John Baldwin <jhb@FreeBSD.org>
5772
5773 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5774 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5775 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5776 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5777 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5778 method.
5779
ae5369e7
LC
57802020-07-20 Ludovic Courtès <ludo@gnu.org>
5781
5782 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5783 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5784 which are deprecated in Guile 3.0.
5785 * configure.ac (try_guile_versions): Add "guile-3.0".
5786 * configure (try_guile_versions): Regenerate.
5787 * NEWS: Update entry.
5788
68cf161c
LC
57892020-07-20 Ludovic Courtès <ludo@gnu.org>
5790 Doug Evans <dje@google.com>
5791
5792 PR gdb/21104
5793 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5794 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5795 USING_GUILE_BEFORE_2_2.
5796 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5797 Change type to 'scm_t_port_type *'.
5798 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5799 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5800 parameter and honor it. Update callers.
5801 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5802 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5803 functions.
5804 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5805 USING_GUILE_BEFORE_2_2.
5806 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5807 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5808 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5809 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5810 and 'SCM_PORT_TYPE'.
5811 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5812 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5813 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5814 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5815 [!USING_GUILE_BEFORE_2_2]: New functions.
5816 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5817 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5818 'gdbscm_memory_port_read'.
5819 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5820 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5821 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5822 function.
5823 (ioscm_init_memory_port): Remove.
5824 (ioscm_init_memory_port_stream): New function
5825 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5826 function.
5827 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5828 Return scm_from_uint (0).
5829 (gdbscm_set_memory_port_read_buffer_size_x)
5830 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5831 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5832 Return scm_from_uint (0).
5833 (gdbscm_set_memory_port_write_buffer_size_x)
5834 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5835 * configure.ac (try_guile_versions): Add "guile-2.2".
5836 * configure: Regenerate.
5837 * NEWS: Add entry.
5838
aee91db3
TT
58392020-07-18 Tom Tromey <tom@tromey.com>
5840
5841 * linux-nat.c (linux_multi_process): Remove.
5842 (linux_nat_target::supports_multi_process): Return true.
5843
0e267416
AB
58442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5847 (riscv_lookup_target_description): Return pointer out of
5848 unique_ptr.
5849 * target-descriptions.c (allocate_target_description): Add
5850 comment.
5851 (target_desc_deleter::operator()): Likewise.
5852 * target-descriptions.h (struct target_desc_deleter): Moved to
5853 gdbsupport/tdesc.h.
5854 (target_desc_up): Likewise.
5855
f80c8ec4
TT
58562020-07-17 Tom Tromey <tromey@adacore.com>
5857
5858 * linux-nat.c (linux_nat_target::supports_non_stop)
5859 (linux_nat_target::always_non_stop_p): Use "true".
5860 (linux_nat_target::supports_disable_randomization): Use "true" and
5861 "false".
5862
d0ce17d8
CT
58632020-07-16 Caroline Tice <cmtice@google.com>
5864
5865 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5866 (RNGLIST_HEADER_SIZE64): New constant definition.
5867 (struct dwop_section_names): Add rnglists_dwo.
5868 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5869 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5870 (struct dwo_sections): Add rnglists field.
5871 (read_attribut_reprocess): Add tag parameter.
5872 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5873 (cu_debug_rnglists_section): New function (decl & definition).
5874 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5875 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5876 die whose range is being checked; get rnglist section from
5877 cu_debug_rnglists_section, to get from either objfile or dwo file as
5878 appropriate. Add cases for DW_RLE_base_addressx,
5879 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5880 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5881 test inside if-condition and updating complaint message.
5882 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5883 dwarf2_rnglists_process.
5884 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5885 dwarf2_ranges_process.
5886 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5887 need_ranges_base and update comment appropriately. Also pass die tag
5888 to dwarf2_ranges_read.
5889 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5890 need_ranges_base and update comment appropriately. Also pass die tag
5891 to dwarf2_ranges_process.
5892 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5893 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5894 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5895 need_ranges_base and update comment appropriately. Also pass die tag
5896 to read_attribute_reprocess and dwarf2_ranges_read.
5897 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5898 and update function comment appropriately.
5899 (read_loclist_index): Call read_loclists_rnglists_header instead of
5900 read_loclist_header.
5901 (read_rnglist_index): New function.
5902 (read_attribute_reprocess): Add tag parameter. Add code for
5903 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5904 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5905
3dcc261c
AB
59062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5909 being resolved.
5910
ccb9eba6
AB
59112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * arch-utils.c (show_architecture): Update formatting of messages.
5914
cf88be68
SM
59152020-07-12 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * gdbtypes.h (struct type) <bounds>: Handle array and string
5918 types.
5919 * ada-lang.c (assign_aggregate): Use type::bounds on
5920 array/string type.
5921 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5922 * c-varobj.c (c_number_of_children): Likewise.
5923 (c_describe_child): Likewise.
5924 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5925 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5926 (f_type_print_base): Likewise.
5927 * f-valprint.c (f77_array_offset_tbl): Likewise.
5928 (f77_get_upperbound): Likewise.
5929 (f77_print_array_1): Likewise.
5930 * guile/scm-type.c (gdbscm_type_range): Likewise.
5931 * m2-typeprint.c (m2_array): Likewise.
5932 (m2_is_long_set_of_type): Likewise.
5933 * m2-valprint.c (get_long_set_bounds): Likewise.
5934 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5935 * python/py-type.c (typy_range): Likewise.
5936 * rust-lang.c (rust_internal_print_type): Likewise.
5937 * type-stack.c (type_stack::follow_types): Likewise.
5938 * valarith.c (value_subscripted_rvalue): Likewise.
5939 * valops.c (value_cast): Likewise.
5940
509971ae
SM
59412020-07-12 Simon Marchi <simon.marchi@efficios.com>
5942
5943 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5944 callers to use the equivalent accessor methods.
5945
107406b7
SM
59462020-07-12 Simon Marchi <simon.marchi@efficios.com>
5947
5948 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5949 (struct type) <bit_stride>: New method.
5950 (TYPE_BIT_STRIDE): Remove.
5951 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5952
bb789949
SM
59532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5956 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5957 callers to use the equivalent accessor methods instead.
5958
39498edb
SM
59592020-07-12 Simon Marchi <simon.marchi@efficios.com>
5960
5961 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5962 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5963 callers to use the equivalent accessor methods instead.
5964
3b606f38
SM
59652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5966
5967 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5968 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5969 to use dynamic_prop::kind.
5970
064d9cb9
SM
59712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5974 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5975 to get the bound property's kind and check against
5976 PROP_UNDEFINED.
5977
5537ddd0
SM
59782020-07-12 Simon Marchi <simon.marchi@efficios.com>
5979
5980 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5981 all callers to use type::range_bounds followed by
5982 dynamic_prop::{low,high}.
5983
8c2e4e06
SM
59842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5985
5986 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5987 const_val, set_const_val, baton, set_locexpr, set_loclist,
5988 set_addr_offset, variant_parts, set_variant_parts,
5989 original_type, set_original_type>: New methods.
5990 <kind>: Rename to...
5991 <m_kind>: ... this. Update all users to use the new methods
5992 instead.
5993 <data>: Rename to...
5994 <m_data>: ... this. Update all users to use the new methods
5995 instead.
5996
7c6f2712
SM
59972020-07-12 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * gdbtypes.c (get_discrete_bounds): Return failure if
6000 the range type's bounds are not both defined and constant
6001 values.
6002 (get_array_bounds): Update comment. Remove undefined bound check.
6003
599088e3
SM
60042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6005
6006 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6007 the type::bounds method directly.
6008
c4dfcb36
SM
60092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6012 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6013 are used to set the range type's bounds to use set_bounds.
6014
0a278aa7
PW
60152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6016
6017 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6018
cce20f10
PA
60192020-07-10 Pedro Alves <pedro@palves.net>
6020
6021 * gdbthread.h (inferior_ref): Define.
6022 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6023 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6024 * thread.c
6025 (scoped_restore_current_thread::restore):
6026 Adjust to gdb::ref_ptr.
6027 (scoped_restore_current_thread::~scoped_restore_current_thread):
6028 Remove manual decref handling.
6029 (scoped_restore_current_thread::scoped_restore_current_thread):
6030 Adjust to use
6031 inferior_ref::new_reference/thread_info_ref::new_reference.
6032 Incref the thread before calling get_frame_id instead of after.
6033 Let TARGET_CLOSE_ERROR propagate.
6034
6d7aa592
PA
60352020-07-10 Pedro Alves <pedro@palves.net>
6036
6037 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6038 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6039 NOT_AVAILABLE_ERROR.
6040 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6041 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6042
b3e3a4c1
SM
60432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6044 Pedro Alves <pedro@palves.net>
6045
6046 PR gdb/26199
6047 * infrun.c (threads_are_resumed_pending_p): Delete.
6048 (do_target_wait): Remove threads_are_executing and
6049 threads_are_resumed_pending_p checks from the inferior_matches
6050 lambda. Update comments.
6051
d6cc5d98
PA
60522020-07-10 Pedro Alves <pedro@palves.net>
6053
6054 PR gdb/26199
6055 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6056 executing threads.
6057
7d3badc6
PA
60582020-07-10 Pedro Alves <pedro@palves.net>
6059
6060 PR gdb/26199
6061 * infrun.c (handle_no_resumed): Handle multiple targets.
6062
42bd97a6
PA
60632020-07-10 Pedro Alves <pedro@palves.net>
6064
6065 PR gdb/26199
6066 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6067 target_is_async_p.
6068
43667cc6
PA
60692020-07-10 Pedro Alves <pedro@palves.net>
6070
6071 PR gdb/26199
6072 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6073 threads, not all threads.
6074
96118d11
PA
60752020-07-10 Pedro Alves <pedro@palves.net>
6076
6077 PR gdb/26199
6078 * remote.c (remote_target::open_1): Pass remote target pointer as
6079 data to create_async_event_handler.
6080 (remote_async_inferior_event_handler): Mark async event handler
6081 before returning if the remote target still has either pending
6082 events or unacknowledged notifications.
6083
54904d81
JB
60842020-07-10 John Baldwin <jhb@FreeBSD.org>
6085
6086 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6087 declaration.
6088 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6089 function.
6090
f37e5866
JB
60912020-07-09 John Baldwin <jhb@FreeBSD.org>
6092
6093 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6094 inferior_ptid.
6095
fc238d4a
JB
60962020-07-09 John Baldwin <jhb@FreeBSD.org>
6097
6098 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6099 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6100 AT_FREEBSD_PS_STRINGS.
6101
6e2469ff
HD
61022020-07-08 Hannes Domani <ssbssa@yahoo.de>
6103
6104 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6105 of debugfile path on Windows.
6106
d1076c41
JB
61072020-07-08 John Baldwin <jhb@FreeBSD.org>
6108
6109 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6110 argument to 'data'.
6111
15f3b077
TT
61122020-07-08 Tom Tromey <tromey@adacore.com>
6113
6114 * ada-lang.c (ada_exception_message_1): Use read_memory.
6115
9fc501fd
AB
61162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6117
6118 PR python/22748
6119 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6120 special handling for inline frames.
6121 * findvar.c (value_of_register_lazy): Skip inline frames when
6122 creating lazy register values.
6123 * frame.c (frame_id_computed_p): Delete definition.
6124 * frame.h (frame_id_computed_p): Delete declaration.
6125
64cb3757
AB
61262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6127
6128 * NEWS: Mention additions to Python API.
6129 * python/py-arch.c (archpy_register_groups): New function.
6130 (arch_object_methods): Add 'register_groups' method.
6131 * python/py-registers.c (reggroup_iterator_object): New struct.
6132 (reggroup_object): New struct.
6133 (gdbpy_new_reggroup): New function.
6134 (gdbpy_reggroup_to_string): New function.
6135 (gdbpy_reggroup_name): New function.
6136 (gdbpy_reggroup_iter): New function.
6137 (gdbpy_reggroup_iter_next): New function.
6138 (gdbpy_new_reggroup_iterator): New function
6139 (gdbpy_initialize_registers): Register new types.
6140 (reggroup_iterator_object_type): Define new Python type.
6141 (gdbpy_reggroup_getset): New static global.
6142 (reggroup_object_type): Define new Python type.
6143 * python/python-internal.h
6144
0f767f94
AB
61452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6146
6147 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6148 * python/py-arch.c (archpy_registers): New function.
6149 (arch_object_methods): Add 'registers' method.
6150 * python/py-registers.c: New file.
6151 * python/python-internal.h
6152 (gdbpy_new_register_descriptor_iterator): Declare.
6153 (gdbpy_initialize_registers): Declare.
6154 * python/python.c (do_start_initialization): Call
6155 gdbpy_initialize_registers.
6156 * NEWS: Mention additions to the Python API.
6157
87dbc774
AB
61582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6159
6160 * NEWS: Mention new Python API method.
6161 * python/py-unwind.c (pending_framepy_architecture): New function.
6162 (pending_frame_object_methods): Add architecture method.
6163
3bc98c0c
AB
61642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6165
6166 * gdbarch.c: Regenerate.
6167 * gdbarch.h: Regenerate.
6168 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6169 (gdbarch_data): Use internal_error for the case where
6170 deprecated_set_gdbarch_data was originally needed.
6171 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6172 and use passed in obstack.
6173 (libunwind_frame_set_descr): Should no longer get back NULL from
6174 gdbarch_data.
6175 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6176 type.
6177 * user-regs.c (user_regs_init): Update parameters, and use passed
6178 in obstack.
6179 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6180 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6181
d8cc8af6
TV
61822020-07-06 Tom de Vries <tdevries@suse.de>
6183
6184 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6185 End-Of-Sequence in lte_is_less_than.
6186 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6187 "gdb: Don't reorder line table entries too much when sorting".
6188
947f7597
TV
61892020-07-06 Tom de Vries <tdevries@suse.de>
6190
6191 PR tui/26205
6192 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6193
1e7c1b22
TV
61942020-07-05 Tom de Vries <tdevries@suse.de>
6195
6196 PR build/26187
6197 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6198 std::uncaught_exceptions instead of deprecated
6199 std::uncaught_exception.
6200
a36158ec
SM
62012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6202
6203 * macroexp.h (macro_stringify): Return
6204 gdb::unique_xmalloc_ptr<char>.
6205 * macroexp.c (macro_stringify): Likewise.
6206 * macrotab.c (fixup_definition): Update.
6207
14d960c8
SM
62082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6209
6210 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6211 (lex_one_token): Update.
6212 * macroexp.c (struct macro_buffer) <release>: Return
6213 gdb::unique_xmalloc_ptr<char>.
6214 (macro_stringify): Update.
6215 (macro_expand): Update.
6216 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6217 * macroexp.h (macro_expand_next): Likewise.
6218
211d5b1c
SM
62192020-07-02 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * macroexp.h (macro_lookup_ftype): Remove.
6222 (macro_expand, macro_expand_once, macro_expand_next): Remove
6223 lookup function parameters, add scope parameter.
6224 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6225 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6226 * macroscope.h (standard_macro_lookup): Change parameter type
6227 to macro_scope.
6228 * macroscope.c (standard_macro_lookup): Likewise.
6229 * c-exp.y (lex_one_token): Update.
6230 * macrocmd.c (macro_expand_command): Likewise.
6231 (macro_expand_once_command): Likewise.
6232
b1a35af2
SM
62332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * inf-loop.c (inferior_event_handler): Remove client_data param.
6236 * inf-loop.h (inferior_event_handler): Likewise.
6237 * infcmd.c (step_1): Adjust.
6238 * infrun.c (proceed): Adjust.
6239 (fetch_inferior_event): Remove client_data param.
6240 (infrun_async_inferior_event_handler): Adjust.
6241 * infrun.h (fetch_inferior_event): Remove `void *` param.
6242 * linux-nat.c (handle_target_event): Adjust.
6243 * record-btrace.c (record_btrace_handle_async_inferior_event):
6244 Adjust.
6245 * record-full.c (record_full_async_inferior_event_handler):
6246 Adjust.
6247 * remote.c (remote_async_inferior_event_handler): Adjust.
6248
1cdf9e33
TT
62492020-07-01 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6252 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6253
32c1e210
TT
62542020-07-01 Tom Tromey <tom@tromey.com>
6255
6256 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6257 tui_gen_win_info.
6258 (tui_win_info::make_window): Merge with
6259 tui_gen_win_info::make_window.
6260 (tui_win_info::make_visible): Move from tui_gen_win_info.
6261 * tui/tui-win.c (tui_win_info::max_width): Move from
6262 tui_gen_win_info.
6263 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6264 type.
6265 <window_factory>: Likewise.
6266 * tui/tui-layout.c (tui_win_info::resize): Move from
6267 tui_gen_win_info.
6268 (make_standard_window): Change return type.
6269 (get_locator_window, tui_get_window_by_name): Likewise.
6270 (tui_layout_window::apply): Remove a cast.
6271 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6272 (struct tui_win_info): Merge with tui_gen_win_info.
6273 (struct tui_gen_win_info): Remove.
6274
a30cb6da
TT
62752020-07-01 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-stack.h (struct tui_locator_window): Derive from
6278 tui_win_info.
6279 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6280 <can_box>: New method.
6281
1eb2161f
TT
62822020-07-01 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6285
7134f2eb
TT
62862020-07-01 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-regs.c (tui_data_window::display_registers_from)
6289 (tui_data_window::display_registers_from)
6290 (tui_data_window::first_data_item_displayed)
6291 (tui_data_window::delete_data_content_windows): Update.
6292 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6293 Remove.
6294 (tui_data_window::check_register_values): Update.
6295 (tui_data_item_window::rerender): Add parameters. Update.
6296 (tui_data_item_window::refresh_window): Remove.
6297 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6298 virtual.
6299 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6300 tui_gen_win_info.
6301 <refresh_window, max_height, min_height>: Remove.
6302 <rerender>: Add parameters.
6303 <x, y, visible>: New members.
6304 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6305 <m_item_width>: New member.
6306
22b7b041
TT
63072020-07-01 Tom Tromey <tom@tromey.com>
6308
6309 * tui/tui-regs.c (tui_data_window::show_register_group)
6310 (tui_data_window::check_register_values): Update.
6311 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6312 from item_no.
6313
c9753adb
TT
63142020-07-01 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6317 useless "if".
6318
9ab26b4a
TT
63192020-07-01 Tom Tromey <tom@tromey.com>
6320
6321 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6322 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6323
e555083f
TT
63242020-07-01 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6327 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6328 (struct tui_line_or_address): Move from tui-data.h.
6329 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6330 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6331 (tui_cmd_window, tui_source_window_base, tui_source_window)
6332 (tui_disasm_window): Don't declare.
6333 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6334 to tui-winsource.h.
6335 (SINGLE_KEY): Move to tui-stack.c.
6336
7a02bab7
TT
63372020-07-01 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6340 std::string.
6341 * tui/tui-regs.c (class tab_expansion_file): New.
6342 (tab_expansion_file::write): New method.
6343 (tui_register_format): Change return type. Use
6344 tab_expansion_file.
6345 (tui_get_register, tui_data_window::display_registers_from)
6346 (tui_data_item_window::rerender): Update.
6347 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6348 * tui/tui-io.c (tui_expand_tabs): Remove.
6349
ea68593b
TT
63502020-07-01 Tom Tromey <tom@tromey.com>
6351
6352 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6353
a8caed5d
FS
63542020-07-01 Fangrui Song <maskray@google.com>
6355
6356 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6357
9cdf9820
AKS
63582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6359
6360 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6361 forms for DW_AT_associated and DW_AT_allocated attributes,
6362 which is already checked in function attr_to_dynamic_prop.
6363
a1520ad8
TT
63642020-06-30 Tom Tromey <tromey@adacore.com>
6365
6366 * dwarf2/read.c (quirk_rust_enum): Correctly call
6367 alloc_rust_variant for default-less enum.
6368
5ac58899
TT
63692020-06-30 Tom Tromey <tromey@adacore.com>
6370
6371 PR build/26183:
6372 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6373 gdb::to_string.
6374
19b187a9
SM
63752020-06-29 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6378 * gdbarch.h: Re-generate.
6379
cd4c4c07
TT
63802020-06-28 Tom Tromey <tom@tromey.com>
6381
6382 * command.h (cmd_types): Remove.
6383 (cmd_type): Don't declare.
6384 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6385 typedef.
6386 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6387 * cli/cli-decode.c (cmd_type): Remove.
6388
05779d57
PA
63892020-06-27 Pedro Alves <palves@redhat.com>
6390
6391 * fork-child.c (prefork_hook): Adjust.
6392 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6393 Delete.
6394 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6395 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6396 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6397 Remove declarations.
6398 (struct inferior) <set_tty, tty>: New methods.
6399 (struct inferior) <terminal>: Rename to ...
6400 (struct inferior) <m_terminal>: ... this and make private.
6401 * main.c (captured_main_1): Adjust.
6402 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6403 (mi_cmd_inferior_tty_show): Adjust.
6404 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6405 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6406
1776e3e5
NA
64072020-06-26 Nick Alcock <nick.alcock@oracle.com>
6408
6409 * configure.ac: Add --enable-libctf: handle --disable-static
6410 properly.
6411 * acinclude.m4: sinclude ../config/enable.m4.
6412 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6413 (LIBCTF): Substitute in.
6414 (CTF_DEPS): New, likewise.
6415 (CLIBS): libctf needs symbols from libbfd: move earlier.
6416 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6417 flags.
6418 * ctfread.c: Surround in ENABLE_LIBCTF.
6419 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6420 * configure: Regenerate.
6421 * config.in: Likewise.
6422
58373b80
SM
64232020-06-25 Simon Marchi <simon.marchi@efficios.com>
6424
6425 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6426
277474ee
SM
64272020-06-25 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * inferior.h (struct inferior) <terminal>: Change type to
6430 gdb::unique_xmalloc_ptr<char>.
6431 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6432 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6433 field, adjust to unique pointer.
6434 (get_inferior_io_terminal): Adjust to unique pointer.
6435
6d74da72
AB
64362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6439 registers, not just the known core set of registers.
6440
2e52d038
AB
64412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6442
6443 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6444 fflags, frm, and fcsr registers.
6445 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6446 restore groups.
6447 (riscv_tdesc_unknown_reg): New function.
6448 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6449 tdesc_use_registers.
6450 * riscv-tdep.h (struct gdbarch_tdep): Add
6451 unknown_csrs_first_regnum, unknown_csrs_count,
6452 duplicate_fflags_regnum, duplicate_frm_regnum, and
6453 duplicate_fcsr_regnum fields.
6454
be64fd07
AB
64552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6458 callback, use the callback (when not null) to help number unknown
6459 registers.
6460 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6461 (tdesc_use_registers): Add extra parameter to declaration.
6462
3b9fce96
AB
64632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6466 in the file.
6467 (class riscv_pending_register_alias): Likewise.
6468 (riscv_register_feature::register_info): Change 'required_p' field
6469 to 'required', and change its type. Add 'check' member function.
6470 (riscv_register_feature::register_info::check): Define new member
6471 function.
6472 (riscv_xreg_feature): Change initialisation of 'required' field.
6473 (riscv_freg_feature): Likewise.
6474 (riscv_virtual_feature): Likewise.
6475 (riscv_csr_feature): Likewise.
6476 (riscv_check_tdesc_feature): Take extra parameter, the csr
6477 tdesc_feature, rewrite the function to use the new
6478 riscv_register_feature::register_info::check function.
6479 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6480
865bad26
AB
64812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * features/Makefile: Remove all references to the deleted files
6484 below.
6485 * features/riscv/32bit-csr.c: Deleted.
6486 * features/riscv/32bit-csr.xml: Deleted.
6487 * features/riscv/64bit-csr.c: Deleted.
6488 * features/riscv/64bit-csr.xml: Deleted.
6489 * features/riscv/rebuild-csr-xml.sh: Deleted.
6490
ed69cbc8
AB
64912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6494 whitespace error for declaration of names member variable.
6495 (struct riscv_register_feature): Add new prefer_first_name member
6496 variable, and fix whitespace error in declaration of registers.
6497 (riscv_xreg_feature): Initialize prefer_first_name field.
6498 (riscv_freg_feature): Likewise.
6499 (riscv_virtual_feature): Likewise.
6500 (riscv_csr_feature): Likewise.
6501 (riscv_register_name): Expand on comments. Remove register name
6502 modifications for CSR and virtual registers.
6503
4445e8f5
AB
65042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6507 errors.
6508
767a879e
AB
65092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6512 riscv-opc.h.
6513 (class riscv_pending_register_alias): New class.
6514 (riscv_check_tdesc_feature): Take vector of pending aliases and
6515 populate it as appropriate.
6516 (riscv_setup_register_aliases): Delete.
6517 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6518 to riscv_check_tdesc_feature in all cases. Use the vector to
6519 create the register aliases.
6520
bb6e55f3
RO
65212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6522
6523 * sol2-tdep.c (sol2_static_transform_name): Remove.
6524 (sol2_init_abi): Don't register it.
6525 * gdbarch.sh (static_transform_name): Remove.
6526 * gdbarch.c, gdbarch.h: Regenerate.
6527
6528 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6529 gdbarch_static_transform_name.
6530 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6531 * stabsread.c (define_symbol) <'X'>: Remove.
6532 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6533 handling.
6534 <'V'>: Likewise.
6535 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6536 <'S'>: Remove call to gdbarch_static_transform_name.
6537
c6d36836
RO
65382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6539
6540 * procfs.c (procfs_pre_trace): New function.
6541 (procfs_target::create_inferior): Pass it to fork_inferior.
6542
a7e6196b
RO
65432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6544
6545 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6546 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6547 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6548 sol2-tdep.o, sparc-sol2-tdep.o.
6549 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6550 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6551 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6552 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6553
d412e696
RO
65542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6555
6556 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6557 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6558 Call sol2_init_abi.
6559 Remove calls to set_gdbarch_skip_solib_resolver,
6560 set_gdbarch_core_pid_to_str.
6561 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6562 (i386_sol2_static_transform_name): Remove.
6563 (i386_sol2_init_abi): Call sol2_init_abi.
6564 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6565 set_gdbarch_static_transform_name,
6566 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6567 Use sol2_sigtramp_p.
6568 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6569 (sol2_sigtramp_p): New function.
6570 (sol2_static_transform_name): New function.
6571 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6572 (sol2_init_abi): New function.
6573 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6574 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6575 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6576 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6577 (sparc_sol2_static_transform_name): Remove.
6578 (sparc32_sol2_init_abi): Call sol2_init_abi.
6579 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6580 set_gdbarch_static_transform_name,
6581 set_gdbarch_skip_solib_resolver,
6582 set_gdbarch_core_pid_to_str.
6583 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6584 (sparc_sol2_static_transform_name): Remove
6585 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6586 call sol2_sigtramp_p.
6587 (sparc64_sol2_init_abi): Call sol2_init_abi.
6588 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6589 set_gdbarch_static_transform_name,
6590 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6591
a8654e7d
PW
65922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6593
6594 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6595 * exec.c (validate_exec_file): If from_tty, set both
6596 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6597 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6598 and from_tty, unconditionally ask a confirmation.
6599
caa7fd04
AB
66002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6601
6602 * target-descriptions.c (tdesc_architecture_name): Protect against
6603 NULL pointer dereference.
6604 (maint_print_xml_tdesc_cmd): New function.
6605 (_initialize_target_descriptions): Register new 'maint print
6606 xml-tdesc' command and give it the filename completer.
6607 * NEWS: Mention new 'maint print xml-tdesc' command.
6608
fbf42f4e
AB
66092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * target-descriptions.c (class tdesc_compatible_info): New class.
6612 (struct target_desc): Change type of compatible vector.
6613 (tdesc_compatible_p): Update for change in type of
6614 target_desc::compatible.
6615 (tdesc_compatible_info_list): New function.
6616 (tdesc_compatible_info_arch_name): New function.
6617 (tdesc_add_compatible): Update for change in type of
6618 target_desc::compatible.
6619 (print_c_tdesc::visit_pre): Likewise.
6620
20821f4e
AB
66212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6624 whitespace to underscore.
6625 (maint_print_c_tdesc_cmd): Use fake filename for target
6626 descriptions that came from the target.
6627 (_initialize_target_descriptions): Add filename command completion
6628 for 'maint print c-tdesc'.
6629
1fb5ee62
SM
66302020-06-23 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6633 lines.
6634
fc3ecb3e
SM
66352020-06-23 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6638 lines.
6639 (dwarf2_find_location_expression): Likewise.
6640 (call_site_parameter_matches): Likewise.
6641 (dwarf2_compile_expr_to_ax): Likewise.
6642 (disassemble_dwarf_expression): Likewise.
6643 (loclist_describe_location): Likewise.
6644
236ef034
PA
66452020-06-23 Pedro Alves <palves@redhat.com>
6646
6647 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6648 progspace-and-thread.h. Include scoped-mock-context.h instead.
6649 (register_to_value_test): Use scoped_mock_context.
6650 * regcache.c: Include "scoped-mock-context.h".
6651 (cooked_read_test): Don't error out if a target is already pushed.
6652 Use scoped_mock_context. Adjust.
6653 * scoped-mock-context.h: New file.
6654
39e7ecca
AB
66552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6658 initializer.
6659 (ada_language::is_string_type_p): New member function.
6660 * c-lang.c (c_language_data): Delete la_is_string_type_p
6661 initializer.
6662 (cplus_language_data): Likewise.
6663 (asm_language_data): Likewise.
6664 (minimal_language_data): Likewise.
6665 * d-lang.c (d_language_data): Likewise.
6666 * f-lang.c (f_is_string_type_p): Delete function, implementation
6667 moved to f_language::is_string_type_p.
6668 (f_language_data): Delete la_is_string_type_p initializer.
6669 (f_language::is_string_type_p): New member function,
6670 implementation from f_is_string_type_p.
6671 * go-lang.c (go_is_string_type_p): Delete function, implementation
6672 moved to go_language::is_string_type_p.
6673 (go_language_data): Delete la_is_string_type_p initializer.
6674 (go_language::is_string_type_p): New member function,
6675 implementation from go_is_string_type_p.
6676 * language.c (language_defn::is_string_type_p): Define new member
6677 function.
6678 (default_is_string_type_p): Make static, add comment copied from
6679 header file.
6680 (unknown_language_data): Delete la_is_string_type_p initializer.
6681 (unknown_language::is_string_type_p): New member function.
6682 (auto_language_data): Delete la_is_string_type_p initializer.
6683 (auto_language::is_string_type_p): New member function.
6684 * language.h (language_data): Delete la_is_string_type_p field.
6685 (language_defn::is_string_type_p): Declare new function.
6686 (default_is_string_type_p): Delete desclaration, move comment to
6687 definition.
6688 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6689 moved to m2_language::is_string_type_p.
6690 (m2_language_data): Delete la_is_string_type_p initializer.
6691 (m2_language::is_string_type_p): New member function,
6692 implementation from m2_is_string_type_p.
6693 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6694 initializer.
6695 * opencl-lang.c (opencl_language_data): Likewise.
6696 * p-lang.c (pascal_is_string_type_p): Delete function,
6697 implementation moved to pascal_language::is_string_type_p.
6698 (pascal_language_data): Delete la_is_string_type_p initializer.
6699 (pascal_language::is_string_type_p): New member function,
6700 implementation from pascal_is_string_type_p.
6701 * rust-lang.c (rust_is_string_type_p): Delete function,
6702 implementation moved to rust_language::is_string_type_p.
6703 (rust_language_data): Delete la_is_string_type_p initializer.
6704 (rust_language::is_string_type_p): New member function,
6705 implementation from rust_is_string_type_p.
6706 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6707 is_string_type_p.
6708
4ffc13fb
AB
67092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6710
6711 * ada-lang.c (ada_language_data): Delete la_print_typedef
6712 initializer.
6713 (ada_language::print_typedef): New member function.
6714 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
6720 (f_language::print_typedef): New member function.
6721 * go-lang.c (go_language_data): Delete la_print_typedef
6722 initializer.
6723 * language.c (language_defn::print_typedef): Define member
6724 function.
6725 (unknown_language_data): Delete la_print_typedef initializer.
6726 (unknown_language::print_typedef): New member function.
6727 (auto_language_data): Delete la_print_typedef initializer.
6728 (auto_language::print_typedef): New member function.
6729 * language.h (language_data): Delete la_print_typedef field.
6730 (language_defn::print_typedef): Declare new member function.
6731 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6732 (default_print_typedef): Delete declaration.
6733 * m2-lang.c (m2_language_data): Delete la_print_typedef
6734 initializer.
6735 (m2_language::print_typedef): New member function.
6736 * objc-lang.c (objc_language_data): Delete la_print_typedef
6737 initializer.
6738 * opencl-lang.c (opencl_language_data): Likewise.
6739 * p-lang.c (pascal_language_data): Likewise.
6740 (pascal_language::print_typedef): New member function.
6741 * rust-lang.c (rust_print_typedef): Delete function,
6742 implementation moved to rust_language::print_typedef.
6743 (rust_language): Delete la_print_typedef initializer.
6744 (rust_language::print_typedef): New member function,
6745 implementation from rust_print_typedef.
6746 * typeprint.c (default_print_typedef): Delete.
6747
d711ee67
AB
67482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6751 (ada_language::printstr): New member function.
6752 * c-lang.c (c_language_data): Delete la_printstr initializer.
6753 (cplus_language_data): Likewise.
6754 (asm_language_data): Likewise.
6755 (minimal_language_data): Likewise.
6756 * d-lang.c (d_language_data): Likewise.
6757 * f-lang.c (f_printstr): Rename to f_language::printstr.
6758 (f_language_data): Delete la_printstr initializer.
6759 (f_language::printstr): New member function, implementation from
6760 f_printstr.
6761 * go-lang.c (go_language_data): Delete la_printstr initializer.
6762 * language.c (language_defn::printstr): Define new member
6763 function.
6764 (unk_lang_printstr): Delete.
6765 (unknown_language_data): Delete la_printstr initializer.
6766 (unknown_language::printstr): New member function.
6767 (auto_language_data): Delete la_printstr initializer.
6768 (auto_language::printstr): New member function.
6769 * language.h (language_data): Delete la_printstr field.
6770 (language_defn::printstr): Declare new member function.
6771 (LA_PRINT_STRING): Update call to printstr.
6772 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6773 (m2_language_data): Delete la_printstr initializer.
6774 (m2_language::printstr): New member function, implementation from
6775 m2_printstr.
6776 * objc-lang.c (objc_language_data): Delete la_printstr
6777 initializer.
6778 * opencl-lang.c (opencl_language_data): Likewise.
6779 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6780 (pascal_language_data): Delete la_printstr initializer.
6781 (pascal_language::printstr): New member function, implementation
6782 from pascal_printstr.
6783 * p-lang.h (pascal_printstr): Delete declaration.
6784 * rust-lang.c (rust_printstr): Update header comment.
6785 (rust_language_data): Delete la_printstr initializer.
6786 (rust_language::printstr): New member function.
6787
52b50f2c
AB
67882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6791 (ada_language::printchar): New member function.
6792 * c-lang.c (c_language_data): Delete la_printchar initializer.
6793 (cplus_language_data): Likewise.
6794 (asm_language_data): Likewise.
6795 (minimal_language_data): Likewise.
6796 * d-lang.c (d_language_data): Likewise.
6797 * f-lang.c (f_printchar): Rename to f_language::printchar.
6798 (f_language_data): Delete la_printchar initializer.
6799 (f_language::printchar): New member function, implementation from
6800 f_printchar.
6801 * go-lang.c (go_language_data): Delete la_printchar initializer.
6802 * language.c (unk_lang_printchar): Delete.
6803 (language_defn::printchar): Define new member function.
6804 (unknown_language_data): Delete la_printchar initializer.
6805 (unknown_language::printchar): New member function.
6806 (auto_language_data): Delete la_printchar initializer.
6807 (auto_language::printchar): New member function.
6808 * language.h (language_data): Delete la_printchar field.
6809 (language_defn::printchar): Declare new member function.
6810 (LA_PRINT_CHAR): Update call to printchar.
6811 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6812 (m2_language::printchar): New member function.
6813 * objc-lang.c (objc_language_data): Delete la_printchar
6814 initializer.
6815 * opencl-lang.c (opencl_language_data): Likewise.
6816 * p-lang.c (pascal_language_data): Delete la_printchar
6817 initializer.
6818 (pascal_language::printchar): New member function.
6819 * rust-lang.c (rust_printchar): Rename to
6820 rust_language::printchar.
6821 (rust_language_data): Delete la_printchar initializer.
6822 (rust_language::printchar): New member function, implementation
6823 from rust_printchar.
6824
ec8cec5b
AB
68252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6828 (ada_language_data): Delete la_emitchar initializer.
6829 (ada_language::emitchar): New member function, implementation from
6830 emit_char.
6831 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6832 (cplus_language_data): Likewise.
6833 (asm_language_data): Likewise.
6834 (minimal_language_data): Likewise.
6835 * d-lang.c (d_language_data): Likewise.
6836 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6837 (f_language_data): Delete la_emitchar initializer.
6838 (f_language::emitchar): New member function, implementation from
6839 f_emit_char.
6840 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6841 * language.c (unk_lang_emit_char): Delete.
6842 (language_defn::emitchar): New member function definition.
6843 (unknown_language_data): Delete la_emitchar initializer.
6844 (unknown_language::emitchar): New member function.
6845 (auto_language_data): Delete la_emitchar initializer.
6846 (auto_language::emitchar): New member function.
6847 * language.h (language_data): Delete la_emitchar field.
6848 (language_defn::emitchar): New member field declaration.
6849 (LA_EMIT_CHAR): Update call to emitchar.
6850 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6851 (m2_language_data): Delete la_emitchar initializer.
6852 (m2_language::emitchar): New member function, implementation from
6853 m2_emit_char.
6854 * objc-lang.c (objc_language_data): Delete la_emitchar
6855 initializer.
6856 * opencl-lang.c (opencl_language_data): Likewise.
6857 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6858 (pascal_language_data): Delete la_emitchar initializer.
6859 (pascal_language::emitchar): New member function, implementation
6860 from pascal_emit_char.
6861 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6862 (rust_language_data): Delete la_emitchar initializer.
6863 (rust_language::emitchar): New member function, implementation
6864 from rust_emitchar.
6865
1bf9c363
AB
68662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6869 (ada_language_data): Delete la_post_parser initializer.
6870 (ada_language::post_parser): New member function.
6871 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6872 (cplus_language_data): Likewise.
6873 (asm_language_data): Likewise.
6874 (minimal_language_data): Likewise.
6875 * d-lang.c (d_language_data): Likewise.
6876 * f-lang.c (f_language_data): Likewise.
6877 * go-lang.c (go_language_data): Likewise.
6878 * language.c (unknown_language_data): Likewise.
6879 (auto_language_data): Likewise.
6880 * language.h (language_data): Delete la_post_parser field.
6881 (language_defn::post_parser): New member function.
6882 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6883 * objc-lang.c (objc_language_data): Likewise.
6884 * opencl-lang.c (opencl_language_data): Likewise.
6885 * p-lang.c (pascal_language_data): Likewise.
6886 * parse.c (parse_exp_in_context): Update call to post_parser.
6887 (null_post_parser): Delete definition.
6888 * parser-defs.h (null_post_parser): Delete declaration.
6889 * rust-lang.c (rust_language_data): Delete la_post_parser
6890 initializer.
6891
87afa652
AB
68922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6893
6894 * ada-lang.c (parse): Rename to ada_language::parser.
6895 (ada_language_data): Delete la_parser initializer.
6896 (ada_language::parser): New member function, implementation from
6897 parse.
6898 * c-lang.c (c_language_data): Delete la_parser initializer.
6899 (cplus_language_data): Likewise.
6900 (asm_language_data): Likewise.
6901 (minimal_language_data): Likewise.
6902 * d-lang.c (d_language_data): Likewise.
6903 (d_language::parser): New member function.
6904 * f-lang.c (f_language_data): Delete la_parser initializer.
6905 (f_language::parser): New member function.
6906 * go-lang.c (go_language_data): Delete la_parser initializer.
6907 (go_language::parser): New member function.
6908 * language.c (unk_lang_parser): Delete.
6909 (language_defn::parser): Define new member function.
6910 (unknown_language_data): Delete la_parser initializer.
6911 (unknown_language::parser): New member function.
6912 (auto_language_data): Delete la_parser initializer.
6913 (auto_language::parser): New member function.
6914 * language.h (language_data): Delete la_parser field.
6915 (language_defn::parser): Declare new member function.
6916 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6917 (m2_language::parser): New member function.
6918 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6919 * opencl-lang.c (opencl_language_data): Likewise.
6920 * p-lang.c (pascal_language_data): Likewise.
6921 (pascal_language::parser): New member function.
6922 * parse.c (parse_exp_in_context): Update call to parser.
6923 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6924 (rust_language::parser): New member function.
6925
37825800
AB
69262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * top.c (print_gdb_configuration): Print --with-python-libdir
6929 configuration value.
6930
5b860c93
PW
69312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6932
6933 * NEWS: Mention change to the alias command.
6934
cf00cd6f
PW
69352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6936
6937 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6938 (alias_command_completer)
6939 (make_alias_options_def_group): New functions.
6940 (alias_opts, alias_option_defs): New struct and array.
6941 (alias_usage_error): Update usage.
6942 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6943 Use option framework.
6944 (_initialize_cli_cmds): Update alias command help.
6945 Update aliases command help.
6946 (show_user):
6947 Add NULL for new default_args lookup_cmd argument.
6948 (valid_command_p): Rename to validate_aliased_command.
6949 Add NULL for new default_args lookup_cmd argument. Verify that the
6950 aliased_command has no default args.
6951 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6952 (lookup_cmd_1, lookup_cmd): New argument default_args.
6953 (add_alias_cmd):
6954 Add NULL for new default_args lookup_cmd argument.
6955 (print_help_for_command): Show default args under the layout
6956 alias some_alias = some_aliased_cmd some_alias_default_arg.
6957 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6958 xfree default_args in destructor.
6959 * cli/cli-script.c (process_next_line, do_define_command):
6960 Add NULL for new default_args lookup_cmd argument.
6961 * command.h: Declare new default_args argument in lookup_cmd
6962 and lookup_cmd_1.
6963 * completer.c (complete_line_internal_1):
6964 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6965 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6966 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6967 Likewise.
6968 * infcmd.c (_initialize_infcmd): Likewise.
6969 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6970 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6971 * python/py-param.c (add_setshow_generic): Likewise.
6972 * remote.c (_initialize_remote): Likewise.
6973 * top.c (execute_command): Prepend default_args if command has some.
6974 (set_verbose):
6975 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6976 * tracepoint.c (validate_actionline, encode_actions_1):
6977 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6978
bd920864
TBA
69792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6980
6981 * jit.c (jit_read_descriptor): Use bool as the return type.
6982 (jit_breakpoint_re_set_internal): Use bool as the return type.
6983 Invert the return value logic; return true if the jit breakpoint
6984 has been successfully initialized.
6985 (jit_inferior_init): Update the call to
6986 jit_breakpoint_re_set_internal.
6987
f8098322
PA
69882020-06-22 Pedro Alves <palves@redhat.com>
6989
6990 PR gdb/25939
6991 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6992 Use the current inferior instead. Don't return
6993 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6994 wait again.
6995 * sol-thread.c (sol_thread_target::wait): Don't reference
6996 inferior_ptid.
6997 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6998 (sol_update_thread_list_callback): Use the current inferior's pid
6999 instead of inferior_ptid.
7000
196535a6
RO
70012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7002
7003 * procfs.c: Cleanup many comments.
7004
7005 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7006 (AFTER_WATCHFLAG): Replace by value.
7007
7008 (MAIN_PROC_NAME_FORMAT): Inline ...
7009 (create_procinfo): ... here.
7010
7011 (procfs_debug_inferior): Remove SYS_exec handling.
7012 (syscall_is_exec): Likewise.
7013 (procfs_set_exec_trap): Likewise.
7014
7015 (syscall_is_lwp_exit): Inline in callers.
7016 (syscall_is_exit): Likewise.
7017 (syscall_is_exec): Likewise.
7018 (syscall_is_lwp_create): Likewise.
7019
7020 (invalidate_cache): Remove #if 0 code.
7021
7022 (make_signal_thread_runnable): Remove.
7023 (procfs_target::resume): Remove #if 0 code.
7024
cf6f3e86
RO
70252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7026
7027 PR gdb/25939
7028 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7029 call ...
7030 (procfs_target::create_inferior): ... here.
7031
48e9cc84
PW
70322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7033
7034 * exec.c (validate_exec_file): Ensure the build-id is up to
7035 date by calling reopen_exec_file (that checks file timestamp
7036 to decide to re-read the file).
7037
3922b302
PA
70382020-06-18 Pedro Alves <palves@redhat.com>
7039
7040 PR gdb/25412
7041 * gdbthread.h (delete_thread, delete_thread_silent)
7042 (find_thread_ptid): Update comments.
7043 * thread.c (current_thread_): New global.
7044 (is_current_thread): Move higher, and reimplement.
7045 (inferior_thread): Reimplement.
7046 (set_thread_exited): Use bool. Add assertions.
7047 (add_thread_silent): Simplify thread-reuse handling by always
7048 calling delete_thread.
7049 (delete_thread): Remove intro comment.
7050 (find_thread_ptid): Skip exited threads.
7051 (switch_to_thread_no_regs): Write to current_thread_.
7052 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7053 INFERIOR_PTID. Clear current_thread_.
7054
6dbdab44
PA
70552020-06-18 Pedro Alves <palves@redhat.com>
7056
7057 * aix-thread.c (pd_update): Use switch_to_thread.
7058
2da4b788
PA
70592020-06-18 Pedro Alves <palves@redhat.com>
7060
7061 * ravenscar-thread.c (ravenscar_thread_target): Update.
7062 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7063 (ravenscar_thread_target::add_active_thread): ... this. Don't
7064 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7065 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7066
50838d1b
PA
70672020-06-18 Pedro Alves <palves@redhat.com>
7068
7069 * nat/windows-nat.c (current_windows_thread): Remove.
7070 * nat/windows-nat.h (current_windows_thread): Remove.
7071 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7072 Adjust.
7073 (display_selectors): Adjust to fetch the current
7074 windows_thread_info based on inferior_ptid.
7075 (fake_create_process): No longer write to current_windows_thread.
7076 (windows_nat_target::get_windows_debug_event):
7077 Don't set inferior_ptid or current_windows_thread.
7078 (windows_nat_target::wait): Adjust to not rely on
7079 current_windows_thread.
7080 (do_initial_windows_stuff): Now a method of windows_nat_target.
7081 Switch to the last_ptid thread.
7082 (windows_nat_target::attach): Adjust.
7083 (windows_nat_target::detach): Use switch_to_no_thread instead of
7084 writing to inferior_ptid directly.
7085 (windows_nat_target::create_inferior): Adjust.
7086
31ce04e9
PA
70872020-06-18 Pedro Alves <palves@redhat.com>
7088
7089 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7090
1ee1a363
PA
70912020-06-18 Pedro Alves <palves@redhat.com>
7092
7093 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7094 after creating it, instead of writing to inferior_ptid. Don't
7095 write to inferior_ptid.
7096
6d350754
PA
70972020-06-18 Pedro Alves <palves@redhat.com>
7098
7099 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7100
5d971d48
PA
71012020-06-18 Pedro Alves <palves@redhat.com>
7102
7103 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7104 it, instead of writing to inferior_ptid.
7105
86e57d1b
PA
71062020-06-18 Pedro Alves <palves@redhat.com>
7107
7108 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7109 to inferior_ptid.
7110
f2e1c129
PA
71112020-06-18 Pedro Alves <palves@redhat.com>
7112
7113 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7114 instead of writing to inferior_ptid directly.
7115
60db1b85
PA
71162020-06-18 Pedro Alves <palves@redhat.com>
7117
7118 * corelow.c (core_target::close): Use switch_to_no_thread instead
7119 of writing to inferior_ptid directly.
7120 (add_to_thread_list, core_target_open): Use switch_to_thread
7121 instead of writing to inferior_ptid directly.
7122
fe7d6a8d
PA
71232020-06-18 Pedro Alves <palves@redhat.com>
7124
7125 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7126 inferior_ptid.
7127 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7128 inferior_ptid.
7129 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7130 inferior_ptid directly.
7131 (darwin_nat_target::init_thread_list): Switch to thread, instead
7132 of writing to inferior_ptid.
7133 (darwin_nat_target::attach): Don't write to inferior_ptid.
7134 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7135
975f8708
PA
71362020-06-18 Pedro Alves <palves@redhat.com>
7137
7138 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7139 thread.
7140 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7141 Instead use switch_to_thread.
7142 (gnu_nat_target::detach): Use switch_to_no_thread
7143 instead of writing to inferior_ptid directly. Used passed-in
7144 inferior instead of looking up the inferior by pid.
7145
1a204730
PA
71462020-06-18 Pedro Alves <palves@redhat.com>
7147
7148 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7149 inferior_ptid.
7150
ebe84f23
PA
71512020-06-18 Pedro Alves <palves@redhat.com>
7152
7153 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7154 inferior_ptid.
7155 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7156 thread.
7157 (nto_procfs_target::detach): Avoid referencing
7158 inferior_ptid. Use switch_to_no_thread instead of writing to
7159 inferior_ptid directly.
7160 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7161 instead of writing to inferior_ptid directly.
7162 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7163 to thread.
7164
191f02e5
PA
71652020-06-18 Pedro Alves <palves@redhat.com>
7166
7167 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7168 after creating it, instead of writing to inferior_ptid.
7169 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7170 to inferior_ptid directly.
7171 (gdbsim_target::wait): Don't write to inferior_ptid.
7172
0ac55310
PA
71732020-06-18 Pedro Alves <palves@redhat.com>
7174
7175 * remote.c (remote_target::remote_notice_new_inferior): Use
7176 switch_to_thread instead of writing to inferior_ptid directly.
7177 (remote_target::add_current_inferior_and_thread): Use
7178 switch_to_no_thread instead of writing to inferior_ptid directly.
7179 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7180 and switch_to_thread instead of using set_current_inferior or
7181 writing to inferior_ptid directly.
7182
5233f39b
PA
71832020-06-18 Pedro Alves <palves@redhat.com>
7184
7185 * tracectf.c (ctf_target_open): Switch to added thread instead of
7186 writing to inferior_ptid directly.
7187 (ctf_target::close): Use switch_to_no_thread instead of writing to
7188 inferior_ptid directly.
7189
087e161b
PA
71902020-06-18 Pedro Alves <palves@redhat.com>
7191
7192 * tracefile-tfile.c (tfile_target_open): Don't write to
7193 inferior_ptid directly, instead switch to added thread.
7194 (tfile_target::close): Use switch_to_no_thread instead of writing
7195 to inferior_ptid directly.
7196
7fb43e53
PA
71972020-06-18 Pedro Alves <palves@redhat.com>
7198
7199 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7200 (procfs_target::detach): Use switch_to_no_thread
7201 instead of writing to inferior_ptid directly.
7202 (do_attach): Change return type to void. Switch to the added
7203 thread.
7204 (procfs_target::create_inferior): Switch to the added thread.
7205 (procfs_do_thread_registers): Don't write to inferior_ptid.
7206
18493a00
PA
72072020-06-18 Pedro Alves <palves@redhat.com>
7208
7209 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7210 of writing to inferior_ptid.
7211 (scoped_restore_exited_inferior): Delete.
7212 (handle_vfork_child_exec_or_exit): Simplify using
7213 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7214 instead of writing to inferior_ptid.
7215 (THREAD_STOPPED_BY): Delete.
7216 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7217 (thread_stopped_by_hw_breakpoint): Delete.
7218 (save_waitstatus): Use
7219 scoped_restore_current_thread+switch_to_thread, and call
7220 target_stopped_by_watchpoint instead of
7221 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7222 instead of thread_stopped_by_sw_breakpoint, and
7223 target_stopped_by_hw_breakpoint instead of
7224 thread_stopped_by_hw_breakpoint.
7225 (handle_inferior_event)
7226 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7227 inferior_ptid directly, nor
7228 set_current_inferior/set_current_program_space. Use
7229 switch_to_thread / switch_to_inferior_no_thread instead.
7230
a0776b13
PA
72312020-06-18 Pedro Alves <palves@redhat.com>
7232
7233 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7234 instead of writing to inferior_ptid.
7235
6155c136
PA
72362020-06-18 Pedro Alves <palves@redhat.com>
7237
7238 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7239 added thread.
7240 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7241 to the added thread.
7242 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7243 instead of writing to inferior_ptid.
7244
c5316fc6
PA
72452020-06-18 Pedro Alves <palves@redhat.com>
7246
7247 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7248 (register_to_value_test): Mock a program_space too. Heap-allocate
7249 the address space. Don't write to inferior_ptid. Use
7250 switch_to_thread instead.
7251
8df01799
PA
72522020-06-18 Pedro Alves <palves@redhat.com>
7253
7254 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7255 Delete.
7256 (find_signalled_thread()): New, factored out from
7257 linux_make_corefile_notes and adjusted to handle exited threads.
7258 (linux_make_corefile_notes): Adjust to use the new
7259 find_signalled_thread.
7260
41792d68
PA
72612020-06-18 Pedro Alves <palves@redhat.com>
7262
7263 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7264 of saving/restoring inferior_ptid.
7265
612f258a
TT
72662020-06-17 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7269 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7270 declare.
7271 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7272
efb763a5
SM
72732020-06-15 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7276 of partial symtabs.
7277
2951f6c0
SM
72782020-06-17 Simon Marchi <simon.marchi@efficios.com>
7279
7280 * regformats/reg-arm.dat: Remove.
7281 * regformats/reg-bfin.dat: Remove.
7282 * regformats/reg-cris.dat: Remove.
7283 * regformats/reg-crisv32.dat: Remove.
7284 * regformats/reg-m32r.dat: Remove.
7285 * regformats/reg-tilegx.dat: Remove.
7286 * regformats/reg-tilegx32.dat: Remove.
7287
7d458ea5
SM
72882020-06-17 Simon Marchi <simon.marchi@efficios.com>
7289
7290 * features/Makefile (WHICH): Remove arm files.
7291 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7292 * regformats/arm/arm-with-neon.dat: Remove.
7293 * regformats/arm/arm-with-vfpv2.dat: Remove.
7294 * regformats/arm/arm-with-vfpv3.dat: Remove.
7295
3af96c0d
SM
72962020-06-17 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * features/Makefile (XMLTOC): Remove rx.xml.
7299
b25e22fd
PA
73002020-06-17 Pedro Alves <palves@redhat.com>
7301
7302 * gdbthread.h (thread_control_state) <trap_expected> Update
7303 comments.
7304
a78a19b1
AB
73052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7306
7307 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7308 ada_language::lookup_symbol_nonlocal.
7309 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7310 (ada_language::lookup_symbol_nonlocal): New member function,
7311 implementation from ada_lookup_symbol_nonlocal.
7312 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7313 initializer.
7314 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7315 initializer.
7316 (cplus_language::lookup_symbol_nonlocal): New member function.
7317 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7318 (minimal_language_data) Likewise.
7319 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7320 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7321 initializer.
7322 (d_language::lookup_symbol_nonlocal): New member function.
7323 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7324 initializer.
7325 (f_language::lookup_symbol_nonlocal): New member function.
7326 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7327 initializer.
7328 * language.c (unknown_language_data): Likewise.
7329 (auto_language_data): Likewise.
7330 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7331 field.
7332 (language_defn::lookup_symbol_nonlocal): New member function.
7333 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7334 initializer.
7335 * objc-lang.c (objc_language_data): Likewise.
7336 * opencl-lang.c (opencl_language_data): Likewise.
7337 * p-lang.c (pascal_language_data): Likewise.
7338 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7339 rust_language::lookup_symbol_nonlocal.
7340 (rust_language_data): Delete la_lookup_symbol_nonlocal
7341 initializer.
7342 (rust_language::lookup_symbol_nonlocal): New member function,
7343 implementation from rust_lookup_symbol_nonlocal.
7344 * symtab.c (lookup_symbol_aux): Update call to
7345 lookup_symbol_nonlocal.
7346 (basic_lookup_symbol_nonlocal): Rename to...
7347 (language_defn::lookup_symbol_nonlocal): ...this, and update
7348 header comment. Remove language_defn parameter, and replace with
7349 uses of `this'.
7350 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7351
ebe2334e
AB
73522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7353
7354 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7355 initializer.
7356 (ada_language::value_print_inner): New member function.
7357 * c-lang.c (c_language_data): Delete la_value_print_inner
7358 initializer.
7359 (cplus_language_data): Likewise.
7360 (asm_language_data): Likewise.
7361 (minimal_language_data): Likewise.
7362 * d-lang.c (d_language_data): Likewise.
7363 (d_language::value_print_inner): New member function.
7364 * f-lang.c (f_language_data): Delete la_value_print_inner
7365 initializer.
7366 (f_language::value_print_inner): New member function.
7367 * f-lang.h (f_value_print_innner): Rename to...
7368 (f_value_print_inner): ...this (note spelling of 'inner').
7369 * f-valprint.c (f_value_print_innner): Rename to...
7370 (f_value_print_inner): ...this (note spelling of 'inner').
7371 * go-lang.c (go_language_data): Delete la_value_print_inner
7372 initializer.
7373 (go_language::value_print_inner): New member function.
7374 * language.c (language_defn::value_print_inner): Define new member
7375 function.
7376 (unk_lang_value_print_inner): Delete.
7377 (unknown_language_data): Delete la_value_print_inner initializer.
7378 (unknown_language::value_print_inner): New member function.
7379 (auto_language_data): Delete la_value_print_inner initializer.
7380 (auto_language::value_print_inner): New member function.
7381 * language.h (language_data): Delete la_value_print_inner field.
7382 (language_defn::value_print_inner): Delcare new member function.
7383 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7384 initializer.
7385 (m2_language::value_print_inner): New member function.
7386 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7387 initializer.
7388 * opencl-lang.c (opencl_language_data): Likewise.
7389 * p-lang.c (pascal_language_data): Likewise.
7390 (pascal_language::value_print_inner): New member function.
7391 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7392 initializer.
7393 (rust_language::value_print_inner): New member function.
7394 * valprint.c (do_val_print): Update call to value_print_inner.
7395
a1d1fa3e
AB
73962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * ada-lang.c (ada_language_data): Delete la_value_print
7399 initializer.
7400 (ada_language::value_print): New member function.
7401 * c-lang.c (c_language_data): Delete la_value_print initializer.
7402 (cplus_language_data): Likewise.
7403 (asm_language_data): Likewise.
7404 (minimal_language_data): Likewise.
7405 * d-lang.c (d_language_data): Likewise.
7406 * f-lang.c (f_language_data): Likewise.
7407 * go-lang.c (go_language_data): Likewise.
7408 * language.c (unk_lang_value_print): Delete.
7409 (language_defn::value_print): Define new member function.
7410 (unknown_language_data): Delete la_value_print initializer.
7411 (unknown_language::value_print): New member function.
7412 (auto_language_data): Delete la_value_print initializer.
7413 (auto_language::value_print): New member function.
7414 * language.h (language_data): Delete la_value_print field.
7415 (language_defn::value_print): Declare new member function.
7416 (LA_VALUE_PRINT): Update call to value_print.
7417 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7418 * objc-lang.c (objc_language_data): Likewise.
7419 * opencl-lang.c (opencl_language_data): Likewise.
7420 * p-lang.c (pascal_language_data): Likewise.
7421 (pascal_language::value_print): New member function.
7422 * rust-lang.c (rust_language_data): Delete la_value_print
7423 initializer.
7424
f16a9f57
AB
74252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * ada-lang.c (ada_watch_location_expression): Rename to
7428 ada_language::watch_location_expression.
7429 (ada_language_data): Delete la_watch_location_expression
7430 initializer.
7431 (ada_language::watch_location_expression): New member function,
7432 implementation from ada_watch_location_expression.
7433 * breakpoint.c (watch_command_1): Update call to
7434 watch_location_expression.
7435 * c-lang.c (c_watch_location_expression): Rename to
7436 language_defn::watch_location_expression.
7437 (c_language_data): Delete la_watch_location_expression
7438 initializer.
7439 (cplus_language_data): Likewise.
7440 (asm_language_data): Likewise.
7441 (minimal_language_data): Likewise.
7442 * c-lang.h (c_watch_location_expression): Delete declaration.
7443 * d-lang.c (d_language_data): Delete la_watch_location_expression
7444 initializer.
7445 * f-lang.c (f_language_data): Likewise.
7446 * go-lang.c (go_language_data): Likewise.
7447 * language.c (language_defn::watch_location_expression): Member
7448 function implementation from c_watch_location_expression.
7449 (unknown_language_data): Delete la_watch_location_expression
7450 initializer.
7451 (auto_language_data): Likewise.
7452 * language.h (language_data): Delete la_watch_location_expression
7453 field.
7454 (language_defn::watch_location_expression): Declare new member
7455 function.
7456 * m2-lang.c (m2_language_data): Delete
7457 la_watch_location_expression initializer.
7458 * objc-lang.c (objc_language_data): Likewise.
7459 * opencl-lang.c (opencl_language_data): Likewise.
7460 * p-lang.c (pascal_language_data): Likewise.
7461 * rust-lang.c (rust_watch_location_expression): Rename to
7462 rust_language::watch_location_expression.
7463 (rust_language_data): Delete la_watch_location_expression
7464 initializer.
7465 (rust_language::watch_location_expression): New member function,
7466 implementation from rust_watch_location_expression.
7467
7e56227d
AB
74682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7471 ada_language::collect_symbol_completion_matches.
7472 (ada_language_data): Delete la_collect_symbol_completion_matches
7473 initializer.
7474 (ada_language::collect_symbol_completion_matches): New member
7475 function, implementation from
7476 ada_collect_symbol_completion_matches.
7477 * c-lang.c (c_language_data): Delete
7478 la_collect_symbol_completion_matches initializer.
7479 (cplus_language_data): Likewise.
7480 (asm_language_data): Likewise.
7481 (minimal_language_data): Likewise.
7482 * d-lang.c (d_language_data): Likewise.
7483 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7484 f_language::collect_symbol_completion_matches.
7485 (f_language_data): Delete la_collect_symbol_completion_matches
7486 initializer.
7487 (f_language::collect_symbol_completion_matches) New member
7488 function, implementation from f_collect_symbol_completion_matches.
7489 * go-lang.c (go_language_data): Delete
7490 la_collect_symbol_completion_matches initializer.
7491 * language.c (unknown_language_data): Likewise.
7492 (auto_language_data): Likewise.
7493 * language.h (language_data): Delete
7494 la_collect_symbol_completion_matches field.
7495 (language_defn::collect_symbol_completion_matches): New member
7496 function.
7497 * m2-lang.c (m2_language_data): Delete
7498 la_collect_symbol_completion_matches initializer.
7499 * objc-lang.c (objc_language_data): Likewise.
7500 * opencl-lang.c (opencl_language_data): Likewise.
7501 * p-lang.c (pascal_language_data): Likewise.
7502 * rust-lang.c (rust_language_data): Likewise.
7503 * symtab.c (default_collect_symbol_completion_matches): Delete.
7504 (collect_symbol_completion_matches): Update call to
7505 collect_symbol_completion_matches.
7506 (collect_symbol_completion_matches_type): Likewise.
7507 * symtab.h (default_collect_symbol_completion_matches): Delete
7508 declaration.
7509
53fc67f8
AB
75102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7513 (ada_language_data): Delete la_word_break_characters initializer.
7514 (ada_language::word_break_characters): New member function.
7515 * c-lang.c (c_language_data): Delete la_word_break_characters
7516 initializer.
7517 (cplus_language_data): Likewise.
7518 (asm_language_data): Likewise.
7519 (minimal_language_data): Likewise.
7520 * completer.c: Update global comment.
7521 (advance_to_expression_complete_word_point): Update call to
7522 word_break_characters.
7523 (complete_files_symbols): Likewise.
7524 (complete_line_internal_1): Likewise.
7525 (default_completer_handle_brkchars): Likewise.
7526 (skip_quoted_chars): Likewise.
7527 * d-lang.c (d_language_data): Delete la_word_break_characters
7528 initializer.
7529 * f-lang.c (f_word_break_characters): Delete.
7530 (f_language_data): Delete la_word_break_characters initializer.
7531 (f_language::word_break_characters): New member function.
7532 * go-lang.c (go_language_data): Delete la_word_break_characters
7533 initializer.
7534 * language.c (unknown_language_data): Likewise.
7535 (auto_language_data): Likewise.
7536 * language.h (default_word_break_characters): Move declaration to
7537 earlier in the file.
7538 (language_data): Delete la_word_break_characters field.
7539 (language_defn::word_break_characters): New member function.
7540 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7541 initializer.
7542 * objc-lang.c (objc_language_data): Likewise.
7543 * opencl-lang.c (opencl_language_data): Likewise.
7544 * p-lang.c (pascal_language_data): Likewise.
7545 * rust-lang.c (rust_language_data): Likewise.
7546
c9debfb9
AB
75472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7550 (ada_language_data): Delete la_get_symbol_name_matcher
7551 initializer.
7552 (language_defn::get_symbol_name_matcher_inner): New member
7553 function.
7554 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7555 initializer.
7556 (cplus_language_data): Likewise.
7557 (cplus_language::get_symbol_name_matcher_inner): New member
7558 function.
7559 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7560 (minimal_language_data): Likewise.
7561 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7562 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7563 initializer.
7564 * dictionary.c (iter_match_first_hashed): Update call to
7565 get_symbol_name_matcher.
7566 (iter_match_next_hashed): Likewise.
7567 (iter_match_next_linear): Likewise.
7568 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7569 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7570 initializer.
7571 (f_language::get_symbol_name_matcher_inner): New member function.
7572 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7573 initializer.
7574 * language.c (default_symbol_name_matcher): Update header comment,
7575 make static.
7576 (language_defn::get_symbol_name_matcher): New definition.
7577 (language_defn::get_symbol_name_matcher_inner): Likewise.
7578 (get_symbol_name_matcher): Delete.
7579 (unknown_language_data): Delete la_get_symbol_name_matcher
7580 initializer.
7581 (auto_language_data): Likewise.
7582 * language.h (language_data): Delete la_get_symbol_name_matcher
7583 field.
7584 (language_defn::get_symbol_name_matcher): New member function.
7585 (language_defn::get_symbol_name_matcher_inner): Likewise.
7586 (default_symbol_name_matcher): Delete declaration.
7587 * linespec.c (find_methods): Update call to
7588 get_symbol_name_matcher.
7589 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7590 initializer.
7591 * minsyms.c (lookup_minimal_symbol): Update call to
7592 get_symbol_name_matcher.
7593 (iterate_over_minimal_symbols): Likewise.
7594 * objc-lang.c (objc_language_data): Delete
7595 la_get_symbol_name_matcher initializer.
7596 * opencl-lang.c (opencl_language_data): Likewise.
7597 * p-lang.c (pascal_language_data): Likewise.
7598 * psymtab.c (psymbol_name_matches): Update call to
7599 get_symbol_name_matcher.
7600 * rust-lang.c (rust_language_data): Delete
7601 la_get_symbol_name_matcher initializer.
7602 * symtab.c (symbol_matches_search_name): Update call to
7603 get_symbol_name_matcher.
7604 (compare_symbol_name): Likewise.
7605
9a49ad8c
AB
76062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7607
7608 * ada-lang.c (ada_language_data): Delete la_compute_program
7609 initializer.
7610 * c-lang.c (c_language_data): Likewise.
7611 (c_language::compute_program): New member function.
7612 (cplus_language_data): Delete la_compute_program initializer.
7613 (cplus_language::compute_program): New member function.
7614 (asm_language_data): Delete la_compute_program initializer.
7615 (minimal_language_data): Likewise.
7616 * c-lang.h (c_compute_program): Update comment.
7617 (cplus_compute_program): Likewise.
7618 * compile/compile-c-support.c (c_compute_program): Likewise.
7619 (cplus_compute_program): Likewise.
7620 * compile/compile.c (compile_to_object): Update call to
7621 la_compute_program.
7622 * d-lang.c (d_language_data): Delete la_compute_program
7623 initializer.
7624 * f-lang.c (f_language_data): Likewise.
7625 * go-lang.c (go_language_data): Likewise.
7626 * language.c (unknown_language_data): Likewise.
7627 (auto_language_data): Likewise.
7628 * language.h (language_data): Delete la_compute_program field.
7629 (language_defn::compute_program): New member function.
7630 * m2-lang.c (m2_language_data): Delete la_compute_program
7631 initializer.
7632 * objc-lang.c (objc_language_data): Likewise.
7633 * opencl-lang.c (opencl_language_data): Likewise.
7634 * p-lang.c (pascal_language_data): Likewise.
7635 * rust-lang.c (rust_language_data): Likewise.
7636
eff93b4d
AB
76372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * ada-lang.c (ada_language_data) Delete
7640 la_class_name_from_physname initializer.
7641 * c-lang.c (c_language_data): Likewise.
7642 (cplus_language_data): Likewise.
7643 (cplus_language::class_name_from_physname): New member function.
7644 (asm_language_data): Delete la_class_name_from_physname
7645 initializer.
7646 (minimal_language_data): Likewise.
7647 * d-lang.c (d_language_data): Likewise.
7648 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7649 method on language_defn class.
7650 (guess_full_die_structure_name): Likewise.
7651 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7652 initializer.
7653 * go-lang.c (go_language_data): Likewise.
7654 * language.c (language_class_name_from_physname): Delete.
7655 (unk_lang_class_name): Delete.
7656 (unknown_language_data): Delete la_class_name_from_physname
7657 initializer.
7658 (auto_language_data): Likewise.
7659 * language.h (language_data): Delete la_class_name_from_physname
7660 field.
7661 (language_defn::class_name_from_physname): New function.
7662 (language_class_name_from_physname): Delete declaration.
7663 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7664 initializer.
7665 * objc-lang.c (objc_language_data): Likewise.
7666 * opencl-lang.c (opencl_language_data): Likewise.
7667 * p-lang.c (pascal_language_data): Likewise.
7668 * rust-lang.c (rust_language_data): Likewise.
7669
de543742
TT
76702020-06-16 Tom Tromey <tom@tromey.com>
7671
7672 * tui/tui-data.h (STATUS_NAME): New macro.
7673 * tui/tui-layout.c (tui_remove_some_windows)
7674 (initialize_known_windows, tui_register_window)
7675 (tui_layout_split::remove_windows, initialize_layouts)
7676 (tui_new_layout_command): Don't use hard-coded window names.
7677
a350efd4
TT
76782020-06-16 Tom Tromey <tom@tromey.com>
7679
7680 PR tui/25348:
7681 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7682 tui_initialize_readline. Only run once. Call rl_initialize.
7683 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7684 tui_initialize_readline.
7685 * tui/tui-io.c (tui_setup_io): Call
7686 tui_ensure_readline_initialized.
7687 * tui/tui-interp.c (tui_interp::init): Update.
7688
39ec0490
TT
76892020-06-16 Tom Tromey <tom@tromey.com>
7690
7691 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7692 Also preserve the status window.
7693
d2d1ea20
TT
76942020-06-16 Tom Tromey <tom@tromey.com>
7695
7696 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7697 where m_window==nullptr.
7698
66920317
TT
76992020-06-15 Tom Tromey <tromey@adacore.com>
7700
7701 * windows-nat.c (windows_nat::handle_output_debug_string):
7702 Update.
7703 (windows_nat::handle_ms_vc_exception): Update.
7704 * target.h (target_read_string): Change API.
7705 * target.c (target_read_string): Change API.
7706 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7707 Update.
7708 * solib-frv.c (frv_current_sos): Update.
7709 * solib-dsbt.c (dsbt_current_sos): Update.
7710 * solib-darwin.c (darwin_current_sos): Update.
7711 * linux-thread-db.c (inferior_has_bug): Update.
7712 * expprint.c (print_subexp_standard): Update.
7713 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7714 (ada_exception_message_1): Update.
7715
a5d871dd
TT
77162020-06-15 Tom Tromey <tromey@adacore.com>
7717
7718 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7719
670e35fa
TT
77202020-06-15 Tom Tromey <tromey@adacore.com>
7721
7722 * valprint.c (read_string): Update comment.
7723 * target.c (MIN): Remove.
7724 (target_read_string): Rewrite.
7725
f5272a3b
TT
77262020-06-15 Tom Tromey <tromey@adacore.com>
7727
7728 * corefile.c (read_memory_string): Remove.
7729 * ada-valprint.c (ada_value_print_ptr): Update.
7730 * ada-lang.h (ada_tag_name): Change return type.
7731 * ada-lang.c (type_from_tag): Update.
7732 (ada_tag_name_from_tsd): Change return type. Use
7733 target_read_string.
7734 (ada_tag_name): Likewise.
7735 * gdbcore.h (read_memory_string): Don't declare.
7736
2c074f49
HD
77372020-06-14 Hannes Domani <ssbssa@yahoo.de>
7738
7739 * symtab.c (rbreak_command): Ignore Windows drive colon.
7740
6a17d503
SM
77412020-06-12 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * NEWS: Mention removed GDBserver host support.
7744
453c733f
NC
77452020-06-12 Nelson Chu <nelson.chu@sifive.com>
7746
7747 * features/riscv/rebuild-csr-xml.sh: Updated.
7748
2b4e6a3f
TT
77492020-06-11 Tom Tromey <tom@tromey.com>
7750
7751 PR gdb/18318:
7752 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7753
4412332f
JG
77542020-06-09 Jonny Grant <jg@jguk.org>
77552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7756
7757 * main.c (captured_main_1): Don't print new line after help.
7758 (print_gdb_help): add mailing list and IRC channel information
7759 to --help. Add new lines between items in the footer. Remove
7760 quotes around bug url.
7761
2f33032a
KS
77622020-06-11 Keith Seitz <keiths@redhat.com>
7763
7764 PR gdb/21356
7765 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7766 Resolve typedefs for type length calculations.
7767
7ab96794
TV
77682020-06-10 Tom de Vries <tdevries@suse.de>
7769
7770 PR ada/24713
7771 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7772 (write_psymbols): Enable .gdb_index for ada.
7773 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7774 ada.
7775
e5f3ece2
TV
77762020-06-10 Tom de Vries <tdevries@suse.de>
7777
7778 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7779 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7780 namei" instead of "const char *name" argument.
7781 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7782 dw2_symtab_iter_init.
7783
940da03e
SM
77842020-06-08 Simon Marchi <simon.marchi@efficios.com>
7785
7786 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7787 to use type::field and field::type instead.
7788
b6cdac4b
SM
77892020-06-08 Simon Marchi <simon.marchi@efficios.com>
7790
7791 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7792 to use field::type instead.
7793
5d14b6e5
SM
77942020-06-08 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * gdbtypes.h (struct field) <type, set_type>: New methods.
7797 Rename `type` field to...
7798 <m_type>: ... this. Change references throughout to use type or
7799 set_type methods.
7800 (FIELD_TYPE): Use field::type. Change call sites that modify
7801 the field's type to use field::set_type instead.
7802
3d967001
SM
78032020-06-08 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7806 to use type::index_type instead.
7807
262abc0d
SM
78082020-06-08 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7811 methods.
7812 (TYPE_INDEX_TYPE): Use type::index_type.
7813 * gdbtypes.c (create_array_type_with_stride): Likewise.
7814
82836c92
TT
78152020-06-07 Tom Tromey <tom@tromey.com>
7816
7817 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7818 parameter.
7819 (generic_value_print): Update.
7820
940dace9
AB
78212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 Revert commit 982a38f60b0.
7824 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7825
982a38f6
AB
78262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7829 avoid use after free.
7830
82f06518
TV
78312020-06-05 Tom de Vries <tdevries@suse.de>
7832
7833 * NEWS: Fix typos.
7834
f8c41851
SM
78352020-06-04 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7838 the per_bfd object.
7839 (dwarf2_read_debug_names): Likewise.
7840 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7841 object when re-using a per_bfd object with an index.
7842
f9b5d5ea
TV
78432020-06-03 Tom de Vries <tdevries@suse.de>
7844
7845 PR symtab/26046
7846 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7847 children for C++.
7848 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7849 DW_TAG_subprogram.
7850
f6eee2d0
AB
78512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * ada-lang.c (ada_language_data): Delete skip_trampoline
7854 initializer.
7855 * c-lang.c (c_language_data): Likewise.
7856 (cplus_language_data): Likewise.
7857 (cplus_language::skip_trampoline): New member function.
7858 (asm_language_data): Delete skip_trampoline initializer.
7859 (minimal_language_data): Likewise.
7860 * d-lang.c (d_language_data): Likewise.
7861 * f-lang.c (f_language_data): Likewise.
7862 * go-lang.c (go_language_data): Likewise.
7863 * language.c (unk_lang_trampoline): Delete function.
7864 (skip_language_trampoline): Update.
7865 (unknown_language_data): Delete skip_trampoline initializer.
7866 (auto_language_data): Likewise.
7867 * language.h (language_data): Delete skip_trampoline field.
7868 (language_defn::skip_trampoline): New function.
7869 * m2-lang.c (m2_language_data): Delete skip_trampoline
7870 initializer.
7871 * objc-lang.c (objc_skip_trampoline): Delete function, move
7872 implementation to objc_language::skip_trampoline.
7873 (objc_language_data): Delete skip_trampoline initializer.
7874 (objc_language::skip_trampoline): New member function with
7875 implementation from objc_skip_trampoline.
7876 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7877 initializer.
7878 * p-lang.c (pascal_language_data): Likewise.
7879 * rust-lang.c (rust_language_data): Likewise.
7880
0a50df5d
AB
78812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7882
7883 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7884 (ada_language::demangle): New member function.
7885 * c-lang.c (c_language_data): Delete la_demangle initializer.
7886 (cplus_language_data): Delete la_demangle initializer.
7887 (cplus_language::demangle): New member function.
7888 (asm_language_data): Delete la_demangle initializer.
7889 (minimal_language_data): Delete la_demangle initializer.
7890 * d-lang.c (d_language_data): Delete la_demangle initializer.
7891 (d_language::demangle): New member function.
7892 * f-lang.c (f_language_data): Delete la_demangle initializer.
7893 (f_language::demangle): New member function.
7894 * go-lang.c (go_language_data): Delete la_demangle initializer.
7895 (go_language::demangle): New member function.
7896 * language.c (language_demangle): Update.
7897 (unk_lang_demangle): Delete.
7898 (unknown_language_data): Delete la_demangle initializer.
7899 (unknown_language::demangle): New member function.
7900 (auto_language_data): Delete la_demangle initializer.
7901 (auto_language::demangle): New member function.
7902 * language.h (language_data): Delete la_demangle field.
7903 (language_defn::demangle): New function.
7904 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7905 * objc-lang.c (objc_language_data): Delete la_demangle
7906 initializer.
7907 (objc_language::demangle): New member function.
7908 * opencl-lang.c (opencl_language_data): Delete la_demangle
7909 initializer.
7910 * p-lang.c (pascal_language_data): Likewise.
7911 * rust-lang.c (rust_language_data): Likewise.
7912 (rust_language::demangle): New member function.
7913
fbfb0a46
AB
79142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_data): Delete la_print_type
7917 initializer.
7918 (ada_language::print_type): New member function.
7919 * c-lang.c (c_language_data): Delete la_print_type initializer.
7920 (c_language::print_type): New member function.
7921 (cplus_language_data): Delete la_print_type initializer.
7922 (cplus_language::print_type): New member function.
7923 (asm_language_data): Delete la_print_type initializer.
7924 (asm_language::print_type): New member function.
7925 (minimal_language_data): Delete la_print_type initializer.
7926 (minimal_language::print_type): New member function.
7927 * d-lang.c (d_language_data): Delete la_print_type initializer.
7928 (d_language::print_type): New member function.
7929 * f-lang.c (f_language_data): Delete la_print_type initializer.
7930 (f_language::print_type): New member function.
7931 * go-lang.c (go_language_data): Delete la_print_type initializer.
7932 (go_language::print_type): New member function.
7933 * language.c (unk_lang_print_type): Delete.
7934 (unknown_language_data): Delete la_print_type initializer.
7935 (unknown_language::print_type): New member function.
7936 (auto_language_data): Delete la_print_type initializer.
7937 (auto_language::print_type): New member function.
7938 * language.h (language_data): Delete la_print_type field.
7939 (language_defn::print_type): New function.
7940 (LA_PRINT_TYPE): Update.
7941 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7942 (m2_language::print_type): New member function.
7943 * objc-lang.c (objc_language_data): Delete la_print_type
7944 initializer.
7945 (objc_language::print_type): New member function.
7946 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7947 to opencl_language::print_type.
7948 (opencl_language_data): Delete la_print_type initializer.
7949 (opencl_language::print_type): New member function, implementation
7950 from opencl_print_type.
7951 * p-lang.c (pascal_language_data): Delete la_print_type
7952 initializer.
7953 (pascal_language::print_type): New member function.
7954 * rust-lang.c (rust_print_type): Delete, implementation moved to
7955 rust_language::print_type.
7956 (rust_language_data): Delete la_print_type initializer.
7957 (rust_language::print_type): New member function, implementation
7958 from rust_print_type.
7959
6f827019
AB
79602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7963 implementation moves to...
7964 (ada_language::sniff_from_mangled_name): ...here. Update return
7965 type.
7966 (ada_language_data): Delete la_sniff_from_mangled_name
7967 initializer.
7968 * c-lang.c (c_language_data): Likewise.
7969 (cplus_language_data): Likewise.
7970 (cplus_language::sniff_from_mangled_name): New member function,
7971 implementation taken from gdb_sniff_from_mangled_name.
7972 (asm_language_data): Delete la_sniff_from_mangled_name
7973 initializer.
7974 (minimal_language_data): Likewise.
7975 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7976 implementation moves to cplus_language::sniff_from_mangled_name.
7977 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7978 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7979 moves to...
7980 (d_language::sniff_from_mangled_name): ...here.
7981 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7982 * f-lang.c (f_language_data): Likewise.
7983 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7984 moves to...
7985 (go_language::sniff_from_mangled_name): ...here.
7986 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7987 * language.c (language_sniff_from_mangled_name): Delete.
7988 (unknown_language_data): Delete la_sniff_from_mangled_name
7989 initializer.
7990 (auto_language_data): Likewise.
7991 * language.h (language_data): Delete la_sniff_from_mangled_name
7992 field.
7993 (language_defn::sniff_from_mangled_name): New function.
7994 (language_sniff_from_mangled_name): Delete declaration.
7995 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7996 field.
7997 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7998 implementation moves to...
7999 (objc_language::sniff_from_mangled_name): ...here.
8000 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8001 * opencl-lang.c (opencl_language_data): Likewise.
8002 * p-lang.c (pascal_language_data): Likewise.
8003 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8004 implementation moves to...
8005 (rust_language::sniff_from_mangled_name): ...here.
8006 (rust_language_data): Delete la_sniff_from_mangled_name
8007 initializer.
8008 * symtab.c (symbol_find_demangled_name): Call
8009 sniff_from_mangled_name member function.
8010
fb8006fd
AB
80112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8012
8013 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8014 initializer.
8015 * c-lang.c (c_language_data): Likewise.
8016 (cplus_language_data): Likewise.
8017 (cplus_language::search_name_hash): New member function.
8018 (asm_language_data): Delete la_search_name_hash initializer.
8019 (minimal_language_data): Likewise.
8020 * d-lang.c (d_language_data): Likewise.
8021 * dictionary.c (default_search_name_hash): Rename to...
8022 (language_defn::search_name_hash): ...this.
8023 * f-lang.c (f_language_data): Likewise.
8024 (f_language::search_name_hash): New member function.
8025 * go-lang.c (go_language_data): Delete la_search_name_hash
8026 initializer.
8027 * language.c (unknown_language_data): Likewise.
8028 (auto_language_data): Likewise.
8029 * language.h (struct language_data): Delete la_search_name_hash
8030 field.
8031 (language_defn::search_name_hash): Declare new member function.
8032 (default_search_name_hash): Delete declaration.
8033 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8034 initializer.
8035 * objc-lang.c (objc_language_data): Likewise.
8036 * opencl-lang.c (opencl_language_data): Likewise.
8037 * p-lang.c (pascal_language_data): Likewise.
8038 * rust-lang.c (rust_language_data): Likewise.
8039 * symtab.c (search_name_hash): Update call.
8040
8e25bafe
AB
80412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8042
8043 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8044 initializer.
8045 * c-lang.c (class compile_instance): Declare.
8046 (c_language_data): Delete la_get_compile_instance initializer.
8047 (c_language::get_compile_instance): New member function.
8048 (cplus_language_data): Delete la_get_compile_instance initializer.
8049 (cplus_language::get_compile_instance): New member function.
8050 (asm_language_data): Delete la_get_compile_instance initializer.
8051 (minimal_language_data): Likewise.
8052 * c-lang.h (c_get_compile_context): Update comment.
8053 (cplus_get_compile_context): Update comment.
8054 * compile/compile.c (compile_to_object): Update calls, don't rely
8055 on function pointer being NULL.
8056 * d-lang.c (d_language_data): Delete la_get_compile_instance
8057 initializer.
8058 * f-lang.c (f_language_data): Likewise.
8059 * go-lang.c (go_language_data): Likewise.
8060 * language.c (unknown_language_data): Likewise.
8061 (auto_language_data): Likewise.
8062 * language.h (language_data): Delete la_get_compile_instance field.
8063 (language_defn::get_compile_instance): New member function.
8064 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8065 initializer.
8066 * objc-lang.c (objc_language_data): Likewise.
8067 * opencl-lang.c (opencl_language_data): Likewise.
8068 * p-lang.c (pascal_language_data): Likewise.
8069 * rust-lang.c (rust_language_data): Likewise.
8070
4009ee92
AB
80712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * ada-lang.c (ada_add_all_symbols): Update comment.
8074 (ada_iterate_over_symbols): Delete, move implementation to...
8075 (ada_language::iterate_over_symbols): ...here, a new member
8076 function, rewrite to use range based for loop.
8077 (ada_language_data): Delete la_iterate_over_symbols initializer.
8078 * c-lang.c (c_language_data): Likewise.
8079 (cplus_language_data): Likewise.
8080 (asm_language_data): Likewise.
8081 (minimal_language_data): Likewise.
8082 * d-lang.c (d_language_data): Likewise.
8083 * f-lang.c (f_language_data): Likewise.
8084 * go-lang.c (go_language_data): Likewise.
8085 * language.c (unknown_language_data): Likewise.
8086 (auto_language_data): Likewise.
8087 * language.h (language_data): Delete la_iterate_over_symbols field.
8088 (language_defn::iterate_over_symbols): New member function.
8089 (LA_ITERATE_OVER_SYMBOLS): Update.
8090 * linespec.c (iterate_over_all_matching_symtabs): Update.
8091 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8092 initializer.
8093 * objc-lang.c (objc_language_data): Likewise.
8094 * opencl-lang.c (opencl_language_data): Likewise.
8095 * p-lang.c (pascal_language_data): Likewise.
8096 * rust-lang.c (rust_language_data): Likewise.
8097
54f4ca46
AB
80982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * ada-lang.c (ada_language_data): Delete
8101 la_lookup_transparent_type initializer.
8102 * c-lang.c (c_language_data): Likewise.
8103 (cplus_language_data): Likewise.
8104 (cplus_language::lookup_transparent_type): New member function.
8105 (asm_language_data): Delete la_lookup_transparent_type
8106 initializer.
8107 (minimal_language_data): Likewise.
8108 * d-lang.c (d_language_data): Likewise.
8109 * f-lang.c (f_language_data): Likewise.
8110 * go-lang.c (go_language_data): Likewise.
8111 * language.c (unknown_language_data): Likewise.
8112 (auto_language_data): Likewise.
8113 * language.h (struct language_data): Delete
8114 la_lookup_transparent_type field.
8115 (language_defn::lookup_transparent_type): New member function.
8116 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8117 initializer.
8118 * objc-lang.c (objc_language_data): Likewise.
8119 * opencl-lang.c (opencl_language_data): Likewise.
8120 * p-lang.c (pascal_language_data): Likewise.
8121 * rust-lang.c (rust_language_data): Likewise.
8122 * symtab.c (symbol_matches_domain): Update call.
8123
1fb314aa
AB
81242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * ada-lang.c (ada_language_arch_info): Delete function, move
8127 implementation to...
8128 (ada_language::language_arch_info): ...here, a new member
8129 function.
8130 (ada_language_data): Delete la_language_arch_info.
8131 * c-lang.c (c_language_data): Likewise.
8132 (c_language::language_arch_info): New member function.
8133 (cplus_language_arch_info): Delete function, move
8134 implementation to...
8135 (cplus_language::language_arch_info): ...here, a new member
8136 function.
8137 (cplus_language_data): Delete la_language_arch_info.
8138 (asm_language_data): Likewise.
8139 (asm_language::language_arch_info): New member function.
8140 (minimal_language_data): Delete la_language_arch_info.
8141 (minimal_language::language_arch_info): New member function.
8142 * d-lang.c (d_language_arch_info): Delete function, move
8143 implementation to...
8144 (d_language::language_arch_info): ...here, a new member
8145 function.
8146 (d_language_data): Delete la_language_arch_info.
8147 * f-lang.c (f_language_arch_info): Delete function, move
8148 implementation to...
8149 (f_language::language_arch_info): ...here, a new member
8150 function.
8151 (f_language_data): Delete la_language_arch_info.
8152 * go-lang.c (go_language_arch_info): Delete function, move
8153 implementation to...
8154 (go_language::language_arch_info): ...here, a new member
8155 function.
8156 (go_language_data): Delete la_language_arch_info.
8157 * language.c (unknown_language_data): Likewise.
8158 (unknown_language::language_arch_info): New member function.
8159 (auto_language_data): Delete la_language_arch_info.
8160 (auto_language::language_arch_info): New member function.
8161 (language_gdbarch_post_init): Update call to
8162 la_language_arch_info.
8163 * language.h (language_data): Delete la_language_arch_info
8164 function pointer.
8165 (language_defn::language_arch_info): New function.
8166 * m2-lang.c (m2_language_arch_info): Delete function, move
8167 implementation to...
8168 (m2_language::language_arch_info): ...here, a new member
8169 function.
8170 (m2_language_data): Delete la_language_arch_info.
8171 * objc-lang.c (objc_language_arch_info): Delete function, move
8172 implementation to...
8173 (objc_language::language_arch_info): ...here, a new member
8174 function.
8175 (objc_language_data): Delete la_language_arch_info.
8176 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8177 implementation to...
8178 (opencl_language::language_arch_info): ...here, a new member
8179 function.
8180 (opencl_language_data): Delete la_language_arch_info.
8181 * p-lang.c (pascal_language_arch_info): Delete function, move
8182 implementation to...
8183 (pascal_language::language_arch_info): ...here, a new member
8184 function.
8185 (pascal_language_data): Delete la_language_arch_info.
8186 * rust-lang.c (rust_language_arch_info): Delete function, move
8187 implementation to...
8188 (rust_language::language_arch_info): ...here, a new member
8189 function.
8190 (rust_language_data): Delete la_language_arch_info.
8191
48448202
AB
81922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8193
8194 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8195 initializer.
8196 * c-lang.c (c_language_data): Likewise.
8197 (cplus_language_data): Likewise.
8198 (cplus_language::pass_by_reference_info): New method.
8199 (asm_language_data): Delete la_pass_by_reference initializer.
8200 (minimal_language_data): Likewise.
8201 * cp-abi.c (cp_pass_by_reference): Remove use of
8202 default_pass_by_reference.
8203 * d-lang.c (d_language_data): Likewise.
8204 * f-lang.c (f_language_data): Likewise.
8205 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8206 default_pass_by_reference.
8207 * go-lang.c (go_language_data): Likewise.
8208 * language.c (language_pass_by_reference): Update.
8209 (default_pass_by_reference): Delete.
8210 (unknown_language_data): Delete la_pass_by_reference
8211 initializer.
8212 (auto_language_data): Likewise.
8213 * language.h (struct language_data): Delete la_pass_by_reference
8214 field.
8215 (language_defn::pass_by_reference_info): New member function.
8216 (default_pass_by_reference): Delete declaration.
8217 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8218 initializer.
8219 * objc-lang.c (objc_language_data): Likewise.
8220 * opencl-lang.c (opencl_language_data): Likewise.
8221 * p-lang.c (pascal_language_data): Likewise.
8222 * rust-lang.c (rust_language_data): Likewise.
8223
15e5fd35
AB
82242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * ada-lang.c (ada_read_var_value): Delete function, move
8227 implementation to...
8228 (ada_language::read_var_value): ...here.
8229 (ada_language_data): Delete la_read_var_value initializer.
8230 * c-lang.c (c_language_data): Likewise.
8231 (cplus_language_data): Likewise.
8232 (minimal_language_data): Likewise.
8233 * d-lang.c (d_language_data): Likewise.
8234 * f-lang.c (f_language_data): Likewise.
8235 * findvar.c (default_read_var_value): Rename to...
8236 (language_defn::read_var_value): ...this.
8237 * findvar.c (read_var_value): Update header comment, and change to
8238 call member function instead of function pointer.
8239 * go-lang.c (go_language_data): Likewise.
8240 * language.c (unknown_language_data): Delete la_read_var_value
8241 initializer.
8242 (auto_language_data): Likewise.
8243 * language.h (struct language_data): Delete la_read_var_value
8244 field.
8245 (language_defn::read_var_value): New member function.
8246 (default_read_var_value): Delete declaration.
8247 * m2-lang.c (m2_language_data): Delete la_read_var_value
8248 initializer.
8249 * objc-lang.c (objc_language_data): Likewise.
8250 * opencl-lang.c (opencl_language_data): Likewise.
8251 * p-lang.c (pascal_language_data): Likewise.
8252 * rust-lang.c (rust_language_data): Likewise.
8253 * value.h (default_read_var_value): Delete declaration.
8254
5bd40f2a
AB
82552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * ada-lang.c (ada_print_array_index): Delete function, move
8258 implementation to...
8259 (ada_language::print_array_index): ...here.
8260 (ada_language_data): Delete la_print_array_index initializer.
8261 * c-lang.c (c_language_data): Likewise.
8262 (cplus_language_data): Likewise.
8263 (minimal_language_data): Likewise.
8264 * d-lang.c (d_language_data): Likewise.
8265 * f-lang.c (f_language_data): Likewise.
8266 * go-lang.c (go_language_data): Likewise.
8267 * language.c (default_print_array_index): Delete function, move
8268 implementation to...
8269 (language_defn::print_array_index): ...here.
8270 (unknown_language_data): Delete la_print_array_index initializer.
8271 (auto_language_data): Likewise.
8272 * language.h (struct language_data): Delete la_print_array_index
8273 field.
8274 (language_defn::print_array_index): New member function.
8275 (LA_PRINT_ARRAY_INDEX): Update.
8276 (default_print_array_index): Delete declaration.
8277 * m2-lang.c (m2_language_data): Delete la_print_array_index
8278 initializer.
8279 * objc-lang.c (objc_language_data): Likewise.
8280 * opencl-lang.c (opencl_language_data): Likewise.
8281 * p-lang.c (pascal_language_data): Likewise.
8282 * rust-lang.c (rust_language_data): Likewise.
8283
0874fd07
AB
82842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8285
8286 * gdb/ada-lang.c (ada_language_defn): Convert to...
8287 (ada_language_data): ...this.
8288 (class ada_language): New class.
8289 (ada_language_defn): New static global.
8290 * gdb/c-lang.c (c_language_defn): Convert to...
8291 (c_language_data): ...this.
8292 (class c_language): New class.
8293 (c_language_defn): New static global.
8294 (cplus_language_defn): Convert to...
8295 (cplus_language_data): ...this.
8296 (class cplus_language): New class.
8297 (cplus_language_defn): New static global.
8298 (asm_language_defn): Convert to...
8299 (asm_language_data): ...this.
8300 (class asm_language): New class.
8301 (asm_language_defn): New static global.
8302 (minimal_language_defn): Convert to...
8303 (minimal_language_data): ...this.
8304 (class minimal_language): New class.
8305 (minimal_language_defn): New static global.
8306 * gdb/d-lang.c (d_language_defn): Convert to...
8307 (d_language_data): ...this.
8308 (class d_language): New class.
8309 (d_language_defn): New static global.
8310 * gdb/f-lang.c (f_language_defn): Convert to...
8311 (f_language_data): ...this.
8312 (class f_language): New class.
8313 (f_language_defn): New static global.
8314 * gdb/go-lang.c (go_language_defn): Convert to...
8315 (go_language_data): ...this.
8316 (class go_language): New class.
8317 (go_language_defn): New static global.
8318 * gdb/language.c (unknown_language_defn): Remove declaration.
8319 (current_language): Initialize to nullptr, real initialization is
8320 moved to _initialize_language.
8321 (languages): Delete global.
8322 (language_defn::languages): Define.
8323 (set_language_command): Use language_defn::languages.
8324 (set_language): Likewise.
8325 (range_error): Likewise.
8326 (language_enum): Likewise.
8327 (language_def): Likewise.
8328 (add_set_language_command): Use language_def::languages for the
8329 language list, and language_def to lookup language pointers.
8330 (skip_language_trampoline): Use language_defn::languages.
8331 (unknown_language_defn): Convert to...
8332 (unknown_language_data): ...this.
8333 (class unknown_language): New class.
8334 (unknown_language_defn): New static global.
8335 (auto_language_defn): Convert to...
8336 (auto_language_data): ...this.
8337 (class auto_language): New class.
8338 (auto_language_defn): New static global.
8339 (language_gdbarch_post_init): Use language_defn::languages.
8340 (_initialize_language): Initialize current_language.
8341 * gdb/language.h (struct language_defn): Rename to...
8342 (struct language_data): ...this.
8343 (struct language_defn): New.
8344 (auto_language_defn): Delete.
8345 (unknown_language_defn): Delete.
8346 (minimal_language_defn): Delete.
8347 (ada_language_defn): Delete.
8348 (asm_language_defn): Delete.
8349 (c_language_defn): Delete.
8350 (cplus_language_defn): Delete.
8351 (d_language_defn): Delete.
8352 (f_language_defn): Delete.
8353 (go_language_defn): Delete.
8354 (m2_language_defn): Delete.
8355 (objc_language_defn): Delete.
8356 (opencl_language_defn): Delete.
8357 (pascal_language_defn): Delete.
8358 (rust_language_defn): Delete.
8359 * gdb/m2-lang.c (m2_language_defn): Convert to...
8360 (m2_language_data): ...this.
8361 (class m2_language): New class.
8362 (m2_language_defn): New static global.
8363 * gdb/objc-lang.c (objc_language_defn): Convert to...
8364 (objc_language_data): ...this.
8365 (class objc_language): New class.
8366 (objc_language_defn): New static global.
8367 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8368 (opencl_language_data): ...this.
8369 (class opencl_language): New class.
8370 (opencl_language_defn): New static global.
8371 * gdb/p-lang.c (pascal_language_defn): Convert to...
8372 (pascal_language_data): ...this.
8373 (class pascal_language): New class.
8374 (pascal_language_defn): New static global.
8375 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8376 language pointer, update comment format.
8377 * gdb/rust-lang.c (rust_language_defn): Convert to...
8378 (rust_language_data): ...this.
8379 (class rust_language): New class.
8380 (rust_language_defn): New static global.
8381
1313c56e
AB
83822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8385 member variable.
8386 <m_stmt_at_address>: New member variable.
8387 (lnp_state_machine::record_line): Don't record some lines, update
8388 tracking of is_stmt at the same address.
8389 (lnp_state_machine::lnp_state_machine): Initialise new member
8390 variables.
8391
b7ed9f3d
ST
83922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8393
8394 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8395 "-include gnu-nat-mig.h".
8396 * gnu-nat-mig.h: New file.
8397 * gnu-nat.c: Include "gnu-nat-mig.h".
8398 (exc_server, msg_reply_server, notify_server,
8399 process_reply_server): Remove declarations.
8400
14a8ad62
ST
84012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8402
8403 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8404 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8405 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8406 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8407 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8408 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8409 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8410 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8411 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8412 to gnu_nat_target class.
8413 * gnu-nat.c: Likewise.
8414 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8415 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8416 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8417 object.
8418 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8419 instead of `gnu_target'.
8420
0af5e106
ST
84212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8422
8423 * i386-gnu-tdep.c: Include "gdbcore.h"
8424 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8425 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8426 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8427 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8428 i386_gnu_sigcontext_addr): New functions
8429 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8430 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8431 tdep.
8432
078f2fc9
ST
84332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8434
8435 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8436 before fork_inferior call. Avoid calling it if target_is_pushed returns
8437 true.
8438
53dff92c
ST
84392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8440
8441 * gnu-nat.h (gnu_target): New variable declaration.
8442 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8443 gnu_target.
8444 * gnu-nat.c (gnu_target): New variable.
8445 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8446 add_thread_silent, and add_thread calls.
8447 (gnu_nat_target::create_inferior): Pass gnu_target to
8448 add_thread_silent, thread_change_ptid call.
8449 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8450 call.
8451
5a8b8627
ST
84522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8453
8454 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8455 (gnu_nat_target::find_memory_regions): Remove unused
8456 `old_address' variable.
8457
366f550a
ST
84582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8459
8460 * gnu-nat.c: Include "gdbarch.h".
8461
f14871bf
ST
84622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8463
8464 * reply_mig_hack.awk (Error return): Cast function through
8465 void *, to bypass compiler function call check.
8466
c6887cfb
ST
84672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8468
8469 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8470 $(srcdir)/reply_mig_hack.awk.
8471
6930bffe
ST
84722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8473
8474 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8475
112c22ed
JG
84762020-05-30 Jonny Grant <jg@jguk.org>
8477
8478 * configure.ac (ACX_BUGURL): change bug URL to https.
8479
f68f85b5
PA
84802020-05-30 Pedro Alves <palves@redhat.com>
8481
8482 * cp-support.c (replace_typedefs_template): New.
8483 (replace_typedefs_qualified_name): Handle
8484 DEMANGLE_COMPONENT_TEMPLATE.
8485
976ca316
SM
84862020-05-29 Simon Marchi <simon.marchi@efficios.com>
8487
8488 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8489 dwarf2/index-cache.h, dwarf2/index-write.c,
8490 dwarf2/index-write.h, dwarf2/line-header.c,
8491 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8492 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8493 variables and fields from `dwarf2_per_objfile` to just
8494 `per_objfile` throughout.
8495
989ade05
SM
84962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8497
8498 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8499 <push_dwarf_reg_entry_value>: Add comment.
8500
c47bae85
KB
85012020-05-28 Kevin Buettner <kevinb@redhat.com>
8502 Keith Seitz <keiths@redhat.com>
8503
8504 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8505 instead of PyEval_ReleaseLock.
8506 (class gdbpy_gil): Move to earlier in file.
8507 (finalize_python): Set gdb_python_initialized.
8508 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8509 when not initialized.
8510
44486dcf
SM
85112020-05-28 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8514 <push_dwarf_reg_entry_value>: Remove assert. Override
8515 per_objfile with caller_per_objfile.
8516
f030440d
TV
85172020-05-28 Tom de Vries <tdevries@suse.de>
8518
8519 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8520 PR gold/15646 workaround to symbol kind "type".
8521
f0fbb768
TT
85222020-05-27 Tom Tromey <tromey@adacore.com>
8523
8524 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8525
af0b2a3e
TT
85262020-05-27 Tom Tromey <tromey@adacore.com>
8527
8528 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8529 Use htab_find_with_hash.
8530 <add_abbrev>: Remove "abbrev_number" parameter.
8531 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8532 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8533 (hash_abbrev): Add comment.
8534 (abbrev_table::lookup_abbrev): Move to header file.
8535 (abbrev_table::read): Update.
8536
7d00ffec
TT
85372020-05-27 Tom Tromey <tromey@adacore.com>
8538
8539 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8540 method.
8541 <canonical_name>: New member.
8542 <raw_name>: Rename from "name".
8543 (partial_die_info): Initialize canonical_name.
8544 (scan_partial_symbols): Check raw_name.
8545 (partial_die_parent_scope, partial_die_full_name)
8546 (add_partial_symbol, add_partial_subprogram)
8547 (add_partial_enumeration, load_partial_dies): Use "name" method.
8548 (partial_die_info::name): New method.
8549 (partial_die_info::read, guess_partial_die_structure_name)
8550 (partial_die_info::fixup): Update.
8551
697bba18
TT
85522020-05-27 Tom Tromey <tromey@adacore.com>
8553
8554 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8555 <get_ref_die_offset>: Inline.
8556 <get_ref_die_offset_complaint>: New method.
8557 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8558 (attribute::get_ref_die_offset_complaint): Rename from
8559 get_ref_die_offset. Just issue complaint.
8560
c17ace43
HD
85612020-05-27 Hannes Domani <ssbssa@yahoo.de>
8562
8563 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8564
96445f0b
HD
85652020-05-27 Hannes Domani <ssbssa@yahoo.de>
8566
8567 * exec.c (exec_file_attach): Use errno value of first openp failure.
8568
ac637ec3
HD
85692020-05-27 Hannes Domani <ssbssa@yahoo.de>
8570
8571 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8572 Don't close thread handle.
8573
17ee85fc
TT
85742020-05-27 Tom Tromey <tom@tromey.com>
8575 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8578 shared_ptr.
8579 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8580 member.
8581 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8582 dwarf2_per_bfd_objfile_data_key>: New globals.
8583 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8584 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8585 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8586 shared.
8587 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8588 short-circuit when sharing.
8589 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8590 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8591
39b16f87
SM
85922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8593
8594 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8595 to...
8596 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8597 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8598
fcf23d5b
SM
85992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8602 build_name_components, find_name_components_bounds>:
8603 Add per_objfile parameter.
8604 (struct mapped_index) <symbol_name_at>: Likewise.
8605 (struct mapped_debug_names): Remove constructor.
8606 <dwarf2_per_objfile>: Remove field.
8607 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8608 (mapped_index_base::find_name_components_bounds,
8609 mapped_index_base::build_name_components,
8610 dw2_expand_symtabs_matching_symbol): Likewise.
8611 (class mock_mapped_index) <symbol_name_at>: Likewise.
8612 (check_match): Likewise.
8613 (check_find_bounds_finds): Likewise.
8614 (test_mapped_index_find_name_component_bounds): Update.
8615 (CHECK_MATCH): Update.
8616 (dw2_expand_symtabs_matching): Update.
8617 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8618 per_objfile parameter.
8619 <find_vec_in_debug_names>: Likewise.
8620 <m_per_objfile>: New field.
8621 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8622 parameter.
8623 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8624 (dw2_debug_names_iterator::next): Update.
8625 (dw2_debug_names_lookup_symbol): Update.
8626 (dw2_debug_names_expand_symtabs_for_function): Update.
8627 (dw2_debug_names_map_matching_symbols): Update.
8628 (dw2_debug_names_expand_symtabs_matching): Update.
8629 (dwarf2_read_debug_names): Update.
8630
7188ed02
SM
86312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8634 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8635 move to dwarf2_per_objfile.
8636 <read_in_chain>: Remove.
8637 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8638 remove_all_cus, age_comp_units>: New methods.
8639 <m_dwarf2_cus>: New member.
8640 (struct dwarf2_per_cu_data) <cu>: Remove.
8641 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8642 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8643 moved to methods of dwarf2_per_objfile.
8644 (dwarf2_clear_marks): Remove.
8645 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8646 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8647 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8648 (dwarf2_per_objfile::remove_all_cus): New.
8649 (class free_cached_comp_units) <~free_cached_comp_units>:
8650 Update.
8651 (load_cu): Update.
8652 (dw2_do_instantiate_symtab): Adjust.
8653 (fill_in_sig_entry_from_dwo_entry): Adjust.
8654 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8655 (cutu_reader::cutu_reader): Likewise.
8656 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8657 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8658 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8659 and dwarf2_per_objfile::age_comp_units.
8660 (load_partial_comp_unit): Update.
8661 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8662 (process_queue): Likewise.
8663 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8664 backlink.
8665 (dwarf2_read_addr_index): Likewise.
8666 (follow_die_offset): Likewise.
8667 (dwarf2_fetch_die_loc_sect_off): Likewise.
8668 (dwarf2_fetch_constant_bytes): Likewise.
8669 (dwarf2_fetch_die_type_sect_off): Likewise.
8670 (follow_die_sig_1): Likewise.
8671 (load_full_type_unit): Likewise.
8672 (read_signatured_type): Likewise.
8673 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8674 (dwarf2_cu::~dwarf2_cu): Remove.
8675 (dwarf2_per_objfile::get_cu): New.
8676 (dwarf2_per_objfile::set_cu): New.
8677 (age_cached_comp_units): Rename to...
8678 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8679 to std::unordered_map.
8680 (free_one_cached_comp_unit): Rename to...
8681 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8682 to std::unordered_map.
8683 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8684 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8685 a dwarf2_per_objfile in data.
8686 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8687 (dwarf2_clear_marks): Remove.
8688
2e671100
SM
86892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8692 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8693 (init_tu_and_read_dwo_dies): Likewise.
8694 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8695 (cutu_reader::cutu_reader): Likewise.
8696 (load_partial_comp_unit): Likewise.
8697 (process_psymtab_comp_unit): Update.
8698 (build_type_psymtabs_1): Update.
8699 (process_skeletonless_type_unit): Update.
8700 (load_full_comp_unit): Update.
8701 (find_partial_die): Update.
8702 (dwarf2_read_addr_index): Update.
8703 (read_signatured_type): Update.
8704
2e6a9f79
SM
87052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8706
8707 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8708 m_header_read_in>: New fields.
8709 <get_header>: New method.
8710 * dwarf2/read.c (per_cu_header_read_in): Remove.
8711 (dwarf2_per_cu_data::get_header): New.
8712 (dwarf2_per_cu_data::addr_size): Update.
8713 (dwarf2_per_cu_data::offset_size): Update.
8714 (dwarf2_per_cu_data::ref_addr_size): Update.
8715
1b555f17
SM
87162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8717
8718 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8719 (dw2_do_instantiate_symtab): Update.
8720 (queue_and_load_all_dwo_tus): Change parameter from
8721 dwarf2_per_cu_data to dwarf2_cu.
8722 (dwarf2_fetch_die_loc_sect_off): Update.
8723 (dwarf2_fetch_constant_bytes): Update.
8724 (dwarf2_fetch_die_type_sect_off): Update.
8725
8fc0b21d
SM
87262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8727
8728 * dwarf2/read.c (process_full_comp_unit,
8729 process_full_type_unit): Remove per_cu, per_objfile paramters.
8730 Add dwarf2_cu parameter.
8731 (process_queue): Update.
8732
168c9250
SM
87332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8734
8735 * dwarf2/read.c (create_cu_from_index_list): Replace
8736 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8737 (create_cus_from_index_list): Likewise.
8738 (create_cus_from_index): Likewise.
8739 (create_signatured_type_table_from_index): Likewise.
8740 (create_cus_from_debug_names_list): Likewise.
8741 (create_cus_from_debug_names): Likewise.
8742 (dwarf2_read_gdb_index): Update.
8743 (dwarf2_read_debug_names): Update.
8744
e286671b
TT
87452020-05-27 Tom Tromey <tom@tromey.com>
8746 Simon Marchi <simon.marchi@efficios.com>
8747
8748 * dwarf2/read.h (struct dwarf2_per_objfile)
8749 <get_type_for_signatured_type, set_type_for_signatured_type>:
8750 New methods.
8751 <m_type_map>: New member.
8752 (struct signatured_type) <type>: Remove.
8753 * dwarf2/read.c
8754 (dwarf2_per_objfile::get_type_for_signatured_type,
8755 dwarf2_per_objfile::set_type_for_signatured_type): New.
8756 (get_signatured_type): Use new methods.
8757
8adb8487
TT
87582020-05-27 Tom Tromey <tom@tromey.com>
8759 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8762 (struct dwarf2_per_objfile) <type_units>: New member.
8763 <get_type_unit_group_unshareable>: New method.
8764 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8765 num_symtabs, symtabs>: Remove; move to
8766 type_unit_group_unshareable.
8767 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8768 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8769 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8770
127bbf4b
SM
87712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * dwarf2/read.h (struct dwarf2_per_cu_data):
8774 <dwarf2_per_objfile>: Remove.
8775 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8776 dwarf2_per_objfile.
8777 (create_signatured_type_table_from_index): Likewise.
8778 (create_signatured_type_table_from_debug_names): Likewise.
8779 (create_debug_type_hash_table): Likewise.
8780 (fill_in_sig_entry_from_dwo_entry): Likewise.
8781 (create_type_unit_group): Likewise.
8782 (read_comp_units_from_section): Likewise.
8783 (create_cus_hash_table): Likewise.
8784
f6e649dd
SM
87852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8788 dwarf2_per_cu_data::dwarf2_per_objfile.
8789 (compute_compunit_symtab_includes): Likewise.
8790 (dwarf2_cu::start_symtab): Likewise.
8791
aa66c379
SM
87922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8793
8794 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8795 parameter.
8796 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8797 (read_namespace_alias): Update.
8798 (lookup_die_type): Update.
8799 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8800 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8801 Update.
8802 (disassemble_dwarf_expression): Update.
8803
120ce1b5
SM
88042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8805
8806 * dwarf2/read.h (struct dwarf2_queue_item): Add
8807 dwarf2_per_objfile parameter, assign new parameter.
8808 <per_objfile>: New field.
8809 * dwarf2/read.c (free_one_cached_comp_unit): Add
8810 dwarf2_per_objfile parameter.
8811 (queue_comp_unit): Likewise.
8812 (dw2_do_instantiate_symtab): Update.
8813 (process_psymtab_comp_unit): Update.
8814 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8815 (process_imported_unit_die): Update.
8816 (queue_and_load_dwo_tu): Update.
8817 (follow_die_offset): Update.
8818 (follow_die_sig_1): Update.
8819
9f47c707
SM
88202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8823 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8824 (read_call_site_scope): Assign per_objfile.
8825 (dwarf2_per_cu_data::objfile): Remove.
8826 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8827 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8828 dwarf2_per_objfile parameter.
8829 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8830 dwarf2_per_objfile parameter.
8831 (dwarf_expr_reg_to_entry_parameter): Add output
8832 dwarf2_per_objfile parameter.
8833 (locexpr_get_frame_base): Update.
8834 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8835 <push_dwarf_reg_entry_value>: Update.
8836 <call_site_to_target_addr>: Update.
8837 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8838 parameter.
8839 (value_of_dwarf_reg_entry): Update.
8840 (rw_pieced_value): Update.
8841 (indirect_synthetic_pointer): Update.
8842 (dwarf2_evaluate_property): Update.
8843 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8844 parameter.
8845 (locexpr_read_variable): Update.
8846 (locexpr_get_symbol_read_needs): Update.
8847 (loclist_read_variable): Update.
8848
14095eb3
SM
88492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8852 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8853 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8854 parameter.
8855 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8856 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8857 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8858 parameter.
8859 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8860 sect_variable_value): Add dwarf2_per_objfile parameter.
8861 (class dwarf_evaluate_loc_desc) <dwarf_call,
8862 dwarf_variable_value>: Update.
8863 (fetch_const_value_from_synthetic_pointer): Add
8864 dwarf2_per_objfile parameter.
8865 (fetch_const_value_from_synthetic_pointer): Update.
8866 (coerced_pieced_ref): Update.
8867 (class symbol_needs_eval_context) <dwarf_call,
8868 dwarf_variable_value>: Update.
8869 (dwarf2_compile_expr_to_ax): Update.
8870
3c3cd3d4
SM
88712020-05-27 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8874 parameter.
8875 (dwarf2_evaluate_loc_desc_full): Update.
8876
82ca3f51
SM
88772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8880 parameter.
8881 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8882 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8883 dwarf2_per_objfile parameter.
8884 (decode_debug_loc_dwo_addresses): Likewise.
8885 (dwarf2_find_location_expression): Update.
8886 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8887 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8888 parameter.
8889 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8890 parameter.
8891 (locexpr_describe_location_1): Likewise.
8892 (locexpr_describe_location): Update.
8893
4b167ea1
SM
88942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8897 Remove.
8898 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8899 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8900 (dwarf2_compile_property_to_c): Update.
8901 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8902 use text offset from objfile.
8903 (locexpr_tracepoint_var_ref): Update.
8904 (locexpr_generate_c_location): Update.
8905 (loclist_describe_location): Update.
8906 (loclist_tracepoint_var_ref): Update.
8907 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8908 dwarf2_per_objfile parameter.
8909 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8910 use text offset from objfile.
8911 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8912
89b07335
SM
89132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8914
8915 * dwarf2/expr.h (struct dwarf_expr_context)
8916 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8917 <offset>: Remove.
8918 <per_objfile>: New member.
8919 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8920 dwarf2_per_objfile parameter. Don't set offset, set
8921 per_objfile.
8922 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8923 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8924 a dwarf2_per_objfile object instead of an offset.
8925 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8926 constructor.
8927 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8928 to dwarf2_expr_executor constructor. Don't set offset.
8929 (dwarf2_fetch_cfa_info): Update.
8930 (struct dwarf2_frame_cache) <text_offset>: Remove.
8931 <per_objfile>: New field.
8932 (dwarf2_frame_cache): Update.
8933 (dwarf2_frame_prev_register): Update.
8934 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8935 <dwarf_evaluate_loc_desc>: Add constructor.
8936 (dwarf2_evaluate_loc_desc_full): Update.
8937 (dwarf2_locexpr_baton_eval): Update.
8938 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8939 Add constructor.
8940 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8941
293e7e51
SM
89422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8943
8944 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8945 addr_sized_int_type>: Move to dwarf2_cu.
8946 <int_type>: Move to dwarf2_per_objfile.
8947 (struct dwarf2_per_objfile) <int_type>: Move here.
8948 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8949 addr_sized_int_type>: Move here.
8950 (read_func_scope): Update.
8951 (read_array_type): Update.
8952 (read_tag_string_type): Update.
8953 (attr_to_dynamic_prop): Update.
8954 (dwarf2_per_cu_data::int_type): Rename to...
8955 (dwarf2_per_objfile::int_type): ... this.
8956 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8957 (dwarf2_cu::addr_sized_int_type): ... this.
8958 (read_subrange_type): Update.
8959 (dwarf2_per_cu_data::addr_type): Rename to...
8960 (dwarf2_cu::addr_type): ... this.
8961 (set_die_type): Update.
8962
64874a40
SM
89632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8966 data through per_cu->cu.
8967
4ab09049
SM
89682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8971 dwarf2_per_cu_data parameter fo dwarf2_cu.
8972 (lookup_dwo_type_unit): Likewise.
8973 (read_cutu_die_from_dwo): Likewise.
8974 (lookup_dwo_unit): Likewise.
8975 (open_and_init_dwo_file): Likewise.
8976 (lookup_dwo_cutu): Likewise.
8977 (lookup_dwo_comp_unit): Likewise.
8978 (lookup_dwo_type_unit): Likewise.
8979 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8980 (cutu_reader::cutu_reader): Update.
8981
47b14e86
SM
89822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8985 parameter.
8986 (process_full_type_unit): Likewise.
8987 (process_queue): Update.
8988
43182c09
SM
89892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8990
8991 * dwarf2/read.c (recursively_compute_inclusions): Add
8992 dwarf2_per_objfile parameter.
8993 (compute_compunit_symtab_includes): Likewise.
8994 (process_cu_includes): Update.
8995
7aa104c4
SM
89962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8997
8998 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8999 parameter.
9000 (create_type_unit_group): Update.
9001 (process_psymtab_comp_unit_reader): Update.
9002 (build_type_psymtabs_reader): Update.
9003
e3beb21d
SM
90042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9007 object through m_this_cu->cu.
9008
d460f660
SM
90092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9012 the info parameter.
9013 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9014
ab432490
SM
90152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9016
9017 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9018 per_objfile parameter.
9019 (load_full_type_unit): Add per_objfile parameter.
9020 (read_signatured_type): Likewise.
9021 (load_full_comp_unit): Likewise.
9022 (load_cu): Likewise.
9023 (dw2_do_instantiate_symtab): Likewise.
9024 (dw2_get_file_names): Likewise.
9025 (dw2_map_symtabs_matching_filename): Update.
9026 (dw_expand_symtabs_matching_file_matcher): Update.
9027 (dw2_map_symbol_filenames): Update.
9028 (process_psymtab_comp_unit): Add per_objfile parameter.
9029 (build_type_psymtabs_1): Update.
9030 (process_skeletonless_type_unit): Update.
9031 (dwarf2_build_psymtabs_hard): Update.
9032 (load_partial_comp_unit): Add per_objfile parameter.
9033 (scan_partial_symbols): Update.
9034 (load_full_comp_unit): Add per_objfile parameter.
9035 (process_imported_unit_die): Update.
9036 (create_cus_hash_table): Update.
9037 (find_partial_die): Update.
9038 (dwarf2_read_addr_index): Update.
9039 (follow_die_offset): Update.
9040 (dwarf2_fetch_die_loc_sect_off): Update.
9041 (dwarf2_fetch_constant_bytes): Update.
9042 (dwarf2_fetch_die_type_sect_off): Update.
9043 (follow_die_sig_1): Update.
9044 (load_full_type_unit): Add per_objfile parameter.
9045 (read_signatured_type): Likewise.
9046
313bad1b
SM
90472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9050 of objfile_name.
9051
c3699833
SM
90522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9053
9054 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9055 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9056 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9057 field.
9058 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9059 (create_cus_from_index): Update.
9060 (dwarf2_read_gdb_index): Update.
9061 (create_cus_from_debug_names): Update.
9062 (dwarf2_read_debug_names): Update.
9063 (get_abbrev_section_for_cu): Update.
9064 (create_all_comp_units): Update.
9065 (read_attribute_value): Update.
9066 (get_debug_line_section): Update.
9067 * dwarf2/index-cache.c (index_cache::store): Update.
9068 * dwarf2/index-write.c (save_gdb_index_command): Update.
9069 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9070
1859c670
SM
90712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9074 member.
9075 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9076 dwarf2_per_cu_data::per_bfd.
9077 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9078 (create_type_unit_group): Likewise.
9079 (queue_comp_unit): Remove reference to
9080 per_cu->dwarf2_per_objfile.
9081 (maybe_queue_comp_unit): Likewise.
9082 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9083 (create_cus_hash_table): Assign new field.
9084
5e22e966
SM
90852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/read.c: Replace
9088 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9089 dwarf2_cu->per_objfile throughout.
9090
97a1449a
SM
90912020-05-27 Simon Marchi <simon.marchi@efficios.com>
9092
9093 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9094 parameter, don't use per_cu->dwarf2_per_objfile.
9095 (dw2_instantiate_symtab): Likewise.
9096 (dw2_find_last_source_symtab): Update.
9097 (dw2_map_expand_apply): Update.
9098 (dw2_lookup_symbol): Update.
9099 (dw2_expand_symtabs_for_function): Update.
9100 (dw2_expand_all_symtabs): Update.
9101 (dw2_expand_symtabs_with_fullname): Update.
9102 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9103 don't use per_cu->dwarf2_per_objfile.
9104 (dw2_expand_marked_cus): Update.
9105 (dw2_find_pc_sect_compunit_symtab): Update.
9106 (dw2_debug_names_lookup_symbol): Update.
9107 (dw2_debug_names_expand_symtabs_for_function): Update.
9108 (dw2_debug_names_map_matching_symbols): Update.
9109 (dwarf2_psymtab::expand_psymtab): Update.
9110
9e021579
SM
91112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9114 <per_objfile>: New member.
9115 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9116 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9117 call to dwarf2_cu.
9118 (cutu_reader::cutu_reader): Update.
9119 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9120
ae090bdb
SM
91212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9124 struct dwarf2_per_objfile.
9125 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9126 dwarf2_per_bfd.
9127 * dwarf2/read.c (set_die_type): Update.
9128 (get_die_type_at_offset): Update.
9129
af758d11
SM
91302020-05-27 Tom Tromey <tom@tromey.com>
9131 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9134 method.
9135 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9136 get_symtab, set_symtab>: New methods.
9137 <m_symtabs>: New field.
9138 (struct dwarf2_psymtab): Derive from partial_symtab.
9139 <readin_p, get_compunit_symtab>: Declare methods.
9140 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9141 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9142 New methods.
9143 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9144 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9145 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9146 (dw2_symtab_iter_next, dw2_print_stats)
9147 (dw2_expand_symtabs_with_fullname)
9148 (dw2_expand_symtabs_matching_one)
9149 (dw_expand_symtabs_matching_file_matcher)
9150 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9151 (dw2_debug_names_iterator::next)
9152 (dw2_debug_names_map_matching_symbols)
9153 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9154 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9155 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9156 New methods.
9157 (get_compunit_symtab, process_full_comp_unit)
9158 (process_full_type_unit): Update.
9159 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9160
5989a64e
SM
91612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9162
9163 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9164 then introduce a new dwarf2_per_objfile type.
9165 <read_line_string>: Move to the new dwarf2_per_objfile type.
9166 <objfile>: Likewise.
9167 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9168 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9169 dwarf2_per_objfile->per_bfd.
9170 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9171 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9172 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9173 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9174 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9175 (dwarf2_per_objfile::locate_sections): Rename to...
9176 (dwarf2_per_bfd::locate_sections): ... this.
9177 (dwarf2_per_objfile::get_cutu): Rename to...
9178 (dwarf2_per_bfd::get_cutu): ... this.
9179 (dwarf2_per_objfile::get_cu): Rename to...
9180 (dwarf2_per_bfd::get_cu): ... this.
9181 (dwarf2_per_objfile::get_tu): Rename to...
9182 (dwarf2_per_bfd::get_tu): ... this.
9183 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9184 (dwarf2_per_bfd::allocate_per_cu): ... this.
9185 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9186 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9187 (get_gdb_index_contents_ftype): Change parameter from
9188 dwarf2_per_objfile to dwarf2_per_bfd.
9189 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9190 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9191
a50264ba
TT
91922020-05-27 Tom Tromey <tom@tromey.com>
9193 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9196 (allocate_piece_closure): Set "per_objfile" member.
9197 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9198 (locexpr_describe_location, loclist_describe_location): Use new
9199 member.
9200 * dwarf2/read.c (read_call_site_scope)
9201 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9202 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9203 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9204 handle_data_member_location): Set per_objfile member.
9205 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9206 member.
9207 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9208
d3473f0c
TT
92092020-05-27 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9212 allocate_signatured_type>: Declare new methods.
9213 <m_num_psymtabs>: New member.
9214 (struct dwarf2_per_cu_data) <index>: New member.
9215 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9216 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9217 (create_cu_from_index_list): Use allocate_per_cu.
9218 (create_signatured_type_table_from_index)
9219 (create_signatured_type_table_from_debug_names)
9220 (create_debug_type_hash_table, add_type_unit)
9221 (read_comp_units_from_section): Use allocate_signatured_type.
9222
5717c425
TT
92232020-05-27 Tom Tromey <tom@tromey.com>
9224
9225 * psymtab.c (partial_map_expand_apply)
9226 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9227 (psym_lookup_global_symbol_language)
9228 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9229 (psym_print_stats, psym_expand_symtabs_for_function)
9230 (psym_map_symbol_filenames, psym_map_matching_symbols)
9231 (psym_expand_symtabs_matching)
9232 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9233 (maintenance_check_psymtabs): Update.
9234 * psympriv.h (struct partial_symtab) <readin_p,
9235 get_compunit_symtab>: Add objfile parameter.
9236 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9237 Likewise.
9238 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9239 get_compunit_symtab>: Likewise.
9240 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9241
45940949
TT
92422020-05-27 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9245 member.
9246 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9247 (create_cu_from_index_list)
9248 (create_signatured_type_table_from_index)
9249 (create_signatured_type_table_from_debug_names)
9250 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9251 (dwarf2_create_include_psymtab)
9252 (create_debug_type_hash_table, add_type_unit)
9253 (create_type_unit_group, read_comp_units_from_section)
9254 (dwarf2_compute_name, create_cus_hash_table)
9255 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9256 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9257 obstack.
9258 (dw2_get_real_path): Likewise. Change argument to
9259 dwarf2_per_objfile.
9260
f8c6d152
LM
92612020-05-27 Luis Machado <luis.machado@linaro.org>
9262
9263 PR tdep/26000
9264 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9265 for ldrd (immediate).
9266
e98d2e6d
PW
92672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9268
9269 * command.h: Add comment giving the name of class_tui.
9270 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9271 create the fake command for the help for class_tui.
9272
53a47a3e
TT
92732020-05-26 Tom Tromey <tromey@adacore.com>
9274
9275 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9276 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9277 (val_atr): New function.
9278 (value_val_atr): Use it.
9279 * ada-valprint.c (print_optional_low_bound): Change low bound
9280 handling for enums.
9281 (val_print_packed_array_elements): Don't call discrete_position.
9282 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9283 discrete_position for enum types.
9284 * language.c (default_print_array_index): Change type.
9285 * language.h (struct language_defn) <la_print_array_index>: Add
9286 index_type parameter, change type of index_value.
9287 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9288 (default_print_array_index): Update.
9289 * valprint.c (maybe_print_array_index): Don't call
9290 value_from_longest. Update.
9291 (value_print_array_elements): Don't call discrete_position.
9292
0bc2354b
TT
92932020-05-26 Tom Tromey <tromey@adacore.com>
9294
9295 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9296 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9297
1218a4bf
CDA
92982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9299
9300 PR gdb/13519
9301 * avr-tdep.c (avr_integer_to_address): Return data or code
9302 address accordingly to the second 'type' argument of the
9303 function.
9304
92651b1d
MW
93052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9306
9307 * infcmd.c, inferior.h: (construct_inferior_arguments):
9308 Moved function from here to gdbsupport/common-inferior.{h,cc}
9309
0a4f5f8c
TT
93102020-05-23 Tom Tromey <tom@tromey.com>
9311
9312 Revert commit eca1f90c:
9313 * NEWS: Remove entry for completion styling.
9314 * completer.c (_rl_completion_prefix_display_length): Move
9315 declaration later.
9316 (gdb_fnprint): Revert.
9317 (gdb_display_match_list_1): Likewise.
9318 * cli/cli-style.c (completion_prefix_style)
9319 (completion_difference_style, completion_suffix_style): Remove.
9320 (_initialize_cli_style): Revert.
9321 * cli/cli-style.h (completion_prefix_style)
9322 (completion_difference_style, completion_suffix_style): Don't
9323 declare.
9324
e08bd6c5
PA
93252020-05-24 Pedro Alves <palves@redhat.com>
9326
9327 * symtab.c (completion_list_add_name): Return boolean indication
9328 of whether the symbol matched.
9329 (completion_list_add_symbol): Don't try to remove C++ aliases if
9330 the symbol didn't match in the first place.
9331 * symtab.h (completion_list_add_name): Return bool.
9332
ceacbf6e
SM
93332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9334
9335 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9336 type::field.
9337
26f16254
JB
93382020-05-23 Joel Brobecker <brobecker@adacore.com>
9339
9340 GDB 9.2 released.
9341
eca1f90c
TT
93422020-05-23 Tom Tromey <tom@tromey.com>
9343
9344 * NEWS: Add entry for completion styling.
9345 * completer.c (_rl_completion_prefix_display_length): Move
9346 declaration earlier.
9347 (gdb_fnprint): Use completion_style.
9348 (gdb_display_match_list_1): Likewise.
9349 * cli/cli-style.c (completion_prefix_style)
9350 (completion_difference_style, completion_suffix_style): New
9351 globals.
9352 (_initialize_cli_style): Register new globals.
9353 * cli/cli-style.h (completion_prefix_style)
9354 (completion_difference_style, completion_suffix_style): Declare.
9355
51e2cfa2
PA
93562020-05-23 Pedro Alves <palves@redhat.com>
9357
9358 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9359 (parse_escape): Use ISDIGIT instead of isdigit.
9360 (puts_debug): Use gdb_isprint instead of isprint.
9361 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9362 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9363 ISSPACE instead of isspace.
9364 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9365 instead of isspace.
9366 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9367 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9368 instead of isxdigit and ISDIGIT instead of isdigit.
9369
80fc5e77
SM
93702020-05-22 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * gdbtypes.h (struct type) <field>: New method.
9373 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9374 or type::field.
9375
3cabb6b0
SM
93762020-05-22 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9379 (TYPE_FIELDS): Use type::fields. Change all call sites that
9380 modify the propery to use type::set_fields instead.
9381
1f704f76
SM
93822020-05-22 Simon Marchi <simon.marchi@efficios.com>
9383
9384 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9385 type::num_fields instead.
9386
5e33d5f4
SM
93872020-05-22 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9390 methods.
9391 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9392 that modify the number of fields to use type::set_num_fields
9393 instead.
9394
9392ebb3
TT
93952020-05-22 Tom Tromey <tromey@adacore.com>
9396
9397 * compile/compile-object-load.h (munmap_list_free): Don't
9398 declare.
9399
7c13f4e8
AB
94002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * annotate.c (annotate_source_line): Update return type, add call
9403 to update current symtab and line.
9404 * annotate.h (annotate_source_line): Update return type, and
9405 extend header comment.
9406 * source.c (info_line_command): Check annotation_level before
9407 calling annotate_source_line.
9408 * stack.c (print_frame_info): If calling annotate_source_line
9409 returns true, then don't print any other source line information.
9410
aa370940
SM
94112020-05-21 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9414
84d53fa9
SM
94152020-05-21 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * coffread.c (patch_type): Remove NULL check before xfree.
9418 * corefile.c (set_gnutarget): Likewise.
9419 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9420 * exec.c (build_section_table): Likewise.
9421 * remote.c (remote_target::pass_signals): Likewise.
9422 * utils.c (n_spaces): Likewise.
9423 * cli/cli-script.c (document_command): Likewise.
9424 * i386-windows-tdep.c (core_process_module_section): Likewise.
9425 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9426
9d428aae
SM
94272020-05-20 Simon Marchi <simon.marchi@efficios.com>
9428
9429 * symfile.c (reread_symbols): Clear objfile's section_offsets
9430 vector and section indices, re-compute them by calling
9431 sym_offsets.
9432
250106a7
TT
94332020-05-20 Tom Tromey <tromey@adacore.com>
9434
9435 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9436 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9437
9a0bacfb
TV
94382020-05-20 Tom de Vries <tdevries@suse.de>
9439
9440 PR symtab/25833
9441 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9442
7b958a48
AM
94432020-05-20 Alan Modra <amodra@gmail.com>
9444
9445 PR 25993
9446 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9447 bfd_set_filename.
9448 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9449 passed to bfd_set_filename.
9450 * symfile-mem.c (add_vsyscall_page): Likewise for string
9451 passed to symbol_file_add_from_memory.
9452 (symbol_file_add_from_memory): Make name param a const char* and
9453 don't strdup.
9454
c7e97679
AM
94552020-05-20 Alan Modra <amodra@gmail.com>
9456
9457 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9458 rather than accessing bfd->filename directly.
9459 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9460 and use bfd_section_name.
9461 * dwarf2/frame.c (decode_frame_entry): Likewise.
9462 * exec.c (exec_set_section_address): Likewise.
9463 * solib-aix.c (solib_aix_bfd_open): Likewise.
9464 * stap-probe.c (get_stap_base_address): Likewise.
9465 * symfile.c (reread_symbols): Likewise.
9466
563c591b
TT
94672020-05-19 Tom Tromey <tromey@adacore.com>
9468
9469 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9470
f408d82c
SM
94712020-05-19 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9474
98c59b52
PA
94752020-05-19 Pedro Alves <palves@redhat.com>
9476
9477 * NEWS (set exec-file-mismatch): Adjust entry.
9478 * exec.c: Include "build-id.h".
9479 (validate_exec_file): Try to match build IDs instead of filenames.
9480 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9481 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9482 and pass down 'warn_if_slow'.
9483 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9484 gdb_bfd_open_closure to pass it down.
9485 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9486
4111f652
PA
94872020-05-19 Pedro Alves <palves@redhat.com>
9488
9489 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9490 * target.c (target_fileio_open_1): Rename to target_fileio_open
9491 and make extern. Use bool.
9492 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9493 (target_fileio_read_alloc_1): Adjust.
9494 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9495 (target_fileio_open_warn_if_slow): Delete declaration.
9496
ad80db5b
PA
94972020-05-19 Pedro Alves <palves@redhat.com>
9498
9499 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9500 Adjust all callers.
9501
1d6ce4d3
YS
95022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9503
9504 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9505 whether disp is negative.
9506
9005fbbb
SM
95072020-05-19 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * symfile.h (struct symfile_segment_data)
9510 <~symfile_segment_data>: Remove.
9511 <segment_info>: Change to std::vector.
9512 * symfile.c (default_symfile_segments): Update.
9513 * elfread.c (elf_symfile_segments): Update.
9514
68b888ff
SM
95152020-05-19 Simon Marchi <simon.marchi@efficios.com>
9516
9517 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9518 <segments>: New.
9519 <segment_bases, segment_sizes>: Remove.
9520 * symfile.c (default_symfile_segments): Update.
9521 * elfread.c (elf_symfile_segments): Update.
9522 * remote.c (remote_target::get_offsets): Update.
9523 * solib-target.c (solib_target_relocate_section_addresses):
9524 Update.
9525
62982abd
SM
95262020-05-19 Simon Marchi <simon.marchi@efficios.com>
9527
9528 * symfile.h (struct symfile_segment_data): Initialize fields.
9529 <~symfile_segment_data>: Add.
9530 (symfile_segment_data_up): New.
9531 (struct sym_fns) <sym_segments>: Return a
9532 symfile_segment_data_up.
9533 (default_symfile_segments): Return a symfile_segment_data_up.
9534 (free_symfile_segment_data): Remove.
9535 (get_symfile_segment_data): Return a symfile_segment_data_up.
9536 * symfile.c (default_symfile_segments): Likewise.
9537 (get_symfile_segment_data): Likewise.
9538 (free_symfile_segment_data): Remove.
9539 (symfile_find_segment_sections): Update.
9540 * elfread.c (elf_symfile_segments): Return a
9541 symfile_segment_data_up.
9542 * remote.c (remote_target::get_offsets): Update.
9543 * solib-target.c (solib_target_relocate_section_addresses):
9544 Update.
9545 * symfile-debug.c (debug_sym_segments): Return a
9546 symfile_segment_data_up.
9547
7f204339
RO
95482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9549
e52a0f1b
RO
9550 PR build/25981
9551 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9552 Hardcode register numbers.
9553
7f204339
RO
9554 PR build/25981
9555 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9556 procfs_find_LDT_entry): Remove.
9557 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9558 procfs_find_LDT_entry): Remove.
9559 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9560 Remove.
9561
7f32a4d5
PA
95622020-05-17 Pedro Alves <palves@redhat.com>
9563 Andrew Burgess <andrew.burgess@embecosm.com>
9564 Keno Fischer <keno@juliacomputing.com>
9565
9566 PR gdb/25741
9567 * breakpoint.c (build_target_condition_list): Update comments.
9568 (build_target_command_list): Update comments and skip matching
9569 locations.
9570 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9571 a separate function. Simplify "set breakpoint auto-hw off"
9572 handling.
9573 (insert_breakpoints): Update comment.
9574 (tracepoint_locations_match): New parameter. For breakpoints,
9575 compare location types too, if the caller wants to.
9576 (handle_automatic_hardware_breakpoints): New functions.
9577 (bp_location_is_less_than): Also sort by location type and
9578 hardware breakpoint length.
9579 (update_global_location_list): Handle "set breakpoint auto-hw on"
9580 here.
9581 (update_breakpoint_locations): Ask breakpoint_locations_match to
9582 ignore location types.
9583
7d93a1e0
SM
95842020-05-16 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9587 type::name instead.
9588
d0e39ea2
SM
95892020-05-16 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * gdbtypes.h (struct type) <name, set_name>: New methods.
9592 (TYPE_CODE): Use type::name. Change all call sites used to set
9593 the name to use type::set_name instead.
9594
2dab0c7b
TT
95952020-05-16 Tom Tromey <tom@tromey.com>
9596
9597 * top.c (quit_force): Update.
9598 * infrun.c (handle_no_resumed): Update.
9599 * top.h (all_uis): New function.
9600 (ALL_UIS): Remove.
9601
59f7bd8d
SM
96022020-05-16 Simon Marchi <simon.marchi@efficios.com>
9603
9604 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9605
9bf058f0
PA
96062020-05-16 Pedro Alves <palves@redhat.com>
9607
9608 * ia64-linux-nat.c
9609 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9610 Declare method.
9611 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9612
8f86ae1a
SM
96132020-05-15 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9616 (sparc64_adi_info): Likewise.
9617
d6bc0792
TT
96182020-05-15 Tom Tromey <tom@tromey.com>
9619
9620 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9621 block_objfile.
9622 (lookup_objfile_from_block): Remove.
9623 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9624 (lookup_global_symbol): Use block_objfile.
9625 * symtab.h (lookup_objfile_from_block): Don't declare.
9626 * printcmd.c (clear_dangling_display_expressions): Use
9627 block_objfile.
9628 * parse.c (operator_check_standard): Use block_objfile.
9629
8c14c3a3
TT
96302020-05-15 Tom Tromey <tom@tromey.com>
9631
9632 * language.c (language_alloc_type_symbol): Set
9633 SYMBOL_SECTION.
9634 * symtab.c (initialize_objfile_symbol): Remove.
9635 (allocate_symbol): Remove.
9636 (allocate_template_symbol): Remove.
9637 * dwarf2/read.c (fixup_go_packaging): Use "new".
9638 (new_symbol): Use "new".
9639 (read_variable): Don't call initialize_objfile_symbol. Use
9640 "new".
9641 (read_func_scope): Use "new".
9642 * xcoffread.c (process_xcoff_symbol): Don't call
9643 initialize_objfile_symbol.
9644 (SYMBOL_DUP): Remove.
9645 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9646 "new".
9647 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9648 (allocate_template_symbol): Don't declare.
9649 (struct symbol): Add copy constructor. Change defaults.
9650 * jit.c (finalize_symtab): Use "new".
9651 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9652 Use "new".
9653 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9654 (common_block_end): Use "new".
9655 * mdebugread.c (parse_symbol): Use "new".
9656 (new_symbol): Likewise.
9657
5b4a1a8d
PW
96582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9659
9660 * NEWS: Mention changes to help and apropos.
9661
57b4f16e
PW
96622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9663
9664 * command.h (enum command_class): Improve comments, document
9665 that class_alias is for user-defined aliases, give the class
9666 name for each class, remove unused class_xdb.
9667 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9668 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9669 by a precise class.
9670 * infcmd.c (_initialize_infcmd): Likewise.
9671 * reverse.c (_initialize_reverse): Likewise.
9672 * stack.c (_initialize_stack): Likewise.
9673 * symfile.c (_initialize_symfile): Likewise.
9674 * tracepoint.c (_initialize_tracepoint): Likewise.
9675
7c05caf7
PW
96762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9677
9678 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9679 when their aliased command is traversed.
9680 (help_cmd): Add fput_command_names_styled call to
9681 output command name and aliases when command has an alias.
9682
3b3aaacb
PW
96832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9684
9685 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9686 * cli/cli-decode.c (help_cmd_list): Declare as static,
9687 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9688 a command together with the command.
9689 (fput_command_name_styled, fput_command_names_styled): New functions.
9690 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9691 fput_command_name_styled.
9692 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9693 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9694
7aa1b46f
PW
96952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9696
9697 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9698 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9699 * command.h (cmd_show_list): Likewise.
9700 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9701 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9702
89bcba74
PW
97032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9704
9705 * unittests/command-def-selftests.c (traverse_command_structure):
9706 Verify all commands of a list have the same prefix command and
9707 that only the top cmdlist commands have a null prefix.
9708
3f4d92eb
PW
97092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9710
9711 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9712 as prefix, not one of its aliases.
9713 (set_cmd_prefix): Remove.
9714 (do_add_cmd): Centralize the setting of the prefix of a command, when
9715 command is defined after its full chain of prefix commands.
9716 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9717 (add_setshow_cmd_full): Likewise.
9718 (update_prefix_field_of_prefixed_commands): New function.
9719 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9720 update_prefix_field_of_prefixed_commands.
9721 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9722 addresses of remote_set_cmdlist and remote_show_cmdlist given
9723 as argument, not the address of an argument.
9724 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9725 * gdb/remote.c (_initialize_remote): Likewise.
9726
0605465f
PW
97272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9728
9729 * cli/cli-cmds.c (alias_command): Check for an existing alias
9730 using lookup_cmd_composition, as valid_command_p is too strict
9731 and forbids aliases that are the prefix of an existing alias
9732 or command.
9733 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9734 command is properly recognised as a valid command.
9735
58e6ac70
PW
97362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9737
9738 * unittests/help-doc-selftests.c: Rename to
9739 unittests/command-def-selftests.c
9740 * unittests/command-def-selftests.c (help_doc_tests): Update some
9741 comments.
9742 (command_structure_tests, traverse_command_structure): New namespace
9743 and function.
9744 (command_structure_invariants_tests): New function.
9745 (_initialize_command_def_selftests) Renamed from
9746 _initialize_help_doc_selftests, register command_structure_invariants
9747 selftest.
9748
a7b9ceb8
PW
97492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9750
9751 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9752 an alias of 'show'.
9753
b2188a06
JB
97542020-05-15 Joel Brobecker <brobecker@adacore.com>
9755
9756 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9757 ada_is_fixed_point_type. Update all callers.
9758 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9759 all callers.
9760 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9761 Update all callers.
9762 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9763 print_fixed_point_type. Update all callers.
9764 * ada-valprint.c (ada_value_print_num): Replace call to
9765 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9766
a51951c2
KB
97672020-05-14 Kevin Buettner <kevinb@redhat.com>
9768
9769 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9770 processors.
9771 (cpu_supports_bts): Add CV_AMD case.
9772
29d6859f
LM
97732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9774 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * infrun.c (stop_all_threads): Collect multiple wait events at
9777 each pass.
9778
78134374
SM
97792020-05-14 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9782 type::code instead.
9783
67607e24
SM
97842020-05-14 Simon Marchi <simon.marchi@efficios.com>
9785
9786 * gdbtypes.h (struct type) <code, set_code>: New methods.
9787 (TYPE_CODE): Use type::code. Change all call sites used to set
9788 the code to use type::set_code instead.
9789
a05575d3
TBA
97902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9791 Tom de Vries <tdevries@suse.de>
9792 Pedro Alves <palves@redhat.com>
9793
9794 PR threads/25478
9795 * infrun.c (stop_all_threads): Do NOT ignore
9796 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9797 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9798 received.
9799 (handle_no_resumed): Remove code handling a live inferior with no
9800 threads.
9801 * remote.c (has_single_non_exited_thread): New.
9802 (remote_target::update_thread_list): Do not delete a thread if is
9803 the last thread of the process.
9804 * thread.c (thread_select): Call delete_exited_threads instead of
9805 prune_threads.
9806
6ad82919
TBA
98072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9808
9809 * infrun.c (stop_all_threads): Enable/disable thread events of all
9810 targets. Move a debug message denoting the end of the function
9811 into the SCOPED_EXIT block.
9812
d890404b
TBA
98132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9814
9815 * process-stratum-target.h: Include <set>.
9816 (all_non_exited_process_targets, switch_to_target_no_thread): New
9817 function declarations.
9818 * process-stratum-target.c (all_non_exited_process_targets)
9819 (switch_to_target_no_thread): New function implementations.
9820
293b3ebc
TBA
98212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9822
9823 * infrun.c (handle_inferior_event): Extract out a piece of code
9824 into...
9825 (mark_non_executing_threads): ...this new function.
9826
7ca9b62a
TBA
98272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9828
9829 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9830 use.
9831
fc75c28b
TBA
98322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9833
9834 * regcache.c (regcache_read_pc_protected): New function
9835 implementation that returns 0 if the PC cannot read via
9836 'regcache_read_pc'.
9837 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9838 instead of 'regcache_read_pc'.
9839 (keep_going_pass_signal): Ditto.
9840
a89febbd
TT
98412020-05-13 Tom Tromey <tromey@adacore.com>
9842
9843 * ada-lang.c (align_value): Remove.
9844 (ada_template_to_fixed_record_type_1): Use align_up.
9845
f7e23710
TBA
98462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9847
9848 * async-event.c: Update the copyright year.
9849 * async-event.h: Update the copyright year.
9850
02ff80c2
SM
98512020-05-12 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * objfiles.h (is_addr_in_objfile,
9854 shared_objfile_contains_address_p): Return bool.
9855 * objfile.c (is_addr_in_objfile,
9856 shared_objfile_contains_address_p): Return bool.
9857
4fd6c7e8
TT
98582020-05-11 Tom Tromey <tromey@adacore.com>
9859
9860 * cli/cli-cmds.c (info_command): Restore.
9861 (_initialize_cli_cmds): Use add_prefix_command for "info".
9862 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9863
5eb68a39
TT
98642020-05-11 Tom Tromey <tromey@adacore.com>
9865
9866 * ada-lang.c (ada_value_primitive_field): Now public.
9867 * ada-lang.h (ada_value_primitive_field): Declare.
9868 * ada-valprint.c (print_field_values): Use
9869 ada_value_primitive_field for wrapper fields.
9870
7666722f
TV
98712020-05-11 Tom de Vries <tdevries@suse.de>
9872
9873 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9874 MODULE_DOMAIN.
9875
3ee6bb11
TV
98762020-05-11 Tom de Vries <tdevries@suse.de>
9877
9878 PR symtab/25941
9879 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9880 with length 0, if not gdb-produced.
9881 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9882
43434996
TV
98832020-05-09 Tom de Vries <tdevries@suse.de>
9884
9885 PR gdb/25955
9886 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9887 calculation.
9888
2f78cffc
TT
98892020-05-09 Tom Tromey <tom@tromey.com>
9890
9891 * top.c (server_command): Now bool.
9892 * top.h (server_command): Now bool.
9893
4f7bc5ed
TT
98942020-05-08 Tom Tromey <tromey@adacore.com>
9895
9896 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9897 already being processed.
9898
8be4b118
TT
98992020-05-08 Tom Tromey <tom@tromey.com>
9900
9901 * printcmd.c (struct display) <next>: Remove.
9902 <display>: New constructor.
9903 <exp_string>: Now a std::string.
9904 <enabled_p>: Now a bool.
9905 (display_number): Move definition earlier.
9906 (displays): Rename from display_chain. Now a std::vector.
9907 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9908 (display_command): Update.
9909 (do_one_display, disable_display)
9910 (enable_disable_display_command, do_enable_disable_display):
9911 Update.
9912 (free_display): Remove.
9913 (clear_displays): Rewrite.
9914 (delete_display): Update.
9915 (map_display_numbers): Use function_view. Remove "data"
9916 parameter. Update.
9917 (do_delete_display): Remove.
9918 (undisplay_command): Update.
9919 (do_one_display, do_displays, disable_display)
9920 (info_display_command): Update.
9921 (do_enable_disable_display): Remove.
9922 (enable_disable_display_command)
9923 (clear_dangling_display_expressions): Update.
9924
94c93c35
TT
99252020-05-08 Tom Tromey <tom@tromey.com>
9926
9927 * symtab.c (set_symbol_cache_size)
9928 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9929 (maintenance_print_symbol_cache_statistics): Update.
9930 * symmisc.c (print_symbol_bcache_statistics)
9931 (print_objfile_statistics, maintenance_print_objfiles)
9932 (maintenance_info_symtabs, maintenance_check_symtabs)
9933 (maintenance_expand_symtabs, maintenance_info_line_tables):
9934 Update.
9935 * symfile-debug.c (set_debug_symfile): Update.
9936 * source.c (forget_cached_source_info): Update.
9937 * python/python.c (gdbpy_progspaces): Update.
9938 * psymtab.c (maintenance_info_psymtabs): Update.
9939 * probe.c (parse_probes): Update.
9940 * linespec.c (iterate_over_all_matching_symtabs)
9941 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9942 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9943 * exec.c (exec_target::close): Update.
9944 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9945 * breakpoint.c (print_one_breakpoint_location)
9946 (create_longjmp_master_breakpoint)
9947 (create_std_terminate_master_breakpoint): Update.
9948 * progspace.c (program_spaces): Now a std::vector.
9949 (maybe_new_address_space): Update.
9950 (add_program_space): Remove.
9951 (program_space::program_space): Update.
9952 (remove_program_space): Update.
9953 (number_of_program_spaces): Remove.
9954 (print_program_space, update_address_spaces): Update.
9955 * progspace.h (program_spaces): Change type.
9956 (ALL_PSPACES): Remove.
9957 (number_of_program_spaces): Don't declare.
9958 (struct program_space) <next>: Remove.
9959
a1fd1ac9
TT
99602020-05-08 Tom Tromey <tom@tromey.com>
9961
9962 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9963 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9964 (enable_break): Update.
9965 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9966 (frv_fdpic_find_canonical_descriptor): Update.
9967 (frv_fetch_objfile_link_map): Update.
9968 * progspace.c (program_space::free_all_objfiles): Update.
9969 (program_space::solibs): New method.
9970 * progspace.h (struct program_space) <solibs>: New method.
9971 * solist.h (master_so_list): Don't declare.
9972 (ALL_SO_LIBS): Remove.
9973 * solib.h (so_list_head): Remove.
9974 (update_solib_list): Update comment.
9975 * solib.c (master_so_list): Remove.
9976 (solib_used, update_solib_list, solib_add)
9977 (info_sharedlibrary_command, clear_solib)
9978 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9979
38eae084
TT
99802020-05-08 Tom Tromey <tom@tromey.com>
9981
9982 * extension.c (extension_languages): Now a std::array.
9983 (ALL_EXTENSION_LANGUAGES): Remove.
9984 (get_ext_lang_defn, get_ext_lang_of_file)
9985 (eval_ext_lang_from_control_command): Update.
9986 (finish_ext_lang_initialization)
9987 (auto_load_ext_lang_scripts_for_objfile)
9988 (ext_lang_type_printers::ext_lang_type_printers)
9989 (apply_ext_lang_type_printers)
9990 (ext_lang_type_printers::~ext_lang_type_printers)
9991 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9992 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9993 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9994 (get_matching_xmethod_workers, ext_lang_colorize)
9995 (ext_lang_before_prompt): Update.
9996 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9997
596dc4ad
TT
99982020-05-08 Tom Tromey <tom@tromey.com>
9999
10000 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10001 overload.
10002 <swap_string, m_string>: Remove.
10003 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10004 Update.
10005 * stabsread.c (define_symbol, read_type): Update.
10006 * linespec.c (find_linespec_symbols): Update.
10007 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10008 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10009 * dbxread.c (read_dbx_symtab): Update.
10010 * cp-support.h (cp_canonicalize_string_full)
10011 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10012 Return unique_xmalloc_ptr.
10013 * cp-support.c (inspect_type): Update.
10014 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10015 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10016 Likewise.
10017 * c-typeprint.c (print_name_maybe_canonical): Update.
10018 * break-catch-throw.c (check_status_exception_catchpoint):
10019 Update.
10020
bf4cb9be
TV
100212020-05-08 Tom de Vries <tdevries@suse.de>
10022
10023 * infrun.c (follow_fork): Copy current_line and current_symtab to
10024 child thread.
10025
a1b68f28
SM
100262020-05-07 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * async-event.c (struct async_signal_handler, struct
10029 async_event_handler): Reformat, remove typedef.
10030
98d48915
SM
100312020-05-07 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10034 access thistype->main_type->dyn_prop_list directly.
10035
7aa91313
SM
100362020-05-07 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10039 (remove_dyn_prop): Remove. Update all users to use
10040 type::remove_dyn_prop.
10041 * gdbtypes.c (remove_dyn_prop): Rename to...
10042 (type::remove_dyn_prop): ... this.
10043
5c54719c
SM
100442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10045
10046 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10047 (add_dyn_prop): Remove. Update all users to use
10048 type::add_dyn_prop.
10049 * gdbtypes.c (add_dyn_prop): Rename to...
10050 (type::add_dyn_prop): ... this.
10051
24e99c6c
SM
100522020-05-07 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10055 (get_dyn_prop): Remove. Update all users to use
10056 type::dyn_prop.
10057 * gdbtypes.c (get_dyn_prop): Rename to...
10058 (type::dyn_prop): ... this.
10059
0d4bf016
SM
100602020-05-06 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10063
ac4a4f1c
SM
100642020-05-06 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10067 instruction, skip it if it's there.
10068
a3bbacc1
SM
100692020-05-05 Simon Marchi <simon.marchi@efficios.com>
10070
10071 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10072
c3236f84
SM
100732020-05-04 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10076 * gdbtypes.c (recursive_dump_type): Remove use of
10077 TYPE_INCOMPLETE.
10078
3b6acaee
TT
100792020-05-03 Tom Tromey <tom@tromey.com>
10080
10081 * breakpoint.c (catch_command, tcatch_command): Remove.
10082 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10083 add_show_prefix_cmd.
10084 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10085 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10086 Remove.
10087 (add_internal_problem_command): Use add_basic_prefix_cmd,
10088 add_show_prefix_cmd.
10089 * mips-tdep.c (set_mipsfpu_command): Remove.
10090 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10091 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10092 (_initialize_index_cache): Use add_basic_prefix_cmd.
10093 * memattr.c (dummy_cmd): Remove.
10094 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10095 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10096 (_initialize_tui_win): Use add_basic_prefix_cmd,
10097 add_show_prefix_cmd.
10098 * cli/cli-logging.c (set_logging_command): Remove.
10099 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10100 add_show_prefix_cmd.
10101 (show_logging_command): Remove.
10102 * target.c (target_command): Remove.
10103 (add_target): Use add_basic_prefix_cmd.
10104
a51119cd
HD
101052020-05-02 Hannes Domani <ssbssa@yahoo.de>
10106
10107 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10108
652fc23a 101092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10110
652fc23a
PW
10111 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10112 info_command.
10113
117539e6
KR
101142020-04-30 Kamil Rytarowski <n54@gmx.com>
10115
10116 * nbsd-nat.c (nbsd_enable_proc_events)
10117 (nbsd_nat_target::post_startup_inferior): Add.
10118 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10119 (nbsd_nat_target::update_thread_list): Rewrite.
10120 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10121 "PTRACE_LWP_CREATE".
10122 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10123
102e38eb 101242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10125
102e38eb
PW
10126 * stack.c (_initialize_stack): Remove duplicated creation
10127 of "frame" command and "f" alias.
10128
ee9d1e5f
HD
101292020-04-30 Hannes Domani <ssbssa@yahoo.de>
10130
10131 PR gdb/18706
10132 * gdbtypes.c (check_typedef): Calculate size of array of
10133 stubbed type.
10134
627c7fb8
HD
101352020-04-30 Hannes Domani <ssbssa@yahoo.de>
10136
10137 PR gdb/15559
10138 * i386-tdep.c (i386_push_dummy_call): Call
10139 i386_thiscall_push_dummy_call.
10140 (i386_thiscall_push_dummy_call): New function.
10141 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10142 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10143 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10144
ffc2844e
SM
101452020-04-29 Simon Marchi <simon.marchi@efficios.com>
10146
10147 * gdbarch.sh (do_read): Add shellcheck disable directive for
10148 warning SC2162.
10149
1207375d
SM
101502020-04-29 Simon Marchi <simon.marchi@efficios.com>
10151
10152 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10153 "referenced but not assigned" warning.
10154
9fdb2916
SM
101552020-04-29 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * gdbarch.sh: Remove code that sets fallbackdefault.
10158
759cea5e
SM
101592020-04-29 Simon Marchi <simon.marchi@efficios.com>
10160
10161 * gdbarch.sh: Use shell operators && and || instead of
10162 -a and -o.
10163
cb02ab24
SM
101642020-04-29 Simon Marchi <simon.marchi@efficios.com>
10165
10166 * gdbarch.sh: Use $(...) instead of `...`.
10167
a6fc5ffc
SM
101682020-04-29 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * gdbarch.sh: Use double quotes around variables.
10171
8d113d13
SM
101722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * gdbarch.sh: Use %s with printf, instead of variables in the
10175 format string.
10176
ed6acedd
TT
101772020-04-29 Tom Tromey <tromey@adacore.com>
10178
10179 PR ada/25875:
10180 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10181 type fields here.
10182 (read_enumeration_type): Call
10183 update_enumeration_type_from_children later. Update comments.
10184 (process_enumeration_scope): Don't create type fields.
10185
b68b1b58
KR
101862020-04-29 Kamil Rytarowski <n54@gmx.com>
10187
10188 * nbsd-tdep.c: Include "xml-syscall.h".
10189 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10190
f94b2e03
KR
101912020-04-29 Kamil Rytarowski <n54@gmx.com>
10192
10193 * nbsd-nat.c: Include "sys/wait.h".
10194 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10195 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10196 (nbsd_nat_target::remove_exec_catchpoint)
10197 (nbsd_nat_target::set_syscall_catchpoint): Add.
10198 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10199 (nbsd_nat_target::insert_exec_catchpoint)
10200 (nbsd_nat_target::remove_exec_catchpoint)
10201 (nbsd_nat_target::set_syscall_catchpoint): Add.
10202 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10203 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10204 `nbsd_get_syscall_number'.
10205
fc49bc72
TT
102062020-04-29 Tom Tromey <tom@tromey.com>
10207
10208 * stack.c (print_block_frame_labels): Remove.
10209
d642b692
HD
102102020-04-29 Hannes Domani <ssbssa@yahoo.de>
10211
10212 PR gdb/17320
10213 * ada-valprint.c (val_print_packed_array_elements): Move array
10214 end bracket to new line.
10215 (ada_val_print_string): Remove extra spaces before first array
10216 element.
10217 * c-valprint.c (c_value_print_array): Likewise.
10218 * m2-valprint.c (m2_print_array_contents): Likewise.
10219 (m2_value_print_inner): Likewise.
10220 * p-valprint.c (pascal_value_print_inner): Likewise.
10221 * valprint.c (generic_val_print_array): Likewise.
10222 (value_print_array_elements): Move first array element and array
10223 end bracket to new line.
10224
ea90f227
TV
102252020-04-29 Tom de Vries <tdevries@suse.de>
10226
10227 PR symtab/25889
10228 * linespec.c (find_method): Fix ix calculation.
10229
4498ef4f
KR
102302020-04-28 Kamil Rytarowski <n54@gmx.com>
10231
10232 * syscalls/update-netbsd.sh: New file.
10233 * syscalls/netbsd.xml: Regenerate.
10234 * data-directory/Makefile.in: Register `netbsd.xml' in
10235 `SYSCALLS_FILES'.
10236
a55e30b5
SM
102372020-04-28 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * syscalls/update-freebsd.sh: Add double quotes.
10240
2b2fbab8
TT
102412020-04-28 Tom Tromey <tom@tromey.com>
10242
10243 * NEWS: Update.
10244 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10245 (cmdpy_init): Allow class_tui.
10246
a65189c9
TV
102472020-04-28 Mark Williams <mark@myosotissp.com>
10248
10249 PR gdb/24480
10250 * dwarf2read.c: Add missing assingments to list_in_scope when
10251 start_symtab was already called.
10252
1b95cdb7
SM
102532020-04-28 Simon Marchi <simon.marchi@efficios.com>
10254
10255 PR gdb/25881
10256 * dwarf2/read.c (offset_map_type): Use
10257 gdb:hash_enum<sect_offset> as hash function.
10258
15cd93d0
TV
102592020-04-28 Tom de Vries <tdevries@suse.de>
10260
10261 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10262 with DW_AT_signature.
10263
1eb39914
SM
102642020-04-27 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * configure.ac: Remove check for fs_base/gs_base in
10267 user_regs_struct.
10268 * configure: Re-generate.
10269 * config.in: Re-generate.
10270 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10271 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10272 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10273
991a3e2e
LM
102742020-04-27 Luis Machado <luis.machado@linaro.org>
10275
10276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10277 problematic inline frame unwinding situation.
10278 * frame.c (frame_id_computed_p): New function.
10279 * frame.h (frame_id_computed_p): New prototype.
10280
361ba0e8
TT
102812020-04-26 Tom Tromey <tom@tromey.com>
10282
10283 * command.h (enum command_class) <class_pseudo>: Remove.
10284
bc3609fd
PW
102852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10286
10287 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10288 and whitespace.
10289
b9771db7
KR
102902020-04-25 Kamil Rytarowski <n54@gmx.com>
10291
ec16513e
SM
10292 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10293 `PT_GET_PROCESS_STATE' block.
b9771db7 10294
7151c1af
TT
102952020-04-24 Tom Tromey <tom@tromey.com>
10296
10297 * symtab.h (symbol_get_demangled_name): Don't declare.
10298 * symtab.c (symbol_get_demangled_name): Remove.
10299 (general_symbol_info::natural_name)
10300 (general_symbol_info::demangled_name): Update.
10301
906bb4c5
TT
103022020-04-24 Tom Tromey <tom@tromey.com>
10303
10304 PR rust/25025:
10305 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10306
bcfe6157
TT
103072020-04-24 Tom Tromey <tom@tromey.com>
10308
10309 PR symtab/12707:
10310 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10311 exists.
10312 (new_symbol): Likewise.
10313 * compile/compile-object-load.c (get_out_value_type): Use
10314 symbol_matches_search_name.
10315
f049a313
TT
103162020-04-24 Tom Tromey <tom@tromey.com>
10317
10318 * dwarf2/read.c (add_partial_symbol): Do not call
10319 compute_and_set_names.
10320
76e288d1
TT
103212020-04-24 Tom Tromey <tom@tromey.com>
10322
10323 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10324 overload.
10325
2467f4f6
TT
103262020-04-24 Tom Tromey <tom@tromey.com>
10327
10328 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10329 (add_psymbol_to_list): New overload. Make old overload call new
10330 one.
10331 * psympriv.h (add_psymbol_to_list): New overload.
10332
e61108c9
TT
103332020-04-24 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/read.c (partial_die_info::read) <case
10336 DW_AT_linkage_name>: Use value_as_string.
10337 (dwarf2_string_attr): Use value_as_string.
10338 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10339 method.
10340 * dwarf2/attribute.c (attribute::value_as_string): New method.
10341
8c87a452
TT
103422020-04-24 Tom Tromey <tom@tromey.com>
10343
10344 * symtab.c (general_symbol_info::natural_name)
10345 (general_symbol_info::demangled_name): Check for language_rust.
10346
787de330
TT
103472020-04-24 Tom Tromey <tom@tromey.com>
10348
10349 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10350 (dwarf2_physname): ... from here.
10351 (partial_die_info::read): Add Rust "{" hack.
10352
ff985671
TT
103532020-04-24 Tom Tromey <tom@tromey.com>
10354
10355 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10356 method.
10357 (symbol_set_demangled_name): Don't declare.
10358 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10359 symbol_set_demangled_name.
10360 (general_symbol_info::set_language)
10361 (general_symbol_info::compute_and_set_names): Update.
10362 * minsyms.c (minimal_symbol_reader::install): Update.
10363 * dwarf2/read.c (new_symbol): Update.
10364
1acda803
TT
103652020-04-24 Tom Tromey <tromey@adacore.com>
10366
10367 PR python/23662:
10368 * python/py-type.c (convert_field): Handle
10369 FIELD_LOC_KIND_DWARF_BLOCK.
10370 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10371 (typy_get_dynamic): Nw function.
10372 (type_object_getset): Add "dynamic".
10373 * NEWS: Add entry.
10374
d656f129
TT
103752020-04-24 Tom Tromey <tromey@adacore.com>
10376
10377 * ada-typeprint.c (print_choices, print_variant_part)
10378 (print_record_field_types_dynamic): New functions.
10379 (print_record_field_types): Use print_record_field_types_dynamic.
10380
7d79de9a
TT
103812020-04-24 Tom Tromey <tromey@adacore.com>
10382
10383 * dwarf2/read.c (handle_data_member_location): New overload.
10384 (dwarf2_add_field): Use it.
10385 (decode_locdesc): Add "computed" parameter. Update comment.
10386 * gdbtypes.c (is_dynamic_type_internal): Also look for
10387 FIELD_LOC_KIND_DWARF_BLOCK.
10388 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10389 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10390 virtual base classes.
10391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10392 FIELD_LOC_KIND_DWARF_BLOCK.
10393
f8e89861
TT
103942020-04-24 Tom Tromey <tromey@adacore.com>
10395
10396 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10397 * gdbtypes.c (is_dynamic_type_internal): Check
10398 TYPE_HAS_DYNAMIC_LENGTH.
10399 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10400 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10401 New macros.
10402 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10403 constant.
10404
9c6a1327
TT
104052020-04-24 Tom Tromey <tromey@adacore.com>
10406
10407 * dwarf2/read.c (struct variant_field): Rewrite.
10408 (struct variant_part_builder): New.
10409 (struct nextfield): Remove "variant" field. Add "offset".
10410 (struct field_info): Add "current_variant_part" and
10411 "variant_parts".
10412 (alloc_discriminant_info): Remove.
10413 (alloc_rust_variant): New function.
10414 (quirk_rust_enum): Update.
10415 (dwarf2_add_field): Set "offset" member. Don't handle
10416 DW_TAG_variant_part.
10417 (offset_map_type): New typedef.
10418 (convert_variant_range, create_one_variant)
10419 (create_one_variant_part, create_variant_parts)
10420 (add_variant_property): New functions.
10421 (dwarf2_attach_fields_to_type): Call add_variant_property.
10422 (read_structure_type): Don't handle DW_TAG_variant_part.
10423 (handle_variant_part, handle_variant): New functions.
10424 (handle_struct_member_die): Use them.
10425 (process_structure_scope): Don't handle variant parts.
10426 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10427 (struct discriminant_info): Remove.
10428 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10429 (struct main_type) <flag_discriminated_union>: Remove.
10430 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10431 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10432 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10433 Update.
10434 * valops.c (value_union_variant): Remove.
10435 * value.h (value_union_variant): Don't declare.
10436
b249d2c2
TT
104372020-04-24 Tom Tromey <tromey@adacore.com>
10438
10439 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10440 (ada_value_primitive_packed_val): Update.
10441 * ada-valprint.c (ada_value_print_1): Update.
10442 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10443 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10444 just an address. Use evaluate_for_locexpr_baton.
10445 (dwarf2_evaluate_property): Update.
10446 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10447 array_view.
10448 * findvar.c (default_read_var_value): Update.
10449 * gdbtypes.c (compute_variant_fields_inner)
10450 (resolve_dynamic_type_internal): Update.
10451 (resolve_dynamic_type): Change type of valaddr parameter.
10452 * gdbtypes.h (resolve_dynamic_type): Update.
10453 * valarith.c (value_subscripted_rvalue): Update.
10454 * value.c (value_from_contents_and_address): Update.
10455
61122aa9
TT
104562020-04-24 Tom Tromey <tromey@adacore.com>
10457
10458 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10459 "push_initial_value" parameter.
10460 (dwarf2_evaluate_property): Likewise.
10461 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10462
ef83a141
TT
104632020-04-24 Tom Tromey <tromey@adacore.com>
10464
10465 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10466 (variant::matches, compute_variant_fields_recurse)
10467 (compute_variant_fields_inner, compute_variant_fields): New
10468 functions.
10469 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10470 Use resolved_type after type is made.
10471 (operator==): Add new cases.
10472 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10473 (struct discriminant_range, struct variant, struct variant_part):
10474 New.
10475 (union dynamic_prop_data) <variant_parts, original_type>: New
10476 members.
10477 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10478 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10479 constants.
10480 * value.c (unpack_bits_as_long): Now public.
10481 * value.h (unpack_bits_as_long): Declare.
10482
675127ec
TT
104832020-04-24 Tom Tromey <tromey@adacore.com>
10484
10485 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10486 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10487
9852ceef
HD
104882020-04-24 Hannes Domani <ssbssa@yahoo.de>
10489
10490 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10491
7632c6ce
KR
104922020-04-24 Kamil Rytarowski <n54@gmx.com>
10493
10494 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10495 (remove_fork_catchpoint, post_startup_inferior)
10496 (post_attach): Move...
10497 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10498 (remove_fork_catchpoint, post_startup_inferior)
10499 (post_attach): ...here.
10500 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10501 (remove_fork_catchpoint, post_startup_inferior)
10502 (post_attach): Move...
10503 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10504 (remove_fork_catchpoint, post_startup_inferior)
10505 (post_attach): ...here.
10506
7be2bb4f
TT
105072020-04-24 Tom Tromey <tromey@adacore.com>
10508
10509 * nat/windows-nat.h (struct windows_thread_info)
10510 <pc_adjusted>: New member.
10511 * windows-nat.c (windows_fetch_one_register): Check
10512 pc_adjusted.
10513 (windows_nat_target::get_windows_debug_event)
10514 (windows_nat_target::wait): Set pc_adjusted.
10515
f80cb3b4
TV
105162020-04-24 Tom de Vries <tdevries@suse.de>
10517
10518 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10519 Run gdb-add-index inside temp dir.
10520
29514b87
TT
105212020-04-23 Tom Tromey <tromey@adacore.com>
10522
10523 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10524 in loop.
10525
5939967b
LM
105262020-04-23 Luis Machado <luis.machado@linaro.org>
10527
10528 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10529 get_frame_register instead of gdbarch_unwind_pc.
10530
70bc38f5
TV
105312020-04-23 Tom de Vries <tdevries@suse.de>
10532
10533 * symtab.c (lookup_global_symbol): Prefer def over decl.
10534
de82891c
TV
105352020-04-23 Tom de Vries <tdevries@suse.de>
10536
10537 PR symtab/25807
10538 * block.c (best_symbol, better_symbol): Promote to external.
10539 * block.h (best_symbol, better_symbol): Declare.
10540 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10541 decl.
10542
ecc6c606
TT
105432020-04-23 Tom Tromey <tromey@adacore.com>
10544
10545 PR ada/25837:
10546 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10547 "const char *", not a "const std::string &".
10548 <name_and_matcher::operator==>: Update.
10549 * unittests/lookup_name_info-selftests.c: Change type of
10550 "result".
10551
740480b8
TT
105522020-04-23 Tom Tromey <tom@tromey.com>
10553
10554 * inferior.h (iterate_over_inferiors): Don't declare.
10555 * inferior.c (iterate_over_inferiors): Remove.
10556 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10557 Remove.
10558 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10559 use iterate_over_inferiors.
10560 (darwin_resume_inferior_it)
10561 (struct resume_inferior_threads_param)
10562 (darwin_resume_inferior_threads_it): Remove.
10563 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10564
ae3ab1f0
TV
105652020-04-23 Tom de Vries <tdevries@suse.de>
10566
10567 * blockframe.c (find_pc_partial_function): Use
10568 find_pc_sect_compunit_symtab rather than
10569 objfile->sf->qf->find_pc_sect_compunit_symtab.
10570
317d2668
TV
105712020-04-22 Tom de Vries <tdevries@suse.de>
10572
10573 PR symtab/25764
10574 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10575 in psymtabs.
10576
eea9e357
TV
105772020-04-22 Tom de Vries <tdevries@suse.de>
10578
10579 PR symtab/25801
10580 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10581 symtabs.
10582
3d5afab3
TV
105832020-04-22 Tom de Vries <tdevries@suse.de>
10584
10585 PR symtab/25700
10586 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10587 CU if already created.
10588
d43b7a2d
TBA
105892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10590
10591 * infrun.c (displaced_step_fixup): Switch to the event_thread
10592 before calling displaced_step_restore, not after.
10593
d89edf9b
MM
105942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10595
10596 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10597 its inferior is not recorded by us.
10598 (record_btrace_target_open): Replace call to
10599 all_non_exited_threads () with call to current_inferior
10600 ()->non_exited_threads ().
10601 (record_btrace_target::stop_recording): Likewise.
10602 (record_btrace_target::close): Likewise.
10603 (record_btrace_target::wait): Likewise.
10604 (record_btrace_target::record_stop_replaying): Likewise.
10605
5897fd49
MM
106062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10607
10608 * btrace.c (btrace_enable): Throw an error on double enables and
10609 when enabling recording fails.
10610 (btrace_disable): Throw an error if the thread is not recorded.
10611
1a476b6d
MM
106122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10613
10614 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10615 request if we do not have a thread_info.
10616
4778a5f8
TV
106172020-04-21 Tom de Vries <tdevries@suse.de>
10618
10619 PR gdb/25471
10620 * thread.c
10621 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10622 exception in get_frame_id.
10623
0fa7617d
TT
106242020-04-20 Tom Tromey <tromey@adacore.com>
10625
10626 * python/python.c (struct gdbpy_event): Mark move constructor as
10627 noexcept.
10628 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10629 constructor as noexcept.
10630 * completer.h (struct completion_result): Mark move constructor as
10631 noexcept.
10632 * completer.c (completion_result::completion_result): Use
10633 initialization style. Don't call reset_match_list.
10634
ad23bda0
MS
106352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10636
10637 * MAINTAINERS (Write After Approval): Add myself.
10638
45e1f031
TT
106392020-04-18 Tom Tromey <tom@tromey.com>
10640
10641 * windows-tdep.c (init_w32_command_list)
10642 (w32_prefix_command_valid): Restore.
10643 (_initialize_windows_tdep): Call init_w32_command_list.
10644
08feed99
TT
106452020-04-18 Tom Tromey <tom@tromey.com>
10646
10647 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10648 * value.c (value_fn_field): Update.
10649 * valops.c (find_function_in_inferior)
10650 (value_allocate_space_in_inferior): Update.
10651 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10652 Update.
10653 * tui/tui-source.c (tui_source_window::set_contents): Update.
10654 * symtab.c (lookup_global_or_static_symbol)
10655 (find_function_start_sal_1, skip_prologue_sal)
10656 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10657 * symmisc.c (dump_msymbols, dump_symtab_1)
10658 (maintenance_print_one_line_table): Update.
10659 * symfile.c (init_entry_point_info, section_is_mapped)
10660 (list_overlays_command, simple_read_overlay_table)
10661 (simple_overlay_update_1): Update.
10662 * stap-probe.c (handle_stap_probe): Update.
10663 * stabsread.c (dbx_init_float_type, define_symbol)
10664 (read_one_struct_field, read_enum_type, read_range_type): Update.
10665 * source.c (info_line_command): Update.
10666 * python/python.c (gdbpy_source_objfile_script)
10667 (gdbpy_execute_objfile_script): Update.
10668 * python/py-type.c (save_objfile_types): Update.
10669 * python/py-objfile.c (py_free_objfile): Update.
10670 * python/py-inferior.c (python_new_objfile): Update.
10671 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10672 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10673 (maintenance_check_psymtabs): Update.
10674 * printcmd.c (info_address_command): Update.
10675 * objfiles.h (struct objfile) <arch>: New method, from
10676 get_objfile_arch.
10677 (get_objfile_arch): Don't declare.
10678 * objfiles.c (get_objfile_arch): Remove.
10679 (filter_overlapping_sections): Update.
10680 * minsyms.c (msymbol_is_function): Update.
10681 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10682 (output_nondebug_symbol): Update.
10683 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10684 (mdebug_expand_psymtab): Update.
10685 * machoread.c (macho_add_oso_symfile): Update.
10686 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10687 Update.
10688 * linux-fork.c (checkpoint_command): Update.
10689 * linespec.c (convert_linespec_to_sals): Update.
10690 * jit.c (finalize_symtab): Update.
10691 * infrun.c (insert_exception_resume_from_probe): Update.
10692 * ia64-tdep.c (ia64_find_unwind_table): Update.
10693 * hppa-tdep.c (internalize_unwinds): Update.
10694 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10695 Update.
10696 * gcore.c (call_target_sbrk): Update.
10697 * elfread.c (record_minimal_symbol, elf_symtab_read)
10698 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10699 (elf_gnu_ifunc_resolve_by_got): Update.
10700 * dwarf2/read.c (create_addrmap_from_index)
10701 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10702 (read_debug_names_from_section)
10703 (process_psymtab_comp_unit_reader, add_partial_symbol)
10704 (add_partial_subprogram, process_full_comp_unit)
10705 (read_file_scope, read_func_scope, read_lexical_block_scope)
10706 (read_call_site_scope, dwarf2_ranges_read)
10707 (dwarf2_record_block_ranges, dwarf2_add_field)
10708 (mark_common_block_symbol_computed, read_tag_pointer_type)
10709 (read_tag_string_type, dwarf2_init_float_type)
10710 (dwarf2_init_complex_target_type, read_base_type)
10711 (partial_die_info::read, partial_die_info::read)
10712 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10713 (dwarf2_fetch_die_loc_sect_off): Update.
10714 * dwarf2/loc.c (dwarf2_find_location_expression)
10715 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10716 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10717 (dwarf2_loc_desc_get_symbol_read_needs)
10718 (locexpr_describe_location_piece, locexpr_describe_location_1)
10719 (loclist_describe_location): Update.
10720 * dwarf2/index-write.c (write_debug_names): Update.
10721 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10722 * dtrace-probe.c (dtrace_process_dof): Update.
10723 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10724 (process_one_symbol): Update.
10725 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10726 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10727 (coff_read_enum_type): Update.
10728 * cli/cli-cmds.c (edit_command, list_command): Update.
10729 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10730 * breakpoint.c (create_overlay_event_breakpoint)
10731 (create_longjmp_master_breakpoint)
10732 (create_std_terminate_master_breakpoint)
10733 (create_exception_master_breakpoint, get_sal_arch): Update.
10734 * block.c (block_gdbarch): Update.
10735 * annotate.c (annotate_source_line): Update.
10736
0743fc83
TT
107372020-04-17 Tom Tromey <tromey@adacore.com>
10738
10739 * auto-load.c (show_auto_load_cmd): Remove.
10740 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10741 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10742 (maintenance_print_arc_command): Remove.
10743 * tui/tui-win.c (tui_command): Remove.
10744 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10745 * tui/tui-layout.c (tui_layout_command): Remove.
10746 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10747 * python/python.c (user_set_python, user_show_python): Remove.
10748 (_initialize_python): Use add_basic_prefix_cmd,
10749 add_show_prefix_cmd.
10750 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10751 (install_gdb_commands): Use add_basic_prefix_cmd,
10752 add_show_prefix_cmd.
10753 (info_guile_command): Remove.
10754 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10755 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10756 add_show_prefix_cmd.
10757 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10758 Remove do_set and do_show parameters.
10759 * cli/cli-style.c (set_style, show_style): Remove.
10760 (_initialize_cli_style): Use add_basic_prefix_cmd,
10761 add_show_prefix_cmd.
10762 (cli_style_option::add_setshow_commands): Remove do_set and
10763 do_show parameters.
10764 (cli_style_option::add_setshow_commands): Use
10765 add_basic_prefix_cmd, add_show_prefix_cmd.
10766 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10767 (set_style_name): Remove.
10768 * cli/cli-dump.c (dump_command, append_command): Remove.
10769 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10770 (tekhex_dump_command, binary_dump_command)
10771 (binary_append_command): Remove.
10772 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10773 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10774 (init_w32_command_list): Remove; move into ...
10775 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10776 * valprint.c (set_print, show_print, set_print_raw)
10777 (show_print_raw): Remove.
10778 (_initialize_valprint): Use add_basic_prefix_cmd,
10779 add_show_prefix_cmd.
10780 * typeprint.c (set_print_type, show_print_type): Remove.
10781 (_initialize_typeprint): Use add_basic_prefix_cmd,
10782 add_show_prefix_cmd.
10783 * record.c (set_record_command, show_record_command): Remove.
10784 (_initialize_record): Use add_basic_prefix_cmd,
10785 add_show_prefix_cmd.
10786 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10787 add_show_prefix_cmd.
10788 (info_command, show_command, set_debug, show_debug): Remove.
10789 * top.h (set_history, show_history): Don't declare.
10790 * top.c (set_history, show_history): Remove.
10791 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10792 (unset_tdesc_cmd): Remove.
10793 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10794 add_show_prefix_cmd.
10795 * symtab.c (info_module_command): Remove.
10796 (_initialize_symtab): Use add_basic_prefix_cmd.
10797 * symfile.c (overlay_command): Remove.
10798 (_initialize_symfile): Use add_basic_prefix_cmd.
10799 * sparc64-tdep.c (info_adi_command): Remove.
10800 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10801 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10802 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10803 add_show_prefix_cmd.
10804 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10805 (_initialize_serial): Use add_basic_prefix_cmd,
10806 add_show_prefix_cmd.
10807 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10808 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10809 add_show_prefix_cmd.
10810 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10811 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10812 add_show_prefix_cmd.
10813 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10814 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10815 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10816 add_show_prefix_cmd.
10817 * remote.c (remote_command, set_remote_cmd): Remove.
10818 (_initialize_remote): Use add_basic_prefix_cmd.
10819 * record-full.c (set_record_full_command)
10820 (show_record_full_command): Remove.
10821 (_initialize_record_full): Use add_basic_prefix_cmd,
10822 add_show_prefix_cmd.
10823 * record-btrace.c (cmd_set_record_btrace)
10824 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10825 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10826 (cmd_show_record_btrace_pt): Remove.
10827 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10828 add_show_prefix_cmd.
10829 * ravenscar-thread.c (set_ravenscar_command)
10830 (show_ravenscar_command): Remove.
10831 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10832 add_show_prefix_cmd.
10833 * mips-tdep.c (show_mips_command, set_mips_command)
10834 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10835 add_show_prefix_cmd.
10836 * maint.c (maintenance_command, maintenance_info_command)
10837 (maintenance_check_command, maintenance_print_command)
10838 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10839 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10840 add_show_prefix_cmd.
10841 (show_per_command_cmd): Remove.
10842 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10843 Remove.
10844 (maintenance_show_test_settings_cmd): Remove.
10845 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10846 add_show_prefix_cmd.
10847 * maint-test-options.c (maintenance_test_options_command):
10848 Remove.
10849 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10850 * macrocmd.c (macro_command): Remove
10851 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10852 * language.c (set_check, show_check): Remove.
10853 (_initialize_language): Use add_basic_prefix_cmd,
10854 add_show_prefix_cmd.
10855 * infcmd.c (unset_command): Remove.
10856 (_initialize_infcmd): Use add_basic_prefix_cmd.
10857 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10858 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10859 add_show_prefix_cmd.
10860 * go32-nat.c (go32_info_dos_command): Remove.
10861 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10862 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10863 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10864 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10865 (_initialize_frame): Use add_basic_prefix_cmd,
10866 add_show_prefix_cmd.
10867 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10868 (_initialize_dcache): Use add_basic_prefix_cmd,
10869 add_show_prefix_cmd.
10870 * cp-support.c (maint_cplus_command): Remove.
10871 (_initialize_cp_support): Use add_basic_prefix_cmd.
10872 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10873 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10874 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10875 add_basic_prefix_cmd, add_show_prefix_cmd.
10876 * breakpoint.c (save_command): Remove.
10877 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10878 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10879 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10880 add_show_prefix_cmd.
10881 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10882 (set_ada_command, show_ada_command): Remove.
10883 (_initialize_ada_language): Use add_basic_prefix_cmd,
10884 add_show_prefix_cmd.
10885 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10886
3557f442
KR
108872020-04-16 Kamil Rytarowski <n54@gmx.com>
10888
10889 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10890 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10891
16197208
SM
108922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10893
10894 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10895 warning messages.
10896
00ac85d3
SM
108972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10898
10899 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10900 import table is not at beginning of .idata section.
10901
381ce63f
PA
109022020-04-16 Pedro Alves <palves@redhat.com>
10903
10904 * inferior.c (delete_inferior): Use delete operator directly
10905 instead of delete_program_space.
10906 * progspace.c (add_program_space): New, factored out from
10907 program_space::program_space.
10908 (remove_program_space): New, factored out from
10909 delete_program_space.
10910 (program_space::program_space): Remove intro comment. Rewrite.
10911 (program_space::~program_space): Remove intro comment. Call
10912 remove_program_space.
10913 (delete_program_space): Delete.
10914 * progspace.h (program_space::program_space): Make explicit. Move
10915 intro comment here, adjusted.
10916 (program_space::~program_space): Move intro comment here,
10917 adjusted.
10918 (delete_program_space): Remove.
10919
a010605f
TT
109202020-04-16 Tom Tromey <tromey@adacore.com>
10921
10922 * windows-nat.c (windows_nat::handle_access_violation): New
10923 function.
10924 * nat/windows-nat.h (handle_access_violation): Declare.
10925 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10926 windows-nat.c. Call handle_access_violation.
10927
efba5c23
TV
109282020-04-16 Tom de Vries <tdevries@suse.de>
10929
10930 PR symtab/25791
10931 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10932 CUs without psymtab.
10933
97ed802d
KB
109342020-04-16 Kevin Buettner <kevinb@redhat.com>
10935
10936 * python/python.c (do_start_initialization): Don't call
10937 PyEval_InitThreads for Python 3.9 and beyond.
10938
c7d64809
KR
109392020-04-15 Kamil Rytarowski <n54@gmx.com>
10940
10941 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10942 thread functions.
10943 (obsd_nat_target::wait): Likewise.
10944
ce127a96
TT
109452020-04-15 Tom Tromey <tromey@adacore.com>
10946
10947 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10948 (DEBUG_EXCEPT): Use debug_printf.
10949
99f1bc6a
AB
109502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * completer.c (class completion_tracker::completion_hash_entry)
10953 <hash_name>: New member function.
10954 (completion_tracker::discard_completions): New callback to hash a
10955 completion_hash_entry, pass this to htab_create_alloc.
10956
a0e9b532
JT
109572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10958
10959 * windows-nat.c (windows_make_so): Warn rather than stopping with
10960 an error if realpath() fails.
10961
06ca5dd4
KR
109622020-04-14 Kamil Rytarowski <n54@gmx.com>
10963
10964 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10965 (nbsd_nat_target::info_proc): Add do_status.
10966
194d088f
TV
109672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10968 Tom de Vries <tdevries@suse.de>
10969
10970 PR symtab/25718
10971 * psympriv.h (struct partial_symtab::read_symtab)
10972 (struct partial_symtab::expand_psymtab)
10973 (struct partial_symtab::read_dependencies): Update comments.
10974 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10975 read_symtab for includer.
10976 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10977 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10978 (struct dwarf2_include_psymtab::m_readin): Remove.
10979 (struct dwarf2_include_psymtab::includer): New member function.
10980 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10981
c1a66c06
TV
109822020-04-14 Tom de Vries <tdevries@suse.de>
10983
10984 PR symtab/25720
10985 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10986 with NULL symbol_matcher and lookup_name.
10987 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10988 and lookup_name.
10989 * dwarf2/read.c (dw2_expand_symtabs_matching)
10990 (dw2_debug_names_expand_symtabs_matching): Same.
10991 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10992 Make lookup_name a pointer. Update comment.
10993 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10994 lookup_name being a pointer.
10995 * symfile.c (expand_symtabs_matching): Same.
10996 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10997 * linespec.c (iterate_over_all_matching_symtabs): Same.
10998
400b5eca
TT
109992020-04-13 Tom Tromey <tom@tromey.com>
11000
11001 * run-on-main-thread.c: Update include.
11002 * unittests/main-thread-selftests.c: Update include.
11003 * tui/tui-win.c: Update include.
11004 * tui/tui-io.c: Update include.
11005 * tui/tui-interp.c: Update include.
11006 * tui/tui-hooks.c: Update include.
11007 * top.h: Update include.
11008 * top.c: Update include.
11009 * ser-base.c: Update include.
11010 * remote.c: Update include.
11011 * remote-notif.c: Update include.
11012 * remote-fileio.c: Update include.
11013 * record-full.c: Update include.
11014 * record-btrace.c: Update include.
11015 * python/python.c: Update include.
11016 * posix-hdep.c: Update include.
11017 * mingw-hdep.c: Update include.
11018 * mi/mi-main.c: Update include.
11019 * mi/mi-interp.c: Update include.
11020 * main.c: Update include.
11021 * linux-nat.c: Update include.
11022 * interps.c: Update include.
11023 * infrun.c: Update include.
11024 * inf-loop.c: Update include.
11025 * event-top.c: Update include.
11026 * event-loop.c: Move to ../gdbsupport/.
11027 * event-loop.h: Move to ../gdbsupport/.
11028 * async-event.h: Update include.
11029 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11030
93b54c8e
TT
110312020-04-13 Tom Tromey <tom@tromey.com>
11032
11033 * tui/tui-win.c: Include async-event.h.
11034 * remote.c: Include async-event.h.
11035 * remote-notif.c: Include async-event.h.
11036 * record-full.c: Include async-event.h.
11037 * record-btrace.c: Include async-event.h.
11038 * infrun.c: Include async-event.h.
11039 * event-top.c: Include async-event.h.
11040 * event-loop.h: Move some declarations to async-event.h.
11041 * event-loop.c: Don't include ser-event.h or top.h. Move some
11042 code to async-event.c.
11043 * async-event.h: New file.
11044 * async-event.c: New file.
11045 * Makefile.in (COMMON_SFILES): Add async-event.c.
11046 (HFILES_NO_SRCDIR): Add async-event.h.
11047
c1cd3163
TT
110482020-04-13 Tom Tromey <tom@tromey.com>
11049
11050 * utils.c (flush_streams): New function.
11051 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11052
29f2bf4f
TT
110532020-04-13 Tom Tromey <tom@tromey.com>
11054
11055 * event-loop.c (handle_file_event): Use warning, not
11056 printf_unfiltered.
11057
98029d02
TT
110582020-04-13 Tom Tromey <tom@tromey.com>
11059
11060 * event-loop.c: Include <chrono>.
11061
06cc9596
TT
110622020-04-13 Tom Tromey <tom@tromey.com>
11063
11064 * gdb_select.h: Move to ../gdbsupport/.
11065 * event-loop.c: Update include path.
11066 * top.c: Update include path.
11067 * ser-base.c: Update include path.
11068 * ui-file.c: Update include path.
11069 * ser-tcp.c: Update include path.
11070 * guile/scm-ports.c: Update include path.
11071 * posix-hdep.c: Update include path.
11072 * ser-unix.c: Update include path.
11073 * gdb_usleep.c: Update include path.
11074 * mingw-hdep.c: Update include path.
11075 * inflow.c: Update include path.
11076 * infrun.c: Update include path.
11077 * event-top.c: Update include path.
11078
8ae8e197
TT
110792020-04-13 Tom Tromey <tom@tromey.com>
11080
11081 * configure: Rebuild.
11082 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11083
58cf28e8
TT
110842020-04-13 Tom Tromey <tom@tromey.com>
11085
11086 * event-loop.h (start_event_loop): Don't declare.
11087 * event-loop.c (start_event_loop): Move...
11088 * main.c (start_event_loop): ...here. Now static.
11089
b7f999ae
SDJ
110902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11091
11092 * MAINTAINERS: Update my email address.
11093
1085dfd4
KR
110942020-04-12 Kamil Rytarowski <n54@gmx.com>
11095
11096 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11097 IP_ALL.
11098
49d1d1f5
KR
110992020-04-12 Kamil Rytarowski <n54@gmx.com>
11100
11101 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11102 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11103
b4848d2a
KR
111042020-04-12 Kamil Rytarowski <n54@gmx.com>
11105
11106 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11107 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11108
51c133d5
KR
111092020-04-12 Kamil Rytarowski <n54@gmx.com>
11110
11111 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11112
54b8cbd0
KR
111132020-04-11 Kamil Rytarowski <n54@gmx.com>
11114
11115 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11116 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11117 (nbsd_nat_target::info_proc): New functions.
11118 * nbsd-nat.c (kinfo_get_vmmap): New function.
11119 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11120 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11121 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11122 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11123 functions.
11124 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11125 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11126 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11127 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11128 (KINFO_VME_FLAG_GROWS_DOWN): New.
11129
cf83625d
AS
111302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11131
11132 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11133 bit shift.
11134
0c4311ab
TT
111352020-04-10 Tom Tromey <tromey@adacore.com>
11136
11137 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11138
3e65b3e9
TT
111392020-04-10 Tom Tromey <tromey@adacore.com>
11140
11141 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11142 separate debug files.
11143
13302e95
HD
111442020-04-10 Hannes Domani <ssbssa@yahoo.de>
11145
11146 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11147 Move to...
11148 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11149 ... here.
11150 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11151 Check for STATUS_WX86_BREAKPOINT.
11152 (windows_nat_target::wait): Same.
11153
bdfc1e8a
TV
111542020-04-10 Tom de Vries <tdevries@suse.de>
11155
11156 PR cli/25808
11157 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11158
f4460aec
SM
111592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11160
11161 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11162 (Write After Approval): Remove Tom de Vries.
11163
a25198bb
BE
111642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11165
11166 revert partially:
11167 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11168
aac66a4c
SM
11169 * buildsym.c (record_line): Fix undefined behavior and preserve
11170 lines at eof.
a25198bb 11171
206c98a6
KR
111722020-04-09 Kamil Rytarowski <n54@gmx.com>
11173
11174 * auxv.h (svr4_auxv_parse): New.
11175 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11176 and generic_auxv_parse.
11177 (svr4_auxv_parse): Add.
11178 * obsd-tdep.c: Include "auxv.h".
11179 (obsd_auxv_parse): Remove.
11180 (obsd_init_abi): Remove comment.
11181 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11182 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11183 * nbsd-tdep.c: Include "auxv.h".
11184 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11185
71fbdbaf
TT
111862020-04-08 Tom Tromey <tromey@adacore.com>
11187
11188 * nat/windows-nat.h (last_wait_event): Don't declare.
11189 (wait_for_debug_event): Update comment.
11190 * nat/windows-nat.c (last_wait_event): Now static.
11191
2c1d95e8
TT
111922020-04-08 Tom Tromey <tromey@adacore.com>
11193
11194 * windows-nat.c (wait_for_debug_event): Move to
11195 nat/windows-nat.c.
11196 * nat/windows-nat.h (wait_for_debug_event): Declare.
11197 * nat/windows-nat.c (wait_for_debug_event): Move from
11198 windows-nat.c. No longer static.
11199
d2977bc4
TT
112002020-04-08 Tom Tromey <tromey@adacore.com>
11201
11202 * windows-nat.c (get_windows_debug_event): Use
11203 fetch_pending_stop.
11204 * nat/windows-nat.h (fetch_pending_stop): Declare.
11205 * nat/windows-nat.c (fetch_pending_stop): New function.
11206
e758e19c
TT
112072020-04-08 Tom Tromey <tromey@adacore.com>
11208
11209 * windows-nat.c (windows_continue): Use matching_pending_stop and
11210 continue_last_debug_event.
11211 * nat/windows-nat.h (matching_pending_stop)
11212 (continue_last_debug_event): Declare.
11213 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11214 (matching_pending_stop, continue_last_debug_event): New
11215 functions.
11216
8d30e395
TT
112172020-04-08 Tom Tromey <tromey@adacore.com>
11218
11219 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11220 (handle_exception_result): Move to nat/windows-nat.h.
11221 (DEBUG_EXCEPTION_SIMPLE): Remove.
11222 (windows_nat::handle_ms_vc_exception): New function.
11223 (handle_exception): Move to nat/windows-nat.c.
11224 (get_windows_debug_event): Update.
11225 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11226 nat/windows-nat.c.
11227 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11228 (handle_exception_result): Move from windows-nat.c.
11229 (handle_exception): Declare.
11230 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11231 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11232 windows-nat.c.
11233
29de418d
TT
112342020-04-08 Tom Tromey <tromey@adacore.com>
11235
11236 * windows-nat.c (exception_count, event_count): Remove.
11237 (handle_exception, get_windows_debug_event)
11238 (do_initial_windows_stuff): Update.
11239
a816ba18
TT
112402020-04-08 Tom Tromey <tromey@adacore.com>
11241
11242 * windows-nat.c (windows_nat::handle_load_dll)
11243 (windows_nat::handle_unload_dll): Rename. No longer static.
11244 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11245 Declare.
11246
a00caa12
TT
112472020-04-08 Tom Tromey <tromey@adacore.com>
11248
11249 * complaints.h (stop_whining): Declare at top-level.
11250 (complaint): Don't declare stop_whining.
11251
d41b524f
TT
112522020-04-08 Tom Tromey <tromey@adacore.com>
11253
11254 * windows-nat.c (windows_nat::handle_output_debug_string):
11255 Rename. No longer static.
11256 * nat/windows-nat.h (handle_output_debug_string): Declare.
11257
3c76026d
TT
112582020-04-08 Tom Tromey <tromey@adacore.com>
11259
11260 * windows-nat.c (current_process_handle, current_process_id)
11261 (main_thread_id, last_sig, current_event, last_wait_event)
11262 (current_windows_thread, desired_stop_thread_id, pending_stops)
11263 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11264 (display_selectors, fake_create_process)
11265 (get_windows_debug_event): Update.
11266 * nat/windows-nat.h (current_process_handle, current_process_id)
11267 (main_thread_id, last_sig, current_event, last_wait_event)
11268 (current_windows_thread, desired_stop_thread_id, pending_stops)
11269 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11270 * nat/windows-nat.c (current_process_handle, current_process_id)
11271 (main_thread_id, last_sig, current_event, last_wait_event)
11272 (current_windows_thread, desired_stop_thread_id, pending_stops)
11273 (siginfo_er): New globals. Move from windows-nat.c.
11274
9d8679cc
TT
112752020-04-08 Tom Tromey <tromey@adacore.com>
11276
11277 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11278 (handle_load_dll): Update.
11279 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11280
28688adf
TT
112812020-04-08 Tom Tromey <tromey@adacore.com>
11282
11283 * windows-nat.c (enum thread_disposition_type): Move to
11284 nat/windows-nat.h.
11285 (windows_nat::thread_rec): Rename from thread_rec. No longer
11286 static.
11287 (windows_add_thread, windows_nat_target::fetch_registers)
11288 (windows_nat_target::store_registers, handle_exception)
11289 (windows_nat_target::resume, get_windows_debug_event)
11290 (windows_nat_target::get_tib_address)
11291 (windows_nat_target::thread_name)
11292 (windows_nat_target::thread_alive): Update.
11293 * nat/windows-nat.h (enum thread_disposition_type): Move from
11294 windows-nat.c.
11295 (thread_rec): Declare.
11296
4834dad0
TT
112972020-04-08 Tom Tromey <tromey@adacore.com>
11298
11299 * windows-nat.c: Add "using namespace".
11300 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11301 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11302
65bafd5b
TT
113032020-04-08 Tom Tromey <tromey@adacore.com>
11304
11305 * nat/windows-nat.h (struct windows_thread_info): Declare
11306 destructor.
11307 * nat/windows-nat.c (~windows_thread_info): New.
11308
0a4afda3
TT
113092020-04-08 Tom Tromey <tromey@adacore.com>
11310
11311 PR gdb/22992
11312 * windows-nat.c (current_event): Update comment.
11313 (last_wait_event, desired_stop_thread_id): New globals.
11314 (struct pending_stop): New.
11315 (pending_stops): New global.
11316 (windows_nat_target) <stopped_by_sw_breakpoint>
11317 <supports_stopped_by_sw_breakpoint>: New methods.
11318 (windows_fetch_one_register): Add assertions. Adjust PC.
11319 (windows_continue): Handle pending stops. Suspend other threads
11320 when stepping. Use last_wait_event
11321 (wait_for_debug_event): New function.
11322 (get_windows_debug_event): Use wait_for_debug_event. Handle
11323 pending stops. Queue spurious stops.
11324 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11325 (windows_nat_target::kill): Use wait_for_debug_event.
11326 * nat/windows-nat.h (struct windows_thread_info)
11327 <stopped_at_software_breakpoint>: New field.
11328 * nat/windows-nat.c (windows_thread_info::resume): Clear
11329 stopped_at_software_breakpoint.
11330
8e61ebec
TT
113312020-04-08 Tom Tromey <tromey@adacore.com>
11332
11333 * windows-nat.c (enum thread_disposition_type): New.
11334 (thread_rec): Replace "get_context" parameter with "disposition";
11335 change type.
11336 (windows_add_thread, windows_nat_target::fetch_registers)
11337 (windows_nat_target::store_registers, handle_exception)
11338 (windows_nat_target::resume, get_windows_debug_event)
11339 (windows_nat_target::get_tib_address)
11340 (windows_nat_target::thread_name)
11341 (windows_nat_target::thread_alive): Update.
11342
98a03287
TT
113432020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11346 (windows_continue): Use windows_continue::resume.
11347 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11348 resume>: Declare new methods.
11349 * nat/windows-nat.c: New file.
11350 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11351
7c7411bc
TT
113522020-04-08 Tom Tromey <tromey@adacore.com>
11353
11354 * windows-nat.c (windows_add_thread, windows_delete_thread)
11355 (windows_nat_target::fetch_registers)
11356 (windows_nat_target::store_registers, fake_create_process)
11357 (windows_nat_target::resume, windows_nat_target::resume)
11358 (get_windows_debug_event, windows_nat_target::wait)
11359 (windows_nat_target::pid_to_str)
11360 (windows_nat_target::get_tib_address)
11361 (windows_nat_target::get_ada_task_ptid)
11362 (windows_nat_target::thread_name)
11363 (windows_nat_target::thread_alive): Use lwp, not tid.
11364
2950fdf7
TT
113652020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * windows-nat.c (handle_exception)
11368 (windows_nat_target::thread_name): Update.
11369 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11370 <name>: Now unique_xmalloc_ptr.
11371
62fe396b
TT
113722020-04-08 Tom Tromey <tromey@adacore.com>
11373
11374 * windows-nat.c (thread_rec)
11375 (windows_nat_target::fetch_registers): Update.
11376 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11377 Update comment.
11378 <debug_registers_changed, reload_context>: Now bool.
11379
e9534bd2
TT
113802020-04-08 Tom Tromey <tromey@adacore.com>
11381
11382 * windows-nat.c (windows_add_thread): Use new.
11383 (windows_init_thread_list, windows_delete_thread): Use delete.
11384 (get_windows_debug_event): Update.
11385 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11386 destructor, and initializers.
11387
ae1f8880
TT
113882020-04-08 Tom Tromey <tromey@adacore.com>
11389
11390 * windows-nat.c (struct windows_thread_info): Remove.
11391 * nat/windows-nat.h: New file.
11392
55a1e039
TT
113932020-04-08 Tom Tromey <tromey@adacore.com>
11394
11395 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11396 (thread_rec, windows_add_thread, windows_delete_thread)
11397 (windows_continue): Update.
11398
93366324
TT
113992020-04-08 Tom Tromey <tromey@adacore.com>
11400
11401 * windows-nat.c (struct windows_thread_info): Remove typedef.
11402 (thread_head): Remove.
11403 (thread_list): New global.
11404 (thread_rec, windows_add_thread, windows_init_thread_list)
11405 (windows_delete_thread, windows_continue): Update.
11406
0f2265e2
SM
114072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11408
11409 * windows-tdep.h (windows_init_abi): Add comment.
11410 (cygwin_init_abi): New declaration.
11411 * windows-tdep.c: Split signal enumeration in two, one for
11412 Windows and one for Cygwin.
11413 (windows_gdb_signal_to_target): Only deal with signal of the
11414 Windows OS ABI.
11415 (cygwin_gdb_signal_to_target): New function.
11416 (windows_init_abi): Rename to windows_init_abi_common, don't set
11417 gdb_signal_to_target gdbarch method. Add new new function with
11418 this name.
11419 (cygwin_init_abi): New function.
11420 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11421 comment. Don't call windows_init_abi.
11422 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11423 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11424 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11425 i386_windows_init_abi_common, don't call windows_init_abi. Add
11426 a new function of this name.
11427 (i386_cygwin_init_abi): New function.
11428 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11429 OS ABI Cygwin.
11430
3810f182
SM
114312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11434 parameter.c.
11435 (dwarf2_read_gdb_index): Update.
11436
063f8e80
KR
114372020-04-07 Kamil Rytarowski <n54@gmx.com>
11438
11439 * nbsd-tdep.c: Include "objfiles.h".
11440 (nbsd_skip_solib_resolver): New.
11441 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11442
85a9510c 114432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11444
11445 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11446 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11447 with DW_LLE_base_addressx are being emitted in DWARFv5.
11448 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11449 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11450 unsigned integer.
11451
9fc3eaae 114522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11453
11454 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11455 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11456 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11457 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11458 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11459 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11460 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11461
11462
41144253 114632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11464
11465 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11466 (read_loclist_index): New function definition.
11467 (lookup_loclist_base): New function definition.
11468 (read_loclist_header): New function definition.
11469 (dwarf2_cu): Add loclist_base and loclist_header field.
11470 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11471 (read_full_die_1): Read the value of DW_AT_loclists_base.
11472 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11473 (read_attribute_value): Handle DW_FORM_loclistx.
11474 (skip_one_die): Handle DW_FORM_loclistx.
11475 (loclist_header): New structure declaration.
11476 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11477
9f4e76a4
SM
114782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11479
11480 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11481 constructor. Remove `addr` parameter from other constructor and
11482 add `per_cu` parameter.
11483 * dwarf2/read.c (create_partial_symtab): Update.
11484
25c11aca
TV
114852020-04-07 Tom de Vries <tdevries@suse.de>
11486
11487 PR symtab/25796
11488 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11489 (partial_die_info::fixup): Inherit has_const_value.
11490
5707e24b
TV
114912020-04-07 Tom de Vries <tdevries@suse.de>
11492
11493 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11494 symbols without address.
11495
05f00e22
KR
114962020-04-06 Kamil Rytarowski <n54@gmx.com>
11497
11498 * nbsd-nat.h (struct thread_info): Add forward declaration.
11499 (nbsd_nat_target::thread_alive): Add.
11500 (nbsd_nat_target::thread_name): Likewise.
11501 (nbsd_nat_target::update_thread_list): Likewise.
11502 (update_thread_list::post_attach): Likewise.
11503 (post_attach::pid_to_str): Likewise.
11504 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11505 (nbsd_thread_lister): Add.
11506 (nbsd_nat_target::thread_alive): Likewise.
11507 (nbsd_nat_target::thread_name): Likewise.
11508 (nbsd_add_threads): Likewise.
11509 (update_thread_list::post_attach): Likewise.
11510 (nbsd_nat_target::update_thread_list): Likewise.
11511 (post_attach::pid_to_str): Likewise.
11512
6ee448cc
TT
115132020-04-06 Tom Tromey <tromey@adacore.com>
11514
11515 * ada-valprint.c (print_variant_part): Extract the variant field.
11516 (print_field_values): Use the field as the outer value when
11517 recursing.
11518
dea34e8c
TT
115192020-04-06 Tom Tromey <tromey@adacore.com>
11520
11521 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11522 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11523 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11524 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11525 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11526
93689ce9
TT
115272020-04-06 Tom Tromey <tromey@adacore.com>
11528
11529 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11530 TYPE_CODE_ERROR.
11531
79743962
KR
115322020-04-06 Kamil Rytarowski <n54@gmx.com>
11533
11534 * nbsd-tdep.c: Include "gdbarch.h".
11535 Define enum with NetBSD signal numbers.
11536 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11537 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11538 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11539 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11540 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11541 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11542 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11543 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11544 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11545 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11546 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11547 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11548
9e7c9a03
HD
115492020-04-03 Hannes Domani <ssbssa@yahoo.de>
11550
11551 PR gdb/25325
11552 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11553
d9e49b61
TT
115542020-04-03 Tom Tromey <tromey@adacore.com>
11555
11556 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11557 Read constant block.
11558
e0fc5c3f
SM
115592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11560
11561 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11562 (gdb_bfd_get_full_section_contents): New declaration.
11563 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11564 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11565 gdb_bfd_get_full_section_contents.
11566
e2ff18a0
SM
115672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11568
11569 * exec.c (build_section_table): Replace internal_error with
11570 gdb_assert.
11571 (section_table_xfer_memory_partial): Likewise.
11572 * mdebugread.c (parse_partial_symbols): Likewise.
11573 * psymtab.c (lookup_partial_symbol): Likewise.
11574 * utils.c (wrap_here): Likewise.
11575
0830d301
TT
115762020-04-02 Tom Tromey <tromey@adacore.com>
11577
11578 * f-lang.c (build_fortran_types): Use arch_type to initialize
11579 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11580
e7da7f8f
TT
115812020-04-02 Tom Tromey <tromey@adacore.com>
11582
11583 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11584 of attributes.
11585
c90d28ac
AB
115862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11587 Bernd Edlinger <bernd.edlinger@hotmail.de>
11588 Tom Tromey <tromey@adacore.com>
11589
11590 * buildsym.c (buildsym_compunit::record_line): Remove
11591 deduplication code.
11592
1aa98955
TV
115932020-04-02 Tom de Vries <tdevries@suse.de>
11594
11595 PR ada/24671
11596 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11597
d3214198
TV
115982020-04-02 Tom de Vries <tdevries@suse.de>
11599
11600 * dwarf2/read.c (dwarf2_gdb_index_functions,
11601 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11602 NULL.
11603 * psymtab.c (psym_lookup_global_symbol_language): New function.
11604 (psym_functions): Init psym_lookup_global_symbol_language with
11605 psym_lookup_global_symbol_language.
11606 * symfile-debug.c (debug_sym_quick_functions): Init
11607 lookup_global_symbol_language with NULL.
11608 * symfile.c (set_initial_language): Remove fixme comment.
11609 * symfile.h (struct quick_symbol_functions): Add
11610 lookup_global_symbol_language.
11611 * symtab.c (find_quick_global_symbol_language): New function.
11612 (find_main_name): Use find_quick_global_symbol_language.
11613
2836752f
SM
116142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11615
11616 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11617
64dc2d4b
BE
116182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11619
11620 * buildsym.c (record_line): Fix undefined behavior and preserve
11621 lines at eof.
11622
bbe3dc41
BE
116232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11624
11625 * buildsym.c (record_line): Fix the resizing condition.
11626
6b4a335b
TT
116272020-04-01 Tom Tromey <tom@tromey.com>
11628
11629 * value.h (value_literal_complex): Add comment.
11630 * valops.c (value_literal_complex): Refer to value.h.
11631
3638a098
TT
116322020-04-01 Tom Tromey <tom@tromey.com>
11633
11634 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11635 (scalar_type): New rule, from typebase.
11636 (typebase): Use scalar_type. Recognize complex types.
11637 (field_name): Handle FLOAT_KEYWORD.
11638 (ident_tokens): Add _Complex and __complex__.
11639
c34e8714
TT
116402020-04-01 Tom Tromey <tom@tromey.com>
11641
11642 PR exp/25299:
11643 * valarith.c (promotion_type, complex_binop): New functions.
11644 (scalar_binop): Handle complex numbers. Use promotion_type.
11645 (value_pos, value_neg, value_complement): Handle complex numbers.
11646
fa649bb7
TT
116472020-04-01 Tom Tromey <tom@tromey.com>
11648
11649 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11650 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11651 (parse_number): Handle complex numbers.
11652
981c08ce
TT
116532020-04-01 Tom Tromey <tom@tromey.com>
11654
11655 * c-valprint.c (c_decorations): Change complex suffix to "i".
11656
4c99290d
TT
116572020-04-01 Tom Tromey <tom@tromey.com>
11658
11659 * valprint.c (generic_value_print_complex): Use accessors.
11660 * value.h (value_real_part, value_imaginary_part): Declare.
11661 * valops.c (value_real_part, value_imaginary_part): New
11662 functions.
11663 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11664
5b930b45
TT
116652020-04-01 Tom Tromey <tom@tromey.com>
11666
11667 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11668 (read_range_type): Update.
11669 * mdebugread.c (basic_type): Update.
11670 * go-lang.c (build_go_types): Use init_complex_type.
11671 * gdbtypes.h (struct main_type) <complex_type>: New member.
11672 (init_complex_type): Update.
11673 (arch_complex_type): Don't declare.
11674 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11675 Make name if none given. Use alloc_type_copy. Look for cached
11676 complex type.
11677 (arch_complex_type): Remove.
11678 (gdbtypes_post_init): Use init_complex_type.
11679 * f-lang.c (build_fortran_types): Use init_complex_type.
11680 * dwarf2/read.c (read_base_type): Update.
11681 * d-lang.c (build_d_types): Use init_complex_type.
11682 * ctfread.c (read_base_type): Update.
11683
53cccef1
TBA
116842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11685
11686 * infrun.c (stop_all_threads): Update assertion, plus when
11687 stopping threads, take into account that we might be trying
11688 to stop an all-stop target.
11689 (stop_waiting): Call 'stop_all_threads' if there exists a
11690 non-stop target.
11691
a0714d30
TBA
116922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11693
11694 * target.h (exists_non_stop_target): New function declaration.
11695 * target.c (exists_non_stop_target): New function.
11696
60e22c1e
HD
116972020-04-01 Hannes Domani <ssbssa@yahoo.de>
11698
11699 PR gdb/24789
11700 * eval.c (is_integral_or_integral_reference): New function.
11701 (evaluate_subexp_standard): Allow integer references in
11702 pointer arithmetic.
11703
e139a727
TBA
117042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11705
11706 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11707 check for no ptid in the stop reply when the target is non-stop.
11708
e0802d59
TT
117092020-04-01 Tom Tromey <tromey@adacore.com>
11710
11711 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11712 "name" parameter to rvalue reference. Initialize m_name_holder.
11713 <lookup_name_info>: New overloads.
11714 <name>: Return gdb::string_view.
11715 <c_str>: New method.
11716 <make_ignore_params>: Update.
11717 <search_name_hash>: Update.
11718 <language_lookup_name>: Return const char *.
11719 <m_name>: Change type.
11720 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11721 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11722 (lookup_name_info::match_any): Update.
11723 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11724 Update.
11725 * minsyms.c (linkage_name_str): Update.
11726 * language.c (default_symbol_name_matcher): Update.
11727 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11728 Update.
11729 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11730 (ada_lookup_name_info::ada_lookup_name_info): Update.
11731 (literal_symbol_name_matcher): Update.
11732
8c072cb6
TT
117332020-04-01 Tom Tromey <tromey@adacore.com>
11734
11735 * psymtab.c (psymtab_search_name): Remove function.
11736 (psym_lookup_symbol): Create search name and lookup name here.
11737 (lookup_partial_symbol): Remove "name" parameter; add
11738 lookup_name.
11739 (psym_expand_symtabs_for_function): Update.
11740
6f29a534
TT
117412020-03-31 Joel Jones <joelkevinjones@gmail.com>
11742
11743 PR tui/25597:
11744 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11745
af62665e
TT
117462020-03-31 Tom Tromey <tromey@adacore.com>
11747
11748 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11749 memcpy.
11750
d1a89da5
NC
117512020-03-30 Nelson Chu <nelson.chu@sifive.com>
11752
11753 * features/riscv/32bit-csr.xml: Regenerated.
11754 * features/riscv/64bit-csr.xml: Regenerated.
11755
d8af9068
TT
117562020-03-30 Tom Tromey <tromey@adacore.com>
11757
11758 * ada-valprint.c (print_variant_part): Update.
11759 * ada-lang.h (ada_which_variant_applies): Update.
11760 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11761 outer_valaddr parameters; replace with "outer" value parameter.
11762 (to_fixed_variant_branch_type): Update.
11763
227c0bf4
PFC
117642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11765
11766 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11767 <list>. Remove inclusion of observable.h.
11768 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11769 (struct arch_lwp_info): New struct.
11770 (class ppc_linux_dreg_interface): New class.
11771 (struct ppc_linux_process_info): New struct.
11772 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11773 <low_new_clone, low_forget_process, low_prepare_to_resume>
11774 <copy_thread_dreg_state, mark_thread_stale>
11775 <mark_debug_registers_changed, register_hw_breakpoint>
11776 <clear_hw_breakpoint, register_wp, clear_wp>
11777 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11778 <num_memory_accesses, get_trigger_type>
11779 <create_watchpoint_request, hwdebug_point_cmp>
11780 <init_arch_lwp_info, get_arch_lwp_info>
11781 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11782 methods.
11783 <struct ptid_hash>: New inner struct.
11784 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11785 members.
11786 (saved_dabr_value, hwdebug_info, max_slots_number)
11787 (struct hw_break_tuple, struct thread_points, ppc_threads)
11788 (have_ptrace_hwdebug_interface)
11789 (hwdebug_find_thread_points_by_tid)
11790 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11791 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11792 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11793 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11794 use m_dreg_interface.
11795 (hwdebug_point_cmp): Change to...
11796 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11797 reference arguments instead of pointers.
11798 (ppc_linux_nat_target::ranged_break_num_registers): Use
11799 m_dreg_interface.
11800 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11801 m_dreg_interface. Call register_hw_breakpoint.
11802 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11803 m_dreg_interface. Call clear_hw_breakpoint.
11804 (get_trigger_type): Change to...
11805 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11806 comment.
11807 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11808 use m_dreg_interface. Call register_hw_breakpoint.
11809 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11810 use m_dreg_interface. Call clear_hw_breakpoint.
11811 (can_use_watchpoint_cond_accel): Change to...
11812 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11813 method. Update comment, use m_dreg_interface and
11814 m_process_info.
11815 (calculate_dvc): Change to...
11816 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11817 m_dreg_interface.
11818 (num_memory_accesses): Change to...
11819 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11820 (check_condition): Change to...
11821 (ppc_linux_nat_target::check_condition): ...this method.
11822 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11823 comment, use m_dreg_interface.
11824 (create_watchpoint_request): Change to...
11825 (ppc_linux_nat_target::create_watchpoint_request): ...this
11826 method. Use m_dreg_interface.
11827 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11828 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11829 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11830 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11831 (ppc_linux_nat_target::low_forget_process)
11832 (ppc_linux_nat_target::low_new_fork)
11833 (ppc_linux_nat_target::low_new_clone)
11834 (ppc_linux_nat_target::low_delete_thread)
11835 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11836 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11837 only call mark_thread_stale.
11838 (ppc_linux_thread_exit): Remove.
11839 (ppc_linux_nat_target::stopped_data_address): Change to...
11840 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11841 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11842 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11843 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11844 comment. Call low_stopped_data_address.
11845 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11846 m_dreg_interface.
11847 (ppc_linux_nat_target::masked_watch_num_registers): Use
11848 m_dreg_interface.
11849 (ppc_linux_nat_target::copy_thread_dreg_state)
11850 (ppc_linux_nat_target::mark_thread_stale)
11851 (ppc_linux_nat_target::mark_debug_registers_changed)
11852 (ppc_linux_nat_target::register_hw_breakpoint)
11853 (ppc_linux_nat_target::clear_hw_breakpoint)
11854 (ppc_linux_nat_target::register_wp)
11855 (ppc_linux_nat_target::clear_wp)
11856 (ppc_linux_nat_target::init_arch_lwp_info)
11857 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11858 (_initialize_ppc_linux_nat): Remove observer callback.
11859
4db10d8f
PFC
118602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11861
11862 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11863 (ppc_linux_nat_target::auxv_parse)
11864 (ppc_linux_nat_target::read_description)
11865 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11866 Move up.
11867
1310c1b0
PFC
118682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11869
11870 * linux-nat.h (low_new_clone): New method.
11871 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11872
69b037c3
SM
118732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11874
11875 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11876 (dbx_expand_psymtab): ... this.
11877 (start_psymtab): Update.
11878 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11879 (mdebug_expand_psymtab): ... this.
11880 (parse_partial_symbols): Update.
11881 (new_psymtab): Update.
11882 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11883 (xcoff_expand_psymtab): ... this.
11884 (xcoff_start_psymtab): Update.
11885
48993951
SM
118862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11887
11888 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11889 <expand_dependencies>: ... this.
11890 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11891 (partial_symtab::expand_dependencies): ... this.
11892 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11893 Update.
11894 (dwarf2_psymtab::expand_psymtab): Update.
11895 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11896 * mdebugread.c (psymtab_to_symtab_1): Update.
11897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11898
3ad83046
SM
118992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * psympriv.h (discard_psymtab): Remove.
11902 * dbxread.c (dbx_end_psymtab): Update.
11903 * xcoffread.c (xcoff_end_psymtab): Update.
11904
4d1b9ab6
TT
119052020-03-28 Tom Tromey <tom@tromey.com>
11906
11907 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11908 comment.
11909
f1749218
TT
119102020-03-28 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11913
ebea7626
HD
119142020-03-27 Hannes Domani <ssbssa@yahoo.de>
11915
11916 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11917
a879b4d5
JB
119182020-03-26 John Baldwin <jhb@FreeBSD.org>
11919
11920 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11921
0826b30a
TT
119222020-03-26 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11925 (mark_common_block_symbol_computed, read_tag_string_type)
11926 (attr_to_dynamic_prop, read_subrange_type): Update.
11927 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11928 to be methods on struct attribute.
11929 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11930 (read_call_site_scope, partial_die_info::read)
11931 (partial_die_info::read, lookup_die_type, follow_die_ref):
11932 Update.
11933 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11934 from dwarf2_get_ref_die_offset.
11935 (attribute::constant_value): New method, from
11936 dwarf2_get_attr_constant_value.
11937 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11938 Declare method.
11939 <constant_value>: New method.
11940
2b2558bf
TT
119412020-03-26 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11944 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11945 (dwarf_type_encoding_name): Move to stringify.c.
11946 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11947 * dwarf2/stringify.c: New file.
11948 * dwarf2/stringify.h: New file.
11949
eeb64781
TT
119502020-03-26 Tom Tromey <tom@tromey.com>
11951
11952 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11953 Rewrite.
11954
a39fdb41
TT
119552020-03-26 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11958 methods.
11959 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11960 (lookup_ranges_base): Likewise.
11961 (read_cutu_die_from_dwo, read_full_die_1): Update.
11962
436c571c
TT
119632020-03-26 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2/read.c (read_import_statement, read_file_scope)
11966 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11967 (read_lexical_block_scope, read_call_site_scope)
11968 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11969 (handle_struct_member_die, process_structure_scope)
11970 (update_enumeration_type_from_children)
11971 (process_enumeration_scope, read_array_type, read_common_block)
11972 (read_namespace, read_module, read_subroutine_type): Update.
11973 (sibling_die): Remove.
11974
052c8bb8
TT
119752020-03-26 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11978 (build_type_psymtabs_reader, read_structure_type)
11979 (read_enumeration_type, read_full_die_1): Update.
11980 (dwarf2_attr_no_follow): Move to die.h.
11981 * dwarf2/die.h (struct die_info) <attr>: New method.
11982
2b24b6e4
TT
119832020-03-26 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11986 <base_address>: Now an optional.
11987 (dwarf2_find_base_address, dwarf2_rnglists_process)
11988 (dwarf2_ranges_process, fill_in_loclist_baton)
11989 (dwarf2_symbol_mark_computed): Update.
11990
c2d50fd0
TT
119912020-03-26 Tom Tromey <tom@tromey.com>
11992
11993 * dwarf2/read.c (struct die_info): Move to die.h.
11994 * dwarf2/die.h: New file.
11995
0df7ad3a
TT
119962020-03-26 Tom Tromey <tom@tromey.com>
11997
11998 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11999 * dwarf2/read.c
12000 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12001 Move to line-header.c.
12002 (read_checked_initial_length_and_offset, read_formatted_entries):
12003 Likewise.
12004 (dwarf_decode_line_header): Split into two.
12005 * dwarf2/line-header.c
12006 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12007 Move from read.c.
12008 (read_checked_initial_length_and_offset, read_formatted_entries):
12009 Likewise.
12010 (dwarf_decode_line_header): New function, split from read.c.
12011
86c0bb4c
TT
120122020-03-26 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12015 Declare method.
12016 * dwarf2/read.c (read_attribute_value): Update.
12017 (dwarf2_per_objfile::read_line_string): Rename from
12018 read_indirect_line_string.
12019 (read_formatted_entries): Update.
12020
2ef46c2f
TT
120212020-03-26 Tom Tromey <tom@tromey.com>
12022
12023 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12024 variable.
12025
4f9c1eda
TT
120262020-03-26 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12029 const.
12030 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12031 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12032 parameter const.
12033
5a0e026f
TT
120342020-03-26 Tom Tromey <tom@tromey.com>
12035
12036 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12037 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12038 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12039 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12040
8844c11b
TT
120412020-03-26 Tom Tromey <tom@tromey.com>
12042
12043 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12044 file_names_size, file_full_name, file_file_name>: Use const.
12045 <file_name_at, file_names>: Add const overload.
12046 * dwarf2/line-header.c (line_header::file_file_name)
12047 (line_header::file_full_name): Update.
12048
c90ec28a
TT
120492020-03-26 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12052 (macro_start_file, consume_improper_spaces)
12053 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12054 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12055 (dwarf_decode_macros): Move to macro.c.
12056 * dwarf2/macro.c: New file.
12057 * dwarf2/macro.h: New file.
12058 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12059
4f44ae6c
TT
120602020-03-26 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12063 method.
12064 * dwarf2/section.c: New method. From
12065 read_indirect_string_at_offset_from.
12066 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12067 (read_indirect_string_at_offset_from): Move to section.c.
12068 (read_indirect_string_at_offset): Rewrite.
12069 (read_indirect_line_string_at_offset): Remove.
12070 (read_indirect_string, read_indirect_line_string)
12071 (dwarf_decode_macro_bytes): Update.
12072
a0194fa8
TT
120732020-03-26 Tom Tromey <tom@tromey.com>
12074
12075 * dwarf2/section.h (struct dwarf2_section_info)
12076 <overload_complaint>: Declare.
12077 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12078 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12079 Rename from dwarf2_section_buffer_overflow_complaint.
12080 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12081 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12082
3d27bbdb
TT
120832020-03-26 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12086 Declare.
12087 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12088 Move from read.c.
12089 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12090 to section.c.
12091
9eac9650
TT
120922020-03-26 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12095
bf80d710
TT
120962020-03-26 Tom Tromey <tom@tromey.com>
12097
12098 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12099 "builder".
12100 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12101 parameter.
12102 (dwarf_decode_macros): Update.
12103
0314b390
TT
121042020-03-26 Tom Tromey <tom@tromey.com>
12105
12106 * dwarf2/read.c (read_attribute_value): Update.
12107 (read_indirect_string_from_dwz): Move to dwz.c; change into
12108 method.
12109 (dwarf_decode_macro_bytes): Update.
12110 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12111 * dwarf2/dwz.c: New file.
12112 * Makefile.in (COMMON_SFILES): Add dwz.c.
12113
9fda78b6
TT
121142020-03-26 Tom Tromey <tom@tromey.com>
12115
12116 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12117 * dwarf2/read.c: Add include.
12118 * dwarf2/index-write.c: Add include.
12119 * dwarf2/index-cache.c: Add include.
12120 * dwarf2/dwz.h: New file.
12121
33aa3c10
TT
121222020-03-25 Tom Tromey <tom@tromey.com>
12123
12124 * compile/compile-object-load.c (get_out_value_type): Mention
12125 correct symbol name in error message.
12126
d503b685
HD
121272020-03-25 Hannes Domani <ssbssa@yahoo.de>
12128
12129 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12130
7b1eff95
TV
121312020-03-25 Tom de Vries <tdevries@suse.de>
12132
12133 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12134 * symmisc.c (dump_symtab_1): Print user and includes fields.
12135 (maintenance_info_symtabs): Same.
12136
dd895392
AB
121372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12138
12139 PR gdb/25534
12140 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12141 (riscv_regcache_cooked_write): New function.
12142 (riscv_push_dummy_call): Use new function.
12143 (riscv_return_value): Likewise.
12144
5ab2fbf1
SM
121452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12146
12147 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12148 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12149 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12150 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12151 * infrun.c (follow_fork): Likewise.
12152 (follow_fork_inferior): Likewise.
12153 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12154 * linux-nat.h (class linux_nat_target): Likewise.
12155 * remote.c (class remote_target) <follow_fork>: Likewise.
12156 (remote_target::follow_fork): Likewise.
12157 * target-delegates.c: Re-generate.
12158 * target.c (default_follow_fork): Likewise.
12159 (target_follow_fork): Likewise.
12160 * target.h (struct target_ops) <follow_fork>: Likewise.
12161 (target_follow_fork): Likewise.
12162
a64fafb5
TV
121632020-03-24 Tom de Vries <tdevries@suse.de>
12164
12165 * psymtab.c (maintenance_info_psymtabs): Print user field.
12166
fe26d3a3
TT
121672020-03-20 Tom Tromey <tromey@adacore.com>
12168
12169 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12170 const.
12171 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12172 const.
12173
c884cc46
SM
121742020-03-20 Simon Marchi <simon.marchi@efficios.com>
12175
12176 * ptrace.m4: Don't check for ptrace declaration.
12177 * config.in: Re-generate.
12178 * configure: Re-generate.
12179 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12180 not defined.
12181
1ff700c2
KR
121822020-03-20 Kamil Rytarowski <n54@gmx.com>
12183
12184 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12185 `PTRACE_TYPE_RET'.
12186 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12187 * sparc-nat.c (gdb_ptrace): Likewise.
12188 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12189
f7d4f0b1
TT
121902020-03-20 Tom Tromey <tromey@adacore.com>
12191
12192 * c-exp.y (lex_one_token): Fix assert.
12193
f67210ff
TT
121942020-03-20 Tom Tromey <tromey@adacore.com>
12195
12196 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12197 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12198 strncpy call.
12199
1773be9e
TT
122002020-03-20 Tom Tromey <tromey@adacore.com>
12201
12202 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12203
70304be9
TT
122042020-03-20 Tom Tromey <tromey@adacore.com>
12205
12206 * ada-valprint.c (print_variant_part): Remove parameters; switch
12207 to value-based API.
12208 (print_field_values): Likewise.
12209 (ada_val_print_struct_union): Likewise.
12210 (ada_value_print_1): Update.
12211
9faa006d
KR
122122020-03-20 Kamil Rytarowski <n54@gmx.com>
12213
12214 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12215 nbsd_nat_target instead of inf_ptrace_target.
12216 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12217 nbsd_nat_target.
12218
4a90f062
KR
122192020-03-20 Kamil Rytarowski <n54@gmx.com>
12220
12221 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12222 it to the ptrace call.
12223 * (store_registers): Likewise.
12224
122252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12226
12227 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12228 it to the ptrace call.
12229 * (store_registers): Likewise.
12230
2d07da27
LM
122312020-03-19 Luis Machado <luis.machado@linaro.org>
12232
12233 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12234 valid, fetch vg value from ptrace.
12235
f09db380
KR
122362020-03-19 Kamil Rytarowski <n54@gmx.com>
12237 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12238 * inf-ptrace.c: Likewise.
12239 * (gdb_ptrace): Add.
12240 * (inf_ptrace_target::resume): Update.
12241 * (inf_ptrace_target::xfer_partial): Likewise.
12242 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12243 * (inf_ptrace_peek_poke): Update.
12244
fcc7376e
KR
122452020-03-19 Kamil Rytarowski <n54@gmx.com>
12246
12247 * x86-bsd-nat.c (gdb_ptrace): New.
12248 * (x86bsd_dr_set): Add new argument `ptid'.
12249 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12250 x86bsd_dr_set_addr): Update.
12251
cada5fc9
AB
122522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * remote.c (remote_target::process_stop_reply): Handle events for
12255 all threads differently.
12256
19a2740f
AB
122572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 * completer.c (completion_tracker::remove_completion): Define new
12260 function.
12261 * completer.h (completion_tracker::remove_completion): Declare new
12262 function.
12263 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12264 when adding a C++ function symbol.
12265
724fd9ba
AB
122662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12267
12268 * completer.c (completion_tracker::completion_hash_entry): Define
12269 new class.
12270 (advance_to_filename_complete_word_point): Call
12271 recompute_lowest_common_denominator.
12272 (completion_tracker::completion_tracker): Call discard_completions
12273 to setup the hash table.
12274 (completion_tracker::discard_completions): Allow for being called
12275 from the constructor, pass new equal function, and element deleter
12276 when constructing the hash table. Initialise new class member
12277 variables.
12278 (completion_tracker::maybe_add_completion): Remove use of
12279 m_entries_vec, and store more information into m_entries_hash.
12280 (completion_tracker::recompute_lcd_visitor): New function, most
12281 content taken from...
12282 (completion_tracker::recompute_lowest_common_denominator):
12283 ...here, this now just visits each item in the hash calling the
12284 above visitor.
12285 (completion_tracker::build_completion_result): Remove use of
12286 m_entries_vec, call recompute_lowest_common_denominator.
12287 * completer.h (completion_tracker::have_completions): Remove use
12288 of m_entries_vec.
12289 (completion_tracker::completion_hash_entry): Declare new class.
12290 (completion_tracker::recompute_lowest_common_denominator): Change
12291 function signature.
12292 (completion_tracker::recompute_lcd_visitor): Declare new function.
12293 (completion_tracker::m_entries_vec): Delete.
12294 (completion_tracker::m_entries_hash): Initialize to NULL.
12295 (completion_tracker::m_lowest_common_denominator_valid): New
12296 member variable.
12297 (completion_tracker::m_lowest_common_denominator_max_length): New
12298 member variable.
12299
5a82b8a1
KR
123002020-03-17 Kamil Rytarowski <n54@gmx.com>
12301
12302 * regformats/regdef.h: Put reg in gdb namespace.
12303
fb516a69
KR
123042020-03-17 Kamil Rytarowski <n54@gmx.com>
12305
12306 * i386-bsd-nat.c (gdb_ptrace): New.
12307 * (i386bsd_fetch_inferior_registers,
12308 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12309 * (i386bsd_fetch_inferior_registers,
12310 i386bsd_store_inferior_registers) Use gdb_ptrace.
12311
1c0aa1fb
KR
123122020-03-17 Kamil Rytarowski <n54@gmx.com>
12313
12314 * amd64-bsd-nat.c (gdb_ptrace): New.
12315 * (amd64bsd_fetch_inferior_registers,
12316 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12317 * (amd64bsd_fetch_inferior_registers,
12318 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12319
5ccd2fb7
KR
123202020-03-17 Kamil Rytarowski <n54@gmx.com>
12321
12322 * user-regs.c (user_reg::read): Rename to...
12323 (user_reg::xread): ...this.
12324 * (append_user_reg): Rename argument `read' to `xread'.
12325 * (user_reg_add_builtin): Likewise.
12326 * (user_reg_add): Likewise.
12327 * (value_of_user_reg): Likewise.
12328
2108a63a
KR
123292020-03-17 Kamil Rytarowski <n54@gmx.com>
12330
12331 * sparc-nat.c (gdb_ptrace): New.
12332 * sparc-nat.c (sparc_fetch_inferior_registers)
12333 (sparc_store_inferior_registers) Remove obsolete comment.
12334 * sparc-nat.c (sparc_fetch_inferior_registers)
12335 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12336 * sparc-nat.c (sparc_fetch_inferior_registers)
12337 (sparc_store_inferior_registers) Use gdb_ptrace.
12338
a225c9a8
KR
123392020-03-17 Kamil Rytarowski <n54@gmx.com>
12340
12341 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12342 it to the ptrace call.
12343 * sh-nbsd-nat.c (store_registers): Likewise.
12344
98097623
KR
123452020-03-17 Kamil Rytarowski <n54@gmx.com>
12346
12347 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12348 nbsd_nat_target instead of inf_ptrace_target.
12349 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12350 nbsd_nat_target.
12351
9e38d619
KR
123522020-03-17 Kamil Rytarowski <n54@gmx.com>
12353
12354 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12355
a2ecbe9f
KR
123562020-03-17 Kamil Rytarowski <n54@gmx.com>
12357
12358 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12359 <sys/sysctl.h>.
12360 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12361
58990295
TV
123622020-03-17 Tom de Vries <tdevries@suse.de>
12363
12364 PR gdb/23710
12365 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12366 fields.
12367 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12368 fields.
12369 (process_imported_unit_die): Skip import of c++ CUs.
12370
771dd3a8
TT
123712020-03-16 Tom Tromey <tom@tromey.com>
12372
12373 * p-valprint.c (pascal_object_print_value): Initialize
12374 base_value.
12375
817a7585
AK
123762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12377 Shahab Vahedi <shahab@synopsys.com>
12378
12379 * Makefile.in: Add arch/arc.o
12380 * configure.tgt: Likewise.
12381 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12382 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12383 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12384 * arc-tdep.h (arc_read_description): Add proto type.
12385 * arch/arc.c: New file.
12386 * arch/arc.h: Likewise.
12387 * features/Makefile: Replace old target descriptions with new.
12388 * features/arc-arcompact.c: Remove.
12389 * features/arc-arcompact.xml: Likewise.
12390 * features/arc-v2.c: Likewise
12391 * features/arc-v2.xml: Likewise
12392 * features/arc/aux-arcompact.xml: New file.
12393 * features/arc/aux-v2.xml: Likewise.
12394 * features/arc/core-arcompact.xml: Likewise.
12395 * features/arc/core-v2.xml: Likewise.
12396 * features/arc/aux-arcompact.c: Generate.
12397 * features/arc/aux-v2.c: Likewise.
12398 * features/arc/core-arcompact.c: Likewise.
12399 * features/arc/core-v2.c: Likewise.
12400 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12401
67430cd0
TT
124022020-03-16 Tom Tromey <tromey@adacore.com>
12403
12404 PR gdb/25663:
12405 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12406 putting value into bcache.
12407
30efb6c7
SM
124082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12409
12410 PR gdb/21500
12411 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12412 to...
12413 (amd64_windows_init_abi_common): ... this. Don't set size of
12414 long type.
12415 (amd64_windows_init_abi): New function.
12416 (amd64_cygwin_init_abi): New function.
12417 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12418 the Cygwin OS ABI.
12419 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12420 comment.
12421
8db52437
SM
124222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12423
12424 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12425 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12426 (pe_import_directory_entry): New struct type.
12427 (is_linked_with_cygwin_dll): New function.
12428 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12429 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12430 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12431
5982a56a
SM
124322020-03-16 Simon Marchi <simon.marchi@efficios.com>
12433
12434 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12435 i386_cygwin_core_osabi_sniffer.
12436
7a1998df
SM
124372020-03-16 Simon Marchi <simon.marchi@efficios.com>
12438
12439 * i386-cygwin-tdep.c: Rename to...
12440 * i386-windows-tdep.c: ... this.
12441 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12442 i386-windows-tdep.c.
12443 * configure.tgt: Likewise.
12444
053205cc
SM
124452020-03-16 Simon Marchi <simon.marchi@efficios.com>
12446
12447 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12448 * osabi.c (gdb_osabi_names): Add "Windows".
12449 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12450 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12451 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12452 i386_cygwin_osabi_sniffer.
12453 (_initialize_i386_cygwin_tdep): Register OS ABI
12454 GDB_OSABI_WINDOWS for i386.
12455 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12456 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12457 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12458 for x86-64.
12459 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12460 when the target matches '*-*-mingw*'.
12461
fe4b2ee6
SM
124622020-03-16 Simon Marchi <simon.marchi@efficios.com>
12463
12464 * defs.h (enum gdb_osabi): Move to...
12465 * osabi.h (enum gdb_osabi): ... here.
12466 * gdbarch.sh: Include osabi.h in gdbarch.h.
12467 * gdbarch.h: Re-generate.
12468
cb9b645d
SM
124692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12472 function.
12473 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12474
3293bbaf
TT
124752020-03-14 Tom Tromey <tom@tromey.com>
12476
12477 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12478 for C++.
12479 (c_type_print_modifier): Likewise. Add "language" parameter.
12480 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12481 (c_type_print_base_1): Update.
12482 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12483 constants.
12484 * type-stack.c (type_stack::insert): Handle tp_atomic and
12485 tp_restrict.
12486 (type_stack::follow_type_instance_flags): Likewise.
12487 (type_stack::follow_types): Likewise. Merge type-following code.
12488 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12489 (space_identifier, cv_with_space_id)
12490 (const_or_volatile_or_space_identifier_noopt)
12491 (const_or_volatile_or_space_identifier): Remove.
12492 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12493 rules.
12494 (ptr_operator, typebase): Update.
12495 (enum token_flag) <FLAG_C>: New constant.
12496 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12497 "_Atomic".
12498 (lex_one_token): Handle FLAG_C.
12499
154151a6
KR
125002020-03-14 Kamil Rytarowski <n54@gmx.com>
12501
12502 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12503 it to the ptrace call.
12504 * m68k-bsd-nat.c (store_registers): Likewise.
12505
bc107784
KR
125062020-03-14 Kamil Rytarowski <n54@gmx.com>
12507
12508 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12509 gdb_byte *.
12510 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12511 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12512 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12513
01a80117
KR
125142020-03-14 Kamil Rytarowski <n54@gmx.com>
12515
12516 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12517 nbsd_nat_target instead of inf_ptrace_target.
12518 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12519 nbsd_nat_target.
12520
f90280ca
KR
125212020-03-14 Kamil Rytarowski <n54@gmx.com>
12522
12523 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12524 register_t.
12525
6def66f1
KR
125262020-03-14 Kamil Rytarowski <n54@gmx.com>
12527
12528 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12529 it to the ptrace call.
12530 * alpha-bsd-nat.c (store_registers): Likewise.
12531
66eaca97
KR
125322020-03-14 Kamil Rytarowski <n54@gmx.com>
12533
12534 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12535 includes.
12536 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12537 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12538 fill_fpregset): Likewise.
12539
4fed520b
KR
125402020-03-14 Kamil Rytarowski <n54@gmx.com>
12541
12542 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12543 nbsd_nat_target instead of inf_ptrace_target.
12544 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12545 nbsd_nat_target.
12546
2190cf06
KR
125472020-03-14 Kamil Rytarowski <n54@gmx.com>
12548
12549 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12550 register_t.
12551
75c56d3d
KR
125522020-03-14 Kamil Rytarowski <n54@gmx.com>
12553
12554 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12555 it to the ptrace call.
12556 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12557 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12558 * arm-nbsd-nat.c (store_register): Likewise.
12559 * arm-nbsd-nat.c (store_regs): Likewise.
12560 * arm-nbsd-nat.c (store_fp_register): Likewise.
12561 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12562
6018d381
KR
125632020-03-14 Kamil Rytarowski <n54@gmx.com>
12564
12565 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12566 nbsd_nat_target instead of inf_ptrace_target.
12567 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12568 nbsd_nat_target.
12569
013f99f0
KR
125702020-03-14 Kamil Rytarowski <n54@gmx.com>
12571
12572 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12573 it to the ptrace call.
12574 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12575
12753073
KR
125762020-03-14 Kamil Rytarowski <n54@gmx.com>
12577
6227b330
KR
12578 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12579 it to the ptrace call.
12580 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12581
125822020-03-14 Kamil Rytarowski <n54@gmx.com>
12583
12584 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12585 gdb_byte *.
12753073
KR
12586 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12587
d5be5fa4
KR
125882020-03-14 Kamil Rytarowski <n54@gmx.com>
12589
12590 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12591 instead of inf_ptrace_target.
12592 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12593 nbsd_nat_target.
12594
8110f842
KR
125952020-03-14 Kamil Rytarowski <n54@gmx.com>
12596
12597 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12598 register_t.
12599
52feded7
KR
126002020-03-14 Kamil Rytarowski <n54@gmx.com>
12601
12602 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12603 register_t.
12604
25567eee
KR
126052020-03-14 Kamil Rytarowski <n54@gmx.com>
12606
12607 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12608 register_t.
12609
426a9c18
TT
126102020-03-13 Tom Tromey <tom@tromey.com>
12611
12612 * value.h (val_print): Don't declare.
12613 * valprint.h (val_print_array_elements)
12614 (val_print_scalar_formatted, generic_val_print): Don't declare.
12615 * valprint.c (generic_val_print_array): Take a struct value.
12616 (generic_val_print_ptr, generic_val_print_memberptr)
12617 (generic_val_print_bool, generic_val_print_int)
12618 (generic_val_print_char, generic_val_print_complex)
12619 (generic_val_print): Remove.
12620 (generic_value_print): Update.
12621 (do_val_print): Remove unused parameters. Don't call
12622 la_val_print.
12623 (val_print): Remove.
12624 (common_val_print): Update. Don't call value_check_printable.
12625 (val_print_scalar_formatted, val_print_array_elements): Remove.
12626 * rust-lang.c (rust_val_print): Remove.
12627 (rust_language_defn): Update.
12628 * p-valprint.c (pascal_val_print): Remove.
12629 (pascal_value_print_inner): Update.
12630 (pascal_object_print_val_fields, pascal_object_print_val):
12631 Remove.
12632 (pascal_object_print_static_field): Update.
12633 * p-lang.h (pascal_val_print): Don't declare.
12634 * p-lang.c (pascal_language_defn): Update.
12635 * opencl-lang.c (opencl_language_defn): Update.
12636 * objc-lang.c (objc_language_defn): Update.
12637 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12638 * m2-lang.h (m2_val_print): Don't declare.
12639 * m2-lang.c (m2_language_defn): Update.
12640 * language.h (struct language_defn) <la_val_print>: Remove.
12641 * language.c (unk_lang_value_print_inner): Rename. Change
12642 argument types.
12643 (unknown_language_defn, auto_language_defn): Update.
12644 * go-valprint.c (go_val_print): Remove.
12645 * go-lang.h (go_val_print): Don't declare.
12646 * go-lang.c (go_language_defn): Update.
12647 * f-valprint.c (f_val_print): Remove.
12648 * f-lang.h (f_value_print): Don't declare.
12649 * f-lang.c (f_language_defn): Update.
12650 * d-valprint.c (d_val_print): Remove.
12651 * d-lang.h (d_value_print): Don't declare.
12652 * d-lang.c (d_language_defn): Update.
12653 * cp-valprint.c (cp_print_value_fields)
12654 (cp_print_value_fields_rtti, cp_print_value): Remove.
12655 (cp_print_static_field): Update.
12656 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12657 (c_val_print_struct, c_val_print_union, c_val_print_int)
12658 (c_val_print_memberptr, c_val_print): Remove.
12659 * c-lang.h (c_val_print_array, cp_print_value_fields)
12660 (cp_print_value_fields_rtti): Don't declare.
12661 * c-lang.c (c_language_defn, cplus_language_defn)
12662 (asm_language_defn, minimal_language_defn): Update.
12663 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12664 (ada_val_print_enum): Take a struct value.
12665 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12666 (ada_val_print): Remove.
12667 (ada_value_print_1): Update.
12668 (printable_val_type): Remove.
12669 * ada-lang.h (ada_val_print): Don't declare.
12670 * ada-lang.c (ada_language_defn): Update.
12671
42331a1e
TT
126722020-03-13 Tom Tromey <tom@tromey.com>
12673
12674 * valprint.c (do_val_print): Update.
12675 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12676 a struct value.
12677 (value_to_value_object_no_release): Declare.
12678 * python/py-value.c (value_to_value_object_no_release): New
12679 function.
12680 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12681 struct value.
12682 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12683 function.
12684 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12685 a struct value.
12686 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12687 Declare.
12688 (gdbscm_apply_val_pretty_printer): Take a struct value.
12689 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12690 value.
12691 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12692 value.
12693 * extension-priv.h (struct extension_language_ops)
12694 <apply_val_pretty_printer>: Take a struct value.
12695 * cp-valprint.c (cp_print_value): Create a struct value.
12696 (cp_print_value): Update.
12697
3a916a97
TT
126982020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * ada-valprint.c (print_field_values): Call common_val_print.
12701
b59eac37
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * ada-valprint.c (val_print_packed_array_elements): Remove
12705 bitoffset and val parameters. Call common_val_print.
12706 (ada_val_print_string): Remove offset, address, and original_value
12707 parameters.
12708 (ada_val_print_array): Update.
12709 (ada_value_print_array): New function.
12710 (ada_value_print_1): Call it.
12711
03371129
TT
127122020-03-13 Tom Tromey <tom@tromey.com>
12713
12714 * ada-valprint.c (ada_value_print): Use common_val_print.
12715
2e088f8b
TT
127162020-03-13 Tom Tromey <tom@tromey.com>
12717
12718 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12719
39ef85a8
TT
127202020-03-13 Tom Tromey <tom@tromey.com>
12721
12722 * ada-valprint.c (ada_value_print_num): New function.
12723 (ada_value_print_1): Use it.
12724
b9fa6e07
TT
127252020-03-13 Tom Tromey <tom@tromey.com>
12726
12727 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12728
416595d6
TT
127292020-03-13 Tom Tromey <tom@tromey.com>
12730
12731 * ada-valprint.c (ada_value_print_ptr): New function.
12732 (ada_value_print_1): Use it.
12733
5b5e15ec
TT
127342020-03-13 Tom Tromey <tom@tromey.com>
12735
12736 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12737 call common_val_print.
12738 (ada_val_print_1): Update.
12739 (ada_value_print_1): New function.
12740 (ada_value_print_inner): Rewrite.
12741
fbf54e75
TT
127422020-03-13 Tom Tromey <tom@tromey.com>
12743
12744 * cp-valprint.c (cp_print_value_fields): Update.
12745 (cp_print_value): New function.
12746
64b653ca
TT
127472020-03-13 Tom Tromey <tom@tromey.com>
12748
12749 * m2-valprint.c (m2_value_print_inner): Use
12750 cp_print_value_fields.
12751 * cp-valprint.c (cp_print_value_fields): New function.
12752 * c-valprint.c (c_value_print_struct): New function.
12753 (c_value_print_inner): Use c_value_print_struct.
12754 * c-lang.h (cp_print_value_fields): Declare.
12755
6999f067
TT
127562020-03-13 Tom Tromey <tom@tromey.com>
12757
12758 * c-valprint.c (c_value_print_array): New function.
12759 (c_value_print_inner): Use it.
12760
ce80b8bd
TT
127612020-03-13 Tom Tromey <tom@tromey.com>
12762
12763 * c-valprint.c (c_value_print_memberptr): New function.
12764 (c_value_print_inner): Use it.
12765
2faac269
TT
127662020-03-13 Tom Tromey <tom@tromey.com>
12767
12768 * c-valprint.c (c_value_print_int): New function.
12769 (c_value_print_inner): Use it.
12770
da3e2c29
TT
127712020-03-13 Tom Tromey <tom@tromey.com>
12772
12773 * c-valprint.c (c_value_print_ptr): New function.
12774 (c_value_print_inner): Use it.
12775
50836231
TT
127762020-03-13 Tom Tromey <tom@tromey.com>
12777
12778 * c-valprint.c (c_value_print_inner): Rewrite.
12779
4f412b6e
TT
127802020-03-13 Tom Tromey <tom@tromey.com>
12781
12782 * valprint.c (generic_value_print_complex): New function.
12783 (generic_value_print): Use it.
12784
f5354008
TT
127852020-03-13 Tom Tromey <tom@tromey.com>
12786
12787 * valprint.c (generic_val_print_float): Don't call
12788 val_print_scalar_formatted.
12789 (generic_val_print, generic_value_print): Update.
12790
3eec3b05
TT
127912020-03-13 Tom Tromey <tom@tromey.com>
12792
12793 * valprint.c (generic_value_print_char): New function
12794 (generic_value_print): Use it.
12795
fdddfccb
TT
127962020-03-13 Tom Tromey <tom@tromey.com>
12797
12798 * valprint.c (generic_value_print_int): New function.
12799 (generic_value_print): Use it.
12800
6dde7521
TT
128012020-03-13 Tom Tromey <tom@tromey.com>
12802
12803 * valprint.c (generic_value_print_bool): New function.
12804 (generic_value_print): Use it.
12805
4112d2e6
TT
128062020-03-13 Tom Tromey <tom@tromey.com>
12807
12808 * valprint.c (generic_val_print_func): Simplify.
12809 (generic_val_print, generic_value_print): Update.
12810
65786af6
TT
128112020-03-13 Tom Tromey <tom@tromey.com>
12812
12813 * valprint.c (generic_val_print_flags): Remove.
12814 (generic_val_print, generic_value_print): Update.
12815 (val_print_type_code_flags): Add original_value parameter.
12816
40f3ce18
TT
128172020-03-13 Tom Tromey <tom@tromey.com>
12818
12819 * valprint.c (generic_val_print): Update.
12820 (generic_value_print): Update.
12821 * valprint.c (generic_val_print_enum): Don't call
12822 val_print_scalar_formatted.
12823
2a5b130b
TT
128242020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12827 * valprint.c (generic_value_print_ptr): New function.
12828
abc66ce9
TT
128292020-03-13 Tom Tromey <tom@tromey.com>
12830
12831 * valprint.c (generic_value_print): Rewrite.
12832
07a32858
TT
128332020-03-13 Tom Tromey <tom@tromey.com>
12834
12835 * p-valprint.c (pascal_object_print_value_fields)
12836 (pascal_object_print_value): New functions.
12837
64d64d3a
TT
128382020-03-13 Tom Tromey <tom@tromey.com>
12839
12840 * p-valprint.c (pascal_value_print_inner): Rewrite.
12841
6a95a1f5
TT
128422020-03-13 Tom Tromey <tom@tromey.com>
12843
12844 * f-valprint.c (f_value_print_innner): Rewrite.
12845
59fcdac6
TT
128462020-03-13 Tom Tromey <tom@tromey.com>
12847
12848 * m2-valprint.c (m2_print_unbounded_array): New overload.
12849 (m2_print_unbounded_array): Update.
12850 (m2_print_array_contents): Take a struct value.
12851 (m2_value_print_inner): Rewrite.
12852
d133c3e1
TT
128532020-03-13 Tom Tromey <tom@tromey.com>
12854
12855 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12856 (d_value_print_inner): New function.
12857 * d-lang.h (d_value_print_inner): Declare.
12858 * d-lang.c (d_language_defn): Use d_value_print_inner.
12859
23b0f06b
TT
128602020-03-13 Tom Tromey <tom@tromey.com>
12861
12862 * go-valprint.c (go_value_print_inner): New function.
12863 * go-lang.h (go_value_print_inner): Declare.
12864 * go-lang.c (go_language_defn): Use go_value_print_inner.
12865
5f56f7cb
TT
128662020-03-13 Tom Tromey <tom@tromey.com>
12867
12868 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12869 API.
12870 (rust_val_print): Rewrite.
12871 (rust_value_print_inner): New function, from rust_val_print.
12872 (rust_language_defn): Use rust_value_print_inner.
12873
26792ee0
TT
128742020-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * ada-valprint.c (ada_value_print_inner): New function.
12877 * ada-lang.h (ada_value_print_inner): Declare.
12878 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12879
24051bbe
TT
128802020-03-13 Tom Tromey <tom@tromey.com>
12881
12882 * f-valprint.c (f_value_print_innner): New function.
12883 * f-lang.h (f_value_print_innner): Declare.
12884 * f-lang.c (f_language_defn): Use f_value_print_innner.
12885
c0941be6
TT
128862020-03-13 Tom Tromey <tom@tromey.com>
12887
12888 * p-valprint.c (pascal_value_print_inner): New function.
12889 * p-lang.h (pascal_value_print_inner): Declare.
12890 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12891
62c4663d
TT
128922020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * m2-valprint.c (m2_value_print_inner): New function.
12895 * m2-lang.h (m2_value_print_inner): Declare.
12896 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12897
62182190
TT
128982020-03-13 Tom Tromey <tom@tromey.com>
12899
12900 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12901 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12902 * c-valprint.c (c_value_print_inner): New function.
12903 * c-lang.h (c_value_print_inner): Declare.
12904 * c-lang.c (c_language_defn, cplus_language_defn)
12905 (asm_language_defn, minimal_language_defn): Use
12906 c_value_print_inner.
12907
1e592a8a
TT
129082020-03-13 Tom Tromey <tom@tromey.com>
12909
12910 * p-valprint.c (pascal_object_print_value_fields): Now static.
12911 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12912
7fe471e9
TT
129132020-03-13 Tom Tromey <tom@tromey.com>
12914
12915 * c-valprint.c (c_val_print_array): Simplify.
12916
d121c6ce
TT
129172020-03-13 Tom Tromey <tom@tromey.com>
12918
12919 * valprint.c (value_print_array_elements): New function.
12920 * valprint.h (value_print_array_elements): Declare.
12921
4dba70ee
TT
129222020-03-13 Tom Tromey <tom@tromey.com>
12923
12924 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12925 * mips-tdep.c (mips_print_register): Use
12926 value_print_scalar_formatted.
12927
4f9ae810
TT
129282020-03-13 Tom Tromey <tom@tromey.com>
12929
12930 * valprint.h (value_print_scalar_formatted): Declare.
12931 * valprint.c (value_print_scalar_formatted): New function.
12932
156bfec9
TT
129332020-03-13 Tom Tromey <tom@tromey.com>
12934
12935 * valprint.h (generic_value_print): Declare.
12936 * valprint.c (generic_value_print): New function.
12937
2b4e573d
TT
129382020-03-13 Tom Tromey <tom@tromey.com>
12939
12940 * valprint.c (do_val_print): Call la_value_print_inner, if
12941 available.
12942 * rust-lang.c (rust_language_defn): Update.
12943 * p-lang.c (pascal_language_defn): Update.
12944 * opencl-lang.c (opencl_language_defn): Update.
12945 * objc-lang.c (objc_language_defn): Update.
12946 * m2-lang.c (m2_language_defn): Update.
12947 * language.h (struct language_defn) <la_value_print_inner>: New
12948 member.
12949 * language.c (unknown_language_defn, auto_language_defn): Update.
12950 * go-lang.c (go_language_defn): Update.
12951 * f-lang.c (f_language_defn): Update.
12952 * d-lang.c (d_language_defn): Update.
12953 * c-lang.c (c_language_defn, cplus_language_defn)
12954 (asm_language_defn, minimal_language_defn): Update.
12955 * ada-lang.c (ada_language_defn): Update.
12956
a1f6a07c
TT
129572020-03-13 Tom Tromey <tom@tromey.com>
12958
12959 * c-valprint.c (c_value_print): Use common_val_print.
12960
410cf315
TT
129612020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12964
72a45c93
TT
129652020-03-13 Tom Tromey <tom@tromey.com>
12966
12967 * f-valprint.c (f77_print_array_1, f_val_print): Use
12968 common_val_print.
12969
040f66bd
TT
129702020-03-13 Tom Tromey <tom@tromey.com>
12971
12972 * riscv-tdep.c (riscv_print_one_register_info): Use
12973 common_val_print.
12974
a6e05a6c
TT
129752020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * mi/mi-main.c (output_register): Use common_val_print.
12978
3444c526
TT
129792020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * infcmd.c (default_print_one_register_info): Use
12982 common_val_print.
12983
c2a44efe
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * valprint.h (common_val_print_checked): Declare.
12987 * valprint.c (common_val_print_checked): New function.
12988 * stack.c (print_frame_arg): Use common_val_print_checked.
12989
b0c26e99
TT
129902020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * valprint.c (do_val_print): New function, from val_print.
12993 (val_print): Use do_val_print.
12994 (common_val_print): Use do_val_print.
12995
ce3acbe9
TT
129962020-03-13 Tom Tromey <tom@tromey.com>
12997
12998 * valprint.c (value_print): Use scoped_value_mark.
12999
96c7f873
TV
130002020-03-13 Tom de Vries <tdevries@suse.de>
13001
13002 PR symtab/25646
13003 * psymtab.c (partial_symtab::partial_symtab): Don't set
13004 globals_offset and statics_offset. Push element onto
13005 current_global_psymbols and current_static_psymbols stacks.
13006 (concat): New function.
13007 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13008 element from current_global_psymbols and current_static_psymbols
13009 stacks. Concat popped elements to global_psymbols and
13010 static_symbols.
13011 (add_psymbol_to_list): Use current_global_psymbols and
13012 current_static_psymbols stacks.
13013 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13014 current_static_psymbols fields.
13015
6ba0a321
CB
130162020-03-12 Christian Biesinger <cbiesinger@google.com>
13017
13018 * corelow.c (sniff_core_bfd): Remove.
13019 (class core_target) <m_core_vec>: Remove.
13020 (core_target::core_target): Update.
13021 (core_file_fns): Remove.
13022 (deprecated_add_core_fns): Remove.
13023 (default_core_sniffer): Remove.
13024 (sniff_core_bfd): Remove.
13025 (default_check_format): Remove.
13026 (gdb_check_format): Remove.
13027 (core_target_open): Update.
13028 (core_target::get_core_register_section): Update.
13029 (get_core_registers_cb): Update.
13030 (core_target::fetch_registers): Update.
13031 * gdbcore.h (struct core_fns): Remove.
13032 (deprecated_add_core_fns): Remove.
13033 (default_core_sniffer): Remove.
13034 (default_check_format): Remove.
13035
227031b2
TT
130362020-03-12 Tom Tromey <tom@tromey.com>
13037
13038 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13039 CORE_ADDR.
13040 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13041
53807e9f
TT
130422020-03-12 Tom Tromey <tom@tromey.com>
13043
13044 * remote.c (remote_target::download_tracepoint)
13045 (remote_target::enable_tracepoint)
13046 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13047 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13048 sprintf_vma.
13049
64f25102
TT
130502020-03-12 Tom Tromey <tom@tromey.com>
13051
13052 * symfile-mem.c: Update CORE_ADDR size assert.
13053
272cd5a3
SM
130542020-03-12 Simon Marchi <simon.marchi@efficios.com>
13055
13056 * selftest.m4: Move to gdbsupport/.
13057 * acinclude.m4: Update path to selftest.m4.
13058
74cd3f9d
SM
130592020-03-12 Simon Marchi <simon.marchi@efficios.com>
13060
13061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13062 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13063 gdbarch-selfselftests.c and selftest-arch.c.
13064 (SUBDIR_UNITTESTS_OBS): Rename to...
13065 (SELFTESTS_OBS): ... this.
13066 (COMMON_SFILES): Remove disasm-selftests.c and
13067 gdbarch-selftests.c.
13068 * configure.ac: Don't add selftest-arch.{c,o} to
13069 CONFIG_{SRCS,OBS}.
13070 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13071 preprocessor conditions.
13072
db6878ac
SM
130732020-03-12 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * configure.ac: Don't source bfd/development.sh.
13076 * selftest.m4: Modify comment.
13077 * configure: Re-generate.
13078
4d696a5c
SM
130792020-03-12 Simon Marchi <simon.marchi@efficios.com>
13080
13081 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13082 not "true" or "false".
13083 * configure: Re-generate.
13084
8dd8e1c7
CB
130852020-03-12 Christian Biesinger <cbiesinger@google.com>
13086
13087 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13088 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13089 renamed to arm_nbsd_supply_gregset.
13090 (fetch_register): Update to call arm_nbsd_supply_gregset.
13091 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13092 (arm_netbsd_nat_target::fetch_registers): Update.
13093 (fetch_elfcore_registers): Removed.
13094 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13095 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13096 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13097 not require NetBSD system headers.
13098 (arm_nbsd_regset): New struct.
13099 (arm_nbsd_iterate_over_regset_sections): New function.
13100 (arm_netbsd_init_abi_common): Updated to call
13101 set_gdbarch_iterate_over_regset_sections.
13102 * arm-nbsd-tdep.h: New file.
13103
dd69bf7a
KB
131042020-03-11 Kevin Buettner <kevinb@redhat.com>
13105
13106 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13107 recursion.
13108
a0761e34
SM
131092020-03-11 Simon Marchi <simon.marchi@efficios.com>
13110
13111 * configure: Re-generate.
13112
e7a82140
TT
131132020-03-11 Tom Tromey <tromey@adacore.com>
13114
13115 * ada-typeprint.c (print_choices): Fix comment.
13116
dcc050c8
AB
131172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13120 previous item in the list, when the list has no items.
13121
1c33af77
TV
131222020-03-11 Tom de Vries <tdevries@suse.de>
13123
13124 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13125 PROP_LOCLIST handling code.
13126
8c95582d
AB
131272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * buildsym-legacy.c (record_line): Pass extra parameter to
13130 record_line.
13131 * buildsym.c (buildsym_compunit::record_line): Take an extra
13132 parameter, reduce duplication in the line table, and record the
13133 is_stmt flag in the line table.
13134 * buildsym.h (buildsym_compunit::record_line): Add extra
13135 parameter.
13136 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13137 non-statement lines.
13138 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13139 this to the symtab builder.
13140 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13141 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13142 through to dwarf_record_line_1.
13143 * infrun.c (process_event_stop_test): When stepping, don't stop at
13144 a non-statement instruction, and only refresh the step info when
13145 we land in the middle of a line's range. Also add an extra
13146 comment.
13147 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13148 field.
13149 * record-btrace.c (btrace_find_line_range): Only record lines
13150 marked as is-statement.
13151 * stack.c (frame_show_address): Show the frame address if we are
13152 in a non-statement sal.
13153 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13154 (maintenance_print_one_line_table): Print a header for the is_stmt
13155 column, and include is_stmt information in the output.
13156 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13157 preference to non-statements.
13158 (find_pcs_for_symtab_line): Prefer is-statement entries.
13159 (find_line_common): Likewise.
13160 * symtab.h (struct linetable_entry): Add is_stmt field.
13161 (struct symtab_and_line): Likewise.
13162 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13163 arranging the line table.
13164
e4003a34
TV
131652020-03-07 Tom de Vries <tdevries@suse.de>
13166
13167 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13168 DIE.
13169
e8932576
TT
131702020-03-07 Tom Tromey <tom@tromey.com>
13171
13172 * valops.c (value_literal_complex): Remove obsolete comment.
13173 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13174 comment.
13175
29734269
SM
131762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13177
13178 * infrun.h: Forward-declare thread_info.
13179 (set_step_info): Add thread_info parameter, add doc.
13180 * infrun.c (set_step_info): Add thread_info parameter, move doc
13181 to header.
13182 * infrun.c (process_event_stop_test): Pass thread to
13183 set_step_info call.
13184 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13185 set_step_info.
13186 (prepare_one_step): Add thread_info parameter, pass it to
13187 set_step_frame and prepare_one_step (recursive) call.
13188 (step_1): Pass thread to prepare_one_step call.
13189 (step_command_fsm::should_stop): Pass thread to
13190 prepare_one_step.
13191 (until_next_fsm): Pass thread to set_step_frame call.
13192 (finish_command): Pass thread to set_step_info call.
13193
b7d64b29
HD
131942020-03-06 Hannes Domani <ssbssa@yahoo.de>
13195
13196 * windows-tdep.c (windows_solib_create_inferior_hook):
13197 Check if inferior is running.
13198
09f2921c
TV
131992020-03-06 Tom de Vries <tdevries@suse.de>
13200
13201 * NEWS: Fix "the the".
13202 * ctfread.c: Same.
13203
fd760e79
TV
132042020-03-06 Tom de Vries <tdevries@suse.de>
13205
13206 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13207
20ea4a60
AB
132082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13209
13210 * .dir-locals.el: Add a comment referencing the other copies of
13211 this file.
13212
0afbabf0
JB
132132020-03-05 John Baldwin <jhb@FreeBSD.org>
13214
13215 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13216 psargs.
13217
842806cb
TBA
132182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13219
13220 * .gitattributes: New file.
13221
be1e3d3e
TT
132222020-03-04 Tom Tromey <tom@tromey.com>
13223
13224 * symmisc.c (print_symbol_bcache_statistics)
13225 (print_objfile_statistics): Update.
13226 * symfile.c (allocate_symtab): Use intern.
13227 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13228 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13229 macro_cache>: Remove.
13230 <string_cache>: New member.
13231 (struct objfile) <intern>: New methods.
13232 * elfread.c (elf_symtab_read): Use intern.
13233 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13234 (dwarf2_compute_name, dwarf2_physname)
13235 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13236 names.
13237 (guess_partial_die_structure_name): Update.
13238 (partial_die_info::fixup): Intern name.
13239 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13240 name.
13241 (dwarf2_name): Intern name. Update.
13242 * buildsym.c (buildsym_compunit::get_macro_table): Use
13243 string_cache.
13244
4e7625fd
TT
132452020-03-04 Tom Tromey <tom@tromey.com>
13246
13247 * jit.c (bfd_open_from_target_memory): Make "target" const.
13248 * corefile.c (gnutarget): Now const.
13249 * gdbcore.h (gnutarget): Now const.
13250
46f9f931
HD
132512020-03-04 Hannes Domani <ssbssa@yahoo.de>
13252
13253 * NEWS: Mention support for WOW64 processes.
13254 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13255 (amd64_windows_segment_register_p): Remove static.
13256 (_initialize_amd64_windows_nat): Update.
13257 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13258 * i386-windows-nat.c (context_offset): Update.
13259 (i386_mappings): Rename and remove static.
13260 (i386_windows_segment_register_p): Remove static.
13261 (_initialize_i386_windows_nat): Update.
13262 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13263 (STATUS_WX86_SINGLE_STEP): New macro.
13264 (EnumProcessModulesEx): New macro.
13265 (Wow64SuspendThread): New macro.
13266 (Wow64GetThreadContext): New macro.
13267 (Wow64SetThreadContext): New macro.
13268 (Wow64GetThreadSelectorEntry): New macro.
13269 (windows_set_context_register_offsets): Add static.
13270 (windows_set_segment_register_p): Likewise.
13271 (windows_add_thread): Adapt for WOW64 processes.
13272 (windows_fetch_one_register): Likewise.
13273 (windows_nat_target::fetch_registers): Likewise.
13274 (windows_store_one_register): Likewise.
13275 (display_selector): Likewise.
13276 (display_selectors): Likewise.
13277 (handle_exception): Likewise.
13278 (windows_continue): Likewise.
13279 (windows_nat_target::resume): Likewise.
13280 (windows_add_all_dlls): Likewise.
13281 (do_initial_windows_stuff): Likewise.
13282 (windows_nat_target::attach): Likewise.
13283 (windows_get_exec_module_filename): Likewise.
13284 (windows_nat_target::create_inferior): Likewise.
13285 (windows_xfer_siginfo): Likewise.
13286 (_initialize_loadable): Initialize Wow64SuspendThread,
13287 Wow64GetThreadContext, Wow64SetThreadContext,
13288 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13289 * windows-nat.h (windows_set_context_register_offsets):
13290 Remove declaration.
13291 (windows_set_segment_register_p): Likewise.
13292 (i386_windows_segment_register_p): Add declaration.
13293 (amd64_windows_segment_register_p): Likewise.
13294
440cf44e
LM
132952020-03-04 Luis Machado <luis.machado@linaro.org>
13296
13297 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13298 in "info registers" for AArch64/ARM.
13299
13300 The change caused "info registers" to not print GPR's.
13301
13302 gdb/ChangeLog:
13303
13304 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13305
13306 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13307 when reg->group is empty and reggroup is not.
13308
1009d92f
TT
133092020-03-03 Tom Tromey <tromey@adacore.com>
13310
13311 * dwarf2/frame.c (struct dwarf2_frame_cache)
13312 <checked_tailcall_bottom, entry_cfa_sp_offset,
13313 entry_cfa_sp_offset_p>: Remove members.
13314 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13315 (dwarf2_frame_prev_register): Don't call
13316 dwarf2_tailcall_sniffer_first.
13317 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13318 * frame-unwind.c (add_unwinder): New fuction.
13319 (frame_unwind_init): Use it. Add tailcall unwinder.
13320
5e5d66b6
AB
133212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13322 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13323
13324 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13325 value should be printed as true.
13326
584cf46d
HD
133272020-03-03 Hannes Domani <ssbssa@yahoo.de>
13328
13329 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13330 (windows_init_abi): Set and use windows_so_ops.
13331
7b973adc
SDJ
133322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13333
13334 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13335 when verifying if dealing with a convenience variable.
13336
bb7b70ab
LM
133372020-03-03 Luis Machado <luis.machado@linaro.org>
13338
13339 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13340
9822cb57
SM
133412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13342
13343 * infrun.c (gdbarch_supports_displaced_stepping): New.
13344 (use_displaced_stepping): Break up conditions in smaller pieces.
13345 Use gdbarch_supports_displaced_stepping.
13346 (displaced_step_prepare_throw): Use
13347 gdbarch_supports_displaced_stepping.
13348
63e163f2
AB
133492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13350
13351 * NEWS: Mention new behaviour of the history filename.
13352 * top.c (write_history_p): Add comment.
13353 (show_write_history_p): Add header comment, give a different
13354 message when history writing is on, but the history filename is
13355 empty.
13356 (history_filename): Add comment.
13357 (history_filename_empty): New function.
13358 (show_history_filename): Add header comment, give a different
13359 message when the filename is empty.
13360 (init_history): Compare history_filename against nullptr, and only
13361 read history if the filename is not empty.
13362 (set_history_filename): Add header comment, and only make
13363 non-empty filenames absolute.
13364 (init_main): Make the filename argument to 'set history filename'
13365 optional.
13366
81b86b97
CB
133672020-03-02 Christian Biesinger <cbiesinger@google.com>
13368
13369 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13370 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13371 (fetch_fp_register): Update.
13372 (fetch_fp_regs): Update.
13373 (store_fp_register): Update.
13374 (store_fp_regs): Update.
13375 (arm_netbsd_nat_target::read_description): New function.
13376 (fetch_elfcore_registers): Update.
13377
24ed6739
AB
133782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13379
13380 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13381 general_thread if the stop reply is missing a thread-id.
13382 (remote_target::process_stop_reply): Use the first non-exited
13383 thread if the target didn't pass a thread-id.
13384 * infrun.c (do_target_wait): Move call to
13385 switch_to_inferior_no_thread to ....
13386 (do_target_wait_1): ... here.
13387
a84bb2a0
JT
133882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13389
13390 * debuginfod-support.c: Include defs.h first.
13391
658dadf0
TV
133922020-02-28 Tom de Vries <tdevries@suse.de>
13393
13394 * symfile.c (set_initial_language): Use default language for lookup.
13395
4ebe4877
SM
133962020-02-28 Simon Marchi <simon.marchi@efficios.com>
13397
13398 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13399 reader variable, pass `this` to read_cutu_die_from_dwo.
13400
e5da1139
AM
134012020-02-27 Aaron Merey <amerey@redhat.com>
13402
13403 * source.c (open_source_file): Check for nullptr when computing
13404 srcpath.
13405
317f7127
TT
134062020-02-27 Tom Tromey <tromey@adacore.com>
13407
13408 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13409 member.
13410 (dwarf2_add_field): Don't update nfields.
13411 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13412
3104d9ee
AB
134132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13414
13415 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13416 abs.
13417
b83470bf
TT
134182020-02-26 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13421 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13422 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13423 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13424 per_cu_data.
13425
edfe0a0c
TT
134262020-02-26 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2/index-write.c (psym_index_map): Change type.
13429 (add_address_entry_worker, write_one_signatured_type)
13430 (recursively_count_psymbols, recursively_write_psymbols)
13431 (class debug_names, psyms_seen_size, write_gdbindex)
13432 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13433
0d79cdc4
AM
134342020-02-26 Aaron Merey <amerey@redhat.com>
13435
13436 * Makefile.in: Handle optional debuginfod support.
13437 * NEWS: Update.
13438 * README: Add --with-debuginfod summary.
13439 * config.in: Regenerate.
13440 * configure: Regenerate.
13441 * configure.ac: Handle optional debuginfod support.
13442 * debuginfod-support.c: debuginfod helper functions.
13443 * debuginfod-support.h: Ditto.
13444 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13445 summary.
13446 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13447 when a dwz file cannot be found.
13448 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13449 debuginfo file cannot be found.
13450 * source.c (open_source_file): Query debuginfod servers when a
13451 source file cannot be found.
13452 * top.c (print_gdb_configuration): Include
13453 --{with,without}-debuginfod in the output.
13454
b65ce565
JG
134552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13456
13457 * thread.c (thr_try_catch_cmd): Print thread name.
13458
d4c9a4f8
SM
134592020-02-26 Simon Marchi <simon.marchi@efficios.com>
13460
13461 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13463 dwarf2_fetch_die_type_sect_off): Move to...
13464 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13466 dwarf2_fetch_die_type_sect_off): ... here.
13467 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13469 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13470
0dce4280
TV
134712020-02-26 Tom de Vries <tdevries@suse.de>
13472
13473 PR gdb/25603
13474 * symfile.c (set_initial_language): Exit-early if
13475 language_mode == language_mode_manual.
13476
450a1bfc
SM
134772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13478
13479 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13480 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13481 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13482
9e80cfa1
AB
134832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 * gdbtypes.c (create_array_type_with_stride): Handle negative
13486 array strides.
13487 * valarith.c (value_subscripted_rvalue): Likewise.
13488
09624f1f
LM
134892020-02-25 Luis Machado <luis.machado@linaro.org>
13490
13491 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13492
8cb5117c
SM
134932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13494
13495 * loc.h (dwarf2_get_die_type): Move to...
13496 * read.h (dwarf2_get_die_type): ... here.
13497 * read.c (dwarf2_get_die_type): Move doc to header.
13498
c325c44e
JB
134992020-02-25 Joel Brobecker <brobecker@adacore.com>
13500
13501 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13502 'gnulib/Makefile.in' to the list.
13503
4ac93832
TT
135042020-02-24 Tom Tromey <tom@tromey.com>
13505
13506 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13507 Remove.
13508 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13509 XOBNEWVEC.
13510
197400e8
TT
135112020-02-24 Tom Tromey <tom@tromey.com>
13512
13513 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13514 New method.
13515 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13516 (dw2_do_instantiate_symtab, dw2_get_file_names)
13517 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13518
76935768
TT
135192020-02-24 Tom Tromey <tom@tromey.com>
13520
13521 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13522 make_scoped_restore.
13523 (dwarf2_psymtab::read_symtab): Don't clear
13524 reading_partial_symbols.
13525
a88ef40d
TV
135262020-02-24 Tom de Vries <tdevries@suse.de>
13527
13528 PR gdb/25592
13529 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13530
c9af6521
TV
135312020-02-24 Tom de Vries <tdevries@suse.de>
13532
13533 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13534 commands layout next/prev/regs.
13535
5707a07a
TT
135362020-02-22 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13539 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13540
3b0fb49e
TT
135412020-02-22 Tom Tromey <tom@tromey.com>
13542
13543 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13544
283be8bf
TT
135452020-02-22 Tom Tromey <tom@tromey.com>
13546
13547 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13548 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13549 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13550 * tui/tui.c (_initialize_tui): Add usage text.
13551
ca793b96
TT
135522020-02-22 Tom Tromey <tom@tromey.com>
13553
13554 * tui/tui-win.c (tui_set_focus_command)
13555 (tui_set_win_height_command): Use error_no_arg.
13556 (_initialize_tui_win): Update help text.
13557 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13558
432b5c40
TT
135592020-02-22 Tom Tromey <tom@tromey.com>
13560
13561 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13562 * tui/tui-disasm.h (struct tui_disasm_window)
13563 <display_start_addr>: Declare.
13564 * tui/tui-source.h (struct tui_source_window)
13565 <display_start_addr>: Declare.
13566 * tui/tui-winsource.h (struct tui_source_window_base)
13567 <show_source_line, display_start_addr>: New methods.
13568 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13569 Rename and move to protected section.
13570 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13571 (tui_source_window_base::do_erase_source_content): Update.
13572 (tui_source_window_base::show_source_line): Now a method.
13573 (tui_source_window_base::show_source_content)
13574 (tui_source_window_base::tui_source_window_base)
13575 (tui_source_window_base::rerender)
13576 (tui_source_window_base::refill)
13577 (tui_source_window_base::do_scroll_horizontal)
13578 (tui_source_window_base::set_is_exec_point_at)
13579 (tui_source_window_base::update_breakpoint_info)
13580 (tui_source_window_base::update_exec_info): Update.
13581 * tui/tui-source.c (tui_source_window::set_contents)
13582 (tui_source_window::showing_source_p)
13583 (tui_source_window::do_scroll_vertical)
13584 (tui_source_window::location_matches_p)
13585 (tui_source_window::line_is_displayed): Update.
13586 (tui_source_window::display_start_addr): New method.
13587 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13588 (tui_disasm_window::do_scroll_vertical)
13589 (tui_disasm_window::location_matches_p): Update.
13590 (tui_disasm_window::display_start_addr): New method.
13591
01b1af32
TT
135922020-02-22 Tom Tromey <tom@tromey.com>
13593
13594 * NEWS: Add entry for gdb.register_window_type.
13595 * tui/tui-layout.h (window_factory): New typedef.
13596 (tui_register_window): Declare.
13597 * tui/tui-layout.c (saved_tui_windows): New global.
13598 (tui_apply_current_layout): Use it.
13599 (tui_register_window): New function.
13600 * python/python.c (do_start_initialization): Call
13601 gdbpy_initialize_tui.
13602 (python_GdbMethods): Add "register_window_type" function.
13603 * python/python-internal.h (gdbpy_register_tui_window)
13604 (gdbpy_initialize_tui): Declare.
13605 * python/py-tui.c: New file.
13606 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13607
fc96d20b
TT
136082020-02-22 Tom Tromey <tom@tromey.com>
13609
13610 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13611
935c78c0
TT
136122020-02-22 Tom Tromey <tom@tromey.com>
13613
13614 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13615 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13616 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13617 (tui_set_win_focus_to): Move from tui-win.c.
13618
0240c8f1
TT
136192020-02-22 Tom Tromey <tom@tromey.com>
13620
13621 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13622 functions.
13623 (known_window_types): New global.
13624 (tui_get_window_by_name): Reimplement.
13625 (initialize_known_windows): New function.
13626 (validate_window_name): Rewrite.
13627 (_initialize_tui_layout): Call initialize_known_windows.
13628
fdb01f0c
TT
136292020-02-22 Tom Tromey <tom@tromey.com>
13630
13631 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13632 Remove constants.
13633 * tui/tui-winsource.h (struct tui_source_window_base)
13634 <tui_source_window_base>: Remove parameter.
13635 * tui/tui-winsource.c
13636 (tui_source_window_base::tui_source_window_base): Remove
13637 parameter.
13638 (tui_source_window_base::refill): Update.
13639 * tui/tui-stack.h (struct tui_locator_window)
13640 <tui_locator_window>: Update.
13641 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13642 Default the constructor.
13643 * tui/tui-regs.h (struct tui_data_item_window)
13644 <tui_data_item_window>: Default the constructor.
13645 (struct tui_data_window) <tui_data_window>: Likewise.
13646 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13647 Default the constructor.
13648 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13649 Default the constructor.
13650 <type>: Remove.
13651 (struct tui_win_info) <tui_win_info>: Default the constructor.
13652 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13653 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13654 Default the constructor.
13655
865a5aec
TT
136562020-02-22 Tom Tromey <tom@tromey.com>
13657
13658 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13659 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13660 * tui/tui-win.c (tui_resize_all): Don't call
13661 tui_delete_invisible_windows.
13662 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13663 done.
13664 (tui_set_layout): Update.
13665 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13666 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13667 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13668
e098d18c
TT
136692020-02-22 Tom Tromey <tom@tromey.com>
13670
13671 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13672 correctly.
13673
eb9c8874
TT
136742020-02-22 Tom Tromey <tom@tromey.com>
13675
13676 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13677
7eed1a8e
TT
136782020-02-22 Tom Tromey <tom@tromey.com>
13679
13680 * tui/tui-winsource.h (struct tui_source_window_iterator)
13681 <inner_iterator>: New etytypedef.
13682 <tui_source_window_iterator>: Take "end" parameter.
13683 <tui_source_window_iterator>: Take iterator.
13684 <operator*, advance>: Update.
13685 <m_iter>: Change type.
13686 <m_end>: New field.
13687 (struct tui_source_windows) <begin, end>: Update.
13688 * tui/tui-layout.c (tui_windows): New global.
13689 (tui_apply_current_layout): Clear tui_windows.
13690 (tui_layout_window::apply): Update tui_windows.
13691 * tui/tui-data.h (tui_windows): Declare.
13692 (all_tui_windows): Now inline function.
13693 (class tui_window_iterator, struct all_tui_windows): Remove.
13694
7c043ba6
TT
136952020-02-22 Tom Tromey <tom@tromey.com>
13696
13697 PR tui/17850:
13698 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13699 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13700 "height" argument.
13701 (class tui_layout_window) <get_sizes>: Likewise.
13702 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13703 argument.
13704 <get_sizes>: Add "height" argument.
13705 <m_vertical>: New field.
13706 * tui/tui-layout.c (tui_layout_split::clone): Update.
13707 (tui_layout_split::get_sizes): Add "height" argument.
13708 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13709 (tui_new_layout_command): Parse "-horizontal".
13710 (_initialize_tui_layout): Update help string.
13711 (tui_layout_split::specification): Add "-horizontal" when needed.
13712 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13713 argument.
13714 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13715 New methods.
13716
6bc56648
TT
137172020-02-22 Tom Tromey <tom@tromey.com>
13718
13719 * tui/tui-layout.h (enum tui_adjust_result): New.
13720 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13721 (class tui_layout_window) <adjust_size>: Return
13722 tui_adjust_result. Rewrite.
13723 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13724 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13725
c22fef7e
TT
137262020-02-22 Tom Tromey <tom@tromey.com>
13727
13728 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13729 parameter and return types.
13730 (class tui_layout_base) <specification>: Add "depth".
13731 (class tui_layout_window) <specification>: Add "depth".
13732 (class tui_layout_split) <specification>: Add "depth".
13733 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13734 and return types.
13735 (tui_new_layout_command): Parse sub-layouts.
13736 (_initialize_tui_layout): Update help string.
13737 (tui_layout_window::specification): Add "depth".
13738 (add_layout_command): Update.
13739
ee325b61
TT
137402020-02-22 Tom Tromey <tom@tromey.com>
13741
13742 * NEWS: Add "tui new-layout" item.
13743 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13744 Add new-layout command to help text.
13745 (validate_window_name): New function.
13746 (tui_new_layout_command): New function.
13747 (_initialize_tui_layout): Register "new-layout".
13748 (tui_layout_window::specification): New method.
13749 (tui_layout_window::specification): New method.
13750 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13751 method.
13752 (class tui_layout_window) <specification>: New method.
13753 (class tui_layout_split) <specification>: New method.
13754
416eb92d
TT
137552020-02-22 Tom Tromey <tom@tromey.com>
13756
13757 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13758 * tui/tui-win.c (window_name_completer): Update comment.
13759 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13760 Declare method.
13761 (class tui_layout_window) <replace_window>: Likewise.
13762 (class tui_layout_split) <replace_window>: Likewise.
13763 (tui_set_layout): Don't declare.
13764 (tui_set_initial_layout): Declare function.
13765 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13766 (asm_regs_layout): New globals.
13767 (tui_current_layout, show_layout): Remove.
13768 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13769 (find_layout, tui_apply_layout): New function.
13770 (layout_completer): Remove.
13771 (tui_next_layout): Reimplement.
13772 (tui_next_layout_command): New function.
13773 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13774 (tui_regs_layout): Reimplement.
13775 (tui_regs_layout_command): New function.
13776 (extract_display_start_addr): Rewrite.
13777 (next_layout, prev_layout): Remove.
13778 (tui_layout_window::replace_window): New method.
13779 (tui_layout_split::replace_window): New method.
13780 (destroy_layout): New function.
13781 (layout_list): New global.
13782 (add_layout_command): New function.
13783 (initialize_layouts): Update.
13784 (tui_layout_command): New function.
13785 (_initialize_tui_layout): Install "layout" commands.
13786 * tui/tui-data.h (enum tui_layout_type): Remove.
13787 (tui_current_layout): Don't declare.
13788
0dbc2fc7
TT
137892020-02-22 Tom Tromey <tom@tromey.com>
13790
13791 * tui/tui-regs.c (tui_reg_layout): Remove.
13792 (tui_reg_command): Use tui_regs_layout.
13793 * tui/tui-layout.h (tui_reg_command): Declare.
13794 * tui/tui-layout.c (tui_reg_command): New function.
13795
5afe342e
TT
137962020-02-22 Tom Tromey <tom@tromey.com>
13797
13798 * tui/tui.c (tui_rl_delete_other_windows): Call
13799 tui_remove_some_windows.
13800 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13801 Declare method.
13802 (class tui_layout_window) <remove_windows>: New method.
13803 (class tui_layout_split) <remove_windows>: Declare.
13804 (tui_remove_some_windows): Declare.
13805 * tui/tui-layout.c (tui_remove_some_windows): New function.
13806 (tui_layout_split::remove_windows): New method.
13807
427326a8
TT
138082020-02-22 Tom Tromey <tom@tromey.com>
13809
13810 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13811 * tui/tui-layout.h (tui_next_layout): Declare.
13812 * tui/tui-layout.c (tui_next_layout): New function.
13813
3fe12b6d
TT
138142020-02-22 Tom Tromey <tom@tromey.com>
13815
13816 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13817 correct coordinates.
13818
59b8b5d2
TT
138192020-02-22 Tom Tromey <tom@tromey.com>
13820
13821 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13822 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13823 DATA_WIN case.
13824
2a3d458b
TT
138252020-02-22 Tom Tromey <tom@tromey.com>
13826
13827 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13828 TUI_DISASM_WIN, not tui_win_list.
13829
3f0cbb04
TT
138302020-02-22 Tom Tromey <tom@tromey.com>
13831
13832 * valprint.c (generic_val_print_enum_1)
13833 (val_print_type_code_flags): Style member names.
13834 * rust-lang.c (val_print_struct, rust_print_enum)
13835 (rust_print_struct_def, rust_internal_print_type): Style member
13836 names.
13837 * p-valprint.c (pascal_object_print_value_fields): Style member
13838 names. Only call fprintf_symbol_filtered for static members.
13839 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13840 * f-valprint.c (f_val_print): Style member names.
13841 * f-typeprint.c (f_type_print_base): Style member names.
13842 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13843 call fprintf_symbol_filtered for static members.
13844 (cp_print_class_member): Style member names.
13845 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13846 member names.
13847 * ada-valprint.c (ada_print_scalar): Style enum names.
13848 (ada_val_print_enum): Likewise.
13849 * ada-typeprint.c (print_enum_type): Style enum names.
13850
d4d947ae
TT
138512020-02-21 Tom Tromey <tom@tromey.com>
13852
13853 * psympriv.h (struct partial_symtab): Update comment.
13854
e94e944b
TT
138552020-02-21 Tom Tromey <tromey@adacore.com>
13856
13857 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13858 type is CORE_ADDR.
13859
1eb73179
TV
138602020-02-21 Tom de Vries <tdevries@suse.de>
13861
13862 PR gdb/25534
13863 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13864 if dependencies[i]->user != NULL.
13865
4f180d53
AT
138662020-02-21 Ali Tamur <tamur@google.com>
13867
13868 * dwarf2/read.c (dwarf2_name): Add null check.
13869
22b6cd70
TT
138702020-02-20 Tom Tromey <tom@tromey.com>
13871
13872 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13873 ">=", in binary search.
13874 (dwarf2_find_containing_comp_unit): New overload.
13875 (run_test): New self-test.
13876 (_initialize_dwarf2_read): Register new test.
13877
bd0cf5a6
NC
138782020-02-20 Nelson Chu <nelson.chu@sifive.com>
13879
13880 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13881 * riscv-tdep.h: Likewise.
13882 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13883 rv32-only CSR.
13884 * features/riscv/64bit-csr.xml: Regenerated.
13885
3f702acd
SDJ
138862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13887 Tom Tromey <tom@tromey.com>
13888
13889 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13890 of 'fputc_unfiltered'.
13891 (putchar_unfiltered): Call 'fputc_unfiltered'.
13892 (fputc_unfiltered): Call 'fputs_unfiltered'.
13893
d13c7322
AB
138942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13895
13896 * config.in: Regenerate.
13897 * configure: Regenerate.
13898 * configure.ac: Add --with-python-libdir option.
13899 * main.c: Use WITH_PYTHON_LIBDIR.
13900
869d8950
TT
139012020-02-19 Tom Tromey <tom@tromey.com>
13902
13903 * symtab.c (general_symbol_info::compute_and_set_names): Use
13904 obstack_strndup. Simplify call to symbol_set_demangled_name.
13905
298e9637
SM
139062020-02-19 Simon Marchi <simon.marchi@efficios.com>
13907
13908 * dwarf2/read.c (allocate_signatured_type_table,
13909 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13910 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13911 Remove objfile parameter, update all callers.
13912
08410482
DE
139132020-02-19 Doug Evans <dje@google.com>
13914
13915 PR rust/25535
13916 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13917 rust_enum_variant calculation.
13918
dfdeeca1
TT
139192020-02-19 Tom Tromey <tromey@adacore.com>
13920
13921 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13922
2ef5453b
TT
139232020-02-19 Tom Tromey <tromey@adacore.com>
13924
13925 * ada-lang.c (cache_symbol): Use obstack_strdup.
13926
9f1528a1
AB
139272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13928
13929 * configure: Regenerate.
13930
d3c22fa8
TT
139312020-02-19 Tom Tromey <tromey@adacore.com>
13932
13933 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13934 NULL check.
13935
bf84f706
MR
139362020-02-19 Maciej W. Rozycki <macro@wdc.com>
13937
13938 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13939
d1c9b20f
AB
139402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13941
13942 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13943 if GDBSERVER is not defined.
13944 (riscv_tdesc_cache): Likewise, also store const target_desc.
13945 (STATIC_IN_GDB): Define.
13946 (riscv_create_target_description): Update declaration with
13947 STATIC_IN_GDB.
13948 (riscv_lookup_target_description): New function, only define if
13949 GDBSERVER is not defined.
13950 * arch/riscv.h (riscv_create_target_description): Declare only
13951 when GDBSERVER is defined.
13952 (riscv_lookup_target_description): New declaration when GDBSERVER
13953 is not defined.
13954 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13955 (riscv_linux_read_features): ...this, and return
13956 riscv_gdbarch_features instead of target_desc.
13957 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13958 (riscv_linux_read_description): Rename to...
13959 (riscv_linux_read_features): ...this.
13960 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13961 Update to use riscv_gdbarch_features and
13962 riscv_lookup_target_description.
13963 * riscv-tdep.c (riscv_find_default_target_description): Use
13964 riscv_lookup_target_description instead of
13965 riscv_create_target_description.
13966
373d7ac0
SM
139672020-02-18 Simon Marchi <simon.marchi@efficios.com>
13968
13969 * valprint.c (generic_val_print_enum_1): When printing a flag
13970 enum with value 0 and there is no enumerator with value 0, print
13971 just "0" instead of "(unknown: 0x0)".
13972
b29a2df0
SM
139732020-02-18 Simon Marchi <simon.marchi@efficios.com>
13974
13975 * valprint.c (generic_val_print_enum_1): Print unknown part of
13976 flag enum in hex.
13977
6740f0cc
SM
139782020-02-18 Simon Marchi <simon.marchi@efficios.com>
13979
13980 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13981 flag enums to contain duplicate enumerators.
13982 * valprint.c (generic_val_print_enum_1): Update comment.
13983
edd45eb0
SM
139842020-02-18 Simon Marchi <simon.marchi@efficios.com>
13985
13986 * dwarf2/read.c: Include "count-one-bits.h".
13987 (update_enumeration_type_from_children): If an enumerator has
13988 multiple bits set, don't treat the enumeration as a "flag enum".
13989 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13990 of flag enums have 0 or 1 bit set.
13991
6d0cf446
BE
139922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13993
13994 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13995 conversion.
13996 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13997 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13998 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13999 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14000 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14001
7001c1b7
SM
140022020-02-18 Simon Marchi <simon.marchi@efficios.com>
14003
14004 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14005
fdb61c6c
SM
140062020-02-14 Simon Marchi <simon.marchi@efficios.com>
14007
14008 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14009 displaced_step_closure_up.
14010 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14011 (struct displaced_step_closure_up):
14012 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14013 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14014 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14015 Likewise.
14016 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14017 * gdbarch.c, gdbarch.h: Re-generate.
14018 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14019 displaced_step_closure_up.
14020 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14021 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14022 * infrun.h (displaced_step_closure_up): New type alias.
14023 (struct displaced_step_inferior_state) <step_closure>: Change
14024 type to displaced_step_closure_up.
14025 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14026 displaced_step_closure_up.
14027 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14028
a4a38eb4
TT
140292020-02-14 Tom Tromey <tom@tromey.com>
14030
14031 * minidebug.c (gnu_debug_key): New global.
14032 (find_separate_debug_file_in_section): Use it.
14033
e8217e61
SM
140342020-02-14 Simon Marchi <simon.marchi@efficios.com>
14035
14036 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14037 std::unique_ptr.
14038 * gdbarch.c: Re-generate.
14039 * gdbarch.h: Re-generate.
14040 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14041 change.
14042 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14043 type to std::unique_ptr.
14044 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14045 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14046 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14047 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14048 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14049 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14050 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14051 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14052 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14053
d8d83535
SM
140542020-02-14 Simon Marchi <simon.marchi@efficios.com>
14055
14056 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14057 std::unique_ptr.
14058 (displaced_step_clear): Rename to...
14059 (displaced_step_reset): ... this. Just call displaced->reset ().
14060 (displaced_step_clear_cleanup): Rename to...
14061 (displaced_step_reset_cleanup): ... this.
14062 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14063 (displaced_step_fixup): Likewise.
14064 (resume_1): Likewise.
14065 (handle_inferior_event): Restore child's memory before calling
14066 displaced_step_fixup on the parent.
14067 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14068 to std::unique_ptr.
14069 <step_closure>: Change type to std::unique_ptr.
14070
5f661e03
SM
140712020-02-14 Simon Marchi <simon.marchi@efficios.com>
14072
14073 * arm-tdep.c: Include count-one-bits.h.
14074 (cleanup_block_store_pc): Use count_one_bits.
14075 (cleanup_block_load_pc): Use count_one_bits.
14076 (arm_copy_block_xfer): Use count_one_bits.
14077 (thumb2_copy_block_xfer): Use count_one_bits.
14078 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14079 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14080 (thumb_get_next_pcs_raw): Use count_one_bits.
14081 (arm_get_next_pcs_raw): Use count_one_bits_l.
14082 * arch/arm.c (bitcount): Remove.
14083 * arch/arm.h (bitcount): Remove.
14084
8084e579
TT
140852020-02-14 Tom Tromey <tromey@adacore.com>
14086
14087 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14088 Update.
14089 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14090 * dwarf2/loc.c (call_site_find_chain_1): Return
14091 unique_xmalloc_ptr.
14092 (call_site_find_chain): Likewise.
14093
258bf0ee
RB
140942020-02-14 Richard Biener <rguenther@suse.de>
14095
14096 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14097 on expression with division operators.
14098
f98a8458
AKS
140992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14100
14101 * MAINTAINERS (Write After Approval): Adding myself.
14102
d1437c0e
TT
141032020-02-12 Tom Tromey <tom@tromey.com>
14104
14105 * event-loop.c (event_data, gdb_event, event_handler_func):
14106 Remove.
14107
3d4560f7
TT
141082020-02-12 Tom Tromey <tom@tromey.com>
14109
14110 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14111 (dwarf2_frame_objfile_data): Add comment.
14112 (find_comp_unit, set_comp_unit): New functions.
14113 (dwarf2_frame_find_fde): Use find_comp_unit.
14114 (dwarf2_build_frame_info): Use set_comp_unit.
14115
21982304
TT
141162020-02-12 Tom Tromey <tom@tromey.com>
14117
14118 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14119 (comp_unit): Don't initialize objfile.
14120 (execute_cfa_program): Add text_offset parameter.
14121 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14122 (dwarf2_frame_cache): Update.
14123 (dwarf2_build_frame_info): Don't set "objfile" member.
14124
4debb237
TT
141252020-02-12 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14128 (decode_frame_entry): Likewise.
14129 (dwarf2_build_frame_info): Update.
14130
0d404d44
TT
141312020-02-12 Tom Tromey <tom@tromey.com>
14132
14133 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14134 (decode_frame_entry_1): Use the comp_unit obstack.
14135
a7a3ae5c
TT
141362020-02-12 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/frame.c (struct comp_unit): Add initializers and
14139 constructor.
14140 (dwarf2_frame_objfile_data): Store a comp_unit.
14141 (dwarf2_frame_find_fde): Update.
14142 (dwarf2_build_frame_info): Use "new".
14143
a9d65418
TT
141442020-02-12 Tom Tromey <tom@tromey.com>
14145
14146 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14147 (dwarf2_fde_table): Typedef for std::vector.
14148 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14149 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14150 (decode_frame_entry): Update.
14151 (dwarf2_build_frame_info): Use "new".
14152
7559c217
CB
141532020-02-12 Christian Biesinger <cbiesinger@google.com>
14154
14155 * arm-tdep.c (arm_gdbarch_init): Update.
14156 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14157 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14158 have_neon, is_m>: Change to bool.
14159
aeefc73c
CB
141602020-02-12 Christian Biesinger <cbiesinger@google.com>
14161
14162 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14163
d27b8e5f
TT
141642020-02-12 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14167
cd5900f3
HD
141682020-02-12 Hannes Domani <ssbssa@yahoo.de>
14169
14170 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14171 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14172
f056b22b
TT
141732020-02-11 Tom Tromey <tom@tromey.com>
14174
14175 * psymtab.h: Update comment.
14176
f92ff6b5
TT
141772020-02-11 Tom Tromey <tom@tromey.com>
14178
14179 * gdb_obstack.h (struct auto_obstack): Use
14180 DISABLE_COPY_AND_ASSIGN.
14181
3fd6912b
TT
141822020-02-11 Tom Tromey <tom@tromey.com>
14183
14184 * dwarf2/frame.h (struct objfile): Don't forward declare.
14185
69ed9b74
CB
141862020-02-11 Christian Biesinger <cbiesinger@google.com>
14187
14188 * cris-tdep.c (cris_supply_gregset): Change signature to match
14189 what struct regset expects.
14190 (cris_regset): New struct.
14191 (fetch_core_registers): Remove.
14192 (cris_iterate_over_regset_sections): New function.
14193 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14194 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14195
bda874f6
CB
141962020-02-11 Christian Biesinger <cbiesinger@google.com>
14197
14198 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14199 registers.
14200
754e1564
CB
142012020-02-11 Christian Biesinger <cbiesinger@google.com>
14202
14203 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14204
8ddd8e0e
SM
142052020-02-11 Simon Marchi <simon.marchi@efficios.com>
14206
14207 * configure: Re-generate.
14208
898e7f60
SM
142092020-02-11 Simon Marchi <simon.marchi@efficios.com>
14210
14211 * configure: Re-generate.
14212
58df732b
SM
142132020-02-11 Simon Marchi <simon.marchi@efficios.com>
14214
14215 * acinclude: Update warning.m4 path.
14216 * warning.m4: Move to gdbsupport.
14217
da5bd37e
TT
142182020-02-11 Tom Tromey <tromey@adacore.com>
14219
14220 * remote.c (remote_console_output): Update.
14221 * printcmd.c (printf_command): Update.
14222 * event-loop.c (gdb_wait_for_event): Update.
14223 * linux-nat.c (sigchld_handler): Update.
14224 * remote-sim.c (gdb_os_write_stdout): Update.
14225 (gdb_os_flush_stdout): Update.
14226 (gdb_os_flush_stderr): Update.
14227 (gdb_os_write_stderr): Update.
14228 * exceptions.c (print_exception): Update.
14229 * remote-fileio.c (remote_fileio_func_read): Update.
14230 (remote_fileio_func_write): Update.
14231 * tui/tui.c (tui_enable): Update.
14232 * tui/tui-interp.c (tui_interp::init): Update.
14233 * utils.c (init_page_info): Update.
14234 (putchar_unfiltered, fputc_unfiltered): Update.
14235 (gdb_flush): Update.
14236 (emit_style_escape): Update.
14237 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14238 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14239 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14240 (stderr_file::write): Update.
14241 (stderr_file::puts): Update.
14242 * ui-file.h (ui_file_isatty, ui_file_write)
14243 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14244 (ui_file_puts): Don't declare.
14245
85f0dd3c
TV
142462020-02-10 Tom de Vries <tdevries@suse.de>
14247
14248 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14249 sentinel to char *.
14250
2e927613
TV
142512020-02-09 Tom de Vries <tdevries@suse.de>
14252
14253 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14254 filename if it matches "<artificial>".
14255
6bafc845
HD
142562020-02-09 Hannes Domani <ssbssa@yahoo.de>
14257
14258 * windows-tdep.c (struct enum_value_name): New struct.
14259 (create_enum): New function.
14260 (windows_get_siginfo_type): Create and use enum types.
14261
7928d571
HD
142622020-02-09 Hannes Domani <ssbssa@yahoo.de>
14263
14264 * NEWS: Mention $_siginfo support for Windows.
14265 * windows-nat.c (handle_exception): Set siginfo_er.
14266 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14267 (windows_xfer_siginfo): New function.
14268 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14269 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14270 (init_windows_gdbarch_data): New function.
14271 (get_windows_gdbarch_data): New function.
14272 (windows_get_siginfo_type): New function.
14273 (windows_init_abi): Register windows_get_siginfo_type.
14274 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14275
6751ebae
TT
142762020-02-08 Tom Tromey <tom@tromey.com>
14277
14278 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14279 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14280 <keep>: Declare method.
14281 <m_keep>: Remove member.
14282 <~cutu_reader>: Remove.
14283 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14284 (cutu_reader::cutu_reader): Update.
14285 (cutu_reader::keep): Rename from ~cutu_reader.
14286 (process_psymtab_comp_unit, build_type_psymtabs_1)
14287 (process_skeletonless_type_unit, load_partial_comp_unit)
14288 (load_full_comp_unit, dwarf2_read_addr_index)
14289 (read_signatured_type): Update.
14290
135f5437
TT
142912020-02-08 Tom Tromey <tom@tromey.com>
14292
14293 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14294 "want_partial_unit" parameter.
14295 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14296 Inline check for DW_TAG_partial_unit.
14297 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14298
9f66ff1c
TT
142992020-02-08 Tom Tromey <tom@tromey.com>
14300
14301 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14302 read.c.
14303 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14304 read.c.
14305
c8a7a66f
TT
143062020-02-08 Tom Tromey <tom@tromey.com>
14307
14308 * dwarf2/read.c (read_address): Move to comp-unit.c.
14309 (dwarf2_rnglists_process, dwarf2_ranges_process)
14310 (read_attribute_value, dwarf_decode_lines_1)
14311 (var_decode_location, decode_locdesc): Update.
14312 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14313 read.c. Remove "cu" parameter.
14314 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14315 method.
14316
8266302d
TT
143172020-02-08 Tom Tromey <tom@tromey.com>
14318
14319 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14320 (read_indirect_line_string): Update.
14321 * dwarf2/comp-unit.c (read_offset): Remove.
14322 (read_comp_unit_head): Update.
14323 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14324 method.
14325 (read_offset): Don't declare.
14326
4057dfde
TT
143272020-02-08 Tom Tromey <tom@tromey.com>
14328
14329 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14330 * dwarf2/read.c (struct comp_unit_head): Move to
14331 dwarf2/comp-unit.h.
14332 (enum class rcuh_kind): Move to comp-unit.h.
14333 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14334 (read_comp_unit_head, error_check_comp_unit_head)
14335 (read_and_check_comp_unit_head): Move to comp-unit.c.
14336 (read_offset, dwarf_unit_type_name): Likewise.
14337 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14338 (cutu_reader::cutu_reader, read_call_site_scope)
14339 (find_partial_die, follow_die_offset): Update.
14340 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14341
24aa364d
TT
143422020-02-08 Tom Tromey <tom@tromey.com>
14343
14344 * dwarf2/read.c (read_offset_1): Move to leb.c.
14345 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14346 (dwarf_decode_macro_bytes): Update.
14347 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14348 * dwarf2/leb.h (read_offset): Declare.
14349
2c7d5afc
TT
143502020-02-08 Tom Tromey <tom@tromey.com>
14351
14352 * dwarf2/read.c (dwarf2_section_size): Remove.
14353 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14354 Update.
14355 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14356
4075cb26
TT
143572020-02-08 Tom Tromey <tom@tromey.com>
14358
14359 * dwarf2/read.c (read_initial_length): Move to leb.c.
14360 * dwarf2/leb.h (read_initial_length): Declare.
14361 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14362 handle_nonstd parameter.
14363 * dwarf2/frame.c (read_initial_length): Remove.
14364 (decode_frame_entry_1): Update.
14365
09ba997f
TT
143662020-02-08 Tom Tromey <tom@tromey.com>
14367
14368 * dwarf2/loc.c (dwarf2_find_location_expression)
14369 (dwarf_evaluate_loc_desc::get_tls_address)
14370 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14371 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14372 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14373 (dwarf2_compile_property_to_c)
14374 (dwarf2_loc_desc_get_symbol_read_needs)
14375 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14376 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14377 (loclist_describe_location, loclist_tracepoint_var_ref)
14378 (loclist_generate_c_location): Update.
14379 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14380 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14381 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14382 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14383 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14384 (dwarf2_per_cu_data::addr_size)
14385 (dwarf2_per_cu_data::ref_addr_size)
14386 (dwarf2_per_cu_data::text_offset)
14387 (dwarf2_per_cu_data::addr_type): Now methods.
14388 (per_cu_header_read_in): Make per_cu "const".
14389 (dwarf2_version): Remove.
14390 (dwarf2_per_cu_data::int_type): Now a method.
14391 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14392 (set_die_type, read_array_type, read_subrange_index_type)
14393 (read_tag_string_type, read_subrange_type): Update.
14394 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14395 offset_size, ref_addr_size, text_offset, addr_type, version,
14396 objfile, int_type, addr_sized_int_type>: Declare methods.
14397
96c738c0
TT
143982020-02-08 Tom Tromey <tom@tromey.com>
14399
14400 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14401 Move earlier.
14402
8fdd972c
TT
144032020-02-08 Tom Tromey <tom@tromey.com>
14404
14405 * dwarf2/read.h (dwarf_line_debug): Declare.
14406 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14407 * dwarf2/read.c: Move line_header code to new files.
14408 (dwarf_line_debug): No longer static.
14409 * dwarf2/line-header.c: New file.
14410 * dwarf2/line-header.h: New file.
14411
03075812
TT
144122020-02-08 Tom Tromey <tom@tromey.com>
14413
14414 * dwarf2/read.c (struct line_header) <file_full_name,
14415 file_file_name>: Return unique_xmalloc_ptr.
14416 (line_header::file_file_name): Update.
14417 (line_header::file_full_name): Update.
14418 (dw2_get_file_names_reader): Update.
14419 (macro_start_file): Update.
14420
bb822404
TT
144212020-02-08 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2/read.c (struct line_header) <file_full_name,
14424 file_file_name>: Declare methods.
14425 (dw2_get_file_names_reader): Update.
14426 (file_file_name): Now a method.
14427 (file_full_name): Likewise.
14428 (macro_start_file): Update.
14429
009b64fc
TT
144302020-02-08 Tom Tromey <tom@tromey.com>
14431
14432 * dwarf2/read.c (dwarf_always_disassemble)
14433 (show_dwarf_always_disassemble): Move to loc.c.
14434 (_initialize_dwarf2_read): Move "always-disassemble" registration
14435 to loc.c.
14436 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14437 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14438 static.
14439 (show_dwarf_always_disassemble): Move from read.c.
14440 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14441
5895093f
TT
144422020-02-08 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14445 (create_quick_file_names_table): Return htab_up.
14446 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14447 Update.
14448 * dwarf2/read.h (struct dwarf2_per_objfile)
14449 <quick_file_names_table>: Now htab_up.
14450
b3b32279
TT
144512020-02-08 Tom Tromey <tom@tromey.com>
14452
14453 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14454
1d33d811
TT
144552020-02-08 Tom Tromey <tom@tromey.com>
14456
14457 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14458 Rewrite.
14459 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14460 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14461 (abbrev_table::abbrev_table): No longer inline.
14462 (ABBREV_HASH_SIZE): Remove.
14463 (abbrev_table::m_abbrevs): Now an htab_up.
14464
86de1d91
TT
144652020-02-08 Tom Tromey <tom@tromey.com>
14466
14467 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14468 (cutu_reader): Update.
14469 (build_type_psymtabs_1): Update.
14470 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14471 (abbrev_table::alloc_abbrev): Update.
14472 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14473 (abbrev_table::read): New static method, renamed from
14474 abbrev_table_read_table.
14475 (abbrev_table::alloc_abbrev)
14476 (abbrev_table::add_abbrev): Now private.
14477 (abbrev_table::abbrev_table): Now private.
14478 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14479
0335378b
TT
144802020-02-08 Tom Tromey <tom@tromey.com>
14481
14482 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14483 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14484 htab_up.
14485
48b490f2
TT
144862020-02-08 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14489 htab_up.
14490 (lookup_dwo_unit_in_dwp): Update.
14491 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14492 on obstack.
14493
bc68fb19
TT
144942020-02-08 Tom Tromey <tom@tromey.com>
14495
14496 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14497 obstack.
14498
d15acc42
TT
144992020-02-08 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14502 line_header_hash.
14503 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14504 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14505 Change type to htab_up.
14506
eaa5fa8b
TT
145072020-02-08 Tom Tromey <tom@tromey.com>
14508
14509 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14510 htab_up. Don't allocate on obstack.
14511 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14512 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14513 Change type to htab_up.
14514
b0b6a987
TT
145152020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14518 Change type to htab_up.
14519 * dwarf2/read.c (create_signatured_type_table_from_index)
14520 (create_signatured_type_table_from_debug_names)
14521 (create_all_type_units, add_type_unit)
14522 (lookup_dwo_signatured_type, lookup_signatured_type)
14523 (process_skeletonless_type_unit): Update.
14524 (create_debug_type_hash_table, create_debug_types_hash_table):
14525 Change type of types_htab.
14526 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14527 htab_up. Don't allocate on obstack.
14528 (create_cus_hash_table): Change type of cus_htab parameter.
14529 (struct dwo_file) <cus, tus>: Now htab_up.
14530 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14531 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14532 (queue_and_load_all_dwo_tus): Update.
14533 * dwarf2/index-write.c (write_gdbindex): Update.
14534 (write_debug_names): Update.
14535
39856def
TT
145362020-02-08 Tom Tromey <tom@tromey.com>
14537
14538 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14539 dwarf2/read.c. Remove "next" member. Add constructor ntad
14540 destructor.
14541 (struct dwarf2_per_objfile) <queue>: New member.
14542 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14543 dwarf2/read.h.
14544 (dwarf2_queue, dwarf2_queue_tail): Remove.
14545 (class dwarf2_queue_guard): Add parameter to constructor. Use
14546 DISABLE_COPY_AND_ASSIGN.
14547 <m_per_objfile>: New member.
14548 <~dwarf2_queue_guard>: Rewrite.
14549 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14550 Update.
14551 (~dwarf2_queue_item): New.
14552
3e225074
TT
145532020-02-08 Tom Tromey <tom@tromey.com>
14554
14555 * dwarf2/read.c (struct die_info) <has_children>: New member.
14556 (dw2_get_file_names_reader): Remove has_children.
14557 (dw2_get_file_names): Update.
14558 (read_cutu_die_from_dwo): Remove has_children.
14559 (cutu_reader::init_tu_and_read_dwo_dies)
14560 (cutu_reader::cutu_reader): Update.
14561 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14562 Remove has_children.
14563 (build_type_psymtabs_1, process_skeletonless_type_unit)
14564 (load_partial_comp_unit, load_full_comp_unit): Update.
14565 (create_dwo_cu_reader): Remove has_children.
14566 (create_cus_hash_table, read_die_and_children): Update.
14567 (read_full_die_1,read_full_die): Remove has_children.
14568 (read_signatured_type): Update.
14569 (class cutu_reader) <has_children>: Remove.
14570
82ca8957
TT
145712020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/expr.c: Rename from dwarf2expr.c.
14574 * dwarf2/expr.h: Rename from dwarf2expr.h.
14575 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14576 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14577 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14578 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14579 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14580 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14581 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14582 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14583 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14584 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14585 * dwarf2/loc.c: Rename from dwarf2loc.c.
14586 * dwarf2/loc.h: Rename from dwarf2loc.h.
14587 * dwarf2/read.c: Rename from dwarf2read.c.
14588 * dwarf2/read.h: Rename from dwarf2read.h.
14589 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14590 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14591 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14592 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14593 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14594 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14595 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14596 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14597 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14598 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14599 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14600 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14601 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14602 Update.
14603 * Makefile.in (COMMON_SFILES): Update.
14604 (HFILES_NO_SRCDIR): Update.
14605
9e35d499
TT
146062020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14609 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14610
1eba2311
TT
146112020-02-08 Tom Tromey <tom@tromey.com>
14612
14613 * dwarf2read.h (struct die_info): Don't declare.
14614
e41c2da2
TT
146152020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2read.h (die_info_ptr): Remove typedef.
14618
4fc6c0d5
TT
146192020-02-08 Tom Tromey <tom@tromey.com>
14620
14621 * dwarf2read.c (read_call_site_scope)
14622 (handle_data_member_location, dwarf2_add_member_fn)
14623 (mark_common_block_symbol_computed, read_common_block)
14624 (attr_to_dynamic_prop, partial_die_info::read)
14625 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14626 (dwarf2_symbol_mark_computed, set_die_type): Update.
14627 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14628 method.
14629 (attr_form_is_block): Don't declare.
14630 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14631
cd6c91b4
TT
146322020-02-08 Tom Tromey <tom@tromey.com>
14633
14634 * dwarf2read.c (dwarf2_find_base_address, )
14635 (read_call_site_scope, rust_containing_type)
14636 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14637 (handle_data_member_location, dwarf2_add_member_fn)
14638 (get_alignment, read_structure_type, process_structure_scope)
14639 (mark_common_block_symbol_computed, read_common_block)
14640 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14641 (partial_die_info::read, read_attribute_value, new_symbol)
14642 (lookup_die_type, dwarf2_get_ref_die_offset)
14643 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14644 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14645 (dwarf2_symbol_mark_computed): Update.
14646 * dwarf2/attribute.h (struct attribute) <value_as_address,
14647 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14648 methods.
14649 (value_as_address, attr_form_is_section_offset)
14650 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14651 * dwarf2/attribute.c (attribute::value_as_address)
14652 (attribute::form_is_section_offset, attribute::form_is_constant)
14653 (attribute::form_is_ref): Now methods.
14654
162dce55
TT
146552020-02-08 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2read.c (struct attribute, DW_STRING)
14658 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14659 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14660 (attr_form_is_block, attr_form_is_section_offset)
14661 (attr_form_is_constant, attr_form_is_ref): Move.
14662 * dwarf2/attribute.h: New file.
14663 * dwarf2/attribute.c: New file, from dwarf2read.c.
14664 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14665
3054dd54
TT
146662020-02-08 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14669 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14670 Move.
14671 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14672 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14673 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14674 abbrev.c.
14675 * dwarf2/abbrev.h: New file.
14676 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14677 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14678
96b79293
TT
146792020-02-08 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14682 (dwarf2_section_size, dwarf2_get_section_info)
14683 (create_signatured_type_table_from_debug_names)
14684 (create_addrmap_from_aranges, read_debug_names_from_section)
14685 (get_gdb_index_contents_from_section, read_comp_unit_head)
14686 (error_check_comp_unit_head, read_abbrev_offset)
14687 (create_debug_type_hash_table, init_cu_die_reader)
14688 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14689 (read_comp_units_from_section, create_cus_hash_table)
14690 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14691 (create_dwp_v2_section, dwarf2_rnglists_process)
14692 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14693 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14694 (read_indirect_string_from_dwz, read_addr_index_1)
14695 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14696 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14697 (fill_in_loclist_baton): Update.
14698 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14699 get_containing_section, get_bfd_owner, get_bfd_section,
14700 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14701 (dwarf2_read_section, get_section_name, get_section_file_name)
14702 (get_containing_section, get_section_bfd_owner)
14703 (get_section_bfd_section, get_section_name, get_section_file_name)
14704 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14705 declare.
14706 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14707 (dwarf2_section_info::get_bfd_owner)
14708 (dwarf2_section_info::get_bfd_section)
14709 (dwarf2_section_info::get_name)
14710 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14711 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14712 (dwarf2_section_info::read): Now methods.
14713 * dwarf-index-write.c (class debug_names): Update.
14714
2c86cff9
TT
147152020-02-08 Tom Tromey <tom@tromey.com>
14716
14717 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14718 Move to dwarf2/section.h.
14719 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14720 (get_section_bfd_section, get_section_name)
14721 (get_section_file_name, get_section_id, get_section_flags)
14722 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14723 dwarf2/section.c.
14724 * dwarf2/section.h: New file.
14725 * dwarf2/section.c: New file, from dwarf2read.c.
14726 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14727
f4382c45
TT
147282020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14731 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14732 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14733 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14734 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14735 * dwarf2/leb.h: New file, from dwarf2read.c.
14736 * dwarf2/leb.c: New file, from dwarf2read.c.
14737 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14738 Remove.
14739 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14740 (COMMON_SFILES): Add dwarf2/leb.c.
14741
01840b7a
JB
147422020-02-08 Joel Brobecker <brobecker@adacore.com>
14743
14744 GDB 9.1 released.
14745
dfcb27e4
IB
147462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14747
14748 PR gdb/25190:
aac66a4c
SM
14749 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14750 * gdb/remote.c (remote_console_output): Update.
14751 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14752 (ui_file_puts): ...this.
14753 * gdb/ui-file.h (ui_file_puts): Add declaration.
14754 * gdb/utils.c (emit_style_escape): Update.
14755 (flush_wrap_buffer): Update.
14756 (fputs_maybe_filtered): Update.
14757 (fputs_unfiltered): Add function.
dfcb27e4 14758
faa17681
IB
147592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14760
aac66a4c
SM
14761 * gdb/event-loop.c (gdb_wait_for_event): Update.
14762 * gdb/printcmd.c (printf_command): Update.
14763 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14764 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14765 (gdb_os_flush_stderr): Update.
14766 * gdb/remote.c (remote_console_output): Update.
14767 * gdb/ui-file.c (gdb_flush): Rename to...
14768 (ui_file_flush): ...this.
14769 (stderr_file::write): Update.
14770 (stderr_file::puts): Update.
14771 * gdb/ui-file.h (gdb_flush): Rename to...
14772 (ui_file_flush): ...this.
14773 * gdb/utils.c (gdb_flush): Add function.
14774 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14775
5abbbe1d
TT
147762020-02-07 Tom Tromey <tromey@adacore.com>
14777
14778 PR breakpoints/24915:
14779 * source.c (find_and_open_source): Do not check basenames_may_differ.
14780
919adfe8
TT
147812020-02-07 Tom Tromey <tom@tromey.com>
14782
14783 * README: Update gdbserver documentation.
14784 * gdbserver: Move to top level.
14785 * configure.tgt (build_gdbserver): Remove.
14786 * configure.ac: Remove --enable-gdbserver.
14787 * configure: Rebuild.
14788 * Makefile.in (distclean): Don't mention gdbserver.
14789
1d5d29e7
SV
147902020-02-06 Shahab Vahedi <shahab@synopsys.com>
14791
14792 * source-cache.c (source_cache::ensure): Surround
14793 get_plain_source_lines with a try/catch.
14794 (source_cache::get_line_charpos): Get rid of try/catch
14795 and only check for the return value of "ensure".
14796 * tui/tui-source.c (tui_source_window::set_contents):
14797 Simplify "nlines" calculation.
14798
6eb1129c
SV
147992020-02-06 Shahab Vahedi <shahab@synopsys.com>
14800
14801 * MAINTAINERS (Write After Approval): Add myself.
14802
c6a42d11
CB
148032020-02-05 Christian Biesinger <cbiesinger@google.com>
14804
14805 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14806 function call.
14807
c8ecdda6
CB
148082020-02-05 Christian Biesinger <cbiesinger@google.com>
14809
14810 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14811
f6480e70
MR
148122020-02-05 Maciej W. Rozycki <macro@wdc.com>
14813
14814 * nat/riscv-linux-tdesc.h: New file.
14815 * nat/riscv-linux-tdesc.c: New file, taking code from...
14816 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14817 ... here.
14818 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14819 NATDEPFILES.
14820
dcc9fbc6
AB
148212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14822
14823 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14824 we don't set the fake simulator ptid to the null_ptid.
14825
719546c4
SM
148262020-02-03 Simon Marchi <simon.marchi@efficios.com>
14827
14828 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14829 * gdbthread.h (class thread_info) <resumed>: Likewise.
14830 * infrun.c (resume_1): Likewise.
14831 (proceed): Likewise.
14832 (infrun_thread_stop_requested): Likewise.
14833 (stop_all_threads): Likewise.
14834 (handle_inferior_event): Likewise.
14835 (restart_threads): Likewise.
14836 (finish_step_over): Likewise.
14837 (keep_going_stepped_thread): Likewise.
14838 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14839 (linux_handle_extended_wait): Likewise.
14840 * record-btrace.c (get_thread_current_frame_id): Likewise.
14841 * record-full.c (record_full_wait_1): Likewise.
14842 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14843 * target.c (target_resume): Likewise.
14844 * thread.c (set_running_thread): Likewise.
14845
e409c542
AKS
148462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14847
14848 * f-valprint.c (f77_print_array_1): Changed datatype of index
14849 variable to LONGEST from int to enable it to contain bound
14850 values correctly.
14851
ee98c0da
MR
148522020-02-03 Maciej W. Rozycki <macro@wdc.com>
14853
14854 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14855 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14856 offsets according to FLEN determined.
14857 (riscv_linux_nat_target::read_description): Determine FLEN
14858 dynamically.
14859 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14860 according to FLEN determined.
14861 (riscv_linux_nat_target::store_registers): Likewise.
14862
aa66aac4
SV
148632020-02-01 Shahab Vahedi <shahab@synopsys.com>
14864
14865 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14866 when reg->group is empty and reggroup is not.
14867
fd9faca8
TT
148682020-01-31 Tom Tromey <tromey@adacore.com>
14869
14870 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14871 Call beneath target's mourn_inferior after unpushing.
14872
42330a68
AB
148732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14874
14875 PR tui/9765
14876 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14877 have enough lines to fill the screen, still return the lowest
14878 address we found.
14879
7a27a45b
AB
148802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14881
14882 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14883 '-', '<', and '>' commands.
14884
c47f70e2
PA
148852020-01-29 Pedro Alves <palves@redhat.com>
14886 Sergio Durigan Junior <sergiodj@redhat.com>
14887
14888 * infcmd.c (construct_inferior_arguments): Assert that
14889 'argc' is greater than 0.
14890
5133a315
LM
148912020-01-29 Luis Machado <luis.machado@linaro.org>
14892
14893 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14894 (BRK_INSN_MASK): Define to 0xd4200000.
14895 (aarch64_program_breakpoint_here_p): New function.
14896 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14897 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14898 breakpoint.c.
14899 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14900 breakpoint.h
14901 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14902 call gdbarch_program_breakpoint_here_p.
14903 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14904 default_program_breakpoint_here_p, changed return type to bool and
14905 simplified.
14906 * breakpoint.h (program_breakpoint_here): Moved prototype to
14907 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14908 return type to bool.
14909 * gdbarch.c: Regenerate.
14910 * gdbarch.h: Regenerate.
14911 * gdbarch.sh (program_breakpoint_here_p): New method.
14912 * infrun.c (handle_signal_stop): Call
14913 gdbarch_program_breakpoint_here_p.
14914
168f8c6b
TT
149152020-01-26 Tom Tromey <tom@tromey.com>
14916
14917 * ctfread.c (struct ctf_fp_info): Reindent.
14918 (_initialize_ctfread): Remove.
14919
128a391f
TT
149202020-01-26 Tom Tromey <tom@tromey.com>
14921
14922 * psymtab.c (partial_map_expand_apply)
14923 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14924 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14925 (psym_print_stats, psym_expand_symtabs_for_function)
14926 (psym_map_symbol_filenames, psym_map_matching_symbols)
14927 (psym_expand_symtabs_matching)
14928 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14929 (maintenance_check_psymtabs): Use new methods.
14930 * psympriv.h (struct partial_symtab) <readin_p,
14931 get_compunit_symtab>: New methods.
14932 <readin, compunit_symtab>: Remove members.
14933 (struct standard_psymtab): New.
14934 (struct legacy_psymtab): Derive from standard_psymtab.
14935 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14936 standard_psymtab.
14937 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14938
0494dbec
TT
149392020-01-26 Tom Tromey <tom@tromey.com>
14940
14941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14942 read_dependencies. Add assert.
14943 * psymtab.c (partial_symtab::read_dependencies): New method.
14944 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14945 method.
14946 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14947 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14948 read_dependencies.
14949 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14950 Add assert.
14951
8566b89b
TT
149522020-01-26 Tom Tromey <tom@tromey.com>
14953
14954 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14955 Call expand_psymtab.
14956 (xcoff_read_symtab): Call expand_psymtab.
14957 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14958 legacy_expand_psymtab.
14959 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14960 method.
14961 (struct legacy_psymtab) <expand_psymtab>: Implement.
14962 <legacy_expand_psymtab>: New member.
14963 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14964 (parse_partial_symbols): Set legacy_expand_psymtab.
14965 (psymtab_to_symtab_1): Change argument order. Call
14966 expand_psymtab.
14967 (new_psymtab): Set legacy_expand_psymtab.
14968 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14969 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14970 expand_psymtab.
14971 (dwarf2_psymtab::expand_psymtab): Rename from
14972 psymtab_to_symtab_1. Call expand_psymtab.
14973 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14974 (dbx_end_psymtab): Likewise.
14975 (dbx_psymtab_to_symtab_1): Change argument order. Call
14976 expand_psymtab.
14977 (dbx_read_symtab): Call expand_psymtab.
14978 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14979 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14980 (ctf_psymtab::read_symtab): Call expand_psymtab.
14981
077cbab2
TT
149822020-01-26 Tom Tromey <tom@tromey.com>
14983
14984 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14985 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14986 messages.
14987 * mdebugread.c (mdebug_read_symtab): Remove prints.
14988 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14989 assert.
14990 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14991
891813be
TT
149922020-01-26 Tom Tromey <tom@tromey.com>
14993
14994 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14995 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14996 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14997 legacy_symtab.
14998 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14999 * psymtab.c (psymtab_to_symtab): Call method.
15000 (dump_psymtab): Update.
15001 * psympriv.h (struct partial_symtab): Add virtual destructor.
15002 <read_symtab>: New method.
15003 (struct legacy_symtab): New.
15004 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15005 (struct pst_map) <pst>: Now a legacy_psymtab.
15006 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15007 (new_psymtab): Use legacy_psymtab.
15008 * dwarf2read.h (struct dwarf2_psymtab): New.
15009 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15010 * dwarf2read.c (dwarf2_create_include_psymtab)
15011 (dwarf2_build_include_psymtabs, create_type_unit_group)
15012 (create_partial_symtab, process_psymtab_comp_unit_reader)
15013 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15014 (set_partial_user): Use dwarf2_psymtab.
15015 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15016 (psymtab_to_symtab_1, process_full_comp_unit)
15017 (process_full_type_unit, dwarf2_ranges_read)
15018 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15019 (dwarf_decode_lines): Use dwarf2_psymtab.
15020 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15021 (add_address_entry_worker, write_one_signatured_type)
15022 (recursively_count_psymbols, recursively_write_psymbols)
15023 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15024 (write_debug_names): Likewise.
15025 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15026 <pst>: Now a legacy_psymtab.
15027 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15028 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15029 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15030 * ctfread.c (struct ctf_psymtab): New.
15031 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15032 ctf_psymtab.
15033 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15034 (create_partial_symtab): Return a ctf_psymtab.
15035 (scan_partial_symbols): Update.
15036
c3693a1d
TT
150372020-01-26 Tom Tromey <tom@tromey.com>
15038
15039 * xcoffread.c (xcoff_start_psymtab): Use new.
15040 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15041 renamed from start_psymtab_common.
15042 * psympriv.h (struct partial_symtab): Add new constructor.
15043 (start_psymtab_common): Don't declare.
15044 * mdebugread.c (parse_partial_symbols): Use new.
15045 * dwarf2read.c (create_partial_symtab): Use new.
15046 * dbxread.c (start_psymtab): Use new.
15047 * ctfread.c (create_partial_symtab): Use new.
15048
32caafd0
TT
150492020-01-26 Tom Tromey <tom@tromey.com>
15050
15051 * xcoffread.c (xcoff_end_psymtab): Use new.
15052 * psymtab.c (start_psymtab_common): Use new.
15053 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15054 Update.
15055 * psympriv.h (struct partial_symtab): Add parameters to
15056 constructor. Don't inline.
15057 (allocate_psymtab): Don't declare.
15058 * mdebugread.c (new_psymtab): Use new.
15059 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15060 * dbxread.c (dbx_end_psymtab): Use new.
15061
abaa2f23
TT
150622020-01-26 Tom Tromey <tom@tromey.com>
15063
15064 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15065 allocate_psymtab. Update documentation.
15066 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15067 allocate_psymtab. Do not use new.
15068 (allocate_psymtab): Use new. Update.
15069
6d94535f
TT
150702020-01-26 Tom Tromey <tom@tromey.com>
15071
15072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15073 * psymtab.c (psym_print_stats): Update.
15074 * psympriv.h (struct partial_symtab) <readin,
15075 psymtabs_addrmap_supported, anonymous>: Now bool.
15076 * mdebugread.c (psymtab_to_symtab_1): Update.
15077 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15078 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15079 (process_full_comp_unit, process_full_type_unit): Update.
15080 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15081 * ctfread.c (psymtab_to_symtab): Update.
15082
6f17252b
TT
150832020-01-26 Tom Tromey <tom@tromey.com>
15084
15085 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15086 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15087 * psymtab.c (psymtab_storage): Delete psymtabs.
15088 (psymtab_storage::allocate_psymtab): Use new.
15089 (psymtab_storage::discard_psymtab): Use delete.
15090 * psympriv.h (struct partial_symtab): Add constructor and
15091 initializers.
15092
f6f1cebc
TT
150932020-01-26 Tom Tromey <tom@tromey.com>
15094
15095 * machoread.c: Do not include psympriv.h.
15096
e47e48f6
PW
150972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15098
15099 * NEWS: Mention the new option and the set/show commands.
15100
a2fedca9
PW
151012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15102
15103 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15104 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15105 (validate_exec_file): New variables, enums, functions.
15106 (exec_file_locate_attach, print_section_info): Style the filenames.
15107 (_initialize_exec): Install show_exec_file_mismatch_command and
15108 set_exec_file_mismatch_command.
15109 * gdbcore.h (validate_exec_file): Declare.
15110 * infcmd.c (attach_command): Call validate_exec_file.
15111 * remote.c ( remote_target::remote_add_inferior): Likewise.
15112
7ffa82e1
AB
151132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15114
15115 * frame.c (find_frame_sal): Move call to get_next_frame into more
15116 inner scope.
15117 * inline-frame.c (inilne_state) <inline_state>: Update argument
15118 types.
15119 (inilne_state) <skipped_symbol>: Rename to...
15120 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15121 (skip_inline_frames): Build vector of skipped symbols and use this
15122 to reate the inline_state.
15123 (inline_skipped_symbol): Add a comment and some assertions, fetch
15124 skipped symbol from the list.
15125
3d92a3e3
AB
151262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15127
15128 * buildsym.c (lte_is_less_than): Delete.
15129 (buildsym_compunit::end_symtab_with_blockvector): Create local
15130 lambda function to sort line table entries, and use
15131 std::stable_sort instead of std::sort.
15132 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15133 markers when looking for a previous line.
15134
94a72be7
AB
151352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15136
15137 * dwarf2read.c (lnp_state_machine::record_line): Include
15138 end_sequence parameter in debug print out. Record the line if we
15139 are at an end_sequence marker even if it's not the start of a
15140 statement.
15141 * symmisc.c (maintenance_print_one_line_table): Print end of
15142 sequence markers with 'END' not '0'.
15143
53af73bf
PA
151442020-01-24 Pedro Alves <palves@redhat.com>
15145
15146 PR gdb/25410
15147 * thread.c (scoped_restore_current_thread::restore): Use
15148 switch_to_inferior_no_thread.
15149 * exec.c: Include "progspace-and-thread.h".
15150 (add_target_sections, remove_target_sections):
15151 scoped_restore_current_pspace_and_thread instead of
15152 scoped_restore_current_thread.
15153 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15154 and aspace to the inferior before calling clone_program_space.
15155 Remove stale comment.
15156
3050c6f4
CB
151572020-01-24 Christian Biesinger <cbiesinger@google.com>
15158
15159 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15160 (arm_netbsd_nat_target::fetch_registers): ...this.
15161 (arm_nbsd_nat_target::store_registers): Rename to...
15162 (arm_netbsd_nat_target::store_registers): ...this.
15163
73685c7e
CB
151642020-01-24 Christian Biesinger <cbiesinger@google.com>
15165
15166 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15167 register_t.
15168
89203d40
CB
151692020-01-24 Christian Biesinger <cbiesinger@google.com>
15170
15171 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15172 Update comment.
15173 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15174 Likewise.
15175 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15176 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15177 the correct replacement (iterate_over_regset_sections).
15178 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15179 Update comment.
15180
1ba1ac88
AB
151812020-01-24 Graham Markall <graham.markall@embecosm.com>
15182
15183 PR gdb/23718
15184 * gdb/python/python.c (execute_gdb_command): Call
15185 async_enable_stdin in catch block.
15186
f3364a6d
AB
151872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15188
15189 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15190 SWITCH_THRU_ALL_UIS.
15191
733d0a67
AB
151922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15193
15194 PR tui/9765
15195 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15196 comment, add extra parameter, and update to store previous symbol
15197 when appropriate.
15198 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15199 add extra parameter.
15200 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15201 remove unneeded parameter, add try/catch around gdb_print_insn,
15202 rewrite to add items to asm_lines vector.
15203 (tui_find_backward_disassembly_start_address): New function.
15204 (tui_find_disassembly_address): Updated throughout.
15205 (tui_disasm_window::set_contents): Update for changes to
15206 tui_disassemble.
15207 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15208 number of lines to scroll.
15209
b3b3bada
SM
152102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15211
15212 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15213 (SECT_OFF_DATA): Likewise.
15214 (SECT_OFF_RODATA): Likewise.
15215 (SECT_OFF_TEXT): Likewise.
15216 (SECT_OFF_BSS): Likewise.
15217 (struct objfile) <text_section_offset, data_section_offset>: New
15218 methods.
15219 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15220 objfile::text_section_offset.
15221 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15222 * coffread.c (coff_symtab_read): Likewise.
15223 (enter_linenos): Likewise.
15224 (process_coff_symbol): Likewise.
15225 * ctfread.c (get_objfile_text_range): Likewise.
15226 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15227 Use objfile::data_section_offset.
15228 * dwarf2-frame.c (execute_cfa_program): Use
15229 objfile::text_section_offset.
15230 (dwarf2_frame_find_fde): Likewise.
15231 * dwarf2read.c (create_addrmap_from_index): Likewise.
15232 (create_addrmap_from_aranges): Likewise.
15233 (dw2_find_pc_sect_compunit_symtab): Likewise.
15234 (process_psymtab_comp_unit_reader): Likewise.
15235 (add_partial_symbol): Likewise.
15236 (add_partial_subprogram): Likewise.
15237 (process_full_comp_unit): Likewise.
15238 (read_file_scope): Likewise.
15239 (read_func_scope): Likewise.
15240 (read_lexical_block_scope): Likewise.
15241 (read_call_site_scope): Likewise.
15242 (dwarf2_rnglists_process): Likewise.
15243 (dwarf2_ranges_process): Likewise.
15244 (dwarf2_ranges_read): Likewise.
15245 (dwarf_decode_lines_1): Likewise.
15246 (new_symbol): Likewise.
15247 (dwarf2_fetch_die_loc_sect_off): Likewise.
15248 (dwarf2_per_cu_text_offset): Likewise.
15249 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15250 * hppa-tdep.c (read_unwind_info): Likewise.
15251 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15252 * psympriv.h (struct partial_symtab): Likewise.
15253 * psymtab.c (find_pc_sect_psymtab): Likewise.
15254 * solib-svr4.c (enable_break): Likewise.
15255 * stap-probe.c (relocate_address): Use
15256 objfile::data_section_offset.
15257 * xcoffread.c (enter_line_range): Use
15258 objfile::text_section_offset.
15259 (read_xcoff_symtab): Likewise.
15260
ab53f382
SM
152612020-01-23 Simon Marchi <simon.marchi@efficios.com>
15262
15263 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15264 declaration to narrower scopes.
15265
e7eee665
SM
152662020-01-23 Simon Marchi <simon.marchi@efficios.com>
15267
15268 * darwin-nat.h (struct darwin_exception_msg, enum
15269 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15270 Move up.
15271 (class darwin_nat_target) <wait_1, check_new_threads,
15272 decode_exception_message, decode_message, stop_inferior,
15273 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15274 * darwin-nat.c (darwin_check_new_threads): Rename to...
15275 (darwin_nat_target::check_new_threads): ... this.
15276 (darwin_suspend_inferior_it): Remove.
15277 (darwin_decode_exception_message): Rename to...
15278 (darwin_nat_target::decode_exception_message): ... this.
15279 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15280 (darwin_decode_message): Rename to...
15281 (darwin_nat_target::decode_message): ... this.
15282 (cancel_breakpoint): Rename to...
15283 (darwin_nat_target::cancel_breakpoint): ... this.
15284 (darwin_wait): Rename to...
15285 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15286 instead of iterate_over_inferiors.
15287 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15288 (darwin_stop_inferior): Rename to...
15289 (darwin_nat_target::stop_inferior): ... this.
15290 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15291 (darwin_init_thread_list): Rename to...
15292 (darwin_nat_target::init_thread_list): ... this.
15293 (darwin_ptrace_him): Rename to...
15294 (darwin_nat_target::ptrace_him): ... this.
15295 (darwin_nat_target::create_inferior): Pass lambda function to
15296 fork_inferior.
15297 (darwin_nat_target::detach): Call stop_inferior instead of
15298 darwin_stop_inferior.
15299 * fork-inferior.h (fork_inferior): Change init_trace_fun
15300 parameter to gdb::function_view.
15301 * fork-inferior.c (fork_inferior): Likewise.
15302
c162ed3e
HD
153032020-01-23 Hannes Domani <ssbssa@yahoo.de>
15304
15305 * i386-cygwin-tdep.c (core_process_module_section): Update.
15306 * windows-nat.c (struct lm_info_windows): Add text_offset.
15307 (windows_xfer_shared_libraries): Update.
15308 * windows-tdep.c (windows_xfer_shared_library):
15309 Add text_offset_cached argument.
15310 * windows-tdep.h (windows_xfer_shared_library): Update.
15311
a1237872
SM
153122020-01-21 Simon Marchi <simon.marchi@efficios.com>
15313
15314 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15315
b3ee6dd9
SM
153162020-01-21 Simon Marchi <simon.marchi@efficios.com>
15317
15318 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15319 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15320 replace with range-based for.
15321 (gdbsim_interrupt_inferior): Remove.
15322 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15323 with a range-based for. Inline code from
15324 gdbsim_interrupt_inferior.
15325
f9fac3c8
SM
153262020-01-21 Simon Marchi <simon.marchi@efficios.com>
15327
15328 * infrun.c (proceed): Fix indentation.
15329
f6474de9
TT
153302020-01-21 Tom Tromey <tromey@adacore.com>
15331
15332 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15333 * python/python.c (python_extension_ops): Update.
15334 (gdbpy_colorize): New function.
15335 * python/lib/gdb/__init__.py (colorize): New function.
15336 * extension.h (ext_lang_colorize): Declare.
15337 * extension.c (ext_lang_colorize): New function.
15338 * extension-priv.h (struct extension_language_ops) <colorize>: New
15339 member.
15340 * cli/cli-style.c (_initialize_cli_style): Update help text.
15341
f0c702d4
LM
153422020-01-21 Luis Machado <luis.machado@linaro.org>
15343
15344 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15345 <cond>: Change type to bool.
15346 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15347 (aarch64_displaced_step_cb): Likewise.
15348 (aarch64_displaced_step_tb): Likewise.
15349
1ab139e5
LM
153502020-01-21 Luis Machado <luis.machado@linaro.org>
15351
15352 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15353 output.
15354
0c271889
LM
153552020-01-21 Luis Machado <luis.machado@linaro.org>
15356
15357 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15358 <pc_adjust>: Adjust the documentation.
15359 (aarch64_displaced_step_fixup): Check if PC really moved before
15360 adjusting it.
15361
4d89c1c7
TT
153622020-01-19 Tom Tromey <tom@tromey.com>
15363
15364 * disasm.c (~gdb_disassembler): New destructor.
15365 (gdb_buffered_insn_length): Call disassemble_free_target.
15366 * disasm.h (class gdb_disassembler): Declare destructor. Use
15367 DISABLE_COPY_AND_ASSIGN.
15368
c0ab21c2
TT
153692020-01-19 Tom Tromey <tom@tromey.com>
15370
15371 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15372 (die_reader_func_ftype): Remove.
15373 (cutu_reader): New class.
15374 (dw2_get_file_names_reader): Remove "data" parameter.
15375 (dw2_get_file_names): Use cutu_reader.
15376 (create_debug_type_hash_table): Update.
15377 (read_cutu_die_from_dwo): Update comment.
15378 (lookup_dwo_unit): Add dwo_name parameter.
15379 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15380 die_reader_func_ftype and data parameters.
15381 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15382 Remove die_reader_func_ftype and data parameters.
15383 (~cutu_reader): New; from init_cutu_and_read_dies.
15384 (cutu_reader::cutu_reader): Rename from
15385 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15386 and data parameters.
15387 (init_cutu_and_read_dies_simple): Remove.
15388 (struct process_psymtab_comp_unit_data): Remove.
15389 (process_psymtab_comp_unit_reader): Remove data parameter; add
15390 want_partial_unit and pretend_language parameters.
15391 (process_psymtab_comp_unit): Use cutu_reader.
15392 (build_type_psymtabs_reader): Remove data parameter.
15393 (build_type_psymtabs_1): Use cutu_reader.
15394 (process_skeletonless_type_unit): Likewise.
15395 (load_partial_comp_unit_reader): Remove.
15396 (load_partial_comp_unit): Use cutu_reader.
15397 (load_full_comp_unit_reader): Remove.
15398 (load_full_comp_unit): Use cutu_reader.
15399 (struct create_dwo_cu_data): Remove.
15400 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15401 dwo_unit parameters.
15402 (create_cus_hash_table): Use cutu_reader.
15403 (struct dwarf2_read_addr_index_data): Remove.
15404 (dwarf2_read_addr_index_reader): Remove.
15405 (dwarf2_read_addr_index): Use cutu_reader.
15406 (read_signatured_type_reader): Remove.
15407 (read_signatured_type): Use cutu_reader.
15408
45bbae5c
TT
154092020-01-19 Tom Tromey <tom@tromey.com>
15410
15411 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15412 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15413 (tui_wrefresh): Declare.
15414 * tui/tui-wingeneral.c (suppress_output): New global.
15415 (tui_suppress_output, ~tui_suppress_output): New constructor and
15416 destructor.
15417 (tui_wrefresh): New function.
15418 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15419 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15420 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15421 method.
15422 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15423 tui_wrefresh.
15424 (tui_data_window::no_refresh): New method.
15425 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15426 (tui_reg_command): Use tui_suppress_output
15427 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15428 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15429 method.
15430 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15431
4f13c1c0
TT
154322020-01-19 Tom Tromey <tom@tromey.com>
15433
15434 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15435 Handle case where symtab is null.
15436
fa47e446
SM
154372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15438
15439 * linux-fork.c (one_fork_p): Simplify.
15440
26f42329
SM
154412020-01-17 Simon Marchi <simon.marchi@efficios.com>
15442
15443 * top.c (struct qt_args): Remove.
15444 (kill_or_detach): Change return type to void, replace `void *`
15445 parameter with a proper one.
15446 (print_inferior_quit_action): Likewise.
15447 (quit_confirm): Use range-based for loop to iterate over inferiors.
15448 (quit_force): Likewise.
15449
a9ac81b1
SM
154502020-01-17 Simon Marchi <simon.marchi@efficios.com>
15451
15452 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15453 `void *` parameter with proper parameters.
15454 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15455 (print_one_inferior): Change return type to void, replace `void *`
15456 parameter with proper parameters.
15457 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15458 inferiors.
15459 (get_other_inferior): Remove.
15460 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15461 inferiors.
15462
788eca49
SM
154632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15464
15465 * mi/mi-interp.c (report_initial_inferior): Remove.
15466 (mi_interp::init): Use range-based for to iterate over inferiors.
15467
d9bc85b6
SM
154682020-01-17 Simon Marchi <simon.marchi@efficios.com>
15469
15470 * python/py-inferior.c (build_inferior_list): Remove.
15471 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15472
40c94099
CB
154732020-01-16 Christian Biesinger <cbiesinger@google.com>
15474
15475 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15476 (btrace_stitch_trace): Likewise.
15477 * charset.c (intermediate_encoding): Likewise (vaild).
15478 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15479 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15480 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15481
e0cdfe3c
HD
154822020-01-16 Hannes Domani <ssbssa@yahoo.de>
15483
15484 * windows-tdep.c (windows_get_tlb_type):
15485 Add rtl_user_process_parameters type.
15486
790f1718 154872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15488 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15489
15490 PR build/24805
15491 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15492 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15493 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15494 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15495 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15496 (ps_plog): Redeclare exported functions with default visibility.
15497
3112ed97
NA
154982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15499
15500 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15501 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15502
8dc3273e
SM
155032020-01-15 Simon Marchi <simon.marchi@efficios.com>
15504
15505 * infcmd.c (post_create_inferior): Use get_thread_regcache
15506 instead of get_current_regcache.
15507
ff47f4f0
TT
155082020-01-14 Tom Tromey <tom@tromey.com>
15509
15510 PR symtab/12535:
15511 * python/python.c (gdbpy_decode_line): Treat empty string the same
15512 as no argument.
15513
975f45b7
TT
155142020-01-14 Tom Tromey <tom@tromey.com>
15515
15516 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15517
25e57356
TT
155182020-01-14 Tom Tromey <tom@tromey.com>
15519
15520 * nat/linux-btrace.c: Don't include <config.h>.
15521 * nat/linux-ptrace.c: Don't include <config.h>.
15522 * nat/x86-linux-dregs.c: Don't include <config.h>.
15523
05ea2a05
TT
155242020-01-14 Tom Tromey <tom@tromey.com>
15525
15526 * configure: Rebuild.
15527 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15528
01027315
TT
155292020-01-14 Tom Tromey <tom@tromey.com>
15530
15531 * nat/x86-linux-dregs.c: Include configh.h.
15532 * nat/linux-ptrace.c: Include configh.h.
15533 * nat/linux-btrace.c: Include configh.h.
15534 * defs.h: Include config.h, bfd.h.
15535 * configure.ac: Don't source common.host.
15536 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15537 * configure: Rebuild.
15538 * acinclude.m4: Update path.
15539 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15540 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15541 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15542 (CLIBS): Add LIBSUPPORT.
15543 (CDEPS): Likewise.
15544 (COMMON_SFILES): Remove gdbsupport files.
15545 (HFILES_NO_SRCDIR): Likewise.
15546 (stamp-version): Update path to create-version.sh.
15547 (ALLDEPFILES): Remove gdbsupport files.
15548
b2ceabe8
TT
155492020-01-14 Tom Tromey <tom@tromey.com>
15550
15551 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15552 USE_WIN32API when needed.
15553 * configure.ac (USE_WIN32API): Don't define.
15554 (WIN32LIBS): Use WIN32APILIBS.
15555 * configure: Rebuild.
15556
25c51f71
TT
155572020-01-14 Tom Tromey <tom@tromey.com>
15558
15559 * configure: Rebuild.
15560 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15561
717c684d
BE
155622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15563
15564 * skip.c (skip_function_command): Make skip w/o arguments use the
15565 name of the inlined function if pc is inside any inlined function.
15566
7da6a5b9
LM
155672020-01-14 Luis Machado <luis.machado@linaro.org>
15568
15569 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15570 * infrun.c (resume_1): Likewise.
15571 (handle_inferior_event): Remove stale comment.
15572 * linux-nat.c (linux_nat_target::resume): Update comments.
15573 (save_stop_reason): Likewise.
15574 (linux_nat_filter_event): Likewise.
15575 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15576
44e4c775
AB
155772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15578
15579 * elfread.c (record_minimal_symbol): Set section index to 0 for
15580 non-allocatable sections.
15581
18a8505e
AT
15582
155832020-01-13 Ali Tamur <tamur@google.com>
15584
15585 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15586 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15587 to gdb::optional. Update comments.
15588 (dwo_file): Update comments.
15589 (read_attribute): Update API to take an additional out parameter,
15590 need_reprocess. This is used to mark attributes that need other
15591 attributes (e.g. str_offsets_base) for correct computation which may not
15592 have been read yet.
15593 (read_attribute_reprocess): New function declaration.
15594 (read_addr_index): Likewise.
15595 (read_dwo_str_index): Likewise.
15596 (read_stub_str_index): Likewise.
15597 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15598 (lookup_addr_base): New function definition.
15599 (lookup_ranges_base): Likewise.
15600 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15601 lookup_ranges_base.
15602 (init_cutu_and_read_dies): Update comments.
15603 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15604 unit. This is used to inherit parent's str_offsets_base and addr_base.
15605 Update comments.
15606 (init_cutu_and_read_dies_simple): Reflect API changes.
15607 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15608 (create_cus_hash_table): Change API to take parent compile unit.
15609 Reflect API changes.
15610 (open_and_init_dwo_file): Reflect API changes.
15611 (dwarf2_get_pc_bounds): Update comments.
15612 (dwarf2_record_block_ranges): Likewise.
15613 (read_full_die_1): Change implementation to reprocess attributes that
15614 need str_offsets_base and addr_base.
15615 (partial_die_info::read): Likewise.
15616 (read_attribute_reprocess): New function definition.
15617 (read_attribute_value): Change API to take an additional out parameter,
15618 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15619 when a non-dwo compile unit has index based attributes.
15620 (read_attribute): Reflect API changes.
15621 (read_addr_index_1): Reflect API changes. Update comments.
15622 (dwarf2_read_addr_index_data): Reflect API changes.
15623 (dwarf2_read_addr_index): Likewise.
15624 (read_str_index): Change API and implementation. This becomes a helper
15625 to be used by the new string index related methods. Update error
15626 message and comments.
15627 (read_dwo_str_index): New function definition.
15628 (read_stub_str_index): Likewise.
15629 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15630 * symfile.h (dwarf2_debug_sections): Likewise.
15631 * xcoffread.c (dwarf2_debug_sections): Likewise.
15632
0cac9354
SM
156332020-01-13 Simon Marchi <simon.marchi@efficios.com>
15634
15635 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15636 core_reg_sect type to gdb_byte *.
15637 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15638 * cris-tdep.c (fetch_core_registers): Likewise.
15639 * corelow.c (core_target::get_core_register_section): Change
15640 type of `contents` to gdb::byte_vector.
15641
9a6d629c
AB
156422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15643
15644 * tui/tui-wingeneral.c (box_win): Position the title in the center
15645 of the border.
15646
d8b2f9e3
SM
156472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15648
15649 * corelow.c (core_target::get_core_register_section): Use
15650 std::vector instead of alloca.
15651
bb564c58
SM
156522020-01-13 Simon Marchi <simon.marchi@efficios.com>
15653
15654 * warning.m4: Add -Wmissing-declarations to build_warnings.
15655 * configure: Re-generate.
15656
6b366111
SM
156572020-01-13 Simon Marchi <simon.marchi@efficios.com>
15658
15659 * python/python.c (init__gdb_module): Add declaration.
15660
6c265988
SM
156612020-01-13 Simon Marchi <simon.marchi@efficios.com>
15662
15663 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15664 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15665 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15666 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15667 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15668 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15669 * ada-exp.y (_initialize_ada_exp): Add declaration.
15670 * ada-lang.c (_initialize_ada_language): Add declaration.
15671 * ada-tasks.c (_initialize_tasks): Add declaration.
15672 * agent.c (_initialize_agent): Add declaration.
15673 * aix-thread.c (_initialize_aix_thread): Add declaration.
15674 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15675 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15676 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15677 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15678 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15679 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15680 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15681 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15682 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15683 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15684 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15685 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15686 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15687 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15688 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15689 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15690 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15691 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15692 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15693 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15694 * annotate.c (_initialize_annotate): Add declaration.
15695 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15696 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15697 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15698 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15699 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15700 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15701 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15702 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15703 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15704 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15705 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15706 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15707 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15708 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15709 * auto-load.c (_initialize_auto_load): Add declaration.
15710 * auxv.c (_initialize_auxv): Add declaration.
15711 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15712 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15713 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15714 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15715 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15716 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15717 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15718 * breakpoint.c (_initialize_breakpoint): Add declaration.
15719 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15720 * btrace.c (_initialize_btrace): Add declaration.
15721 * charset.c (_initialize_charset): Add declaration.
15722 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15723 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15724 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15725 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15726 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15727 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15728 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15729 * coffread.c (_initialize_coffread): Add declaration.
15730 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15731 * compile/compile.c (_initialize_compile): Add declaration.
15732 * complaints.c (_initialize_complaints): Add declaration.
15733 * completer.c (_initialize_completer): Add declaration.
15734 * copying.c (_initialize_copying): Add declaration.
15735 * corefile.c (_initialize_core): Add declaration.
15736 * corelow.c (_initialize_corelow): Add declaration.
15737 * cp-abi.c (_initialize_cp_abi): Add declaration.
15738 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15739 * cp-support.c (_initialize_cp_support): Add declaration.
15740 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15741 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15742 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15743 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15744 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15745 * ctfread.c (_initialize_ctfread): Add declaration.
15746 * d-lang.c (_initialize_d_language): Add declaration.
15747 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15748 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15749 * dbxread.c (_initialize_dbxread): Add declaration.
15750 * dcache.c (_initialize_dcache): Add declaration.
15751 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15752 * disasm.c (_initialize_disasm): Add declaration.
15753 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15754 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15755 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15756 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15757 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15758 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15759 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15760 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15761 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15762 * elfread.c (_initialize_elfread): Add declaration.
15763 * exec.c (_initialize_exec): Add declaration.
15764 * extension.c (_initialize_extension): Add declaration.
15765 * f-lang.c (_initialize_f_language): Add declaration.
15766 * f-valprint.c (_initialize_f_valprint): Add declaration.
15767 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15768 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15769 * filesystem.c (_initialize_filesystem): Add declaration.
15770 * findcmd.c (_initialize_mem_search): Add declaration.
15771 * findvar.c (_initialize_findvar): Add declaration.
15772 * fork-child.c (_initialize_fork_child): Add declaration.
15773 * frame-base.c (_initialize_frame_base): Add declaration.
15774 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15775 * frame.c (_initialize_frame): Add declaration.
15776 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15777 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15778 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15779 * gcore.c (_initialize_gcore): Add declaration.
15780 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15781 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15782 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15783 * gdbarch.c (_initialize_gdbarch): Add declaration.
15784 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15785 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15786 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15787 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15788 * go-lang.c (_initialize_go_language): Add declaration.
15789 * go32-nat.c (_initialize_go32_nat): Add declaration.
15790 * guile/guile.c (_initialize_guile): Add declaration.
15791 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15792 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15793 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15794 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15795 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15796 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15797 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15798 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15799 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15800 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15801 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15802 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15803 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15804 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15805 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15806 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15807 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15808 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15809 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15810 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15811 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15812 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15813 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15814 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15815 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15816 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15817 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15818 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15819 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15820 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15821 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15822 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15823 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15824 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15825 * infcall.c (_initialize_infcall): Add declaration.
15826 * infcmd.c (_initialize_infcmd): Add declaration.
15827 * inflow.c (_initialize_inflow): Add declaration.
15828 * infrun.c (_initialize_infrun): Add declaration.
15829 * interps.c (_initialize_interpreter): Add declaration.
15830 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15831 * jit.c (_initialize_jit): Add declaration.
15832 * language.c (_initialize_language): Add declaration.
15833 * linux-fork.c (_initialize_linux_fork): Add declaration.
15834 * linux-nat.c (_initialize_linux_nat): Add declaration.
15835 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15836 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15837 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15838 * m2-lang.c (_initialize_m2_language): Add declaration.
15839 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15840 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15841 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15842 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15843 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15844 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15845 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15846 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15847 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15848 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15849 * machoread.c (_initialize_machoread): Add declaration.
15850 * macrocmd.c (_initialize_macrocmd): Add declaration.
15851 * macroscope.c (_initialize_macroscope): Add declaration.
15852 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15853 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15854 * maint.c (_initialize_maint_cmds): Add declaration.
15855 * mdebugread.c (_initialize_mdebugread): Add declaration.
15856 * memattr.c (_initialize_mem): Add declaration.
15857 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15858 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15859 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15860 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15861 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15862 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15863 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15864 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15865 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15866 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15867 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15868 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15869 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15870 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15871 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15872 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15873 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15874 * mipsread.c (_initialize_mipsread): Add declaration.
15875 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15876 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15877 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15878 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15879 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15880 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15881 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15882 * nto-procfs.c (_initialize_procfs): Add declaration.
15883 * objc-lang.c (_initialize_objc_language): Add declaration.
15884 * observable.c (_initialize_observer): Add declaration.
15885 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15886 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15887 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15888 * osabi.c (_initialize_gdb_osabi): Add declaration.
15889 * osdata.c (_initialize_osdata): Add declaration.
15890 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15891 * parse.c (_initialize_parse): Add declaration.
15892 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15893 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15894 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15895 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15896 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15897 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15898 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15899 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15900 * printcmd.c (_initialize_printcmd): Add declaration.
15901 * probe.c (_initialize_probe): Add declaration.
15902 * proc-api.c (_initialize_proc_api): Add declaration.
15903 * proc-events.c (_initialize_proc_events): Add declaration.
15904 * proc-service.c (_initialize_proc_service): Add declaration.
15905 * procfs.c (_initialize_procfs): Add declaration.
15906 * producer.c (_initialize_producer): Add declaration.
15907 * psymtab.c (_initialize_psymtab): Add declaration.
15908 * python/python.c (_initialize_python): Add declaration.
15909 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15910 * record-btrace.c (_initialize_record_btrace): Add declaration.
15911 * record-full.c (_initialize_record_full): Add declaration.
15912 * record.c (_initialize_record): Add declaration.
15913 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15914 * regcache.c (_initialize_regcache): Add declaration.
15915 * reggroups.c (_initialize_reggroup): Add declaration.
15916 * remote-notif.c (_initialize_notif): Add declaration.
15917 * remote-sim.c (_initialize_remote_sim): Add declaration.
15918 * remote.c (_initialize_remote): Add declaration.
15919 * reverse.c (_initialize_reverse): Add declaration.
15920 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15921 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15922 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15923 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15924 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15925 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15926 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15927 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15928 Add declaration.
15929 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15930 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15931 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15932 * rust-exp.y (_initialize_rust_exp): Add declaration.
15933 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15934 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15935 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15936 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15937 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15938 * score-tdep.c (_initialize_score_tdep): Add declaration.
15939 * ser-go32.c (_initialize_ser_dos): Add declaration.
15940 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15941 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15942 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15943 * ser-uds.c (_initialize_ser_socket): Add declaration.
15944 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15945 * serial.c (_initialize_serial): Add declaration.
15946 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15947 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15948 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15949 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15950 * skip.c (_initialize_step_skip): Add declaration.
15951 * sol-thread.c (_initialize_sol_thread): Add declaration.
15952 * solib-aix.c (_initialize_solib_aix): Add declaration.
15953 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15954 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15955 * solib-frv.c (_initialize_frv_solib): Add declaration.
15956 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15957 * solib-target.c (_initialize_solib_target): Add declaration.
15958 * solib.c (_initialize_solib): Add declaration.
15959 * source-cache.c (_initialize_source_cache): Add declaration.
15960 * source.c (_initialize_source): Add declaration.
15961 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15962 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15963 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15964 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15965 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15966 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15967 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15968 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15969 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15970 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15971 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15972 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15973 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15974 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15975 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15976 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15977 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15978 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15979 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15980 * stabsread.c (_initialize_stabsread): Add declaration.
15981 * stack.c (_initialize_stack): Add declaration.
15982 * stap-probe.c (_initialize_stap_probe): Add declaration.
15983 * std-regs.c (_initialize_frame_reg): Add declaration.
15984 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15985 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15986 * symfile.c (_initialize_symfile): Add declaration.
15987 * symmisc.c (_initialize_symmisc): Add declaration.
15988 * symtab.c (_initialize_symtab): Add declaration.
15989 * target.c (_initialize_target): Add declaration.
15990 * target-connection.c (_initialize_target_connection): Add
15991 declaration.
15992 * target-dcache.c (_initialize_target_dcache): Add declaration.
15993 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15994 * thread.c (_initialize_thread): Add declaration.
15995 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15996 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15997 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15998 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15999 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16000 * tracectf.c (_initialize_ctf): Add declaration.
16001 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16002 * tracefile.c (_initialize_tracefile): Add declaration.
16003 * tracepoint.c (_initialize_tracepoint): Add declaration.
16004 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16005 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16006 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16007 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16008 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16009 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16010 * tui/tui.c (_initialize_tui): Add declaration.
16011 * typeprint.c (_initialize_typeprint): Add declaration.
16012 * ui-style.c (_initialize_ui_style): Add declaration.
16013 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16014 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16015 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16016 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16017 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16018 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16019 * unittests/filtered_iterator-selftests.c
16020 (_initialize_filtered_iterator_selftests): Add declaration.
16021 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16022 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16023 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16024 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16025 * unittests/main-thread-selftests.c
16026 (_initialize_main_thread_selftests): Add declaration.
16027 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16028 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16029 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16030 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16031 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16032 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16033 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16034 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16035 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16036 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16037 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16038 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16039 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16040 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16041 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16042 declaration.
16043 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16044 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16045 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16046 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16047 * user-regs.c (_initialize_user_regs): Add declaration.
16048 * utils.c (_initialize_utils): Add declaration.
16049 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16050 * valops.c (_initialize_valops): Add declaration.
16051 * valprint.c (_initialize_valprint): Add declaration.
16052 * value.c (_initialize_values): Add declaration.
16053 * varobj.c (_initialize_varobj): Add declaration.
16054 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16055 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16056 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16057 * windows-nat.c (_initialize_windows_nat): Add declaration.
16058 (_initialize_check_for_gdb_ini): Add declaration.
16059 (_initialize_loadable): Add declaration.
16060 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16061 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16062 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16063 * xcoffread.c (_initialize_xcoffread): Add declaration.
16064 * xml-support.c (_initialize_xml_support): Add declaration.
16065 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16066 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16067 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16068 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16069
e2de1eec
SM
160702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16071
16072 * regformats/regdat.sh: Generate declaration for init function.
16073
e0037b4c
SM
160742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16075
16076 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16077 up.
16078 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16079 close_one_inferior>: New methods.
16080 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16081 pass down target to find_inferior_pid.
16082 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16083 Pass down target to find_inferior_ptid.
16084 (gdbsim_target::create_inferior): Pass down target to
16085 add_thread_silent.
16086 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16087 target down to find_inferior_ptid and switch_to_thread.
16088 (gdbsim_target::close): Update to call close_one_inferior.
16089 (struct resume_data): Remove.
16090 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16091 directly, rather than through a void pointer.
16092 (gdbsim_target::resume): Update to call resume_one_inferior.
16093
58920b5b
SM
160942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16095
16096 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16097
4ec89149
PA
160982020-01-12 Pedro Alves <palves@redhat.com>
16099
16100 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16101 directly for the current inferior instead of
16102 discard_all_inferiors.
16103 (discard_all_inferiors): Delete.
16104
7c392d1d
TT
161052020-01-11 Tom Tromey <tom@tromey.com>
16106
16107 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16108 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16109 deprecated_safe_get_selected_frame.
16110
d9ebdab7
TBA
161112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16112
16113 * inferior.c (print_inferior): Switch inferior before printing it.
16114
f3c469b9
PA
161152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16116 Pedro Alves <palves@redhat.com>
16117
16118 * progspace-and-thread.c (switch_to_program_space_and_thread):
16119 Assert there's an inferior for PSPACE. Use
16120 switch_to_inferior_no_thread to switch the inferior too.
16121 * progspace.c (program_space::~program_space): Call
16122 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16123 (program_space::free_all_objfiles): Don't call clear_symtab_users
16124 here.
16125 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16126
65c574f6
PA
161272020-01-10 Pedro Alves <palves@redhat.com>
16128
16129 * NEWS: Mention multi-target debugging, "info connections", and
16130 "add-inferior -no-connection".
16131
2f4fcf00
PA
161322020-01-10 Pedro Alves <palves@redhat.com>
16133
16134 * infrun.c: Include "target-connection.h".
16135 (check_multi_target_resumption): New.
16136 (proceed): Call it.
16137 * target-connection.c (make_target_connection_string): Make
16138 extern.
16139 * target-connection.h (make_target_connection_string): Declare.
16140
121b3efd
PA
161412020-01-10 Pedro Alves <palves@redhat.com>
16142
16143 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16144 * inferior.c (uiout_field_connection): New function.
16145 (print_inferior): Add new "connection-id" column.
16146 (add_inferior_command): Show connection number/string of added
16147 inferior.
16148 * process-stratum-target.h
16149 (process_stratum_target::connection_string): New virtual method.
16150 (process_stratum_target::connection_number): New field.
16151 * remote.c (remote_target::connection_string): New override.
16152 * target-connection.c: New file.
16153 * target-connection.h: New file.
16154 * target.c (decref_target): Remove process_stratum targets from
16155 the connection list.
16156 (target_stack::push): Add process_stratum targets to the
16157 connection list.
16158
4f837581
PA
161592020-01-10 Pedro Alves <palves@redhat.com>
16160
16161 Revert:
16162 2016-04-12 Pedro Alves <palves@redhat.com>
16163 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16164 Remove references to name.
16165 * serial.h (struct serial) <name>: Delete.
16166
f4ec508e
PA
161672020-01-10 Pedro Alves <palves@redhat.com>
16168
16169 * gdbarch-selftests.c (register_to_value_test): Remove "target
16170 already pushed" check.
16171
5b6d1e4f
PA
161722020-01-10 Pedro Alves <palves@redhat.com>
16173 John Baldwin <jhb@FreeBSD.org>
16174
16175 * aarch64-linux-nat.c
16176 (aarch64_linux_nat_target::thread_architecture): Adjust.
16177 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16178 (task_command_1): Likewise.
16179 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16180 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16181 (aix_thread_target::store_registers)
16182 (aix_thread_target::thread_alive): Adjust.
16183 * amd64-fbsd-tdep.c: Include "inferior.h".
16184 (amd64fbsd_get_thread_local_address): Pass down target.
16185 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16186 thread's gdbarch instead of target_gdbarch.
16187 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16188 get_last_target_status.
16189 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16190 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16191 inferiors.
16192 (update_inserted_breakpoint_locations): Skip if inferiors with no
16193 execution.
16194 (update_global_location_list): When handling moribund locations,
16195 find representative inferior for location's pspace, and use thread
16196 count of its process_stratum target.
16197 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16198 * bsd-uthread.c (bsd_uthread_target::wait): Use
16199 as_process_stratum_target and adjust thread_change_ptid and
16200 add_thread calls.
16201 (bsd_uthread_target::update_thread_list): Use
16202 as_process_stratum_target and adjust find_thread_ptid,
16203 thread_change_ptid and add_thread calls.
16204 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16205 find_thread_ptid call.
16206 * corelow.c (add_to_thread_list): Adjust add_thread call.
16207 (core_target_open): Adjust add_thread_silent and thread_count
16208 calls.
16209 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16210 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16211 * event-top.c (async_disconnect): Pop targets from all inferiors.
16212 * exec.c (add_target_sections): Push exec target on all inferiors
16213 sharing the program space.
16214 (remove_target_sections): Remove the exec target from all
16215 inferiors sharing the program space.
16216 (exec_on_vfork): New.
16217 * exec.h (exec_on_vfork): Declare.
16218 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16219 Pass it down.
16220 (fbsd_nat_target::update_thread_list): Adjust.
16221 (fbsd_nat_target::resume): Adjust.
16222 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16223 down.
16224 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16225 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16226 get_thread_arch_regcache call.
16227 * fork-child.c (gdb_startup_inferior): Pass target down to
16228 startup_inferior and set_executing.
16229 * gdbthread.h (struct process_stratum_target): Forward declare.
16230 (add_thread, add_thread_silent, add_thread_with_info)
16231 (in_thread_list): Add process_stratum_target parameter.
16232 (find_thread_ptid(inferior*, ptid_t)): New overload.
16233 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16234 parameter.
16235 (all_threads()): Delete overload.
16236 (all_threads, all_non_exited_threads): Add process_stratum_target
16237 parameter.
16238 (all_threads_safe): Use brace initialization.
16239 (thread_count): Add process_stratum_target parameter.
16240 (set_resumed, set_running, set_stop_requested, set_executing)
16241 (threads_are_executing, finish_thread_state): Add
16242 process_stratum_target parameter.
16243 (switch_to_thread): Use is_current_thread.
16244 * i386-fbsd-tdep.c: Include "inferior.h".
16245 (i386fbsd_get_thread_local_address): Pass down target.
16246 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16247 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16248 have_inferiors check.
16249 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16250 (inf_ptrace_target::attach): Adjust.
16251 * infcall.c (run_inferior_call): Adjust.
16252 * infcmd.c (run_command_1): Pass target to
16253 scoped_finish_thread_state.
16254 (proceed_thread_callback): Skip inferiors with no execution.
16255 (continue_command): Rename 'all_threads' local to avoid hiding
16256 'all_threads' function. Adjust get_last_target_status call.
16257 (prepare_one_step): Adjust set_running call.
16258 (signal_command): Use user_visible_resume_target. Compare thread
16259 pointers instead of inferior_ptid.
16260 (info_program_command): Adjust to pass down target.
16261 (attach_command): Mark target's 'thread_executing' flag.
16262 (stop_current_target_threads_ns): New, factored out from ...
16263 (interrupt_target_1): ... this. Switch inferior before making
16264 target calls.
16265 * inferior-iter.h
16266 (struct all_inferiors_iterator, struct all_inferiors_range)
16267 (struct all_inferiors_safe_range)
16268 (struct all_non_exited_inferiors_range): Filter on
16269 process_stratum_target too. Remove explicit.
16270 * inferior.c (inferior::inferior): Push dummy target on target
16271 stack.
16272 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16273 Add process_stratum_target parameter, and pass it down.
16274 (have_live_inferiors): Adjust.
16275 (switch_to_inferior_and_push_target): New.
16276 (add_inferior_command, clone_inferior_command): Handle
16277 "-no-connection" parameter. Use
16278 switch_to_inferior_and_push_target.
16279 (_initialize_inferior): Mention "-no-connection" option in
16280 the help of "add-inferior" and "clone-inferior" commands.
16281 * inferior.h: Include "process-stratum-target.h".
16282 (interrupt_target_1): Use bool.
16283 (struct inferior) <push_target, unpush_target, target_is_pushed,
16284 find_target_beneath, top_target, process_target, target_at,
16285 m_stack>: New.
16286 (discard_all_inferiors): Delete.
16287 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16288 (all_inferiors, all_non_exited_inferiors): Add
16289 process_stratum_target parameter.
16290 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16291 (target_last_proc_target): New global.
16292 (follow_fork_inferior): Push target on new inferior. Pass target
16293 to add_thread_silent. Call exec_on_vfork. Handle target's
16294 reference count.
16295 (follow_fork): Adjust get_last_target_status call. Also consider
16296 target.
16297 (follow_exec): Push target on new inferior.
16298 (struct execution_control_state) <target>: New field.
16299 (user_visible_resume_target): New.
16300 (do_target_resume): Call target_async.
16301 (resume_1): Set target's threads_executing flag. Consider resume
16302 target.
16303 (commit_resume_all_targets): New.
16304 (proceed): Also consider resume target. Skip threads of inferiors
16305 with no execution. Commit resumtion in all targets.
16306 (start_remote): Pass current inferior to wait_for_inferior.
16307 (infrun_thread_stop_requested): Consider target as well. Pass
16308 thread_info pointer to clear_inline_frame_state instead of ptid.
16309 (infrun_thread_thread_exit): Consider target as well.
16310 (random_pending_event_thread): New inferior parameter. Use it.
16311 (do_target_wait): Rename to ...
16312 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16313 down.
16314 (threads_are_resumed_pending_p, do_target_wait): New.
16315 (prepare_for_detach): Adjust calls.
16316 (wait_for_inferior): New inferior parameter. Handle it. Use
16317 do_target_wait_1 instead of do_target_wait.
16318 (fetch_inferior_event): Adjust. Switch to representative
16319 inferior. Pass target down.
16320 (set_last_target_status): Add process_stratum_target parameter.
16321 Save target in global.
16322 (get_last_target_status): Add process_stratum_target parameter and
16323 handle it.
16324 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16325 (context_switch): Check inferior_ptid == null_ptid before calling
16326 inferior_thread().
16327 (get_inferior_stop_soon): Pass down target.
16328 (wait_one): Rename to ...
16329 (poll_one_curr_target): ... this.
16330 (struct wait_one_event): New.
16331 (wait_one): New.
16332 (stop_all_threads): Adjust.
16333 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16334 event's target.
16335 (switch_back_to_stepped_thread): Also consider target.
16336 (print_stop_event): Update.
16337 (normal_stop): Update. Also consider the resume target.
16338 * infrun.h (wait_for_inferior): Remove declaration.
16339 (user_visible_resume_target): New declaration.
16340 (get_last_target_status, set_last_target_status): New
16341 process_stratum_target parameter.
16342 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16343 process_stratum_target parameter, and use it.
16344 (clear_inline_frame_state (thread_info*)): New.
16345 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16346 process_stratum_target parameter.
16347 (clear_inline_frame_state (thread_info*)): Declare.
16348 * linux-fork.c (delete_checkpoint_command): Pass target down to
16349 find_thread_ptid.
16350 (checkpoint_command): Adjust.
16351 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16352 instead of just tweaking inferior_ptid.
16353 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16354 (exit_lwp): Pass target down to find_thread_ptid.
16355 (attach_proc_task_lwp_callback): Pass target down to
16356 add_thread/set_running/set_executing.
16357 (linux_nat_target::attach): Pass target down to
16358 thread_change_ptid.
16359 (get_detach_signal): Pass target down to find_thread_ptid.
16360 Consider last target status's target.
16361 (linux_resume_one_lwp_throw, resume_lwp)
16362 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16363 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16364 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16365 (linux_nat_target::async_wait_fd): New.
16366 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16367 target down.
16368 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16369 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16370 * linux-thread-db.c (struct thread_db_info::process_target): New
16371 field.
16372 (add_thread_db_info): Save target.
16373 (get_thread_db_info): New process_stratum_target parameter. Also
16374 match target.
16375 (delete_thread_db_info): New process_stratum_target parameter.
16376 Also match target.
16377 (thread_from_lwp): Adjust to pass down target.
16378 (thread_db_notice_clone): Pass down target.
16379 (check_thread_db_callback): Pass down target.
16380 (try_thread_db_load_1): Always push the thread_db target.
16381 (try_thread_db_load, record_thread): Pass target down.
16382 (thread_db_target::detach): Pass target down. Always unpush the
16383 thread_db target.
16384 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16385 target down. Always unpush the thread_db target.
16386 (find_new_threads_callback, thread_db_find_new_threads_2)
16387 (thread_db_target::update_thread_list): Pass target down.
16388 (thread_db_target::pid_to_str): Pass current inferior down.
16389 (thread_db_target::get_thread_local_address): Pass target down.
16390 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16391 target down.
16392 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16393 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16394 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16395 (procfs_init_inferior): Rename to ...
16396 (procfs_target::procfs_init_inferior): ... this and adjust.
16397 (procfs_target::create_inferior, procfs_notice_thread)
16398 (procfs_do_thread_registers): Adjust.
16399 * ppc-fbsd-tdep.c: Include "inferior.h".
16400 (ppcfbsd_get_thread_local_address): Pass down target.
16401 * proc-service.c (ps_xfer_memory): Switch current inferior and
16402 program space as well.
16403 (get_ps_regcache): Pass target down.
16404 * process-stratum-target.c
16405 (process_stratum_target::thread_address_space)
16406 (process_stratum_target::thread_architecture): Pass target down.
16407 * process-stratum-target.h
16408 (process_stratum_target::threads_executing): New field.
16409 (as_process_stratum_target): New.
16410 * ravenscar-thread.c
16411 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16412 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16413 down.
16414 * record-btrace.c (record_btrace_target::info_record): Adjust.
16415 (record_btrace_target::record_method)
16416 (record_btrace_target::record_is_replaying)
16417 (record_btrace_target::fetch_registers)
16418 (get_thread_current_frame_id, record_btrace_target::resume)
16419 (record_btrace_target::wait, record_btrace_target::stop): Pass
16420 target down.
16421 * record-full.c (record_full_wait_1): Switch to event thread.
16422 Pass target down.
16423 * regcache.c (regcache::regcache)
16424 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16425 process_stratum_target parameter and handle it.
16426 (current_thread_target): New global.
16427 (get_thread_regcache): Add process_stratum_target parameter and
16428 handle it. Switch inferior before calling target method.
16429 (get_thread_regcache): Pass target down.
16430 (get_thread_regcache_for_ptid): Pass target down.
16431 (registers_changed_ptid): Add process_stratum_target parameter and
16432 handle it.
16433 (registers_changed_thread, registers_changed): Pass target down.
16434 (test_get_thread_arch_aspace_regcache): New.
16435 (current_regcache_test): Define a couple local test_target_ops
16436 instances and use them for testing.
16437 (readwrite_regcache): Pass process_stratum_target parameter.
16438 (cooked_read_test, cooked_write_test): Pass mock_target down.
16439 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16440 (get_thread_arch_aspace_regcache): Add process_stratum_target
16441 parameter.
16442 (regcache::target): New method.
16443 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16444 (regcache::registers_changed_ptid): Add process_stratum_target
16445 parameter.
16446 (regcache::m_target): New field.
16447 (registers_changed_ptid): Add process_stratum_target parameter.
16448 * remote.c (remote_state::supports_vCont_probed): New field.
16449 (remote_target::async_wait_fd): New method.
16450 (remote_unpush_and_throw): Add remote_target parameter.
16451 (get_current_remote_target): Adjust.
16452 (remote_target::remote_add_inferior): Push target.
16453 (remote_target::remote_add_thread)
16454 (remote_target::remote_notice_new_inferior)
16455 (get_remote_thread_info): Pass target down.
16456 (remote_target::update_thread_list): Skip threads of inferiors
16457 bound to other targets. (remote_target::close): Don't discard
16458 inferiors. (remote_target::add_current_inferior_and_thread)
16459 (remote_target::process_initial_stop_replies)
16460 (remote_target::start_remote)
16461 (remote_target::remote_serial_quit_handler): Pass down target.
16462 (remote_target::remote_unpush_target): New remote_target
16463 parameter. Unpush the target from all inferiors.
16464 (remote_target::remote_unpush_and_throw): New remote_target
16465 parameter. Pass it down.
16466 (remote_target::open_1): Check whether the current inferior has
16467 execution instead of checking whether any inferior is live. Pass
16468 target down.
16469 (remote_target::remote_detach_1): Pass down target. Use
16470 remote_unpush_target.
16471 (extended_remote_target::attach): Pass down target.
16472 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16473 (remote_target::append_resumption): Pass down target.
16474 (remote_target::append_pending_thread_resumptions)
16475 (remote_target::remote_resume_with_hc, remote_target::resume)
16476 (remote_target::commit_resume): Pass down target.
16477 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16478 (remote_target::interrupt_query)
16479 (remote_target::remove_new_fork_children)
16480 (remote_target::check_pending_events_prevent_wildcard_vcont)
16481 (remote_target::remote_parse_stop_reply)
16482 (remote_target::process_stop_reply): Pass down target.
16483 (first_remote_resumed_thread): New remote_target parameter. Pass
16484 it down.
16485 (remote_target::wait_as): Pass down target.
16486 (unpush_and_perror): New remote_target parameter. Pass it down.
16487 (remote_target::readchar, remote_target::remote_serial_write)
16488 (remote_target::getpkt_or_notif_sane_1)
16489 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16490 down target.
16491 (remote_target::mourn_inferior): Pass down target. Use
16492 remote_unpush_target.
16493 (remote_target::core_of_thread)
16494 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16495 (remote_target::pid_to_exec_file)
16496 (remote_target::thread_handle_to_thread_info): Pass down target.
16497 (remote_target::async_wait_fd): New.
16498 * riscv-fbsd-tdep.c: Include "inferior.h".
16499 (riscv_fbsd_get_thread_local_address): Pass down target.
16500 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16501 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16502 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16503 Adjust.
16504 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16505 * solib-svr4.c (enable_break): Pass down target.
16506 * spu-multiarch.c (parse_spufs_run): Pass down target.
16507 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16508 * target-delegates.c: Regenerate.
16509 * target.c (g_target_stack): Delete.
16510 (current_top_target): Return the current inferior's top target.
16511 (target_has_execution_1): Refer to the passed-in inferior's top
16512 target.
16513 (target_supports_terminal_ours): Check whether the initial
16514 inferior was already created.
16515 (decref_target): New.
16516 (target_stack::push): Incref/decref the target.
16517 (push_target, push_target, unpush_target): Adjust.
16518 (target_stack::unpush): Defref target.
16519 (target_is_pushed): Return bool. Adjust to refer to the current
16520 inferior's target stack.
16521 (dispose_inferior): Delete, and inline parts ...
16522 (target_preopen): ... here. Only dispose of the current inferior.
16523 (target_detach): Hold strong target reference while detaching.
16524 Pass target down.
16525 (target_thread_name): Add assertion.
16526 (target_resume): Pass down target.
16527 (target_ops::beneath, find_target_at): Adjust to refer to the
16528 current inferior's target stack.
16529 (get_dummy_target): New.
16530 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16531 has a thread running.
16532 (initialize_targets): Rename to ...
16533 (_initialize_target): ... this.
16534 * target.h: Include "gdbsupport/refcounted-object.h".
16535 (struct target_ops): Inherit refcounted_object.
16536 (target_ops::shortname, target_ops::longname): Make const.
16537 (target_ops::async_wait_fd): New method.
16538 (decref_target): Declare.
16539 (struct target_ops_ref_policy): New.
16540 (target_ops_ref): New typedef.
16541 (get_dummy_target): Declare function.
16542 (target_is_pushed): Return bool.
16543 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16544 (all_matching_threads_iterator::all_matching_threads_iterator):
16545 Handle filter target.
16546 * thread-iter.h (struct all_matching_threads_iterator, struct
16547 all_matching_threads_range, class all_non_exited_threads_range):
16548 Filter by target too. Remove explicit.
16549 * thread.c (threads_executing): Delete.
16550 (inferior_thread): Pass down current inferior.
16551 (clear_thread_inferior_resources): Pass down thread pointer
16552 instead of ptid_t.
16553 (add_thread_silent, add_thread_with_info, add_thread): Add
16554 process_stratum_target parameter. Use it for thread and inferior
16555 searches.
16556 (is_current_thread): New.
16557 (thread_info::deletable): Use it.
16558 (find_thread_ptid, thread_count, in_thread_list)
16559 (thread_change_ptid, set_resumed, set_running): New
16560 process_stratum_target parameter. Pass it down.
16561 (set_executing): New process_stratum_target parameter. Pass it
16562 down. Adjust reference to 'threads_executing'.
16563 (threads_are_executing): New process_stratum_target parameter.
16564 Adjust reference to 'threads_executing'.
16565 (set_stop_requested, finish_thread_state): New
16566 process_stratum_target parameter. Pass it down.
16567 (switch_to_thread): Also match inferior.
16568 (switch_to_thread): New process_stratum_target parameter. Pass it
16569 down.
16570 (update_threads_executing): Reimplement.
16571 * top.c (quit_force): Pop targets from all inferior.
16572 (gdb_init): Don't call initialize_targets.
16573 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16574 Declare.
16575 (windows_add_thread, windows_delete_thread): Adjust.
16576 (get_windows_debug_event): Rename to ...
16577 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16578 * tracefile-tfile.c (tfile_target_open): Pass down target.
16579 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16580 Forward declare.
16581 (switch_to_thread): Add process_stratum_target parameter.
16582 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16583 parameter. Use it.
16584 (mi_on_resume): Pass target down.
16585 * nat/fork-inferior.c (startup_inferior): Add
16586 process_stratum_target parameter. Pass it down.
16587 * nat/fork-inferior.h (startup_inferior): Add
16588 process_stratum_target parameter.
16589 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16590
75c6c844
PA
165912020-01-10 Pedro Alves <palves@redhat.com>
16592
16593 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16594 directly. Instead find the first thread in the thread list and
16595 use switch_to_thread.
16596
78f2c40a
PA
165972020-01-10 Pedro Alves <palves@redhat.com>
16598
16599 * remote.c (remote_target::remote_add_inferior): Don't bind a
16600 process to the current inferior if the current inferior is already
16601 bound to a process.
16602
e7af6c70
TBA
166032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16604 Pedro Alves <palves@redhat.com>
16605
16606 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16607 If no process is specified, return null_ptid instead of
16608 inferior_ptid.
16609 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16610 TARGET_WAITKIND_SIGNALLED with no pid.
16611
31ba933e
PA
166122020-01-10 Pedro Alves <palves@redhat.com>
16613
16614 * remote.c (first_remote_resumed_thread): New.
16615 (remote_target::wait_as): Use it as default event_ptid instead of
16616 inferior_ptid.
16617
735fc2ca
PA
166182020-01-10 Pedro Alves <palves@redhat.com>
16619
16620 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16621
c17e02e1
PA
166222020-01-10 Pedro Alves <palves@redhat.com>
16623
16624 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16625 not -1.
16626
ab1ddbcf
PA
166272020-01-10 Pedro Alves <palves@redhat.com>
16628
16629 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16630 ptid to get_last_target_status.
16631 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16632 ptid to get_last_target_status.
16633 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16634 get_last_target_status.
16635 (info_program_command): Don't pass a target_waitstatus to
16636 get_last_target_status.
16637 * infrun.c (init_wait_for_inferior): Use
16638 nullify_last_target_wait_ptid.
16639 (get_last_target_status): Handle nullptr arguments.
16640 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16641 (print_stop_event): Don't pass a ptid to get_last_target_status.
16642 (normal_stop): Don't pass a ptid to get_last_target_status.
16643 * infrun.h (get_last_target_status, set_last_target_status): Move
16644 comments here and update.
16645 (nullify_last_target_wait_ptid): Declare.
16646 * linux-fork.c (fork_load_infrun_state): Remove local extern
16647 declaration of nullify_last_target_wait_ptid.
16648 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16649 to get_last_target_status.
16650
f3f8ece4
PA
166512020-01-10 Pedro Alves <palves@redhat.com>
16652
16653 * gdbthread.h (scoped_restore_current_thread)
16654 <dont_restore, restore, m_dont_restore>: Declare.
16655 * thread.c (thread_alive): Add assertion. Return bool.
16656 (switch_to_thread_if_alive): New.
16657 (prune_threads): Switch inferior/thread.
16658 (print_thread_info_1): Switch thread before calling target methods.
16659 (scoped_restore_current_thread::restore): New, factored out from
16660 ...
16661 (scoped_restore_current_thread::~scoped_restore_current_thread):
16662 ... this.
16663 (scoped_restore_current_thread::scoped_restore_current_thread):
16664 Add assertion.
16665 (thread_apply_all_command, thread_select): Use
16666 switch_to_thread_if_alive.
16667 * infrun.c (proceed, restart_threads, handle_signal_stop)
16668 (switch_back_to_stepped_thread): Switch current thread before
16669 calling target methods.
16670
db2d40f7
PA
166712020-01-10 Pedro Alves <palves@redhat.com>
16672
16673 * inferior.c (switch_to_inferior_no_thread): New function,
16674 factored out from ...
16675 (inferior_command): ... here.
16676 * inferior.h (switch_to_inferior_no_thread): Declare.
16677 * mi/mi-main.c (run_one_inferior): Use
16678 switch_to_inferior_no_thread.
16679
bd420a2d
PA
166802020-01-10 Pedro Alves <palves@redhat.com>
16681
16682 * infcmd.c (kill_command): Remove dead code.
16683
ddf5db90
PA
166842020-01-10 Pedro Alves <palves@redhat.com>
16685
16686 * remote.c (remote_target::mourn_inferior): No longer check
16687 whether the target is running.
16688
5018ce90
PA
166892020-01-10 Pedro Alves <palves@redhat.com>
16690
16691 * corelow.c (core_target::has_execution): Change parameter type to
16692 inferior pointer.
16693 * inferior.c (number_of_live_inferiors): Use
16694 inferior::has_execution instead of target_has_execution_1.
16695 * inferior.h (inferior::has_execution): New.
16696 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16697 inferior::has_execution instead of target_has_execution_1.
16698 * process-stratum-target.c
16699 (process_stratum_target::has_execution): Change parameter type to
16700 inferior pointer. Check the inferior's PID instead of
16701 inferior_ptid.
16702 * process-stratum-target.h
16703 (process_stratum_target::has_execution): Change parameter type to
16704 inferior pointer.
16705 * record-full.c (record_full_core_target::has_execution): Change
16706 parameter type to inferior pointer.
16707 * target.c (target_has_execution_1): Change parameter type to
16708 inferior pointer.
16709 (target_has_execution_current): Adjust.
16710 * target.h (target_ops::has_execution): Change parameter type to
16711 inferior pointer.
16712 (target_has_execution_1): Change parameter type to inferior
16713 pointer. Change return type to bool.
16714 * tracefile.h (tracefile_target::has_execution): Change parameter
16715 type to inferior pointer.
16716
74375d18
PA
167172020-01-10 Pedro Alves <palves@redhat.com>
16718
16719 * exceptions.c (print_flush): Remove current_top_target() check.
16720
acdf84a6
PA
167212020-01-10 Pedro Alves <palves@redhat.com>
16722
16723 * remote.c (show_remote_exec_file): Show the current inferior's
16724 exec-file instead of the command variable's value.
16725
ec506636
PA
167262020-01-10 Pedro Alves <palves@redhat.com>
16727
16728 * record-full.c (record_full_resume_ptid): New global.
16729 (record_full_target::resume): Set it.
16730 (record_full_wait_1): Use record_full_resume_ptid instead of
16731 inferior_ptid.
16732
873657b9
PA
167332020-01-10 Pedro Alves <palves@redhat.com>
16734
16735 * gdbthread.h (scoped_restore_current_thread)
16736 <dont_restore, restore, m_dont_restore>: Declare.
16737 * thread.c (thread_alive): Add assertion. Return bool.
16738 (switch_to_thread_if_alive): New.
16739 (prune_threads): Switch inferior/thread.
16740 (print_thread_info_1): Switch thread before calling target methods.
16741 (scoped_restore_current_thread::restore): New, factored out from
16742 ...
16743 (scoped_restore_current_thread::~scoped_restore_current_thread):
16744 ... this.
16745 (scoped_restore_current_thread::scoped_restore_current_thread):
16746 Add assertion.
16747 (thread_apply_all_command, thread_select): Use
16748 switch_to_thread_if_alive.
16749
7f0ae84c
GB
167502020-01-10 George Barrett <bob@bob131.so>
16751
16752 * stap-probe.c (stap_modify_semaphore): Don't check for null
16753 semaphores.
16754 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16755 for null semaphores.
16756
f5a7c406
AB
167572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16758
16759 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16760 all source windows, and maintain horizontal scroll status while
16761 doing so.
16762
9ae6bf64
TT
167632020-01-09 Tom Tromey <tom@tromey.com>
16764
16765 PR tui/18932:
16766 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16767 update_source_window, not print_source_lines.
16768
b2efe70c
AB
167692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16770
16771 * tui/tui.c (tui_enable): Register tui hooks after calling
16772 tui_display_main.
16773
5f23a082
CB
167742020-01-09 Christian Biesinger <cbiesinger@google.com>
16775
16776 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16777
3061113b
SM
167782020-01-08 Simon Marchi <simon.marchi@efficios.com>
16779
16780 * thread.c (print_thread_info_1): Fix indentation.
16781
57d75002
CB
167822020-01-09 Christian Biesinger <cbiesinger@google.com>
16783
16784 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16785 unique_xmalloc_ptr outside the if to always free the demangled name.
16786
6a053cb1
TT
167872020-01-08 Tom Tromey <tromey@adacore.com>
16788
16789 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16790 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16791 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16792 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16793 Remove.
16794 (section_offsets): New typedef.
16795 * symtab.c (fixup_section, get_msymbol_address): Update.
16796 * symmisc.c (dump_msymbols): Update.
16797 * symfile.h (relative_addr_info_to_section_offsets)
16798 (symfile_map_offsets_to_segments): Update.
16799 * symfile.c (build_section_addr_info_from_objfile)
16800 (init_objfile_sect_indices): Update.
16801 (struct place_section_arg): Change type of "offsets".
16802 (place_section): Update.
16803 (relative_addr_info_to_section_offsets): Change type of
16804 "section_offsets". Remove "num_sections" parameter.
16805 (default_symfile_offsets, syms_from_objfile_1)
16806 (set_objfile_default_section_offset): Update.
16807 (reread_symbols): No need to preserve section offsets by hand.
16808 (symfile_map_offsets_to_segments): Change type of "offsets".
16809 * stap-probe.c (relocate_address): Update.
16810 * stabsread.h (process_one_symbol): Update.
16811 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16812 (solib_target_relocate_section_addresses): Update.
16813 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16814 Update.
16815 * solib-frv.c (frv_relocate_main_executable): Update.
16816 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16817 * solib-aix.c (solib_aix_get_section_offsets): Change return
16818 type.
16819 (solib_aix_solib_create_inferior_hook): Update.
16820 * remote.c (remote_target::get_offsets): Update.
16821 * psymtab.c (find_pc_sect_psymtab): Update.
16822 * psympriv.h (struct partial_symbol) <address, text_low,
16823 text_high>: Update.
16824 * objfiles.h (obj_section_offset): Update.
16825 (struct objfile) <section_offsets>: Change type.
16826 <num_sections>: Remove.
16827 (objfile_relocate): Update.
16828 * objfiles.c (entry_point_address_query): Update
16829 (relocate_one_symbol): Change type of "section_offsets".
16830 (objfile_relocate1, objfile_relocate1): Change type of
16831 "new_offsets".
16832 (objfile_rebase1): Update.
16833 * mipsread.c (mipscoff_symfile_read): Update.
16834 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16835 parameter.
16836 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16837 (parse_external, psymtab_to_symtab_1): Update.
16838 * machoread.c (macho_symfile_offsets): Update.
16839 * ia64-tdep.c (ia64_find_unwind_table): Update.
16840 * hppa-tdep.c (read_unwind_info): Update.
16841 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16842 * dwarf2read.c (create_addrmap_from_index)
16843 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16844 (process_psymtab_comp_unit_reader, add_partial_symbol)
16845 (add_partial_subprogram, process_full_comp_unit)
16846 (read_file_scope, read_func_scope, read_lexical_block_scope)
16847 (read_call_site_scope, dwarf2_rnglists_process)
16848 (dwarf2_ranges_process, dwarf2_ranges_read)
16849 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16850 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16851 Update.
16852 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16853 Update.
16854 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16855 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16856 (process_one_symbol): Change type of "section_offsets".
16857 * ctfread.c (get_objfile_text_range): Update.
16858 * coffread.c (coff_symtab_read, enter_linenos)
16859 (process_coff_symbol): Update.
16860 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16861 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16862
456e800a
TT
168632020-01-08 Tom Tromey <tromey@adacore.com>
16864
16865 * dwarf2read.c (parse_macro_definition): Use std::string.
16866 (parse_macro_definition): Likewise.
16867
6dfa2fc2
TT
168682020-01-08 Tom Tromey <tromey@adacore.com>
16869
16870 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16871 (ATTR_ALLOC_CHUNK): Remove.
16872
421d1616
TT
168732020-01-08 Tom Tromey <tromey@adacore.com>
16874
16875 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16876
43816ebc
TT
168772020-01-08 Tom Tromey <tromey@adacore.com>
16878
16879 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16880 (dwarf2_compute_name, open_dwo_file): Likewise.
16881 (process_enumeration_scope): Use std::vector.
16882 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16883 (partial_die_info::fixup, dwarf2_start_subfile)
16884 (guess_full_die_structure_name, dwarf2_name): Likewise.
16885 (determine_prefix): Update.
16886 (guess_full_die_structure_name): Make return type const.
16887 (partial_die_full_name): Return unique_xmalloc_ptr.
16888 (DW_FIELD_ALLOC_CHUNK): Remove.
16889
4212d509
TT
168902020-01-07 Tom Tromey <tromey@adacore.com>
16891
16892 PR build/24937:
16893 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16894
06a6207a
JT
168952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16896
16897 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16898
153d79c4
AB
168992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16900
16901 * stack.c (print_frame_info): Move disassemble_next_line code
16902 inside source_print block.
16903
66182876
EZ
169042020-01-06 Eli Zaretskii <eliz@gnu.org>
16905
16906 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16907 gdb/signals.h, as we are now using native signal symbols.
16908
cbfa8581
SV
169092020-01-06 Shahab Vahedi <shahab@synopsys.com>
16910
16911 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16912 overflow by an early check of content vs threshold.
aac66a4c 16913 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16914 Likewise.
16915
3f602821
EZ
169162020-01-06 Eli Zaretskii <eliz@gnu.org>
16917
16918 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16919
a08c904d
JT
169202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16921
16922 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16923 export table if no section contains it's RVA.
16924
89a65580
EZ
169252020-01-06 Eli Zaretskii <eliz@gnu.org>
16926
16927 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16928
8b7fcda2
HD
169292020-01-06 Hannes Domani <ssbssa@yahoo.de>
16930
16931 * source.c (print_source_lines_base): Set last_line_listed.
16932
a61b4f69
SV
169332020-01-06 Shahab Vahedi <shahab@synopsys.com>
16934
16935 * tui/tui-disasm.c: Remove trailing spaces.
16936
559e7e50
EZ
169372020-01-06 Eli Zaretskii <eliz@gnu.org>
16938 Pedro Alves <palves@redhat.com>
16939
16940 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16941 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16942 (windows_gdb_signal_to_target): New function, uses the above
16943 enumeration to convert GDB internal signal codes to equivalent
16944 Windows codes.
16945 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16946 * windows-nat.c: Include "gdb_wait.h".
16947 (get_windows_debug_event): Extract the fatal exception from the
16948 exit status and convert to the equivalent Posix signal number.
16949 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16950 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16951 * gdbsupport/gdb_wait.c: New file, implements
16952 windows_status_to_termsig.
16953 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16954 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16955
f2302a34
AB
169562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16957
16958 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16959 show_layout.
16960
6a5206eb
LM
169612020-01-05 Luis Machado <luis.machado@linaro.org>
16962
16963 * aarch64-linux-nat.c
16964 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16965 and bfd_mach_aarch64.
16966
6ec1d75e
PW
169672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16968
16969 * ui-file.c (stdio_file::can_emit_style_escape)
16970 (tee_file::can_emit_style_escape): Ensure style is used also on
16971 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16972 to gdb_stdout.
16973 * main.c (set_gdb_data_directory): Use file style to output the
16974 warning that the given pathname is not a directory.
16975 * top.c (show_history_filename, gdb_safe_append_history)
16976 (show_gdb_datadir): Use file style.
16977
44f81a76
HD
169782020-01-03 Hannes Domani <ssbssa@yahoo.de>
16979
16980 * solib-target.c (struct lm_info_target):
16981 Change offsets to be a unique_xmalloc_ptr.
16982 (solib_target_relocate_section_addresses): Update.
16983
25057eb0
HD
169842020-01-03 Hannes Domani <ssbssa@yahoo.de>
16985
16986 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16987
6e2118f5
BE
169882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16989
16990 * MAINTAINERS (Write After Approval): Add myself.
16991
8133c7dc
LM
169922020-01-02 Luis Machado <luis.machado@linaro.org>
16993
16994 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16995 Cell BE architecture.
16996 * target.h (struct target_ops) <thread_architecture>: Likewise.
16997
48189bec
HD
169982020-01-01 Hannes Domani <ssbssa@yahoo.de>
16999
17000 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17001
ead1063b
HD
170022020-01-01 Hannes Domani <ssbssa@yahoo.de>
17003
17004 * MAINTAINERS (Write After Approval): Add myself.
17005
e5d78223
JB
170062020-01-01 Joel Brobecker <brobecker@adacore.com>
17007
17008 * gdbarch.sh: Update copyright year range of generated files.
17009
b811d2c2
JB
170102020-01-01 Joel Brobecker <brobecker@adacore.com>
17011
17012 Update copyright year range in all GDB files.
17013
5f4def5c
JB
170142020-01-01 Joel Brobecker <brobecker@adacore.com>
17015
17016 * copyright.py: Convert to Python 3.
17017
51fd4002
JB
170182020-01-01 Joel Brobecker <brobecker@adacore.com>
17019
17020 * copyright.py: Adapt after move of gnulib directory from gdb
17021 directory to toplevel directory.
17022
5fb651f2
JB
170232020-01-01 Joel Brobecker <brobecker@adacore.com>
17024
17025 * copyright.py (main): Exit if run from the wrong directory.
17026
5dd8bf88
JB
170272020-01-01 Joel Brobecker <brobecker@adacore.com>
17028
17029 * top.c (print_gdb_version): Change copyright year to 2020.
17030
9f71dacb 170312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17032
9f71dacb 17033 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17034
9f71dacb 17035For older changes see ChangeLog-2019.
c906108c
SS
17036\f
17037Local Variables:
17038mode: change-log
17039left-margin: 8
17040fill-column: 74
17041version-control: never
57da7796 17042coding: utf-8
c906108c 17043End: