gdb/testsuite: gdb.mi/mi-nonstop-exit.exp: enable non-stop using GDBFLAGS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5d8254e1
TV
12020-11-18 Tom de Vries <tdevries@suse.de>
2
3 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
4 warning.
5
584903d3
SM
62020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * gdbtypes.h (get_array_bounds): Return bool, adjust some
9 callers. Move doc here.
10 * gdbtypes.c (get_array_bounds): Return bool
11
6f2643db
AB
122020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
15 assert.
16 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
17 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
18 case to the default.
19
037d7135
AB
202020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * printcmd.c: Include 'safe-ctype.c'.
23 (skip_over_slash_fmt): New function.
24 (print_command_completer): Call skip_over_slash_fmt.
25 (display_and_x_command_completer): New function.
26 (_initialize_printcmd): Add command completion for 'x' and
27 'display'.
28
2b3cb400
PA
292020-11-16 Pedro Alves <pedro@palves.net>
30
31 * frame.c (get_prev_frame): Move get_frame_id call from here ...
32 (get_prev_frame_always_1): ... to here.
33 * inline-frame.c (inline_frame_this_id): Mention
34 get_prev_frame_always_1 in comment.
35
b74dbc20
JB
362020-11-15 Joel Brobecker <brobecker@adacore.com>
37
38 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
39 handling.
40 (value_less): Add fixed-point handling.
41
0a12719e
JB
422020-11-15 Joel Brobecker <brobecker@adacore.com>
43
44 * eval.c (binop_promote): Add fixed-point type handling.
45 * valarith.c (fixed_point_binop): New function.
46 (scalar_binop): Add fixed-point type handling.
47 (value_neg): Add fixed-point type handling.
48 * valops.c (value_cast_to_fixed_point): New function.
49 (value_cast): Add fixed-point type handling.
50
0c9150e4
JB
512020-11-15 Joel Brobecker <brobecker@adacore.com>
52
53 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
54 range types.
55 * c-typeprint.c (c_type_print_varspec_prefix)
56 (c_type_print_varspec_suffix, c_type_print_base_1): Add
57 TYPE_CODE_FIXED_POINT handling.
58 * p-typeprint.c (pascal_type_print_varspec_prefix)
59 (pascal_type_print_varspec_suffix): Likewise.
60 * typeprint.c (print_type_fixed_point): New function.
61 * typeprint.h (print_type_fixed_point): Add declaration.
62
b26daff9
JB
632020-11-15 Joel Brobecker <brobecker@adacore.com>
64
65 * printcmd.c (print_scalar_formatted): Add fixed-point type
66 handling when options->format is set.
67
09584414
JB
682020-11-15 Joel Brobecker <brobecker@adacore.com>
69
70 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
71 * dwarf2/read.c (get_dwarf2_rational_constant)
72 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
73 (has_zero_over_zero_small_attribute): New functions.
74 read_base_type, set_die_type): Add fixed-point type handling.
75 * gdb-gdb.py.in: Add fixed-point type handling.
76 * gdbtypes.c: #include "gmp-utils.h".
77 (create_range_type, set_type_code): Add fixed-point type handling.
78 (init_fixed_point_type): New function.
79 (is_integral_type, is_scalar_type): Add fixed-point type handling.
80 (print_fixed_point_type_info): New function.
81 (recursive_dump_type, copy_type_recursive): Add fixed-point type
82 handling.
83 (fixed_point_type_storage): New typedef.
84 (fixed_point_objfile_key): New static global.
85 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
86 (fixed_point_type_base_type, fixed_point_scaling_factor): New
87 functions.
88 * gdbtypes.h: #include "gmp-utils.h".
89 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
90 (union type_specific) <fixed_point_info>: New field.
91 (struct fixed_point_type_info): New struct.
92 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
93 (init_fixed_point_type, is_fixed_point_type)
94 (fixed_point_type_base_type, fixed_point_scaling_factor)
95 (allocate_fixed_point_type_info): Add declarations.
96 * valprint.c (generic_val_print_fixed_point): New function.
97 (generic_value_print): Add fixed-point type handling.
98 * value.c (value_as_address, unpack_long): Add fixed-point type
99 handling.
100
e55c6530
JB
1012020-11-15 Joel Brobecker <brobecker@adacore.com>
102
103 * utils.h (uinteger_pow): Add declaration.
104 * utils.c (uinteger_pow): Moved here (without changes)...
105 * valarith.c (uinteger_pow): ... from here.
106
b34c74ab
JB
1072020-11-15 Joel Brobecker <brobecker@adacore.com>
108
40d9d2fd 109 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
110 * unittests/gmp-utils-selftests.c: New file.
111 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
112 unittests/gmp-utils-selftests.c.
113 (COMMON_SFILES) Add gmp-utils.c.
114 (HFILES_NO_SRCDIR): Add gmp-utils.h.
115
1b4ac058
JB
1162020-11-15 Joel Brobecker <brobecker@adacore.com>
117
118 * configure.ac: Generate an error if a usable GMP library
119 could not be found.
120 * configure: Regenerate.
121
2c947d9b
JB
1222020-11-15 Joel Brobecker <brobecker@adacore.com>
123
124 * configure.ac: Add support for --with-libgmp-prefix.
125 * Makefile.in (LIBGMP): New variable.
126 (CLIBS): Include $(LIBGMP).
127 * configure, config.in: Regenerate
128
9dd02fc0
AB
1292020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 PR cli/26879
132 * f-exp.y (COMPLETE): New token.
133 (exp): Two new rules for tab-completion.
134 (saw_name_at_eof): New static global.
135 (last_was_structop): Likewise.
136 (yylex): Set new variables, and return COMPLETE token at the end
137 of the input stream in some cases.
138
758cb810
TT
1392020-11-14 Tom Tromey <tom@tromey.com>
140
141 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
142
749065b7
TT
1432020-11-14 Tom Tromey <tom@tromey.com>
144
145 * opencl-lang.c (opencl_component_ref): Make "comps" const.
146
2c5b1849
SM
1472020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
150
e8b2f0d9
TT
1512020-11-13 Tom Tromey <tom@tromey.com>
152
153 * c-lang.c (convert_ucn, convert_octal, convert_hex)
154 (convert_escape, parse_one_string): Constify.
155
25f4c262
KS
1562020-11-13 Keith Seitz <keiths@redhat.com>
157
158 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
159 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
160 outside of ELF segments" warning for debugin
161
9d3ab915
KS
1622020-11-13 Keith Seitz <keiths@redhat.com>
163
164 PR gdb/23034
165 * elfread.c (elf_symfile_segments): Output a BFD file name
166 for the "Loadable section ... outside of ELF segments" warning.
167
9ecab40c
SM
1682020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
169
170 PR gdb/26835
171 * arm-tdep.c (class arm_instruction_reader): New.
172 (target_arm_instruction_reader): New.
173 (arm_analyze_prologue): Add instruction reader parameter and use
174 it. Use arm_expand_immediate.
175 (class target_arm_instruction_reader): Adjust.
176 (arm_skip_prologue): Adjust.
177 (arm_expand_immediate): New.
178 (arm_scan_prologue): Adjust.
179 (arm_analyze_prologue_test): New.
180 (class test_arm_instruction_reader): New.
181
5a7cf527
AB
1822020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * f-lang.c (fortran_argument_convert): Add declaration. Add
185 header comment, taken from f-lang.h. Make static.
186 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
187 (fortran_argument_convert): Delete declaration.
188
7bea47f0
AB
1892020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * ada-exp.y (find_primitive_type): Make parameter const.
192 * ada-lang.c (enum ada_primitive_types): Delete.
193 (ada_language::language_arch_info): Update.
194 * c-lang.c (enum c_primitive_types): Delete.
195 (c_language_arch_info): Update.
196 (enum cplus_primitive_types): Delete.
197 (cplus_language::language_arch_info): Update.
198 * d-lang.c (enum d_primitive_types): Delete.
199 (d_language::language_arch_info): Update.
200 * f-lang.c (enum f_primitive_types): Delete.
201 (f_language::language_arch_info): Update.
202 * go-lang.c (enum go_primitive_types): Delete.
203 (go_language::language_arch_info): Update.
204 * language.c (auto_or_unknown_language::language_arch_info):
205 Update.
206 (language_gdbarch_post_init): Use obstack_new, use array indexing.
207 (language_string_char_type): Add header comment, call function in
208 language_arch_info.
209 (language_bool_type): Likewise
210 (language_arch_info::bool_type): Define.
211 (language_lookup_primitive_type_1): Delete.
212 (language_lookup_primitive_type): Rewrite as a templated function
213 to call function in language_arch_info, then instantiate twice.
214 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
215 (language_arch_info::lookup_primitive_type_and_symbol): Define.
216 (language_arch_info::lookup_primitive_type): Define twice with
217 different signatures.
218 (language_arch_info::lookup_primitive_type_as_symbol): Define.
219 (language_lookup_primitive_type_as_symbol): Rewrite to call a
220 member function in language_arch_info.
221 * language.h (language_arch_info): Complete rewrite.
222 (language_lookup_primitive_type): Make templated.
223 * m2-lang.c (enum m2_primitive_types): Delete.
224 (m2_language::language_arch_info): Update.
225 * opencl-lang.c (OCL_P_TYPE): Delete.
226 (enum opencl_primitive_types): Delete.
227 (opencl_type_data): Delete.
228 (builtin_opencl_type): Delete.
229 (lookup_opencl_vector_type): Update.
230 (opencl_language::language_arch_info): Update, lots of content
231 moved from...
232 (build_opencl_types): ...here. This function is now deleted.
233 (_initialize_opencl_language): Delete.
234 * p-lang.c (enum pascal_primitive_types): Delete.
235 (pascal_language::language_arch_info): Update.
236 * rust-lang.c (enum rust_primitive_types): Delete.
237 (rust_language::language_arch_info): Update.
238
bf6e5d01
SM
2392020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
242 dwarf2_queue_guard.
243
1350c3b4
SM
2442020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
247 comment.
248
6f738b01
SM
2492020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * dwarf2/read.c (dwarf_read_debug_printf,
252 dwarf_read_debug_printf_v): New macros, use throughout the file.
253
10c19fad
SV
2542020-11-12 Shahab Vahedi <shahab@synopsys.com>
255
256 * arc-linux-tdep.c (collect_register): Populate "eret" by
257 "pc" value from the regcache when asked for "pc" value.
258
1f2624a3
TT
2592020-11-12 Tom Tromey <tom@tromey.com>
260
261 PR rust/26799:
262 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
263 exist.
264
ab33b152
AB
2652020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * features/Makefile (XMLTOC): Add rx.xml.
268 (FEATURE_XMLFILES): Remove rx.xml.
269 (FEATURE_CFILES rule): Pass '-single-feature' flag.
270 * features/rx.c: Regenerate.
271 * features/rx.xml: Wrap in `target` tags, and reindent.
272 * target-descriptions.c (struct maint_print_c_tdesc_options): New
273 structure.
274 (maint_print_c_tdesc_opt_def): New typedef.
275 (maint_print_c_tdesc_opt_defs): New static global.
276 (make_maint_print_c_tdesc_options_def_group): New function.
277 (maint_print_c_tdesc_cmd): Make use of command line flags, only
278 print single feature C file for target descriptions containing a
279 single feature.
280 (maint_print_c_tdesc_cmd_completer): New function.
281 (_initialize_target_descriptions): Update call to register command
282 completer, and include command line flag in help text.
283
550820e1
AB
2842020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
287 numbers.
288 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
289 enum values.
290
baf20f76
TT
2912020-11-10 Tom Tromey <tom@tromey.com>
292
293 * value.h (internalvar_name): Update.
294 * value.c (internalvar_name): Make return type const.
295
caaece0e
TT
2962020-11-10 Tom Tromey <tom@tromey.com>
297
298 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
299 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
300 const.
301
8e20b4be
TT
3022020-11-10 Tom Tromey <tom@tromey.com>
303
304 * objc-lang.h (value_nsstring): Update.
305 * objc-lang.c (value_nsstring): Make "ptr" const.
306
86775fab
AB
3072020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * expprint.c (print_subexp_funcall): Increment expression position
310 after reading argument count.
311 * f-lang.c (print_subexp_f): Skip over opcode before calling
312 common function.
313 (dump_subexp_body_f): Likewise.
314
3fed4c0b
RG
3152020-11-06 Romain Geissler <romain.geissler@amadeus.com>
316
317 PR python/26832
318 * configure: Regenerate.
319 * configure.ac: Check for python modules ctypes instead of
320 itertools.
321
ac3d4064
PA
3222020-11-06 Pedro Alves <pedro@palves.net>
323
324 * macroexp.c (struct macro_buffer): Split in two classes. Add
325 uses adjusted.
326 (struct shared_macro_buffer): New, factored out from struct
327 macro_buffer.
328 (struct growable_macro_buffer): New, factored out from struct
329 macro_buffer.
330 (set_token, get_comment, get_identifier, get_pp_number)
331 (get_character_constant, get_string_literal, get_punctuator)
332 (get_next_token_for_substitution): Constify parameters.
333 (substitute_args): Constify locals.
334
606decb2
TT
3352020-11-05 Tom Tromey <tom@tromey.com>
336
337 * dwarf2/read.c (read_cutu_die_from_dwo)
338 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
339 (build_type_psymtabs_1): Update.
340 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
341 parameter.
342 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
343 Don't read section. Add assert.
344
9c91c725
TT
3452020-11-04 Tom Tromey <tromey@adacore.com>
346
347 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
348
8d9fd3a1
TT
3492020-11-04 Tom Tromey <tromey@adacore.com>
350
351 * ada-typeprint.c (ada_print_type): Handle __T types.
352
d8f62e84
TT
3532020-11-04 Tom Tromey <tromey@adacore.com>
354
355 * dwarf2/read.c (add_partial_symbol, process_die):
356 Handle DW_TAG_array_type.
357 (is_type_tag_for_partial): Add "lang" parameter.
358 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
359
7ff5b937
TT
3602020-11-04 Tom Tromey <tromey@adacore.com>
361
362 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
363
10f6a3ad
TT
3642020-11-04 Tom Tromey <tromey@adacore.com>
365
366 * dwarf2/read.c (read_array_type): Only apply stride to innermost
367 array.
368
b72795a8
TT
3692020-11-04 Tom Tromey <tromey@adacore.com>
370
371 * gdbtypes.c (update_static_array_size): Handle bit stride.
372
24aa1b02
TT
3732020-11-04 Tom Tromey <tromey@adacore.com>
374
375 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
376
c9a28cbe
TT
3772020-11-04 Tom Tromey <tromey@adacore.com>
378
379 * ada-lang.c (ada_is_any_packed_array_type): New function.
380 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
381
57567375
TT
3822020-11-04 Tom Tromey <tromey@adacore.com>
383
384 * dwarf2/read.c (recognize_bound_expression)
385 (quirk_ada_thick_pointer): New functions.
386 (read_array_type): Call quirk_ada_thick_pointer.
387 (set_die_type): Add "skip_data_location" parameter.
388 (quirk_ada_thick_pointer): New function.
389 (process_structure_scope): Call quirk_ada_thick_pointer.
390 * ada-lang.c (ada_is_unconstrained_packed_array_type)
391 (decode_packed_array_bitsize): Handle thick pointers without
392 parallel types.
393 (ada_is_gnat_encoded_packed_array_type): Rename from
394 ada_is_packed_array_type.
395 (ada_is_constrained_packed_array_type): Update.
396 * ada-valprint.c (ada_val_print_gnat_array): Remove.
397 (ada_value_print_1): Use ada_get_decoded_value.
398
a7400e44
TT
3992020-11-04 Tom Tromey <tromey@adacore.com>
400
401 * ada-lang.c (recursively_update_array_bitsize): New function.
402 (decode_constrained_packed_array_type): Call it.
403
75fd6a26
TT
4042020-11-04 Tom Tromey <tromey@adacore.com>
405
406 * ada-lang.c (to_fixed_array_type): Error if
407 decode_constrained_packed_array_type returns NULL.
408
93f9561e
TT
4092020-11-04 Tom Tromey <tromey@adacore.com>
410
411 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
412
257e02d8
TT
4132020-11-02 Tom Tromey <tromey@adacore.com>
414
415 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
416 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
417 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
418 * amd64-ravenscar-thread.c: New file.
419 * amd64-ravenscar-thread.h: New file.
420 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
421 * configure.tgt (amd64_tobjs): Add ravenscar objects.
422
74d877e5
AB
4232020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * main.c (execute_cmdargs): New function.
426 (captured_main_1): Make use of execute_cmdargs.
427
64aaad63
AB
4282020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * NEWS: Mention changes to config file search path.
431 * main.c
432
5b3d3560
TT
4332020-11-02 Tom Tromey <tromey@adacore.com>
434
435 * python/python.c: Consolidate two HAVE_PYTHON blocks.
436 (python_GdbModuleDef): Move earlier. Now static.
437 (do_start_initialization): Consolidate some IS_PY3K blocks.
438
dda83cd7
SM
4392020-11-02 Simon Marchi <simon.marchi@efficios.com>
440
441 * aarch64-linux-tdep.c: Fix indentation.
442 * aarch64-ravenscar-thread.c: Fix indentation.
443 * aarch64-tdep.c: Fix indentation.
444 * aarch64-tdep.h: Fix indentation.
445 * ada-lang.c: Fix indentation.
446 * ada-lang.h: Fix indentation.
447 * ada-tasks.c: Fix indentation.
448 * ada-typeprint.c: Fix indentation.
449 * ada-valprint.c: Fix indentation.
450 * ada-varobj.c: Fix indentation.
451 * addrmap.c: Fix indentation.
452 * addrmap.h: Fix indentation.
453 * agent.c: Fix indentation.
454 * aix-thread.c: Fix indentation.
455 * alpha-bsd-nat.c: Fix indentation.
456 * alpha-linux-tdep.c: Fix indentation.
457 * alpha-mdebug-tdep.c: Fix indentation.
458 * alpha-nbsd-tdep.c: Fix indentation.
459 * alpha-obsd-tdep.c: Fix indentation.
460 * alpha-tdep.c: Fix indentation.
461 * amd64-bsd-nat.c: Fix indentation.
462 * amd64-darwin-tdep.c: Fix indentation.
463 * amd64-linux-nat.c: Fix indentation.
464 * amd64-linux-tdep.c: Fix indentation.
465 * amd64-nat.c: Fix indentation.
466 * amd64-obsd-tdep.c: Fix indentation.
467 * amd64-tdep.c: Fix indentation.
468 * amd64-windows-tdep.c: Fix indentation.
469 * annotate.c: Fix indentation.
470 * arc-tdep.c: Fix indentation.
471 * arch-utils.c: Fix indentation.
472 * arch/arm-get-next-pcs.c: Fix indentation.
473 * arch/arm.c: Fix indentation.
474 * arm-linux-nat.c: Fix indentation.
475 * arm-linux-tdep.c: Fix indentation.
476 * arm-nbsd-tdep.c: Fix indentation.
477 * arm-pikeos-tdep.c: Fix indentation.
478 * arm-tdep.c: Fix indentation.
479 * arm-tdep.h: Fix indentation.
480 * arm-wince-tdep.c: Fix indentation.
481 * auto-load.c: Fix indentation.
482 * auxv.c: Fix indentation.
483 * avr-tdep.c: Fix indentation.
484 * ax-gdb.c: Fix indentation.
485 * ax-general.c: Fix indentation.
486 * bfin-linux-tdep.c: Fix indentation.
487 * block.c: Fix indentation.
488 * block.h: Fix indentation.
489 * blockframe.c: Fix indentation.
490 * bpf-tdep.c: Fix indentation.
491 * break-catch-sig.c: Fix indentation.
492 * break-catch-syscall.c: Fix indentation.
493 * break-catch-throw.c: Fix indentation.
494 * breakpoint.c: Fix indentation.
495 * breakpoint.h: Fix indentation.
496 * bsd-uthread.c: Fix indentation.
497 * btrace.c: Fix indentation.
498 * build-id.c: Fix indentation.
499 * buildsym-legacy.h: Fix indentation.
500 * buildsym.c: Fix indentation.
501 * c-typeprint.c: Fix indentation.
502 * c-valprint.c: Fix indentation.
503 * c-varobj.c: Fix indentation.
504 * charset.c: Fix indentation.
505 * cli/cli-cmds.c: Fix indentation.
506 * cli/cli-decode.c: Fix indentation.
507 * cli/cli-decode.h: Fix indentation.
508 * cli/cli-script.c: Fix indentation.
509 * cli/cli-setshow.c: Fix indentation.
510 * coff-pe-read.c: Fix indentation.
511 * coffread.c: Fix indentation.
512 * compile/compile-cplus-types.c: Fix indentation.
513 * compile/compile-object-load.c: Fix indentation.
514 * compile/compile-object-run.c: Fix indentation.
515 * completer.c: Fix indentation.
516 * corefile.c: Fix indentation.
517 * corelow.c: Fix indentation.
518 * cp-abi.h: Fix indentation.
519 * cp-namespace.c: Fix indentation.
520 * cp-support.c: Fix indentation.
521 * cp-valprint.c: Fix indentation.
522 * cris-linux-tdep.c: Fix indentation.
523 * cris-tdep.c: Fix indentation.
524 * darwin-nat-info.c: Fix indentation.
525 * darwin-nat.c: Fix indentation.
526 * darwin-nat.h: Fix indentation.
527 * dbxread.c: Fix indentation.
528 * dcache.c: Fix indentation.
529 * disasm.c: Fix indentation.
530 * dtrace-probe.c: Fix indentation.
531 * dwarf2/abbrev.c: Fix indentation.
532 * dwarf2/attribute.c: Fix indentation.
533 * dwarf2/expr.c: Fix indentation.
534 * dwarf2/frame.c: Fix indentation.
535 * dwarf2/index-cache.c: Fix indentation.
536 * dwarf2/index-write.c: Fix indentation.
537 * dwarf2/line-header.c: Fix indentation.
538 * dwarf2/loc.c: Fix indentation.
539 * dwarf2/macro.c: Fix indentation.
540 * dwarf2/read.c: Fix indentation.
541 * dwarf2/read.h: Fix indentation.
542 * elfread.c: Fix indentation.
543 * eval.c: Fix indentation.
544 * event-top.c: Fix indentation.
545 * exec.c: Fix indentation.
546 * exec.h: Fix indentation.
547 * expprint.c: Fix indentation.
548 * f-lang.c: Fix indentation.
549 * f-typeprint.c: Fix indentation.
550 * f-valprint.c: Fix indentation.
551 * fbsd-nat.c: Fix indentation.
552 * fbsd-tdep.c: Fix indentation.
553 * findvar.c: Fix indentation.
554 * fork-child.c: Fix indentation.
555 * frame-unwind.c: Fix indentation.
556 * frame-unwind.h: Fix indentation.
557 * frame.c: Fix indentation.
558 * frv-linux-tdep.c: Fix indentation.
559 * frv-tdep.c: Fix indentation.
560 * frv-tdep.h: Fix indentation.
561 * ft32-tdep.c: Fix indentation.
562 * gcore.c: Fix indentation.
563 * gdb_bfd.c: Fix indentation.
564 * gdbarch.sh: Fix indentation.
565 * gdbarch.c: Re-generate
566 * gdbarch.h: Re-generate.
567 * gdbcore.h: Fix indentation.
568 * gdbthread.h: Fix indentation.
569 * gdbtypes.c: Fix indentation.
570 * gdbtypes.h: Fix indentation.
571 * glibc-tdep.c: Fix indentation.
572 * gnu-nat.c: Fix indentation.
573 * gnu-nat.h: Fix indentation.
574 * gnu-v2-abi.c: Fix indentation.
575 * gnu-v3-abi.c: Fix indentation.
576 * go32-nat.c: Fix indentation.
577 * guile/guile-internal.h: Fix indentation.
578 * guile/scm-cmd.c: Fix indentation.
579 * guile/scm-frame.c: Fix indentation.
580 * guile/scm-iterator.c: Fix indentation.
581 * guile/scm-math.c: Fix indentation.
582 * guile/scm-ports.c: Fix indentation.
583 * guile/scm-pretty-print.c: Fix indentation.
584 * guile/scm-value.c: Fix indentation.
585 * h8300-tdep.c: Fix indentation.
586 * hppa-linux-nat.c: Fix indentation.
587 * hppa-linux-tdep.c: Fix indentation.
588 * hppa-nbsd-nat.c: Fix indentation.
589 * hppa-nbsd-tdep.c: Fix indentation.
590 * hppa-obsd-nat.c: Fix indentation.
591 * hppa-tdep.c: Fix indentation.
592 * hppa-tdep.h: Fix indentation.
593 * i386-bsd-nat.c: Fix indentation.
594 * i386-darwin-nat.c: Fix indentation.
595 * i386-darwin-tdep.c: Fix indentation.
596 * i386-dicos-tdep.c: Fix indentation.
597 * i386-gnu-nat.c: Fix indentation.
598 * i386-linux-nat.c: Fix indentation.
599 * i386-linux-tdep.c: Fix indentation.
600 * i386-nto-tdep.c: Fix indentation.
601 * i386-obsd-tdep.c: Fix indentation.
602 * i386-sol2-nat.c: Fix indentation.
603 * i386-tdep.c: Fix indentation.
604 * i386-tdep.h: Fix indentation.
605 * i386-windows-tdep.c: Fix indentation.
606 * i387-tdep.c: Fix indentation.
607 * i387-tdep.h: Fix indentation.
608 * ia64-libunwind-tdep.c: Fix indentation.
609 * ia64-libunwind-tdep.h: Fix indentation.
610 * ia64-linux-nat.c: Fix indentation.
611 * ia64-linux-tdep.c: Fix indentation.
612 * ia64-tdep.c: Fix indentation.
613 * ia64-tdep.h: Fix indentation.
614 * ia64-vms-tdep.c: Fix indentation.
615 * infcall.c: Fix indentation.
616 * infcmd.c: Fix indentation.
617 * inferior.c: Fix indentation.
618 * infrun.c: Fix indentation.
619 * iq2000-tdep.c: Fix indentation.
620 * language.c: Fix indentation.
621 * linespec.c: Fix indentation.
622 * linux-fork.c: Fix indentation.
623 * linux-nat.c: Fix indentation.
624 * linux-tdep.c: Fix indentation.
625 * linux-thread-db.c: Fix indentation.
626 * lm32-tdep.c: Fix indentation.
627 * m2-lang.c: Fix indentation.
628 * m2-typeprint.c: Fix indentation.
629 * m2-valprint.c: Fix indentation.
630 * m32c-tdep.c: Fix indentation.
631 * m32r-linux-tdep.c: Fix indentation.
632 * m32r-tdep.c: Fix indentation.
633 * m68hc11-tdep.c: Fix indentation.
634 * m68k-bsd-nat.c: Fix indentation.
635 * m68k-linux-nat.c: Fix indentation.
636 * m68k-linux-tdep.c: Fix indentation.
637 * m68k-tdep.c: Fix indentation.
638 * machoread.c: Fix indentation.
639 * macrocmd.c: Fix indentation.
640 * macroexp.c: Fix indentation.
641 * macroscope.c: Fix indentation.
642 * macrotab.c: Fix indentation.
643 * macrotab.h: Fix indentation.
644 * main.c: Fix indentation.
645 * mdebugread.c: Fix indentation.
646 * mep-tdep.c: Fix indentation.
647 * mi/mi-cmd-catch.c: Fix indentation.
648 * mi/mi-cmd-disas.c: Fix indentation.
649 * mi/mi-cmd-env.c: Fix indentation.
650 * mi/mi-cmd-stack.c: Fix indentation.
651 * mi/mi-cmd-var.c: Fix indentation.
652 * mi/mi-cmds.c: Fix indentation.
653 * mi/mi-main.c: Fix indentation.
654 * mi/mi-parse.c: Fix indentation.
655 * microblaze-tdep.c: Fix indentation.
656 * minidebug.c: Fix indentation.
657 * minsyms.c: Fix indentation.
658 * mips-linux-nat.c: Fix indentation.
659 * mips-linux-tdep.c: Fix indentation.
660 * mips-nbsd-tdep.c: Fix indentation.
661 * mips-tdep.c: Fix indentation.
662 * mn10300-linux-tdep.c: Fix indentation.
663 * mn10300-tdep.c: Fix indentation.
664 * moxie-tdep.c: Fix indentation.
665 * msp430-tdep.c: Fix indentation.
666 * namespace.h: Fix indentation.
667 * nat/fork-inferior.c: Fix indentation.
668 * nat/gdb_ptrace.h: Fix indentation.
669 * nat/linux-namespaces.c: Fix indentation.
670 * nat/linux-osdata.c: Fix indentation.
671 * nat/netbsd-nat.c: Fix indentation.
672 * nat/x86-dregs.c: Fix indentation.
673 * nbsd-nat.c: Fix indentation.
674 * nbsd-tdep.c: Fix indentation.
675 * nios2-linux-tdep.c: Fix indentation.
676 * nios2-tdep.c: Fix indentation.
677 * nto-procfs.c: Fix indentation.
678 * nto-tdep.c: Fix indentation.
679 * objfiles.c: Fix indentation.
680 * objfiles.h: Fix indentation.
681 * opencl-lang.c: Fix indentation.
682 * or1k-tdep.c: Fix indentation.
683 * osabi.c: Fix indentation.
684 * osabi.h: Fix indentation.
685 * osdata.c: Fix indentation.
686 * p-lang.c: Fix indentation.
687 * p-typeprint.c: Fix indentation.
688 * p-valprint.c: Fix indentation.
689 * parse.c: Fix indentation.
690 * ppc-linux-nat.c: Fix indentation.
691 * ppc-linux-tdep.c: Fix indentation.
692 * ppc-nbsd-nat.c: Fix indentation.
693 * ppc-nbsd-tdep.c: Fix indentation.
694 * ppc-obsd-nat.c: Fix indentation.
695 * ppc-ravenscar-thread.c: Fix indentation.
696 * ppc-sysv-tdep.c: Fix indentation.
697 * ppc64-tdep.c: Fix indentation.
698 * printcmd.c: Fix indentation.
699 * proc-api.c: Fix indentation.
700 * producer.c: Fix indentation.
701 * producer.h: Fix indentation.
702 * prologue-value.c: Fix indentation.
703 * prologue-value.h: Fix indentation.
704 * psymtab.c: Fix indentation.
705 * python/py-arch.c: Fix indentation.
706 * python/py-bpevent.c: Fix indentation.
707 * python/py-event.c: Fix indentation.
708 * python/py-event.h: Fix indentation.
709 * python/py-finishbreakpoint.c: Fix indentation.
710 * python/py-frame.c: Fix indentation.
711 * python/py-framefilter.c: Fix indentation.
712 * python/py-inferior.c: Fix indentation.
713 * python/py-infthread.c: Fix indentation.
714 * python/py-objfile.c: Fix indentation.
715 * python/py-prettyprint.c: Fix indentation.
716 * python/py-registers.c: Fix indentation.
717 * python/py-signalevent.c: Fix indentation.
718 * python/py-stopevent.c: Fix indentation.
719 * python/py-stopevent.h: Fix indentation.
720 * python/py-threadevent.c: Fix indentation.
721 * python/py-tui.c: Fix indentation.
722 * python/py-unwind.c: Fix indentation.
723 * python/py-value.c: Fix indentation.
724 * python/py-xmethods.c: Fix indentation.
725 * python/python-internal.h: Fix indentation.
726 * python/python.c: Fix indentation.
727 * ravenscar-thread.c: Fix indentation.
728 * record-btrace.c: Fix indentation.
729 * record-full.c: Fix indentation.
730 * record.c: Fix indentation.
731 * reggroups.c: Fix indentation.
732 * regset.h: Fix indentation.
733 * remote-fileio.c: Fix indentation.
734 * remote.c: Fix indentation.
735 * reverse.c: Fix indentation.
736 * riscv-linux-tdep.c: Fix indentation.
737 * riscv-ravenscar-thread.c: Fix indentation.
738 * riscv-tdep.c: Fix indentation.
739 * rl78-tdep.c: Fix indentation.
740 * rs6000-aix-tdep.c: Fix indentation.
741 * rs6000-lynx178-tdep.c: Fix indentation.
742 * rs6000-nat.c: Fix indentation.
743 * rs6000-tdep.c: Fix indentation.
744 * rust-lang.c: Fix indentation.
745 * rx-tdep.c: Fix indentation.
746 * s12z-tdep.c: Fix indentation.
747 * s390-linux-tdep.c: Fix indentation.
748 * score-tdep.c: Fix indentation.
749 * ser-base.c: Fix indentation.
750 * ser-mingw.c: Fix indentation.
751 * ser-uds.c: Fix indentation.
752 * ser-unix.c: Fix indentation.
753 * serial.c: Fix indentation.
754 * sh-linux-tdep.c: Fix indentation.
755 * sh-nbsd-tdep.c: Fix indentation.
756 * sh-tdep.c: Fix indentation.
757 * skip.c: Fix indentation.
758 * sol-thread.c: Fix indentation.
759 * solib-aix.c: Fix indentation.
760 * solib-darwin.c: Fix indentation.
761 * solib-frv.c: Fix indentation.
762 * solib-svr4.c: Fix indentation.
763 * solib.c: Fix indentation.
764 * source.c: Fix indentation.
765 * sparc-linux-tdep.c: Fix indentation.
766 * sparc-nbsd-tdep.c: Fix indentation.
767 * sparc-obsd-tdep.c: Fix indentation.
768 * sparc-ravenscar-thread.c: Fix indentation.
769 * sparc-tdep.c: Fix indentation.
770 * sparc64-linux-tdep.c: Fix indentation.
771 * sparc64-nbsd-tdep.c: Fix indentation.
772 * sparc64-obsd-tdep.c: Fix indentation.
773 * sparc64-tdep.c: Fix indentation.
774 * stabsread.c: Fix indentation.
775 * stack.c: Fix indentation.
776 * stap-probe.c: Fix indentation.
777 * stubs/ia64vms-stub.c: Fix indentation.
778 * stubs/m32r-stub.c: Fix indentation.
779 * stubs/m68k-stub.c: Fix indentation.
780 * stubs/sh-stub.c: Fix indentation.
781 * stubs/sparc-stub.c: Fix indentation.
782 * symfile-mem.c: Fix indentation.
783 * symfile.c: Fix indentation.
784 * symfile.h: Fix indentation.
785 * symmisc.c: Fix indentation.
786 * symtab.c: Fix indentation.
787 * symtab.h: Fix indentation.
788 * target-float.c: Fix indentation.
789 * target.c: Fix indentation.
790 * target.h: Fix indentation.
791 * tic6x-tdep.c: Fix indentation.
792 * tilegx-linux-tdep.c: Fix indentation.
793 * tilegx-tdep.c: Fix indentation.
794 * top.c: Fix indentation.
795 * tracefile-tfile.c: Fix indentation.
796 * tracepoint.c: Fix indentation.
797 * tui/tui-disasm.c: Fix indentation.
798 * tui/tui-io.c: Fix indentation.
799 * tui/tui-regs.c: Fix indentation.
800 * tui/tui-stack.c: Fix indentation.
801 * tui/tui-win.c: Fix indentation.
802 * tui/tui-winsource.c: Fix indentation.
803 * tui/tui.c: Fix indentation.
804 * typeprint.c: Fix indentation.
805 * ui-out.h: Fix indentation.
806 * unittests/copy_bitwise-selftests.c: Fix indentation.
807 * unittests/memory-map-selftests.c: Fix indentation.
808 * utils.c: Fix indentation.
809 * v850-tdep.c: Fix indentation.
810 * valarith.c: Fix indentation.
811 * valops.c: Fix indentation.
812 * valprint.c: Fix indentation.
813 * valprint.h: Fix indentation.
814 * value.c: Fix indentation.
815 * value.h: Fix indentation.
816 * varobj.c: Fix indentation.
817 * vax-tdep.c: Fix indentation.
818 * windows-nat.c: Fix indentation.
819 * windows-tdep.c: Fix indentation.
820 * xcoffread.c: Fix indentation.
821 * xml-syscall.c: Fix indentation.
822 * xml-tdesc.c: Fix indentation.
823 * xstormy16-tdep.c: Fix indentation.
824 * xtensa-config.c: Fix indentation.
825 * xtensa-linux-nat.c: Fix indentation.
826 * xtensa-linux-tdep.c: Fix indentation.
827 * xtensa-tdep.c: Fix indentation.
828
e1f57067
AB
8292020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
830 Craig Blackmore <craig.blackmore@embecosm.com>
831
832 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
833 as an unsigned value.
834
ae7754b2
TT
8352020-11-01 Tom Tromey <tom@tromey.com>
836
837 * dbxread.c (dbx_end_psymtab): Update.
838 * dwarf2/read.c (process_psymtab_comp_unit_reader)
839 (build_type_psymtabs_reader): Update.
840 * xcoffread.c (xcoff_end_psymtab): Update.
841 * ctfread.c (scan_partial_symbols): Update.
842 * psymtab.c (sort_pst_symbols): Remove.
843 (partial_symtab::end): Rename from end_psymtab_common. Inline
844 sort_pst_symbols.
845 * psympriv.h (struct partial_symtab) <end>: New method.
846 (end_psymtab_common): Don't declare.
847
0684bb51
TT
8482020-11-01 Tom Tromey <tom@tromey.com>
849
850 * symmisc.c (count_psyms): New function.
851 (print_objfile_statistics): Use it.
852 * psymtab.c (append_psymbol_to_list): Remove.
853 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
854 * objfiles.h (struct objstats) <n_psyms>: Remove.
855
089002bb
TT
8562020-11-01 Tom Tromey <tom@tromey.com>
857
858 * dbxread.c (dbx_end_psymtab): Update.
859 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
860 (build_type_psymtabs_reader): Update.
861 * xcoffread.c (xcoff_end_psymtab): Update.
862 * ctfread.c (scan_partial_symbols): Update.
863 * psympriv.h (end_psymtab_common): Update.
864 * psymtab.c (end_psymtab_common): Remove objfile parameter.
865 (sort_pst_symbols): Likewise.
866
525454d6
TT
8672020-11-01 Tom Tromey <tom@tromey.com>
868
869 * dbxread.c (dbx_symfile_read): Update.
870 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
871 * xcoffread.c (xcoff_initial_scan): Update.
872 * psympriv.h (init_psymbol_list): Don't declare.
873 * psymtab.c (init_psymbol_list): Remove.
874
60bd1d53
JB
8752020-11-01 Joel Brobecker <brobecker@adacore.com>
876
877 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
878 gnat_encoded_fixed_type_info. Update all callers.
879
db99d0d0
JB
8802020-11-01 Joel Brobecker <brobecker@adacore.com>
881
882 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
883 line too long.
884
75f24e86
JB
8852020-11-01 Joel Brobecker <brobecker@adacore.com>
886
887 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
888 cast_from_fixed. Update all callers.
889 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
890 Update all callers.
891 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
892 Update all callers.
893 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
894 ada_scaling_factor.
895 * ada-typeprint.c: Replace call to ada_scaling_factor by call
896 to print_gnat_encoded_fixed_point_type.
897 * ada-valprint.c: Likewise.
898
4f0469cd
AB
8992020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
902 (debug_prefixed_printf): Add check of debug_displaced flag.
903 * linux-nat.c (linux_nat_debug_printf): Add check of
904 debug_linux_nat flag.
905
17417fb0
SM
9062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * infrun.c (infrun_debug_printf_1): Remove.
909 (displaced_debug_printf_1): Remove.
910 (stop_all_threads): Use debug_prefixed_printf.
911 * infrun.h (infrun_debug_printf_1): Remove.
912 (infrun_debug_printf): Use debug_prefixed_printf.
913 (displaced_debug_printf_1): Remove.
914 (displaced_debug_printf): Use debug_prefixed_printf.
915 * linux-nat.c (linux_nat_debug_printf_1): Remove.
916 (linux_nat_debug_printf): Use debug_prefixed_printf.
917
ad6dba1c
SM
9182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * configure: Re-generate.
921 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
922 AC_LANG_PROGRAM.
923
b6fb30ed
SM
9242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * configure: Re-generate.
927
5164c117
SM
9282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * configure: Re-generate.
931
864ca435
SM
9322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * configure: Re-generate.
935
b9442ec1
SM
9362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
937
938 * configure: Re-generate.
939
294f2697
SM
9402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * acinclude.m4: Modernize.
943 * configure: Re-generate.
944
5593a99a
SM
9452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * configure.ac: Modernize.
948 * configure: Re-generate.
949
e41fda1d
SM
9502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
953 * configure: Re-generate.
954 * configure.ac: Remove AM_PROG_CC_STDC.
955
91e1a0ed
SM
9562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
957
958 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
959 AC_CANONICAL_SYSTEM.
960 * configure: Re-generate.
961
136821d9
SM
9622020-10-30 Simon Marchi <simon.marchi@efficios.com>
963
964 * infrun.h (displaced_debug_printf): New macro. Replace
965 displaced debug prints throughout to use it.
966 (displaced_debug_printf_1): New declaration.
967 (displaced_step_dump_bytes): Return string, remove ui_file
968 parameter, update all callers.
969 * infrun.c (displaced_debug_printf_1): New function.
970 (displaced_step_dump_bytes): Return string, remove ui_file
971 parameter
972
aa2045e7
SM
9732020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
976
b1ec2735
TT
9772020-10-30 Tom Tromey <tromey@adacore.com>
978
979 * Makefile.in (stamp-init): Depend on config.status.
980
b78b3a29
TBA
9812020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
982
983 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
984
d70bdd3c
PA
9852020-10-30 Pedro Alves <pedro@palves.net>
986
987 * thread.c (lookup_selected_frame): Move ...
988 * frame.c (lookup_selected_frame): ... here.
989
79952e69
PA
9902020-10-30 Pedro Alves <pedro@palves.net>
991
992 * blockframe.c (block_innermost_frame): Use get_selected_frame.
993 * frame.c
994 (scoped_restore_selected_frame::scoped_restore_selected_frame):
995 Use save_selected_frame. Save language as well.
996 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
997 Use restore_selected_frame, and restore language as well.
998 (selected_frame_id, selected_frame_level): New.
999 (selected_frame): Update comments.
1000 (save_selected_frame, restore_selected_frame): New.
1001 (get_selected_frame): Use lookup_selected_frame.
1002 (get_selected_frame_if_set): Delete.
1003 (select_frame): Record selected_frame_level and selected_frame_id.
1004 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1005 fields.
1006 (get_selected_frame): Make 'message' parameter optional.
1007 (get_selected_frame_if_set): Delete declaration.
1008 (select_frame): Update comments.
1009 (save_selected_frame, restore_selected_frame)
1010 (lookup_selected_frame): Declare.
1011 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1012 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1013 New field.
1014 (save_infcall_control_state): Use save_selected_frame.
1015 (restore_selected_frame): Delete.
1016 (restore_infcall_control_state): Use restore_selected_frame.
1017 * stack.c (select_frame_command_core, frame_command_core): Use
1018 get_selected_frame.
1019 * thread.c (restore_selected_frame): Rename to ...
1020 (lookup_selected_frame): ... this and make extern. Select the
1021 current frame if the frame level is -1.
1022 (scoped_restore_current_thread::restore): Also restore the
1023 language.
1024 (scoped_restore_current_thread::~scoped_restore_current_thread):
1025 Don't try/catch.
1026 (scoped_restore_current_thread::scoped_restore_current_thread):
1027 Save the language as well. Use save_selected_frame.
1028
58103c33
SM
10292020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1032 documentation.
1033 * gdbarch.h: Re-generate.
1034
40a53766
SM
10352020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1038 parameter.
1039 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1040 Likewise.
1041 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1042 Likewise.
1043 * arch-utils.c (default_displaced_step_hw_singlestep):
1044 Likewise.
1045 * arch-utils.h (default_displaced_step_hw_singlestep):
1046 Likewise.
1047 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1048 Likewise.
1049 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1050 Likewise.
1051 * gdbarch.c: Re-generate.
1052 * gdbarch.h: Re-generate.
1053 * infrun.c (resume_1): Adjust.
1054
8407f91b
TT
10552020-10-29 Tom Tromey <tom@tromey.com>
1056
1057 * progspace.c (program_space::~program_space): Don't call
1058 exec_close.
1059
5008b3b2
TT
10602020-10-29 Tom Tromey <tom@tromey.com>
1061
1062 * exec.c (exec_target::close): Don't change current program
1063 space.
1064
d9eebde0
TT
10652020-10-29 Tom Tromey <tom@tromey.com>
1066
1067 * symfile.c (add_symbol_file_command): Update.
1068 * exec.c (program_space::add_target_sections): Rename.
1069 * symfile-mem.c (symbol_file_add_from_memory): Update.
1070 * progspace.h (struct program_space) <add_target_sections>:
1071 Declare new overload.
1072 * exec.h (add_target_sections_of_objfile): Don't declare.
1073
3769e227
TT
10742020-10-29 Tom Tromey <tom@tromey.com>
1075
1076 * solib.c (solib_map_sections): Update.
1077 * exec.c (program_space::add_target_sections): Now a method.
1078 (exec_file_attach): Update.
1079 * exec.h (add_target_sections): Don't declare.
1080 * progspace.h (struct program_space) <add_target_sections>:
1081 Declare.
1082
2a3f84af
TT
10832020-10-29 Tom Tromey <tom@tromey.com>
1084
1085 * progspace.h (struct program_space) <remove_target_sections>:
1086 Declare.
1087 * exec.c (program_space::remove_target_sections): Now a method.
1088 * exec.h (remove_target_sections): Don't declare.
1089
004eecfd
TT
10902020-10-29 Tom Tromey <tom@tromey.com>
1091
1092 * inferior.c (delete_inferior): Update.
1093 * progspace.c (program_space::empty): Rename from
1094 program_space_empty_p. Return bool.
1095 * progspace.h (struct program_space) <empty>: New method.
1096 (program_space_empty_p): Don't declare.
1097
e39fb971
TT
10982020-10-29 Tom Tromey <tom@tromey.com>
1099
1100 * progspace.c (program_space::~program_space): Don't call
1101 clear_program_space_solib_cache.
1102 (program_space::clear_solib_cache): Rename from
1103 clear_solib_cache.
1104 * solib.c (handle_solib_event): Update.
1105 * progspace.h (struct program_space) <clear_solib_cache>: New
1106 method.
1107 (clear_program_space_solib_cache): Don't declare.
1108
a42d7dd8
TT
11092020-10-29 Tom Tromey <tom@tromey.com>
1110
1111 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1112 * target.c (info_target_command): Update.
1113 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1114 (symbol_file_clear, reread_symbols): Update.
1115 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1116 * stabsread.c (scan_file_globals): Update.
1117 * solib.c (update_solib_list): Update.
1118 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1119 (svr4_fetch_objfile_link_map, enable_break)
1120 (svr4_relocate_main_executable)
1121 (svr4_iterate_over_objfiles_in_search_order): Update.
1122 * solib-frv.c (lm_base, enable_break)
1123 (frv_relocate_main_executable): Update.
1124 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1125 (frv_fetch_objfile_link_map): Update.
1126 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1127 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1128 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1129 * remote.c (remote_target::get_offsets): Update.
1130 (remote_target::start_remote)
1131 (extended_remote_target::post_attach): Update.
1132 * objfiles.c (entry_point_address_query): Update.
1133 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1134 * minsyms.c (get_symbol_leading_char): Update.
1135 * frame.c (inside_main_func): Update.
1136 * progspace.h (symfile_objfile): Remove macro.
1137
19f6550e
TT
11382020-10-29 Tom Tromey <tom@tromey.com>
1139
1140 * exec.c (exec_file_attach): Update.
1141 * progspace.c (program_space::exec_close): Update.
1142 * progspace.h (struct program_space) <ebfd>: Now a
1143 gdb_bfd_ref_ptr.
1144 <set_exec_bfd>: Change argument type.
1145 <exec_bfd>: Update.
1146
7e10abd1
TT
11472020-10-29 Tom Tromey <tom@tromey.com>
1148
1149 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1150 * symfile.c (reread_symbols): Update.
1151 * symfile-mem.c (add_symbol_file_from_memory_command)
1152 (add_vsyscall_page): Update.
1153 * source-cache.c (source_cache::get_plain_source_lines): Update.
1154 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1155 (svr4_current_sos_direct, svr4_exec_displacement)
1156 (svr4_relocate_main_executable): Update.
1157 (svr4_iterate_over_objfiles_in_search_order): Update.
1158 * solib-frv.c (enable_break2, enable_break): Update.
1159 * solib-dsbt.c (lm_base, enable_break): Update.
1160 * solib-darwin.c (find_program_interpreter)
1161 (darwin_solib_create_inferior_hook): Update.
1162 * sol-thread.c (rw_common, ps_pdmodel): Update.
1163 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1164 * remote.c (compare_sections_command)
1165 (remote_target::trace_set_readonly_regions): Update.
1166 * remote-sim.c (get_sim_inferior_data)
1167 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1168 (gdbsim_target_open, gdbsim_target::files_info): Update.
1169 * exec.h (exec_bfd): Remove macro.
1170 * progspace.c (initialize_progspace): Update.
1171 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1172 Update.
1173 * nto-procfs.c (nto_procfs_target::post_attach)
1174 (nto_procfs_target::create_inferior): Update.
1175 * maint.c (maintenance_info_sections): Update.
1176 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1177 Update.
1178 * infcmd.c (post_create_inferior): Update.
1179 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1180 (objfile_find_memory_regions): Update.
1181 * exec.c (validate_exec_file, exec_file_attach)
1182 (exec_read_partial_read_only, print_section_info): Update.
1183 * corelow.c (core_target_open): Update.
1184 * corefile.c (reopen_exec_file, validate_files): Update.
1185 * arm-tdep.c (gdb_print_insn_arm): Update.
1186 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1187 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1188 methods.
1189
b55221ab
TT
11902020-10-29 Tom Tromey <tom@tromey.com>
1191
1192 * progspace.h (current_target_sections): Remove macro.
1193 * solib-svr4.c (scan_dyntag): Update.
1194 * solib-dsbt.c (scan_dyntag): Update.
1195 * exec.c (exec_target::close): Update.
1196 (add_target_sections, add_target_sections_of_objfile)
1197 (remove_target_sections, exec_target::get_section_table)
1198 (exec_target::files_info, set_section_command)
1199 (exec_set_section_address, exec_target::has_memory)
1200 (exec_target::has_memory): Update.
1201
5a36e715
TT
12022020-10-29 Tom Tromey <tom@tromey.com>
1203
1204 * source-cache.c (source_cache::get_plain_source_lines): Use
1205 current_program_space.
1206 * corefile.c (reopen_exec_file): Use current_program_space.
1207 * exec.c (exec_file_attach): Use current_program_space.
1208 * exec.h (exec_bfd_mtime): Remove.
1209
784c8592
TT
12102020-10-29 Tom Tromey <tom@tromey.com>
1211
1212 * gcore.c (default_gcore_mach): Remove.
1213 (create_gcore_bfd): Update.
1214
8a4f1402
TT
12152020-10-29 Tom Tromey <tom@tromey.com>
1216
1217 * progspace.c (program_space::exec_close): New method, from
1218 exec_close in exec.c.
1219 * exec.c (exec_close): Move to progspace.c.
1220 (exec_target::close, exec_file_attach): Update.
1221 * progspace.h (struct program_space) <exec_close>: Declare
1222 method.
1223
c20cb686
TT
12242020-10-29 Tom Tromey <tom@tromey.com>
1225
1226 * progspace.h (struct program_space) <exec_filename>: Rename from
1227 pspace_exec_filename. Now a unique_xmalloc_ptr.
1228 * inferior.c (print_selected_inferior): Update.
1229 (print_inferior): Update.
1230 * mi/mi-main.c (print_one_inferior): Update.
1231 * exec.h (exec_filename): Remove macro.
1232 * corefile.c (get_exec_file): Update.
1233 * exec.c (exec_close): Update.
1234 (exec_file_attach): Update.
1235 * progspace.c (clone_program_space): Update.
1236 (print_program_space): Update.
1237
6be2a9ab
TT
12382020-10-29 Tom Tromey <tom@tromey.com>
1239
1240 * target-section.h (struct target_section): Add constructor.
1241 * exec.c (build_section_table, add_target_sections_of_objfile):
1242 Update.
1243 * corelow.c (core_target::build_file_mappings): Update.
1244
cfaa8f76
TBA
12452020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246
1247 PR gdb/19318
1248 * inferior.c (detach_inferior_command): Restore the current thread.
1249 (kill_inferior_command): Ditto.
1250
1b00ef06
TV
12512020-10-28 Tom de Vries <tdevries@suse.de>
1252
1253 PR symtab/26772
1254 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1255 map, check it in the "best match" loop.
1256
7f40ce1a
SM
12572020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * m32c-tdep.c: Remove unused includes.
1260
5eb9e3f5
SM
12612020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1262
1263 * xtensa-tdep.c: Remove includes.
1264
b1d4d8d1
TBA
12652020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266
1267 * breakpoint.c (struct condition_command_opts): New struct.
1268 (condition_command_option_defs): New static global.
1269 (make_condition_command_options_def_group): New function.
1270 (condition_completer): Update to consider the '-force' flag.
1271 (condition_command): Use gdb::option for the '-force' flag.
1272
bd24c5d6
TV
12732020-10-27 Tom de Vries <tdevries@suse.de>
1274
1275 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1276 symbols in section check.
1277
61eb46a4
TV
12782020-10-27 Tom de Vries <tdevries@suse.de>
1279
1280 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1281
733d554a
TBA
12822020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1283
1284 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1285 * breakpoint.c: Update the help text of the 'condition' and 'break'
1286 commands.
1287 (set_breakpoint_condition): Take a new bool parameter
1288 to control whether condition definition should be forced even when
1289 the condition expression is invalid in all of the current locations.
1290 (condition_command): Update the call to 'set_breakpoint_condition'.
1291 (find_condition_and_thread): Take the "-force-condition" flag into
1292 account.
1293 * linespec.c (linespec_keywords): Add "-force-condition" as an
1294 element.
1295 (FORCE_KEYWORD_INDEX): New #define.
1296 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1297 as a keyword.
1298 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1299 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1300 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1301 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1302
b5fa468f
TBA
13032020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304
1305 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1306 * breakpoint.c (set_breakpoint_location_condition): New function.
1307 (set_breakpoint_condition): Disable a breakpoint location if parsing
1308 the condition string gives an error.
1309 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1310 (build_target_condition_list): Ditto.
1311 (build_target_command_list): Ditto.
1312 (build_bpstat_chain): Ditto.
1313 (print_one_breakpoint_location): Ditto.
1314 (print_one_breakpoint): Ditto.
1315 (breakpoint_1): Ditto.
1316 (bp_location::bp_location): Ditto.
1317 (locations_are_equal): Ditto.
1318 (update_breakpoint_locations): Ditto.
1319 (enable_disable_bp_num_loc): Ditto.
1320 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1321 (find_condition_and_thread_for_sals): New static function.
1322 (create_breakpoint): Call find_condition_and_thread_for_sals.
1323 (location_to_sals): Call find_condition_and_thread_for_sals instead
1324 of find_condition_and_thread.
1325
1c47ec3e
TV
13262020-10-26 Tom de Vries <tdevries@suse.de>
1327
1328 * dwarf2/read.c (process_full_comp_unit): Call
1329 dwarf2_find_base_address.
1330
6390859c
TT
13312020-10-26 Tom Tromey <tromey@adacore.com>
1332
1333 * gdbtypes.c (create_range_type): Revert previous patch. Add
1334 comment.
1335
d744f0f9
PA
13362020-10-26 Pedro Alves <pedro@palves.net>
1337
1338 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1339 (my_waitpid): Use gdb::handle_eintr.
1340
006811bc
SM
13412020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * acinclude.m4: Update ptrace.m4 path.
1344 * ptrace.m4: Moved to gdbsupport.
1345
c75e31a1
SM
13462020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1347
1348 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1349 instead of target_gdbarch.
1350
32495661
SM
13512020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * jit.c (jit_reader_load_command): Pass current inferior.
1354 (jit_inferior_init): Change parameter type to inferior, use it.
1355 (jit_inferior_created): Remove.
1356 (jit_inferior_created_hook): Pass inferior parameter down.
1357 (_initialize_jit): Use jit_inferior_created_hook instead of
1358 jit_inferior_created.
1359 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1360 * infrun.c (follow_exec): Pass inferior to
1361 jit_inferior_created_hook.
1362
3f66685e
SM
13632020-10-24 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1366 parameter and use it.
1367 (thread_db_inferior_created): Pass inferior argument.
1368
a0ff652f
SM
13692020-10-24 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * aix-thread.c (aix_thread_inferior_created): Add inferior
1372 parameter.
1373 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1374 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1375 * jit.c (jit_inferior_created): Likewise.
1376 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1377 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1378 * observable.h (inferior_created): Likewise.
1379 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1380 * symfile-mem.c (add_vsyscall_page): Likewise.
1381 * infcmd.c (post_create_inferior): Pass inferior argument.
1382
3c67532c
JB
13832020-10-24 Joel Brobecker <brobecker@adacore.com>
1384
1385 GDB 10.1 released.
1386
8747316e
JB
13872020-10-23 Joel Brobecker <brobecker@adacore.com>
1388
1389 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1390 to ada_check_typedef.
1391
1a0ea399
AB
13922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * f-exp.y (f_parse): Rename to...
1395 (f_language::parser): ...this.
1396 * f-lang.c (f_get_encoding): Rename to...
1397 (f_language::get_encoding): ...this.
1398 (f_op_print_tab): Rename to...
1399 (f_language::op_print_tab): ...this.
1400 (exp_descriptor_f): Rename to...
1401 (f_language::exp_descriptor_tab): ...this.
1402 (class f_language): Moved to f-lang.h.
1403 (f_language::language_arch_info): New function, moved out of class
1404 declaration.
1405 (f_language::search_name_hash): Likewise.
1406 (f_language::lookup_symbol_nonlocal): Likewise.
1407 (f_language::get_symbol_name_matcher_inner): Likewise.
1408 * f-lang.h: Add 'valprint.h' include.
1409 (class f_language): Moved here from f-lang.c.
1410 * f-typeprint.c (f_type_print_args): Delete commented out
1411 declaration.
1412 (f_print_typedef): Rename to...
1413 (f_language::print_typedef): ...this.
1414 (f_print_type): Rename to...
1415 (f_language::print_type): ...this.
1416 (f_type_print_varspec_prefix): Delete declaration and rename to...
1417 (f_language::f_type_print_varspec_prefix): ...this.
1418 (f_type_print_varspec_suffix): Delete declaration and rename to...
1419 (f_language::f_type_print_varspec_suffix): ...this.
1420 (f_type_print_base): Delete declaration and rename to...
1421 (f_language::f_type_print_base): ...this.
1422 * f-valprint.c (f_value_print_inner): Rename to...
1423 (f_language::value_print_inner): ...this.
1424 * parse.c: Delete 'f-lang.h' include.
1425
88cefd9b
AB
14262020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * language.h (language_defn::print_type): Add variable names in
1429 declaration, and update header comment.
1430
5399db93
AB
14312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * ada-lang.c (ada_language::demangle): Rename to...
1434 (ada_language::demangle_symbol): ...this.
1435 * c-lang.c (cplus_language::demangle): Rename to...
1436 (cplus_language::demangle_symbol): ...this.
1437 * d-lang.c (d_language::demangle): Rename to...
1438 (d_language::demangle_symbol): ...this.
1439 * f-lang.c (f_language::demangle): Rename to...
1440 (f_language::demangle_symbol): ...this.
1441 * go-lang.c (go_language::demangle): Rename to...
1442 (go_language::demangle_symbol): ...this.
1443 * language.c (language_demangle): Update call to demangle_symbol.
1444 (auto_or_unknown_language::demangle): Rename to...
1445 (auto_or_unknown_language::demangle_symbol): ...this.
1446 * language.h (language_defn::demangle): Rename to...
1447 (language_defn::demangle_symbol): ...this.
1448 * objc-lang.c (objc_language::demangle): Rename to...
1449 (objc_language::demangle_symbol): ...this.
1450 * rust-lang.c (rust_language::demangle): Rename to...
1451 (rust_language::demangle_symbol): ...this.
1452
4b2f86ef
AB
14532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1456 (iterate_over_file_blocks): Replace use of macro with the macros
1457 definition.
1458
e74b39de
AB
14592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1462 * valprint.c (maybe_print_array_index): Replace use of macro with
1463 the macros definition.
1464
00c696a6
AB
14652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * ada-lang.c (ada_language::print_array_index): Call value_print
1468 directly.
1469 * language.c (language_defn::print_array_index): Likewise.
1470 * language.h (LA_VALUE_PRINT): Delete.
1471 * valprint.c (value_print): Call value_print on the
1472 current_language directly.
1473
d3b67c56
AB
14742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * language.h (LA_PRINT_TYPEDEF): Delete.
1477 * typeprint.c (typedef_print): Call print_typedef directly on the
1478 current_language object.
1479
790e2a12
AB
14802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * m2-exp.y (m2_parse): Rename to...
1483 (m2_language::parser): ...this. Update function signature.
1484 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1485 (m2_op_print): Rename to...
1486 (m2_language::op_print_tab): ...this, and make const.
1487 (exp_descriptor_modula2): Rename to...
1488 (m2_language::exp_descriptor_modula2): ...this.
1489 (class m2_language): Move to m2-lang.h.
1490 (m2_language::language_arch_info): New function, moved out of
1491 class declaration.
1492 (m2_language::printchar): New function, body from m2_printchar.
1493 (m2_language::printstr): New function, moved out of class
1494 declaration.
1495 (m2_language::emitchar): Likewise.
1496 * m2-lang.h (m2_parse): Delete declaration.
1497 (m2_print_typedef): Delete declaration.
1498 (m2_value_print_inner): Delete declaration.
1499 (class m2_language): Class declaration moved from m2-lang.c,
1500 larger functions are left in m2-lang.c.
1501 * m2-typeprint.c (m2_print_typedef): Rename to...
1502 (m2_language::print_typedef): ...this, and update function
1503 signature.
1504 * m2-valprint.c (m2_value_print_inner): Rename to...
1505 (m2_language::value_print_inner): ...this, replace use of
1506 LA_PRINT_STRING with a direct call to printstr member function,
1507 and update recursive call.
1508
b01175fc
AB
15092020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * language.c (default_is_string_type_p): Delete, implementation
1512 moved into auto_or_unknown_language::is_string_type_p.
1513 (unk_op_print_tab): Moved into
1514 auto_or_unknown_language::opcode_print_table.
1515 (unknown_language_arch_info): Delete, implementation moved into
1516 auto_or_unknown_language::language_arch_info.
1517 (class auto_or_unknown_language): New class, member functions
1518 copied from unknown_language class, with some updates.
1519 (class unknown_language): Most member functions moved into
1520 auto_or_unknown_language class. Inherit from
1521 auto_or_unknown_language class.
1522 (class auto_language): Inherit from auto_or_unknown_language.
1523 Delete most member functions.
1524
1a97fe8c
HD
15252020-10-22 Hannes Domani <ssbssa@yahoo.de>
1526
1527 * stabsread.c (read_member_functions): Remove gdb_assert.
1528
6b9d0dfd
HD
15292020-10-22 Hannes Domani <ssbssa@yahoo.de>
1530
1531 * gdbtypes.c (init_complex_type): Check target type name.
1532
4b4bb603
SM
15332020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * target-debug.h (target_debug_print_struct_target_ops_p):
1536 Remove.
1537 (target_debug_print_async_callback_ftype_p): Remove.
1538 (target_debug_print_struct_trace_state_variable_p): Remove.
1539 (target_debug_print_struct_traceframe_info_p): Remove.
1540 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1541 (target_debug_print_enum_btrace_format): Remove.
1542 (target_debug_print_enum_info_proc_what): Remove.
1543 (target_debug_print_thread_info_pp): Remove.
1544
24f5300a
SM
15452020-10-22 Simon Marchi <simon.marchi@efficios.com>
1546
1547 * target.h (struct target_ops) <make_corefile_notes>:
1548 Change return type to unique pointer.
1549 * target.c (dummy_make_corefile_notes): Likewise.
1550 * exec.c (struct exec_target) <make_corefile_notes>:
1551 Likewise.
1552 (exec_target::make_corefile_notes): Likewise.
1553 * procfs.c (class procfs_target) <make_corefile_notes>:
1554 Likewise.
1555 (procfs_do_thread_registers): Adjust to unique pointer.
1556 (struct procfs_corefile_thread_data): Add constructor.
1557 <note_data>: Change type to unique pointer.
1558 (procfs_corefile_thread_callback): Adjust to unique pointer.
1559 (procfs_target::make_corefile_notes): Change return type to
1560 unique pointer.
1561 * target-delegates.c: Re-generate.
1562 * gcore.c (write_gcore_file_1): Adjust.
1563 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1564 New.
1565
5fb4027f
TV
15662020-10-22 Tom de Vries <tdevries@suse.de>
1567
1568 * block.c (find_block_in_blockvector): Make sure the returned block
1569 contains pc.
1570
4a636814
SM
15712020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 PR gdb/26693
1574 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1575 parameter.
1576 (load_cu): Pass existing CU.
1577 (process_imported_unit_die): Likewise.
1578 (follow_die_offset): Likewise.
1579
1bd57575
LM
15802020-10-22 Luis Machado <luis.machado@linaro.org>
1581
1582 * corelow.c (core_target::xfer_partial): Also check for an empty
1583 m_core_unavailable_mappings vector.
1584
6b4c676c
AB
15852020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1588 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1589 * f-exp.y (arglist): Allow for a series of subranges.
1590 (subrange): Add cases for subranges with strides.
1591 * f-lang.c (value_f90_subarray): Catch use of array strides and
1592 throw an error.
1593 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1594
f2d8e4c5
AB
15952020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * expprint.c (print_subexp_standard): Change enum range_type to
1598 range_flag and rename variables to match.
1599 (dump_subexp_body_standard): Likewise.
1600 * expression.h (enum range_type): Rename to...
1601 (enum range_flag): ...this.
1602 (range_types): Rename to...
1603 (range_flags): ...this.
1604 * f-lang.c (value_f90_subarray): Change enum range_type to
1605 range_flag and rename variables to match.
1606 * parse.c (operator_length_standard): Likewise.
1607 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1608 range_type to range_flag.
1609 * rust-lang.c (rust_evaluate_funcall): Likewise.
1610 (rust_range): Likewise.
1611 (rust_compute_range): Likewise.
1612 (rust_subscript): Likewise.
1613
2f1b18db
AB
16142020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * expprint.c (print_subexp_standard): Update to reflect changes to
1617 enum range_type.
1618 (dump_subexp_body_standard): Likewise.
1619 * expression.h (enum range_type): Convert to a bit field enum, and
1620 make the enum unsigned.
1621 * f-exp.y (subrange): Update to reflect changes to enum
1622 range_type.
1623 * f-lang.c (value_f90_subarray): Likewise.
1624 * parse.c (operator_length_standard): Likewise.
1625 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1626 * rust-lang.c (rust_range): Likewise.
1627 (rust_compute_range): Likewise.
1628 (rust_subscript): Likewise.
1629
a46d1843
SM
16302020-10-21 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1633 (displaced_step_in_progress): Fix comment.
1634
c21f37a8
SM
16352020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1638 * gdbarch.c: Re-generate.
1639 * gdbarch.h: Re-generate.
1640 * gcore.c (write_gcore_file_1): Adjust.
1641 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1642 constructor.
1643 <note_data>: Change type to unique pointer.
1644 <abort_iteration>: Change type to bool.
1645 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1646 (fbsd_collect_thread_registers): Return void, adjust.
1647 (struct fbsd_corefile_thread_data): Add construtor.
1648 <note_data>: Change type to unique pointer.
1649 (fbsd_corefile_thread): Adjust.
1650 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1651 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1652 to unique pointer, adjust.
1653 (struct linux_collect_regset_section_cb_data): Add constructor.
1654 <note_data>: Change type to unique pointer.
1655 <abort_iteration>: Change type to bool.
1656 (linux_collect_thread_registers): Return void, adjust.
1657 (struct linux_corefile_thread_data): Add constructor.
1658 <note_data>: Change type to unique pointer.
1659 (linux_corefile_thread): Adjust.
1660 (linux_make_corefile_notes): Return unique pointer, adjust.
1661
07fbbd01
SM
16622020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1665 * gdbarch.c: Re-generate.
1666 * gdbarch.h: Re-generate.
1667 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1668 bool.
1669 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1670 Likewise.
1671 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1672 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1673 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1674 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1675
39535193
SM
16762020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * gdbarch.sh: Make generated predicates return bool.
1679 * gdbarch.c: Re-generate.
1680 * gdbarch.h: Re-generate.
1681
ad523d01
TT
16822020-10-20 Tom Tromey <tom@tromey.com>
1683
1684 * varobj-iter.h (struct varobj_item): Remove typedef.
1685
c4464ade
SM
16862020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * infrun.c (currently_stepping): Change int to bool
1689 (maybe_software_singlestep): Likewise.
1690 (show_stop_on_solib_events): Likewise.
1691 (stepping_past_nonsteppable_watchpoint): Likewise.
1692 (displaced_step_in_progress_any_inferior): Likewise.
1693 (displaced_step_in_progress_thread): Likewise.
1694 (keep_going_stepped_thread): Likewise.
1695 (thread_still_needs_step_over): Likewise.
1696 (start_step_over): Likewise.
1697 (do_target_resume): Likewise.
1698 (resume_1): Likewise.
1699 (clear_proceed_status): Likewise.
1700 (thread_still_needs_step_over_bp): Likewise.
1701 (proceed): Likewise.
1702 (switch_back_to_stepped_thread): Likewise.
1703 (adjust_pc_after_break): Likewise.
1704 (stepped_in_from): Likewise.
1705 (handle_stop_requested): Likewise.
1706 (handle_syscall_event): Likewise.
1707 (handle_no_resumed): Likewise.
1708 (handle_inferior_event): Likewise.
1709 (finish_step_over): Likewise.
1710 (handle_signal_stop): Likewise.
1711 (process_event_stop_test): Likewise.
1712
2eb20436
SM
17132020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * infrun.c (get_displaced_stepping_state): Fix comment.
1716
e0c45ded
AS
17172020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1718
1719 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1720
22cc388e
TT
17212020-10-19 Tom Tromey <tromey@adacore.com>
1722
1723 PR tui/26719
1724 * tui/tui-winsource.h (struct tui_source_window_base)
1725 <refresh_window>: Rename from refresh_pad.
1726 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1727 Rename from refresh_pad.
1728 (tui_source_window_base::show_source_content)
1729 (tui_source_window_base::do_scroll_horizontal): Update.
1730
3c6eb4d4
TBA
17312020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 * thread.c (_initialize_thread): Fine-tune the help text of
1734 'info threads'.
1735
26703721
TBA
17362020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1737
1738 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1739
61c26be8
MS
17402020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1741
1742 * breakpoint.c (handle_jit_event): Add an argument, change how
1743 `jit_event_handler` is called.
1744
932539d7
TT
17452020-10-17 Tom Tromey <tom@tromey.com>
1746
1747 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1748 (scan_xcoff_symtab): Update.
1749 * psymtab.h (class psymtab_storage) <global_psymbols,
1750 static_psymbols, current_global_psymbols,
1751 current_static_psymbols>: Remove.
1752 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1753 (match_partial_symbol, lookup_partial_symbol): Update.
1754 (print_partial_symbols): Change parameters.
1755 (dump_psymtab, recursively_search_psymtabs)
1756 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1757 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1758 (concat): Remove.
1759 (end_psymtab_common): Simplify.
1760 (append_psymbol_to_list): Change parameters.
1761 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1762 (init_psymbol_list): Simplify.
1763 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1764 * psympriv.h (struct partial_symtab) <empty>: New method.
1765 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1766 Remove.
1767 <global_psymbols, static_psymbols>: New members.
1768 <add_psymbol>: New methods.
1769 (add_psymbol_to_list): Don't declare.
1770 (psymbol_placement): Move earlier.
1771 * mdebugread.c (parse_partial_symbols): Update.
1772 (handle_psymbol_enumerators): Change parameters.
1773 (mdebug_expand_psymtab): Update.
1774 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1775 (add_partial_symbol): Update.
1776 * dwarf2/index-write.c (write_psymbols): Change parameters.
1777 (write_one_signatured_type): Update.
1778 (recursively_count_psymbols): Update.
1779 (recursively_write_psymbols): Update.
1780 (class debug_names) <recursively_write_psymbols>: Update.
1781 <write_psymbols>: Change parameters.
1782 <write_one_signatured_type>: Update.
1783 * dbxread.c (read_dbx_symtab): Update.
1784 (dbx_end_psymtab): Use partial_symtab::empty.
1785 * ctfread.c (struct ctf_context) <pst>: New member.
1786 (create_partial_symtab): Set it.
1787 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1788 (scan_partial_symbols): Use the psymtab's context. Update.
1789
cfabbd35
TT
17902020-10-17 Tom Tromey <tom@tromey.com>
1791
1792 * valprint.c (generic_value_print): Remove comment.
1793 * m2-valprint.c (m2_value_print_inner): Remove comment.
1794 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1795 type.
1796
520596f2
TV
17972020-10-17 Tom de Vries <tdevries@suse.de>
1798
1799 PR symtab/26317
1800 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1801 symbol main.
1802
76547ab3
TV
18032020-10-14 Tom de Vries <tdevries@suse.de>
1804
1805 PR gdb/26733
1806 * solib.c (solib_contains_address_p): Handle
1807 'solib->sections == nullptr'.
1808
d3a07122
SM
18092020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1810
1811 PR gdb/26642
1812 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1813 target can't do async.
1814 * target.c (target_wait): Assert that we don't pass
1815 TARGET_WNOHANG to a target that can't async.
1816
1b71cfcf
KR
18172020-10-13 Kamil Rytarowski <n54@gmx.com>
1818
1819 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1820 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1821 * alpha-bsd-nat.c: Adjust include.
1822 * alpha-bsd-tdep.h: Adjust comment.
1823 * alpha-nbsd-tdep.c: Rename to ...
1824 * alpha-netbsd-tdep.c: ... this, adjust include.
1825 * amd64-nbsd-nat.c: Rename to ...
1826 * amd64-netbsd-nat.c: ... this, adjust include.
1827 * amd64-nbsd-tdep.c: Rename to ...
1828 * amd64-netbsd-tdep.c: ... this, adjust include.
1829 * amd64-tdep.h: Adjust include.
1830 * arm-nbsd-nat.c: Rename to ...
1831 * arm-netbsd-nat.c: ... this, adjust include.
1832 * arm-nbsd-tdep.c: Rename to ...
1833 * arm-netbsd-tdep.c: ... this, adjust include.
1834 * arm-nbsd-tdep.h: Rename to ...
1835 * arm-netbsd-tdep.h: ... this, adjust include.
1836 * configure.nat: Adjust file lists.
1837 * configure.tgt: Likewise.
1838 * hppa-nbsd-nat.c: Rename to ...
1839 * hppa-netbsd-nat.c: ... this, adjust include.
1840 * hppa-nbsd-tdep.c: Rename to ...
1841 * hppa-netbsd-tdep.c: ... this, adjust include.
1842 * i386-nbsd-nat.c: Rename to ...
1843 * i386-netbsd-nat.c: ... this, adjust include.
1844 * i386-nbsd-tdep.c: Rename to ...
1845 * i386-netbsd-tdep.c: ... this, adjust include.
1846 * m68k-bsd-nat.c: Adjust include.
1847 * mips-nbsd-nat.c: Rename to ...
1848 * mips-netbsd-nat.c: ... this, adjust include.
1849 * mips-nbsd-tdep.c: Rename to ...
1850 * mips-netbsd-tdep.c: ... this, adjust include.
1851 * mips-nbsd-tdep.h: Rename to ...
1852 * mips-netbsd-tdep.h: ... this.
1853 * nbsd-nat.c: Rename to ...
1854 * netbsd-nat.c: ... this, adjust include.
1855 * nbsd-nat.h: Rename to ...
1856 * netbsd-nat.h: ... this, adjust include.
1857 * nbsd-tdep.c: Rename to ...
1858 * netbsd-tdep.c: ... this, adjust include.
1859 * nbsd-tdep.h: Rename to ...
1860 * netbsd-tdep.h: ... this.
1861 * ppc-nbsd-nat.c: Rename to ...
1862 * ppc-netbsd-nat.c: ... this, adjust include.
1863 * ppc-nbsd-tdep.c: Rename to ...
1864 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1865 * ppc-nbsd-tdep.h: Rename to ...
1866 * ppc-netbsd-tdep.h: ... this.
1867 * sh-nbsd-nat.c: Rename to ...
1868 * sh-netbsd-nat.c: ... this, adjust include.
1869 * sh-nbsd-tdep.c: Rename to ...
1870 * sh-netbsd-tdep.c: ... this, adjust include.
1871 * sparc-nbsd-nat.c: Rename to ...
1872 * sparc-netbsd-nat.c: ... this.
1873 * sparc-nbsd-tdep.c: Rename to ...
1874 * sparc-netbsd-tdep.c: ... this, adjust include.
1875 * sparc64-nbsd-nat.c: Rename to ...
1876 * sparc64-netbsd-nat.c: ... this.
1877 * sparc64-nbsd-tdep.c: Rename to ...
1878 * sparc64-netbsd-tdep.c: ... this, adjust include.
1879 * sparc64-tdep.h: Adjust comment.
1880 * vax-bsd-nat.c: Adjust include.
1881 * vax-nbsd-tdep.c: Rename to ...
1882 * vax-netbsd-tdep.c: ... this, adjust include.
1883
d7a78e5c
TT
18842020-10-12 Tom Tromey <tom@tromey.com>
1885
1886 * target.h (struct target_ops) <get_section_table>: Update.
1887 (target_get_section_table): Update.
1888 * target.c (target_get_section_table, target_section_by_addr)
1889 (memory_xfer_partial_1): Update.
1890 * target-section.h (target_section_table): Now an alias.
1891 * target-delegates.c: Rebuild.
1892 * target-debug.h (target_debug_print_target_section_table_p):
1893 Rename from target_debug_print_struct_target_section_table_p.
1894 * symfile.c (build_section_addr_info_from_section_table): Update.
1895 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1896 * solib-svr4.c (scan_dyntag): Update.
1897 * solib-dsbt.c (scan_dyntag): Update.
1898 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1899 Update.
1900 * record-full.c (record_full_core_target::xfer_partial): Update.
1901 * progspace.h (struct program_space) <target_sections>: Update.
1902 * exec.h (print_section_info): Update.
1903 * exec.c (exec_target::close, build_section_table)
1904 (add_target_sections, add_target_sections_of_objfile)
1905 (remove_target_sections, exec_on_vfork)
1906 (section_table_available_memory)
1907 (section_table_xfer_memory_partial)
1908 (exec_target::get_section_table, exec_target::xfer_partial)
1909 (print_section_info, set_section_command)
1910 (exec_set_section_address, exec_target::has_memory): Update.
1911 * corelow.c (core_target::build_file_mappings)
1912 (core_target::xfer_partial, core_target::info_proc_mappings)
1913 (core_target::info_proc_mappings): Update.
1914 * bfd-target.c (class target_bfd): Update
1915
eda214ce
TT
19162020-10-12 Tom Tromey <tom@tromey.com>
1917
1918 * progspace.c (program_space::~program_space): Don't call
1919 clear_section_table.
1920 * exec.h (clear_section_table): Don't declare.
1921 * exec.c (exec_target::close): Update.
1922 (clear_section_table): Remove.
1923
91840ee3
TT
19242020-10-12 Tom Tromey <tom@tromey.com>
1925
1926 * exec.c (add_target_sections_of_objfile): Simplify.
1927
2d128614
TT
19282020-10-12 Tom Tromey <tom@tromey.com>
1929
1930 * solib.c (solib_map_sections): Update.
1931 * record-full.c (record_full_core_open_1): Update.
1932 * exec.h (build_section_table): Return a target_section_table.
1933 * exec.c (exec_file_attach): Update.
1934 (build_section_table): Return a target_section_table.
1935 * corelow.c (core_target::core_target): Update.
1936 * bfd-target.c (target_bfd::target_bfd): Update.
1937
bb2a6777
TT
19382020-10-12 Tom Tromey <tom@tromey.com>
1939
1940 * target.c (target_section_by_addr, memory_xfer_partial_1):
1941 Update.
1942 * target-section.h (struct target_section_table): Use
1943 std::vector.
1944 * symfile.h (build_section_addr_info_from_section_table): Take a
1945 target_section_table.
1946 * symfile.c (build_section_addr_info_from_section_table): Take a
1947 target_section_table.
1948 * solist.h (struct so_list) <sections>: Change type.
1949 <sections_end>: Remove.
1950 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1951 (solib_contains_address_p): Update.
1952 * solib-svr4.c (scan_dyntag): Update.
1953 * solib-dsbt.c (scan_dyntag): Update.
1954 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1955 Update.
1956 * record-full.c (record_full_core_start, record_full_core_end):
1957 Remove.
1958 (record_full_core_sections): New global.
1959 (record_full_core_open_1, record_full_core_target::xfer_partial):
1960 Update.
1961 * exec.h (build_section_table, section_table_xfer_memory_partial)
1962 (add_target_sections): Take a target_section_table.
1963 * exec.c (exec_file_attach, clear_section_table): Update.
1964 (resize_section_table): Remove.
1965 (build_section_table, add_target_sections): Take a
1966 target_section_table.
1967 (add_target_sections_of_objfile, remove_target_sections)
1968 (exec_on_vfork): Update.
1969 (section_table_available_memory): Take a target_section_table.
1970 (section_table_read_available_memory): Update.
1971 (section_table_xfer_memory_partial): Take a target_section_table.
1972 (print_section_info, set_section_command)
1973 (exec_set_section_address, exec_target::has_memory): Update.
1974 * corelow.c (class core_target) <m_core_section_table,
1975 m_core_file_mappings>: Remove braces.
1976 <~core_target>: Remove.
1977 (core_target::core_target): Update.
1978 (core_target::~core_target): Remove.
1979 (core_target::build_file_mappings)
1980 (core_target::xfer_memory_via_mappings)
1981 (core_target::xfer_partial, core_target::info_proc_mappings):
1982 Update.
1983 * bfd-target.c (target_bfd::xfer_partial): Update.
1984 (target_bfd::target_bfd): Update.
1985 (target_bfd::~target_bfd): Remove.
1986
7b466b10
TT
19872020-10-12 Tom Tromey <tom@tromey.com>
1988
1989 * target.h (struct target_section, struct target_section_table):
1990 Move to target-section.h.
1991 * target-section.h: New file.
1992
87a37e5e
PA
19932020-10-12 Pedro Alves <pedro@palves.net>
1994
1995 PR exp/26602
1996 * valops.c (struct struct_field_searcher): New.
1997 (update_search_result): Rename to ...
1998 (struct_field_searcher::update_result): ... this. Simplify
1999 prototype. Record all found fields.
2000 (do_search_struct_field): Rename to ...
2001 (struct_field_searcher::search): ... this. Simplify prototype.
2002 Maintain stack of visited baseclass path. Call update_result for
2003 fields too. Keep searching fields in baseclasses instead of
2004 stopping at the first found field.
2005 (search_struct_field): Use struct_field_searcher. When looking
2006 for fields, report ambiguous access attempts.
2007
9370fd51
AB
20082020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * frame.c (inside_main_func): Check full symbols as well as
2011 minimal symbols.
2012
59c8a30b
JB
20132020-10-09 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.c (advance_wild_match): Rewrite the function's
2016 description. Change the type of target0, t0 and t1 to char.
2017
7c184d33
TT
20182020-10-09 Tom Tromey <tromey@adacore.com>
2019
2020 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2021
5c4258f4
TT
20222020-10-09 Tom Tromey <tromey@adacore.com>
2023
2024 * ada-lang.h (ada_encode): Return std::string.
2025 * ada-lang.c (ada_encode_1): Return std::string.
2026 (ada_encode): Likewise.
2027 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2028 Update.
2029 * ada-exp.y (block_lookup, write_var_or_type): Update.
2030
3d87245c
HD
20312020-10-09 Hannes Domani <ssbssa@yahoo.de>
2032
2033 PR exp/26714
2034 * printcmd.c (print_formatted): Handle void results as
2035 unformatted prints.
2036
bbb826f5
AB
20372020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * arch/aarch32.c (aarch32_create_target_description): Release the
2040 target_desc_up as late as possible.
2041 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2042 * arch/amd64.c (amd64_create_target_description): Likewise.
2043 * arch/arc.c (arc_create_target_description): Return a
2044 target_desc_up, don't release it.
2045 * arch/arc.h (arc_create_target_description): Update declaration.
2046 (arc_lookup_target_description): Move target_desc_up into the
2047 cache, and return a borrowed pointer.
2048 * arch/arm.c (arm_create_target_description): Release the
2049 target_desc_up as late as possible.
2050 * arch/i386.c (i386_create_target_description): Likewise.
2051 * arch/riscv.h (riscv_create_target_description): Update
2052 declaration to match definition.
2053 * arch/tic6x.c (tic6x_create_target_description): Release the
2054 target_desc_up as late as possible.
2055
361cb219
AB
20562020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2059 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2060
f5c4b229
JV
20612020-10-09 Jan Vrany <jan.vrany@labware.com>
2062
2063 * source.c (directory_command): Notify observers that "directories"
2064 parameter has changed.
2065
b2701685
TT
20662020-10-08 Tom Tromey <tom@tromey.com>
2067
2068 * cli/cli-cmds.c (print_disassembly): Style function name and
2069 addresses. Add _() wrappers.
2070
ada508b6
SV
20712020-10-08 Shahab Vahedi <shahab@synopsys.com>
2072
2073 * NEWS: Mention ARC support in GDBserver.
2074
51a948fd
AB
20752020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * arch/aarch32.c (aarch32_create_target_description): Release
2078 unique_ptr returned from allocate_target_description.
2079 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2080 * arch/amd64.c (amd64_create_target_description): Likewise.
2081 * arch/arc.c (arc_create_target_description): Likewise.
2082 * arch/arm.c (arm_create_target_description): Likewise.
2083 * arch/i386.c (i386_create_target_description): Likewise.
2084 * arch/riscv.c (riscv_create_target_description): Update return
2085 type. Handle allocate_target_description returning a unique_ptr.
2086 (riscv_lookup_target_description): Update to handle unique_ptr.
2087 * arch/tic6x.c (tic6x_create_target_description): Release
2088 unique_ptr returned from allocate_target_description.
2089 * features/microblaze-with-stack-protect.c: Regenerate.
2090 * features/microblaze.c: Regenerate.
2091 * features/mips-dsp-linux.c: Regenerate.
2092 * features/mips-linux.c: Regenerate.
2093 * features/mips64-dsp-linux.c: Regenerate.
2094 * features/mips64-linux.c: Regenerate.
2095 * features/nds32.c: Regenerate.
2096 * features/nios2.c: Regenerate.
2097 * features/or1k.c: Regenerate.
2098 * features/rs6000/powerpc-32.c: Regenerate.
2099 * features/rs6000/powerpc-32l.c: Regenerate.
2100 * features/rs6000/powerpc-403.c: Regenerate.
2101 * features/rs6000/powerpc-403gc.c: Regenerate.
2102 * features/rs6000/powerpc-405.c: Regenerate.
2103 * features/rs6000/powerpc-505.c: Regenerate.
2104 * features/rs6000/powerpc-601.c: Regenerate.
2105 * features/rs6000/powerpc-602.c: Regenerate.
2106 * features/rs6000/powerpc-603.c: Regenerate.
2107 * features/rs6000/powerpc-604.c: Regenerate.
2108 * features/rs6000/powerpc-64.c: Regenerate.
2109 * features/rs6000/powerpc-64l.c: Regenerate.
2110 * features/rs6000/powerpc-7400.c: Regenerate.
2111 * features/rs6000/powerpc-750.c: Regenerate.
2112 * features/rs6000/powerpc-860.c: Regenerate.
2113 * features/rs6000/powerpc-altivec32.c: Regenerate.
2114 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2115 * features/rs6000/powerpc-altivec64.c: Regenerate.
2116 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2117 * features/rs6000/powerpc-e500.c: Regenerate.
2118 * features/rs6000/powerpc-e500l.c: Regenerate.
2119 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2120 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2121 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2122 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2123 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2124 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2125 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2126 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2127 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2128 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2129 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2130 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2131 * features/rs6000/powerpc-vsx32.c: Regenerate.
2132 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2133 * features/rs6000/powerpc-vsx64.c: Regenerate.
2134 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2135 * features/rs6000/rs6000.c: Regenerate.
2136 * features/rx.c: Regenerate.
2137 * features/s390-gs-linux64.c: Regenerate.
2138 * features/s390-linux32.c: Regenerate.
2139 * features/s390-linux32v1.c: Regenerate.
2140 * features/s390-linux32v2.c: Regenerate.
2141 * features/s390-linux64.c: Regenerate.
2142 * features/s390-linux64v1.c: Regenerate.
2143 * features/s390-linux64v2.c: Regenerate.
2144 * features/s390-te-linux64.c: Regenerate.
2145 * features/s390-tevx-linux64.c: Regenerate.
2146 * features/s390-vx-linux64.c: Regenerate.
2147 * features/s390x-gs-linux64.c: Regenerate.
2148 * features/s390x-linux64.c: Regenerate.
2149 * features/s390x-linux64v1.c: Regenerate.
2150 * features/s390x-linux64v2.c: Regenerate.
2151 * features/s390x-te-linux64.c: Regenerate.
2152 * features/s390x-tevx-linux64.c: Regenerate.
2153 * features/s390x-vx-linux64.c: Regenerate.
2154 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2155 from allocate_target_description.
2156 * target-descriptions.c (allocate_target_description): Update
2157 return type.
2158 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2159 allocate_target_description.
2160
485c47e5
TT
21612020-10-07 Tom Tromey <tromey@adacore.com>
2162
2163 * unittests/search-memory-selftests.c: New file.
2164 * Makefile.in (SELFTESTS_SRCS): Add
2165 unittests/search-memory-selftests.c.
2166
3a135a91
TT
21672020-10-07 Tom Tromey <tromey@adacore.com>
2168
2169 PR gdb/16930:
2170 * findcmd.c (_initialize_mem_search): Mention that the range is
2171 inclusive.
2172
4a72de73
TT
21732020-10-07 Tom Tromey <tromey@adacore.com>
2174
2175 * target.h (simple_search_memory): Don't declare.
2176 * target.c (simple_search_memory): Move to gdbsupport.
2177 (default_search_memory): Update.
2178 * remote.c (remote_target::search_memory): Update.
2179
a038ffd8
SM
21802020-10-07 Simon Marchi <simon.marchi@efficios.com>
2181
2182 * Makefile.in (COMPILE): Add CXXFLAGS.
2183 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2184 (check-headers): Add CXXFLAGS.
2185
cc463201
AK
21862020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2187
2188 * arc-linux-tdep.h: New file.
2189 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2190 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2191 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2192 arc_linux_gregset, arc_linux_v2_regset,
2193 arc_linux_iterate_over_regset_sections,
2194 arc_linux_core_read_description): Implement.
2195 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2196 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2197 (arc_gdbarch_features_create): Add.
2198 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2199
e4bd363f
SV
22002020-10-07 Shahab Vahedi <shahab@synopsys.com>
2201
2202 * arch/arc.h: Rename "arc_gdbarch_features" to
2203 "arc_arch_features".
2204 * arc-tdep.h: Likewise.
2205 * arc-tdep.c: Likewise.
2206
b68bef99
TBA
22072020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2208
2209 * infcmd.c (attach_command): Remove the redundant call to
2210 `clear_proceed_status`.
2211
4641551a
KR
22122020-10-07 Kamil Rytarowski <n54@gmx.com>
2213
2214 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2215
91e5e8db
KR
22162020-10-07 Kamil Rytarowski <n54@gmx.com>
2217
2218 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2219 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2220 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2221
64c03bdb
SM
22222020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2225 (_initialize_break_catch_sig): Don't allocate array.
2226
31a8f60f
AB
22272020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * symtab.c (find_pc_line): Return unmapped addresses when the
2230 requested address is also unmapped.
2231
9e6dbd8b
SM
22322020-10-05 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2235 tui/tui-out.h.
2236
a1d217e8
SM
22372020-10-05 Simon Marchi <simon.marchi@efficios.com>
2238
2239 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2240 type::is_vector instead of TYPE_VECTOR.
2241
7d144117
SM
22422020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * auto-load.c (auto_load_objfile_script_1): Don't use
2245 debugfile_holder as temporary variable when stripping drive
2246 letter.
2247
cd096ec8
HD
22482020-10-05 Hannes Domani <ssbssa@yahoo.de>
2249
2250 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2251 Add TYPE_CODE_COMPLEX.
2252 (amd64_windows_return_value): Fix types returned via XMM0.
2253
b58e7f72
AH
22542020-10-05 Alan Hayward <alan.hayward@arm.com>
2255
2256 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2257 AArch64/ARM maintainers.
2258
8d378f27
SM
22592020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2260
2261 * NEWS: Mention set/show debug event-loop.
2262
d5519913
TT
22632020-10-02 Tom Tromey <tromey@adacore.com>
2264
2265 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2266 REG_EXTENDED.
2267
18b67edc
SM
22682020-10-02 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2271 * procfs.c (procfs_inferior_created): Remove.
2272 (_initialize_procfs): Don't register procfs_inferior_created.
2273
6b01403b
SM
22742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * async-event.c (invoke_async_signal_handlers): Add debug
2277 print.
2278 (check_async_event_handlers): Likewise.
2279 * event-top.c (show_debug_event_loop): New function.
2280 (_initialize_event_top): Register "set debug event-loop"
2281 setting.
2282
ba988419
SM
22832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2286 * debug.h: Remove.
2287 * infrun.c: Include gdbsupport/common-debug.h.
2288 * linux-nat.c: Likewise.
2289
db20ebdf
SM
22902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * async-event.h (create_async_signal_handler): Add name
2293 parameter.
2294 (create_async_event_handler): Likewise.
2295 * async-event.c (struct async_signal_handler) <name>: New field.
2296 (struct async_event_handler) <name>: New field.
2297 (create_async_signal_handler): Assign name.
2298 (create_async_event_handler): Assign name.
2299 * event-top.c (async_init_signals): Pass name when creating
2300 handler.
2301 * infrun.c (_initialize_infrun): Likewise.
2302 * record-btrace.c (record_btrace_push_target): Likewise.
2303 * record-full.c (record_full_open): Likewise.
2304 * remote-notif.c (remote_notif_state_allocate): Likewise.
2305 * remote.c (remote_target::open_1): Likewise.
2306 * tui/tui-win.c (tui_initialize_win): Likewise.
2307
2554f6f5
SM
23082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2309
2310 * async-event.c (initialize_async_signal_handlers): Pass name to
2311 add_file_handler
2312 * event-top.c (ui_register_input_event_handler): Likewise.
2313 * linux-nat.c (linux_nat_target::async): Likewise.
2314 * run-on-main-thread.c (_initialize_run_on_main_thread):
2315 Likewise
2316 * ser-base.c (reschedule): Likewise.
2317 (ser_base_async): Likewise.
2318 * tui/tui-io.c: Likewise.
2319 * top.h (struct ui) <num>: New field.
2320 * top.c (highest_ui_num): New variable.
2321 (ui::ui): Initialize num.
2322
a7aba266
SM
23232020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2324
2325 * observable.h <inferior_created>: Remove parameters. Update all
2326 listeners.
2327 * inferior.h (post_create_inferior): Remove target parameter.
2328 Update all callers.
2329
048fde1e 23302020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2331
2332 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2333 and DW_MACRO_undef_strx.
2334 (dwarf_decode_macros): Likewise
2335 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2336 which is the value of DW_AT_str_offsets_base.
2337 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2338 str_offsets_base.
2339
064280be
KR
23402020-10-01 Kamil Rytarowski <n54@gmx.com>
2341
2342 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2343
6ff33035
KR
23442020-10-01 Kamil Rytarowski <n54@gmx.com>
2345
2346 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2347 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2348
1eb6eb79
KR
23492020-10-01 Kamil Rytarowski <n54@gmx.com>
2350
2351 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2352
95eb9e54
TV
23532020-09-30 Tom de Vries <tdevries@suse.de>
2354
2355 PR symtab/26683
2356 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2357
cae21f8e
TT
23582020-09-30 Tom Tromey <tromey@adacore.com>
2359
2360 * dwarf2/read.c (handle_variant): Use constant_value.
2361
529908cb
TT
23622020-09-29 Tom Tromey <tom@tromey.com>
2363
2364 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2365 (read_file_scope, dwarf2_get_pc_bounds)
2366 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2367 (read_structure_type, handle_struct_member_die)
2368 (read_enumeration_type, read_array_type, read_set_type)
2369 (read_tag_pointer_type, read_tag_reference_type)
2370 (read_subroutine_type, read_base_type, read_subrange_type)
2371 (read_full_die_1, partial_die_info::read)
2372 (partial_die_info::read, by, new_symbol)
2373 (dwarf2_const_value_data, dwarf2_const_value_attr)
2374 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2375 (prepare_one_comp_unit): Update.
2376 * dwarf2/attribute.h (DW_UNSND): Remove.
2377
c45bc3f8
TT
23782020-09-29 Tom Tromey <tom@tromey.com>
2379
2380 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2381 (read_subroutine_type, partial_die_info::read)
2382 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2383 (dwarf2_add_member_fn): Update.
2384 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2385 * dwarf2/attribute.c (attribute::as_boolean): New method.
2386
23dca5c3
TT
23872020-09-29 Tom Tromey <tom@tromey.com>
2388
2389 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2390 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2391 method.
2392 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2393
52c14d11
TT
23942020-09-29 Tom Tromey <tom@tromey.com>
2395
2396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2397 the attribute's form.
2398
e8e5c158
TT
23992020-09-29 Tom Tromey <tom@tromey.com>
2400
2401 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2402 (dwarf2_add_member_fn): Update.
2403 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2404 * dwarf2/attribute.c (attribute::defaulted): New method, from
2405 is_valid_DW_AT_defaulted.
2406
d4df075e
TT
24072020-09-29 Tom Tromey <tom@tromey.com>
2408
2409 * dwarf2/read.c (dw2_get_file_names_reader)
2410 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2411 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2412 (dwarf2_symbol_mark_computed): Use as_unsigned.
2413 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2414 method.
2415 <form_is_section_offset>: Update comment.
2416
bf23a268
TT
24172020-09-29 Tom Tromey <tom@tromey.com>
2418
2419 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2420 dwarf2_default_access_attribute. Look up attribute.
2421 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2422 Update.
2423
7a5f294d
TT
24242020-09-29 Tom Tromey <tom@tromey.com>
2425
2426 * dwarf2/read.c (skip_one_die): Update.
2427 (read_full_die_1): Change how reprocessing is done.
2428 (partial_die_info::read): Update.
2429 (read_attribute_value): Remove need_reprocess parameter.
2430 (read_attribute): Likewise.
2431 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2432 New method.
2433
36d378cf
TT
24342020-09-29 Tom Tromey <tom@tromey.com>
2435
2436 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2437 (dwarf2_const_value_attr, dump_die_shallow)
2438 (dwarf2_fetch_constant_bytes): Update.
2439 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2440 comment.
2441 <set_address>: New method.
2442 (DW_ADDR): Remove.
2443 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2444 (attribute::as_string, attribute::as_address): Add assert.
2445
fe56917a
TT
24462020-09-29 Tom Tromey <tom@tromey.com>
2447
2448 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2449 (read_attribute_reprocess, read_attribute_value): Update.
2450 (read_attribute): Clear requires_reprocessing.
2451 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2452 form_requires_reprocessing>: New methods.
2453 <string_init>: Clear requires_reprocessing.
2454 <set_unsigned_reprocess>: New method.
2455 <name>: Shrink by one bit.
2456 <requires_reprocessing>: New member.
2457 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2458 method.
2459
414ad644
TT
24602020-09-29 Tom Tromey <tom@tromey.com>
2461
2462 * dwarf2/read.c (read_attribute_value): Update.
2463 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2464 set_unsigned>: New methods.
2465 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2466
1bc397c5
TT
24672020-09-29 Tom Tromey <tom@tromey.com>
2468
2469 * dwarf2/read.c (get_alignment, read_array_order)
2470 (read_attribute_value, dwarf2_const_value_attr)
2471 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2472 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2473 New methods.
2474 (DW_SND): Remove.
2475
630ed6b9
TT
24762020-09-29 Tom Tromey <tom@tromey.com>
2477
2478 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2479 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2480 Update.
2481 * dwarf2/attribute.h (struct attribute) <as_signature,
2482 set_signature>: New methods.
2483 (DW_SIGNATURE): Remove.
2484
9d2246fc
TT
24852020-09-29 Tom Tromey <tom@tromey.com>
2486
2487 * dwarf2/read.c (read_call_site_scope)
2488 (handle_data_member_location, dwarf2_add_member_fn)
2489 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2490 (partial_die_info::read, read_attribute_value)
2491 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2492 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2493 (dwarf2_symbol_mark_computed): Update.
2494 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2495 methods.
2496 (DW_BLOCK): Remove.
2497 * dwarf2/attribute.c (attribute::form_is_block): Add
2498 DW_FORM_data16.
2499
c6481205
TT
25002020-09-29 Tom Tromey <tom@tromey.com>
2501
2502 * dwarf2/read.c (read_cutu_die_from_dwo)
2503 (read_attribute_reprocess, read_attribute_value, read_attribute)
2504 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2505 (dwarf2_fetch_constant_bytes): Update.
2506 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2507 <set_string_noncanonical, set_string_canonical>: New methods.
2508 <string_is_canonical>: Update comment.
2509 <canonical_string_p>: Add assert.
2510 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2511 * dwarf2/attribute.c (attribute::form_is_string): New method.
2512 (attribute::string): Use it.
2513
3b64bf15
TT
25142020-09-29 Tom Tromey <tom@tromey.com>
2515
2516 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2517 (dump_die_shallow): Use canonical_string_p.
2518 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2519 method.
2520
2c830f54
TT
25212020-09-29 Tom Tromey <tom@tromey.com>
2522
2523 * dwarf2/read.c (partial_die_info::read)
2524 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2525 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2526 attribute::as_string.
2527
6c412691
TT
25282020-09-29 Tom Tromey <tom@tromey.com>
2529
2530 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2531 DW_ADDR.
2532 (attribute::string): Don't use DW_STRING.
2533 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2534 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2535
95f982e5
TT
25362020-09-29 Tom Tromey <tom@tromey.com>
2537
2538 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2539 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2540 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2541 * dwarf2/attribute.h (struct attribute): Rename methods.
2542 * dwarf2/attribute.c (attribute::as_address): Rename from
2543 value_as_address.
2544 (attribute::as_string): Rename from value_as_string.
2545
f800b00e
TT
25462020-09-29 Tom Tromey <tom@tromey.com>
2547
2548 * dwarf2/read.c (partial_die_info::read) <case
2549 DW_AT_linkage_name>: Use value_as_string.
2550 (dwarf2_string_attr): Use value_as_string.
2551 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2552 method.
2553 * dwarf2/attribute.c (attribute::value_as_string): New method.
2554
de38d64a
PA
25552020-09-29 Pedro Alves <pedro@palves.net>
2556
2557 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2558 defined before using '#pragma GCC diagnostic' instead of checking
2559 __clang__.
2560
9aed480c
TT
25612020-09-28 Tom Tromey <tom@tromey.com>
2562
2563 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2564 (handle_signal_stop): Update.
2565 * procfs.c (procfs_target::insert_watchpoint): Update.
2566 * target.h (target_have_steppable_watchpoint): Now a function.
2567
8a3ecb79
TT
25682020-09-28 Tom Tromey <tom@tromey.com>
2569
2570 * infrun.c (set_schedlock_func): Update.
2571 * target.h (target_can_lock_scheduler): Now a function.
2572
55f6301a
TT
25732020-09-28 Tom Tromey <tom@tromey.com>
2574
2575 * inferior.h (class inferior) <has_execution>: Update.
2576 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2577 * valops.c (find_function_in_inferior)
2578 (value_allocate_space_in_inferior): Update.
2579 * top.c (kill_or_detach): Update.
2580 * target.c (target_preopen, set_target_permissions): Update.
2581 (target_has_execution_current): Remove.
2582 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2583 Update.
2584 * solib.c (update_solib_list, reload_shared_libraries): Update.
2585 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2586 * solib-dsbt.c (enable_break): Update.
2587 * score-tdep.c (score7_fetch_inst): Update.
2588 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2589 Update.
2590 * remote.c (remote_target::start_remote)
2591 (remote_target::remote_check_symbols, remote_target::open_1)
2592 (remote_target::remote_detach_1, remote_target::verify_memory)
2593 (remote_target::xfer_partial, remote_target::read_description)
2594 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2595 * record-full.c (record_full_open_1): Update.
2596 * record-btrace.c (record_btrace_target_open): Update.
2597 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2598 (value_nsstring): Update.
2599 * linux-thread-db.c (add_thread_db_info)
2600 (thread_db_find_new_threads_silently, check_thread_db_callback)
2601 (try_thread_db_load_1, record_thread): Update.
2602 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2603 Update.
2604 * linux-fork.c (checkpoint_command): Update.
2605 * infrun.c (set_non_stop, set_observer_mode)
2606 (check_multi_target_resumption, for_each_just_stopped_thread)
2607 (maybe_remove_breakpoints, normal_stop)
2608 (class infcall_suspend_state): Update.
2609 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2610 (info_program_command, attach_command): Update.
2611 * infcall.c (call_function_by_hand_dummy): Update.
2612 * inf-loop.c (inferior_event_handler): Update.
2613 * gcore.c (gcore_command, derive_heap_segment): Update.
2614 * exec.c (exec_file_command): Update.
2615 * eval.c (evaluate_subexp): Update.
2616 * compile/compile.c (compile_to_object): Update.
2617 * cli/cli-dump.c (restore_command): Update.
2618 * breakpoint.c (update_watchpoint)
2619 (update_inserted_breakpoint_locations)
2620 (insert_breakpoint_locations, get_bpstat_thread): Update.
2621 * target.h (target_has_execution): Remove macro.
2622 (target_has_execution_current): Don't declare.
2623 (target_has_execution): Rename from target_has_execution_1. Add
2624 argument default.
2625
05374cfd
TT
26262020-09-28 Tom Tromey <tom@tromey.com>
2627
2628 * mi/mi-main.c (exec_reverse_continue)
2629 (mi_cmd_list_target_features): Update.
2630 * infrun.c (set_exec_direction_func): Update.
2631 * target.c (default_execution_direction): Update.
2632 * reverse.c (exec_reverse_once): Update.
2633 * target.h (target_can_execute_reverse): Now a function.
2634
9dccd06e
TT
26352020-09-28 Tom Tromey <tom@tromey.com>
2636
2637 * tui/tui-regs.c (tui_get_register)
2638 (tui_data_window::show_registers): Update.
2639 * thread.c (scoped_restore_current_thread::restore)
2640 (scoped_restore_current_thread::scoped_restore_current_thread):
2641 Update.
2642 * regcache-dump.c (regcache_print): Update.
2643 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2644 Update.
2645 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2646 * mep-tdep.c (current_me_module, current_options): Update.
2647 * linux-thread-db.c (thread_db_load): Update.
2648 * infcmd.c (registers_info, info_vector_command)
2649 (info_float_command): Update.
2650 * ia64-tdep.c (ia64_frame_prev_register)
2651 (ia64_sigtramp_frame_prev_register): Update.
2652 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2653 * gcore.c (derive_stack_segment): Update.
2654 * frame.c (get_current_frame, has_stack_frames): Update.
2655 * findvar.c (language_defn::read_var_value): Update.
2656 * arm-tdep.c (arm_pc_is_thumb): Update.
2657 * target.c (target_has_registers): Rename from
2658 target_has_registers_1.
2659 * target.h (target_has_registers): Remove macro.
2660 (target_has_registers): Rename from target_has_registers_1.
2661
841de120
TT
26622020-09-28 Tom Tromey <tom@tromey.com>
2663
2664 * windows-tdep.c (tlb_make_value): Update.
2665 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2666 * thread.c (scoped_restore_current_thread::restore)
2667 (scoped_restore_current_thread::scoped_restore_current_thread)
2668 (thread_command): Update.
2669 * stack.c (backtrace_command_1, frame_apply_level_command)
2670 (frame_apply_all_command, frame_apply_command): Update.
2671 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2672 Update.
2673 * gcore.c (derive_stack_segment): Update.
2674 * frame.c (get_current_frame, has_stack_frames): Update.
2675 * auxv.c (info_auxv_command): Update.
2676 * ada-tasks.c (ada_build_task_list): Update.
2677 * target.c (target_has_stack): Rename from target_has_stack_1.
2678 * target.h (target_has_stack): Remove macro.
2679 (target_has_stack): Rename from target_has_stack_1.
2680
a739972c
TT
26812020-09-28 Tom Tromey <tom@tromey.com>
2682
2683 * target.c (target_has_memory): Rename from target_has_memory_1.
2684 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2685 * thread.c (scoped_restore_current_thread::restore)
2686 (scoped_restore_current_thread::scoped_restore_current_thread):
2687 Update.
2688 * frame.c (get_current_frame, has_stack_frames): Update.
2689 * target.h (target_has_memory): Remove macro.
2690 (target_has_memory): Rename from target_has_memory_1.
2691
5b8a4776
TT
26922020-09-28 Tom Tromey <tom@tromey.com>
2693
2694 * target.c (target_has_all_memory_1): Remove.
2695 * target.h (target_has_all_memory): Remove define.
2696 (target_has_all_memory_1): Don't declare.
2697
bd356ec6
SM
26982020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * ser-base.c: Adjust comments formatting.
2701
2c72d5e5
TT
27022020-09-27 Tom Tromey <tom@tromey.com>
2703
2704 PR tui/25342:
2705 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2706
35a98237
TT
27072020-09-27 Tom Tromey <tom@tromey.com>
2708
2709 PR tui/25342:
2710 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2711
9e820dec
TT
27122020-09-27 Tom Tromey <tom@tromey.com>
2713
2714 * unittests/tui-selftests.c: Update.
2715 * tui/tui-winsource.h (struct tui_source_window_base)
2716 <extra_margin, show_line_number, refresh_pad>: New methods.
2717 <m_max_length, m_pad>: New members.
2718 (tui_copy_source_line): Update.
2719 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2720 first_col, line_width, ndigits parameters. Add length.
2721 (tui_source_window_base::show_source_line): Write to pad. Line
2722 number now 0-based.
2723 (tui_source_window_base::refresh_pad): New method.
2724 (tui_source_window_base::show_source_content): Write to pad. Call
2725 refresh_pad.
2726 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2727 not refill.
2728 (tui_source_window_base::update_exec_info): Call
2729 show_line_number.
2730 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2731 method.
2732 <m_digits>: New member.
2733 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2734 and m_max_length.
2735 (tui_source_window::show_line_number): New method.
2736 * tui/tui-io.h (tui_puts): Fix comment.
2737 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2738 m_max_length.
2739
c15c15c8
TT
27402020-09-27 Tom Tromey <tom@tromey.com>
2741
2742 * tui/tui-winsource.c
2743 (tui_source_window_base::set_is_exec_point_at): Don't call
2744 show_source_line.
2745
149830c1
TT
27462020-09-27 Tom Tromey <tom@tromey.com>
2747
2748 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2749 method.
2750 <erase>: Update.
2751 <cursor_x, cursor_y>: Remove.
2752 <m_inner_window>: New member.
2753 (tui_py_window::rerender): Create inner window.
2754 (tui_py_window::output): Write to inner window.
2755
8f9929bb
GR
27562020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2757
2758 PR python/26586
2759 * cli/cli-script.c (execute_control_commands): don't set
2760 instream to nullptr here as this breaks the from_tty argument
2761 to gdb.execute in Python.
2762 (execute_user_command): set instream to nullptr here instead.
2763
956bdb59
SM
27642020-09-25 Simon Marchi <simon.marchi@efficios.com>
2765
2766 * infrun.h (infrun_debug_printf): Fix formatting.
2767 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2768
3b93626b
SJ
27692020-09-25 Saagar Jha <saagar@saagarjha.com>
2770
2771 * compile/compile-object-load.h (struct munmap_list): Add
2772 explicitly-defined move constructor.
2773
b551a89f
TT
27742020-09-24 Tom Tromey <tromey@adacore.com>
2775
2776 PR tui/26638:
2777 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2778 method.
2779 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2780 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2781 (tui_prev_win): Rewrite.
2782
99bb393f
HD
27832020-09-23 Hannes Domani <ssbssa@yahoo.de>
2784
2785 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2786 in WOW64 processes as SIGINT.
2787 * nat/windows-nat.h: Make wow64_process a shared variable.
2788 * windows-nat.c: Remove static wow64_process variable.
2789
20a5fcbd
TT
27902020-09-23 Tom Tromey <tom@tromey.com>
2791
2792 PR symtab/25470:
2793 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2794 offset and bit size.
2795 * printcmd.c (print_scalar_formatted): Handle zero-length
2796 integer.
2797 (print_scalar_formatted): Use bit_size_differs_p.
2798 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2799 constant.
2800 (union type_specific): <int_stuff>: New member.
2801 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2802 methods.
2803 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2804 TYPE_SPECIFIC_FIELD.
2805 (recursive_dump_type, copy_type_recursive): Update.
2806 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2807 DW_AT_data_bit_offset.
2808
bac51ab7
TT
28092020-09-23 Tom Tromey <tom@tromey.com>
2810
2811 * utils.h (class gdb_argv): Add move operators.
2812 <append>: New methods.
2813 * compile/compile.c (build_argc_argv): Remove.
2814 (compile_args_argc): Remove.
2815 (compile_args_argv): Change type.
2816 (set_compile_args): Simplify.
2817 (append_args): Remove.
2818 (filter_args): Remove argcp parameter.
2819 (get_args): Return gdb_argv. Simplify.
2820 (compile_to_object): Update.
2821
92677124
TT
28222020-09-23 Tom Tromey <tom@tromey.com>
2823
2824 * compile/compile-object-run.c (do_module_cleanup)
2825 <~do_module_cleanup> :Remove.
2826 (do_module_cleanup): Update.
2827 * compile/compile-object-load.h (struct munmap_list): Add move
2828 assignment operator.
2829 <source_file>: Now a std::string.
2830 <munmap_list>: Rename. No longer a pointer.
2831 * compile/compile-object-load.c (struct setup_sections_data): Add
2832 constructor.
2833 <setup_one_section>: Declare.
2834 <munmap_list>: Move earlier.
2835 <m_bfd>: New member.
2836 <m_last_size, m_last_section_first, m_last_prot,
2837 m_last_max_alignment>: Rename, add initializers where needed.
2838 (setup_sections_data::setup_one_section): Rename from
2839 setup_sections. Update.
2840 (compile_object_load): Update. Don't use bfd_map_over_sections.
2841
e616f60a
TT
28422020-09-23 Tom Tromey <tom@tromey.com>
2843
2844 * compile/compile-object-run.c (struct do_module_cleanup): Add
2845 parameters to constructor. Update destructor.
2846 <source_file, scope, scope_data, out_value_type, out_value_addr,
2847 munmap_list_head, objfile_name_string>: Remove.
2848 <module>: New member.
2849 (do_module_cleanup): Update.
2850 (compile_object_run): Update.
2851
e947a848
TT
28522020-09-23 Tom Tromey <tom@tromey.com>
2853
2854 * compile/compile.c (eval_compile_command): Update.
2855 * compile/compile-object-run.h (compile_object_run): Take a
2856 compile_module_up.
2857 * compile/compile-object-run.c (compile_object_run): Take a
2858 compile_module_up.
2859 * compile/compile-object-load.h (struct compile_module): Add
2860 constructor, destructor.
2861 (compile_module_up): New typedef.
2862 (compile_object_load): Return compile_object_up.
2863 * compile/compile-object-load.c (compile_object_load): Return
2864 compile_module_up.
2865
0dbf6ee6
TT
28662020-09-23 Tom Tromey <tom@tromey.com>
2867
2868 * compile/compile-object-run.c (struct do_module_cleanup): Add
2869 constructor, destructor.
2870 <objfile_name_string>: Don't use struct hack.
2871 (do_module_cleanup): Use delete.
2872 (compile_object_run): Use new.
2873
ebe824f5
TT
28742020-09-23 Tom Tromey <tom@tromey.com>
2875
2876 * compile/compile-cplus-types.c
2877 (compile_cplus_convert_struct_or_union): Use std::vector.
2878 (compile_cplus_convert_func): Likewise.
2879 * compile/compile-c-types.c (convert_func): Use std::vector.
2880
5dd918d9
TT
28812020-09-21 Tom Tromey <tromey@adacore.com>
2882
2883 * sparc-tdep.c (sparc32_skip_prologue): Use
2884 skip_prologue_using_sal.
2885
5486c517
TT
28862020-09-19 Tom Tromey <tom@tromey.com>
2887
2888 * symfile.c (add_section_size_callback): Remove.
2889 (load_one_section): Rename from load_section_callback. Change
2890 parameters.
2891 (generic_load): Use foreach.
2892
8a6bb1d1
TT
28932020-09-19 Tom Tromey <tom@tromey.com>
2894
2895 * exec.c (add_to_section_table): Remove.
2896 (build_section_table): Use foreach.
2897
08f93a1a
TT
28982020-09-19 Tom Tromey <tom@tromey.com>
2899
2900 * elfread.c (elf_locate_sections): Change parameters.
2901 (elf_symfile_read): Use foreach.
2902
03cd72b8
TT
29032020-09-19 Tom Tromey <tom@tromey.com>
2904
2905 * cli/cli-dump.c (struct callback_data): Remove.
2906 (restore_one_section): Rename from restore_section_callback.
2907 Change parameters.
2908 (restore_binary_file): Change parameters.
2909 (restore_command): Use foreach.
2910
f4f2b85f
TT
29112020-09-19 Tom Tromey <tom@tromey.com>
2912
2913 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2914 (gcore_copy_callback): Likewise.
2915 (gcore_memory_sections): Use foreach.
2916
b35c1d1c
TT
29172020-09-19 Tom Tromey <tom@tromey.com>
2918
2919 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2920 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2921 parameters.
2922 (generic_elf_osabi_sniffer): Use foreach.
2923 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2924 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2925
5bb6e9dd
TT
29262020-09-19 Tom Tromey <tom@tromey.com>
2927
2928 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2929 (dwarf2_get_dwz_file): Use foreach.
2930 (dwarf2_locate_dwo_sections): Change parameters.
2931 (open_and_init_dwo_file): Use foreach.
2932 (dwarf2_locate_common_dwp_sections): Change parameters.
2933 (open_and_init_dwp_file): Use foreach.
2934
ad7277da
TT
29352020-09-19 Tom Tromey <tom@tromey.com>
2936
2937 * symfile.h: (find_lowest_section): Don't declare.
2938 * symfile.c (find_lowest_section): Now static. Change
2939 parameters.
2940 (struct place_section_arg): Remove.
2941 (place_section): Change parameters.
2942 (addr_info_make_relative): Use foreach.
2943 (symfile_dummy_outputs): Remove.
2944 (default_symfile_relocate): Use foreach.
2945
cb814f2e
TT
29462020-09-19 Tom Tromey <tom@tromey.com>
2947
2948 * objfiles.c (add_to_objfile_sections): Rename from
2949 add_to_objfile_sections_full.
2950 (add_to_objfile_sections): Remove.
2951 (build_objfile_section_table): Use foreach.
2952
3cabfd26
TT
29532020-09-19 Tom Tromey <tom@tromey.com>
2954
2955 * stap-probe.c (get_stap_base_address_1): Remove.
2956 (get_stap_base_address): Use foreach.
2957
1ce51eb5
TT
29582020-09-19 Tom Tromey <tom@tromey.com>
2959
2960 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2961 parameters.
2962 (gdb_bfd_close_or_warn): Use foreach.
2963
a190fabb
TT
29642020-09-19 Tom Tromey <tom@tromey.com>
2965
2966 * corelow.c (add_to_thread_list): Change parameters.
2967 (core_target_open): Use foreach.
2968
cafb0d81
TT
29692020-09-19 Tom Tromey <tom@tromey.com>
2970
2971 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2972 existing function.
2973
c8d5abea
AB
29742020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2977 for arrays.
2978
6d816919
AB
29792020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * eval.c: Remove 'f-lang.h' include.
2982 (value_f90_subarray): Moved to f-lang.c.
2983 (eval_call): Renamed to...
2984 (evaluate_subexp_do_call): ...this, is no longer static, header
2985 comment moved into header file.
2986 (evaluate_funcall): Update call to eval_call.
2987 (skip_undetermined_arglist): Moved to f-lang.c.
2988 (fortran_value_subarray): Likewise.
2989 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2990 moved to evaluate_subexp_f.
2991 (calc_f77_array_dims): Moved to f-lang.c
2992 * expprint.c (print_subexp_funcall): New function.
2993 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2994 moved to print_subexp_f, OP_FUNCALL uses new function.
2995 (dump_subexp_body_funcall): New function.
2996 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2997 moved to dump_subexp_f, OP_FUNCALL uses new function.
2998 * expression.h (evaluate_subexp_do_call): Declare.
2999 * f-lang.c (value_f90_subarray): Moved from eval.c.
3000 (skip_undetermined_arglist): Likewise.
3001 (calc_f77_array_dims): Likewise.
3002 (fortran_value_subarray): Likewise.
3003 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3004 (operator_length_f): Likewise.
3005 (print_subexp_f): Likewise.
3006 (dump_subexp_body_f): Likewise.
3007 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3008 declaration of this operation to here.
3009 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3010 support moved to operator_length_f.
3011 * parser-defs.h (dump_subexp_body_funcall): Declare.
3012 (print_subexp_funcall): Declare.
3013 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3014 fortran-operator.def.
3015
8c37706a
AB
30162020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * eval.c (fortran_value_subarray): New function, content is taken
3019 from...
3020 (evaluate_subexp_standard): ...here, in two places. Now arrays
3021 and strings both call the new function.
3022 (calc_f77_array_dims): Add header comment, handle strings.
3023
14f9473c
VC
30242020-09-18 Victor Collod <vcollod@nvidia.com>
3025
3026 PR gdb/26635
3027 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3028 (i386_analyze_prologue): Call i386_skip_endbr.
3029
b60cea74
TT
30302020-09-18 Tom Tromey <tromey@adacore.com>
3031
3032 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3033 (windows_nat_target::wait): Update.
3034 * target/wait.h (enum target_wait_flag): New. Use
3035 DEF_ENUM_FLAGS_TYPE.
3036 * target/target.h (target_wait): Change type of options.
3037 * target.h (target_options_to_string, default_target_wait):
3038 Update.
3039 (struct target_ops) <wait>: Change type of options.
3040 * target.c (target_wait, default_target_wait, do_option): Change
3041 type of "options".
3042 (target_options_to_string): Likewise.
3043 * target-delegates.c: Rebuild.
3044 * target-debug.h (target_debug_print_target_wait_flags): Rename
3045 from target_debug_print_options.
3046 * sol-thread.c (class sol_thread_target) <wait>: Update.
3047 (sol_thread_target::wait): Update.
3048 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3049 (rs6000_nat_target::wait): Update.
3050 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3051 Update.
3052 (remote_target::wait_ns, remote_target::wait_as): Change type of
3053 "options".
3054 (remote_target::wait): Update.
3055 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3056 (gdbsim_target::wait): Update.
3057 * record-full.c (class record_full_base_target) <wait>: Update.
3058 (record_full_wait_1): Change type of "options".
3059 (record_full_base_target::wait): Update.
3060 * record-btrace.c (class record_btrace_target) <wait>: Update.
3061 (record_btrace_target::wait): Update.
3062 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3063 Update.
3064 (ravenscar_thread_target::wait): Update.
3065 * procfs.c (class procfs_target) <wait>: Update.
3066 (procfs_target::wait): Update.
3067 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3068 * obsd-nat.c (obsd_nat_target::wait): Update.
3069 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3070 (nto_procfs_target::wait): Update.
3071 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3072 * nbsd-nat.c (nbsd_wait): Change type of "options".
3073 (nbsd_nat_target::wait): Update.
3074 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3075 (thread_db_target::wait): Update.
3076 * linux-nat.h (class linux_nat_target) <wait>: Update.
3077 * linux-nat.c (linux_nat_target::wait): Update.
3078 (linux_nat_wait_1): Update.
3079 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3080 "options".
3081 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3082 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3083 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3084 (go32_nat_target::wait): Update.
3085 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3086 * gnu-nat.c (gnu_nat_target::wait): Update.
3087 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3088 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3089 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3090 * darwin-nat.c (darwin_nat_target::wait): Update.
3091 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3092 (bsd_uthread_target::wait): Update.
3093 * aix-thread.c (class aix_thread_target) <wait>: Update.
3094 (aix_thread_target::wait): Update.
3095
0295dde6
AB
30962020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3097
3098 * compile/compile-object-run.c (create_copied_type_recursive): New
3099 function.
3100 (compile_object_run): Use new function.
3101
d3483b43
JT
31022020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3103
3104 * NEWS: Mention x86_64 Cygwin core file support.
3105
e7d612ad
JT
31062020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3107
3108 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3109 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3110
aff9d387
JT
31112020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3112
62a5151b
JT
3113 * windows-tdep.h: Add prototypes.
3114 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3115 (i386_windows_core_pid_to_str): Move and rename ...
3116 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3117 (windows_core_pid_to_str): ... and here.
3118 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3119
31202020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3121 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3122 (amd64_windows_init_abi_common): ... and register.
3123
7d155da3
JT
31242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3125
3126 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3127 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3128
e8ef12b9
PA
31292020-09-18 Pedro Alves <pedro@palves.net>
3130
3131 PR gdb/26631
3132 * thread.c (thread_find_command): Switch inferior before calling
3133 target methods.
3134
c1e1314d
TT
31352020-09-17 Tom Tromey <tromey@adacore.com>
3136
3137 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3138 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3139 (tdesc_arch_data_up): New typedef.
3140 (tdesc_use_registers, tdesc_data_alloc): Update.
3141 (tdesc_data_cleanup): Don't declare.
3142 * target-descriptions.c (tdesc_data_alloc): Return a
3143 tdesc_arch_data_up.
3144 (tdesc_arch_data_deleter::operator()): Rename from
3145 tdesc_data_cleanup. Change argument type.
3146 (tdesc_use_registers): Change early_data to an rvalue reference.
3147 (tdesc_use_registers): Don't use delete.
3148 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3149 * s390-tdep.c (s390_gdbarch_init): Update.
3150 * rx-tdep.c (rx_gdbarch_init): Update.
3151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3152 * riscv-tdep.c (riscv_gdbarch_init): Update.
3153 * or1k-tdep.c (or1k_gdbarch_init): Update.
3154 * nios2-tdep.c (nios2_gdbarch_init): Update.
3155 * nds32-tdep.c (nds32_gdbarch_init): Update.
3156 * mips-tdep.c (mips_gdbarch_init): Update.
3157 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3158 * m68k-tdep.c (m68k_gdbarch_init): Update.
3159 * i386-tdep.c (i386_gdbarch_init): Update.
3160 * arm-tdep.c (arm_gdbarch_init): Update.
3161 * arc-tdep.c (arc_tdesc_init): Update.
3162 (arc_gdbarch_init): Update.
3163 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3164
0363df3d
HD
31652020-09-17 Hannes Domani <ssbssa@yahoo.de>
3166
3167 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3168 for WOW64 processes.
3169
280a9412
TT
31702020-09-17 Tom Tromey <tom@tromey.com>
3171
3172 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3173
6108fd18
TT
31742020-09-17 Tom Tromey <tom@tromey.com>
3175
3176 * value.c (preserve_values): Update.
3177 * python/py-type.c (save_objfile_types): Update.
3178 * guile/scm-type.c (save_objfile_types): Update.
3179 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3180 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3181 * compile/compile-object-run.c (compile_object_run): Update.
3182
fa9b1164
TT
31832020-09-17 Tom Tromey <tom@tromey.com>
3184
3185 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3186 Remove.
3187 <m_table>: Now htab_up.
3188 * typeprint.c (typedef_hash_table::recursively_update)
3189 (typedef_hash_table::add_template_parameters)
3190 (typedef_hash_table::typedef_hash_table): Update.
3191 (typedef_hash_table::~typedef_hash_table): Remove.
3192 (typedef_hash_table::typedef_hash_table)
3193 (typedef_hash_table::find_global_typedef)
3194 (typedef_hash_table::find_typedef): Update.
3195
eb53f105
TT
31962020-09-17 Tom Tromey <tom@tromey.com>
3197
3198 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3199
7a8a5d47
TT
32002020-09-17 Tom Tromey <tom@tromey.com>
3201
3202 * linespec.c (class decode_compound_collector)
3203 <~decode_compound_collector>: Remove.
3204 <m_unique_syms>: Now htab_up.
3205 (decode_compound_collector::operator ()): Update.
3206 (class symtab_collector) <~symtab_collector>: Remove.
3207 <m_symtab_table>: Now htab_up.
3208 (symtab_collector::operator ()): Update.
3209
99032cfc
TT
32102020-09-17 Tom Tromey <tom@tromey.com>
3211
3212 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3213 (filename_seen_cache::clear): Update.
3214 (~filename_seen_cache): Remove.
3215 (filename_seen_cache::seen): Update.
3216 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3217 htab_up.
3218 <~filename_seen_cache>: Remove.
3219 <traverse>: Update.
3220
32580f6d
TT
32212020-09-17 Tom Tromey <tom@tromey.com>
3222
3223 * completer.c (completion_tracker::discard_completions)
3224 (completion_tracker::~completion_tracker)
3225 (completion_tracker::maybe_add_completion)
3226 (completion_tracker::remove_completion)
3227 (completion_tracker::recompute_lowest_common_denominator)
3228 (completion_tracker::build_completion_result): Update.
3229 * completer.h (class completion_tracker) <have_completions>:
3230 Update.
3231 <m_entries_hash>: Now htab_up.
3232
c1fb9836
TT
32332020-09-17 Tom Tromey <tom@tromey.com>
3234
3235 * breakpoint.c (ambiguous_names_p): Use htab_up.
3236
88f07206
TT
32372020-09-17 Tom Tromey <tom@tromey.com>
3238
3239 * auto-load.c (struct auto_load_pspace_info)
3240 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3241 <loaded_script_files, loaded_script_texts>: Change type to
3242 htab_up.
3243 (~auto_load_pspace_info) Remove.
3244 (init_loaded_scripts_info, maybe_add_script_file)
3245 (maybe_add_script_text, auto_load_info_scripts): Update.
3246
9519b2ee
TT
32472020-09-17 Tom Tromey <tromey@adacore.com>
3248
3249 * c-exp.y (name_obstack): Now static.
3250
d2cd4113
CC
32512020-09-17 Chungyi Chi <demonic@csie.io>
3252
3253 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3254
b650a282
SM
32552020-09-16 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3258 (add_solib_catchpoint): Likewise.
3259 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3260 to bool.
3261 (add_solib_catchpoint): Change int parameter/variable to bool.
3262 (catch_load_or_unload): Likewise.
3263 (init_catchpoint): Likewise.
3264 (create_fork_vfork_event_catchpoint): Likewise.
3265 (catch_fork_command_1): Likewise.
3266 (catch_exec_command_1): Likewise.
3267
4d0bcfcf
SM
32682020-09-16 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3271 Change instance_flags to m_instance_flags.
3272
fe830662
TT
32732020-09-16 Tom Tromey <tromey@adacore.com>
3274
3275 PR gdb/26598:
3276 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3277
fe5ddfc3
JB
32782020-09-16 John Baldwin <jhb@FreeBSD.org>
3279
3280 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3281 PL_FLAG_EXEC.
3282 (fbsd_nat_target::insert_exec_catchpoint)
3283 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3284 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3285 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3286
e911c666
JB
32872020-09-16 John Baldwin <jhb@FreeBSD.org>
3288
3289 * configure.ac: Remove check for kinfo_getvmmap().
3290 * configure, config.in: Regenerate.
3291 * fbsd-nat.c (fbsd_read_mapping): Remove
3292 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3293 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3294 kinfo_get_vmmap() are always present.
3295
1f17d372
JB
32962020-09-16 John Baldwin <jhb@FreeBSD.org>
3297
3298 * fbsd-nat.c: Always include support for
3299 TARGET_OBJECT_SIGNAL_INFO.
3300
bcb1da7f
JB
33012020-09-16 John Baldwin <jhb@FreeBSD.org>
3302
3303 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3304 sysctl and remove procfs fallback.
3305
5515f729
JB
33062020-09-16 John Baldwin <jhb@FreeBSD.org>
3307
3308 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3309 * fbsd-nat.h: Likewise.
3310
da1df1db
TBA
33112020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312
3313 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3314 argument.
3315
0e25e767
AB
33162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3317
3318 * ada-lang.c (ada_language_data): Delete.
3319 (ada_language): Remove references to ada_language_data.
3320 * c-lang.c (c_language_data): Delete.
3321 (c_language): Remove references to c_language_data.
3322 (cplus_language_data): Delete.
3323 (cplus_language): Remove references to cplus_language_data.
3324 (asm_language_data): Delete.
3325 (asm_language): Remove references to asm_language_data.
3326 (minimal_language_data): Delete.
3327 (minimal_language): Remove references to minimal_language_data.
3328 * d-lang.c (d_language_data): Delete.
3329 (d_language): Remove references to d_language_data.
3330 * f-lang.c (f_language_data): Delete.
3331 (f_language): Remove references to f_language_data.
3332 * go-lang.c (go_language_data): Delete.
3333 (go_language): Remove references to go_language_data.
3334 * language.c (unknown_language_data): Delete.
3335 (unknown_language): Remove references to unknown_language_data.
3336 (auto_language_data): Delete.
3337 (auto_language): Remove references to auto_language_data.
3338 * language.h (language_data): Delete struct.
3339 (language_defn): No longer inherit from language_data.
3340 * m2-lang.c (m2_language_data): Delete.
3341 (m2_language): Remove references to m2_language_data.
3342 * objc-lang.c (objc_language_data): Delete.
3343 (objc_language): Remove references to objc_language_data.
3344 * opencl-lang.c (opencl_language_data): Delete.
3345 (opencl_language): Remove references to opencl_language_data.
3346 * p-lang.c (pascal_language_data): Delete.
3347 (pascal_language): Remove references to pascal_language_data.
3348 * rust-lang.c (rust_language_data): Delete.
3349 (rust_language): Remove references to rust_language_data.
3350
b7c6e27d
AB
33512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3354 initializer.
3355 (ada_language::opcode_print_table): New member function.
3356 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3357 (c_language::opcode_print_table): New member function.
3358 (cplus_language_data): Remove la_op_print_tab initializer.
3359 (cplus_language::opcode_print_table): New member function.
3360 (asm_language_data): Remove la_op_print_tab initializer.
3361 (asm_language::opcode_print_table): New member function.
3362 (minimal_language_data): Remove la_op_print_tab initializer.
3363 (minimal_language::opcode_print_table): New member function.
3364 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3365 (d_language::opcode_print_table): New member function.
3366 * expprint.c (print_subexp_standard): Update call to
3367 opcode_print_table.
3368 (op_string): Likewise.
3369 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3370 (f_language::opcode_print_table): New member function.
3371 * go-lang.c (go_language_data): Remove la_op_print_tab
3372 initializer.
3373 (go_language::opcode_print_table): New member function.
3374 * language.c (unknown_language_data): Remove la_op_print_tab
3375 initializer.
3376 (unknown_language::opcode_print_table): New member function.
3377 (auto_language_data): Remove la_op_print_tab initializer.
3378 (auto_language::opcode_print_table): New member function.
3379 * language.h (language_data): Remove la_op_print_tab field.
3380 (language_defn::opcode_print_table): Declare new member function.
3381 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3382 initializer.
3383 (m2_language::opcode_print_table): New member function.
3384 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3385 initializer.
3386 (objc_language::opcode_print_table): New member function.
3387 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3388 initializer.
3389 (opencl_language::opcode_print_table): New member function.
3390 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3391 initializer.
3392 (pascal_language::opcode_print_table): New member function.
3393 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3394 initializer.
3395 (rust_language::opcode_print_table): New member function.
3396
5aba6ebe
AB
33972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3400 (ada_language::expression_ops): New member function.
3401 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3402 (c_language::expression_ops): New member function.
3403 (cplus_language_data): Remove la_exp_desc initializer.
3404 (cplus_language::expression_ops): New member function.
3405 (asm_language_data): Remove la_exp_desc initializer.
3406 (asm_language::expression_ops): New member function.
3407 (minimal_language_data): Remove la_exp_desc initializer.
3408 (minimal_language::expression_ops): New member function.
3409 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3410 (d_language::expression_ops): New member function.
3411 * eval.c (evaluate_subexp): Update call to expression_ops.
3412 * expprint.c (print_subexp): Likewise.
3413 (op_name): Likewise.
3414 (dump_subexp_body): Likewise.
3415 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3416 (f_language::expression_ops): New member function.
3417 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3418 (go_language::expression_ops): New member function.
3419 * language.c (language_defn::expression_ops): New function.
3420 (unknown_language_data): Remove la_exp_desc initializer.
3421 (auto_language_data): Likewise.
3422 * language.h (language_data): Remove la_exp_desc field.
3423 (language_defn::expression_ops): Declare new member function.
3424 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3425 (m2_language::expression_ops): New member function.
3426 * objc-lang.c (objc_language_data): Remove la_exp_desc
3427 initializer.
3428 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3429 initializer.
3430 (opencl_language::expression_ops): New member function.
3431 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3432 * parse.c (operator_length): Update call to expression_ops.
3433 (exp_iterate): Likewise.
3434 * rust-lang.c (rust_language_data): Remove la_exp_desc
3435 initializer.
3436 (ruse_language::expression_ops): New member function.
3437
b63a3f3f
AB
34382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3441 initializer.
3442 (ada_language::varobj_ops): New member function.
3443 * c-lang.c (c_language_data): Remove la_varobj_ops
3444 initializer.
3445 (cplus_language_data): Likewise.
3446 (cplus_language::varobj_ops): New member function.
3447 (asm_language_data): Remove la_varobj_ops initializer.
3448 (minimal_language_data): Likewise.
3449 * d-lang.c (d_language_data): Likewise.
3450 * f-lang.c (f_language_data): Likewise.
3451 * go-lang.c (go_language_data): Likewise.
3452 * language.c (language_defn::varobj_ops): New function.
3453 (unknown_language_data): Remove la_varobj_ops
3454 initializer.
3455 (auto_language_data): Likewise.
3456 * language.h (language_data): Remove la_varobj_ops field.
3457 (language_defn::varobj_ops): Declare new member function.
3458 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3459 * objc-lang.c (objc_language_data): Likewise.
3460 * opencl-lang.c (opencl_language_data): Likewise.
3461 * p-lang.c (pascal_language_data): Likewise.
3462 * rust-lang.c (rust_language_data): Likewise.
3463 * varobj.c (varobj_create): Update call to varobj_ops.
3464 * varobj.h (default_varobj_ops): Delete define.
3465
1ac14a04
AB
34662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3469 initializer.
3470 * c-lang.c (c_language_data): Likewise.
3471 (c_language::macro_expansion): New member function.
3472 (cplus_language_data): Likewise.
3473 (cplus_language::macro_expansion): New member function.
3474 (asm_language_data): Likewise.
3475 (asm_language::macro_expansion): New member function.
3476 (minimal_language_data): Likewise.
3477 (minimal_language::macro_expansion): New member function.
3478 * d-lang.c (d_language_data): Remove la_macro_expansion
3479 initializer.
3480 * f-lang.c (f_language_data): Likewise.
3481 * go-lang.c (go_language_data): Likewise.
3482 * language.c (unknown_language_data): Likewise.
3483 (auto_language_data): Likewise.
3484 * language.h (language_data): Remove la_macro_expansion field.
3485 (language_defn::macro_expansion): New member function.
3486 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3487 initializer.
3488 * objc-lang.c (objc_language_data): Likewise.
3489 (objc_language::macro_expansion): New member function.
3490 * opencl-lang.c (opencl_language_data): Likewise.
3491 (opencl_language::macro_expansion): New member function.
3492 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3493 initializer.
3494 * rust-lang.c (rust_language_data): Likewise.
3495 * symtab.c (default_collect_symbol_completion_matches_break_on):
3496 Update call to macro_expansion.
3497
3a3440fb
AB
34982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * ada-lang.c (ada_language_data): Remove la_array_ordering
3501 initializer.
3502 * c-lang.c (c_language_data): Likewise.
3503 (cplus_language_data): Likewise.
3504 (asm_language_data): Likewise.
3505 (minimal_language_data): Likewise.
3506 * d-lang.c (d_language_data): Likewise.
3507 * dwarf2/read.c (read_array_order): Update for call to
3508 array_ordering.
3509 * f-lang.c (f_language_data): Remove la_array_ordering
3510 initializer.
3511 (f_language::array_ordering): New member function.
3512 * go-lang.c (go_language_data): Remove la_array_ordering
3513 initializer.
3514 * language.c (unknown_language_data): Likewise.
3515 (auto_language_data): Likewise.
3516 * language.h (language_data): Delete la_array_ordering field.
3517 (language_defn::array_ordering): New member function.
3518 * m2-lang.c (m2_language_data): Remove la_array_ordering
3519 initializer.
3520 * objc-lang.c (objc_language_data): Likewise.
3521 * opencl-lang.c (opencl_language_data): Likewise.
3522 * p-lang.c (pascal_language_data): Likewise.
3523 * rust-lang.c (rust_language_data): Likewise.
3524
0d201fa4
AB
35252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3528 initializer.
3529 * c-lang.c (c_language_data): Likewise.
3530 (cplus_language_data): Likewise.
3531 (asm_language_data): Likewise.
3532 (minimal_language_data): Likewise.
3533 * d-lang.c (d_language_data): Likewise.
3534 * f-lang.c (f_language_data): Likewise.
3535 (f_language::case_sensitivity): New member function.
3536 * go-lang.c (go_language_data): Remove la_case_sensitivity
3537 initializer.
3538 * language.c (enum case_mode): Moved here from language.h.
3539 (case_mode): Make static.
3540 (show_case_command): Update for case_sensitivity being a method.
3541 (set_case_command): Likewise.
3542 (set_range_case): Likewise.
3543 (unknown_language_data): Remove la_case_sensitivity initializer.
3544 (auto_language_data): Likewise.
3545 * language.h (case_mode): Delete, move enum declaration to
3546 language.c.
3547 (language_data): Delete la_case_sensitivity field.
3548 (language_defn::case_sensitivity): New member function.
3549 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3550 initializer.
3551 * objc-lang.c (objc_language_data): Likewise.
3552 * opencl-lang.c (opencl_language_data): Likewise.
3553 * p-lang.c (pascal_language_data): Likewise.
3554 * rust-lang.c (rust_language_data): Likewise.
3555
efdf6a73
AB
35562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * ada-lang.c (ada_language_data): Remove la_range_check
3559 initializer.
3560 * c-lang.c (c_language_data): Likewise.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_language_data): Likewise.
3566 (f_language::range_checking_on_by_default): New member function.
3567 * go-lang.c (go_language_data): Remove la_range_check initializer.
3568 * language.c (enum range_mode): Moved here from language.h.
3569 (range_mode): Made static.
3570 (show_range_command): Update to use
3571 range_checking_on_by_default.
3572 (set_range_command): Likewise.
3573 (set_range_case): Likewise.
3574 (unknown_language_data): Remove la_range_check initializer.
3575 (auto_language_data): Likewise.
3576 * language.h (range_mode): Delete. Enum definition moved to
3577 language.c.
3578 (language_data): Remove la_range_check field.
3579 (language_defn::range_checking_on_by_default): New member
3580 function.
3581 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3582 (m2_language::range_checking_on_by_default): New member function.
3583 * objc-lang.c (objc_language_data): Remove la_range_check
3584 initializer.
3585 * opencl-lang.c (opencl_language_data): Likewise.
3586 * p-lang.c (pascal_language_data): Likewise.
3587 (pascal_language::range_checking_on_by_default): New member
3588 function.
3589 * rust-lang.c (rust_language_data): Remove la_range_check
3590 initializer.
3591 (rust_language::range_checking_on_by_default): New member
3592 function.
3593
bf92aec5
AB
35942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * dwarf2/read.c (dwarf2_physname): Remove special case for
3597 language_go.
3598 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3599 member function.
3600
d3355e4d
AB
36012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3602
3603 * ada-lang.c (ada_language_data): Remove
3604 la_store_sym_names_in_linkage_form_p initializer.
3605 (ada_language::store_sym_names_in_linkage_form_p): New member
3606 function.
3607 * c-lang.c (c_language_data): Remove
3608 la_store_sym_names_in_linkage_form_p initializer.
3609 (c_language::store_sym_names_in_linkage_form_p): New member
3610 function.
3611 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3612 initializer.
3613 (asm_language_data): Likewise.
3614 (asm_language::store_sym_names_in_linkage_form_p): New member
3615 function.
3616 (minimal_language_data): Remove
3617 la_store_sym_names_in_linkage_form_p initializer.
3618 (minimal_language::store_sym_names_in_linkage_form_p): New member
3619 function.
3620 * d-lang.c (d_language_data): Remove
3621 la_store_sym_names_in_linkage_form_p initializer.
3622 * dwarf2/read.c (dwarf2_physname): Update call to
3623 store_sym_names_in_linkage_form_p.
3624 * f-lang.c (f_language_data): Remove
3625 la_store_sym_names_in_linkage_form_p initializer.
3626 * go-lang.c (go_language_data): Remove
3627 la_store_sym_names_in_linkage_form_p initializer.
3628 * language.c (unknown_language_data): Remove
3629 la_store_sym_names_in_linkage_form_p initializer.
3630 (unknown_language::store_sym_names_in_linkage_form_p): New member
3631 function.
3632 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3633 initializer.
3634 (auto_language::store_sym_names_in_linkage_form_p): New member
3635 function.
3636 * language.h (language_data): Remove
3637 la_store_sym_names_in_linkage_form_p member variable.
3638 (language_defn::store_sym_names_in_linkage_form_p): New member
3639 function.
3640 * m2-lang.c (m2_language_data): Remove
3641 la_store_sym_names_in_linkage_form_p initializer.
3642 * objc-lang.c (objc_language_data): Likewise.
3643 * opencl-lang.c (opencl_language_data): Likewise.
3644 * p-lang.c (pascal_language_data): Likewise.
3645 * rust-lang.c (rust_language_data): Likewise.
3646
22c12a6c
AB
36472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * ada-lang.c (ada_language_data): Remove string_lower_bound
3650 initializer.
3651 * c-lang.c (c_language_data): Likewise.
3652 (cplus_language_data): Likewise.
3653 (asm_language_data): Likewise.
3654 (minimal_language_data): Likewise.
3655 * d-lang.c (d_language_data): Likewise.
3656 * f-lang.c (f_language_data): Likewise.
3657 * go-lang.c (go_language_data): Likewise.
3658 * language.c (unknown_language_data): Likewise.
3659 (auto_language_data): Likewise.
3660 * language.h (language_data): Remove string_lower_bound field.
3661 (language_defn::string_lower_bound): New member function.
3662 * m2-lang.c (m2_language_data): Remove string_lower_bound
3663 initializer.
3664 (m2_language::string_lower_bound): New member function.
3665 * objc-lang.c (objc_language_data): Remove string_lower_bound
3666 initializer.
3667 * opencl-lang.c (opencl_language_data): Likewise.
3668 * p-lang.c (pascal_language_data): Likewise.
3669 * rust-lang.c (rust_language_data): Likewise.
3670 * valops.c (value_cstring): Update call to string_lower_bound.
3671 (value_string): Likewise.
3672 * value.c (allocate_repeated_value): Likewise.
3673
1c236ddd
AB
36742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * valops.c (value_repeat): Fix incorrect argument name in comment.
3677
67bd3fd5
AB
36782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3679
3680 * ada-lang.c (ada_language_data): Remove c_style_arrays
3681 initializer.
3682 (ada_language::c_style_arrays_p): New member fuction.
3683 * c-lang.c (c_language_data): Remove c_style_arrays
3684 initializer.
3685 (cplus_language_data): Likewise.
3686 (asm_language_data): Likewise.
3687 (minimal_language_data): Likewise.
3688 * d-lang.c (d_language_data): Likewise.
3689 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3690 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3691 (f_language::c_style_arrays_p): New member function.
3692 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3693 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3694 * language.c (unknown_language_data): Remove c_style_arrays
3695 initializer.
3696 (auto_language_data): Likewise.
3697 * language.h (language_data): Remove c_style_arrays field.
3698 (language_defn::c_style_arrays_p): New member function.
3699 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3700 (m2_language::c_style_arrays_p): New member function.
3701 * objc-lang.c (objc_language_data): Remove c_style_arrays
3702 initializer.
3703 * opencl-lang.c (opencl_language_data): Likewise.
3704 * p-lang.c (pascal_language_data): Likewise.
3705 * rust-lang.c (rust_language_data): Likewise.
3706 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3707 and update local variable to a bool.
3708 * valops.c (value_cast): Update call to c_style_arrays_p.
3709 (value_array): Likewise.
3710 * value.c (coerce_array): Likewise.
3711
85967615
AB
37122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (ada_language_data): Remove la_language initializer.
3715 * c-lang.c (c_language_data): Likewise.
3716 (cplus_language_data): Likewise.
3717 (asm_language_data): Likewise.
3718 (minimal_language_data): Likewise.
3719 * d-lang.c (d_language_data): Likewise.
3720 * f-lang.c (f_language_data): Likewise.
3721 * go-lang.c (go_language_data): Likewise.
3722 * language.c (unknown_language_data): Likewise.
3723 (auto_language_data): Likewise.
3724 * language.h (language_data): Remove la_language field.
3725 (language_defn::language_defn): Initialise la_language field.
3726 (language_defn::la_language): New member variable.
3727 * m2-lang.c (m2_language_data): Remove la_language field.
3728 * objc-lang.c (objc_language_data): Likewise.
3729 * opencl-lang.c (opencl_language_data): Likewise.
3730 * p-lang.c (pascal_language_data): Likewise.
3731 * rust-lang.c (rust_language_data): Likewise.
3732
e171d6f1
AB
37332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * ada-lang.c (ada_extensions): Delete, moved into
3736 ada_language::filename_extensions.
3737 (ada_language_data): Remove la_filename_extensions initializer.
3738 (ada_language::filename_extensions): New member function.
3739 * c-lang.c (c_extensions): Delete, moved into
3740 c_language::filename_extensions.
3741 (c_language_data): Remove la_filename_extensions initializer.
3742 (c_language::filename_extensions): New member function.
3743 (cplus_extensions): Delete, moved into
3744 cplus_language::filename_extensions.
3745 (cplus_language_data): Remove la_filename_extensions initializer.
3746 (cplus_language::filename_extensions): New member function.
3747 (asm_extensions): Delete, moved into
3748 asm_language::filename_extensions.
3749 (asm_language_data): Remove la_filename_extensions initializer.
3750 (asm_language::filename_extensions): New member function.
3751 (minimal_language_data): Remove la_filename_extensions
3752 initializer.
3753 * d-lang.c (d_extensions): Delete, moved into
3754 d_language::filename_extensions.
3755 (d_language_data): Remove la_filename_extensions initializer.
3756 (d_language::filename_extensions): New member function.
3757 * f-lang.c (f_extensions): Delete, moved into
3758 f_language::filename_extensions.
3759 (f_language_data): Remove la_filename_extensions initializer.
3760 (f_language::filename_extensions): New member function.
3761 * go-lang.c (go_language_data): Remove la_filename_extensions
3762 initializer.
3763 * language.c (add_set_language_command): Update now that
3764 filename_extensions returns a vector.
3765 (unknown_language_data): Remove la_filename_extensions
3766 initializer.
3767 (auto_language_data): Likewise.
3768 * language.h (language_data): Remove la_filename_extensions field.
3769 (language_defn::filename_extensions): New member function.
3770 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3771 initializer.
3772 * objc-lang.c (objc_extensions): Delete, moved into
3773 objc_language::filename_extensions.
3774 (objc_language_data): Remove la_filename_extensions initializer.
3775 (objc_language::filename_extensions): New member function.
3776 * opencl-lang.c (opencl_language_data): Remove
3777 la_filename_extensions initializer.
3778 * p-lang.c (pascal_extensions): Delete, moved into
3779 pascal_language::filename_extensions.
3780 (pascal_language_data): Remove la_filename_extensions initializer.
3781 (pascal_language::filename_extensions): New member function.
3782 * rust-lang.c (rust_extensions): Delete, moved into
3783 rust_language::filename_extensions.
3784 (rust_language_data): Remove la_filename_extensions initializer.
3785 (rust_language::filename_extensions): New member function.
3786 * symfile.c (add_filename_language): Add new assert.
3787
6f7664a9
AB
37882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3789
3790 * ada-lang.c (ada_language_data): Remove la_name and
3791 la_natural_name initializers.
3792 (ada_language::name): New member function.
3793 (ada_language::natural_name): New member function.
3794 * c-lang.c (c_language_data): Remove la_name and
3795 la_natural_name initializers.
3796 (c_language::name): New member function.
3797 (c_language::natural_name): New member function.
3798 (cplus_language_data): Remove la_name and
3799 la_natural_name initializers.
3800 (cplus_language::name): New member function.
3801 (cplus_language::natural_name): New member function.
3802 (asm_language_data): Remove la_name and
3803 la_natural_name initializers.
3804 (asm_language::name): New member function.
3805 (asm_language::natural_name): New member function.
3806 (minimal_language_data): Remove la_name and
3807 la_natural_name initializers.
3808 (minimal_language::name): New member function.
3809 (minimal_language::natural_name): New member function.
3810 * compile/compile.c (compile_to_object): Update call to
3811 lanugage_defn::name.
3812 * d-lang.c (d_language_data): Remove la_name and
3813 la_natural_name initializers.
3814 (d_language::name): New member function.
3815 (d_language::natural_name): New member function.
3816 * expprint.c (print_subexp_standard): Update call to
3817 language_defn::name.
3818 (dump_raw_expression): Likewise
3819 (dump_prefix_expression): Likewise.
3820 * f-lang.c (f_language_data): Remove la_name and
3821 la_natural_name initializers.
3822 (f_language::name): New member function.
3823 (f_language::natural_name): New member function.
3824 * go-lang.c (go_language_data): Remove la_name and
3825 la_natural_name initializers.
3826 (go_language::name): New member function.
3827 (go_language::natural_name): New member function.
3828 * language.c (show_language_command): Update call to
3829 language_defn::name.
3830 (set_language_command): Likewise.
3831 (language_enum): Likewise.
3832 (language_str): Likewise.
3833 (add_set_language_command): Likewise, use
3834 language_defn::natural_name in the doc string.
3835 (unknown_language_data): Remove la_name and
3836 la_natural_name initializers.
3837 (unknown_language::name): New member function.
3838 (unknown_language::natural_name): New member function.
3839 (auto_language_data): Remove la_name and
3840 la_natural_name initializers.
3841 (auto_language::name): New member function.
3842 (auto_language::natural_name): New member function.
3843 (language_lookup_primitive_type_as_symbol): Update call to
3844 language_defn::name.
3845 * language.h (language_data): Remove la_name and la_natural_name
3846 member variables.
3847 (language_defn::name): New member function.
3848 (language_defn::natural_name): New member function.
3849 * m2-lang.c (m2_language_data): Remove la_name and
3850 la_natural_name initializers.
3851 (m2_language::name): New member function.
3852 (m2_language::natural_name): New member function.
3853 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3854 language_defn::natural_name.
3855 * objc-lang.c (objc_language_data): Remove la_name and
3856 la_natural_name initializers.
3857 (objc_language::name): New member function.
3858 (objc_language::natural_name): New member function.
3859 * opencl-lang.c (opencl_language_data): Remove la_name and
3860 la_natural_name initializers.
3861 (opencl_language::name): New member function.
3862 (opencl_language::natural_name): New member function.
3863 * p-lang.c (pascal_language_data): Remove la_name and
3864 la_natural_name initializers.
3865 (pascal_language::name): New member function.
3866 (pascal_language::natural_name): New member function.
3867 * rust-lang.c (rust_language_data): Remove la_name and
3868 la_natural_name initializers.
3869 (rust_language::name): New member function.
3870 (rust_language::natural_name): New member function.
3871 * symtab.c (lookup_language_this): Update call to
3872 language_defn::name.
3873
5bae7c4e
AB
38742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * ada-lang.c (ada_language_data): Remove la_name_of_this
3877 initializer.
3878 * ax-gdb.c (gen_expr): Update call to name_of_this.
3879 * c-exp.y (classify_name): Likewise.
3880 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3881 (cplus_language_data): Likewise.
3882 (cplus_language::name_of_this): New member function.
3883 (asm_language_data): Remove la_name_of_this initializer.
3884 (minimal_language_data): Likewise.
3885 * d-lang.c (d_language_data): Likewise.
3886 (d_language::name_of_this): New member function.
3887 * expprint.c (print_subexp_standard): Update call to name_of_this.
3888 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3889 * go-lang.c (go_language_data): Likewise.
3890 * language.c (unknown_language_data): Likewise.
3891 (unknown_language::name_of_this): New member function.
3892 (auto_language_data): Remove la_name_of_this initializer.
3893 (auto_language::name_of_this): New member function.
3894 * language.h (language_data): Delete la_name_of_this member
3895 variable.
3896 (language_defn::name_of_this): New member function.
3897 * m2-lang.c (m2_language_data): Remove la_name_of_this
3898 initializer.
3899 * objc-lang.c (objc_language_data): Likewise.
3900 (objc_language::name_of_this): New member function.
3901 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3902 initializer.
3903 * p-lang.c (pascal_language_data): Likewise.
3904 (pascal_language::name_of_this): New member function.
3905 * rust-lang.c (rust_language_data): Remove la_name_of_this
3906 initializer.
3907 * symtab.c (lookup_language_this): Update call to name_of_this.
3908 (lookup_symbol_aux): Likewise.
3909 * valops.c (value_of_this): Likewise.
3910
22e3f3ed
AB
39112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * ada-lang.c (ada_language_data): Remove
3914 la_struct_too_deep_ellipsis initializer.
3915 (ada_language::struct_too_deep_ellipsis): New member function.
3916 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3917 initializer.
3918 (cplus_language_data): Likewise.
3919 (asm_language_data): Likewise.
3920 (minimal_language_data): Likewise.
3921 * cp-valprint.c (cp_print_value): Update call to
3922 struct_too_deep_ellipsis.
3923 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3924 initializer.
3925 * f-lang.c (f_language_data): Likewise.
3926 (f_language::struct_too_deep_ellipsis): New member function.
3927 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3928 initializer.
3929 * language.c (unknown_language_data): Likewise.
3930 (auto_language_data): Likewise.
3931 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3932 member variable.
3933 (language_defn::struct_too_deep_ellipsis): New member function.
3934 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3935 initializer.Q
3936 * objc-lang.c (objc_language_data): Likewise.
3937 * opencl-lang.c (opencl_language_data): Likewise.
3938 * p-lang.c (pascal_language_data): Likewise.
3939 * rust-lang.c (rust_language_data): Likewise.
3940 * valprint.c (val_print_check_max_depth): Update call to
3941 struct_too_deep_ellipsis.
3942
ed29e1c7
FW
39432020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3944
3945 * MAINTAINERS (Write After Approval): Add myself.
3946
12d8f940
TT
39472020-09-15 Tom Tromey <tom@tromey.com>
3948
3949 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3950 Remove.
3951
6b5a7bc7
TT
39522020-09-15 Tom Tromey <tom@tromey.com>
3953
3954 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3955 and TYPE_CODE_METHODPTR cases.
3956 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3957 (c_value_print_inner): Update.
3958 * valprint.c (generic_value_print_memberptr): New function, from
3959 c_value_print_memberptr.
3960 (generic_value_print): Use it. Call cplus_print_method_ptr.
3961
47f0e2ff
TT
39622020-09-15 Tom Tromey <tromey@adacore.com>
3963
3964 * python/python-internal.h (PyInt_FromLong): Remove define.
3965 * python/py-value.c (convert_value_from_python): Use
3966 gdb_py_object_from_longest.
3967 * python/py-type.c (typy_get_code): Use
3968 gdb_py_object_from_longest.
3969 * python/py-symtab.c (salpy_get_line): Use
3970 gdb_py_object_from_longest.
3971 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3972 gdb_py_object_from_longest.
3973 * python/py-record.c (recpy_gap_reason_code): Use
3974 gdb_py_object_from_longest.
3975 * python/py-record-btrace.c (recpy_bt_insn_size)
3976 (recpy_bt_func_level, btpy_list_count): Use
3977 gdb_py_object_from_longest.
3978 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3979 gdb_py_object_from_longest. Fix error handling.
3980 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3981 gdb_py_object_from_longest.
3982 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3983 gdb_py_object_from_longest.
3984 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3985 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3986 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3987
512116ce
TT
39882020-09-15 Tom Tromey <tromey@adacore.com>
3989
3990 * python/python.c (gdbpy_parameter_value): Use
3991 gdb_py_object_from_ulongest.
3992
4ab1029c
TT
39932020-09-15 Tom Tromey <tromey@adacore.com>
3994
3995 * python/py-infevents.c (create_register_changed_event_object):
3996 Use gdb_py_object_from_longest.
3997 * python/py-exitedevent.c (create_exited_event_object): Use
3998 gdb_py_object_from_longest.
3999
062534d4
TT
40002020-09-15 Tom Tromey <tromey@adacore.com>
4001
4002 * python/python.c (gdbpy_parameter_value): Use
4003 gdb_py_object_from_longest.
4004 * python/py-type.c (convert_field, typy_range): Use
4005 gdb_py_object_from_longest.
4006 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4007 gdb_py_object_from_longest.
4008 * python/py-lazy-string.c (stpy_get_length): Use
4009 gdb_py_object_from_longest.
4010 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4011 gdb_py_object_from_longest.
4012 * python/py-infevents.c (create_memory_changed_event_object): Use
4013 gdb_py_object_from_longest.
4014 * python/py-inferior.c (infpy_get_num): Use
4015 gdb_py_object_from_longest.
4016 (infpy_get_pid): Likewise.
4017
d1cab987
TT
40182020-09-15 Tom Tromey <tromey@adacore.com>
4019
4020 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4021 defines.
4022 * python/py-value.c (valpy_long): Use
4023 gdb_py_object_from_ulongest.
4024 * python/py-symtab.c (salpy_get_pc): Use
4025 gdb_py_object_from_ulongest.
4026 (salpy_get_last): Likewise.
4027 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4028 gdb_py_object_from_ulongest.
4029 * python/py-lazy-string.c (stpy_get_address): Use
4030 gdb_py_object_from_ulongest.
4031 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4032 * python/py-arch.c (archpy_disassemble): Use
4033 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4034 error handling.
4035
4bde49dc
TT
40362020-09-15 Tom Tromey <tromey@adacore.com>
4037
4038 * python/python-internal.h (gdb_py_long_from_longest): Remove
4039 defines.
4040 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4041 * python/py-type.c (convert_field, typy_get_sizeof): Use
4042 gdb_py_object_from_longest.
4043 * python/py-record-btrace.c (btpy_list_index): Use
4044 gdb_py_object_from_longest.
4045
37431074
TT
40462020-09-15 Tom Tromey <tromey@adacore.com>
4047
4048 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4049 * python/py-record.c (recpy_element_number): Use
4050 gdb_py_object_from_longest.
4051 (recpy_gap_number): Likewise.
4052
cbe25684
TT
40532020-09-15 Tom Tromey <tromey@adacore.com>
4054
4055 * top.c (ui::ui): Update.
4056 (highest_ui_num): Remove.
4057 * top.h (struct ui) <num>: Remove.
4058
db92ac45
TT
40592020-09-15 Tom Tromey <tromey@adacore.com>
4060
4061 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4062 * ui-style.c (ansi_regex_text): Now array.
4063 * rust-exp.y (number_regex_text): Now array.
4064 * linespec.c (linespec_quote_characters): Now array.
4065 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4066 Now arrays.
4067
d2b31b67
SM
40682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4069
4070 * debuginfod-support.c (debuginfod_client_deleter): New.
4071 (debuginfod_client_up): New.
4072 (debuginfod_init): Return debuginfod_client_up.
4073 (debuginfod_source_query): Adjust.
4074 (debuginfod_debuginfo_query): Adjust.
4075
3246bd8e
SM
40762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * debuginfod-support.c (debuginfod_source_query): Use
4079 make_unique_xstrdup.
4080
10242f36
SM
40812020-09-14 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4084 with `type::instance_flags`.
4085
e1044e6a
MM
40862020-09-14 Michael Mullin <masmullin@gmail.com>
4087
4088 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4089 Remove baton parameter.
4090
04902b09
PA
40912020-09-14 Pedro Alves <pedro@palves.net>
4092
4093 * Makefile.in (SELFTESTS_SRCS): Add
4094 unittests/enum-flags-selftests.c.
4095 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4096 btrace_function_flags instead of enum btrace_function_flag.
4097 * compile/compile-c-types.c (convert_qualified): Use
4098 enum_flags::raw.
4099 * compile/compile-cplus-symbols.c (convert_one_symbol)
4100 (convert_symbol_bmsym):
4101 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4102 (compile_cplus_convert_struct_or_union_methods)
4103 (compile_cplus_instance::convert_qualified_base):
4104 * go-exp.y (parse_string_or_char): Add cast to int.
4105 * unittests/enum-flags-selftests.c: New file.
4106 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4107 type to btrace_thread_flags from btrace_thread_flag.
4108 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4109 local's type to btrace_thread_flags from btrace_thread_flag. Add
4110 cast in DEBUG call.
4111
69896a2c
PA
41122020-09-14 Pedro Alves <pedro@palves.net>
4113
4114 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4115 * gdbtypes.c (address_space_name_to_int): Rename to ...
4116 (address_space_name_to_type_instance_flags): ... this.
4117 (address_space_int_to_name): Rename to ...
4118 (address_space_type_instance_flags_to_name): ... this.
4119 * gdbtypes.h (address_space_name_to_int): Rename to ...
4120 (address_space_name_to_type_instance_flags): ... this.
4121 (address_space_int_to_name): Rename to ...
4122 (address_space_type_instance_flags_to_name): ... this.
4123 * type-stack.c (type_stack::insert): Adjust to rename.
4124 * type-stack.h (type_stack::insert): Likewise.
4125
314ad88d
PA
41262020-09-14 Pedro Alves <pedro@palves.net>
4127 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * avr-tdep.c (avr_address_class_type_flags): Return
4130 type_instance_flags.
4131 (avr_address_class_type_flags_to_name): Take a
4132 type_instance_flags.
4133 (avr_address_class_name_to_type_flags): Return bool and take a
4134 type_instance_flags.
4135 * d-lang.c (build_d_types): Use type::set_instance_flags.
4136 * ft32-tdep.c (ft32_address_class_type_flags): Return
4137 type_instance_flags.
4138 (ft32_address_class_type_flags_to_name): Take a
4139 type_instance_flags.
4140 (ft32_address_class_name_to_type_flags): Return bool and take a
4141 type_instance_flags.
4142 (ft32_gdbarch_init): Use type::set_instance_flags.
4143 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4144 * gdbarch.h, gdbarch.c: Regenerate.
4145 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4146 (address_class_name_to_type_flags): Use type_instance_flags and
4147 bool.
4148 * gdbtypes.c (address_space_name_to_int)
4149 (address_space_int_to_name, make_qualified_type): Use
4150 type_instance_flags.
4151 (make_qualified_type): Use type_instance_flags and
4152 type::set_instance_flags.
4153 (make_type_with_address_space, make_cv_type, make_vector_type)
4154 (check_typedef): Use type_instance_flags.
4155 (recursive_dump_type): Cast type_instance_flags to unsigned for
4156 printing.
4157 (copy_type_recursive): Use type::set_instance_flags.
4158 (gdbtypes_post_init): Use type::set_instance_flags.
4159 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4160 <m_instance_flags>: ... this.
4161 <instance_flags, set_instance_flags>: New methods.
4162 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4163 (SET_TYPE_INSTANCE_FLAGS): New.
4164 (address_space_name_to_int, address_space_int_to_name)
4165 (make_type_with_address_space): Pass flags using
4166 type_instance_flags instead of int.
4167 * stabsread.c (cleanup_undefined_types_noname): Use
4168 type::set_instance_flags.
4169 * s390-tdep.c (s390_address_class_type_flags): Return
4170 type_instance_flags.
4171 (s390_address_class_type_flags_to_name): Take a
4172 type_instance_flags.
4173 (s390_address_class_name_to_type_flags): Return bool and take a
4174 type_instance_flags.
4175 * type-stack.c (type_stack::follow_types): Use
4176 type_instance_flags.
4177 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4178
27087b7f
TT
41792020-09-14 Tom Tromey <tromey@adacore.com>
4180
4181 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4182 * x86-tdep.c (x86_is_thunk_register_name)
4183 (x86_in_indirect_branch_thunk): Update.
4184 * sparc64-tdep.c (sparc64_fpu_register_names)
4185 (sparc64_cp0_register_names, sparc64_register_names)
4186 (sparc64_pseudo_register_names): Now const.
4187 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4188 cp0_registers_num>: Now const.
4189 * sparc-tdep.c (sparc_core_register_names)
4190 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4191 (sparc32_pseudo_register_names): Now const.
4192 (validate_tdesc_registers): Update.
4193 * rust-lang.c (rust_extensions): Now const.
4194 * p-lang.c (p_extensions): Now const.
4195 * objc-lang.c (objc_extensions): Now const.
4196 * nto-tdep.c (nto_thread_state_str): Now const.
4197 * moxie-tdep.c (moxie_register_names): Now const.
4198 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4199 Now const.
4200 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4201 (mips_linux_reg_names): Now const.
4202 (mips_gdbarch_init): Update.
4203 * microblaze-tdep.c (microblaze_register_names): Now const.
4204 * m68k-tdep.c (m68k_register_names): Now const.
4205 * m32r-tdep.c (m32r_register_names): Now const.
4206 * ia64-tdep.c (ia64_register_names): Now const.
4207 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4208 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4209 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4210 ymm_avx512_register_names, pkeys_register_names>: Now const.
4211 * i386-tdep.c (i386_register_names, i386_zmm_names)
4212 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4213 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4214 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4215 * f-lang.c (f_extensions): Now const.
4216 * d-lang.c (d_extensions): Now const.
4217 * csky-tdep.c (csky_register_names): Now const.
4218 * charset.c (default_charset_names, charset_enum): Now const.
4219 (_initialize_charset): Update.
4220 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4221 const.
4222 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4223 (bsd_uthread_solib_loaded): Update.
4224 (bsd_uthread_state): Now const.
4225 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4226 (amd64_ymm_avx512_names, amd64_ymmh_names)
4227 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4228 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4229 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4230 (amd64_dword_names): Now const.
4231 * agent.c (can_use_agent_enum): Now const.
4232 * ada-tasks.c (task_states, long_task_states): Now const.
4233 * ada-lang.c (known_runtime_file_name_patterns)
4234 (known_auxiliary_function_name_patterns, attribute_names)
4235 (standard_exc, ada_extensions): Now const.
4236
89806626
SM
42372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4238
4239 * bcache.h (struct bcache) <bcache>: Remove constructor.
4240 <m_hash_function, m_compare_function>: Remove.
4241 <~bcache>: Make virtual.
4242 <compare>: Remove static method, introduce virtual method.
4243 <default_hash>: Remove.
4244 <hash>: New virtual method.
4245 * bcache.c (bcache::expand_hash_table): Update.
4246 (bcache::insert): Update.
4247 (bcache::hash): New.
4248 (bcache::compare): Update comment and parameter names.
4249 * gdbtypes.c (types_deeply_equal): Update.
4250 * psymtab.h (struct psymbol_bcache): New struct.
4251 (class psymtab_storage) <psymtab_storage>: Make default.
4252 <psymbol_cache>: Change type to psymbol_bcache.
4253 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4254 (psymbol_hash): Change to...
4255 (psymbol_bcache::hash): ... this.
4256 (psymbol_compare): Change to...
4257 (psymbol_bcache::compare): ... this.
4258
677c92fe
SM
42592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4260
4261 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4262 checking for initial lwp.
4263
3eba3a01
TT
42642020-09-14 Tom Tromey <tromey@adacore.com>
4265
4266 * m68k-tdep.c (m68k_extract_return_value): Use
4267 pointer_result_regnum.
4268 (m68k_store_return_value): Likewise.
4269 (m68k_reg_struct_return_p): Handle vectors and arrays.
4270 (m68k_return_value): Handle arrays.
4271 (m68k_svr4_return_value): Fix single-element aggregate handling.
4272 Handle long double. Adjust for embedded ABI.
4273 (m68k_svr4_init_abi): Set pointer_result_regnum.
4274 (m68k_embedded_init_abi): New function.
4275 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4276 (m68k_osabi_sniffer): New function.
4277 (_initialize_m68k_tdep): Register osabi sniffer.
4278 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4279 member.
4280
33f4dd48
SM
42812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4282
4283 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4284 with gdb::unique_xmalloc_ptr<char>.
4285
8400a90d
SM
42862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4287
4288 * xml-support.h (xml_fetch_another): Change type to be a
4289 function_view.
4290 (xml_process_xincludes): Remove baton parameter.
4291 (xml_fetch_content_from_file): Change baton parameter to
4292 dirname.
4293 * xml-support.c (struct xinclude_parsing_data)
4294 <xinclude_parsing_data>: Remove baton parameter.
4295 <fetcher_baton>: Remove.
4296 (xinclude_start_include): Adjust.
4297 (xml_process_xincludes): Adjust.
4298 (xml_fetch_content_from_file): Replace baton parameter with
4299 dirname.
4300 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4301 (xml_init_syscalls_info): Use a lambda.
4302 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4303 (file_read_description_xml): Use a lambda.
4304 (fetch_available_features_from_target): Change baton parameter
4305 to target_ops.
4306 (target_read_description_xml): Use a lambda.
4307 (target_fetch_description_xml): Use a lambda.
4308 (string_read_description_xml): Update.
4309
04f5bab2
SM
43102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4311
4312 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4313 uses with type::endianity_is_not_default.
4314
db558e34
SM
43152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * gdbtypes.h (struct type) <endianity_is_not_default,
4318 set_endianity_is_not_default>: New methods.
4319 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4320 type::endianity_is_not_default, change all write call sites to
4321 use type::set_endianity_is_not_default.
4322
22c4c60c
SM
43232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4326 uses with type::is_fixed_instance.
4327
9cdd0d12
SM
43282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * gdbtypes.h (struct type) <is_fixed_instance,
4331 set_is_fixed_instance>: New methods.
4332 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4333 write call sites to use type::set_is_fixed_instance.
4334
0becda7a
SM
43352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4338 uses with type::is_gnu_ifunc.
4339
03cc7249
SM
43402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4343 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4344 use type::set_is_gnu_ifunc.
4345
3f46044c
SM
43462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4349 uses with type::stub_is_supported.
4350
9baccff6
SM
43512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4354 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4355 use type::set_stub_is_supported.
4356
bd63c870
SM
43572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4360 uses with type::is_vector.
4361
2062087b
SM
43622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4365 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4366 use type::set_is_vector.
4367
a409645d
SM
43682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4371 uses with type::has_varargs.
4372
1d6286ed
SM
43732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4376 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4377 use type::set_has_varargs.
4378
7f9f399b
SM
43792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4382 uses with type::is_prototyped.
4383
27e69b7a
SM
43842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4387 New methods.
4388 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4389 call sites to use type::set_is_prototyped.
4390
d2183968
SM
43912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4394 uses with type::target_is_stub.
4395
8f53807e
SM
43962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4399 New methods.
4400 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4401 sites to use type::set_target_is_stub.
4402
e46d3488
SM
44032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (TYPE_STUB): Remove, replace all
4406 uses with type::is_stub.
4407
b4b73759
SM
44082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4411 (TYPE_STUB): Use type::is_stub, change all write call sites to
4412 use type::set_is_stub.
4413
20ce4123
SM
44142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4417 type::has_no_signedness.
4418
15152a54
SM
44192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * gdbtypes.h (struct type) <has_no_signedness,
4422 set_has_no_signedness>: New methods.
4423 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4424 call sites to use type::set_has_no_signedness.
4425
c6d940a9
SM
44262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4429 type::is_unsigned.
4430
653223d3
SM
44312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4432
4433 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4434 methods.
4435 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4436 sites to use type::set_is_unsigned.
4437
55ea94da 44382020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4439 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4440
e851246a
SM
4441 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4442 pointer and stack frame offset when unwinding.
55ea94da 4443
6791b117
PA
44442020-09-13 Pedro Alves <pedro@palves.net>
4445
4446 * NEWS: Document "-break-insert --qualified".
4447 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4448
77f2120b
PA
44492020-09-13 Pedro Alves <pedro@palves.net>
4450
4451 * linespec.c (classify_mtype, compare_msyms): Delete.
4452 (search_minsyms_for_name): Remove classification logic. Instead
4453 filter out trampoline symbols if we also found an external
4454 function of the same name.
4455
ed6a896c
JB
44562020-09-13 Joel Brobecker <brobecker@adacore.com>
4457
4458 * NEWS: Create a new section for the next release branch.
4459 Rename the section of the current branch, now that it has
4460 been cut.
4461
32aea73e
JB
44622020-09-13 Joel Brobecker <brobecker@adacore.com>
4463
4464 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4465 * version.in: Bump version to 11.0.50.DATE-git.
4466
8087c3fa
JB
44672020-09-12 Joel Brobecker <brobecker@adacore.com>
4468
4469 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4470
2a67f09d
FW
44712020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4472 Felix Willgerodt <Felix.Willgerodt@intel.com>
4473
4474 * gdbarch.sh: Added bfloat16 type.
4475 * gdbarch.c: Regenerated.
4476 * gdbarch.h: Regenerated.
4477 * gdbtypes.c (floatformats_bfloat16): New struct.
4478 (gdbtypes_post_init): Add builtin_bfloat16.
4479 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4480 (floatformats_bfloat16): New struct.
4481 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4482 (i386_ymm_type): Add field "v16_bfloat16"
4483 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4484 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4485 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4486 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4487 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4488 * features/i386/64bit-avx512.c: Regenerated.
4489 * features/i386/64bit-sse.xml: Add bfloat16 type.
4490 * features/i386/64bit-sse.c: Regenerated.
4491
1347d111
FW
44922020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4493
4494 * i386-tdep.c (i386_zmm_type): Fix field names.
4495 (i386_ymm_type): Fix field names.
4496
7a4e8e7d
TBA
44972020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4498
4499 * breakpoint.c: Fix typo in the help message of the
4500 "set breakpoint condition-evaluation" command.
4501
cf4ac4be
KR
45022020-09-10 Kamil Rytarowski <n54@gmx.com>
4503
4504 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4505 * (nbsd_nat_target::pid_to_exec_file)
4506 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4507 (nbsd_nat_target::post_startup_inferior)
4508 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4509 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4510 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4511 * (nbsd_thread_lister): Remove.
4512
f404573e
KR
45132020-09-10 Kamil Rytarowski <n54@gmx.com>
4514
4515 * fork-inferior.c (startup_inferior): Avoid double free.
4516
1ccb2c17
KR
45172020-09-10 Kamil Rytarowski <n54@gmx.com>
4518
4519 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4520 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4521
feedfcc7
KR
45222020-09-10 Kamil Rytarowski <n54@gmx.com>
4523
4524 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4525 * netbsd-nat.c: Include <sys/ptrace.h>.
4526 * (netbsd_nat::enable_proc_events): Add.
4527
c489f8c6
KR
45282020-09-10 Kamil Rytarowski <n54@gmx.com>
4529
4530 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4531 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4532 (netbsd_nat::for_each_thread): Add.
4533 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4534 "gdbsupport/common-debug.h".
4535 * (netbsd_nat::netbsd_thread_lister)
4536 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4537 (netbsd_nat::for_each_thread): Add.
4538
330662f6
KR
45392020-09-10 Kamil Rytarowski <n54@gmx.com>
4540
4541 * netbsd-nat.h: Include <unistd.h>.
4542 * (netbsd_nat::pid_to_exec_file): Add.
4543 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4544 * (netbsd_nat::pid_to_exec_file) Add.
4545
70b67307
KR
45462020-09-10 Kamil Rytarowski <n54@gmx.com>
4547
4548 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4549
99cf6da6
KR
45502020-09-10 Kamil Rytarowski <n54@gmx.com>
4551
4552 * netbsd-nat.h: New file.
4553 * netbsd-nat.c: Likewise.
4554
1b788fb6
TT
45552020-09-09 Tom Tromey <tromey@adacore.com>
4556
4557 * ada-lang.c (remove_extra_symbols): Do not increment when
4558 removing an element
4559
03b0a45f
TT
45602020-09-08 Tom Tromey <tromey@adacore.com>
4561
4562 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4563
3cae4447
TT
45642020-09-08 Tom Tromey <tromey@adacore.com>
4565
4566 PR win32/25302:
4567 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4568 (gdb_bfd_init_data): New function.
4569 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4570
7f08fd51
TBA
45712020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4572
4573 * infrun.c (fetch_inferior_event): Use
4574 `switch_to_target_no_thread` to switch the target.
4575
3e6ff933
TT
45762020-09-06 Tom Tromey <tom@tromey.com>
4577
4578 * symfile.h (dwarf2_free_objfile): Don't declare.
4579
e56798df
AKS
45802020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4581
4582 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4583 to match 16 byte real/complex type generated by Flang compiler.
4584
8f5c6526
TV
45852020-09-03 Tom de Vries <tdevries@suse.de>
4586
4587 PR breakpoint/26546
4588 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4589 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4590
c5065df0
SM
45912020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4592
4593 * maint.c (index_digits): New function.
4594 (struct maint_print_section_data): Remove.
4595 (print_bfd_section_info): Remove print_data parameter, add arg
4596 and index_digits.
4597 (print_objfile_section_info): Likewise.
4598 (print_bfd_section_info_maybe_relocated): Likewise (plus
4599 objfile).
4600 (maintenance_info_sections): Adjust calls.
4601
02c6f3f1
TT
46022020-09-02 Tom Tromey <tromey@adacore.com>
4603
4604 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4605 for null pointers.
4606 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4607
ef5e5b0b
SM
46082020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4609
4610 * bcache.h (struct bcache) <insert>: Change type of `added` to
4611 pointer to bool.
4612 * bcache.c (bcache::insert): Likewise.
4613 * gdbtypes.c (check_types_worklist): Adjust.
4614 * psymtab.c (add_psymbol_to_bcache): Adjust.
4615
973695d6
KB
46162020-08-31 Kevin Buettner <kevinb@redhat.com>
4617
4618 * corelow.c (unordered_set): Include.
4619 (class core_target): Add field 'm_core_unavailable_mappings'.
4620 (core_target::build_file_mappings): Print only one warning
4621 per inaccessible file. Add unavailable/broken mappings
4622 to m_core_unavailable_mappings.
4623 (core_target::xfer_partial): Call...
4624 (core_target::xfer_memory_via_mappings): New method.
4625
264fc0e2
SM
46262020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4629 type to bool.
4630
2de01bdb
SM
46312020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * dwarf2/read.c (struct field_info): Fix indentation.
4634
f3bd50f1
SM
46352020-08-31 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4638 ordering in comment.
4639 * frame.c (frame_id_eq): Fix indentation.
4640
22b9b4b0
SL
46412020-08-31 Scott Linder <scott@scottlinder.com>
4642 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4645 inline frame ids in outer frame.
4646
84154d16
SM
46472020-08-31 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4650 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4651 (outer_frame_id): Use FID_STACK_OUTER instead of
4652 FID_STACK_INVALID.
4653 (frame_id_p): Don't check for outer_frame_id.
4654
8efaf6b3
SM
46552020-08-31 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4658 regnum/frame in value. Call allocate_value_lazy.
4659 * frame.c (frame_unwind_register_value): Use
4660 val_print_not_saved.
4661
fe1fe7ea
SM
46622020-08-31 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4665
f7c7700d
PA
46662020-08-29 Pedro Alves <pedro@palves.net>
4667
4668 * progspace.c (print_program_space): Use all_inferiors. Switch to
4669 the inferior before calling target_pid_to_str.
4670
e0814aae
TT
46712020-08-28 Tom Tromey <tom@tromey.com>
4672
4673 * xcoffread.c (xcoff_end_psymtab): Update comment.
4674 * dbxread.c (dbx_end_psymtab): Update comment.
4675
626d2320
TV
46762020-08-28 Tom de Vries <tdevries@suse.de>
4677
4678 PR breakpoint/26544
4679 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4680 event_location.
4681 (create_breakpoint): Same.
4682 (base_breakpoint_decode_location): Same.
4683 (bkpt_create_sals_from_location): Same.
4684 (bkpt_decode_location): Same.
4685 (bkpt_probe_create_sals_from_location): Same.
4686 (bkpt_probe_decode_location): Same.
4687 (tracepoint_create_sals_from_location): Same.
4688 (tracepoint_decode_location): Same.
4689 (tracepoint_probe_decode_location): Same.
4690 (strace_marker_create_sals_from_location): Same.
4691 (strace_marker_decode_location): Same.
4692 (create_sals_from_location_default): Same.
4693 (decode_location_default): Same.
4694 * breakpoint.h (struct breakpoint_ops): Same.
4695 (create_breakpoint): Same.
4696 * linespec.h (decode_line_full): Same.
4697 * linespec.c (decode_line_full): Same. Throw error if
4698 result.size () == 0.
4699
df631783
PA
47002020-08-27 Pedro Alves <pedro@palves.net>
4701
4702 PR gdb/26524
4703 * breakpoint.c (until_break_fsm) <location_breakpoint,
4704 caller_breakpoint>: Delete fields.
4705 <breakpoints>: New field.
4706 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4707 two individual breakpoints.
4708 (until_break_fsm::should_stop): Loop over breakpoints in the
4709 breakpoint vector.
4710 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4711 vector.
4712 (until_break_command): Handle location expanding into multiple
4713 sals.
4714
b2b38aa4
PA
47152020-08-27 Pedro Alves <pedro@palves.net>
4716
4717 PR gdb/26523
4718 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4719 bp_until breakpoints user-specified locations. Update intro
4720 comment.
4721
b886559f
SM
47222020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4723
4724 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4725 gdb_bfd_sections): New.
4726 * maint.c (print_bfd_section_info): Change param type to
4727 maint_print_section_data.
4728 (print_objfile_section_info): Likewise.
4729 (print_bfd_section_info_maybe_relocated): Likewise.
4730 (maintenance_info_sections): Use gdb_bfd_sections.
4731
4c6e63bf
SV
47322020-08-25 Shahab Vahedi <shahab@synopsys.com>
4733
4734 * MAINTAINERS: Add ARC target and maintainer.
4735
8d7f0635
AK
47362020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4737
4738 * configure.tgt: ARC support for GNU/Linux.
4739 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4740 * arc-linux-tdep.c: New file.
4741 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4742 * arc-tdep.c (arc_write_pc): Use it.
4743
fdd8731b
SV
47442020-08-25 Shahab Vahedi <shahab@synopsys.com>
4745
4746 * arc-tdep.c (arc_check_for_hardware_loop): New.
4747 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4748
22459524
SV
47492020-08-25 Shahab Vahedi <shahab@synopsys.com>
4750
4751 * arc-tdep.h: Include "gdbarch.h".
4752
995d3a19
SV
47532020-08-25 Shahab Vahedi <shahab@synopsys.com>
4754
4755 * arch/arc.h
4756 (arc_gdbarch_features): New class to stir the selection of target XML.
4757 (arc_create_target_description): Use FEATURES to choose XML target.
4758 (arc_lookup_target_description): Use arc_create_target_description
4759 to create _new_ target descriptions or return the already created
4760 ones if the FEATURES is the same.
4761 * arch/arc.c: Implementation of prototypes described above.
4762 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4763 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4764 * arc-tdep.c (*_feature_name): Make feature names consistent.
4765 (arc_register_feature): A new struct to hold information about
4766 registers of a particular target/feature.
4767 (arc_check_tdesc_feature): Check if XML provides registers in
4768 compliance with ARC_REGISTER_FEATURE structs.
4769 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4770 (determine_*_reg_feature_set): Which feature name to look for.
4771 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4772 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4773 to expected ISA enums to be used in arc_gdbarch_features structs.
4774 * features/Makefile (FEATURE_XMLFILES): Add new files.
4775 * gdb/features/arc/v1-aux.c: New file.
4776 * gdb/features/arc/v1-aux.xml: Likewise.
4777 * gdb/features/arc/v1-core.c: Likewise.
4778 * gdb/features/arc/v1-core.xml: Likewise.
4779 * gdb/features/arc/v2-aux.c: Likewise.
4780 * gdb/features/arc/v2-aux.xml: Likewise.
4781 * gdb/features/arc/v2-core.c: Likewise.
4782 * gdb/features/arc/v2-core.xml: Likewise.
4783 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4784
3945d2d7
GM
47852020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4786 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 PR m2/26372
fc5d6901 4789 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4790 an assert. Remove single element array indexing pattern as the
4791 MULTI_SUBSCRIPT support will handle this case too.
4792
2677f2d3
SM
47932020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4794
4795 * value.h (valprint_check_validity): Move declaration from
4796 here...
4797 * valprint.h (valprint_check_validity): ... to here.
4798
c426fddb
SM
47992020-08-24 Simon Marchi <simon.marchi@efficios.com>
4800
4801 * debug.h: New file.
4802 * debug.c (debug_prefixed_vprintf): New function.
4803 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4804 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4805
1eb8556f
SM
48062020-08-24 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * infrun.h (infrun_debug_printf_1): New function declaration.
4809 (infrun_debug_printf): New macro.
4810 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4811 throughout.
4812 (infrun_debug_printf): New function.
4813 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4814 (handle_jit_event): Likewise.
4815
b8fff44e
MW
48162020-08-21 Mark Wielaard <mark@klomp.org>
4817
4818 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4819
d19c3068
SM
48202020-08-22 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * frame.c (enum class frame_id_status): New.
4823 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4824 (fprintf_frame): Update.
4825 (compute_frame_id): Set frame id status to "computing" on entry.
4826 Set it back to "not_computed" on failure and to "computed" on
4827 success.
4828 (get_frame_id): Assert the frame id is not being computed.
4829 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4830 (create_new_frame): Likewise.
4831 (frame_cleanup_after_sniffer): Update assert.
4832
b70e516e
SM
48332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4834
4835 * regcache.c (pid_ptid_regcache_map): New type.
4836 (target_ptid_regcache_map): Remove.
4837 (target_pid_ptid_regcache_map): New type.
4838 (regcaches): Change type to target_pid_ptid_regcache_map.
4839 (get_thread_arch_aspace_regcache): Update.
4840 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4841 case.
4842 (regcaches_size): Update.
4843 (regcache_count): Update.
4844 (registers_changed_ptid_target_pid_test): New.
4845 (_initialize_regcache): Register new test.
4846
cdd9148a
SM
48472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * regcache.c (regcache_count): New.
4850 (struct regcache_test_data): New.
4851 (regcache_test_data_up): New.
4852 (populate_regcaches_for_test): New.
4853 (regcaches_test): Remove.
4854 (get_thread_arch_aspace_regcache_test): New.
4855 (registers_changed_ptid_all_test): New.
4856 (registers_changed_ptid_target_test): New.
4857 (registers_changed_ptid_target_ptid_test): New.
4858 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4859 (_initialize_regcache): Register new tests.
4860
dd125343
SM
48612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4862
4863 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4864 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4865 gdbarch and aspace parameter. Use current inferior's aspace.
4866 Validate regcache's arch value.
4867 (regcaches_test): Update.
4868
3ee93972
SM
48692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4870
4871 * regcache.c (regcaches_test): Call registers_changed.
4872
33bf4c5c
TBA
48732020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4874
4875 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4876
c2fd7fae
AKS
48772020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4878
4879 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4880 to find the end of prologue for flang compiled binaries.
4881 * arm-tdep.c (arm_skip_prologue): Likewise.
4882 * i386-tdep.c (i386_skip_prologue): Likewise.
4883 * producer.c (producer_is_llvm): New function.
4884 (producer_parsing_tests): Added new tests for clang/flang.
4885 * producer.h (producer_is_llvm): New declaration.
4886
9327494e
SM
48872020-08-18 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * linux-nat.c (linux_nat_debug_printf): New function.
4890 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4891
d138725a
AM
48922020-08-18 Aaron Merey <amerey@redhat.com>
4893
4894 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4895 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4896 (CLIBS): Add DEBUGINFOD_LIBS.
4897
f9b11e6b
ST
48982020-08-17 Sergei Trofimovich <siarheit@google.com>
4899
4900 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4901 'gdbarch_num_regs'.
4902
3ae7ab99
TT
49032020-08-17 Tom Tromey <tromey@adacore.com>
4904
4905 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4906 ada_get_decoded_value returns NULL.
4907
b017825f
TT
49082020-08-17 Tom Tromey <tromey@adacore.com>
4909
4910 * python/py-inferior.c (infpy_search_memory): Use
4911 gdb_py_object_from_ulongest.
4912 * python/py-infevents.c (create_inferior_call_event_object)
4913 (create_memory_changed_event_object): Use
4914 gdb_py_object_from_ulongest.
4915 * python/py-linetable.c (ltpy_entry_get_pc): Use
4916 gdb_py_object_from_ulongest.
4917
7635cf79
SM
49182020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * loc.c (class symbol_needs_eval_context): Fix indentation.
4921
f54be24b
SM
49222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4923
4924 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4925 bool.
4926
53d5a2a5
TV
49272020-08-17 Tom de Vries <tdevries@suse.de>
4928
4929 PR gdb/26393
4930 * gdbtypes.c (dump_dynamic_prop): New function.
4931 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4932
547ce8f0
TV
49332020-08-15 Tom de Vries <tdevries@suse.de>
4934
4935 PR backtrace/26390
4936 * stack.c (print_frame_args): Temporarily set the selected
4937 frame to FRAME while printing the frame's arguments.
4938
6ea815e7
PFC
49392020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4940
4941 PR breakpoints/26385
4942 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4943 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4944
6e562fa3
PFC
49452020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4946
4947 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4948 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4949 and >= to check return value instead of == -1 and != -1.
4950
d369b608
SM
49512020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4952
4953 * utils.h (class gdb_argv) <as_array_view>: New method.
4954 * utils.c (gdb_argv_as_array_view_test): New.
4955 (_initialize_utils): Register selftest.
4956 * maint.c (maintenance_selftest): Use the new method.
4957
b31488a3
KR
49582020-08-13 Kamil Rytarowski <n54@gmx.com>
4959
4960 * target.h (supports_dumpcore, dumpcore): New
4961 function declarations.
4962 * target.c (supports_dumpcore, dumpcore): New
4963 functions.
4964 * target-delegates.c: Rebuild.
4965 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4966 and target_dumpcore ().
4967
002a3166
AM
49682020-08-13 Aaron Merey <amerey@redhat.com>
4969
4970 * debuginfod-support.c: Replace global variables with user_data.
4971
ece5bc8a
SM
49722020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4973
4974 * maint.c (maintenance_selftest): Split args and pass array_view
4975 to run_tests.
4976
6d8a0a5e
LM
49772020-08-12 Luis Machado <luis.machado@linaro.org>
4978
4979 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4980 type's length.
4981 Use %s and pulongest to print the length.
4982
7cf663a9
PA
49832020-08-12 Pedro Alves <palves@redhat.com>
4984
4985 * NEWS: Move "Multi-target debugging support" item to the
4986 "Changes since GDB 9" section.
4987
27c7b875
PA
49882020-08-12 Pedro Alves <palves@redhat.com>
4989
4990 PR gdb/26336
4991 * progspace.c (program_space::remove_objfile): Invalidate the
4992 frame cache.
4993
1796a2a1
TV
49942020-08-11 Tom de Vries <tdevries@suse.de>
4995
4996 * MAINTAINERS: Mark ms1 as deleted.
4997
f8e3fe0d
LM
49982020-08-10 Luis Machado <luis.machado@linaro.org>
4999
5000 PR gdb/26310
5001
5002 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5003 act accordingly.
5004 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5005 movz/str/stur/stp skipping behavior.
5006
cc308722
LM
50072020-08-10 Luis Machado <luis.machado@linaro.org>
5008
5009 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5010 struct user_sve_header instead of struct sve_context.
5011
041d9819
SM
50122020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5013
5014 * read.h (dwarf2_fetch_die_loc_sect_off,
5015 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5016 `void *` parameter with function_view.
5017 * read.c (dwarf2_fetch_die_loc_sect_off,
5018 dwarf2_fetch_die_loc_cu_off): Likewise.
5019 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5020 (per_cu_dwarf_call): Adjust.
5021 (get_frame_address_in_block_wrapper): Remove.
5022 (indirect_synthetic_pointer): Adjust.
5023 (get_ax_pc): Remove.
5024 (dwarf2_compile_expr_to_ax): Adjust.
5025
38f8aa06
TV
50262020-08-08 Tom de Vries <tdevries@suse.de>
5027
5028 PR build/26344
5029 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5030 constructor.
5031 * regcache.c (get_thread_arch_aspace_regcache): Same.
5032
a52b3ae2
TT
50332020-08-07 Tom Tromey <tromey@adacore.com>
5034
5035 * ravenscar-thread.c
5036 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5037 New method.
5038 (ravenscar_thread_target::wait): Check
5039 runtime_initialized.
5040 (ravenscar_thread_target::prepare_to_store)
5041 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5042 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5043 (ravenscar_thread_target::stopped_by_watchpoint)
5044 (ravenscar_thread_target::stopped_data_address)
5045 (ravenscar_thread_target::core_of_thread): Use
5046 scoped_restore_current_thread and
5047 set_base_thread_from_ravenscar_task.
5048
0e29517d
TT
50492020-08-07 Tom Tromey <tromey@adacore.com>
5050
5051 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5052
592f9bd7
TT
50532020-08-07 Tom Tromey <tromey@adacore.com>
5054
5055 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5056 update_inferior_ptid before update_thread_list.
5057 (temporarily_change_regcache_ptid): New class.
5058 (ravenscar_thread_target::fetch_registers)
5059 (ravenscar_thread_target::store_registers)
5060 (ravenscar_thread_target::prepare_to_store): Use base thread when
5061 forwarding operation.
5062
39e2018a
TT
50632020-08-07 Tom Tromey <tromey@adacore.com>
5064
5065 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5066 "is_pid" case.
5067
2080266b
TT
50682020-08-07 Tom Tromey <tromey@adacore.com>
5069
5070 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5071 New methods.
5072 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5073 first.
5074 (ravenscar_thread_target::add_thread): Rename from
5075 ravenscar_add_thread.
5076 (ravenscar_thread_target::update_thread_list): Use a lambda.
5077 (ravenscar_thread_target::xfer_partial): New method.
5078
78c02f21
TT
50792020-08-07 Tom Tromey <tromey@adacore.com>
5080
5081 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5082 gdb::function_view.
5083 (iterate_over_live_ada_tasks): Change type of argument.
5084 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5085 of argument.
5086
d5d833af
TT
50872020-08-07 Tom Tromey <tromey@adacore.com>
5088
5089 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5090 Remove.
5091 (ravenscar_thread_target::extra_thread_info): Remove.
5092 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5093 defer to target beneath for non-Ravenscar threads.
5094
a8ac85bb
TT
50952020-08-07 Tom Tromey <tromey@adacore.com>
5096
5097 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5098 get_base_thread_from_ravenscar_task>: Now methods.
5099 <m_cpu_map>: New member.
5100 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5101 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5102 (ravenscar_thread_target::task_is_currently_active): Update.
5103 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5104 Now a method.
5105 (ravenscar_thread_target::add_active_thread): Put initial thread
5106 into the m_cpu_map.
5107
550ab58d
TT
51082020-08-07 Tom Tromey <tromey@adacore.com>
5109
5110 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5111 event_ptid.
5112
e9546579
TT
51132020-08-07 Tom Tromey <tromey@adacore.com>
5114
5115 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5116 runtime_initialized.
5117
3d4470e5
TT
51182020-08-07 Tom Tromey <tromey@adacore.com>
5119
5120 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5121 add_active_thread.
5122 (ravenscar_thread_target::add_active_thread): Now public.
5123 (ravenscar_inferior_created): Call add_active_thread after pushing
5124 the target.
5125
888bdb2b
SM
51262020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5127
5128 * regcache.c (ptid_regcache_map): New type.
5129 (target_ptid_regcache_map): New type.
5130 (regcaches): Change type to target_ptid_regcache_map.
5131 (get_thread_arch_aspace_regcache): Update to regcaches' new
5132 type.
5133 (regcache_thread_ptid_changed): Likewise.
5134 (registers_changed_ptid): Likewise.
5135 (regcaches_size): Likewise.
5136 (regcaches_test): Update.
5137 (regcache_thread_ptid_changed): Update.
5138 * regcache.h (regcache_up): New type.
5139 * gdbsupport/ptid.h (hash_ptid): New struct.
5140
b161a60d
SM
51412020-08-07 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * observable.h (thread_ptid_changed): Add parameter
5144 `process_stratum_target *`.
5145 * infrun.c (infrun_thread_ptid_changed): Add parameter
5146 `process_stratum_target *` and use it.
5147 (selftests): New namespace.
5148 (infrun_thread_ptid_changed): New function.
5149 (_initialize_infrun): Register selftest.
5150 * regcache.c (regcache_thread_ptid_changed): Add parameter
5151 `process_stratum_target *` and use it.
5152 (regcache_thread_ptid_changed): New function.
5153 (_initialize_regcache): Register selftest.
5154 * thread.c (thread_change_ptid): Pass target to
5155 thread_ptid_changed observable.
5156
d2854d8d
CT
51572020-08-06 Caroline Tice <cmtice@google.com>
5158
fe4c3d43
SM
5159 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5160 (struct dwp_sections): Update field comments. Add loclists and
5161 rnglists fields.
5162 (struct virtual_v2_dwo_sections): Rename struct to
5163 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5164 size & offset fields for loclists and rnglists.
5165 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5166 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5167 skipping dummy type units.
5168 (create_dwp_hash_table): Update the large comment above the function to
5169 discuss Version 5 DWP files as well, with references. Update all the
5170 version checks in the function to check for version 5 as well. Add new
5171 section at the end to create dwp hash table for version 5.
5172 (create_dwp_v2_section): Rename function to
5173 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5174 Add V5 to error message text.
5175 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5176 into calls to create_dwp_v2_or_v5_section.
5177 (create_dwo_unit_in_dwp_v5): New function.
5178 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5179 check for version2; add else clause to handle version 5.
5180 (open_and_init_dwo_file): Add code to check dwarf version & only call
5181 create_debug_types_hash_table (with sections.types) if version is not 5;
5182 else call create_debug_type_hash_table, with sections.info.
5183 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5184 version 5.
5185 (dwarf2_locate_v5_dwp_sections): New function.
5186 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5187 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5188
159ed7d9
SM
51892020-08-06 Simon Marchi <simon.marchi@efficios.com>
5190
5191 * regcache.h (class regcache): Remove friend
5192 registers_changed_ptid.
5193 <regcache_thread_ptid_changed>: Remove.
5194 <regcaches>: Remove.
5195 * regcache.c (regcache::regcaches): Rename to...
5196 (regcaches): ... this. Make static.
5197 (get_thread_arch_aspace_regcache): Update.
5198 (regcache::regcache_thread_ptid_changed): Rename to...
5199 (regcache_thread_ptid_changed): ... this. Update.
5200 (class regcache_access): Remove.
5201 (regcaches_test): Update.
5202 (_initialize_regcache): Update.
5203 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5204 <forward_list>.
5205
174981ae
SM
52062020-08-06 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * regcache.h (class regcache) <current_regcache>: Rename to...
5209 <regcaches>: ... this. Move doc here.
5210 * regcache.c (regcache::current_regcache) Rename to...
5211 (regcache::regcaches): ... this. Move doc to header.
5212 (get_thread_arch_aspace_regcache): Update.
5213 (regcache::regcache_thread_ptid_changed): Update.
5214 (registers_changed_ptid): Update.
5215 (class regcache_access) <current_regcache_size>: Rename to...
5216 <regcaches_size>: ... this.
5217 (current_regcache_test): Rename to...
5218 (regcaches_test): ... this.
5219 (_initialize_regcache): Update.
5220
ed908db6
VC
52212020-08-06 Victor Collod <vcollod@nvidia.com>
5222
5223 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5224
b5582ab7
KB
52252020-08-05 Kevin Buettner <kevinb@redhat.com>
5226
5227 * corelow.c (core_target::build_file_mappings): Don't output
5228 null pathname in warning.
5229
ea946b86
SM
52302020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5231
5232 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5233 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5234 gdb.dwarf2/dw2-single-line-discriminators.exp,
5235 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5236
57d02173
TT
52372020-08-05 Tom Tromey <tromey@adacore.com>
5238
5239 PR rust/26197:
5240 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5241 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5242 Fix off-by-one and type size errors in ordinary case.
5243
5555c86d
TV
52442020-08-05 Tom de Vries <tdevries@suse.de>
5245
5246 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5247 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5248
97916bfe
SM
52492020-08-04 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * frame.h (frame_id_p): Return bool.
5252 (frame_id_artificial_p): Return bool.
5253 (frame_id_eq): Return bool.
5254 (has_stack_frames): Return bool.
5255 (get_selected_frame): Fix typo in comment.
5256 (get_frame_pc_if_available): Return bool.
5257 (get_frame_address_in_block_if_available): Return bool.
5258 (get_frame_func_if_available): Return bool.
5259 (read_frame_register_unsigned): Return bool.
5260 (get_frame_register_bytes): Return bool.
5261 (safe_frame_unwind_memory): Return bool.
5262 (deprecated_frame_register_read): Return bool.
5263 (frame_unwinder_is): Return bool.
5264 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5265 bool.
5266 <this_id::p>: Likewise.
5267 <prev_p>: Likewise.
5268 (frame_stash_add): Return bool.
5269 (get_frame_id): Use bool.
5270 (frame_id_build_special) Use bool.
5271 (frame_id_build_unavailable_stack): Use bool.
5272 (frame_id_build): Use bool.
5273 (frame_id_p): Return bool, use true/false instead of 1/0.
5274 (frame_id_artificial_p): Likewise.
5275 (frame_id_eq): Likewise.
5276 (frame_id_inner): Likewise.
5277 (get_frame_func_if_available): Likewise.
5278 (read_frame_register_unsigned): Likewise.
5279 (deprecated_frame_register_read): Likewise.
5280 (get_frame_register_bytes): Likewise.
5281 (has_stack_frames): Likewise.
5282 (inside_main_func): Likewise.
5283 (inside_entry_func): Likewise.
5284 (get_frame_pc_if_available): Likewise.
5285 (get_frame_address_in_block_if_available): Likewise.
5286 (frame_unwinder_is): Likewise.
5287 (safe_frame_unwind_memory): Likewise.
5288 (frame_unwind_arch): Likewise.
5289
fedfee88
SM
52902020-08-04 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5293 type to cached_copy_status.
5294 (fprintf_frame): Adjust.
5295 (get_frame_func_if_available): Adjust.
5296 (frame_cleanup_after_sniffer): Adjust.
5297
6cfa9b59
MW
52982020-08-04 Mark Wielaard <mark@klomp.org>
5299
5300 * MAINTAINERS (Write After Approval): Update email address.
5301
66d6346b
SM
53022020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5303
5304 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5305 dynamic_prop::const_val.
5306
8a6d5e35
SM
53072020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5308
5309 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5310 dynamic_prop::kind.
5311
51d6067d
SM
53122020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5313
5314 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5315
b26e2ae7
JM
53162020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5317
5318 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5319
39791af2
JM
53202020-08-04 Weimin Pan <weimin.pan@oracle.com>
5321 Jose E. Marchesi <jose.marchesi@oracle.com>
5322
5323 * configure.tgt: Add entry for bpf-*-*.
5324 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5325 (ALLDEPFILES): Add bpf-tdep.c.
5326 * bpf-tdep.c: New file.
5327 * MAINTAINERS: Add bpf target and maintainer.
5328 * NEWS: Mention the support for the new target.
5329
521894aa
TV
53302020-08-04 Tom de Vries <tdevries@suse.de>
5331
5332 PR symtab/23270
5333 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5334 Error.
5335
5d6356e9
JB
53362020-08-03 John Baldwin <jhb@FreeBSD.org>
5337
5338 * syscalls/freebsd.xml: Regenerate.
5339
0cf82b81
JB
53402020-08-03 John Baldwin <jhb@FreeBSD.org>
5341
5342 * syscalls/update-freebsd.sh: Fix usage and year range.
5343
8f34b746
TV
53442020-08-03 Tom de Vries <tdevries@suse.de>
5345
5346 PR symtab/26333
5347 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5348 DW_LNE_lo_user/DW_LNE_hi_user range.
5349
5e500d33
SM
53502020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 PR ada/26318
5353 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5354 kind.
5355
78319c15
TBA
53562020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5357
5358 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5359
4c55e970
TBA
53602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5361
5362 * breakpoint.c (set_breakpoint_condition): Update the condition
5363 expressions after checking that the input condition string parses
5364 successfully and does not contain junk at the end.
5365
1e620590
TBA
53662020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5367
5368 * breakpoint.c (set_breakpoint_condition): Update the
5369 condition string after parsing the new condition successfully.
5370
c8693053
RO
53712020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5372
5373 * proc-api.c (_STRUCTURED_PROC): Don't define.
5374 * proc-events.c: Likewise.
5375 * proc-flags.c: Likewise.
5376 * proc-why.c: Likewise.
5377 * procfs.c: Likewise.
5378
5379 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5380 * configure, config.in: Regenerate.
5381
5a99adb8
TV
53822020-07-30 Tom de Vries <tdevries@suse.de>
5383
5384 PR build/26320
5385 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5386 m_red/m_green/m_blue in a union.
5387
8ba83e91
TV
53882020-07-29 Tom de Vries <tdevries@suse.de>
5389
5390 PR tdep/26280
5391 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5392
f75a0693
AB
53932020-07-28 Tom Tromey <tromey@adacore.com>
5394
5395 PR symtab/26270:
5396 * symtab.h (find_pc_partial_function_sym): Declare.
5397 * cli/cli-cmds.c (disassemble_command): Use
5398 find_pc_partial_function_sym. Check asm_demangle.
5399 * blockframe.c (cache_pc_function_sym): New global.
5400 (cache_pc_function_name): Remove.
5401 (clear_pc_function_cache): Update.
5402 (find_pc_partial_function_sym): New function, from
5403 find_pc_partial_function.
5404 (find_pc_partial_function): Rewrite using
5405 find_pc_partial_function_sym.
5406
16f3242c
TT
54072020-07-28 Tom Tromey <tromey@adacore.com>
5408
5409 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5410 help. Add usage.
5411
4888741a
TT
54122020-07-28 Tom Tromey <tromey@adacore.com>
5413
5414 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5415 <DW_OP_GNU_variable_value>: Cast to address type.
5416
4d46f402
KR
54172020-07-28 Kamil Rytarowski <n54@gmx.com>
5418
5419 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5420 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5421 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5422 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5423 (nbsd_get_siginfo_type): New.
5424 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5425 (_initialize_nbsd_tdep): New.
5426
d70f978b
L
54272020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5428
5429 PR binutils/26301
5430 * configure: Regenerated.
5431
377170fa
L
54322020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5433
5434 PR binutils/26301
5435 * configure: Regenerated.
5436
43d5901d
AB
54372020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5438
5439 * python/py-frame.c: Remove 'user-regs.h' include.
5440 (frapy_read_register): Rewrite to make use of
5441 gdbpy_parse_register_id.
5442 * python/py-registers.c (gdbpy_parse_register_id): New function,
5443 moved here from python/py-unwind.c. Updated the return type, and
5444 also accepts register descriptor objects.
5445 * python/py-unwind.c: Remove 'user-regs.h' include.
5446 (pyuw_parse_register_id): Moved to python/py-registers.c.
5447 (unwind_infopy_add_saved_register): Update to use
5448 gdbpy_parse_register_id.
5449 (pending_framepy_read_register): Likewise.
5450 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5451
14fa8fb3
AB
54522020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * python/py-registers.c: Add 'user-regs.h' include.
5455 (register_descriptor_iter_find): New function.
5456 (register_descriptor_iterator_object_methods): New static global
5457 methods array.
5458 (register_descriptor_iterator_object_type): Add pointer to methods
5459 array.
5460
ddce1758
JB
54612020-07-27 John Baldwin <jhb@FreeBSD.org>
5462
5463 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5464 for all architectures on FreeBSD 11.3 and later.
5465
a4089f52
TT
54662020-07-27 Tom Tromey <tromey@adacore.com>
5467
5468 * gcore.h (load_corefile): Don't declare.
5469
95420d30
TV
54702020-07-27 Tom de Vries <tdevries@suse.de>
5471
5472 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5473 * config.in: Regenerate.
5474 * configure: Regenerate.
5475
05a6b8c2
EZ
54762020-07-26 Eli Zaretskii <eliz@gnu.org>
5477
5478 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5479 ws2tcpip.h. When checking whether socklen_t type is defined, use
5480 ws2tcpip.h if it is available and sys/socket.h isn't.
5481 * configure: Regenerate.
5482 * config.in: Regenerate.
5483
e79eb02f
AB
54842020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 PR fortran/23051
5487 PR fortran/26139
5488 * valops.c (value_ind): Pass address to
5489 readjust_indirect_value_type.
5490 * value.c (readjust_indirect_value_type): Make parameter
5491 non-const, and add extra address parameter. Resolve original type
5492 before using it.
5493 * value.h (readjust_indirect_value_type): Update function
5494 signature and comment.
5495
876518dd
TV
54962020-07-25 Tom de Vries <tdevries@suse.de>
5497
5498 PR symtab/26243
5499 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5500 entries.
5501
f6720b1c
AM
55022020-07-24 Aaron Merey <amerey@redhat.com>
5503
5504 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5505 * configure: Rebuild.
5506
513487e1
KB
55072020-07-23 Kevin Buettner <kevinb@redhat.com>
5508
5509 PR corefiles/26294
5510 * corelow.c (_initialize_corelow): Add period to help text
5511 for "maintenance print core-file-backed-mappings".
5512
e7bc9db8
PA
55132020-07-23 Pedro Alves <pedro@palves.net>
5514
5515 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5516 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5517 meanwhile.
5518 * frame.c (frame_cache_generation, get_frame_cache_generation):
5519 New.
5520 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5521 (get_prev_frame_if_no_cycle): On exception, don't touch
5522 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5523 * frame.h (get_frame_cache_generation): Declare.
5524
90fcc466
TV
55252020-07-23 Tom de Vries <tdevries@suse.de>
5526
5527 PR tui/26282
5528 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5529 New default constructor.
5530
78344df7
AB
55312020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5532
5533 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5534 exclude non-statement entries.
5535
b089853a
KB
55362020-07-22 Kevin Buettner <kevinb@redhat.com>
5537
5538 * NEWS (New commands): Mention new command
5539 "maintenance print core-file-backed-mappings".
5540
09c2f5d4
KB
55412020-07-22 Kevin Buettner <kevinb@redhat.com>
5542
5543 * corelow.c (gdbcmd.h): Include.
5544 (core_target::info_proc_mappings): New method.
5545 (get_current_core_target): New function.
5546 (maintenance_print_core_file_backed_mappings): New function.
5547 (_initialize_corelow): Add core-file-backed-mappings to
5548 "maint print" commands.
5549
9c5ec5c2 55502020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5551
9c5ec5c2
KB
5552 * linux-tdep.c (dump_note_entry_p): New function.
5553 (linux_dump_mapping_p_ftype): New typedef.
5554 (linux_find_memory_regions_full): Add new parameter,
5555 should_dump_mapping_p.
5556 (linux_find_memory_regions): Adjust call to
5557 linux_find_memory_regions_full.
5558 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5559 call to linux_find_memory_regions_full.
5560
db082f59
KB
55612020-07-22 Kevin Buettner <kevinb@redhat.com>
5562
5563 * corelow.c (solist.h, unordered_map): Include.
5564 (class core_target): Add field m_core_file_mappings and
5565 method build_file_mappings.
5566 (core_target::core_target): Call build_file_mappings.
5567 (core_target::~core_target): Free memory associated with
5568 m_core_file_mappings.
5569 (core_target::build_file_mappings): New method.
5570 (core_target::xfer_partial): Use m_core_file_mappings
5571 for memory transfers.
5572 * linux-tdep.c (linux_read_core_file_mappings): New
5573 function.
5574 (linux_core_info_proc_mappings): Rewrite to use
5575 linux_read_core_file_mappings.
5576 (linux_init_abi): Register linux_read_core_file_mappings.
5577
7e183d27
KB
55782020-07-22 Kevin Buettner <kevinb@redhat.com>
5579
5580 * arch-utils.c (default_read_core_file_mappings): New function.
5581 * arch-utils.c (default_read_core_file_mappings): Declare.
5582 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5583 * gdbarch.h, gdbarch.c: Regenerate.
5584
2735d421
KB
55852020-07-22 Kevin Buettner <kevinb@redhat.com>
5586
5587 PR corefiles/25631
5588 * corelow.c (core_target:xfer_partial): Revise
5589 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5590 case after first checking the stratum beneath the core
5591 target.
5592 (has_all_memory): Return true.
5593 * target.c (raw_memory_xfer_partial): Revise comment
5594 regarding use of has_all_memory.
5595
e56cb451
KB
55962020-07-22 Kevin Buettner <kevinb@redhat.com>
5597
5598 * exec.h (section_table_xfer_memory): Revise declaration,
5599 replacing section name parameter with an optional callback
5600 predicate.
5601 * exec.c (section_table_xfer_memory): Likewise.
5602 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5603 of section_table_xfer_memory.
5604
32fa152e
TT
56052020-07-22 Tom Tromey <tromey@adacore.com>
5606
5607 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5608 lookup_symbol_search_name.
5609
a67a1c41
AB
56102020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5613 redundant local variable.
5614 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5615 reference, not pointer, update code accordingly.
5616
a7b4ff4f
SM
56172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5618 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5619
5620 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5621 * jit.c (jit_breakpoint_re_set_internal): Use the
5622 `skip_jit_symbol_lookup` field.
5623
2340e834
SM
56242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5625 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5626
5627 * jit.c (jit_read_descriptor): Define the descriptor address once,
5628 use twice.
5629 (jit_breakpoint_deleted): Move the declaration of the loop variable
5630 `iter` into the loop header.
5631 (jit_breakpoint_re_set_internal): Move the declaration of the local
5632 variable `objf_data` to the first point of definition.
5633 (jit_event_handler): Move the declaration of local variables
5634 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5635 Rename `objf` to `jited`.
5636
c1072906
SM
56372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5640 Remove.
5641 * jit.c (get_jiter_objfile_data): Update.
5642
c8474dc3
TBA
56432020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5644 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * jit.c (struct jit_program_space_data): Remove.
5647 (jit_program_space_key): Remove.
5648 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5649 stuff.
5650 (get_jit_program_space_data): Remove.
5651 (jit_breakpoint_deleted): Iterate on all of the program space's
5652 objfiles.
5653 (jit_inferior_init): Likewise.
5654 (jit_breakpoint_re_set_internal): Likewise. Also change return
5655 type to void.
5656 (jit_breakpoint_re_set): Pass current_program_space to
5657 jit_breakpoint_re_set_internal.
5658
77208eb7
SM
56592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5660
5661 * jit.h (struct jiter_objfile_data) <cached_code_address,
5662 jit_breakpoint>: Move to here from ...
5663 * jit.c (jit_program_space_data): ... here.
5664 (jiter_objfile_data::~jiter_objfile_data): Update.
5665 (jit_breakpoint_deleted): Update.
5666 (jit_breakpoint_re_set_internal): Update.
5667
8c1c720f
SM
56682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5669
5670 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5671 checks.
5672 (jit_read_descriptor): Remove NULL check.
5673 (jit_event_handler): Add an assertion.
5674
0e74a041
SM
56752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5676
5677 * jit.h (struct jit_objfile_data): Split into...
5678 (struct jiter_objfile_data): ... this ...
5679 (struct jited_objfile_data): ... and this.
5680 * objfiles.h (struct objfile) <jit_data>: Remove.
5681 <jiter_data, jited_data>: New fields.
5682 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5683 (jiter_objfile_data::~jiter_objfile_data): ... this.
5684 (get_jit_objfile_data): Rename to ...
5685 (get_jiter_objfile_data): ... this.
5686 (add_objfile_entry): Update.
5687 (jit_read_descriptor): Use get_jiter_objfile_data.
5688 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5689 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5690 (jit_inferior_exit_hook): Use objfile's jited_data field.
5691
238b5c9f
SM
56922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 * jit.h: Forward-declare `struct minimal_symbol`.
5695 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5696 constructor, destructor, and an objfile* field.
5697 * jit.c (jit_objfile_data): Remove.
5698 (struct jit_objfile_data): Migrate from here to jit.h.
5699 (jit_objfile_data::~jit_objfile_data): New destructor
5700 implementation with code moved from free_objfile_data.
5701 (free_objfile_data): Delete.
5702 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5703 (jit_find_objf_with_entry_addr): Ditto.
5704 (jit_inferior_exit_hook): Ditto.
5705 (_initialize_jit): Remove the call to
5706 register_objfile_data_with_cleanup.
5707 * objfiles.h (struct objfile) <jit_data>: New field.
5708
fe053b9e
TBA
57092020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5710
5711 * jit.h: Forward-declare `struct objfile`.
5712 (jit_event_handler): Add a second parameter, the JITer objfile.
5713 * jit.c (jit_read_descriptor): Change the signature to take the
5714 JITer objfile as an argument instead of the jit_program_space_data.
5715 (jit_inferior_init): Update the call to jit_read_descriptor.
5716 (jit_event_handler): Use the new JITer objfile argument when calling
5717 jit_read_descriptor.
5718 * breakpoint.c (handle_jit_event): Update the call to
5719 jit_event_handler to pass the JITer objfile.
5720
4cec0c66
JB
57212020-07-21 John Baldwin <jhb@FreeBSD.org>
5722
5723 * gdbarch.c: Regenerate.
5724 * gdbarch.h: Regenerate.
5725 * gdbarch.sh (handle_segmentation_fault): Remove method.
5726 * infrun.c (handle_segmentation_fault): Remove.
5727 (print_signal_received_reason): Remove call to
5728 handle_segmentation_fault.
5729
0e42f66a
JB
57302020-07-21 John Baldwin <jhb@FreeBSD.org>
5731
5732 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5733 Rename to sparc64_linux_report_signal_info and add siggnal
5734 argument.
5735 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5736 instead of sparc64_linux_handle_segmentation_fault.
5737
77bdfeb2
JB
57382020-07-21 John Baldwin <jhb@FreeBSD.org>
5739
5740 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5741 i386_linux_report_signal_info instead of
5742 i386_linux_handle_segmentation_fault.
5743 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5744 to i386_linux_report_signal_info and add siggnal argument.
5745 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5746 of i386_linux_handle_segmentation_fault.
5747 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5748 to i386_linux_report_signal_info and add siggnal argument.
5749
ad97bfc5
JB
57502020-07-21 John Baldwin <jhb@FreeBSD.org>
5751
5752 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5753 hook if present.
5754
272bb05c
JB
57552020-07-21 John Baldwin <jhb@FreeBSD.org>
5756
5757 * gdbarch.c: Regenerate.
5758 * gdbarch.h: Regenerate.
5759 * gdbarch.sh (report_signal_info): New method.
5760 * infrun.c (print_signal_received_reason): Invoke gdbarch
5761 report_signal_info hook if present.
5762
baf8791e
AB
57632020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * python/py-registers.c : Add 'unordered_map' include.
5766 (gdbpy_new_reggroup): Renamed to...
5767 (gdbpy_get_reggroup): ...this. Update to only create register
5768 group descriptors when needed.
5769 (gdbpy_reggroup_iter_next): Update.
5770
f7306dac
AB
57712020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5772
5773 * python/py-registers.c (gdbpy_register_object_data): New static
5774 global.
5775 (gdbpy_register_object_data_init): New function.
5776 (gdbpy_new_register_descriptor): Renamed to...
5777 (gdbpy_get_register_descriptor): ...this, and update to reuse
5778 existing register descriptors where possible.
5779 (gdbpy_register_descriptor_iter_next): Update.
5780 (gdbpy_initialize_registers): Register new gdbarch data.
5781
05c309a8
SM
57822020-07-21 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * linux-nat.c (stopped_pids): Make static.
5785
d1fd641e
SM
57862020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5787
5788 PR ada/26235
5789 * gdbtypes.c (ada_discrete_type_low_bound,
5790 ada_discrete_type_high_bound): Handle undefined bounds.
5791
1de14d77
KR
57922020-07-21 Kamil Rytarowski <n54@gmx.com>
5793
5794 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5795 declaration.
5796 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5797 function.
5798
ed810cc7
JB
57992020-07-20 John Baldwin <jhb@FreeBSD.org>
5800
5801 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5802 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5803 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5804 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5805 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5806 method.
5807
ae5369e7
LC
58082020-07-20 Ludovic Courtès <ludo@gnu.org>
5809
5810 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5811 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5812 which are deprecated in Guile 3.0.
5813 * configure.ac (try_guile_versions): Add "guile-3.0".
5814 * configure (try_guile_versions): Regenerate.
5815 * NEWS: Update entry.
5816
68cf161c
LC
58172020-07-20 Ludovic Courtès <ludo@gnu.org>
5818 Doug Evans <dje@google.com>
5819
5820 PR gdb/21104
5821 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5822 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5823 USING_GUILE_BEFORE_2_2.
5824 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5825 Change type to 'scm_t_port_type *'.
5826 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5827 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5828 parameter and honor it. Update callers.
5829 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5830 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5831 functions.
5832 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5833 USING_GUILE_BEFORE_2_2.
5834 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5835 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5836 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5837 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5838 and 'SCM_PORT_TYPE'.
5839 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5840 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5841 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5842 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5843 [!USING_GUILE_BEFORE_2_2]: New functions.
5844 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5845 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5846 'gdbscm_memory_port_read'.
5847 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5848 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5849 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5850 function.
5851 (ioscm_init_memory_port): Remove.
5852 (ioscm_init_memory_port_stream): New function
5853 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5854 function.
5855 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5856 Return scm_from_uint (0).
5857 (gdbscm_set_memory_port_read_buffer_size_x)
5858 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5859 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5860 Return scm_from_uint (0).
5861 (gdbscm_set_memory_port_write_buffer_size_x)
5862 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5863 * configure.ac (try_guile_versions): Add "guile-2.2".
5864 * configure: Regenerate.
5865 * NEWS: Add entry.
5866
aee91db3
TT
58672020-07-18 Tom Tromey <tom@tromey.com>
5868
5869 * linux-nat.c (linux_multi_process): Remove.
5870 (linux_nat_target::supports_multi_process): Return true.
5871
0e267416
AB
58722020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5875 (riscv_lookup_target_description): Return pointer out of
5876 unique_ptr.
5877 * target-descriptions.c (allocate_target_description): Add
5878 comment.
5879 (target_desc_deleter::operator()): Likewise.
5880 * target-descriptions.h (struct target_desc_deleter): Moved to
5881 gdbsupport/tdesc.h.
5882 (target_desc_up): Likewise.
5883
f80c8ec4
TT
58842020-07-17 Tom Tromey <tromey@adacore.com>
5885
5886 * linux-nat.c (linux_nat_target::supports_non_stop)
5887 (linux_nat_target::always_non_stop_p): Use "true".
5888 (linux_nat_target::supports_disable_randomization): Use "true" and
5889 "false".
5890
d0ce17d8
CT
58912020-07-16 Caroline Tice <cmtice@google.com>
5892
5893 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5894 (RNGLIST_HEADER_SIZE64): New constant definition.
5895 (struct dwop_section_names): Add rnglists_dwo.
5896 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5897 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5898 (struct dwo_sections): Add rnglists field.
5899 (read_attribut_reprocess): Add tag parameter.
5900 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5901 (cu_debug_rnglists_section): New function (decl & definition).
5902 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5903 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5904 die whose range is being checked; get rnglist section from
5905 cu_debug_rnglists_section, to get from either objfile or dwo file as
5906 appropriate. Add cases for DW_RLE_base_addressx,
5907 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5908 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5909 test inside if-condition and updating complaint message.
5910 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5911 dwarf2_rnglists_process.
5912 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5913 dwarf2_ranges_process.
5914 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5915 need_ranges_base and update comment appropriately. Also pass die tag
5916 to dwarf2_ranges_read.
5917 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5918 need_ranges_base and update comment appropriately. Also pass die tag
5919 to dwarf2_ranges_process.
5920 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5921 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5922 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5923 need_ranges_base and update comment appropriately. Also pass die tag
5924 to read_attribute_reprocess and dwarf2_ranges_read.
5925 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5926 and update function comment appropriately.
5927 (read_loclist_index): Call read_loclists_rnglists_header instead of
5928 read_loclist_header.
5929 (read_rnglist_index): New function.
5930 (read_attribute_reprocess): Add tag parameter. Add code for
5931 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5932 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5933
3dcc261c
AB
59342020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5935
5936 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5937 being resolved.
5938
ccb9eba6
AB
59392020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * arch-utils.c (show_architecture): Update formatting of messages.
5942
cf88be68
SM
59432020-07-12 Simon Marchi <simon.marchi@efficios.com>
5944
5945 * gdbtypes.h (struct type) <bounds>: Handle array and string
5946 types.
5947 * ada-lang.c (assign_aggregate): Use type::bounds on
5948 array/string type.
5949 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5950 * c-varobj.c (c_number_of_children): Likewise.
5951 (c_describe_child): Likewise.
5952 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5953 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5954 (f_type_print_base): Likewise.
5955 * f-valprint.c (f77_array_offset_tbl): Likewise.
5956 (f77_get_upperbound): Likewise.
5957 (f77_print_array_1): Likewise.
5958 * guile/scm-type.c (gdbscm_type_range): Likewise.
5959 * m2-typeprint.c (m2_array): Likewise.
5960 (m2_is_long_set_of_type): Likewise.
5961 * m2-valprint.c (get_long_set_bounds): Likewise.
5962 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5963 * python/py-type.c (typy_range): Likewise.
5964 * rust-lang.c (rust_internal_print_type): Likewise.
5965 * type-stack.c (type_stack::follow_types): Likewise.
5966 * valarith.c (value_subscripted_rvalue): Likewise.
5967 * valops.c (value_cast): Likewise.
5968
509971ae
SM
59692020-07-12 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5972 callers to use the equivalent accessor methods.
5973
107406b7
SM
59742020-07-12 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5977 (struct type) <bit_stride>: New method.
5978 (TYPE_BIT_STRIDE): Remove.
5979 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5980
bb789949
SM
59812020-07-12 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5984 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5985 callers to use the equivalent accessor methods instead.
5986
39498edb
SM
59872020-07-12 Simon Marchi <simon.marchi@efficios.com>
5988
5989 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5990 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5991 callers to use the equivalent accessor methods instead.
5992
3b606f38
SM
59932020-07-12 Simon Marchi <simon.marchi@efficios.com>
5994
5995 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5996 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5997 to use dynamic_prop::kind.
5998
064d9cb9
SM
59992020-07-12 Simon Marchi <simon.marchi@efficios.com>
6000
6001 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6002 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6003 to get the bound property's kind and check against
6004 PROP_UNDEFINED.
6005
5537ddd0
SM
60062020-07-12 Simon Marchi <simon.marchi@efficios.com>
6007
6008 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6009 all callers to use type::range_bounds followed by
6010 dynamic_prop::{low,high}.
6011
8c2e4e06
SM
60122020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6015 const_val, set_const_val, baton, set_locexpr, set_loclist,
6016 set_addr_offset, variant_parts, set_variant_parts,
6017 original_type, set_original_type>: New methods.
6018 <kind>: Rename to...
6019 <m_kind>: ... this. Update all users to use the new methods
6020 instead.
6021 <data>: Rename to...
6022 <m_data>: ... this. Update all users to use the new methods
6023 instead.
6024
7c6f2712
SM
60252020-07-12 Simon Marchi <simon.marchi@efficios.com>
6026
6027 * gdbtypes.c (get_discrete_bounds): Return failure if
6028 the range type's bounds are not both defined and constant
6029 values.
6030 (get_array_bounds): Update comment. Remove undefined bound check.
6031
599088e3
SM
60322020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6035 the type::bounds method directly.
6036
c4dfcb36
SM
60372020-07-12 Simon Marchi <simon.marchi@efficios.com>
6038
6039 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6040 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6041 are used to set the range type's bounds to use set_bounds.
6042
0a278aa7
PW
60432020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6044
6045 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6046
cce20f10
PA
60472020-07-10 Pedro Alves <pedro@palves.net>
6048
6049 * gdbthread.h (inferior_ref): Define.
6050 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6051 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6052 * thread.c
6053 (scoped_restore_current_thread::restore):
6054 Adjust to gdb::ref_ptr.
6055 (scoped_restore_current_thread::~scoped_restore_current_thread):
6056 Remove manual decref handling.
6057 (scoped_restore_current_thread::scoped_restore_current_thread):
6058 Adjust to use
6059 inferior_ref::new_reference/thread_info_ref::new_reference.
6060 Incref the thread before calling get_frame_id instead of after.
6061 Let TARGET_CLOSE_ERROR propagate.
6062
6d7aa592
PA
60632020-07-10 Pedro Alves <pedro@palves.net>
6064
6065 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6066 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6067 NOT_AVAILABLE_ERROR.
6068 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6069 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6070
b3e3a4c1
SM
60712020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6072 Pedro Alves <pedro@palves.net>
6073
6074 PR gdb/26199
6075 * infrun.c (threads_are_resumed_pending_p): Delete.
6076 (do_target_wait): Remove threads_are_executing and
6077 threads_are_resumed_pending_p checks from the inferior_matches
6078 lambda. Update comments.
6079
d6cc5d98
PA
60802020-07-10 Pedro Alves <pedro@palves.net>
6081
6082 PR gdb/26199
6083 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6084 executing threads.
6085
7d3badc6
PA
60862020-07-10 Pedro Alves <pedro@palves.net>
6087
6088 PR gdb/26199
6089 * infrun.c (handle_no_resumed): Handle multiple targets.
6090
42bd97a6
PA
60912020-07-10 Pedro Alves <pedro@palves.net>
6092
6093 PR gdb/26199
6094 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6095 target_is_async_p.
6096
43667cc6
PA
60972020-07-10 Pedro Alves <pedro@palves.net>
6098
6099 PR gdb/26199
6100 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6101 threads, not all threads.
6102
96118d11
PA
61032020-07-10 Pedro Alves <pedro@palves.net>
6104
6105 PR gdb/26199
6106 * remote.c (remote_target::open_1): Pass remote target pointer as
6107 data to create_async_event_handler.
6108 (remote_async_inferior_event_handler): Mark async event handler
6109 before returning if the remote target still has either pending
6110 events or unacknowledged notifications.
6111
54904d81
JB
61122020-07-10 John Baldwin <jhb@FreeBSD.org>
6113
6114 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6115 declaration.
6116 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6117 function.
6118
f37e5866
JB
61192020-07-09 John Baldwin <jhb@FreeBSD.org>
6120
6121 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6122 inferior_ptid.
6123
fc238d4a
JB
61242020-07-09 John Baldwin <jhb@FreeBSD.org>
6125
6126 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6127 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6128 AT_FREEBSD_PS_STRINGS.
6129
6e2469ff
HD
61302020-07-08 Hannes Domani <ssbssa@yahoo.de>
6131
6132 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6133 of debugfile path on Windows.
6134
d1076c41
JB
61352020-07-08 John Baldwin <jhb@FreeBSD.org>
6136
6137 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6138 argument to 'data'.
6139
15f3b077
TT
61402020-07-08 Tom Tromey <tromey@adacore.com>
6141
6142 * ada-lang.c (ada_exception_message_1): Use read_memory.
6143
9fc501fd
AB
61442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6145
6146 PR python/22748
6147 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6148 special handling for inline frames.
6149 * findvar.c (value_of_register_lazy): Skip inline frames when
6150 creating lazy register values.
6151 * frame.c (frame_id_computed_p): Delete definition.
6152 * frame.h (frame_id_computed_p): Delete declaration.
6153
64cb3757
AB
61542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 * NEWS: Mention additions to Python API.
6157 * python/py-arch.c (archpy_register_groups): New function.
6158 (arch_object_methods): Add 'register_groups' method.
6159 * python/py-registers.c (reggroup_iterator_object): New struct.
6160 (reggroup_object): New struct.
6161 (gdbpy_new_reggroup): New function.
6162 (gdbpy_reggroup_to_string): New function.
6163 (gdbpy_reggroup_name): New function.
6164 (gdbpy_reggroup_iter): New function.
6165 (gdbpy_reggroup_iter_next): New function.
6166 (gdbpy_new_reggroup_iterator): New function
6167 (gdbpy_initialize_registers): Register new types.
6168 (reggroup_iterator_object_type): Define new Python type.
6169 (gdbpy_reggroup_getset): New static global.
6170 (reggroup_object_type): Define new Python type.
6171 * python/python-internal.h
6172
0f767f94
AB
61732020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6174
6175 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6176 * python/py-arch.c (archpy_registers): New function.
6177 (arch_object_methods): Add 'registers' method.
6178 * python/py-registers.c: New file.
6179 * python/python-internal.h
6180 (gdbpy_new_register_descriptor_iterator): Declare.
6181 (gdbpy_initialize_registers): Declare.
6182 * python/python.c (do_start_initialization): Call
6183 gdbpy_initialize_registers.
6184 * NEWS: Mention additions to the Python API.
6185
87dbc774
AB
61862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6187
6188 * NEWS: Mention new Python API method.
6189 * python/py-unwind.c (pending_framepy_architecture): New function.
6190 (pending_frame_object_methods): Add architecture method.
6191
3bc98c0c
AB
61922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * gdbarch.c: Regenerate.
6195 * gdbarch.h: Regenerate.
6196 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6197 (gdbarch_data): Use internal_error for the case where
6198 deprecated_set_gdbarch_data was originally needed.
6199 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6200 and use passed in obstack.
6201 (libunwind_frame_set_descr): Should no longer get back NULL from
6202 gdbarch_data.
6203 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6204 type.
6205 * user-regs.c (user_regs_init): Update parameters, and use passed
6206 in obstack.
6207 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6208 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6209
d8cc8af6
TV
62102020-07-06 Tom de Vries <tdevries@suse.de>
6211
6212 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6213 End-Of-Sequence in lte_is_less_than.
6214 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6215 "gdb: Don't reorder line table entries too much when sorting".
6216
947f7597
TV
62172020-07-06 Tom de Vries <tdevries@suse.de>
6218
6219 PR tui/26205
6220 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6221
1e7c1b22
TV
62222020-07-05 Tom de Vries <tdevries@suse.de>
6223
6224 PR build/26187
6225 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6226 std::uncaught_exceptions instead of deprecated
6227 std::uncaught_exception.
6228
a36158ec
SM
62292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * macroexp.h (macro_stringify): Return
6232 gdb::unique_xmalloc_ptr<char>.
6233 * macroexp.c (macro_stringify): Likewise.
6234 * macrotab.c (fixup_definition): Update.
6235
14d960c8
SM
62362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6239 (lex_one_token): Update.
6240 * macroexp.c (struct macro_buffer) <release>: Return
6241 gdb::unique_xmalloc_ptr<char>.
6242 (macro_stringify): Update.
6243 (macro_expand): Update.
6244 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6245 * macroexp.h (macro_expand_next): Likewise.
6246
211d5b1c
SM
62472020-07-02 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * macroexp.h (macro_lookup_ftype): Remove.
6250 (macro_expand, macro_expand_once, macro_expand_next): Remove
6251 lookup function parameters, add scope parameter.
6252 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6253 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6254 * macroscope.h (standard_macro_lookup): Change parameter type
6255 to macro_scope.
6256 * macroscope.c (standard_macro_lookup): Likewise.
6257 * c-exp.y (lex_one_token): Update.
6258 * macrocmd.c (macro_expand_command): Likewise.
6259 (macro_expand_once_command): Likewise.
6260
b1a35af2
SM
62612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * inf-loop.c (inferior_event_handler): Remove client_data param.
6264 * inf-loop.h (inferior_event_handler): Likewise.
6265 * infcmd.c (step_1): Adjust.
6266 * infrun.c (proceed): Adjust.
6267 (fetch_inferior_event): Remove client_data param.
6268 (infrun_async_inferior_event_handler): Adjust.
6269 * infrun.h (fetch_inferior_event): Remove `void *` param.
6270 * linux-nat.c (handle_target_event): Adjust.
6271 * record-btrace.c (record_btrace_handle_async_inferior_event):
6272 Adjust.
6273 * record-full.c (record_full_async_inferior_event_handler):
6274 Adjust.
6275 * remote.c (remote_async_inferior_event_handler): Adjust.
6276
1cdf9e33
TT
62772020-07-01 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6280 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6281
32c1e210
TT
62822020-07-01 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6285 tui_gen_win_info.
6286 (tui_win_info::make_window): Merge with
6287 tui_gen_win_info::make_window.
6288 (tui_win_info::make_visible): Move from tui_gen_win_info.
6289 * tui/tui-win.c (tui_win_info::max_width): Move from
6290 tui_gen_win_info.
6291 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6292 type.
6293 <window_factory>: Likewise.
6294 * tui/tui-layout.c (tui_win_info::resize): Move from
6295 tui_gen_win_info.
6296 (make_standard_window): Change return type.
6297 (get_locator_window, tui_get_window_by_name): Likewise.
6298 (tui_layout_window::apply): Remove a cast.
6299 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6300 (struct tui_win_info): Merge with tui_gen_win_info.
6301 (struct tui_gen_win_info): Remove.
6302
a30cb6da
TT
63032020-07-01 Tom Tromey <tom@tromey.com>
6304
6305 * tui/tui-stack.h (struct tui_locator_window): Derive from
6306 tui_win_info.
6307 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6308 <can_box>: New method.
6309
1eb2161f
TT
63102020-07-01 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6313
7134f2eb
TT
63142020-07-01 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-regs.c (tui_data_window::display_registers_from)
6317 (tui_data_window::display_registers_from)
6318 (tui_data_window::first_data_item_displayed)
6319 (tui_data_window::delete_data_content_windows): Update.
6320 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6321 Remove.
6322 (tui_data_window::check_register_values): Update.
6323 (tui_data_item_window::rerender): Add parameters. Update.
6324 (tui_data_item_window::refresh_window): Remove.
6325 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6326 virtual.
6327 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6328 tui_gen_win_info.
6329 <refresh_window, max_height, min_height>: Remove.
6330 <rerender>: Add parameters.
6331 <x, y, visible>: New members.
6332 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6333 <m_item_width>: New member.
6334
22b7b041
TT
63352020-07-01 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-regs.c (tui_data_window::show_register_group)
6338 (tui_data_window::check_register_values): Update.
6339 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6340 from item_no.
6341
c9753adb
TT
63422020-07-01 Tom Tromey <tom@tromey.com>
6343
6344 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6345 useless "if".
6346
9ab26b4a
TT
63472020-07-01 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6350 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6351
e555083f
TT
63522020-07-01 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6355 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6356 (struct tui_line_or_address): Move from tui-data.h.
6357 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6358 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6359 (tui_cmd_window, tui_source_window_base, tui_source_window)
6360 (tui_disasm_window): Don't declare.
6361 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6362 to tui-winsource.h.
6363 (SINGLE_KEY): Move to tui-stack.c.
6364
7a02bab7
TT
63652020-07-01 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6368 std::string.
6369 * tui/tui-regs.c (class tab_expansion_file): New.
6370 (tab_expansion_file::write): New method.
6371 (tui_register_format): Change return type. Use
6372 tab_expansion_file.
6373 (tui_get_register, tui_data_window::display_registers_from)
6374 (tui_data_item_window::rerender): Update.
6375 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6376 * tui/tui-io.c (tui_expand_tabs): Remove.
6377
ea68593b
TT
63782020-07-01 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6381
a8caed5d
FS
63822020-07-01 Fangrui Song <maskray@google.com>
6383
6384 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6385
9cdf9820
AKS
63862020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6387
6388 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6389 forms for DW_AT_associated and DW_AT_allocated attributes,
6390 which is already checked in function attr_to_dynamic_prop.
6391
a1520ad8
TT
63922020-06-30 Tom Tromey <tromey@adacore.com>
6393
6394 * dwarf2/read.c (quirk_rust_enum): Correctly call
6395 alloc_rust_variant for default-less enum.
6396
5ac58899
TT
63972020-06-30 Tom Tromey <tromey@adacore.com>
6398
6399 PR build/26183:
6400 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6401 gdb::to_string.
6402
19b187a9
SM
64032020-06-29 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6406 * gdbarch.h: Re-generate.
6407
cd4c4c07
TT
64082020-06-28 Tom Tromey <tom@tromey.com>
6409
6410 * command.h (cmd_types): Remove.
6411 (cmd_type): Don't declare.
6412 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6413 typedef.
6414 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6415 * cli/cli-decode.c (cmd_type): Remove.
6416
05779d57
PA
64172020-06-27 Pedro Alves <palves@redhat.com>
6418
6419 * fork-child.c (prefork_hook): Adjust.
6420 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6421 Delete.
6422 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6423 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6424 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6425 Remove declarations.
6426 (struct inferior) <set_tty, tty>: New methods.
6427 (struct inferior) <terminal>: Rename to ...
6428 (struct inferior) <m_terminal>: ... this and make private.
6429 * main.c (captured_main_1): Adjust.
6430 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6431 (mi_cmd_inferior_tty_show): Adjust.
6432 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6433 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6434
1776e3e5
NA
64352020-06-26 Nick Alcock <nick.alcock@oracle.com>
6436
6437 * configure.ac: Add --enable-libctf: handle --disable-static
6438 properly.
6439 * acinclude.m4: sinclude ../config/enable.m4.
6440 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6441 (LIBCTF): Substitute in.
6442 (CTF_DEPS): New, likewise.
6443 (CLIBS): libctf needs symbols from libbfd: move earlier.
6444 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6445 flags.
6446 * ctfread.c: Surround in ENABLE_LIBCTF.
6447 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6448 * configure: Regenerate.
6449 * config.in: Likewise.
6450
58373b80
SM
64512020-06-25 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6454
277474ee
SM
64552020-06-25 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * inferior.h (struct inferior) <terminal>: Change type to
6458 gdb::unique_xmalloc_ptr<char>.
6459 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6460 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6461 field, adjust to unique pointer.
6462 (get_inferior_io_terminal): Adjust to unique pointer.
6463
6d74da72
AB
64642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6467 registers, not just the known core set of registers.
6468
2e52d038
AB
64692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6472 fflags, frm, and fcsr registers.
6473 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6474 restore groups.
6475 (riscv_tdesc_unknown_reg): New function.
6476 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6477 tdesc_use_registers.
6478 * riscv-tdep.h (struct gdbarch_tdep): Add
6479 unknown_csrs_first_regnum, unknown_csrs_count,
6480 duplicate_fflags_regnum, duplicate_frm_regnum, and
6481 duplicate_fcsr_regnum fields.
6482
be64fd07
AB
64832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6486 callback, use the callback (when not null) to help number unknown
6487 registers.
6488 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6489 (tdesc_use_registers): Add extra parameter to declaration.
6490
3b9fce96
AB
64912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6494 in the file.
6495 (class riscv_pending_register_alias): Likewise.
6496 (riscv_register_feature::register_info): Change 'required_p' field
6497 to 'required', and change its type. Add 'check' member function.
6498 (riscv_register_feature::register_info::check): Define new member
6499 function.
6500 (riscv_xreg_feature): Change initialisation of 'required' field.
6501 (riscv_freg_feature): Likewise.
6502 (riscv_virtual_feature): Likewise.
6503 (riscv_csr_feature): Likewise.
6504 (riscv_check_tdesc_feature): Take extra parameter, the csr
6505 tdesc_feature, rewrite the function to use the new
6506 riscv_register_feature::register_info::check function.
6507 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6508
865bad26
AB
65092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * features/Makefile: Remove all references to the deleted files
6512 below.
6513 * features/riscv/32bit-csr.c: Deleted.
6514 * features/riscv/32bit-csr.xml: Deleted.
6515 * features/riscv/64bit-csr.c: Deleted.
6516 * features/riscv/64bit-csr.xml: Deleted.
6517 * features/riscv/rebuild-csr-xml.sh: Deleted.
6518
ed69cbc8
AB
65192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6522 whitespace error for declaration of names member variable.
6523 (struct riscv_register_feature): Add new prefer_first_name member
6524 variable, and fix whitespace error in declaration of registers.
6525 (riscv_xreg_feature): Initialize prefer_first_name field.
6526 (riscv_freg_feature): Likewise.
6527 (riscv_virtual_feature): Likewise.
6528 (riscv_csr_feature): Likewise.
6529 (riscv_register_name): Expand on comments. Remove register name
6530 modifications for CSR and virtual registers.
6531
4445e8f5
AB
65322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6535 errors.
6536
767a879e
AB
65372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6538
6539 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6540 riscv-opc.h.
6541 (class riscv_pending_register_alias): New class.
6542 (riscv_check_tdesc_feature): Take vector of pending aliases and
6543 populate it as appropriate.
6544 (riscv_setup_register_aliases): Delete.
6545 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6546 to riscv_check_tdesc_feature in all cases. Use the vector to
6547 create the register aliases.
6548
bb6e55f3
RO
65492020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6550
6551 * sol2-tdep.c (sol2_static_transform_name): Remove.
6552 (sol2_init_abi): Don't register it.
6553 * gdbarch.sh (static_transform_name): Remove.
6554 * gdbarch.c, gdbarch.h: Regenerate.
6555
6556 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6557 gdbarch_static_transform_name.
6558 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6559 * stabsread.c (define_symbol) <'X'>: Remove.
6560 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6561 handling.
6562 <'V'>: Likewise.
6563 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6564 <'S'>: Remove call to gdbarch_static_transform_name.
6565
c6d36836
RO
65662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6567
6568 * procfs.c (procfs_pre_trace): New function.
6569 (procfs_target::create_inferior): Pass it to fork_inferior.
6570
a7e6196b
RO
65712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6572
6573 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6574 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6575 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6576 sol2-tdep.o, sparc-sol2-tdep.o.
6577 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6578 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6579 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6580 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6581
d412e696
RO
65822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6583
6584 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6585 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6586 Call sol2_init_abi.
6587 Remove calls to set_gdbarch_skip_solib_resolver,
6588 set_gdbarch_core_pid_to_str.
6589 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6590 (i386_sol2_static_transform_name): Remove.
6591 (i386_sol2_init_abi): Call sol2_init_abi.
6592 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6593 set_gdbarch_static_transform_name,
6594 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6595 Use sol2_sigtramp_p.
6596 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6597 (sol2_sigtramp_p): New function.
6598 (sol2_static_transform_name): New function.
6599 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6600 (sol2_init_abi): New function.
6601 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6602 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6603 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6604 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6605 (sparc_sol2_static_transform_name): Remove.
6606 (sparc32_sol2_init_abi): Call sol2_init_abi.
6607 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6608 set_gdbarch_static_transform_name,
6609 set_gdbarch_skip_solib_resolver,
6610 set_gdbarch_core_pid_to_str.
6611 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6612 (sparc_sol2_static_transform_name): Remove
6613 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6614 call sol2_sigtramp_p.
6615 (sparc64_sol2_init_abi): Call sol2_init_abi.
6616 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6617 set_gdbarch_static_transform_name,
6618 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6619
a8654e7d
PW
66202020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6621
6622 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6623 * exec.c (validate_exec_file): If from_tty, set both
6624 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6625 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6626 and from_tty, unconditionally ask a confirmation.
6627
caa7fd04
AB
66282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * target-descriptions.c (tdesc_architecture_name): Protect against
6631 NULL pointer dereference.
6632 (maint_print_xml_tdesc_cmd): New function.
6633 (_initialize_target_descriptions): Register new 'maint print
6634 xml-tdesc' command and give it the filename completer.
6635 * NEWS: Mention new 'maint print xml-tdesc' command.
6636
fbf42f4e
AB
66372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 * target-descriptions.c (class tdesc_compatible_info): New class.
6640 (struct target_desc): Change type of compatible vector.
6641 (tdesc_compatible_p): Update for change in type of
6642 target_desc::compatible.
6643 (tdesc_compatible_info_list): New function.
6644 (tdesc_compatible_info_arch_name): New function.
6645 (tdesc_add_compatible): Update for change in type of
6646 target_desc::compatible.
6647 (print_c_tdesc::visit_pre): Likewise.
6648
20821f4e
AB
66492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6652 whitespace to underscore.
6653 (maint_print_c_tdesc_cmd): Use fake filename for target
6654 descriptions that came from the target.
6655 (_initialize_target_descriptions): Add filename command completion
6656 for 'maint print c-tdesc'.
6657
1fb5ee62
SM
66582020-06-23 Simon Marchi <simon.marchi@efficios.com>
6659
6660 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6661 lines.
6662
fc3ecb3e
SM
66632020-06-23 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6666 lines.
6667 (dwarf2_find_location_expression): Likewise.
6668 (call_site_parameter_matches): Likewise.
6669 (dwarf2_compile_expr_to_ax): Likewise.
6670 (disassemble_dwarf_expression): Likewise.
6671 (loclist_describe_location): Likewise.
6672
236ef034
PA
66732020-06-23 Pedro Alves <palves@redhat.com>
6674
6675 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6676 progspace-and-thread.h. Include scoped-mock-context.h instead.
6677 (register_to_value_test): Use scoped_mock_context.
6678 * regcache.c: Include "scoped-mock-context.h".
6679 (cooked_read_test): Don't error out if a target is already pushed.
6680 Use scoped_mock_context. Adjust.
6681 * scoped-mock-context.h: New file.
6682
39e7ecca
AB
66832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6686 initializer.
6687 (ada_language::is_string_type_p): New member function.
6688 * c-lang.c (c_language_data): Delete la_is_string_type_p
6689 initializer.
6690 (cplus_language_data): Likewise.
6691 (asm_language_data): Likewise.
6692 (minimal_language_data): Likewise.
6693 * d-lang.c (d_language_data): Likewise.
6694 * f-lang.c (f_is_string_type_p): Delete function, implementation
6695 moved to f_language::is_string_type_p.
6696 (f_language_data): Delete la_is_string_type_p initializer.
6697 (f_language::is_string_type_p): New member function,
6698 implementation from f_is_string_type_p.
6699 * go-lang.c (go_is_string_type_p): Delete function, implementation
6700 moved to go_language::is_string_type_p.
6701 (go_language_data): Delete la_is_string_type_p initializer.
6702 (go_language::is_string_type_p): New member function,
6703 implementation from go_is_string_type_p.
6704 * language.c (language_defn::is_string_type_p): Define new member
6705 function.
6706 (default_is_string_type_p): Make static, add comment copied from
6707 header file.
6708 (unknown_language_data): Delete la_is_string_type_p initializer.
6709 (unknown_language::is_string_type_p): New member function.
6710 (auto_language_data): Delete la_is_string_type_p initializer.
6711 (auto_language::is_string_type_p): New member function.
6712 * language.h (language_data): Delete la_is_string_type_p field.
6713 (language_defn::is_string_type_p): Declare new function.
6714 (default_is_string_type_p): Delete desclaration, move comment to
6715 definition.
6716 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6717 moved to m2_language::is_string_type_p.
6718 (m2_language_data): Delete la_is_string_type_p initializer.
6719 (m2_language::is_string_type_p): New member function,
6720 implementation from m2_is_string_type_p.
6721 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6722 initializer.
6723 * opencl-lang.c (opencl_language_data): Likewise.
6724 * p-lang.c (pascal_is_string_type_p): Delete function,
6725 implementation moved to pascal_language::is_string_type_p.
6726 (pascal_language_data): Delete la_is_string_type_p initializer.
6727 (pascal_language::is_string_type_p): New member function,
6728 implementation from pascal_is_string_type_p.
6729 * rust-lang.c (rust_is_string_type_p): Delete function,
6730 implementation moved to rust_language::is_string_type_p.
6731 (rust_language_data): Delete la_is_string_type_p initializer.
6732 (rust_language::is_string_type_p): New member function,
6733 implementation from rust_is_string_type_p.
6734 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6735 is_string_type_p.
6736
4ffc13fb
AB
67372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * ada-lang.c (ada_language_data): Delete la_print_typedef
6740 initializer.
6741 (ada_language::print_typedef): New member function.
6742 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6743 (cplus_language_data): Likewise.
6744 (asm_language_data): Likewise.
6745 (minimal_language_data): Likewise.
6746 * d-lang.c (d_language_data): Likewise.
6747 * f-lang.c (f_language_data): Likewise.
6748 (f_language::print_typedef): New member function.
6749 * go-lang.c (go_language_data): Delete la_print_typedef
6750 initializer.
6751 * language.c (language_defn::print_typedef): Define member
6752 function.
6753 (unknown_language_data): Delete la_print_typedef initializer.
6754 (unknown_language::print_typedef): New member function.
6755 (auto_language_data): Delete la_print_typedef initializer.
6756 (auto_language::print_typedef): New member function.
6757 * language.h (language_data): Delete la_print_typedef field.
6758 (language_defn::print_typedef): Declare new member function.
6759 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6760 (default_print_typedef): Delete declaration.
6761 * m2-lang.c (m2_language_data): Delete la_print_typedef
6762 initializer.
6763 (m2_language::print_typedef): New member function.
6764 * objc-lang.c (objc_language_data): Delete la_print_typedef
6765 initializer.
6766 * opencl-lang.c (opencl_language_data): Likewise.
6767 * p-lang.c (pascal_language_data): Likewise.
6768 (pascal_language::print_typedef): New member function.
6769 * rust-lang.c (rust_print_typedef): Delete function,
6770 implementation moved to rust_language::print_typedef.
6771 (rust_language): Delete la_print_typedef initializer.
6772 (rust_language::print_typedef): New member function,
6773 implementation from rust_print_typedef.
6774 * typeprint.c (default_print_typedef): Delete.
6775
d711ee67
AB
67762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6779 (ada_language::printstr): New member function.
6780 * c-lang.c (c_language_data): Delete la_printstr initializer.
6781 (cplus_language_data): Likewise.
6782 (asm_language_data): Likewise.
6783 (minimal_language_data): Likewise.
6784 * d-lang.c (d_language_data): Likewise.
6785 * f-lang.c (f_printstr): Rename to f_language::printstr.
6786 (f_language_data): Delete la_printstr initializer.
6787 (f_language::printstr): New member function, implementation from
6788 f_printstr.
6789 * go-lang.c (go_language_data): Delete la_printstr initializer.
6790 * language.c (language_defn::printstr): Define new member
6791 function.
6792 (unk_lang_printstr): Delete.
6793 (unknown_language_data): Delete la_printstr initializer.
6794 (unknown_language::printstr): New member function.
6795 (auto_language_data): Delete la_printstr initializer.
6796 (auto_language::printstr): New member function.
6797 * language.h (language_data): Delete la_printstr field.
6798 (language_defn::printstr): Declare new member function.
6799 (LA_PRINT_STRING): Update call to printstr.
6800 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6801 (m2_language_data): Delete la_printstr initializer.
6802 (m2_language::printstr): New member function, implementation from
6803 m2_printstr.
6804 * objc-lang.c (objc_language_data): Delete la_printstr
6805 initializer.
6806 * opencl-lang.c (opencl_language_data): Likewise.
6807 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6808 (pascal_language_data): Delete la_printstr initializer.
6809 (pascal_language::printstr): New member function, implementation
6810 from pascal_printstr.
6811 * p-lang.h (pascal_printstr): Delete declaration.
6812 * rust-lang.c (rust_printstr): Update header comment.
6813 (rust_language_data): Delete la_printstr initializer.
6814 (rust_language::printstr): New member function.
6815
52b50f2c
AB
68162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6819 (ada_language::printchar): New member function.
6820 * c-lang.c (c_language_data): Delete la_printchar initializer.
6821 (cplus_language_data): Likewise.
6822 (asm_language_data): Likewise.
6823 (minimal_language_data): Likewise.
6824 * d-lang.c (d_language_data): Likewise.
6825 * f-lang.c (f_printchar): Rename to f_language::printchar.
6826 (f_language_data): Delete la_printchar initializer.
6827 (f_language::printchar): New member function, implementation from
6828 f_printchar.
6829 * go-lang.c (go_language_data): Delete la_printchar initializer.
6830 * language.c (unk_lang_printchar): Delete.
6831 (language_defn::printchar): Define new member function.
6832 (unknown_language_data): Delete la_printchar initializer.
6833 (unknown_language::printchar): New member function.
6834 (auto_language_data): Delete la_printchar initializer.
6835 (auto_language::printchar): New member function.
6836 * language.h (language_data): Delete la_printchar field.
6837 (language_defn::printchar): Declare new member function.
6838 (LA_PRINT_CHAR): Update call to printchar.
6839 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6840 (m2_language::printchar): New member function.
6841 * objc-lang.c (objc_language_data): Delete la_printchar
6842 initializer.
6843 * opencl-lang.c (opencl_language_data): Likewise.
6844 * p-lang.c (pascal_language_data): Delete la_printchar
6845 initializer.
6846 (pascal_language::printchar): New member function.
6847 * rust-lang.c (rust_printchar): Rename to
6848 rust_language::printchar.
6849 (rust_language_data): Delete la_printchar initializer.
6850 (rust_language::printchar): New member function, implementation
6851 from rust_printchar.
6852
ec8cec5b
AB
68532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6856 (ada_language_data): Delete la_emitchar initializer.
6857 (ada_language::emitchar): New member function, implementation from
6858 emit_char.
6859 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6860 (cplus_language_data): Likewise.
6861 (asm_language_data): Likewise.
6862 (minimal_language_data): Likewise.
6863 * d-lang.c (d_language_data): Likewise.
6864 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6865 (f_language_data): Delete la_emitchar initializer.
6866 (f_language::emitchar): New member function, implementation from
6867 f_emit_char.
6868 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6869 * language.c (unk_lang_emit_char): Delete.
6870 (language_defn::emitchar): New member function definition.
6871 (unknown_language_data): Delete la_emitchar initializer.
6872 (unknown_language::emitchar): New member function.
6873 (auto_language_data): Delete la_emitchar initializer.
6874 (auto_language::emitchar): New member function.
6875 * language.h (language_data): Delete la_emitchar field.
6876 (language_defn::emitchar): New member field declaration.
6877 (LA_EMIT_CHAR): Update call to emitchar.
6878 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6879 (m2_language_data): Delete la_emitchar initializer.
6880 (m2_language::emitchar): New member function, implementation from
6881 m2_emit_char.
6882 * objc-lang.c (objc_language_data): Delete la_emitchar
6883 initializer.
6884 * opencl-lang.c (opencl_language_data): Likewise.
6885 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6886 (pascal_language_data): Delete la_emitchar initializer.
6887 (pascal_language::emitchar): New member function, implementation
6888 from pascal_emit_char.
6889 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6890 (rust_language_data): Delete la_emitchar initializer.
6891 (rust_language::emitchar): New member function, implementation
6892 from rust_emitchar.
6893
1bf9c363
AB
68942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6897 (ada_language_data): Delete la_post_parser initializer.
6898 (ada_language::post_parser): New member function.
6899 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6900 (cplus_language_data): Likewise.
6901 (asm_language_data): Likewise.
6902 (minimal_language_data): Likewise.
6903 * d-lang.c (d_language_data): Likewise.
6904 * f-lang.c (f_language_data): Likewise.
6905 * go-lang.c (go_language_data): Likewise.
6906 * language.c (unknown_language_data): Likewise.
6907 (auto_language_data): Likewise.
6908 * language.h (language_data): Delete la_post_parser field.
6909 (language_defn::post_parser): New member function.
6910 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6911 * objc-lang.c (objc_language_data): Likewise.
6912 * opencl-lang.c (opencl_language_data): Likewise.
6913 * p-lang.c (pascal_language_data): Likewise.
6914 * parse.c (parse_exp_in_context): Update call to post_parser.
6915 (null_post_parser): Delete definition.
6916 * parser-defs.h (null_post_parser): Delete declaration.
6917 * rust-lang.c (rust_language_data): Delete la_post_parser
6918 initializer.
6919
87afa652
AB
69202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * ada-lang.c (parse): Rename to ada_language::parser.
6923 (ada_language_data): Delete la_parser initializer.
6924 (ada_language::parser): New member function, implementation from
6925 parse.
6926 * c-lang.c (c_language_data): Delete la_parser initializer.
6927 (cplus_language_data): Likewise.
6928 (asm_language_data): Likewise.
6929 (minimal_language_data): Likewise.
6930 * d-lang.c (d_language_data): Likewise.
6931 (d_language::parser): New member function.
6932 * f-lang.c (f_language_data): Delete la_parser initializer.
6933 (f_language::parser): New member function.
6934 * go-lang.c (go_language_data): Delete la_parser initializer.
6935 (go_language::parser): New member function.
6936 * language.c (unk_lang_parser): Delete.
6937 (language_defn::parser): Define new member function.
6938 (unknown_language_data): Delete la_parser initializer.
6939 (unknown_language::parser): New member function.
6940 (auto_language_data): Delete la_parser initializer.
6941 (auto_language::parser): New member function.
6942 * language.h (language_data): Delete la_parser field.
6943 (language_defn::parser): Declare new member function.
6944 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6945 (m2_language::parser): New member function.
6946 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6947 * opencl-lang.c (opencl_language_data): Likewise.
6948 * p-lang.c (pascal_language_data): Likewise.
6949 (pascal_language::parser): New member function.
6950 * parse.c (parse_exp_in_context): Update call to parser.
6951 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6952 (rust_language::parser): New member function.
6953
37825800
AB
69542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 * top.c (print_gdb_configuration): Print --with-python-libdir
6957 configuration value.
6958
5b860c93
PW
69592020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6960
6961 * NEWS: Mention change to the alias command.
6962
cf00cd6f
PW
69632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6964
6965 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6966 (alias_command_completer)
6967 (make_alias_options_def_group): New functions.
6968 (alias_opts, alias_option_defs): New struct and array.
6969 (alias_usage_error): Update usage.
6970 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6971 Use option framework.
6972 (_initialize_cli_cmds): Update alias command help.
6973 Update aliases command help.
6974 (show_user):
6975 Add NULL for new default_args lookup_cmd argument.
6976 (valid_command_p): Rename to validate_aliased_command.
6977 Add NULL for new default_args lookup_cmd argument. Verify that the
6978 aliased_command has no default args.
6979 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6980 (lookup_cmd_1, lookup_cmd): New argument default_args.
6981 (add_alias_cmd):
6982 Add NULL for new default_args lookup_cmd argument.
6983 (print_help_for_command): Show default args under the layout
6984 alias some_alias = some_aliased_cmd some_alias_default_arg.
6985 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6986 xfree default_args in destructor.
6987 * cli/cli-script.c (process_next_line, do_define_command):
6988 Add NULL for new default_args lookup_cmd argument.
6989 * command.h: Declare new default_args argument in lookup_cmd
6990 and lookup_cmd_1.
6991 * completer.c (complete_line_internal_1):
6992 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6993 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6994 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6995 Likewise.
6996 * infcmd.c (_initialize_infcmd): Likewise.
6997 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6998 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6999 * python/py-param.c (add_setshow_generic): Likewise.
7000 * remote.c (_initialize_remote): Likewise.
7001 * top.c (execute_command): Prepend default_args if command has some.
7002 (set_verbose):
7003 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7004 * tracepoint.c (validate_actionline, encode_actions_1):
7005 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7006
bd920864
TBA
70072020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7008
7009 * jit.c (jit_read_descriptor): Use bool as the return type.
7010 (jit_breakpoint_re_set_internal): Use bool as the return type.
7011 Invert the return value logic; return true if the jit breakpoint
7012 has been successfully initialized.
7013 (jit_inferior_init): Update the call to
7014 jit_breakpoint_re_set_internal.
7015
f8098322
PA
70162020-06-22 Pedro Alves <palves@redhat.com>
7017
7018 PR gdb/25939
7019 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7020 Use the current inferior instead. Don't return
7021 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7022 wait again.
7023 * sol-thread.c (sol_thread_target::wait): Don't reference
7024 inferior_ptid.
7025 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7026 (sol_update_thread_list_callback): Use the current inferior's pid
7027 instead of inferior_ptid.
7028
196535a6
RO
70292020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7030
7031 * procfs.c: Cleanup many comments.
7032
7033 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7034 (AFTER_WATCHFLAG): Replace by value.
7035
7036 (MAIN_PROC_NAME_FORMAT): Inline ...
7037 (create_procinfo): ... here.
7038
7039 (procfs_debug_inferior): Remove SYS_exec handling.
7040 (syscall_is_exec): Likewise.
7041 (procfs_set_exec_trap): Likewise.
7042
7043 (syscall_is_lwp_exit): Inline in callers.
7044 (syscall_is_exit): Likewise.
7045 (syscall_is_exec): Likewise.
7046 (syscall_is_lwp_create): Likewise.
7047
7048 (invalidate_cache): Remove #if 0 code.
7049
7050 (make_signal_thread_runnable): Remove.
7051 (procfs_target::resume): Remove #if 0 code.
7052
cf6f3e86
RO
70532020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7054
7055 PR gdb/25939
7056 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7057 call ...
7058 (procfs_target::create_inferior): ... here.
7059
48e9cc84
PW
70602020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7061
7062 * exec.c (validate_exec_file): Ensure the build-id is up to
7063 date by calling reopen_exec_file (that checks file timestamp
7064 to decide to re-read the file).
7065
3922b302
PA
70662020-06-18 Pedro Alves <palves@redhat.com>
7067
7068 PR gdb/25412
7069 * gdbthread.h (delete_thread, delete_thread_silent)
7070 (find_thread_ptid): Update comments.
7071 * thread.c (current_thread_): New global.
7072 (is_current_thread): Move higher, and reimplement.
7073 (inferior_thread): Reimplement.
7074 (set_thread_exited): Use bool. Add assertions.
7075 (add_thread_silent): Simplify thread-reuse handling by always
7076 calling delete_thread.
7077 (delete_thread): Remove intro comment.
7078 (find_thread_ptid): Skip exited threads.
7079 (switch_to_thread_no_regs): Write to current_thread_.
7080 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7081 INFERIOR_PTID. Clear current_thread_.
7082
6dbdab44
PA
70832020-06-18 Pedro Alves <palves@redhat.com>
7084
7085 * aix-thread.c (pd_update): Use switch_to_thread.
7086
2da4b788
PA
70872020-06-18 Pedro Alves <palves@redhat.com>
7088
7089 * ravenscar-thread.c (ravenscar_thread_target): Update.
7090 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7091 (ravenscar_thread_target::add_active_thread): ... this. Don't
7092 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7093 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7094
50838d1b
PA
70952020-06-18 Pedro Alves <palves@redhat.com>
7096
7097 * nat/windows-nat.c (current_windows_thread): Remove.
7098 * nat/windows-nat.h (current_windows_thread): Remove.
7099 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7100 Adjust.
7101 (display_selectors): Adjust to fetch the current
7102 windows_thread_info based on inferior_ptid.
7103 (fake_create_process): No longer write to current_windows_thread.
7104 (windows_nat_target::get_windows_debug_event):
7105 Don't set inferior_ptid or current_windows_thread.
7106 (windows_nat_target::wait): Adjust to not rely on
7107 current_windows_thread.
7108 (do_initial_windows_stuff): Now a method of windows_nat_target.
7109 Switch to the last_ptid thread.
7110 (windows_nat_target::attach): Adjust.
7111 (windows_nat_target::detach): Use switch_to_no_thread instead of
7112 writing to inferior_ptid directly.
7113 (windows_nat_target::create_inferior): Adjust.
7114
31ce04e9
PA
71152020-06-18 Pedro Alves <palves@redhat.com>
7116
7117 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7118
1ee1a363
PA
71192020-06-18 Pedro Alves <palves@redhat.com>
7120
7121 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7122 after creating it, instead of writing to inferior_ptid. Don't
7123 write to inferior_ptid.
7124
6d350754
PA
71252020-06-18 Pedro Alves <palves@redhat.com>
7126
7127 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7128
5d971d48
PA
71292020-06-18 Pedro Alves <palves@redhat.com>
7130
7131 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7132 it, instead of writing to inferior_ptid.
7133
86e57d1b
PA
71342020-06-18 Pedro Alves <palves@redhat.com>
7135
7136 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7137 to inferior_ptid.
7138
f2e1c129
PA
71392020-06-18 Pedro Alves <palves@redhat.com>
7140
7141 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7142 instead of writing to inferior_ptid directly.
7143
60db1b85
PA
71442020-06-18 Pedro Alves <palves@redhat.com>
7145
7146 * corelow.c (core_target::close): Use switch_to_no_thread instead
7147 of writing to inferior_ptid directly.
7148 (add_to_thread_list, core_target_open): Use switch_to_thread
7149 instead of writing to inferior_ptid directly.
7150
fe7d6a8d
PA
71512020-06-18 Pedro Alves <palves@redhat.com>
7152
7153 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7154 inferior_ptid.
7155 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7156 inferior_ptid.
7157 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7158 inferior_ptid directly.
7159 (darwin_nat_target::init_thread_list): Switch to thread, instead
7160 of writing to inferior_ptid.
7161 (darwin_nat_target::attach): Don't write to inferior_ptid.
7162 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7163
975f8708
PA
71642020-06-18 Pedro Alves <palves@redhat.com>
7165
7166 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7167 thread.
7168 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7169 Instead use switch_to_thread.
7170 (gnu_nat_target::detach): Use switch_to_no_thread
7171 instead of writing to inferior_ptid directly. Used passed-in
7172 inferior instead of looking up the inferior by pid.
7173
1a204730
PA
71742020-06-18 Pedro Alves <palves@redhat.com>
7175
7176 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7177 inferior_ptid.
7178
ebe84f23
PA
71792020-06-18 Pedro Alves <palves@redhat.com>
7180
7181 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7182 inferior_ptid.
7183 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7184 thread.
7185 (nto_procfs_target::detach): Avoid referencing
7186 inferior_ptid. Use switch_to_no_thread instead of writing to
7187 inferior_ptid directly.
7188 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7189 instead of writing to inferior_ptid directly.
7190 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7191 to thread.
7192
191f02e5
PA
71932020-06-18 Pedro Alves <palves@redhat.com>
7194
7195 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7196 after creating it, instead of writing to inferior_ptid.
7197 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7198 to inferior_ptid directly.
7199 (gdbsim_target::wait): Don't write to inferior_ptid.
7200
0ac55310
PA
72012020-06-18 Pedro Alves <palves@redhat.com>
7202
7203 * remote.c (remote_target::remote_notice_new_inferior): Use
7204 switch_to_thread instead of writing to inferior_ptid directly.
7205 (remote_target::add_current_inferior_and_thread): Use
7206 switch_to_no_thread instead of writing to inferior_ptid directly.
7207 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7208 and switch_to_thread instead of using set_current_inferior or
7209 writing to inferior_ptid directly.
7210
5233f39b
PA
72112020-06-18 Pedro Alves <palves@redhat.com>
7212
7213 * tracectf.c (ctf_target_open): Switch to added thread instead of
7214 writing to inferior_ptid directly.
7215 (ctf_target::close): Use switch_to_no_thread instead of writing to
7216 inferior_ptid directly.
7217
087e161b
PA
72182020-06-18 Pedro Alves <palves@redhat.com>
7219
7220 * tracefile-tfile.c (tfile_target_open): Don't write to
7221 inferior_ptid directly, instead switch to added thread.
7222 (tfile_target::close): Use switch_to_no_thread instead of writing
7223 to inferior_ptid directly.
7224
7fb43e53
PA
72252020-06-18 Pedro Alves <palves@redhat.com>
7226
7227 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7228 (procfs_target::detach): Use switch_to_no_thread
7229 instead of writing to inferior_ptid directly.
7230 (do_attach): Change return type to void. Switch to the added
7231 thread.
7232 (procfs_target::create_inferior): Switch to the added thread.
7233 (procfs_do_thread_registers): Don't write to inferior_ptid.
7234
18493a00
PA
72352020-06-18 Pedro Alves <palves@redhat.com>
7236
7237 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7238 of writing to inferior_ptid.
7239 (scoped_restore_exited_inferior): Delete.
7240 (handle_vfork_child_exec_or_exit): Simplify using
7241 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7242 instead of writing to inferior_ptid.
7243 (THREAD_STOPPED_BY): Delete.
7244 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7245 (thread_stopped_by_hw_breakpoint): Delete.
7246 (save_waitstatus): Use
7247 scoped_restore_current_thread+switch_to_thread, and call
7248 target_stopped_by_watchpoint instead of
7249 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7250 instead of thread_stopped_by_sw_breakpoint, and
7251 target_stopped_by_hw_breakpoint instead of
7252 thread_stopped_by_hw_breakpoint.
7253 (handle_inferior_event)
7254 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7255 inferior_ptid directly, nor
7256 set_current_inferior/set_current_program_space. Use
7257 switch_to_thread / switch_to_inferior_no_thread instead.
7258
a0776b13
PA
72592020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7262 instead of writing to inferior_ptid.
7263
6155c136
PA
72642020-06-18 Pedro Alves <palves@redhat.com>
7265
7266 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7267 added thread.
7268 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7269 to the added thread.
7270 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7271 instead of writing to inferior_ptid.
7272
c5316fc6
PA
72732020-06-18 Pedro Alves <palves@redhat.com>
7274
7275 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7276 (register_to_value_test): Mock a program_space too. Heap-allocate
7277 the address space. Don't write to inferior_ptid. Use
7278 switch_to_thread instead.
7279
8df01799
PA
72802020-06-18 Pedro Alves <palves@redhat.com>
7281
7282 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7283 Delete.
7284 (find_signalled_thread()): New, factored out from
7285 linux_make_corefile_notes and adjusted to handle exited threads.
7286 (linux_make_corefile_notes): Adjust to use the new
7287 find_signalled_thread.
7288
41792d68
PA
72892020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7292 of saving/restoring inferior_ptid.
7293
612f258a
TT
72942020-06-17 Tom Tromey <tom@tromey.com>
7295
7296 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7297 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7298 declare.
7299 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7300
efb763a5
SM
73012020-06-15 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7304 of partial symtabs.
7305
2951f6c0
SM
73062020-06-17 Simon Marchi <simon.marchi@efficios.com>
7307
7308 * regformats/reg-arm.dat: Remove.
7309 * regformats/reg-bfin.dat: Remove.
7310 * regformats/reg-cris.dat: Remove.
7311 * regformats/reg-crisv32.dat: Remove.
7312 * regformats/reg-m32r.dat: Remove.
7313 * regformats/reg-tilegx.dat: Remove.
7314 * regformats/reg-tilegx32.dat: Remove.
7315
7d458ea5
SM
73162020-06-17 Simon Marchi <simon.marchi@efficios.com>
7317
7318 * features/Makefile (WHICH): Remove arm files.
7319 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7320 * regformats/arm/arm-with-neon.dat: Remove.
7321 * regformats/arm/arm-with-vfpv2.dat: Remove.
7322 * regformats/arm/arm-with-vfpv3.dat: Remove.
7323
3af96c0d
SM
73242020-06-17 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * features/Makefile (XMLTOC): Remove rx.xml.
7327
b25e22fd
PA
73282020-06-17 Pedro Alves <palves@redhat.com>
7329
7330 * gdbthread.h (thread_control_state) <trap_expected> Update
7331 comments.
7332
a78a19b1
AB
73332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7334
7335 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7336 ada_language::lookup_symbol_nonlocal.
7337 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7338 (ada_language::lookup_symbol_nonlocal): New member function,
7339 implementation from ada_lookup_symbol_nonlocal.
7340 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7341 initializer.
7342 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7343 initializer.
7344 (cplus_language::lookup_symbol_nonlocal): New member function.
7345 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7346 (minimal_language_data) Likewise.
7347 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7348 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7349 initializer.
7350 (d_language::lookup_symbol_nonlocal): New member function.
7351 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7352 initializer.
7353 (f_language::lookup_symbol_nonlocal): New member function.
7354 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7355 initializer.
7356 * language.c (unknown_language_data): Likewise.
7357 (auto_language_data): Likewise.
7358 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7359 field.
7360 (language_defn::lookup_symbol_nonlocal): New member function.
7361 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7362 initializer.
7363 * objc-lang.c (objc_language_data): Likewise.
7364 * opencl-lang.c (opencl_language_data): Likewise.
7365 * p-lang.c (pascal_language_data): Likewise.
7366 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7367 rust_language::lookup_symbol_nonlocal.
7368 (rust_language_data): Delete la_lookup_symbol_nonlocal
7369 initializer.
7370 (rust_language::lookup_symbol_nonlocal): New member function,
7371 implementation from rust_lookup_symbol_nonlocal.
7372 * symtab.c (lookup_symbol_aux): Update call to
7373 lookup_symbol_nonlocal.
7374 (basic_lookup_symbol_nonlocal): Rename to...
7375 (language_defn::lookup_symbol_nonlocal): ...this, and update
7376 header comment. Remove language_defn parameter, and replace with
7377 uses of `this'.
7378 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7379
ebe2334e
AB
73802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7381
7382 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7383 initializer.
7384 (ada_language::value_print_inner): New member function.
7385 * c-lang.c (c_language_data): Delete la_value_print_inner
7386 initializer.
7387 (cplus_language_data): Likewise.
7388 (asm_language_data): Likewise.
7389 (minimal_language_data): Likewise.
7390 * d-lang.c (d_language_data): Likewise.
7391 (d_language::value_print_inner): New member function.
7392 * f-lang.c (f_language_data): Delete la_value_print_inner
7393 initializer.
7394 (f_language::value_print_inner): New member function.
7395 * f-lang.h (f_value_print_innner): Rename to...
7396 (f_value_print_inner): ...this (note spelling of 'inner').
7397 * f-valprint.c (f_value_print_innner): Rename to...
7398 (f_value_print_inner): ...this (note spelling of 'inner').
7399 * go-lang.c (go_language_data): Delete la_value_print_inner
7400 initializer.
7401 (go_language::value_print_inner): New member function.
7402 * language.c (language_defn::value_print_inner): Define new member
7403 function.
7404 (unk_lang_value_print_inner): Delete.
7405 (unknown_language_data): Delete la_value_print_inner initializer.
7406 (unknown_language::value_print_inner): New member function.
7407 (auto_language_data): Delete la_value_print_inner initializer.
7408 (auto_language::value_print_inner): New member function.
7409 * language.h (language_data): Delete la_value_print_inner field.
7410 (language_defn::value_print_inner): Delcare new member function.
7411 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7412 initializer.
7413 (m2_language::value_print_inner): New member function.
7414 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7415 initializer.
7416 * opencl-lang.c (opencl_language_data): Likewise.
7417 * p-lang.c (pascal_language_data): Likewise.
7418 (pascal_language::value_print_inner): New member function.
7419 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7420 initializer.
7421 (rust_language::value_print_inner): New member function.
7422 * valprint.c (do_val_print): Update call to value_print_inner.
7423
a1d1fa3e
AB
74242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7425
7426 * ada-lang.c (ada_language_data): Delete la_value_print
7427 initializer.
7428 (ada_language::value_print): New member function.
7429 * c-lang.c (c_language_data): Delete la_value_print initializer.
7430 (cplus_language_data): Likewise.
7431 (asm_language_data): Likewise.
7432 (minimal_language_data): Likewise.
7433 * d-lang.c (d_language_data): Likewise.
7434 * f-lang.c (f_language_data): Likewise.
7435 * go-lang.c (go_language_data): Likewise.
7436 * language.c (unk_lang_value_print): Delete.
7437 (language_defn::value_print): Define new member function.
7438 (unknown_language_data): Delete la_value_print initializer.
7439 (unknown_language::value_print): New member function.
7440 (auto_language_data): Delete la_value_print initializer.
7441 (auto_language::value_print): New member function.
7442 * language.h (language_data): Delete la_value_print field.
7443 (language_defn::value_print): Declare new member function.
7444 (LA_VALUE_PRINT): Update call to value_print.
7445 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7446 * objc-lang.c (objc_language_data): Likewise.
7447 * opencl-lang.c (opencl_language_data): Likewise.
7448 * p-lang.c (pascal_language_data): Likewise.
7449 (pascal_language::value_print): New member function.
7450 * rust-lang.c (rust_language_data): Delete la_value_print
7451 initializer.
7452
f16a9f57
AB
74532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7454
7455 * ada-lang.c (ada_watch_location_expression): Rename to
7456 ada_language::watch_location_expression.
7457 (ada_language_data): Delete la_watch_location_expression
7458 initializer.
7459 (ada_language::watch_location_expression): New member function,
7460 implementation from ada_watch_location_expression.
7461 * breakpoint.c (watch_command_1): Update call to
7462 watch_location_expression.
7463 * c-lang.c (c_watch_location_expression): Rename to
7464 language_defn::watch_location_expression.
7465 (c_language_data): Delete la_watch_location_expression
7466 initializer.
7467 (cplus_language_data): Likewise.
7468 (asm_language_data): Likewise.
7469 (minimal_language_data): Likewise.
7470 * c-lang.h (c_watch_location_expression): Delete declaration.
7471 * d-lang.c (d_language_data): Delete la_watch_location_expression
7472 initializer.
7473 * f-lang.c (f_language_data): Likewise.
7474 * go-lang.c (go_language_data): Likewise.
7475 * language.c (language_defn::watch_location_expression): Member
7476 function implementation from c_watch_location_expression.
7477 (unknown_language_data): Delete la_watch_location_expression
7478 initializer.
7479 (auto_language_data): Likewise.
7480 * language.h (language_data): Delete la_watch_location_expression
7481 field.
7482 (language_defn::watch_location_expression): Declare new member
7483 function.
7484 * m2-lang.c (m2_language_data): Delete
7485 la_watch_location_expression initializer.
7486 * objc-lang.c (objc_language_data): Likewise.
7487 * opencl-lang.c (opencl_language_data): Likewise.
7488 * p-lang.c (pascal_language_data): Likewise.
7489 * rust-lang.c (rust_watch_location_expression): Rename to
7490 rust_language::watch_location_expression.
7491 (rust_language_data): Delete la_watch_location_expression
7492 initializer.
7493 (rust_language::watch_location_expression): New member function,
7494 implementation from rust_watch_location_expression.
7495
7e56227d
AB
74962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7497
7498 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7499 ada_language::collect_symbol_completion_matches.
7500 (ada_language_data): Delete la_collect_symbol_completion_matches
7501 initializer.
7502 (ada_language::collect_symbol_completion_matches): New member
7503 function, implementation from
7504 ada_collect_symbol_completion_matches.
7505 * c-lang.c (c_language_data): Delete
7506 la_collect_symbol_completion_matches initializer.
7507 (cplus_language_data): Likewise.
7508 (asm_language_data): Likewise.
7509 (minimal_language_data): Likewise.
7510 * d-lang.c (d_language_data): Likewise.
7511 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7512 f_language::collect_symbol_completion_matches.
7513 (f_language_data): Delete la_collect_symbol_completion_matches
7514 initializer.
7515 (f_language::collect_symbol_completion_matches) New member
7516 function, implementation from f_collect_symbol_completion_matches.
7517 * go-lang.c (go_language_data): Delete
7518 la_collect_symbol_completion_matches initializer.
7519 * language.c (unknown_language_data): Likewise.
7520 (auto_language_data): Likewise.
7521 * language.h (language_data): Delete
7522 la_collect_symbol_completion_matches field.
7523 (language_defn::collect_symbol_completion_matches): New member
7524 function.
7525 * m2-lang.c (m2_language_data): Delete
7526 la_collect_symbol_completion_matches initializer.
7527 * objc-lang.c (objc_language_data): Likewise.
7528 * opencl-lang.c (opencl_language_data): Likewise.
7529 * p-lang.c (pascal_language_data): Likewise.
7530 * rust-lang.c (rust_language_data): Likewise.
7531 * symtab.c (default_collect_symbol_completion_matches): Delete.
7532 (collect_symbol_completion_matches): Update call to
7533 collect_symbol_completion_matches.
7534 (collect_symbol_completion_matches_type): Likewise.
7535 * symtab.h (default_collect_symbol_completion_matches): Delete
7536 declaration.
7537
53fc67f8
AB
75382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7539
7540 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7541 (ada_language_data): Delete la_word_break_characters initializer.
7542 (ada_language::word_break_characters): New member function.
7543 * c-lang.c (c_language_data): Delete la_word_break_characters
7544 initializer.
7545 (cplus_language_data): Likewise.
7546 (asm_language_data): Likewise.
7547 (minimal_language_data): Likewise.
7548 * completer.c: Update global comment.
7549 (advance_to_expression_complete_word_point): Update call to
7550 word_break_characters.
7551 (complete_files_symbols): Likewise.
7552 (complete_line_internal_1): Likewise.
7553 (default_completer_handle_brkchars): Likewise.
7554 (skip_quoted_chars): Likewise.
7555 * d-lang.c (d_language_data): Delete la_word_break_characters
7556 initializer.
7557 * f-lang.c (f_word_break_characters): Delete.
7558 (f_language_data): Delete la_word_break_characters initializer.
7559 (f_language::word_break_characters): New member function.
7560 * go-lang.c (go_language_data): Delete la_word_break_characters
7561 initializer.
7562 * language.c (unknown_language_data): Likewise.
7563 (auto_language_data): Likewise.
7564 * language.h (default_word_break_characters): Move declaration to
7565 earlier in the file.
7566 (language_data): Delete la_word_break_characters field.
7567 (language_defn::word_break_characters): New member function.
7568 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7569 initializer.
7570 * objc-lang.c (objc_language_data): Likewise.
7571 * opencl-lang.c (opencl_language_data): Likewise.
7572 * p-lang.c (pascal_language_data): Likewise.
7573 * rust-lang.c (rust_language_data): Likewise.
7574
c9debfb9
AB
75752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7576
7577 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7578 (ada_language_data): Delete la_get_symbol_name_matcher
7579 initializer.
7580 (language_defn::get_symbol_name_matcher_inner): New member
7581 function.
7582 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7583 initializer.
7584 (cplus_language_data): Likewise.
7585 (cplus_language::get_symbol_name_matcher_inner): New member
7586 function.
7587 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7588 (minimal_language_data): Likewise.
7589 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7590 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7591 initializer.
7592 * dictionary.c (iter_match_first_hashed): Update call to
7593 get_symbol_name_matcher.
7594 (iter_match_next_hashed): Likewise.
7595 (iter_match_next_linear): Likewise.
7596 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7597 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7598 initializer.
7599 (f_language::get_symbol_name_matcher_inner): New member function.
7600 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7601 initializer.
7602 * language.c (default_symbol_name_matcher): Update header comment,
7603 make static.
7604 (language_defn::get_symbol_name_matcher): New definition.
7605 (language_defn::get_symbol_name_matcher_inner): Likewise.
7606 (get_symbol_name_matcher): Delete.
7607 (unknown_language_data): Delete la_get_symbol_name_matcher
7608 initializer.
7609 (auto_language_data): Likewise.
7610 * language.h (language_data): Delete la_get_symbol_name_matcher
7611 field.
7612 (language_defn::get_symbol_name_matcher): New member function.
7613 (language_defn::get_symbol_name_matcher_inner): Likewise.
7614 (default_symbol_name_matcher): Delete declaration.
7615 * linespec.c (find_methods): Update call to
7616 get_symbol_name_matcher.
7617 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7618 initializer.
7619 * minsyms.c (lookup_minimal_symbol): Update call to
7620 get_symbol_name_matcher.
7621 (iterate_over_minimal_symbols): Likewise.
7622 * objc-lang.c (objc_language_data): Delete
7623 la_get_symbol_name_matcher initializer.
7624 * opencl-lang.c (opencl_language_data): Likewise.
7625 * p-lang.c (pascal_language_data): Likewise.
7626 * psymtab.c (psymbol_name_matches): Update call to
7627 get_symbol_name_matcher.
7628 * rust-lang.c (rust_language_data): Delete
7629 la_get_symbol_name_matcher initializer.
7630 * symtab.c (symbol_matches_search_name): Update call to
7631 get_symbol_name_matcher.
7632 (compare_symbol_name): Likewise.
7633
9a49ad8c
AB
76342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7635
7636 * ada-lang.c (ada_language_data): Delete la_compute_program
7637 initializer.
7638 * c-lang.c (c_language_data): Likewise.
7639 (c_language::compute_program): New member function.
7640 (cplus_language_data): Delete la_compute_program initializer.
7641 (cplus_language::compute_program): New member function.
7642 (asm_language_data): Delete la_compute_program initializer.
7643 (minimal_language_data): Likewise.
7644 * c-lang.h (c_compute_program): Update comment.
7645 (cplus_compute_program): Likewise.
7646 * compile/compile-c-support.c (c_compute_program): Likewise.
7647 (cplus_compute_program): Likewise.
7648 * compile/compile.c (compile_to_object): Update call to
7649 la_compute_program.
7650 * d-lang.c (d_language_data): Delete la_compute_program
7651 initializer.
7652 * f-lang.c (f_language_data): Likewise.
7653 * go-lang.c (go_language_data): Likewise.
7654 * language.c (unknown_language_data): Likewise.
7655 (auto_language_data): Likewise.
7656 * language.h (language_data): Delete la_compute_program field.
7657 (language_defn::compute_program): New member function.
7658 * m2-lang.c (m2_language_data): Delete la_compute_program
7659 initializer.
7660 * objc-lang.c (objc_language_data): Likewise.
7661 * opencl-lang.c (opencl_language_data): Likewise.
7662 * p-lang.c (pascal_language_data): Likewise.
7663 * rust-lang.c (rust_language_data): Likewise.
7664
eff93b4d
AB
76652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7666
7667 * ada-lang.c (ada_language_data) Delete
7668 la_class_name_from_physname initializer.
7669 * c-lang.c (c_language_data): Likewise.
7670 (cplus_language_data): Likewise.
7671 (cplus_language::class_name_from_physname): New member function.
7672 (asm_language_data): Delete la_class_name_from_physname
7673 initializer.
7674 (minimal_language_data): Likewise.
7675 * d-lang.c (d_language_data): Likewise.
7676 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7677 method on language_defn class.
7678 (guess_full_die_structure_name): Likewise.
7679 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7680 initializer.
7681 * go-lang.c (go_language_data): Likewise.
7682 * language.c (language_class_name_from_physname): Delete.
7683 (unk_lang_class_name): Delete.
7684 (unknown_language_data): Delete la_class_name_from_physname
7685 initializer.
7686 (auto_language_data): Likewise.
7687 * language.h (language_data): Delete la_class_name_from_physname
7688 field.
7689 (language_defn::class_name_from_physname): New function.
7690 (language_class_name_from_physname): Delete declaration.
7691 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7692 initializer.
7693 * objc-lang.c (objc_language_data): Likewise.
7694 * opencl-lang.c (opencl_language_data): Likewise.
7695 * p-lang.c (pascal_language_data): Likewise.
7696 * rust-lang.c (rust_language_data): Likewise.
7697
de543742
TT
76982020-06-16 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-data.h (STATUS_NAME): New macro.
7701 * tui/tui-layout.c (tui_remove_some_windows)
7702 (initialize_known_windows, tui_register_window)
7703 (tui_layout_split::remove_windows, initialize_layouts)
7704 (tui_new_layout_command): Don't use hard-coded window names.
7705
a350efd4
TT
77062020-06-16 Tom Tromey <tom@tromey.com>
7707
7708 PR tui/25348:
7709 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7710 tui_initialize_readline. Only run once. Call rl_initialize.
7711 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7712 tui_initialize_readline.
7713 * tui/tui-io.c (tui_setup_io): Call
7714 tui_ensure_readline_initialized.
7715 * tui/tui-interp.c (tui_interp::init): Update.
7716
39ec0490
TT
77172020-06-16 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7720 Also preserve the status window.
7721
d2d1ea20
TT
77222020-06-16 Tom Tromey <tom@tromey.com>
7723
7724 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7725 where m_window==nullptr.
7726
66920317
TT
77272020-06-15 Tom Tromey <tromey@adacore.com>
7728
7729 * windows-nat.c (windows_nat::handle_output_debug_string):
7730 Update.
7731 (windows_nat::handle_ms_vc_exception): Update.
7732 * target.h (target_read_string): Change API.
7733 * target.c (target_read_string): Change API.
7734 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7735 Update.
7736 * solib-frv.c (frv_current_sos): Update.
7737 * solib-dsbt.c (dsbt_current_sos): Update.
7738 * solib-darwin.c (darwin_current_sos): Update.
7739 * linux-thread-db.c (inferior_has_bug): Update.
7740 * expprint.c (print_subexp_standard): Update.
7741 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7742 (ada_exception_message_1): Update.
7743
a5d871dd
TT
77442020-06-15 Tom Tromey <tromey@adacore.com>
7745
7746 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7747
670e35fa
TT
77482020-06-15 Tom Tromey <tromey@adacore.com>
7749
7750 * valprint.c (read_string): Update comment.
7751 * target.c (MIN): Remove.
7752 (target_read_string): Rewrite.
7753
f5272a3b
TT
77542020-06-15 Tom Tromey <tromey@adacore.com>
7755
7756 * corefile.c (read_memory_string): Remove.
7757 * ada-valprint.c (ada_value_print_ptr): Update.
7758 * ada-lang.h (ada_tag_name): Change return type.
7759 * ada-lang.c (type_from_tag): Update.
7760 (ada_tag_name_from_tsd): Change return type. Use
7761 target_read_string.
7762 (ada_tag_name): Likewise.
7763 * gdbcore.h (read_memory_string): Don't declare.
7764
2c074f49
HD
77652020-06-14 Hannes Domani <ssbssa@yahoo.de>
7766
7767 * symtab.c (rbreak_command): Ignore Windows drive colon.
7768
6a17d503
SM
77692020-06-12 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * NEWS: Mention removed GDBserver host support.
7772
453c733f
NC
77732020-06-12 Nelson Chu <nelson.chu@sifive.com>
7774
7775 * features/riscv/rebuild-csr-xml.sh: Updated.
7776
2b4e6a3f
TT
77772020-06-11 Tom Tromey <tom@tromey.com>
7778
7779 PR gdb/18318:
7780 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7781
4412332f
JG
77822020-06-09 Jonny Grant <jg@jguk.org>
77832020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7784
7785 * main.c (captured_main_1): Don't print new line after help.
7786 (print_gdb_help): add mailing list and IRC channel information
7787 to --help. Add new lines between items in the footer. Remove
7788 quotes around bug url.
7789
2f33032a
KS
77902020-06-11 Keith Seitz <keiths@redhat.com>
7791
7792 PR gdb/21356
7793 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7794 Resolve typedefs for type length calculations.
7795
7ab96794
TV
77962020-06-10 Tom de Vries <tdevries@suse.de>
7797
7798 PR ada/24713
7799 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7800 (write_psymbols): Enable .gdb_index for ada.
7801 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7802 ada.
7803
e5f3ece2
TV
78042020-06-10 Tom de Vries <tdevries@suse.de>
7805
7806 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7807 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7808 namei" instead of "const char *name" argument.
7809 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7810 dw2_symtab_iter_init.
7811
940da03e
SM
78122020-06-08 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7815 to use type::field and field::type instead.
7816
b6cdac4b
SM
78172020-06-08 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7820 to use field::type instead.
7821
5d14b6e5
SM
78222020-06-08 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * gdbtypes.h (struct field) <type, set_type>: New methods.
7825 Rename `type` field to...
7826 <m_type>: ... this. Change references throughout to use type or
7827 set_type methods.
7828 (FIELD_TYPE): Use field::type. Change call sites that modify
7829 the field's type to use field::set_type instead.
7830
3d967001
SM
78312020-06-08 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7834 to use type::index_type instead.
7835
262abc0d
SM
78362020-06-08 Simon Marchi <simon.marchi@efficios.com>
7837
7838 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7839 methods.
7840 (TYPE_INDEX_TYPE): Use type::index_type.
7841 * gdbtypes.c (create_array_type_with_stride): Likewise.
7842
82836c92
TT
78432020-06-07 Tom Tromey <tom@tromey.com>
7844
7845 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7846 parameter.
7847 (generic_value_print): Update.
7848
940dace9
AB
78492020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 Revert commit 982a38f60b0.
7852 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7853
982a38f6
AB
78542020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7857 avoid use after free.
7858
82f06518
TV
78592020-06-05 Tom de Vries <tdevries@suse.de>
7860
7861 * NEWS: Fix typos.
7862
f8c41851
SM
78632020-06-04 Simon Marchi <simon.marchi@efficios.com>
7864
7865 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7866 the per_bfd object.
7867 (dwarf2_read_debug_names): Likewise.
7868 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7869 object when re-using a per_bfd object with an index.
7870
f9b5d5ea
TV
78712020-06-03 Tom de Vries <tdevries@suse.de>
7872
7873 PR symtab/26046
7874 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7875 children for C++.
7876 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7877 DW_TAG_subprogram.
7878
f6eee2d0
AB
78792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7880
7881 * ada-lang.c (ada_language_data): Delete skip_trampoline
7882 initializer.
7883 * c-lang.c (c_language_data): Likewise.
7884 (cplus_language_data): Likewise.
7885 (cplus_language::skip_trampoline): New member function.
7886 (asm_language_data): Delete skip_trampoline initializer.
7887 (minimal_language_data): Likewise.
7888 * d-lang.c (d_language_data): Likewise.
7889 * f-lang.c (f_language_data): Likewise.
7890 * go-lang.c (go_language_data): Likewise.
7891 * language.c (unk_lang_trampoline): Delete function.
7892 (skip_language_trampoline): Update.
7893 (unknown_language_data): Delete skip_trampoline initializer.
7894 (auto_language_data): Likewise.
7895 * language.h (language_data): Delete skip_trampoline field.
7896 (language_defn::skip_trampoline): New function.
7897 * m2-lang.c (m2_language_data): Delete skip_trampoline
7898 initializer.
7899 * objc-lang.c (objc_skip_trampoline): Delete function, move
7900 implementation to objc_language::skip_trampoline.
7901 (objc_language_data): Delete skip_trampoline initializer.
7902 (objc_language::skip_trampoline): New member function with
7903 implementation from objc_skip_trampoline.
7904 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7905 initializer.
7906 * p-lang.c (pascal_language_data): Likewise.
7907 * rust-lang.c (rust_language_data): Likewise.
7908
0a50df5d
AB
79092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7912 (ada_language::demangle): New member function.
7913 * c-lang.c (c_language_data): Delete la_demangle initializer.
7914 (cplus_language_data): Delete la_demangle initializer.
7915 (cplus_language::demangle): New member function.
7916 (asm_language_data): Delete la_demangle initializer.
7917 (minimal_language_data): Delete la_demangle initializer.
7918 * d-lang.c (d_language_data): Delete la_demangle initializer.
7919 (d_language::demangle): New member function.
7920 * f-lang.c (f_language_data): Delete la_demangle initializer.
7921 (f_language::demangle): New member function.
7922 * go-lang.c (go_language_data): Delete la_demangle initializer.
7923 (go_language::demangle): New member function.
7924 * language.c (language_demangle): Update.
7925 (unk_lang_demangle): Delete.
7926 (unknown_language_data): Delete la_demangle initializer.
7927 (unknown_language::demangle): New member function.
7928 (auto_language_data): Delete la_demangle initializer.
7929 (auto_language::demangle): New member function.
7930 * language.h (language_data): Delete la_demangle field.
7931 (language_defn::demangle): New function.
7932 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7933 * objc-lang.c (objc_language_data): Delete la_demangle
7934 initializer.
7935 (objc_language::demangle): New member function.
7936 * opencl-lang.c (opencl_language_data): Delete la_demangle
7937 initializer.
7938 * p-lang.c (pascal_language_data): Likewise.
7939 * rust-lang.c (rust_language_data): Likewise.
7940 (rust_language::demangle): New member function.
7941
fbfb0a46
AB
79422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * ada-lang.c (ada_language_data): Delete la_print_type
7945 initializer.
7946 (ada_language::print_type): New member function.
7947 * c-lang.c (c_language_data): Delete la_print_type initializer.
7948 (c_language::print_type): New member function.
7949 (cplus_language_data): Delete la_print_type initializer.
7950 (cplus_language::print_type): New member function.
7951 (asm_language_data): Delete la_print_type initializer.
7952 (asm_language::print_type): New member function.
7953 (minimal_language_data): Delete la_print_type initializer.
7954 (minimal_language::print_type): New member function.
7955 * d-lang.c (d_language_data): Delete la_print_type initializer.
7956 (d_language::print_type): New member function.
7957 * f-lang.c (f_language_data): Delete la_print_type initializer.
7958 (f_language::print_type): New member function.
7959 * go-lang.c (go_language_data): Delete la_print_type initializer.
7960 (go_language::print_type): New member function.
7961 * language.c (unk_lang_print_type): Delete.
7962 (unknown_language_data): Delete la_print_type initializer.
7963 (unknown_language::print_type): New member function.
7964 (auto_language_data): Delete la_print_type initializer.
7965 (auto_language::print_type): New member function.
7966 * language.h (language_data): Delete la_print_type field.
7967 (language_defn::print_type): New function.
7968 (LA_PRINT_TYPE): Update.
7969 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7970 (m2_language::print_type): New member function.
7971 * objc-lang.c (objc_language_data): Delete la_print_type
7972 initializer.
7973 (objc_language::print_type): New member function.
7974 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7975 to opencl_language::print_type.
7976 (opencl_language_data): Delete la_print_type initializer.
7977 (opencl_language::print_type): New member function, implementation
7978 from opencl_print_type.
7979 * p-lang.c (pascal_language_data): Delete la_print_type
7980 initializer.
7981 (pascal_language::print_type): New member function.
7982 * rust-lang.c (rust_print_type): Delete, implementation moved to
7983 rust_language::print_type.
7984 (rust_language_data): Delete la_print_type initializer.
7985 (rust_language::print_type): New member function, implementation
7986 from rust_print_type.
7987
6f827019
AB
79882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7991 implementation moves to...
7992 (ada_language::sniff_from_mangled_name): ...here. Update return
7993 type.
7994 (ada_language_data): Delete la_sniff_from_mangled_name
7995 initializer.
7996 * c-lang.c (c_language_data): Likewise.
7997 (cplus_language_data): Likewise.
7998 (cplus_language::sniff_from_mangled_name): New member function,
7999 implementation taken from gdb_sniff_from_mangled_name.
8000 (asm_language_data): Delete la_sniff_from_mangled_name
8001 initializer.
8002 (minimal_language_data): Likewise.
8003 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8004 implementation moves to cplus_language::sniff_from_mangled_name.
8005 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8006 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8007 moves to...
8008 (d_language::sniff_from_mangled_name): ...here.
8009 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8010 * f-lang.c (f_language_data): Likewise.
8011 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8012 moves to...
8013 (go_language::sniff_from_mangled_name): ...here.
8014 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8015 * language.c (language_sniff_from_mangled_name): Delete.
8016 (unknown_language_data): Delete la_sniff_from_mangled_name
8017 initializer.
8018 (auto_language_data): Likewise.
8019 * language.h (language_data): Delete la_sniff_from_mangled_name
8020 field.
8021 (language_defn::sniff_from_mangled_name): New function.
8022 (language_sniff_from_mangled_name): Delete declaration.
8023 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8024 field.
8025 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8026 implementation moves to...
8027 (objc_language::sniff_from_mangled_name): ...here.
8028 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8029 * opencl-lang.c (opencl_language_data): Likewise.
8030 * p-lang.c (pascal_language_data): Likewise.
8031 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8032 implementation moves to...
8033 (rust_language::sniff_from_mangled_name): ...here.
8034 (rust_language_data): Delete la_sniff_from_mangled_name
8035 initializer.
8036 * symtab.c (symbol_find_demangled_name): Call
8037 sniff_from_mangled_name member function.
8038
fb8006fd
AB
80392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8042 initializer.
8043 * c-lang.c (c_language_data): Likewise.
8044 (cplus_language_data): Likewise.
8045 (cplus_language::search_name_hash): New member function.
8046 (asm_language_data): Delete la_search_name_hash initializer.
8047 (minimal_language_data): Likewise.
8048 * d-lang.c (d_language_data): Likewise.
8049 * dictionary.c (default_search_name_hash): Rename to...
8050 (language_defn::search_name_hash): ...this.
8051 * f-lang.c (f_language_data): Likewise.
8052 (f_language::search_name_hash): New member function.
8053 * go-lang.c (go_language_data): Delete la_search_name_hash
8054 initializer.
8055 * language.c (unknown_language_data): Likewise.
8056 (auto_language_data): Likewise.
8057 * language.h (struct language_data): Delete la_search_name_hash
8058 field.
8059 (language_defn::search_name_hash): Declare new member function.
8060 (default_search_name_hash): Delete declaration.
8061 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8062 initializer.
8063 * objc-lang.c (objc_language_data): Likewise.
8064 * opencl-lang.c (opencl_language_data): Likewise.
8065 * p-lang.c (pascal_language_data): Likewise.
8066 * rust-lang.c (rust_language_data): Likewise.
8067 * symtab.c (search_name_hash): Update call.
8068
8e25bafe
AB
80692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8072 initializer.
8073 * c-lang.c (class compile_instance): Declare.
8074 (c_language_data): Delete la_get_compile_instance initializer.
8075 (c_language::get_compile_instance): New member function.
8076 (cplus_language_data): Delete la_get_compile_instance initializer.
8077 (cplus_language::get_compile_instance): New member function.
8078 (asm_language_data): Delete la_get_compile_instance initializer.
8079 (minimal_language_data): Likewise.
8080 * c-lang.h (c_get_compile_context): Update comment.
8081 (cplus_get_compile_context): Update comment.
8082 * compile/compile.c (compile_to_object): Update calls, don't rely
8083 on function pointer being NULL.
8084 * d-lang.c (d_language_data): Delete la_get_compile_instance
8085 initializer.
8086 * f-lang.c (f_language_data): Likewise.
8087 * go-lang.c (go_language_data): Likewise.
8088 * language.c (unknown_language_data): Likewise.
8089 (auto_language_data): Likewise.
8090 * language.h (language_data): Delete la_get_compile_instance field.
8091 (language_defn::get_compile_instance): New member function.
8092 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8093 initializer.
8094 * objc-lang.c (objc_language_data): Likewise.
8095 * opencl-lang.c (opencl_language_data): Likewise.
8096 * p-lang.c (pascal_language_data): Likewise.
8097 * rust-lang.c (rust_language_data): Likewise.
8098
4009ee92
AB
80992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8100
8101 * ada-lang.c (ada_add_all_symbols): Update comment.
8102 (ada_iterate_over_symbols): Delete, move implementation to...
8103 (ada_language::iterate_over_symbols): ...here, a new member
8104 function, rewrite to use range based for loop.
8105 (ada_language_data): Delete la_iterate_over_symbols initializer.
8106 * c-lang.c (c_language_data): Likewise.
8107 (cplus_language_data): Likewise.
8108 (asm_language_data): Likewise.
8109 (minimal_language_data): Likewise.
8110 * d-lang.c (d_language_data): Likewise.
8111 * f-lang.c (f_language_data): Likewise.
8112 * go-lang.c (go_language_data): Likewise.
8113 * language.c (unknown_language_data): Likewise.
8114 (auto_language_data): Likewise.
8115 * language.h (language_data): Delete la_iterate_over_symbols field.
8116 (language_defn::iterate_over_symbols): New member function.
8117 (LA_ITERATE_OVER_SYMBOLS): Update.
8118 * linespec.c (iterate_over_all_matching_symtabs): Update.
8119 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8120 initializer.
8121 * objc-lang.c (objc_language_data): Likewise.
8122 * opencl-lang.c (opencl_language_data): Likewise.
8123 * p-lang.c (pascal_language_data): Likewise.
8124 * rust-lang.c (rust_language_data): Likewise.
8125
54f4ca46
AB
81262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * ada-lang.c (ada_language_data): Delete
8129 la_lookup_transparent_type initializer.
8130 * c-lang.c (c_language_data): Likewise.
8131 (cplus_language_data): Likewise.
8132 (cplus_language::lookup_transparent_type): New member function.
8133 (asm_language_data): Delete la_lookup_transparent_type
8134 initializer.
8135 (minimal_language_data): Likewise.
8136 * d-lang.c (d_language_data): Likewise.
8137 * f-lang.c (f_language_data): Likewise.
8138 * go-lang.c (go_language_data): Likewise.
8139 * language.c (unknown_language_data): Likewise.
8140 (auto_language_data): Likewise.
8141 * language.h (struct language_data): Delete
8142 la_lookup_transparent_type field.
8143 (language_defn::lookup_transparent_type): New member function.
8144 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8145 initializer.
8146 * objc-lang.c (objc_language_data): Likewise.
8147 * opencl-lang.c (opencl_language_data): Likewise.
8148 * p-lang.c (pascal_language_data): Likewise.
8149 * rust-lang.c (rust_language_data): Likewise.
8150 * symtab.c (symbol_matches_domain): Update call.
8151
1fb314aa
AB
81522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * ada-lang.c (ada_language_arch_info): Delete function, move
8155 implementation to...
8156 (ada_language::language_arch_info): ...here, a new member
8157 function.
8158 (ada_language_data): Delete la_language_arch_info.
8159 * c-lang.c (c_language_data): Likewise.
8160 (c_language::language_arch_info): New member function.
8161 (cplus_language_arch_info): Delete function, move
8162 implementation to...
8163 (cplus_language::language_arch_info): ...here, a new member
8164 function.
8165 (cplus_language_data): Delete la_language_arch_info.
8166 (asm_language_data): Likewise.
8167 (asm_language::language_arch_info): New member function.
8168 (minimal_language_data): Delete la_language_arch_info.
8169 (minimal_language::language_arch_info): New member function.
8170 * d-lang.c (d_language_arch_info): Delete function, move
8171 implementation to...
8172 (d_language::language_arch_info): ...here, a new member
8173 function.
8174 (d_language_data): Delete la_language_arch_info.
8175 * f-lang.c (f_language_arch_info): Delete function, move
8176 implementation to...
8177 (f_language::language_arch_info): ...here, a new member
8178 function.
8179 (f_language_data): Delete la_language_arch_info.
8180 * go-lang.c (go_language_arch_info): Delete function, move
8181 implementation to...
8182 (go_language::language_arch_info): ...here, a new member
8183 function.
8184 (go_language_data): Delete la_language_arch_info.
8185 * language.c (unknown_language_data): Likewise.
8186 (unknown_language::language_arch_info): New member function.
8187 (auto_language_data): Delete la_language_arch_info.
8188 (auto_language::language_arch_info): New member function.
8189 (language_gdbarch_post_init): Update call to
8190 la_language_arch_info.
8191 * language.h (language_data): Delete la_language_arch_info
8192 function pointer.
8193 (language_defn::language_arch_info): New function.
8194 * m2-lang.c (m2_language_arch_info): Delete function, move
8195 implementation to...
8196 (m2_language::language_arch_info): ...here, a new member
8197 function.
8198 (m2_language_data): Delete la_language_arch_info.
8199 * objc-lang.c (objc_language_arch_info): Delete function, move
8200 implementation to...
8201 (objc_language::language_arch_info): ...here, a new member
8202 function.
8203 (objc_language_data): Delete la_language_arch_info.
8204 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8205 implementation to...
8206 (opencl_language::language_arch_info): ...here, a new member
8207 function.
8208 (opencl_language_data): Delete la_language_arch_info.
8209 * p-lang.c (pascal_language_arch_info): Delete function, move
8210 implementation to...
8211 (pascal_language::language_arch_info): ...here, a new member
8212 function.
8213 (pascal_language_data): Delete la_language_arch_info.
8214 * rust-lang.c (rust_language_arch_info): Delete function, move
8215 implementation to...
8216 (rust_language::language_arch_info): ...here, a new member
8217 function.
8218 (rust_language_data): Delete la_language_arch_info.
8219
48448202
AB
82202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8221
8222 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8223 initializer.
8224 * c-lang.c (c_language_data): Likewise.
8225 (cplus_language_data): Likewise.
8226 (cplus_language::pass_by_reference_info): New method.
8227 (asm_language_data): Delete la_pass_by_reference initializer.
8228 (minimal_language_data): Likewise.
8229 * cp-abi.c (cp_pass_by_reference): Remove use of
8230 default_pass_by_reference.
8231 * d-lang.c (d_language_data): Likewise.
8232 * f-lang.c (f_language_data): Likewise.
8233 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8234 default_pass_by_reference.
8235 * go-lang.c (go_language_data): Likewise.
8236 * language.c (language_pass_by_reference): Update.
8237 (default_pass_by_reference): Delete.
8238 (unknown_language_data): Delete la_pass_by_reference
8239 initializer.
8240 (auto_language_data): Likewise.
8241 * language.h (struct language_data): Delete la_pass_by_reference
8242 field.
8243 (language_defn::pass_by_reference_info): New member function.
8244 (default_pass_by_reference): Delete declaration.
8245 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8246 initializer.
8247 * objc-lang.c (objc_language_data): Likewise.
8248 * opencl-lang.c (opencl_language_data): Likewise.
8249 * p-lang.c (pascal_language_data): Likewise.
8250 * rust-lang.c (rust_language_data): Likewise.
8251
15e5fd35
AB
82522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8253
8254 * ada-lang.c (ada_read_var_value): Delete function, move
8255 implementation to...
8256 (ada_language::read_var_value): ...here.
8257 (ada_language_data): Delete la_read_var_value initializer.
8258 * c-lang.c (c_language_data): Likewise.
8259 (cplus_language_data): Likewise.
8260 (minimal_language_data): Likewise.
8261 * d-lang.c (d_language_data): Likewise.
8262 * f-lang.c (f_language_data): Likewise.
8263 * findvar.c (default_read_var_value): Rename to...
8264 (language_defn::read_var_value): ...this.
8265 * findvar.c (read_var_value): Update header comment, and change to
8266 call member function instead of function pointer.
8267 * go-lang.c (go_language_data): Likewise.
8268 * language.c (unknown_language_data): Delete la_read_var_value
8269 initializer.
8270 (auto_language_data): Likewise.
8271 * language.h (struct language_data): Delete la_read_var_value
8272 field.
8273 (language_defn::read_var_value): New member function.
8274 (default_read_var_value): Delete declaration.
8275 * m2-lang.c (m2_language_data): Delete la_read_var_value
8276 initializer.
8277 * objc-lang.c (objc_language_data): Likewise.
8278 * opencl-lang.c (opencl_language_data): Likewise.
8279 * p-lang.c (pascal_language_data): Likewise.
8280 * rust-lang.c (rust_language_data): Likewise.
8281 * value.h (default_read_var_value): Delete declaration.
8282
5bd40f2a
AB
82832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8284
8285 * ada-lang.c (ada_print_array_index): Delete function, move
8286 implementation to...
8287 (ada_language::print_array_index): ...here.
8288 (ada_language_data): Delete la_print_array_index initializer.
8289 * c-lang.c (c_language_data): Likewise.
8290 (cplus_language_data): Likewise.
8291 (minimal_language_data): Likewise.
8292 * d-lang.c (d_language_data): Likewise.
8293 * f-lang.c (f_language_data): Likewise.
8294 * go-lang.c (go_language_data): Likewise.
8295 * language.c (default_print_array_index): Delete function, move
8296 implementation to...
8297 (language_defn::print_array_index): ...here.
8298 (unknown_language_data): Delete la_print_array_index initializer.
8299 (auto_language_data): Likewise.
8300 * language.h (struct language_data): Delete la_print_array_index
8301 field.
8302 (language_defn::print_array_index): New member function.
8303 (LA_PRINT_ARRAY_INDEX): Update.
8304 (default_print_array_index): Delete declaration.
8305 * m2-lang.c (m2_language_data): Delete la_print_array_index
8306 initializer.
8307 * objc-lang.c (objc_language_data): Likewise.
8308 * opencl-lang.c (opencl_language_data): Likewise.
8309 * p-lang.c (pascal_language_data): Likewise.
8310 * rust-lang.c (rust_language_data): Likewise.
8311
0874fd07
AB
83122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8313
8314 * gdb/ada-lang.c (ada_language_defn): Convert to...
8315 (ada_language_data): ...this.
8316 (class ada_language): New class.
8317 (ada_language_defn): New static global.
8318 * gdb/c-lang.c (c_language_defn): Convert to...
8319 (c_language_data): ...this.
8320 (class c_language): New class.
8321 (c_language_defn): New static global.
8322 (cplus_language_defn): Convert to...
8323 (cplus_language_data): ...this.
8324 (class cplus_language): New class.
8325 (cplus_language_defn): New static global.
8326 (asm_language_defn): Convert to...
8327 (asm_language_data): ...this.
8328 (class asm_language): New class.
8329 (asm_language_defn): New static global.
8330 (minimal_language_defn): Convert to...
8331 (minimal_language_data): ...this.
8332 (class minimal_language): New class.
8333 (minimal_language_defn): New static global.
8334 * gdb/d-lang.c (d_language_defn): Convert to...
8335 (d_language_data): ...this.
8336 (class d_language): New class.
8337 (d_language_defn): New static global.
8338 * gdb/f-lang.c (f_language_defn): Convert to...
8339 (f_language_data): ...this.
8340 (class f_language): New class.
8341 (f_language_defn): New static global.
8342 * gdb/go-lang.c (go_language_defn): Convert to...
8343 (go_language_data): ...this.
8344 (class go_language): New class.
8345 (go_language_defn): New static global.
8346 * gdb/language.c (unknown_language_defn): Remove declaration.
8347 (current_language): Initialize to nullptr, real initialization is
8348 moved to _initialize_language.
8349 (languages): Delete global.
8350 (language_defn::languages): Define.
8351 (set_language_command): Use language_defn::languages.
8352 (set_language): Likewise.
8353 (range_error): Likewise.
8354 (language_enum): Likewise.
8355 (language_def): Likewise.
8356 (add_set_language_command): Use language_def::languages for the
8357 language list, and language_def to lookup language pointers.
8358 (skip_language_trampoline): Use language_defn::languages.
8359 (unknown_language_defn): Convert to...
8360 (unknown_language_data): ...this.
8361 (class unknown_language): New class.
8362 (unknown_language_defn): New static global.
8363 (auto_language_defn): Convert to...
8364 (auto_language_data): ...this.
8365 (class auto_language): New class.
8366 (auto_language_defn): New static global.
8367 (language_gdbarch_post_init): Use language_defn::languages.
8368 (_initialize_language): Initialize current_language.
8369 * gdb/language.h (struct language_defn): Rename to...
8370 (struct language_data): ...this.
8371 (struct language_defn): New.
8372 (auto_language_defn): Delete.
8373 (unknown_language_defn): Delete.
8374 (minimal_language_defn): Delete.
8375 (ada_language_defn): Delete.
8376 (asm_language_defn): Delete.
8377 (c_language_defn): Delete.
8378 (cplus_language_defn): Delete.
8379 (d_language_defn): Delete.
8380 (f_language_defn): Delete.
8381 (go_language_defn): Delete.
8382 (m2_language_defn): Delete.
8383 (objc_language_defn): Delete.
8384 (opencl_language_defn): Delete.
8385 (pascal_language_defn): Delete.
8386 (rust_language_defn): Delete.
8387 * gdb/m2-lang.c (m2_language_defn): Convert to...
8388 (m2_language_data): ...this.
8389 (class m2_language): New class.
8390 (m2_language_defn): New static global.
8391 * gdb/objc-lang.c (objc_language_defn): Convert to...
8392 (objc_language_data): ...this.
8393 (class objc_language): New class.
8394 (objc_language_defn): New static global.
8395 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8396 (opencl_language_data): ...this.
8397 (class opencl_language): New class.
8398 (opencl_language_defn): New static global.
8399 * gdb/p-lang.c (pascal_language_defn): Convert to...
8400 (pascal_language_data): ...this.
8401 (class pascal_language): New class.
8402 (pascal_language_defn): New static global.
8403 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8404 language pointer, update comment format.
8405 * gdb/rust-lang.c (rust_language_defn): Convert to...
8406 (rust_language_data): ...this.
8407 (class rust_language): New class.
8408 (rust_language_defn): New static global.
8409
1313c56e
AB
84102020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8413 member variable.
8414 <m_stmt_at_address>: New member variable.
8415 (lnp_state_machine::record_line): Don't record some lines, update
8416 tracking of is_stmt at the same address.
8417 (lnp_state_machine::lnp_state_machine): Initialise new member
8418 variables.
8419
b7ed9f3d
ST
84202020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8421
8422 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8423 "-include gnu-nat-mig.h".
8424 * gnu-nat-mig.h: New file.
8425 * gnu-nat.c: Include "gnu-nat-mig.h".
8426 (exc_server, msg_reply_server, notify_server,
8427 process_reply_server): Remove declarations.
8428
14a8ad62
ST
84292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8430
8431 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8432 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8433 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8434 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8435 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8436 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8437 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8438 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8439 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8440 to gnu_nat_target class.
8441 * gnu-nat.c: Likewise.
8442 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8443 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8444 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8445 object.
8446 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8447 instead of `gnu_target'.
8448
0af5e106
ST
84492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8450
8451 * i386-gnu-tdep.c: Include "gdbcore.h"
8452 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8453 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8454 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8455 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8456 i386_gnu_sigcontext_addr): New functions
8457 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8458 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8459 tdep.
8460
078f2fc9
ST
84612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8462
8463 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8464 before fork_inferior call. Avoid calling it if target_is_pushed returns
8465 true.
8466
53dff92c
ST
84672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8468
8469 * gnu-nat.h (gnu_target): New variable declaration.
8470 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8471 gnu_target.
8472 * gnu-nat.c (gnu_target): New variable.
8473 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8474 add_thread_silent, and add_thread calls.
8475 (gnu_nat_target::create_inferior): Pass gnu_target to
8476 add_thread_silent, thread_change_ptid call.
8477 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8478 call.
8479
5a8b8627
ST
84802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8481
8482 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8483 (gnu_nat_target::find_memory_regions): Remove unused
8484 `old_address' variable.
8485
366f550a
ST
84862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8487
8488 * gnu-nat.c: Include "gdbarch.h".
8489
f14871bf
ST
84902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8491
8492 * reply_mig_hack.awk (Error return): Cast function through
8493 void *, to bypass compiler function call check.
8494
c6887cfb
ST
84952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8496
8497 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8498 $(srcdir)/reply_mig_hack.awk.
8499
6930bffe
ST
85002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8501
8502 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8503
112c22ed
JG
85042020-05-30 Jonny Grant <jg@jguk.org>
8505
8506 * configure.ac (ACX_BUGURL): change bug URL to https.
8507
f68f85b5
PA
85082020-05-30 Pedro Alves <palves@redhat.com>
8509
8510 * cp-support.c (replace_typedefs_template): New.
8511 (replace_typedefs_qualified_name): Handle
8512 DEMANGLE_COMPONENT_TEMPLATE.
8513
976ca316
SM
85142020-05-29 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8517 dwarf2/index-cache.h, dwarf2/index-write.c,
8518 dwarf2/index-write.h, dwarf2/line-header.c,
8519 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8520 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8521 variables and fields from `dwarf2_per_objfile` to just
8522 `per_objfile` throughout.
8523
989ade05
SM
85242020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8525
8526 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8527 <push_dwarf_reg_entry_value>: Add comment.
8528
c47bae85
KB
85292020-05-28 Kevin Buettner <kevinb@redhat.com>
8530 Keith Seitz <keiths@redhat.com>
8531
8532 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8533 instead of PyEval_ReleaseLock.
8534 (class gdbpy_gil): Move to earlier in file.
8535 (finalize_python): Set gdb_python_initialized.
8536 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8537 when not initialized.
8538
44486dcf
SM
85392020-05-28 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8542 <push_dwarf_reg_entry_value>: Remove assert. Override
8543 per_objfile with caller_per_objfile.
8544
f030440d
TV
85452020-05-28 Tom de Vries <tdevries@suse.de>
8546
8547 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8548 PR gold/15646 workaround to symbol kind "type".
8549
f0fbb768
TT
85502020-05-27 Tom Tromey <tromey@adacore.com>
8551
8552 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8553
af0b2a3e
TT
85542020-05-27 Tom Tromey <tromey@adacore.com>
8555
8556 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8557 Use htab_find_with_hash.
8558 <add_abbrev>: Remove "abbrev_number" parameter.
8559 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8560 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8561 (hash_abbrev): Add comment.
8562 (abbrev_table::lookup_abbrev): Move to header file.
8563 (abbrev_table::read): Update.
8564
7d00ffec
TT
85652020-05-27 Tom Tromey <tromey@adacore.com>
8566
8567 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8568 method.
8569 <canonical_name>: New member.
8570 <raw_name>: Rename from "name".
8571 (partial_die_info): Initialize canonical_name.
8572 (scan_partial_symbols): Check raw_name.
8573 (partial_die_parent_scope, partial_die_full_name)
8574 (add_partial_symbol, add_partial_subprogram)
8575 (add_partial_enumeration, load_partial_dies): Use "name" method.
8576 (partial_die_info::name): New method.
8577 (partial_die_info::read, guess_partial_die_structure_name)
8578 (partial_die_info::fixup): Update.
8579
697bba18
TT
85802020-05-27 Tom Tromey <tromey@adacore.com>
8581
8582 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8583 <get_ref_die_offset>: Inline.
8584 <get_ref_die_offset_complaint>: New method.
8585 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8586 (attribute::get_ref_die_offset_complaint): Rename from
8587 get_ref_die_offset. Just issue complaint.
8588
c17ace43
HD
85892020-05-27 Hannes Domani <ssbssa@yahoo.de>
8590
8591 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8592
96445f0b
HD
85932020-05-27 Hannes Domani <ssbssa@yahoo.de>
8594
8595 * exec.c (exec_file_attach): Use errno value of first openp failure.
8596
ac637ec3
HD
85972020-05-27 Hannes Domani <ssbssa@yahoo.de>
8598
8599 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8600 Don't close thread handle.
8601
17ee85fc
TT
86022020-05-27 Tom Tromey <tom@tromey.com>
8603 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8606 shared_ptr.
8607 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8608 member.
8609 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8610 dwarf2_per_bfd_objfile_data_key>: New globals.
8611 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8612 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8613 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8614 shared.
8615 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8616 short-circuit when sharing.
8617 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8618 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8619
39b16f87
SM
86202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8623 to...
8624 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8625 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8626
fcf23d5b
SM
86272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8630 build_name_components, find_name_components_bounds>:
8631 Add per_objfile parameter.
8632 (struct mapped_index) <symbol_name_at>: Likewise.
8633 (struct mapped_debug_names): Remove constructor.
8634 <dwarf2_per_objfile>: Remove field.
8635 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8636 (mapped_index_base::find_name_components_bounds,
8637 mapped_index_base::build_name_components,
8638 dw2_expand_symtabs_matching_symbol): Likewise.
8639 (class mock_mapped_index) <symbol_name_at>: Likewise.
8640 (check_match): Likewise.
8641 (check_find_bounds_finds): Likewise.
8642 (test_mapped_index_find_name_component_bounds): Update.
8643 (CHECK_MATCH): Update.
8644 (dw2_expand_symtabs_matching): Update.
8645 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8646 per_objfile parameter.
8647 <find_vec_in_debug_names>: Likewise.
8648 <m_per_objfile>: New field.
8649 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8650 parameter.
8651 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8652 (dw2_debug_names_iterator::next): Update.
8653 (dw2_debug_names_lookup_symbol): Update.
8654 (dw2_debug_names_expand_symtabs_for_function): Update.
8655 (dw2_debug_names_map_matching_symbols): Update.
8656 (dw2_debug_names_expand_symtabs_matching): Update.
8657 (dwarf2_read_debug_names): Update.
8658
7188ed02
SM
86592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8662 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8663 move to dwarf2_per_objfile.
8664 <read_in_chain>: Remove.
8665 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8666 remove_all_cus, age_comp_units>: New methods.
8667 <m_dwarf2_cus>: New member.
8668 (struct dwarf2_per_cu_data) <cu>: Remove.
8669 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8670 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8671 moved to methods of dwarf2_per_objfile.
8672 (dwarf2_clear_marks): Remove.
8673 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8674 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8675 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8676 (dwarf2_per_objfile::remove_all_cus): New.
8677 (class free_cached_comp_units) <~free_cached_comp_units>:
8678 Update.
8679 (load_cu): Update.
8680 (dw2_do_instantiate_symtab): Adjust.
8681 (fill_in_sig_entry_from_dwo_entry): Adjust.
8682 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8683 (cutu_reader::cutu_reader): Likewise.
8684 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8685 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8686 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8687 and dwarf2_per_objfile::age_comp_units.
8688 (load_partial_comp_unit): Update.
8689 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8690 (process_queue): Likewise.
8691 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8692 backlink.
8693 (dwarf2_read_addr_index): Likewise.
8694 (follow_die_offset): Likewise.
8695 (dwarf2_fetch_die_loc_sect_off): Likewise.
8696 (dwarf2_fetch_constant_bytes): Likewise.
8697 (dwarf2_fetch_die_type_sect_off): Likewise.
8698 (follow_die_sig_1): Likewise.
8699 (load_full_type_unit): Likewise.
8700 (read_signatured_type): Likewise.
8701 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8702 (dwarf2_cu::~dwarf2_cu): Remove.
8703 (dwarf2_per_objfile::get_cu): New.
8704 (dwarf2_per_objfile::set_cu): New.
8705 (age_cached_comp_units): Rename to...
8706 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8707 to std::unordered_map.
8708 (free_one_cached_comp_unit): Rename to...
8709 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8710 to std::unordered_map.
8711 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8712 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8713 a dwarf2_per_objfile in data.
8714 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8715 (dwarf2_clear_marks): Remove.
8716
2e671100
SM
87172020-05-27 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8720 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8721 (init_tu_and_read_dwo_dies): Likewise.
8722 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8723 (cutu_reader::cutu_reader): Likewise.
8724 (load_partial_comp_unit): Likewise.
8725 (process_psymtab_comp_unit): Update.
8726 (build_type_psymtabs_1): Update.
8727 (process_skeletonless_type_unit): Update.
8728 (load_full_comp_unit): Update.
8729 (find_partial_die): Update.
8730 (dwarf2_read_addr_index): Update.
8731 (read_signatured_type): Update.
8732
2e6a9f79
SM
87332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8734
8735 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8736 m_header_read_in>: New fields.
8737 <get_header>: New method.
8738 * dwarf2/read.c (per_cu_header_read_in): Remove.
8739 (dwarf2_per_cu_data::get_header): New.
8740 (dwarf2_per_cu_data::addr_size): Update.
8741 (dwarf2_per_cu_data::offset_size): Update.
8742 (dwarf2_per_cu_data::ref_addr_size): Update.
8743
1b555f17
SM
87442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8745
8746 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8747 (dw2_do_instantiate_symtab): Update.
8748 (queue_and_load_all_dwo_tus): Change parameter from
8749 dwarf2_per_cu_data to dwarf2_cu.
8750 (dwarf2_fetch_die_loc_sect_off): Update.
8751 (dwarf2_fetch_constant_bytes): Update.
8752 (dwarf2_fetch_die_type_sect_off): Update.
8753
8fc0b21d
SM
87542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8755
8756 * dwarf2/read.c (process_full_comp_unit,
8757 process_full_type_unit): Remove per_cu, per_objfile paramters.
8758 Add dwarf2_cu parameter.
8759 (process_queue): Update.
8760
168c9250
SM
87612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8762
8763 * dwarf2/read.c (create_cu_from_index_list): Replace
8764 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8765 (create_cus_from_index_list): Likewise.
8766 (create_cus_from_index): Likewise.
8767 (create_signatured_type_table_from_index): Likewise.
8768 (create_cus_from_debug_names_list): Likewise.
8769 (create_cus_from_debug_names): Likewise.
8770 (dwarf2_read_gdb_index): Update.
8771 (dwarf2_read_debug_names): Update.
8772
e286671b
TT
87732020-05-27 Tom Tromey <tom@tromey.com>
8774 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/read.h (struct dwarf2_per_objfile)
8777 <get_type_for_signatured_type, set_type_for_signatured_type>:
8778 New methods.
8779 <m_type_map>: New member.
8780 (struct signatured_type) <type>: Remove.
8781 * dwarf2/read.c
8782 (dwarf2_per_objfile::get_type_for_signatured_type,
8783 dwarf2_per_objfile::set_type_for_signatured_type): New.
8784 (get_signatured_type): Use new methods.
8785
8adb8487
TT
87862020-05-27 Tom Tromey <tom@tromey.com>
8787 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8790 (struct dwarf2_per_objfile) <type_units>: New member.
8791 <get_type_unit_group_unshareable>: New method.
8792 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8793 num_symtabs, symtabs>: Remove; move to
8794 type_unit_group_unshareable.
8795 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8796 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8797 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8798
127bbf4b
SM
87992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/read.h (struct dwarf2_per_cu_data):
8802 <dwarf2_per_objfile>: Remove.
8803 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8804 dwarf2_per_objfile.
8805 (create_signatured_type_table_from_index): Likewise.
8806 (create_signatured_type_table_from_debug_names): Likewise.
8807 (create_debug_type_hash_table): Likewise.
8808 (fill_in_sig_entry_from_dwo_entry): Likewise.
8809 (create_type_unit_group): Likewise.
8810 (read_comp_units_from_section): Likewise.
8811 (create_cus_hash_table): Likewise.
8812
f6e649dd
SM
88132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8816 dwarf2_per_cu_data::dwarf2_per_objfile.
8817 (compute_compunit_symtab_includes): Likewise.
8818 (dwarf2_cu::start_symtab): Likewise.
8819
aa66c379
SM
88202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8821
8822 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8823 parameter.
8824 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8825 (read_namespace_alias): Update.
8826 (lookup_die_type): Update.
8827 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8828 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8829 Update.
8830 (disassemble_dwarf_expression): Update.
8831
120ce1b5
SM
88322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * dwarf2/read.h (struct dwarf2_queue_item): Add
8835 dwarf2_per_objfile parameter, assign new parameter.
8836 <per_objfile>: New field.
8837 * dwarf2/read.c (free_one_cached_comp_unit): Add
8838 dwarf2_per_objfile parameter.
8839 (queue_comp_unit): Likewise.
8840 (dw2_do_instantiate_symtab): Update.
8841 (process_psymtab_comp_unit): Update.
8842 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8843 (process_imported_unit_die): Update.
8844 (queue_and_load_dwo_tu): Update.
8845 (follow_die_offset): Update.
8846 (follow_die_sig_1): Update.
8847
9f47c707
SM
88482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8851 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8852 (read_call_site_scope): Assign per_objfile.
8853 (dwarf2_per_cu_data::objfile): Remove.
8854 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8855 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8856 dwarf2_per_objfile parameter.
8857 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8858 dwarf2_per_objfile parameter.
8859 (dwarf_expr_reg_to_entry_parameter): Add output
8860 dwarf2_per_objfile parameter.
8861 (locexpr_get_frame_base): Update.
8862 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8863 <push_dwarf_reg_entry_value>: Update.
8864 <call_site_to_target_addr>: Update.
8865 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8866 parameter.
8867 (value_of_dwarf_reg_entry): Update.
8868 (rw_pieced_value): Update.
8869 (indirect_synthetic_pointer): Update.
8870 (dwarf2_evaluate_property): Update.
8871 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8872 parameter.
8873 (locexpr_read_variable): Update.
8874 (locexpr_get_symbol_read_needs): Update.
8875 (loclist_read_variable): Update.
8876
14095eb3
SM
88772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8880 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8881 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8882 parameter.
8883 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8884 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8885 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8886 parameter.
8887 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8888 sect_variable_value): Add dwarf2_per_objfile parameter.
8889 (class dwarf_evaluate_loc_desc) <dwarf_call,
8890 dwarf_variable_value>: Update.
8891 (fetch_const_value_from_synthetic_pointer): Add
8892 dwarf2_per_objfile parameter.
8893 (fetch_const_value_from_synthetic_pointer): Update.
8894 (coerced_pieced_ref): Update.
8895 (class symbol_needs_eval_context) <dwarf_call,
8896 dwarf_variable_value>: Update.
8897 (dwarf2_compile_expr_to_ax): Update.
8898
3c3cd3d4
SM
88992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8900
8901 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8902 parameter.
8903 (dwarf2_evaluate_loc_desc_full): Update.
8904
82ca3f51
SM
89052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8908 parameter.
8909 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8910 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8911 dwarf2_per_objfile parameter.
8912 (decode_debug_loc_dwo_addresses): Likewise.
8913 (dwarf2_find_location_expression): Update.
8914 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8915 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8916 parameter.
8917 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8918 parameter.
8919 (locexpr_describe_location_1): Likewise.
8920 (locexpr_describe_location): Update.
8921
4b167ea1
SM
89222020-05-27 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8925 Remove.
8926 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8927 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8928 (dwarf2_compile_property_to_c): Update.
8929 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8930 use text offset from objfile.
8931 (locexpr_tracepoint_var_ref): Update.
8932 (locexpr_generate_c_location): Update.
8933 (loclist_describe_location): Update.
8934 (loclist_tracepoint_var_ref): Update.
8935 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8936 dwarf2_per_objfile parameter.
8937 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8938 use text offset from objfile.
8939 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8940
89b07335
SM
89412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8942
8943 * dwarf2/expr.h (struct dwarf_expr_context)
8944 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8945 <offset>: Remove.
8946 <per_objfile>: New member.
8947 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8948 dwarf2_per_objfile parameter. Don't set offset, set
8949 per_objfile.
8950 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8951 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8952 a dwarf2_per_objfile object instead of an offset.
8953 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8954 constructor.
8955 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8956 to dwarf2_expr_executor constructor. Don't set offset.
8957 (dwarf2_fetch_cfa_info): Update.
8958 (struct dwarf2_frame_cache) <text_offset>: Remove.
8959 <per_objfile>: New field.
8960 (dwarf2_frame_cache): Update.
8961 (dwarf2_frame_prev_register): Update.
8962 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8963 <dwarf_evaluate_loc_desc>: Add constructor.
8964 (dwarf2_evaluate_loc_desc_full): Update.
8965 (dwarf2_locexpr_baton_eval): Update.
8966 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8967 Add constructor.
8968 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8969
293e7e51
SM
89702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8971
8972 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8973 addr_sized_int_type>: Move to dwarf2_cu.
8974 <int_type>: Move to dwarf2_per_objfile.
8975 (struct dwarf2_per_objfile) <int_type>: Move here.
8976 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8977 addr_sized_int_type>: Move here.
8978 (read_func_scope): Update.
8979 (read_array_type): Update.
8980 (read_tag_string_type): Update.
8981 (attr_to_dynamic_prop): Update.
8982 (dwarf2_per_cu_data::int_type): Rename to...
8983 (dwarf2_per_objfile::int_type): ... this.
8984 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8985 (dwarf2_cu::addr_sized_int_type): ... this.
8986 (read_subrange_type): Update.
8987 (dwarf2_per_cu_data::addr_type): Rename to...
8988 (dwarf2_cu::addr_type): ... this.
8989 (set_die_type): Update.
8990
64874a40
SM
89912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8994 data through per_cu->cu.
8995
4ab09049
SM
89962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8997
8998 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8999 dwarf2_per_cu_data parameter fo dwarf2_cu.
9000 (lookup_dwo_type_unit): Likewise.
9001 (read_cutu_die_from_dwo): Likewise.
9002 (lookup_dwo_unit): Likewise.
9003 (open_and_init_dwo_file): Likewise.
9004 (lookup_dwo_cutu): Likewise.
9005 (lookup_dwo_comp_unit): Likewise.
9006 (lookup_dwo_type_unit): Likewise.
9007 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9008 (cutu_reader::cutu_reader): Update.
9009
47b14e86
SM
90102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9011
9012 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9013 parameter.
9014 (process_full_type_unit): Likewise.
9015 (process_queue): Update.
9016
43182c09
SM
90172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/read.c (recursively_compute_inclusions): Add
9020 dwarf2_per_objfile parameter.
9021 (compute_compunit_symtab_includes): Likewise.
9022 (process_cu_includes): Update.
9023
7aa104c4
SM
90242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9027 parameter.
9028 (create_type_unit_group): Update.
9029 (process_psymtab_comp_unit_reader): Update.
9030 (build_type_psymtabs_reader): Update.
9031
e3beb21d
SM
90322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9035 object through m_this_cu->cu.
9036
d460f660
SM
90372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9038
9039 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9040 the info parameter.
9041 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9042
ab432490
SM
90432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9044
9045 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9046 per_objfile parameter.
9047 (load_full_type_unit): Add per_objfile parameter.
9048 (read_signatured_type): Likewise.
9049 (load_full_comp_unit): Likewise.
9050 (load_cu): Likewise.
9051 (dw2_do_instantiate_symtab): Likewise.
9052 (dw2_get_file_names): Likewise.
9053 (dw2_map_symtabs_matching_filename): Update.
9054 (dw_expand_symtabs_matching_file_matcher): Update.
9055 (dw2_map_symbol_filenames): Update.
9056 (process_psymtab_comp_unit): Add per_objfile parameter.
9057 (build_type_psymtabs_1): Update.
9058 (process_skeletonless_type_unit): Update.
9059 (dwarf2_build_psymtabs_hard): Update.
9060 (load_partial_comp_unit): Add per_objfile parameter.
9061 (scan_partial_symbols): Update.
9062 (load_full_comp_unit): Add per_objfile parameter.
9063 (process_imported_unit_die): Update.
9064 (create_cus_hash_table): Update.
9065 (find_partial_die): Update.
9066 (dwarf2_read_addr_index): Update.
9067 (follow_die_offset): Update.
9068 (dwarf2_fetch_die_loc_sect_off): Update.
9069 (dwarf2_fetch_constant_bytes): Update.
9070 (dwarf2_fetch_die_type_sect_off): Update.
9071 (follow_die_sig_1): Update.
9072 (load_full_type_unit): Add per_objfile parameter.
9073 (read_signatured_type): Likewise.
9074
313bad1b
SM
90752020-05-27 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9078 of objfile_name.
9079
c3699833
SM
90802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9081
9082 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9083 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9084 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9085 field.
9086 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9087 (create_cus_from_index): Update.
9088 (dwarf2_read_gdb_index): Update.
9089 (create_cus_from_debug_names): Update.
9090 (dwarf2_read_debug_names): Update.
9091 (get_abbrev_section_for_cu): Update.
9092 (create_all_comp_units): Update.
9093 (read_attribute_value): Update.
9094 (get_debug_line_section): Update.
9095 * dwarf2/index-cache.c (index_cache::store): Update.
9096 * dwarf2/index-write.c (save_gdb_index_command): Update.
9097 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9098
1859c670
SM
90992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9100
9101 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9102 member.
9103 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9104 dwarf2_per_cu_data::per_bfd.
9105 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9106 (create_type_unit_group): Likewise.
9107 (queue_comp_unit): Remove reference to
9108 per_cu->dwarf2_per_objfile.
9109 (maybe_queue_comp_unit): Likewise.
9110 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9111 (create_cus_hash_table): Assign new field.
9112
5e22e966
SM
91132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9114
9115 * dwarf2/read.c: Replace
9116 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9117 dwarf2_cu->per_objfile throughout.
9118
97a1449a
SM
91192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9122 parameter, don't use per_cu->dwarf2_per_objfile.
9123 (dw2_instantiate_symtab): Likewise.
9124 (dw2_find_last_source_symtab): Update.
9125 (dw2_map_expand_apply): Update.
9126 (dw2_lookup_symbol): Update.
9127 (dw2_expand_symtabs_for_function): Update.
9128 (dw2_expand_all_symtabs): Update.
9129 (dw2_expand_symtabs_with_fullname): Update.
9130 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9131 don't use per_cu->dwarf2_per_objfile.
9132 (dw2_expand_marked_cus): Update.
9133 (dw2_find_pc_sect_compunit_symtab): Update.
9134 (dw2_debug_names_lookup_symbol): Update.
9135 (dw2_debug_names_expand_symtabs_for_function): Update.
9136 (dw2_debug_names_map_matching_symbols): Update.
9137 (dwarf2_psymtab::expand_psymtab): Update.
9138
9e021579
SM
91392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9142 <per_objfile>: New member.
9143 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9144 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9145 call to dwarf2_cu.
9146 (cutu_reader::cutu_reader): Update.
9147 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9148
ae090bdb
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9152 struct dwarf2_per_objfile.
9153 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9154 dwarf2_per_bfd.
9155 * dwarf2/read.c (set_die_type): Update.
9156 (get_die_type_at_offset): Update.
9157
af758d11
SM
91582020-05-27 Tom Tromey <tom@tromey.com>
9159 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9162 method.
9163 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9164 get_symtab, set_symtab>: New methods.
9165 <m_symtabs>: New field.
9166 (struct dwarf2_psymtab): Derive from partial_symtab.
9167 <readin_p, get_compunit_symtab>: Declare methods.
9168 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9169 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9170 New methods.
9171 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9172 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9173 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9174 (dw2_symtab_iter_next, dw2_print_stats)
9175 (dw2_expand_symtabs_with_fullname)
9176 (dw2_expand_symtabs_matching_one)
9177 (dw_expand_symtabs_matching_file_matcher)
9178 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9179 (dw2_debug_names_iterator::next)
9180 (dw2_debug_names_map_matching_symbols)
9181 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9182 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9183 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9184 New methods.
9185 (get_compunit_symtab, process_full_comp_unit)
9186 (process_full_type_unit): Update.
9187 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9188
5989a64e
SM
91892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9190
9191 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9192 then introduce a new dwarf2_per_objfile type.
9193 <read_line_string>: Move to the new dwarf2_per_objfile type.
9194 <objfile>: Likewise.
9195 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9196 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9197 dwarf2_per_objfile->per_bfd.
9198 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9199 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9200 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9201 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9202 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9203 (dwarf2_per_objfile::locate_sections): Rename to...
9204 (dwarf2_per_bfd::locate_sections): ... this.
9205 (dwarf2_per_objfile::get_cutu): Rename to...
9206 (dwarf2_per_bfd::get_cutu): ... this.
9207 (dwarf2_per_objfile::get_cu): Rename to...
9208 (dwarf2_per_bfd::get_cu): ... this.
9209 (dwarf2_per_objfile::get_tu): Rename to...
9210 (dwarf2_per_bfd::get_tu): ... this.
9211 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9212 (dwarf2_per_bfd::allocate_per_cu): ... this.
9213 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9214 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9215 (get_gdb_index_contents_ftype): Change parameter from
9216 dwarf2_per_objfile to dwarf2_per_bfd.
9217 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9218 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9219
a50264ba
TT
92202020-05-27 Tom Tromey <tom@tromey.com>
9221 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9224 (allocate_piece_closure): Set "per_objfile" member.
9225 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9226 (locexpr_describe_location, loclist_describe_location): Use new
9227 member.
9228 * dwarf2/read.c (read_call_site_scope)
9229 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9230 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9231 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9232 handle_data_member_location): Set per_objfile member.
9233 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9234 member.
9235 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9236
d3473f0c
TT
92372020-05-27 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9240 allocate_signatured_type>: Declare new methods.
9241 <m_num_psymtabs>: New member.
9242 (struct dwarf2_per_cu_data) <index>: New member.
9243 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9244 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9245 (create_cu_from_index_list): Use allocate_per_cu.
9246 (create_signatured_type_table_from_index)
9247 (create_signatured_type_table_from_debug_names)
9248 (create_debug_type_hash_table, add_type_unit)
9249 (read_comp_units_from_section): Use allocate_signatured_type.
9250
5717c425
TT
92512020-05-27 Tom Tromey <tom@tromey.com>
9252
9253 * psymtab.c (partial_map_expand_apply)
9254 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9255 (psym_lookup_global_symbol_language)
9256 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9257 (psym_print_stats, psym_expand_symtabs_for_function)
9258 (psym_map_symbol_filenames, psym_map_matching_symbols)
9259 (psym_expand_symtabs_matching)
9260 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9261 (maintenance_check_psymtabs): Update.
9262 * psympriv.h (struct partial_symtab) <readin_p,
9263 get_compunit_symtab>: Add objfile parameter.
9264 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9265 Likewise.
9266 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9267 get_compunit_symtab>: Likewise.
9268 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9269
45940949
TT
92702020-05-27 Tom Tromey <tom@tromey.com>
9271
9272 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9273 member.
9274 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9275 (create_cu_from_index_list)
9276 (create_signatured_type_table_from_index)
9277 (create_signatured_type_table_from_debug_names)
9278 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9279 (dwarf2_create_include_psymtab)
9280 (create_debug_type_hash_table, add_type_unit)
9281 (create_type_unit_group, read_comp_units_from_section)
9282 (dwarf2_compute_name, create_cus_hash_table)
9283 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9284 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9285 obstack.
9286 (dw2_get_real_path): Likewise. Change argument to
9287 dwarf2_per_objfile.
9288
f8c6d152
LM
92892020-05-27 Luis Machado <luis.machado@linaro.org>
9290
9291 PR tdep/26000
9292 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9293 for ldrd (immediate).
9294
e98d2e6d
PW
92952020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9296
9297 * command.h: Add comment giving the name of class_tui.
9298 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9299 create the fake command for the help for class_tui.
9300
53a47a3e
TT
93012020-05-26 Tom Tromey <tromey@adacore.com>
9302
9303 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9304 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9305 (val_atr): New function.
9306 (value_val_atr): Use it.
9307 * ada-valprint.c (print_optional_low_bound): Change low bound
9308 handling for enums.
9309 (val_print_packed_array_elements): Don't call discrete_position.
9310 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9311 discrete_position for enum types.
9312 * language.c (default_print_array_index): Change type.
9313 * language.h (struct language_defn) <la_print_array_index>: Add
9314 index_type parameter, change type of index_value.
9315 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9316 (default_print_array_index): Update.
9317 * valprint.c (maybe_print_array_index): Don't call
9318 value_from_longest. Update.
9319 (value_print_array_elements): Don't call discrete_position.
9320
0bc2354b
TT
93212020-05-26 Tom Tromey <tromey@adacore.com>
9322
9323 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9324 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9325
1218a4bf
CDA
93262020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9327
9328 PR gdb/13519
9329 * avr-tdep.c (avr_integer_to_address): Return data or code
9330 address accordingly to the second 'type' argument of the
9331 function.
9332
92651b1d
MW
93332020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9334
9335 * infcmd.c, inferior.h: (construct_inferior_arguments):
9336 Moved function from here to gdbsupport/common-inferior.{h,cc}
9337
0a4f5f8c
TT
93382020-05-23 Tom Tromey <tom@tromey.com>
9339
9340 Revert commit eca1f90c:
9341 * NEWS: Remove entry for completion styling.
9342 * completer.c (_rl_completion_prefix_display_length): Move
9343 declaration later.
9344 (gdb_fnprint): Revert.
9345 (gdb_display_match_list_1): Likewise.
9346 * cli/cli-style.c (completion_prefix_style)
9347 (completion_difference_style, completion_suffix_style): Remove.
9348 (_initialize_cli_style): Revert.
9349 * cli/cli-style.h (completion_prefix_style)
9350 (completion_difference_style, completion_suffix_style): Don't
9351 declare.
9352
e08bd6c5
PA
93532020-05-24 Pedro Alves <palves@redhat.com>
9354
9355 * symtab.c (completion_list_add_name): Return boolean indication
9356 of whether the symbol matched.
9357 (completion_list_add_symbol): Don't try to remove C++ aliases if
9358 the symbol didn't match in the first place.
9359 * symtab.h (completion_list_add_name): Return bool.
9360
ceacbf6e
SM
93612020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9362
9363 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9364 type::field.
9365
26f16254
JB
93662020-05-23 Joel Brobecker <brobecker@adacore.com>
9367
9368 GDB 9.2 released.
9369
eca1f90c
TT
93702020-05-23 Tom Tromey <tom@tromey.com>
9371
9372 * NEWS: Add entry for completion styling.
9373 * completer.c (_rl_completion_prefix_display_length): Move
9374 declaration earlier.
9375 (gdb_fnprint): Use completion_style.
9376 (gdb_display_match_list_1): Likewise.
9377 * cli/cli-style.c (completion_prefix_style)
9378 (completion_difference_style, completion_suffix_style): New
9379 globals.
9380 (_initialize_cli_style): Register new globals.
9381 * cli/cli-style.h (completion_prefix_style)
9382 (completion_difference_style, completion_suffix_style): Declare.
9383
51e2cfa2
PA
93842020-05-23 Pedro Alves <palves@redhat.com>
9385
9386 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9387 (parse_escape): Use ISDIGIT instead of isdigit.
9388 (puts_debug): Use gdb_isprint instead of isprint.
9389 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9390 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9391 ISSPACE instead of isspace.
9392 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9393 instead of isspace.
9394 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9395 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9396 instead of isxdigit and ISDIGIT instead of isdigit.
9397
80fc5e77
SM
93982020-05-22 Simon Marchi <simon.marchi@efficios.com>
9399
9400 * gdbtypes.h (struct type) <field>: New method.
9401 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9402 or type::field.
9403
3cabb6b0
SM
94042020-05-22 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9407 (TYPE_FIELDS): Use type::fields. Change all call sites that
9408 modify the propery to use type::set_fields instead.
9409
1f704f76
SM
94102020-05-22 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9413 type::num_fields instead.
9414
5e33d5f4
SM
94152020-05-22 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9418 methods.
9419 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9420 that modify the number of fields to use type::set_num_fields
9421 instead.
9422
9392ebb3
TT
94232020-05-22 Tom Tromey <tromey@adacore.com>
9424
9425 * compile/compile-object-load.h (munmap_list_free): Don't
9426 declare.
9427
7c13f4e8
AB
94282020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * annotate.c (annotate_source_line): Update return type, add call
9431 to update current symtab and line.
9432 * annotate.h (annotate_source_line): Update return type, and
9433 extend header comment.
9434 * source.c (info_line_command): Check annotation_level before
9435 calling annotate_source_line.
9436 * stack.c (print_frame_info): If calling annotate_source_line
9437 returns true, then don't print any other source line information.
9438
aa370940
SM
94392020-05-21 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9442
84d53fa9
SM
94432020-05-21 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * coffread.c (patch_type): Remove NULL check before xfree.
9446 * corefile.c (set_gnutarget): Likewise.
9447 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9448 * exec.c (build_section_table): Likewise.
9449 * remote.c (remote_target::pass_signals): Likewise.
9450 * utils.c (n_spaces): Likewise.
9451 * cli/cli-script.c (document_command): Likewise.
9452 * i386-windows-tdep.c (core_process_module_section): Likewise.
9453 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9454
9d428aae
SM
94552020-05-20 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * symfile.c (reread_symbols): Clear objfile's section_offsets
9458 vector and section indices, re-compute them by calling
9459 sym_offsets.
9460
250106a7
TT
94612020-05-20 Tom Tromey <tromey@adacore.com>
9462
9463 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9464 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9465
9a0bacfb
TV
94662020-05-20 Tom de Vries <tdevries@suse.de>
9467
9468 PR symtab/25833
9469 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9470
7b958a48
AM
94712020-05-20 Alan Modra <amodra@gmail.com>
9472
9473 PR 25993
9474 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9475 bfd_set_filename.
9476 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9477 passed to bfd_set_filename.
9478 * symfile-mem.c (add_vsyscall_page): Likewise for string
9479 passed to symbol_file_add_from_memory.
9480 (symbol_file_add_from_memory): Make name param a const char* and
9481 don't strdup.
9482
c7e97679
AM
94832020-05-20 Alan Modra <amodra@gmail.com>
9484
9485 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9486 rather than accessing bfd->filename directly.
9487 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9488 and use bfd_section_name.
9489 * dwarf2/frame.c (decode_frame_entry): Likewise.
9490 * exec.c (exec_set_section_address): Likewise.
9491 * solib-aix.c (solib_aix_bfd_open): Likewise.
9492 * stap-probe.c (get_stap_base_address): Likewise.
9493 * symfile.c (reread_symbols): Likewise.
9494
563c591b
TT
94952020-05-19 Tom Tromey <tromey@adacore.com>
9496
9497 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9498
f408d82c
SM
94992020-05-19 Simon Marchi <simon.marchi@efficios.com>
9500
9501 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9502
98c59b52
PA
95032020-05-19 Pedro Alves <palves@redhat.com>
9504
9505 * NEWS (set exec-file-mismatch): Adjust entry.
9506 * exec.c: Include "build-id.h".
9507 (validate_exec_file): Try to match build IDs instead of filenames.
9508 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9509 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9510 and pass down 'warn_if_slow'.
9511 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9512 gdb_bfd_open_closure to pass it down.
9513 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9514
4111f652
PA
95152020-05-19 Pedro Alves <palves@redhat.com>
9516
9517 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9518 * target.c (target_fileio_open_1): Rename to target_fileio_open
9519 and make extern. Use bool.
9520 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9521 (target_fileio_read_alloc_1): Adjust.
9522 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9523 (target_fileio_open_warn_if_slow): Delete declaration.
9524
ad80db5b
PA
95252020-05-19 Pedro Alves <palves@redhat.com>
9526
9527 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9528 Adjust all callers.
9529
1d6ce4d3
YS
95302020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9531
9532 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9533 whether disp is negative.
9534
9005fbbb
SM
95352020-05-19 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * symfile.h (struct symfile_segment_data)
9538 <~symfile_segment_data>: Remove.
9539 <segment_info>: Change to std::vector.
9540 * symfile.c (default_symfile_segments): Update.
9541 * elfread.c (elf_symfile_segments): Update.
9542
68b888ff
SM
95432020-05-19 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9546 <segments>: New.
9547 <segment_bases, segment_sizes>: Remove.
9548 * symfile.c (default_symfile_segments): Update.
9549 * elfread.c (elf_symfile_segments): Update.
9550 * remote.c (remote_target::get_offsets): Update.
9551 * solib-target.c (solib_target_relocate_section_addresses):
9552 Update.
9553
62982abd
SM
95542020-05-19 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * symfile.h (struct symfile_segment_data): Initialize fields.
9557 <~symfile_segment_data>: Add.
9558 (symfile_segment_data_up): New.
9559 (struct sym_fns) <sym_segments>: Return a
9560 symfile_segment_data_up.
9561 (default_symfile_segments): Return a symfile_segment_data_up.
9562 (free_symfile_segment_data): Remove.
9563 (get_symfile_segment_data): Return a symfile_segment_data_up.
9564 * symfile.c (default_symfile_segments): Likewise.
9565 (get_symfile_segment_data): Likewise.
9566 (free_symfile_segment_data): Remove.
9567 (symfile_find_segment_sections): Update.
9568 * elfread.c (elf_symfile_segments): Return a
9569 symfile_segment_data_up.
9570 * remote.c (remote_target::get_offsets): Update.
9571 * solib-target.c (solib_target_relocate_section_addresses):
9572 Update.
9573 * symfile-debug.c (debug_sym_segments): Return a
9574 symfile_segment_data_up.
9575
7f204339
RO
95762020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9577
e52a0f1b
RO
9578 PR build/25981
9579 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9580 Hardcode register numbers.
9581
7f204339
RO
9582 PR build/25981
9583 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9584 procfs_find_LDT_entry): Remove.
9585 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9586 procfs_find_LDT_entry): Remove.
9587 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9588 Remove.
9589
7f32a4d5
PA
95902020-05-17 Pedro Alves <palves@redhat.com>
9591 Andrew Burgess <andrew.burgess@embecosm.com>
9592 Keno Fischer <keno@juliacomputing.com>
9593
9594 PR gdb/25741
9595 * breakpoint.c (build_target_condition_list): Update comments.
9596 (build_target_command_list): Update comments and skip matching
9597 locations.
9598 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9599 a separate function. Simplify "set breakpoint auto-hw off"
9600 handling.
9601 (insert_breakpoints): Update comment.
9602 (tracepoint_locations_match): New parameter. For breakpoints,
9603 compare location types too, if the caller wants to.
9604 (handle_automatic_hardware_breakpoints): New functions.
9605 (bp_location_is_less_than): Also sort by location type and
9606 hardware breakpoint length.
9607 (update_global_location_list): Handle "set breakpoint auto-hw on"
9608 here.
9609 (update_breakpoint_locations): Ask breakpoint_locations_match to
9610 ignore location types.
9611
7d93a1e0
SM
96122020-05-16 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9615 type::name instead.
9616
d0e39ea2
SM
96172020-05-16 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * gdbtypes.h (struct type) <name, set_name>: New methods.
9620 (TYPE_CODE): Use type::name. Change all call sites used to set
9621 the name to use type::set_name instead.
9622
2dab0c7b
TT
96232020-05-16 Tom Tromey <tom@tromey.com>
9624
9625 * top.c (quit_force): Update.
9626 * infrun.c (handle_no_resumed): Update.
9627 * top.h (all_uis): New function.
9628 (ALL_UIS): Remove.
9629
59f7bd8d
SM
96302020-05-16 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9633
9bf058f0
PA
96342020-05-16 Pedro Alves <palves@redhat.com>
9635
9636 * ia64-linux-nat.c
9637 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9638 Declare method.
9639 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9640
8f86ae1a
SM
96412020-05-15 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9644 (sparc64_adi_info): Likewise.
9645
d6bc0792
TT
96462020-05-15 Tom Tromey <tom@tromey.com>
9647
9648 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9649 block_objfile.
9650 (lookup_objfile_from_block): Remove.
9651 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9652 (lookup_global_symbol): Use block_objfile.
9653 * symtab.h (lookup_objfile_from_block): Don't declare.
9654 * printcmd.c (clear_dangling_display_expressions): Use
9655 block_objfile.
9656 * parse.c (operator_check_standard): Use block_objfile.
9657
8c14c3a3
TT
96582020-05-15 Tom Tromey <tom@tromey.com>
9659
9660 * language.c (language_alloc_type_symbol): Set
9661 SYMBOL_SECTION.
9662 * symtab.c (initialize_objfile_symbol): Remove.
9663 (allocate_symbol): Remove.
9664 (allocate_template_symbol): Remove.
9665 * dwarf2/read.c (fixup_go_packaging): Use "new".
9666 (new_symbol): Use "new".
9667 (read_variable): Don't call initialize_objfile_symbol. Use
9668 "new".
9669 (read_func_scope): Use "new".
9670 * xcoffread.c (process_xcoff_symbol): Don't call
9671 initialize_objfile_symbol.
9672 (SYMBOL_DUP): Remove.
9673 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9674 "new".
9675 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9676 (allocate_template_symbol): Don't declare.
9677 (struct symbol): Add copy constructor. Change defaults.
9678 * jit.c (finalize_symtab): Use "new".
9679 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9680 Use "new".
9681 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9682 (common_block_end): Use "new".
9683 * mdebugread.c (parse_symbol): Use "new".
9684 (new_symbol): Likewise.
9685
5b4a1a8d
PW
96862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9687
9688 * NEWS: Mention changes to help and apropos.
9689
57b4f16e
PW
96902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9691
9692 * command.h (enum command_class): Improve comments, document
9693 that class_alias is for user-defined aliases, give the class
9694 name for each class, remove unused class_xdb.
9695 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9696 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9697 by a precise class.
9698 * infcmd.c (_initialize_infcmd): Likewise.
9699 * reverse.c (_initialize_reverse): Likewise.
9700 * stack.c (_initialize_stack): Likewise.
9701 * symfile.c (_initialize_symfile): Likewise.
9702 * tracepoint.c (_initialize_tracepoint): Likewise.
9703
7c05caf7
PW
97042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9705
9706 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9707 when their aliased command is traversed.
9708 (help_cmd): Add fput_command_names_styled call to
9709 output command name and aliases when command has an alias.
9710
3b3aaacb
PW
97112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9712
9713 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9714 * cli/cli-decode.c (help_cmd_list): Declare as static,
9715 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9716 a command together with the command.
9717 (fput_command_name_styled, fput_command_names_styled): New functions.
9718 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9719 fput_command_name_styled.
9720 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9721 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9722
7aa1b46f
PW
97232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9724
9725 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9726 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9727 * command.h (cmd_show_list): Likewise.
9728 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9729 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9730
89bcba74
PW
97312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9732
9733 * unittests/command-def-selftests.c (traverse_command_structure):
9734 Verify all commands of a list have the same prefix command and
9735 that only the top cmdlist commands have a null prefix.
9736
3f4d92eb
PW
97372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9738
9739 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9740 as prefix, not one of its aliases.
9741 (set_cmd_prefix): Remove.
9742 (do_add_cmd): Centralize the setting of the prefix of a command, when
9743 command is defined after its full chain of prefix commands.
9744 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9745 (add_setshow_cmd_full): Likewise.
9746 (update_prefix_field_of_prefixed_commands): New function.
9747 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9748 update_prefix_field_of_prefixed_commands.
9749 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9750 addresses of remote_set_cmdlist and remote_show_cmdlist given
9751 as argument, not the address of an argument.
9752 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9753 * gdb/remote.c (_initialize_remote): Likewise.
9754
0605465f
PW
97552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9756
9757 * cli/cli-cmds.c (alias_command): Check for an existing alias
9758 using lookup_cmd_composition, as valid_command_p is too strict
9759 and forbids aliases that are the prefix of an existing alias
9760 or command.
9761 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9762 command is properly recognised as a valid command.
9763
58e6ac70
PW
97642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9765
9766 * unittests/help-doc-selftests.c: Rename to
9767 unittests/command-def-selftests.c
9768 * unittests/command-def-selftests.c (help_doc_tests): Update some
9769 comments.
9770 (command_structure_tests, traverse_command_structure): New namespace
9771 and function.
9772 (command_structure_invariants_tests): New function.
9773 (_initialize_command_def_selftests) Renamed from
9774 _initialize_help_doc_selftests, register command_structure_invariants
9775 selftest.
9776
a7b9ceb8
PW
97772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9778
9779 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9780 an alias of 'show'.
9781
b2188a06
JB
97822020-05-15 Joel Brobecker <brobecker@adacore.com>
9783
9784 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9785 ada_is_fixed_point_type. Update all callers.
9786 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9787 all callers.
9788 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9789 Update all callers.
9790 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9791 print_fixed_point_type. Update all callers.
9792 * ada-valprint.c (ada_value_print_num): Replace call to
9793 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9794
a51951c2
KB
97952020-05-14 Kevin Buettner <kevinb@redhat.com>
9796
9797 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9798 processors.
9799 (cpu_supports_bts): Add CV_AMD case.
9800
29d6859f
LM
98012020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9802 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * infrun.c (stop_all_threads): Collect multiple wait events at
9805 each pass.
9806
78134374
SM
98072020-05-14 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9810 type::code instead.
9811
67607e24
SM
98122020-05-14 Simon Marchi <simon.marchi@efficios.com>
9813
9814 * gdbtypes.h (struct type) <code, set_code>: New methods.
9815 (TYPE_CODE): Use type::code. Change all call sites used to set
9816 the code to use type::set_code instead.
9817
a05575d3
TBA
98182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9819 Tom de Vries <tdevries@suse.de>
9820 Pedro Alves <palves@redhat.com>
9821
9822 PR threads/25478
9823 * infrun.c (stop_all_threads): Do NOT ignore
9824 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9825 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9826 received.
9827 (handle_no_resumed): Remove code handling a live inferior with no
9828 threads.
9829 * remote.c (has_single_non_exited_thread): New.
9830 (remote_target::update_thread_list): Do not delete a thread if is
9831 the last thread of the process.
9832 * thread.c (thread_select): Call delete_exited_threads instead of
9833 prune_threads.
9834
6ad82919
TBA
98352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9836
9837 * infrun.c (stop_all_threads): Enable/disable thread events of all
9838 targets. Move a debug message denoting the end of the function
9839 into the SCOPED_EXIT block.
9840
d890404b
TBA
98412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9842
9843 * process-stratum-target.h: Include <set>.
9844 (all_non_exited_process_targets, switch_to_target_no_thread): New
9845 function declarations.
9846 * process-stratum-target.c (all_non_exited_process_targets)
9847 (switch_to_target_no_thread): New function implementations.
9848
293b3ebc
TBA
98492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9850
9851 * infrun.c (handle_inferior_event): Extract out a piece of code
9852 into...
9853 (mark_non_executing_threads): ...this new function.
9854
7ca9b62a
TBA
98552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9856
9857 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9858 use.
9859
fc75c28b
TBA
98602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9861
9862 * regcache.c (regcache_read_pc_protected): New function
9863 implementation that returns 0 if the PC cannot read via
9864 'regcache_read_pc'.
9865 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9866 instead of 'regcache_read_pc'.
9867 (keep_going_pass_signal): Ditto.
9868
a89febbd
TT
98692020-05-13 Tom Tromey <tromey@adacore.com>
9870
9871 * ada-lang.c (align_value): Remove.
9872 (ada_template_to_fixed_record_type_1): Use align_up.
9873
f7e23710
TBA
98742020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9875
9876 * async-event.c: Update the copyright year.
9877 * async-event.h: Update the copyright year.
9878
02ff80c2
SM
98792020-05-12 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * objfiles.h (is_addr_in_objfile,
9882 shared_objfile_contains_address_p): Return bool.
9883 * objfile.c (is_addr_in_objfile,
9884 shared_objfile_contains_address_p): Return bool.
9885
4fd6c7e8
TT
98862020-05-11 Tom Tromey <tromey@adacore.com>
9887
9888 * cli/cli-cmds.c (info_command): Restore.
9889 (_initialize_cli_cmds): Use add_prefix_command for "info".
9890 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9891
5eb68a39
TT
98922020-05-11 Tom Tromey <tromey@adacore.com>
9893
9894 * ada-lang.c (ada_value_primitive_field): Now public.
9895 * ada-lang.h (ada_value_primitive_field): Declare.
9896 * ada-valprint.c (print_field_values): Use
9897 ada_value_primitive_field for wrapper fields.
9898
7666722f
TV
98992020-05-11 Tom de Vries <tdevries@suse.de>
9900
9901 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9902 MODULE_DOMAIN.
9903
3ee6bb11
TV
99042020-05-11 Tom de Vries <tdevries@suse.de>
9905
9906 PR symtab/25941
9907 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9908 with length 0, if not gdb-produced.
9909 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9910
43434996
TV
99112020-05-09 Tom de Vries <tdevries@suse.de>
9912
9913 PR gdb/25955
9914 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9915 calculation.
9916
2f78cffc
TT
99172020-05-09 Tom Tromey <tom@tromey.com>
9918
9919 * top.c (server_command): Now bool.
9920 * top.h (server_command): Now bool.
9921
4f7bc5ed
TT
99222020-05-08 Tom Tromey <tromey@adacore.com>
9923
9924 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9925 already being processed.
9926
8be4b118
TT
99272020-05-08 Tom Tromey <tom@tromey.com>
9928
9929 * printcmd.c (struct display) <next>: Remove.
9930 <display>: New constructor.
9931 <exp_string>: Now a std::string.
9932 <enabled_p>: Now a bool.
9933 (display_number): Move definition earlier.
9934 (displays): Rename from display_chain. Now a std::vector.
9935 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9936 (display_command): Update.
9937 (do_one_display, disable_display)
9938 (enable_disable_display_command, do_enable_disable_display):
9939 Update.
9940 (free_display): Remove.
9941 (clear_displays): Rewrite.
9942 (delete_display): Update.
9943 (map_display_numbers): Use function_view. Remove "data"
9944 parameter. Update.
9945 (do_delete_display): Remove.
9946 (undisplay_command): Update.
9947 (do_one_display, do_displays, disable_display)
9948 (info_display_command): Update.
9949 (do_enable_disable_display): Remove.
9950 (enable_disable_display_command)
9951 (clear_dangling_display_expressions): Update.
9952
94c93c35
TT
99532020-05-08 Tom Tromey <tom@tromey.com>
9954
9955 * symtab.c (set_symbol_cache_size)
9956 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9957 (maintenance_print_symbol_cache_statistics): Update.
9958 * symmisc.c (print_symbol_bcache_statistics)
9959 (print_objfile_statistics, maintenance_print_objfiles)
9960 (maintenance_info_symtabs, maintenance_check_symtabs)
9961 (maintenance_expand_symtabs, maintenance_info_line_tables):
9962 Update.
9963 * symfile-debug.c (set_debug_symfile): Update.
9964 * source.c (forget_cached_source_info): Update.
9965 * python/python.c (gdbpy_progspaces): Update.
9966 * psymtab.c (maintenance_info_psymtabs): Update.
9967 * probe.c (parse_probes): Update.
9968 * linespec.c (iterate_over_all_matching_symtabs)
9969 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9970 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9971 * exec.c (exec_target::close): Update.
9972 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9973 * breakpoint.c (print_one_breakpoint_location)
9974 (create_longjmp_master_breakpoint)
9975 (create_std_terminate_master_breakpoint): Update.
9976 * progspace.c (program_spaces): Now a std::vector.
9977 (maybe_new_address_space): Update.
9978 (add_program_space): Remove.
9979 (program_space::program_space): Update.
9980 (remove_program_space): Update.
9981 (number_of_program_spaces): Remove.
9982 (print_program_space, update_address_spaces): Update.
9983 * progspace.h (program_spaces): Change type.
9984 (ALL_PSPACES): Remove.
9985 (number_of_program_spaces): Don't declare.
9986 (struct program_space) <next>: Remove.
9987
a1fd1ac9
TT
99882020-05-08 Tom Tromey <tom@tromey.com>
9989
9990 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9991 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9992 (enable_break): Update.
9993 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9994 (frv_fdpic_find_canonical_descriptor): Update.
9995 (frv_fetch_objfile_link_map): Update.
9996 * progspace.c (program_space::free_all_objfiles): Update.
9997 (program_space::solibs): New method.
9998 * progspace.h (struct program_space) <solibs>: New method.
9999 * solist.h (master_so_list): Don't declare.
10000 (ALL_SO_LIBS): Remove.
10001 * solib.h (so_list_head): Remove.
10002 (update_solib_list): Update comment.
10003 * solib.c (master_so_list): Remove.
10004 (solib_used, update_solib_list, solib_add)
10005 (info_sharedlibrary_command, clear_solib)
10006 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10007
38eae084
TT
100082020-05-08 Tom Tromey <tom@tromey.com>
10009
10010 * extension.c (extension_languages): Now a std::array.
10011 (ALL_EXTENSION_LANGUAGES): Remove.
10012 (get_ext_lang_defn, get_ext_lang_of_file)
10013 (eval_ext_lang_from_control_command): Update.
10014 (finish_ext_lang_initialization)
10015 (auto_load_ext_lang_scripts_for_objfile)
10016 (ext_lang_type_printers::ext_lang_type_printers)
10017 (apply_ext_lang_type_printers)
10018 (ext_lang_type_printers::~ext_lang_type_printers)
10019 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10020 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10021 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10022 (get_matching_xmethod_workers, ext_lang_colorize)
10023 (ext_lang_before_prompt): Update.
10024 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10025
596dc4ad
TT
100262020-05-08 Tom Tromey <tom@tromey.com>
10027
10028 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10029 overload.
10030 <swap_string, m_string>: Remove.
10031 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10032 Update.
10033 * stabsread.c (define_symbol, read_type): Update.
10034 * linespec.c (find_linespec_symbols): Update.
10035 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10036 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10037 * dbxread.c (read_dbx_symtab): Update.
10038 * cp-support.h (cp_canonicalize_string_full)
10039 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10040 Return unique_xmalloc_ptr.
10041 * cp-support.c (inspect_type): Update.
10042 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10043 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10044 Likewise.
10045 * c-typeprint.c (print_name_maybe_canonical): Update.
10046 * break-catch-throw.c (check_status_exception_catchpoint):
10047 Update.
10048
bf4cb9be
TV
100492020-05-08 Tom de Vries <tdevries@suse.de>
10050
10051 * infrun.c (follow_fork): Copy current_line and current_symtab to
10052 child thread.
10053
a1b68f28
SM
100542020-05-07 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * async-event.c (struct async_signal_handler, struct
10057 async_event_handler): Reformat, remove typedef.
10058
98d48915
SM
100592020-05-07 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10062 access thistype->main_type->dyn_prop_list directly.
10063
7aa91313
SM
100642020-05-07 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10067 (remove_dyn_prop): Remove. Update all users to use
10068 type::remove_dyn_prop.
10069 * gdbtypes.c (remove_dyn_prop): Rename to...
10070 (type::remove_dyn_prop): ... this.
10071
5c54719c
SM
100722020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10073
10074 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10075 (add_dyn_prop): Remove. Update all users to use
10076 type::add_dyn_prop.
10077 * gdbtypes.c (add_dyn_prop): Rename to...
10078 (type::add_dyn_prop): ... this.
10079
24e99c6c
SM
100802020-05-07 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10083 (get_dyn_prop): Remove. Update all users to use
10084 type::dyn_prop.
10085 * gdbtypes.c (get_dyn_prop): Rename to...
10086 (type::dyn_prop): ... this.
10087
0d4bf016
SM
100882020-05-06 Simon Marchi <simon.marchi@efficios.com>
10089
10090 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10091
ac4a4f1c
SM
100922020-05-06 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10095 instruction, skip it if it's there.
10096
a3bbacc1
SM
100972020-05-05 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10100
c3236f84
SM
101012020-05-04 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10104 * gdbtypes.c (recursive_dump_type): Remove use of
10105 TYPE_INCOMPLETE.
10106
3b6acaee
TT
101072020-05-03 Tom Tromey <tom@tromey.com>
10108
10109 * breakpoint.c (catch_command, tcatch_command): Remove.
10110 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10111 add_show_prefix_cmd.
10112 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10113 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10114 Remove.
10115 (add_internal_problem_command): Use add_basic_prefix_cmd,
10116 add_show_prefix_cmd.
10117 * mips-tdep.c (set_mipsfpu_command): Remove.
10118 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10119 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10120 (_initialize_index_cache): Use add_basic_prefix_cmd.
10121 * memattr.c (dummy_cmd): Remove.
10122 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10123 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10124 (_initialize_tui_win): Use add_basic_prefix_cmd,
10125 add_show_prefix_cmd.
10126 * cli/cli-logging.c (set_logging_command): Remove.
10127 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10128 add_show_prefix_cmd.
10129 (show_logging_command): Remove.
10130 * target.c (target_command): Remove.
10131 (add_target): Use add_basic_prefix_cmd.
10132
a51119cd
HD
101332020-05-02 Hannes Domani <ssbssa@yahoo.de>
10134
10135 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10136
652fc23a 101372020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10138
652fc23a
PW
10139 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10140 info_command.
10141
117539e6
KR
101422020-04-30 Kamil Rytarowski <n54@gmx.com>
10143
10144 * nbsd-nat.c (nbsd_enable_proc_events)
10145 (nbsd_nat_target::post_startup_inferior): Add.
10146 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10147 (nbsd_nat_target::update_thread_list): Rewrite.
10148 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10149 "PTRACE_LWP_CREATE".
10150 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10151
102e38eb 101522020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10153
102e38eb
PW
10154 * stack.c (_initialize_stack): Remove duplicated creation
10155 of "frame" command and "f" alias.
10156
ee9d1e5f
HD
101572020-04-30 Hannes Domani <ssbssa@yahoo.de>
10158
10159 PR gdb/18706
10160 * gdbtypes.c (check_typedef): Calculate size of array of
10161 stubbed type.
10162
627c7fb8
HD
101632020-04-30 Hannes Domani <ssbssa@yahoo.de>
10164
10165 PR gdb/15559
10166 * i386-tdep.c (i386_push_dummy_call): Call
10167 i386_thiscall_push_dummy_call.
10168 (i386_thiscall_push_dummy_call): New function.
10169 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10170 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10171 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10172
ffc2844e
SM
101732020-04-29 Simon Marchi <simon.marchi@efficios.com>
10174
10175 * gdbarch.sh (do_read): Add shellcheck disable directive for
10176 warning SC2162.
10177
1207375d
SM
101782020-04-29 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10181 "referenced but not assigned" warning.
10182
9fdb2916
SM
101832020-04-29 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * gdbarch.sh: Remove code that sets fallbackdefault.
10186
759cea5e
SM
101872020-04-29 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * gdbarch.sh: Use shell operators && and || instead of
10190 -a and -o.
10191
cb02ab24
SM
101922020-04-29 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * gdbarch.sh: Use $(...) instead of `...`.
10195
a6fc5ffc
SM
101962020-04-29 Simon Marchi <simon.marchi@efficios.com>
10197
10198 * gdbarch.sh: Use double quotes around variables.
10199
8d113d13
SM
102002020-04-29 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * gdbarch.sh: Use %s with printf, instead of variables in the
10203 format string.
10204
ed6acedd
TT
102052020-04-29 Tom Tromey <tromey@adacore.com>
10206
10207 PR ada/25875:
10208 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10209 type fields here.
10210 (read_enumeration_type): Call
10211 update_enumeration_type_from_children later. Update comments.
10212 (process_enumeration_scope): Don't create type fields.
10213
b68b1b58
KR
102142020-04-29 Kamil Rytarowski <n54@gmx.com>
10215
10216 * nbsd-tdep.c: Include "xml-syscall.h".
10217 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10218
f94b2e03
KR
102192020-04-29 Kamil Rytarowski <n54@gmx.com>
10220
10221 * nbsd-nat.c: Include "sys/wait.h".
10222 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10223 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10224 (nbsd_nat_target::remove_exec_catchpoint)
10225 (nbsd_nat_target::set_syscall_catchpoint): Add.
10226 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10227 (nbsd_nat_target::insert_exec_catchpoint)
10228 (nbsd_nat_target::remove_exec_catchpoint)
10229 (nbsd_nat_target::set_syscall_catchpoint): Add.
10230 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10231 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10232 `nbsd_get_syscall_number'.
10233
fc49bc72
TT
102342020-04-29 Tom Tromey <tom@tromey.com>
10235
10236 * stack.c (print_block_frame_labels): Remove.
10237
d642b692
HD
102382020-04-29 Hannes Domani <ssbssa@yahoo.de>
10239
10240 PR gdb/17320
10241 * ada-valprint.c (val_print_packed_array_elements): Move array
10242 end bracket to new line.
10243 (ada_val_print_string): Remove extra spaces before first array
10244 element.
10245 * c-valprint.c (c_value_print_array): Likewise.
10246 * m2-valprint.c (m2_print_array_contents): Likewise.
10247 (m2_value_print_inner): Likewise.
10248 * p-valprint.c (pascal_value_print_inner): Likewise.
10249 * valprint.c (generic_val_print_array): Likewise.
10250 (value_print_array_elements): Move first array element and array
10251 end bracket to new line.
10252
ea90f227
TV
102532020-04-29 Tom de Vries <tdevries@suse.de>
10254
10255 PR symtab/25889
10256 * linespec.c (find_method): Fix ix calculation.
10257
4498ef4f
KR
102582020-04-28 Kamil Rytarowski <n54@gmx.com>
10259
10260 * syscalls/update-netbsd.sh: New file.
10261 * syscalls/netbsd.xml: Regenerate.
10262 * data-directory/Makefile.in: Register `netbsd.xml' in
10263 `SYSCALLS_FILES'.
10264
a55e30b5
SM
102652020-04-28 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * syscalls/update-freebsd.sh: Add double quotes.
10268
2b2fbab8
TT
102692020-04-28 Tom Tromey <tom@tromey.com>
10270
10271 * NEWS: Update.
10272 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10273 (cmdpy_init): Allow class_tui.
10274
a65189c9
TV
102752020-04-28 Mark Williams <mark@myosotissp.com>
10276
10277 PR gdb/24480
10278 * dwarf2read.c: Add missing assingments to list_in_scope when
10279 start_symtab was already called.
10280
1b95cdb7
SM
102812020-04-28 Simon Marchi <simon.marchi@efficios.com>
10282
10283 PR gdb/25881
10284 * dwarf2/read.c (offset_map_type): Use
10285 gdb:hash_enum<sect_offset> as hash function.
10286
15cd93d0
TV
102872020-04-28 Tom de Vries <tdevries@suse.de>
10288
10289 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10290 with DW_AT_signature.
10291
1eb39914
SM
102922020-04-27 Simon Marchi <simon.marchi@efficios.com>
10293
10294 * configure.ac: Remove check for fs_base/gs_base in
10295 user_regs_struct.
10296 * configure: Re-generate.
10297 * config.in: Re-generate.
10298 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10299 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10300 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10301
991a3e2e
LM
103022020-04-27 Luis Machado <luis.machado@linaro.org>
10303
10304 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10305 problematic inline frame unwinding situation.
10306 * frame.c (frame_id_computed_p): New function.
10307 * frame.h (frame_id_computed_p): New prototype.
10308
361ba0e8
TT
103092020-04-26 Tom Tromey <tom@tromey.com>
10310
10311 * command.h (enum command_class) <class_pseudo>: Remove.
10312
bc3609fd
PW
103132020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10314
10315 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10316 and whitespace.
10317
b9771db7
KR
103182020-04-25 Kamil Rytarowski <n54@gmx.com>
10319
ec16513e
SM
10320 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10321 `PT_GET_PROCESS_STATE' block.
b9771db7 10322
7151c1af
TT
103232020-04-24 Tom Tromey <tom@tromey.com>
10324
10325 * symtab.h (symbol_get_demangled_name): Don't declare.
10326 * symtab.c (symbol_get_demangled_name): Remove.
10327 (general_symbol_info::natural_name)
10328 (general_symbol_info::demangled_name): Update.
10329
906bb4c5
TT
103302020-04-24 Tom Tromey <tom@tromey.com>
10331
10332 PR rust/25025:
10333 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10334
bcfe6157
TT
103352020-04-24 Tom Tromey <tom@tromey.com>
10336
10337 PR symtab/12707:
10338 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10339 exists.
10340 (new_symbol): Likewise.
10341 * compile/compile-object-load.c (get_out_value_type): Use
10342 symbol_matches_search_name.
10343
f049a313
TT
103442020-04-24 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2/read.c (add_partial_symbol): Do not call
10347 compute_and_set_names.
10348
76e288d1
TT
103492020-04-24 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10352 overload.
10353
2467f4f6
TT
103542020-04-24 Tom Tromey <tom@tromey.com>
10355
10356 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10357 (add_psymbol_to_list): New overload. Make old overload call new
10358 one.
10359 * psympriv.h (add_psymbol_to_list): New overload.
10360
e61108c9
TT
103612020-04-24 Tom Tromey <tom@tromey.com>
10362
10363 * dwarf2/read.c (partial_die_info::read) <case
10364 DW_AT_linkage_name>: Use value_as_string.
10365 (dwarf2_string_attr): Use value_as_string.
10366 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10367 method.
10368 * dwarf2/attribute.c (attribute::value_as_string): New method.
10369
8c87a452
TT
103702020-04-24 Tom Tromey <tom@tromey.com>
10371
10372 * symtab.c (general_symbol_info::natural_name)
10373 (general_symbol_info::demangled_name): Check for language_rust.
10374
787de330
TT
103752020-04-24 Tom Tromey <tom@tromey.com>
10376
10377 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10378 (dwarf2_physname): ... from here.
10379 (partial_die_info::read): Add Rust "{" hack.
10380
ff985671
TT
103812020-04-24 Tom Tromey <tom@tromey.com>
10382
10383 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10384 method.
10385 (symbol_set_demangled_name): Don't declare.
10386 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10387 symbol_set_demangled_name.
10388 (general_symbol_info::set_language)
10389 (general_symbol_info::compute_and_set_names): Update.
10390 * minsyms.c (minimal_symbol_reader::install): Update.
10391 * dwarf2/read.c (new_symbol): Update.
10392
1acda803
TT
103932020-04-24 Tom Tromey <tromey@adacore.com>
10394
10395 PR python/23662:
10396 * python/py-type.c (convert_field): Handle
10397 FIELD_LOC_KIND_DWARF_BLOCK.
10398 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10399 (typy_get_dynamic): Nw function.
10400 (type_object_getset): Add "dynamic".
10401 * NEWS: Add entry.
10402
d656f129
TT
104032020-04-24 Tom Tromey <tromey@adacore.com>
10404
10405 * ada-typeprint.c (print_choices, print_variant_part)
10406 (print_record_field_types_dynamic): New functions.
10407 (print_record_field_types): Use print_record_field_types_dynamic.
10408
7d79de9a
TT
104092020-04-24 Tom Tromey <tromey@adacore.com>
10410
10411 * dwarf2/read.c (handle_data_member_location): New overload.
10412 (dwarf2_add_field): Use it.
10413 (decode_locdesc): Add "computed" parameter. Update comment.
10414 * gdbtypes.c (is_dynamic_type_internal): Also look for
10415 FIELD_LOC_KIND_DWARF_BLOCK.
10416 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10417 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10418 virtual base classes.
10419 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10420 FIELD_LOC_KIND_DWARF_BLOCK.
10421
f8e89861
TT
104222020-04-24 Tom Tromey <tromey@adacore.com>
10423
10424 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10425 * gdbtypes.c (is_dynamic_type_internal): Check
10426 TYPE_HAS_DYNAMIC_LENGTH.
10427 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10428 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10429 New macros.
10430 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10431 constant.
10432
9c6a1327
TT
104332020-04-24 Tom Tromey <tromey@adacore.com>
10434
10435 * dwarf2/read.c (struct variant_field): Rewrite.
10436 (struct variant_part_builder): New.
10437 (struct nextfield): Remove "variant" field. Add "offset".
10438 (struct field_info): Add "current_variant_part" and
10439 "variant_parts".
10440 (alloc_discriminant_info): Remove.
10441 (alloc_rust_variant): New function.
10442 (quirk_rust_enum): Update.
10443 (dwarf2_add_field): Set "offset" member. Don't handle
10444 DW_TAG_variant_part.
10445 (offset_map_type): New typedef.
10446 (convert_variant_range, create_one_variant)
10447 (create_one_variant_part, create_variant_parts)
10448 (add_variant_property): New functions.
10449 (dwarf2_attach_fields_to_type): Call add_variant_property.
10450 (read_structure_type): Don't handle DW_TAG_variant_part.
10451 (handle_variant_part, handle_variant): New functions.
10452 (handle_struct_member_die): Use them.
10453 (process_structure_scope): Don't handle variant parts.
10454 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10455 (struct discriminant_info): Remove.
10456 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10457 (struct main_type) <flag_discriminated_union>: Remove.
10458 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10459 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10460 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10461 Update.
10462 * valops.c (value_union_variant): Remove.
10463 * value.h (value_union_variant): Don't declare.
10464
b249d2c2
TT
104652020-04-24 Tom Tromey <tromey@adacore.com>
10466
10467 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10468 (ada_value_primitive_packed_val): Update.
10469 * ada-valprint.c (ada_value_print_1): Update.
10470 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10471 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10472 just an address. Use evaluate_for_locexpr_baton.
10473 (dwarf2_evaluate_property): Update.
10474 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10475 array_view.
10476 * findvar.c (default_read_var_value): Update.
10477 * gdbtypes.c (compute_variant_fields_inner)
10478 (resolve_dynamic_type_internal): Update.
10479 (resolve_dynamic_type): Change type of valaddr parameter.
10480 * gdbtypes.h (resolve_dynamic_type): Update.
10481 * valarith.c (value_subscripted_rvalue): Update.
10482 * value.c (value_from_contents_and_address): Update.
10483
61122aa9
TT
104842020-04-24 Tom Tromey <tromey@adacore.com>
10485
10486 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10487 "push_initial_value" parameter.
10488 (dwarf2_evaluate_property): Likewise.
10489 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10490
ef83a141
TT
104912020-04-24 Tom Tromey <tromey@adacore.com>
10492
10493 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10494 (variant::matches, compute_variant_fields_recurse)
10495 (compute_variant_fields_inner, compute_variant_fields): New
10496 functions.
10497 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10498 Use resolved_type after type is made.
10499 (operator==): Add new cases.
10500 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10501 (struct discriminant_range, struct variant, struct variant_part):
10502 New.
10503 (union dynamic_prop_data) <variant_parts, original_type>: New
10504 members.
10505 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10506 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10507 constants.
10508 * value.c (unpack_bits_as_long): Now public.
10509 * value.h (unpack_bits_as_long): Declare.
10510
675127ec
TT
105112020-04-24 Tom Tromey <tromey@adacore.com>
10512
10513 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10514 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10515
9852ceef
HD
105162020-04-24 Hannes Domani <ssbssa@yahoo.de>
10517
10518 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10519
7632c6ce
KR
105202020-04-24 Kamil Rytarowski <n54@gmx.com>
10521
10522 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10523 (remove_fork_catchpoint, post_startup_inferior)
10524 (post_attach): Move...
10525 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10526 (remove_fork_catchpoint, post_startup_inferior)
10527 (post_attach): ...here.
10528 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10529 (remove_fork_catchpoint, post_startup_inferior)
10530 (post_attach): Move...
10531 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10532 (remove_fork_catchpoint, post_startup_inferior)
10533 (post_attach): ...here.
10534
7be2bb4f
TT
105352020-04-24 Tom Tromey <tromey@adacore.com>
10536
10537 * nat/windows-nat.h (struct windows_thread_info)
10538 <pc_adjusted>: New member.
10539 * windows-nat.c (windows_fetch_one_register): Check
10540 pc_adjusted.
10541 (windows_nat_target::get_windows_debug_event)
10542 (windows_nat_target::wait): Set pc_adjusted.
10543
f80cb3b4
TV
105442020-04-24 Tom de Vries <tdevries@suse.de>
10545
10546 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10547 Run gdb-add-index inside temp dir.
10548
29514b87
TT
105492020-04-23 Tom Tromey <tromey@adacore.com>
10550
10551 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10552 in loop.
10553
5939967b
LM
105542020-04-23 Luis Machado <luis.machado@linaro.org>
10555
10556 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10557 get_frame_register instead of gdbarch_unwind_pc.
10558
70bc38f5
TV
105592020-04-23 Tom de Vries <tdevries@suse.de>
10560
10561 * symtab.c (lookup_global_symbol): Prefer def over decl.
10562
de82891c
TV
105632020-04-23 Tom de Vries <tdevries@suse.de>
10564
10565 PR symtab/25807
10566 * block.c (best_symbol, better_symbol): Promote to external.
10567 * block.h (best_symbol, better_symbol): Declare.
10568 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10569 decl.
10570
ecc6c606
TT
105712020-04-23 Tom Tromey <tromey@adacore.com>
10572
10573 PR ada/25837:
10574 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10575 "const char *", not a "const std::string &".
10576 <name_and_matcher::operator==>: Update.
10577 * unittests/lookup_name_info-selftests.c: Change type of
10578 "result".
10579
740480b8
TT
105802020-04-23 Tom Tromey <tom@tromey.com>
10581
10582 * inferior.h (iterate_over_inferiors): Don't declare.
10583 * inferior.c (iterate_over_inferiors): Remove.
10584 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10585 Remove.
10586 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10587 use iterate_over_inferiors.
10588 (darwin_resume_inferior_it)
10589 (struct resume_inferior_threads_param)
10590 (darwin_resume_inferior_threads_it): Remove.
10591 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10592
ae3ab1f0
TV
105932020-04-23 Tom de Vries <tdevries@suse.de>
10594
10595 * blockframe.c (find_pc_partial_function): Use
10596 find_pc_sect_compunit_symtab rather than
10597 objfile->sf->qf->find_pc_sect_compunit_symtab.
10598
317d2668
TV
105992020-04-22 Tom de Vries <tdevries@suse.de>
10600
10601 PR symtab/25764
10602 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10603 in psymtabs.
10604
eea9e357
TV
106052020-04-22 Tom de Vries <tdevries@suse.de>
10606
10607 PR symtab/25801
10608 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10609 symtabs.
10610
3d5afab3
TV
106112020-04-22 Tom de Vries <tdevries@suse.de>
10612
10613 PR symtab/25700
10614 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10615 CU if already created.
10616
d43b7a2d
TBA
106172020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10618
10619 * infrun.c (displaced_step_fixup): Switch to the event_thread
10620 before calling displaced_step_restore, not after.
10621
d89edf9b
MM
106222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10623
10624 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10625 its inferior is not recorded by us.
10626 (record_btrace_target_open): Replace call to
10627 all_non_exited_threads () with call to current_inferior
10628 ()->non_exited_threads ().
10629 (record_btrace_target::stop_recording): Likewise.
10630 (record_btrace_target::close): Likewise.
10631 (record_btrace_target::wait): Likewise.
10632 (record_btrace_target::record_stop_replaying): Likewise.
10633
5897fd49
MM
106342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10635
10636 * btrace.c (btrace_enable): Throw an error on double enables and
10637 when enabling recording fails.
10638 (btrace_disable): Throw an error if the thread is not recorded.
10639
1a476b6d
MM
106402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10641
10642 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10643 request if we do not have a thread_info.
10644
4778a5f8
TV
106452020-04-21 Tom de Vries <tdevries@suse.de>
10646
10647 PR gdb/25471
10648 * thread.c
10649 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10650 exception in get_frame_id.
10651
0fa7617d
TT
106522020-04-20 Tom Tromey <tromey@adacore.com>
10653
10654 * python/python.c (struct gdbpy_event): Mark move constructor as
10655 noexcept.
10656 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10657 constructor as noexcept.
10658 * completer.h (struct completion_result): Mark move constructor as
10659 noexcept.
10660 * completer.c (completion_result::completion_result): Use
10661 initialization style. Don't call reset_match_list.
10662
ad23bda0
MS
106632020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10664
10665 * MAINTAINERS (Write After Approval): Add myself.
10666
45e1f031
TT
106672020-04-18 Tom Tromey <tom@tromey.com>
10668
10669 * windows-tdep.c (init_w32_command_list)
10670 (w32_prefix_command_valid): Restore.
10671 (_initialize_windows_tdep): Call init_w32_command_list.
10672
08feed99
TT
106732020-04-18 Tom Tromey <tom@tromey.com>
10674
10675 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10676 * value.c (value_fn_field): Update.
10677 * valops.c (find_function_in_inferior)
10678 (value_allocate_space_in_inferior): Update.
10679 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10680 Update.
10681 * tui/tui-source.c (tui_source_window::set_contents): Update.
10682 * symtab.c (lookup_global_or_static_symbol)
10683 (find_function_start_sal_1, skip_prologue_sal)
10684 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10685 * symmisc.c (dump_msymbols, dump_symtab_1)
10686 (maintenance_print_one_line_table): Update.
10687 * symfile.c (init_entry_point_info, section_is_mapped)
10688 (list_overlays_command, simple_read_overlay_table)
10689 (simple_overlay_update_1): Update.
10690 * stap-probe.c (handle_stap_probe): Update.
10691 * stabsread.c (dbx_init_float_type, define_symbol)
10692 (read_one_struct_field, read_enum_type, read_range_type): Update.
10693 * source.c (info_line_command): Update.
10694 * python/python.c (gdbpy_source_objfile_script)
10695 (gdbpy_execute_objfile_script): Update.
10696 * python/py-type.c (save_objfile_types): Update.
10697 * python/py-objfile.c (py_free_objfile): Update.
10698 * python/py-inferior.c (python_new_objfile): Update.
10699 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10700 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10701 (maintenance_check_psymtabs): Update.
10702 * printcmd.c (info_address_command): Update.
10703 * objfiles.h (struct objfile) <arch>: New method, from
10704 get_objfile_arch.
10705 (get_objfile_arch): Don't declare.
10706 * objfiles.c (get_objfile_arch): Remove.
10707 (filter_overlapping_sections): Update.
10708 * minsyms.c (msymbol_is_function): Update.
10709 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10710 (output_nondebug_symbol): Update.
10711 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10712 (mdebug_expand_psymtab): Update.
10713 * machoread.c (macho_add_oso_symfile): Update.
10714 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10715 Update.
10716 * linux-fork.c (checkpoint_command): Update.
10717 * linespec.c (convert_linespec_to_sals): Update.
10718 * jit.c (finalize_symtab): Update.
10719 * infrun.c (insert_exception_resume_from_probe): Update.
10720 * ia64-tdep.c (ia64_find_unwind_table): Update.
10721 * hppa-tdep.c (internalize_unwinds): Update.
10722 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10723 Update.
10724 * gcore.c (call_target_sbrk): Update.
10725 * elfread.c (record_minimal_symbol, elf_symtab_read)
10726 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10727 (elf_gnu_ifunc_resolve_by_got): Update.
10728 * dwarf2/read.c (create_addrmap_from_index)
10729 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10730 (read_debug_names_from_section)
10731 (process_psymtab_comp_unit_reader, add_partial_symbol)
10732 (add_partial_subprogram, process_full_comp_unit)
10733 (read_file_scope, read_func_scope, read_lexical_block_scope)
10734 (read_call_site_scope, dwarf2_ranges_read)
10735 (dwarf2_record_block_ranges, dwarf2_add_field)
10736 (mark_common_block_symbol_computed, read_tag_pointer_type)
10737 (read_tag_string_type, dwarf2_init_float_type)
10738 (dwarf2_init_complex_target_type, read_base_type)
10739 (partial_die_info::read, partial_die_info::read)
10740 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10741 (dwarf2_fetch_die_loc_sect_off): Update.
10742 * dwarf2/loc.c (dwarf2_find_location_expression)
10743 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10744 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10745 (dwarf2_loc_desc_get_symbol_read_needs)
10746 (locexpr_describe_location_piece, locexpr_describe_location_1)
10747 (loclist_describe_location): Update.
10748 * dwarf2/index-write.c (write_debug_names): Update.
10749 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10750 * dtrace-probe.c (dtrace_process_dof): Update.
10751 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10752 (process_one_symbol): Update.
10753 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10754 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10755 (coff_read_enum_type): Update.
10756 * cli/cli-cmds.c (edit_command, list_command): Update.
10757 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10758 * breakpoint.c (create_overlay_event_breakpoint)
10759 (create_longjmp_master_breakpoint)
10760 (create_std_terminate_master_breakpoint)
10761 (create_exception_master_breakpoint, get_sal_arch): Update.
10762 * block.c (block_gdbarch): Update.
10763 * annotate.c (annotate_source_line): Update.
10764
0743fc83
TT
107652020-04-17 Tom Tromey <tromey@adacore.com>
10766
10767 * auto-load.c (show_auto_load_cmd): Remove.
10768 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10769 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10770 (maintenance_print_arc_command): Remove.
10771 * tui/tui-win.c (tui_command): Remove.
10772 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10773 * tui/tui-layout.c (tui_layout_command): Remove.
10774 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10775 * python/python.c (user_set_python, user_show_python): Remove.
10776 (_initialize_python): Use add_basic_prefix_cmd,
10777 add_show_prefix_cmd.
10778 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10779 (install_gdb_commands): Use add_basic_prefix_cmd,
10780 add_show_prefix_cmd.
10781 (info_guile_command): Remove.
10782 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10783 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10784 add_show_prefix_cmd.
10785 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10786 Remove do_set and do_show parameters.
10787 * cli/cli-style.c (set_style, show_style): Remove.
10788 (_initialize_cli_style): Use add_basic_prefix_cmd,
10789 add_show_prefix_cmd.
10790 (cli_style_option::add_setshow_commands): Remove do_set and
10791 do_show parameters.
10792 (cli_style_option::add_setshow_commands): Use
10793 add_basic_prefix_cmd, add_show_prefix_cmd.
10794 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10795 (set_style_name): Remove.
10796 * cli/cli-dump.c (dump_command, append_command): Remove.
10797 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10798 (tekhex_dump_command, binary_dump_command)
10799 (binary_append_command): Remove.
10800 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10801 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10802 (init_w32_command_list): Remove; move into ...
10803 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10804 * valprint.c (set_print, show_print, set_print_raw)
10805 (show_print_raw): Remove.
10806 (_initialize_valprint): Use add_basic_prefix_cmd,
10807 add_show_prefix_cmd.
10808 * typeprint.c (set_print_type, show_print_type): Remove.
10809 (_initialize_typeprint): Use add_basic_prefix_cmd,
10810 add_show_prefix_cmd.
10811 * record.c (set_record_command, show_record_command): Remove.
10812 (_initialize_record): Use add_basic_prefix_cmd,
10813 add_show_prefix_cmd.
10814 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10815 add_show_prefix_cmd.
10816 (info_command, show_command, set_debug, show_debug): Remove.
10817 * top.h (set_history, show_history): Don't declare.
10818 * top.c (set_history, show_history): Remove.
10819 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10820 (unset_tdesc_cmd): Remove.
10821 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10822 add_show_prefix_cmd.
10823 * symtab.c (info_module_command): Remove.
10824 (_initialize_symtab): Use add_basic_prefix_cmd.
10825 * symfile.c (overlay_command): Remove.
10826 (_initialize_symfile): Use add_basic_prefix_cmd.
10827 * sparc64-tdep.c (info_adi_command): Remove.
10828 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10829 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10830 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10831 add_show_prefix_cmd.
10832 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10833 (_initialize_serial): Use add_basic_prefix_cmd,
10834 add_show_prefix_cmd.
10835 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10836 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10837 add_show_prefix_cmd.
10838 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10839 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10840 add_show_prefix_cmd.
10841 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10842 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10843 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10844 add_show_prefix_cmd.
10845 * remote.c (remote_command, set_remote_cmd): Remove.
10846 (_initialize_remote): Use add_basic_prefix_cmd.
10847 * record-full.c (set_record_full_command)
10848 (show_record_full_command): Remove.
10849 (_initialize_record_full): Use add_basic_prefix_cmd,
10850 add_show_prefix_cmd.
10851 * record-btrace.c (cmd_set_record_btrace)
10852 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10853 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10854 (cmd_show_record_btrace_pt): Remove.
10855 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10856 add_show_prefix_cmd.
10857 * ravenscar-thread.c (set_ravenscar_command)
10858 (show_ravenscar_command): Remove.
10859 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10860 add_show_prefix_cmd.
10861 * mips-tdep.c (show_mips_command, set_mips_command)
10862 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10863 add_show_prefix_cmd.
10864 * maint.c (maintenance_command, maintenance_info_command)
10865 (maintenance_check_command, maintenance_print_command)
10866 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10867 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10868 add_show_prefix_cmd.
10869 (show_per_command_cmd): Remove.
10870 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10871 Remove.
10872 (maintenance_show_test_settings_cmd): Remove.
10873 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10874 add_show_prefix_cmd.
10875 * maint-test-options.c (maintenance_test_options_command):
10876 Remove.
10877 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10878 * macrocmd.c (macro_command): Remove
10879 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10880 * language.c (set_check, show_check): Remove.
10881 (_initialize_language): Use add_basic_prefix_cmd,
10882 add_show_prefix_cmd.
10883 * infcmd.c (unset_command): Remove.
10884 (_initialize_infcmd): Use add_basic_prefix_cmd.
10885 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10886 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10887 add_show_prefix_cmd.
10888 * go32-nat.c (go32_info_dos_command): Remove.
10889 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10890 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10891 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10892 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10893 (_initialize_frame): Use add_basic_prefix_cmd,
10894 add_show_prefix_cmd.
10895 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10896 (_initialize_dcache): Use add_basic_prefix_cmd,
10897 add_show_prefix_cmd.
10898 * cp-support.c (maint_cplus_command): Remove.
10899 (_initialize_cp_support): Use add_basic_prefix_cmd.
10900 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10901 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10902 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10903 add_basic_prefix_cmd, add_show_prefix_cmd.
10904 * breakpoint.c (save_command): Remove.
10905 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10906 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10907 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10908 add_show_prefix_cmd.
10909 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10910 (set_ada_command, show_ada_command): Remove.
10911 (_initialize_ada_language): Use add_basic_prefix_cmd,
10912 add_show_prefix_cmd.
10913 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10914
3557f442
KR
109152020-04-16 Kamil Rytarowski <n54@gmx.com>
10916
10917 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10918 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10919
16197208
SM
109202020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10921
10922 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10923 warning messages.
10924
00ac85d3
SM
109252020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10926
10927 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10928 import table is not at beginning of .idata section.
10929
381ce63f
PA
109302020-04-16 Pedro Alves <palves@redhat.com>
10931
10932 * inferior.c (delete_inferior): Use delete operator directly
10933 instead of delete_program_space.
10934 * progspace.c (add_program_space): New, factored out from
10935 program_space::program_space.
10936 (remove_program_space): New, factored out from
10937 delete_program_space.
10938 (program_space::program_space): Remove intro comment. Rewrite.
10939 (program_space::~program_space): Remove intro comment. Call
10940 remove_program_space.
10941 (delete_program_space): Delete.
10942 * progspace.h (program_space::program_space): Make explicit. Move
10943 intro comment here, adjusted.
10944 (program_space::~program_space): Move intro comment here,
10945 adjusted.
10946 (delete_program_space): Remove.
10947
a010605f
TT
109482020-04-16 Tom Tromey <tromey@adacore.com>
10949
10950 * windows-nat.c (windows_nat::handle_access_violation): New
10951 function.
10952 * nat/windows-nat.h (handle_access_violation): Declare.
10953 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10954 windows-nat.c. Call handle_access_violation.
10955
efba5c23
TV
109562020-04-16 Tom de Vries <tdevries@suse.de>
10957
10958 PR symtab/25791
10959 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10960 CUs without psymtab.
10961
97ed802d
KB
109622020-04-16 Kevin Buettner <kevinb@redhat.com>
10963
10964 * python/python.c (do_start_initialization): Don't call
10965 PyEval_InitThreads for Python 3.9 and beyond.
10966
c7d64809
KR
109672020-04-15 Kamil Rytarowski <n54@gmx.com>
10968
10969 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10970 thread functions.
10971 (obsd_nat_target::wait): Likewise.
10972
ce127a96
TT
109732020-04-15 Tom Tromey <tromey@adacore.com>
10974
10975 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10976 (DEBUG_EXCEPT): Use debug_printf.
10977
99f1bc6a
AB
109782020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10979
10980 * completer.c (class completion_tracker::completion_hash_entry)
10981 <hash_name>: New member function.
10982 (completion_tracker::discard_completions): New callback to hash a
10983 completion_hash_entry, pass this to htab_create_alloc.
10984
a0e9b532
JT
109852016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10986
10987 * windows-nat.c (windows_make_so): Warn rather than stopping with
10988 an error if realpath() fails.
10989
06ca5dd4
KR
109902020-04-14 Kamil Rytarowski <n54@gmx.com>
10991
10992 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10993 (nbsd_nat_target::info_proc): Add do_status.
10994
194d088f
TV
109952020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10996 Tom de Vries <tdevries@suse.de>
10997
10998 PR symtab/25718
10999 * psympriv.h (struct partial_symtab::read_symtab)
11000 (struct partial_symtab::expand_psymtab)
11001 (struct partial_symtab::read_dependencies): Update comments.
11002 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11003 read_symtab for includer.
11004 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11005 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11006 (struct dwarf2_include_psymtab::m_readin): Remove.
11007 (struct dwarf2_include_psymtab::includer): New member function.
11008 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11009
c1a66c06
TV
110102020-04-14 Tom de Vries <tdevries@suse.de>
11011
11012 PR symtab/25720
11013 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11014 with NULL symbol_matcher and lookup_name.
11015 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11016 and lookup_name.
11017 * dwarf2/read.c (dw2_expand_symtabs_matching)
11018 (dw2_debug_names_expand_symtabs_matching): Same.
11019 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11020 Make lookup_name a pointer. Update comment.
11021 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11022 lookup_name being a pointer.
11023 * symfile.c (expand_symtabs_matching): Same.
11024 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11025 * linespec.c (iterate_over_all_matching_symtabs): Same.
11026
400b5eca
TT
110272020-04-13 Tom Tromey <tom@tromey.com>
11028
11029 * run-on-main-thread.c: Update include.
11030 * unittests/main-thread-selftests.c: Update include.
11031 * tui/tui-win.c: Update include.
11032 * tui/tui-io.c: Update include.
11033 * tui/tui-interp.c: Update include.
11034 * tui/tui-hooks.c: Update include.
11035 * top.h: Update include.
11036 * top.c: Update include.
11037 * ser-base.c: Update include.
11038 * remote.c: Update include.
11039 * remote-notif.c: Update include.
11040 * remote-fileio.c: Update include.
11041 * record-full.c: Update include.
11042 * record-btrace.c: Update include.
11043 * python/python.c: Update include.
11044 * posix-hdep.c: Update include.
11045 * mingw-hdep.c: Update include.
11046 * mi/mi-main.c: Update include.
11047 * mi/mi-interp.c: Update include.
11048 * main.c: Update include.
11049 * linux-nat.c: Update include.
11050 * interps.c: Update include.
11051 * infrun.c: Update include.
11052 * inf-loop.c: Update include.
11053 * event-top.c: Update include.
11054 * event-loop.c: Move to ../gdbsupport/.
11055 * event-loop.h: Move to ../gdbsupport/.
11056 * async-event.h: Update include.
11057 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11058
93b54c8e
TT
110592020-04-13 Tom Tromey <tom@tromey.com>
11060
11061 * tui/tui-win.c: Include async-event.h.
11062 * remote.c: Include async-event.h.
11063 * remote-notif.c: Include async-event.h.
11064 * record-full.c: Include async-event.h.
11065 * record-btrace.c: Include async-event.h.
11066 * infrun.c: Include async-event.h.
11067 * event-top.c: Include async-event.h.
11068 * event-loop.h: Move some declarations to async-event.h.
11069 * event-loop.c: Don't include ser-event.h or top.h. Move some
11070 code to async-event.c.
11071 * async-event.h: New file.
11072 * async-event.c: New file.
11073 * Makefile.in (COMMON_SFILES): Add async-event.c.
11074 (HFILES_NO_SRCDIR): Add async-event.h.
11075
c1cd3163
TT
110762020-04-13 Tom Tromey <tom@tromey.com>
11077
11078 * utils.c (flush_streams): New function.
11079 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11080
29f2bf4f
TT
110812020-04-13 Tom Tromey <tom@tromey.com>
11082
11083 * event-loop.c (handle_file_event): Use warning, not
11084 printf_unfiltered.
11085
98029d02
TT
110862020-04-13 Tom Tromey <tom@tromey.com>
11087
11088 * event-loop.c: Include <chrono>.
11089
06cc9596
TT
110902020-04-13 Tom Tromey <tom@tromey.com>
11091
11092 * gdb_select.h: Move to ../gdbsupport/.
11093 * event-loop.c: Update include path.
11094 * top.c: Update include path.
11095 * ser-base.c: Update include path.
11096 * ui-file.c: Update include path.
11097 * ser-tcp.c: Update include path.
11098 * guile/scm-ports.c: Update include path.
11099 * posix-hdep.c: Update include path.
11100 * ser-unix.c: Update include path.
11101 * gdb_usleep.c: Update include path.
11102 * mingw-hdep.c: Update include path.
11103 * inflow.c: Update include path.
11104 * infrun.c: Update include path.
11105 * event-top.c: Update include path.
11106
8ae8e197
TT
111072020-04-13 Tom Tromey <tom@tromey.com>
11108
11109 * configure: Rebuild.
11110 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11111
58cf28e8
TT
111122020-04-13 Tom Tromey <tom@tromey.com>
11113
11114 * event-loop.h (start_event_loop): Don't declare.
11115 * event-loop.c (start_event_loop): Move...
11116 * main.c (start_event_loop): ...here. Now static.
11117
b7f999ae
SDJ
111182020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11119
11120 * MAINTAINERS: Update my email address.
11121
1085dfd4
KR
111222020-04-12 Kamil Rytarowski <n54@gmx.com>
11123
11124 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11125 IP_ALL.
11126
49d1d1f5
KR
111272020-04-12 Kamil Rytarowski <n54@gmx.com>
11128
11129 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11130 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11131
b4848d2a
KR
111322020-04-12 Kamil Rytarowski <n54@gmx.com>
11133
11134 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11135 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11136
51c133d5
KR
111372020-04-12 Kamil Rytarowski <n54@gmx.com>
11138
11139 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11140
54b8cbd0
KR
111412020-04-11 Kamil Rytarowski <n54@gmx.com>
11142
11143 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11144 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11145 (nbsd_nat_target::info_proc): New functions.
11146 * nbsd-nat.c (kinfo_get_vmmap): New function.
11147 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11148 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11149 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11150 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11151 functions.
11152 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11153 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11154 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11155 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11156 (KINFO_VME_FLAG_GROWS_DOWN): New.
11157
cf83625d
AS
111582020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11159
11160 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11161 bit shift.
11162
0c4311ab
TT
111632020-04-10 Tom Tromey <tromey@adacore.com>
11164
11165 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11166
3e65b3e9
TT
111672020-04-10 Tom Tromey <tromey@adacore.com>
11168
11169 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11170 separate debug files.
11171
13302e95
HD
111722020-04-10 Hannes Domani <ssbssa@yahoo.de>
11173
11174 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11175 Move to...
11176 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11177 ... here.
11178 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11179 Check for STATUS_WX86_BREAKPOINT.
11180 (windows_nat_target::wait): Same.
11181
bdfc1e8a
TV
111822020-04-10 Tom de Vries <tdevries@suse.de>
11183
11184 PR cli/25808
11185 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11186
f4460aec
SM
111872020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11188
11189 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11190 (Write After Approval): Remove Tom de Vries.
11191
a25198bb
BE
111922020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11193
11194 revert partially:
11195 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11196
aac66a4c
SM
11197 * buildsym.c (record_line): Fix undefined behavior and preserve
11198 lines at eof.
a25198bb 11199
206c98a6
KR
112002020-04-09 Kamil Rytarowski <n54@gmx.com>
11201
11202 * auxv.h (svr4_auxv_parse): New.
11203 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11204 and generic_auxv_parse.
11205 (svr4_auxv_parse): Add.
11206 * obsd-tdep.c: Include "auxv.h".
11207 (obsd_auxv_parse): Remove.
11208 (obsd_init_abi): Remove comment.
11209 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11210 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11211 * nbsd-tdep.c: Include "auxv.h".
11212 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11213
71fbdbaf
TT
112142020-04-08 Tom Tromey <tromey@adacore.com>
11215
11216 * nat/windows-nat.h (last_wait_event): Don't declare.
11217 (wait_for_debug_event): Update comment.
11218 * nat/windows-nat.c (last_wait_event): Now static.
11219
2c1d95e8
TT
112202020-04-08 Tom Tromey <tromey@adacore.com>
11221
11222 * windows-nat.c (wait_for_debug_event): Move to
11223 nat/windows-nat.c.
11224 * nat/windows-nat.h (wait_for_debug_event): Declare.
11225 * nat/windows-nat.c (wait_for_debug_event): Move from
11226 windows-nat.c. No longer static.
11227
d2977bc4
TT
112282020-04-08 Tom Tromey <tromey@adacore.com>
11229
11230 * windows-nat.c (get_windows_debug_event): Use
11231 fetch_pending_stop.
11232 * nat/windows-nat.h (fetch_pending_stop): Declare.
11233 * nat/windows-nat.c (fetch_pending_stop): New function.
11234
e758e19c
TT
112352020-04-08 Tom Tromey <tromey@adacore.com>
11236
11237 * windows-nat.c (windows_continue): Use matching_pending_stop and
11238 continue_last_debug_event.
11239 * nat/windows-nat.h (matching_pending_stop)
11240 (continue_last_debug_event): Declare.
11241 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11242 (matching_pending_stop, continue_last_debug_event): New
11243 functions.
11244
8d30e395
TT
112452020-04-08 Tom Tromey <tromey@adacore.com>
11246
11247 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11248 (handle_exception_result): Move to nat/windows-nat.h.
11249 (DEBUG_EXCEPTION_SIMPLE): Remove.
11250 (windows_nat::handle_ms_vc_exception): New function.
11251 (handle_exception): Move to nat/windows-nat.c.
11252 (get_windows_debug_event): Update.
11253 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11254 nat/windows-nat.c.
11255 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11256 (handle_exception_result): Move from windows-nat.c.
11257 (handle_exception): Declare.
11258 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11259 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11260 windows-nat.c.
11261
29de418d
TT
112622020-04-08 Tom Tromey <tromey@adacore.com>
11263
11264 * windows-nat.c (exception_count, event_count): Remove.
11265 (handle_exception, get_windows_debug_event)
11266 (do_initial_windows_stuff): Update.
11267
a816ba18
TT
112682020-04-08 Tom Tromey <tromey@adacore.com>
11269
11270 * windows-nat.c (windows_nat::handle_load_dll)
11271 (windows_nat::handle_unload_dll): Rename. No longer static.
11272 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11273 Declare.
11274
a00caa12
TT
112752020-04-08 Tom Tromey <tromey@adacore.com>
11276
11277 * complaints.h (stop_whining): Declare at top-level.
11278 (complaint): Don't declare stop_whining.
11279
d41b524f
TT
112802020-04-08 Tom Tromey <tromey@adacore.com>
11281
11282 * windows-nat.c (windows_nat::handle_output_debug_string):
11283 Rename. No longer static.
11284 * nat/windows-nat.h (handle_output_debug_string): Declare.
11285
3c76026d
TT
112862020-04-08 Tom Tromey <tromey@adacore.com>
11287
11288 * windows-nat.c (current_process_handle, current_process_id)
11289 (main_thread_id, last_sig, current_event, last_wait_event)
11290 (current_windows_thread, desired_stop_thread_id, pending_stops)
11291 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11292 (display_selectors, fake_create_process)
11293 (get_windows_debug_event): Update.
11294 * nat/windows-nat.h (current_process_handle, current_process_id)
11295 (main_thread_id, last_sig, current_event, last_wait_event)
11296 (current_windows_thread, desired_stop_thread_id, pending_stops)
11297 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11298 * nat/windows-nat.c (current_process_handle, current_process_id)
11299 (main_thread_id, last_sig, current_event, last_wait_event)
11300 (current_windows_thread, desired_stop_thread_id, pending_stops)
11301 (siginfo_er): New globals. Move from windows-nat.c.
11302
9d8679cc
TT
113032020-04-08 Tom Tromey <tromey@adacore.com>
11304
11305 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11306 (handle_load_dll): Update.
11307 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11308
28688adf
TT
113092020-04-08 Tom Tromey <tromey@adacore.com>
11310
11311 * windows-nat.c (enum thread_disposition_type): Move to
11312 nat/windows-nat.h.
11313 (windows_nat::thread_rec): Rename from thread_rec. No longer
11314 static.
11315 (windows_add_thread, windows_nat_target::fetch_registers)
11316 (windows_nat_target::store_registers, handle_exception)
11317 (windows_nat_target::resume, get_windows_debug_event)
11318 (windows_nat_target::get_tib_address)
11319 (windows_nat_target::thread_name)
11320 (windows_nat_target::thread_alive): Update.
11321 * nat/windows-nat.h (enum thread_disposition_type): Move from
11322 windows-nat.c.
11323 (thread_rec): Declare.
11324
4834dad0
TT
113252020-04-08 Tom Tromey <tromey@adacore.com>
11326
11327 * windows-nat.c: Add "using namespace".
11328 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11329 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11330
65bafd5b
TT
113312020-04-08 Tom Tromey <tromey@adacore.com>
11332
11333 * nat/windows-nat.h (struct windows_thread_info): Declare
11334 destructor.
11335 * nat/windows-nat.c (~windows_thread_info): New.
11336
0a4afda3
TT
113372020-04-08 Tom Tromey <tromey@adacore.com>
11338
11339 PR gdb/22992
11340 * windows-nat.c (current_event): Update comment.
11341 (last_wait_event, desired_stop_thread_id): New globals.
11342 (struct pending_stop): New.
11343 (pending_stops): New global.
11344 (windows_nat_target) <stopped_by_sw_breakpoint>
11345 <supports_stopped_by_sw_breakpoint>: New methods.
11346 (windows_fetch_one_register): Add assertions. Adjust PC.
11347 (windows_continue): Handle pending stops. Suspend other threads
11348 when stepping. Use last_wait_event
11349 (wait_for_debug_event): New function.
11350 (get_windows_debug_event): Use wait_for_debug_event. Handle
11351 pending stops. Queue spurious stops.
11352 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11353 (windows_nat_target::kill): Use wait_for_debug_event.
11354 * nat/windows-nat.h (struct windows_thread_info)
11355 <stopped_at_software_breakpoint>: New field.
11356 * nat/windows-nat.c (windows_thread_info::resume): Clear
11357 stopped_at_software_breakpoint.
11358
8e61ebec
TT
113592020-04-08 Tom Tromey <tromey@adacore.com>
11360
11361 * windows-nat.c (enum thread_disposition_type): New.
11362 (thread_rec): Replace "get_context" parameter with "disposition";
11363 change type.
11364 (windows_add_thread, windows_nat_target::fetch_registers)
11365 (windows_nat_target::store_registers, handle_exception)
11366 (windows_nat_target::resume, get_windows_debug_event)
11367 (windows_nat_target::get_tib_address)
11368 (windows_nat_target::thread_name)
11369 (windows_nat_target::thread_alive): Update.
11370
98a03287
TT
113712020-04-08 Tom Tromey <tromey@adacore.com>
11372
11373 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11374 (windows_continue): Use windows_continue::resume.
11375 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11376 resume>: Declare new methods.
11377 * nat/windows-nat.c: New file.
11378 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11379
7c7411bc
TT
113802020-04-08 Tom Tromey <tromey@adacore.com>
11381
11382 * windows-nat.c (windows_add_thread, windows_delete_thread)
11383 (windows_nat_target::fetch_registers)
11384 (windows_nat_target::store_registers, fake_create_process)
11385 (windows_nat_target::resume, windows_nat_target::resume)
11386 (get_windows_debug_event, windows_nat_target::wait)
11387 (windows_nat_target::pid_to_str)
11388 (windows_nat_target::get_tib_address)
11389 (windows_nat_target::get_ada_task_ptid)
11390 (windows_nat_target::thread_name)
11391 (windows_nat_target::thread_alive): Use lwp, not tid.
11392
2950fdf7
TT
113932020-04-08 Tom Tromey <tromey@adacore.com>
11394
11395 * windows-nat.c (handle_exception)
11396 (windows_nat_target::thread_name): Update.
11397 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11398 <name>: Now unique_xmalloc_ptr.
11399
62fe396b
TT
114002020-04-08 Tom Tromey <tromey@adacore.com>
11401
11402 * windows-nat.c (thread_rec)
11403 (windows_nat_target::fetch_registers): Update.
11404 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11405 Update comment.
11406 <debug_registers_changed, reload_context>: Now bool.
11407
e9534bd2
TT
114082020-04-08 Tom Tromey <tromey@adacore.com>
11409
11410 * windows-nat.c (windows_add_thread): Use new.
11411 (windows_init_thread_list, windows_delete_thread): Use delete.
11412 (get_windows_debug_event): Update.
11413 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11414 destructor, and initializers.
11415
ae1f8880
TT
114162020-04-08 Tom Tromey <tromey@adacore.com>
11417
11418 * windows-nat.c (struct windows_thread_info): Remove.
11419 * nat/windows-nat.h: New file.
11420
55a1e039
TT
114212020-04-08 Tom Tromey <tromey@adacore.com>
11422
11423 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11424 (thread_rec, windows_add_thread, windows_delete_thread)
11425 (windows_continue): Update.
11426
93366324
TT
114272020-04-08 Tom Tromey <tromey@adacore.com>
11428
11429 * windows-nat.c (struct windows_thread_info): Remove typedef.
11430 (thread_head): Remove.
11431 (thread_list): New global.
11432 (thread_rec, windows_add_thread, windows_init_thread_list)
11433 (windows_delete_thread, windows_continue): Update.
11434
0f2265e2
SM
114352020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11436
11437 * windows-tdep.h (windows_init_abi): Add comment.
11438 (cygwin_init_abi): New declaration.
11439 * windows-tdep.c: Split signal enumeration in two, one for
11440 Windows and one for Cygwin.
11441 (windows_gdb_signal_to_target): Only deal with signal of the
11442 Windows OS ABI.
11443 (cygwin_gdb_signal_to_target): New function.
11444 (windows_init_abi): Rename to windows_init_abi_common, don't set
11445 gdb_signal_to_target gdbarch method. Add new new function with
11446 this name.
11447 (cygwin_init_abi): New function.
11448 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11449 comment. Don't call windows_init_abi.
11450 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11451 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11452 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11453 i386_windows_init_abi_common, don't call windows_init_abi. Add
11454 a new function of this name.
11455 (i386_cygwin_init_abi): New function.
11456 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11457 OS ABI Cygwin.
11458
3810f182
SM
114592020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11462 parameter.c.
11463 (dwarf2_read_gdb_index): Update.
11464
063f8e80
KR
114652020-04-07 Kamil Rytarowski <n54@gmx.com>
11466
11467 * nbsd-tdep.c: Include "objfiles.h".
11468 (nbsd_skip_solib_resolver): New.
11469 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11470
85a9510c 114712020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11472
11473 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11474 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11475 with DW_LLE_base_addressx are being emitted in DWARFv5.
11476 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11477 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11478 unsigned integer.
11479
9fc3eaae 114802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11481
11482 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11483 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11484 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11485 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11486 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11487 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11488 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11489
11490
41144253 114912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11492
11493 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11494 (read_loclist_index): New function definition.
11495 (lookup_loclist_base): New function definition.
11496 (read_loclist_header): New function definition.
11497 (dwarf2_cu): Add loclist_base and loclist_header field.
11498 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11499 (read_full_die_1): Read the value of DW_AT_loclists_base.
11500 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11501 (read_attribute_value): Handle DW_FORM_loclistx.
11502 (skip_one_die): Handle DW_FORM_loclistx.
11503 (loclist_header): New structure declaration.
11504 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11505
9f4e76a4
SM
115062020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11507
11508 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11509 constructor. Remove `addr` parameter from other constructor and
11510 add `per_cu` parameter.
11511 * dwarf2/read.c (create_partial_symtab): Update.
11512
25c11aca
TV
115132020-04-07 Tom de Vries <tdevries@suse.de>
11514
11515 PR symtab/25796
11516 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11517 (partial_die_info::fixup): Inherit has_const_value.
11518
5707e24b
TV
115192020-04-07 Tom de Vries <tdevries@suse.de>
11520
11521 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11522 symbols without address.
11523
05f00e22
KR
115242020-04-06 Kamil Rytarowski <n54@gmx.com>
11525
11526 * nbsd-nat.h (struct thread_info): Add forward declaration.
11527 (nbsd_nat_target::thread_alive): Add.
11528 (nbsd_nat_target::thread_name): Likewise.
11529 (nbsd_nat_target::update_thread_list): Likewise.
11530 (update_thread_list::post_attach): Likewise.
11531 (post_attach::pid_to_str): Likewise.
11532 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11533 (nbsd_thread_lister): Add.
11534 (nbsd_nat_target::thread_alive): Likewise.
11535 (nbsd_nat_target::thread_name): Likewise.
11536 (nbsd_add_threads): Likewise.
11537 (update_thread_list::post_attach): Likewise.
11538 (nbsd_nat_target::update_thread_list): Likewise.
11539 (post_attach::pid_to_str): Likewise.
11540
6ee448cc
TT
115412020-04-06 Tom Tromey <tromey@adacore.com>
11542
11543 * ada-valprint.c (print_variant_part): Extract the variant field.
11544 (print_field_values): Use the field as the outer value when
11545 recursing.
11546
dea34e8c
TT
115472020-04-06 Tom Tromey <tromey@adacore.com>
11548
11549 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11550 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11551 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11552 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11553 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11554
93689ce9
TT
115552020-04-06 Tom Tromey <tromey@adacore.com>
11556
11557 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11558 TYPE_CODE_ERROR.
11559
79743962
KR
115602020-04-06 Kamil Rytarowski <n54@gmx.com>
11561
11562 * nbsd-tdep.c: Include "gdbarch.h".
11563 Define enum with NetBSD signal numbers.
11564 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11565 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11566 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11567 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11568 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11569 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11570 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11571 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11572 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11573 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11574 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11575 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11576
9e7c9a03
HD
115772020-04-03 Hannes Domani <ssbssa@yahoo.de>
11578
11579 PR gdb/25325
11580 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11581
d9e49b61
TT
115822020-04-03 Tom Tromey <tromey@adacore.com>
11583
11584 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11585 Read constant block.
11586
e0fc5c3f
SM
115872020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11588
11589 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11590 (gdb_bfd_get_full_section_contents): New declaration.
11591 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11592 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11593 gdb_bfd_get_full_section_contents.
11594
e2ff18a0
SM
115952020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11596
11597 * exec.c (build_section_table): Replace internal_error with
11598 gdb_assert.
11599 (section_table_xfer_memory_partial): Likewise.
11600 * mdebugread.c (parse_partial_symbols): Likewise.
11601 * psymtab.c (lookup_partial_symbol): Likewise.
11602 * utils.c (wrap_here): Likewise.
11603
0830d301
TT
116042020-04-02 Tom Tromey <tromey@adacore.com>
11605
11606 * f-lang.c (build_fortran_types): Use arch_type to initialize
11607 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11608
e7da7f8f
TT
116092020-04-02 Tom Tromey <tromey@adacore.com>
11610
11611 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11612 of attributes.
11613
c90d28ac
AB
116142020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11615 Bernd Edlinger <bernd.edlinger@hotmail.de>
11616 Tom Tromey <tromey@adacore.com>
11617
11618 * buildsym.c (buildsym_compunit::record_line): Remove
11619 deduplication code.
11620
1aa98955
TV
116212020-04-02 Tom de Vries <tdevries@suse.de>
11622
11623 PR ada/24671
11624 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11625
d3214198
TV
116262020-04-02 Tom de Vries <tdevries@suse.de>
11627
11628 * dwarf2/read.c (dwarf2_gdb_index_functions,
11629 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11630 NULL.
11631 * psymtab.c (psym_lookup_global_symbol_language): New function.
11632 (psym_functions): Init psym_lookup_global_symbol_language with
11633 psym_lookup_global_symbol_language.
11634 * symfile-debug.c (debug_sym_quick_functions): Init
11635 lookup_global_symbol_language with NULL.
11636 * symfile.c (set_initial_language): Remove fixme comment.
11637 * symfile.h (struct quick_symbol_functions): Add
11638 lookup_global_symbol_language.
11639 * symtab.c (find_quick_global_symbol_language): New function.
11640 (find_main_name): Use find_quick_global_symbol_language.
11641
2836752f
SM
116422020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11643
11644 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11645
64dc2d4b
BE
116462020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11647
11648 * buildsym.c (record_line): Fix undefined behavior and preserve
11649 lines at eof.
11650
bbe3dc41
BE
116512020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11652
11653 * buildsym.c (record_line): Fix the resizing condition.
11654
6b4a335b
TT
116552020-04-01 Tom Tromey <tom@tromey.com>
11656
11657 * value.h (value_literal_complex): Add comment.
11658 * valops.c (value_literal_complex): Refer to value.h.
11659
3638a098
TT
116602020-04-01 Tom Tromey <tom@tromey.com>
11661
11662 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11663 (scalar_type): New rule, from typebase.
11664 (typebase): Use scalar_type. Recognize complex types.
11665 (field_name): Handle FLOAT_KEYWORD.
11666 (ident_tokens): Add _Complex and __complex__.
11667
c34e8714
TT
116682020-04-01 Tom Tromey <tom@tromey.com>
11669
11670 PR exp/25299:
11671 * valarith.c (promotion_type, complex_binop): New functions.
11672 (scalar_binop): Handle complex numbers. Use promotion_type.
11673 (value_pos, value_neg, value_complement): Handle complex numbers.
11674
fa649bb7
TT
116752020-04-01 Tom Tromey <tom@tromey.com>
11676
11677 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11678 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11679 (parse_number): Handle complex numbers.
11680
981c08ce
TT
116812020-04-01 Tom Tromey <tom@tromey.com>
11682
11683 * c-valprint.c (c_decorations): Change complex suffix to "i".
11684
4c99290d
TT
116852020-04-01 Tom Tromey <tom@tromey.com>
11686
11687 * valprint.c (generic_value_print_complex): Use accessors.
11688 * value.h (value_real_part, value_imaginary_part): Declare.
11689 * valops.c (value_real_part, value_imaginary_part): New
11690 functions.
11691 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11692
5b930b45
TT
116932020-04-01 Tom Tromey <tom@tromey.com>
11694
11695 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11696 (read_range_type): Update.
11697 * mdebugread.c (basic_type): Update.
11698 * go-lang.c (build_go_types): Use init_complex_type.
11699 * gdbtypes.h (struct main_type) <complex_type>: New member.
11700 (init_complex_type): Update.
11701 (arch_complex_type): Don't declare.
11702 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11703 Make name if none given. Use alloc_type_copy. Look for cached
11704 complex type.
11705 (arch_complex_type): Remove.
11706 (gdbtypes_post_init): Use init_complex_type.
11707 * f-lang.c (build_fortran_types): Use init_complex_type.
11708 * dwarf2/read.c (read_base_type): Update.
11709 * d-lang.c (build_d_types): Use init_complex_type.
11710 * ctfread.c (read_base_type): Update.
11711
53cccef1
TBA
117122020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11713
11714 * infrun.c (stop_all_threads): Update assertion, plus when
11715 stopping threads, take into account that we might be trying
11716 to stop an all-stop target.
11717 (stop_waiting): Call 'stop_all_threads' if there exists a
11718 non-stop target.
11719
a0714d30
TBA
117202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11721
11722 * target.h (exists_non_stop_target): New function declaration.
11723 * target.c (exists_non_stop_target): New function.
11724
60e22c1e
HD
117252020-04-01 Hannes Domani <ssbssa@yahoo.de>
11726
11727 PR gdb/24789
11728 * eval.c (is_integral_or_integral_reference): New function.
11729 (evaluate_subexp_standard): Allow integer references in
11730 pointer arithmetic.
11731
e139a727
TBA
117322020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11733
11734 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11735 check for no ptid in the stop reply when the target is non-stop.
11736
e0802d59
TT
117372020-04-01 Tom Tromey <tromey@adacore.com>
11738
11739 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11740 "name" parameter to rvalue reference. Initialize m_name_holder.
11741 <lookup_name_info>: New overloads.
11742 <name>: Return gdb::string_view.
11743 <c_str>: New method.
11744 <make_ignore_params>: Update.
11745 <search_name_hash>: Update.
11746 <language_lookup_name>: Return const char *.
11747 <m_name>: Change type.
11748 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11749 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11750 (lookup_name_info::match_any): Update.
11751 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11752 Update.
11753 * minsyms.c (linkage_name_str): Update.
11754 * language.c (default_symbol_name_matcher): Update.
11755 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11756 Update.
11757 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11758 (ada_lookup_name_info::ada_lookup_name_info): Update.
11759 (literal_symbol_name_matcher): Update.
11760
8c072cb6
TT
117612020-04-01 Tom Tromey <tromey@adacore.com>
11762
11763 * psymtab.c (psymtab_search_name): Remove function.
11764 (psym_lookup_symbol): Create search name and lookup name here.
11765 (lookup_partial_symbol): Remove "name" parameter; add
11766 lookup_name.
11767 (psym_expand_symtabs_for_function): Update.
11768
6f29a534
TT
117692020-03-31 Joel Jones <joelkevinjones@gmail.com>
11770
11771 PR tui/25597:
11772 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11773
af62665e
TT
117742020-03-31 Tom Tromey <tromey@adacore.com>
11775
11776 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11777 memcpy.
11778
d1a89da5
NC
117792020-03-30 Nelson Chu <nelson.chu@sifive.com>
11780
11781 * features/riscv/32bit-csr.xml: Regenerated.
11782 * features/riscv/64bit-csr.xml: Regenerated.
11783
d8af9068
TT
117842020-03-30 Tom Tromey <tromey@adacore.com>
11785
11786 * ada-valprint.c (print_variant_part): Update.
11787 * ada-lang.h (ada_which_variant_applies): Update.
11788 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11789 outer_valaddr parameters; replace with "outer" value parameter.
11790 (to_fixed_variant_branch_type): Update.
11791
227c0bf4
PFC
117922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11793
11794 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11795 <list>. Remove inclusion of observable.h.
11796 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11797 (struct arch_lwp_info): New struct.
11798 (class ppc_linux_dreg_interface): New class.
11799 (struct ppc_linux_process_info): New struct.
11800 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11801 <low_new_clone, low_forget_process, low_prepare_to_resume>
11802 <copy_thread_dreg_state, mark_thread_stale>
11803 <mark_debug_registers_changed, register_hw_breakpoint>
11804 <clear_hw_breakpoint, register_wp, clear_wp>
11805 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11806 <num_memory_accesses, get_trigger_type>
11807 <create_watchpoint_request, hwdebug_point_cmp>
11808 <init_arch_lwp_info, get_arch_lwp_info>
11809 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11810 methods.
11811 <struct ptid_hash>: New inner struct.
11812 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11813 members.
11814 (saved_dabr_value, hwdebug_info, max_slots_number)
11815 (struct hw_break_tuple, struct thread_points, ppc_threads)
11816 (have_ptrace_hwdebug_interface)
11817 (hwdebug_find_thread_points_by_tid)
11818 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11819 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11820 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11821 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11822 use m_dreg_interface.
11823 (hwdebug_point_cmp): Change to...
11824 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11825 reference arguments instead of pointers.
11826 (ppc_linux_nat_target::ranged_break_num_registers): Use
11827 m_dreg_interface.
11828 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11829 m_dreg_interface. Call register_hw_breakpoint.
11830 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11831 m_dreg_interface. Call clear_hw_breakpoint.
11832 (get_trigger_type): Change to...
11833 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11834 comment.
11835 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11836 use m_dreg_interface. Call register_hw_breakpoint.
11837 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11838 use m_dreg_interface. Call clear_hw_breakpoint.
11839 (can_use_watchpoint_cond_accel): Change to...
11840 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11841 method. Update comment, use m_dreg_interface and
11842 m_process_info.
11843 (calculate_dvc): Change to...
11844 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11845 m_dreg_interface.
11846 (num_memory_accesses): Change to...
11847 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11848 (check_condition): Change to...
11849 (ppc_linux_nat_target::check_condition): ...this method.
11850 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11851 comment, use m_dreg_interface.
11852 (create_watchpoint_request): Change to...
11853 (ppc_linux_nat_target::create_watchpoint_request): ...this
11854 method. Use m_dreg_interface.
11855 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11856 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11857 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11858 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11859 (ppc_linux_nat_target::low_forget_process)
11860 (ppc_linux_nat_target::low_new_fork)
11861 (ppc_linux_nat_target::low_new_clone)
11862 (ppc_linux_nat_target::low_delete_thread)
11863 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11864 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11865 only call mark_thread_stale.
11866 (ppc_linux_thread_exit): Remove.
11867 (ppc_linux_nat_target::stopped_data_address): Change to...
11868 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11869 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11870 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11871 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11872 comment. Call low_stopped_data_address.
11873 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11874 m_dreg_interface.
11875 (ppc_linux_nat_target::masked_watch_num_registers): Use
11876 m_dreg_interface.
11877 (ppc_linux_nat_target::copy_thread_dreg_state)
11878 (ppc_linux_nat_target::mark_thread_stale)
11879 (ppc_linux_nat_target::mark_debug_registers_changed)
11880 (ppc_linux_nat_target::register_hw_breakpoint)
11881 (ppc_linux_nat_target::clear_hw_breakpoint)
11882 (ppc_linux_nat_target::register_wp)
11883 (ppc_linux_nat_target::clear_wp)
11884 (ppc_linux_nat_target::init_arch_lwp_info)
11885 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11886 (_initialize_ppc_linux_nat): Remove observer callback.
11887
4db10d8f
PFC
118882020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11889
11890 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11891 (ppc_linux_nat_target::auxv_parse)
11892 (ppc_linux_nat_target::read_description)
11893 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11894 Move up.
11895
1310c1b0
PFC
118962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11897
11898 * linux-nat.h (low_new_clone): New method.
11899 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11900
69b037c3
SM
119012020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11902
11903 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11904 (dbx_expand_psymtab): ... this.
11905 (start_psymtab): Update.
11906 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11907 (mdebug_expand_psymtab): ... this.
11908 (parse_partial_symbols): Update.
11909 (new_psymtab): Update.
11910 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11911 (xcoff_expand_psymtab): ... this.
11912 (xcoff_start_psymtab): Update.
11913
48993951
SM
119142020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11917 <expand_dependencies>: ... this.
11918 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11919 (partial_symtab::expand_dependencies): ... this.
11920 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11921 Update.
11922 (dwarf2_psymtab::expand_psymtab): Update.
11923 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11924 * mdebugread.c (psymtab_to_symtab_1): Update.
11925 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11926
3ad83046
SM
119272020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11928
11929 * psympriv.h (discard_psymtab): Remove.
11930 * dbxread.c (dbx_end_psymtab): Update.
11931 * xcoffread.c (xcoff_end_psymtab): Update.
11932
4d1b9ab6
TT
119332020-03-28 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11936 comment.
11937
f1749218
TT
119382020-03-28 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11941
ebea7626
HD
119422020-03-27 Hannes Domani <ssbssa@yahoo.de>
11943
11944 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11945
a879b4d5
JB
119462020-03-26 John Baldwin <jhb@FreeBSD.org>
11947
11948 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11949
0826b30a
TT
119502020-03-26 Tom Tromey <tom@tromey.com>
11951
11952 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11953 (mark_common_block_symbol_computed, read_tag_string_type)
11954 (attr_to_dynamic_prop, read_subrange_type): Update.
11955 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11956 to be methods on struct attribute.
11957 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11958 (read_call_site_scope, partial_die_info::read)
11959 (partial_die_info::read, lookup_die_type, follow_die_ref):
11960 Update.
11961 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11962 from dwarf2_get_ref_die_offset.
11963 (attribute::constant_value): New method, from
11964 dwarf2_get_attr_constant_value.
11965 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11966 Declare method.
11967 <constant_value>: New method.
11968
2b2558bf
TT
119692020-03-26 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11972 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11973 (dwarf_type_encoding_name): Move to stringify.c.
11974 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11975 * dwarf2/stringify.c: New file.
11976 * dwarf2/stringify.h: New file.
11977
eeb64781
TT
119782020-03-26 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11981 Rewrite.
11982
a39fdb41
TT
119832020-03-26 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11986 methods.
11987 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11988 (lookup_ranges_base): Likewise.
11989 (read_cutu_die_from_dwo, read_full_die_1): Update.
11990
436c571c
TT
119912020-03-26 Tom Tromey <tom@tromey.com>
11992
11993 * dwarf2/read.c (read_import_statement, read_file_scope)
11994 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11995 (read_lexical_block_scope, read_call_site_scope)
11996 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11997 (handle_struct_member_die, process_structure_scope)
11998 (update_enumeration_type_from_children)
11999 (process_enumeration_scope, read_array_type, read_common_block)
12000 (read_namespace, read_module, read_subroutine_type): Update.
12001 (sibling_die): Remove.
12002
052c8bb8
TT
120032020-03-26 Tom Tromey <tom@tromey.com>
12004
12005 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12006 (build_type_psymtabs_reader, read_structure_type)
12007 (read_enumeration_type, read_full_die_1): Update.
12008 (dwarf2_attr_no_follow): Move to die.h.
12009 * dwarf2/die.h (struct die_info) <attr>: New method.
12010
2b24b6e4
TT
120112020-03-26 Tom Tromey <tom@tromey.com>
12012
12013 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12014 <base_address>: Now an optional.
12015 (dwarf2_find_base_address, dwarf2_rnglists_process)
12016 (dwarf2_ranges_process, fill_in_loclist_baton)
12017 (dwarf2_symbol_mark_computed): Update.
12018
c2d50fd0
TT
120192020-03-26 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2/read.c (struct die_info): Move to die.h.
12022 * dwarf2/die.h: New file.
12023
0df7ad3a
TT
120242020-03-26 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12027 * dwarf2/read.c
12028 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12029 Move to line-header.c.
12030 (read_checked_initial_length_and_offset, read_formatted_entries):
12031 Likewise.
12032 (dwarf_decode_line_header): Split into two.
12033 * dwarf2/line-header.c
12034 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12035 Move from read.c.
12036 (read_checked_initial_length_and_offset, read_formatted_entries):
12037 Likewise.
12038 (dwarf_decode_line_header): New function, split from read.c.
12039
86c0bb4c
TT
120402020-03-26 Tom Tromey <tom@tromey.com>
12041
12042 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12043 Declare method.
12044 * dwarf2/read.c (read_attribute_value): Update.
12045 (dwarf2_per_objfile::read_line_string): Rename from
12046 read_indirect_line_string.
12047 (read_formatted_entries): Update.
12048
2ef46c2f
TT
120492020-03-26 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12052 variable.
12053
4f9c1eda
TT
120542020-03-26 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12057 const.
12058 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12059 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12060 parameter const.
12061
5a0e026f
TT
120622020-03-26 Tom Tromey <tom@tromey.com>
12063
12064 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12065 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12066 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12067 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12068
8844c11b
TT
120692020-03-26 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12072 file_names_size, file_full_name, file_file_name>: Use const.
12073 <file_name_at, file_names>: Add const overload.
12074 * dwarf2/line-header.c (line_header::file_file_name)
12075 (line_header::file_full_name): Update.
12076
c90ec28a
TT
120772020-03-26 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12080 (macro_start_file, consume_improper_spaces)
12081 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12082 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12083 (dwarf_decode_macros): Move to macro.c.
12084 * dwarf2/macro.c: New file.
12085 * dwarf2/macro.h: New file.
12086 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12087
4f44ae6c
TT
120882020-03-26 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12091 method.
12092 * dwarf2/section.c: New method. From
12093 read_indirect_string_at_offset_from.
12094 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12095 (read_indirect_string_at_offset_from): Move to section.c.
12096 (read_indirect_string_at_offset): Rewrite.
12097 (read_indirect_line_string_at_offset): Remove.
12098 (read_indirect_string, read_indirect_line_string)
12099 (dwarf_decode_macro_bytes): Update.
12100
a0194fa8
TT
121012020-03-26 Tom Tromey <tom@tromey.com>
12102
12103 * dwarf2/section.h (struct dwarf2_section_info)
12104 <overload_complaint>: Declare.
12105 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12106 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12107 Rename from dwarf2_section_buffer_overflow_complaint.
12108 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12109 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12110
3d27bbdb
TT
121112020-03-26 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12114 Declare.
12115 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12116 Move from read.c.
12117 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12118 to section.c.
12119
9eac9650
TT
121202020-03-26 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12123
bf80d710
TT
121242020-03-26 Tom Tromey <tom@tromey.com>
12125
12126 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12127 "builder".
12128 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12129 parameter.
12130 (dwarf_decode_macros): Update.
12131
0314b390
TT
121322020-03-26 Tom Tromey <tom@tromey.com>
12133
12134 * dwarf2/read.c (read_attribute_value): Update.
12135 (read_indirect_string_from_dwz): Move to dwz.c; change into
12136 method.
12137 (dwarf_decode_macro_bytes): Update.
12138 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12139 * dwarf2/dwz.c: New file.
12140 * Makefile.in (COMMON_SFILES): Add dwz.c.
12141
9fda78b6
TT
121422020-03-26 Tom Tromey <tom@tromey.com>
12143
12144 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12145 * dwarf2/read.c: Add include.
12146 * dwarf2/index-write.c: Add include.
12147 * dwarf2/index-cache.c: Add include.
12148 * dwarf2/dwz.h: New file.
12149
33aa3c10
TT
121502020-03-25 Tom Tromey <tom@tromey.com>
12151
12152 * compile/compile-object-load.c (get_out_value_type): Mention
12153 correct symbol name in error message.
12154
d503b685
HD
121552020-03-25 Hannes Domani <ssbssa@yahoo.de>
12156
12157 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12158
7b1eff95
TV
121592020-03-25 Tom de Vries <tdevries@suse.de>
12160
12161 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12162 * symmisc.c (dump_symtab_1): Print user and includes fields.
12163 (maintenance_info_symtabs): Same.
12164
dd895392
AB
121652020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12166
12167 PR gdb/25534
12168 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12169 (riscv_regcache_cooked_write): New function.
12170 (riscv_push_dummy_call): Use new function.
12171 (riscv_return_value): Likewise.
12172
5ab2fbf1
SM
121732020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12174
12175 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12176 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12177 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12178 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12179 * infrun.c (follow_fork): Likewise.
12180 (follow_fork_inferior): Likewise.
12181 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12182 * linux-nat.h (class linux_nat_target): Likewise.
12183 * remote.c (class remote_target) <follow_fork>: Likewise.
12184 (remote_target::follow_fork): Likewise.
12185 * target-delegates.c: Re-generate.
12186 * target.c (default_follow_fork): Likewise.
12187 (target_follow_fork): Likewise.
12188 * target.h (struct target_ops) <follow_fork>: Likewise.
12189 (target_follow_fork): Likewise.
12190
a64fafb5
TV
121912020-03-24 Tom de Vries <tdevries@suse.de>
12192
12193 * psymtab.c (maintenance_info_psymtabs): Print user field.
12194
fe26d3a3
TT
121952020-03-20 Tom Tromey <tromey@adacore.com>
12196
12197 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12198 const.
12199 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12200 const.
12201
c884cc46
SM
122022020-03-20 Simon Marchi <simon.marchi@efficios.com>
12203
12204 * ptrace.m4: Don't check for ptrace declaration.
12205 * config.in: Re-generate.
12206 * configure: Re-generate.
12207 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12208 not defined.
12209
1ff700c2
KR
122102020-03-20 Kamil Rytarowski <n54@gmx.com>
12211
12212 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12213 `PTRACE_TYPE_RET'.
12214 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12215 * sparc-nat.c (gdb_ptrace): Likewise.
12216 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12217
f7d4f0b1
TT
122182020-03-20 Tom Tromey <tromey@adacore.com>
12219
12220 * c-exp.y (lex_one_token): Fix assert.
12221
f67210ff
TT
122222020-03-20 Tom Tromey <tromey@adacore.com>
12223
12224 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12225 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12226 strncpy call.
12227
1773be9e
TT
122282020-03-20 Tom Tromey <tromey@adacore.com>
12229
12230 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12231
70304be9
TT
122322020-03-20 Tom Tromey <tromey@adacore.com>
12233
12234 * ada-valprint.c (print_variant_part): Remove parameters; switch
12235 to value-based API.
12236 (print_field_values): Likewise.
12237 (ada_val_print_struct_union): Likewise.
12238 (ada_value_print_1): Update.
12239
9faa006d
KR
122402020-03-20 Kamil Rytarowski <n54@gmx.com>
12241
12242 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12243 nbsd_nat_target instead of inf_ptrace_target.
12244 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12245 nbsd_nat_target.
12246
4a90f062
KR
122472020-03-20 Kamil Rytarowski <n54@gmx.com>
12248
12249 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12250 it to the ptrace call.
12251 * (store_registers): Likewise.
12252
122532020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12254
12255 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12256 it to the ptrace call.
12257 * (store_registers): Likewise.
12258
2d07da27
LM
122592020-03-19 Luis Machado <luis.machado@linaro.org>
12260
12261 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12262 valid, fetch vg value from ptrace.
12263
f09db380
KR
122642020-03-19 Kamil Rytarowski <n54@gmx.com>
12265 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12266 * inf-ptrace.c: Likewise.
12267 * (gdb_ptrace): Add.
12268 * (inf_ptrace_target::resume): Update.
12269 * (inf_ptrace_target::xfer_partial): Likewise.
12270 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12271 * (inf_ptrace_peek_poke): Update.
12272
fcc7376e
KR
122732020-03-19 Kamil Rytarowski <n54@gmx.com>
12274
12275 * x86-bsd-nat.c (gdb_ptrace): New.
12276 * (x86bsd_dr_set): Add new argument `ptid'.
12277 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12278 x86bsd_dr_set_addr): Update.
12279
cada5fc9
AB
122802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12281
12282 * remote.c (remote_target::process_stop_reply): Handle events for
12283 all threads differently.
12284
19a2740f
AB
122852020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12286
12287 * completer.c (completion_tracker::remove_completion): Define new
12288 function.
12289 * completer.h (completion_tracker::remove_completion): Declare new
12290 function.
12291 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12292 when adding a C++ function symbol.
12293
724fd9ba
AB
122942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12295
12296 * completer.c (completion_tracker::completion_hash_entry): Define
12297 new class.
12298 (advance_to_filename_complete_word_point): Call
12299 recompute_lowest_common_denominator.
12300 (completion_tracker::completion_tracker): Call discard_completions
12301 to setup the hash table.
12302 (completion_tracker::discard_completions): Allow for being called
12303 from the constructor, pass new equal function, and element deleter
12304 when constructing the hash table. Initialise new class member
12305 variables.
12306 (completion_tracker::maybe_add_completion): Remove use of
12307 m_entries_vec, and store more information into m_entries_hash.
12308 (completion_tracker::recompute_lcd_visitor): New function, most
12309 content taken from...
12310 (completion_tracker::recompute_lowest_common_denominator):
12311 ...here, this now just visits each item in the hash calling the
12312 above visitor.
12313 (completion_tracker::build_completion_result): Remove use of
12314 m_entries_vec, call recompute_lowest_common_denominator.
12315 * completer.h (completion_tracker::have_completions): Remove use
12316 of m_entries_vec.
12317 (completion_tracker::completion_hash_entry): Declare new class.
12318 (completion_tracker::recompute_lowest_common_denominator): Change
12319 function signature.
12320 (completion_tracker::recompute_lcd_visitor): Declare new function.
12321 (completion_tracker::m_entries_vec): Delete.
12322 (completion_tracker::m_entries_hash): Initialize to NULL.
12323 (completion_tracker::m_lowest_common_denominator_valid): New
12324 member variable.
12325 (completion_tracker::m_lowest_common_denominator_max_length): New
12326 member variable.
12327
5a82b8a1
KR
123282020-03-17 Kamil Rytarowski <n54@gmx.com>
12329
12330 * regformats/regdef.h: Put reg in gdb namespace.
12331
fb516a69
KR
123322020-03-17 Kamil Rytarowski <n54@gmx.com>
12333
12334 * i386-bsd-nat.c (gdb_ptrace): New.
12335 * (i386bsd_fetch_inferior_registers,
12336 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12337 * (i386bsd_fetch_inferior_registers,
12338 i386bsd_store_inferior_registers) Use gdb_ptrace.
12339
1c0aa1fb
KR
123402020-03-17 Kamil Rytarowski <n54@gmx.com>
12341
12342 * amd64-bsd-nat.c (gdb_ptrace): New.
12343 * (amd64bsd_fetch_inferior_registers,
12344 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12345 * (amd64bsd_fetch_inferior_registers,
12346 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12347
5ccd2fb7
KR
123482020-03-17 Kamil Rytarowski <n54@gmx.com>
12349
12350 * user-regs.c (user_reg::read): Rename to...
12351 (user_reg::xread): ...this.
12352 * (append_user_reg): Rename argument `read' to `xread'.
12353 * (user_reg_add_builtin): Likewise.
12354 * (user_reg_add): Likewise.
12355 * (value_of_user_reg): Likewise.
12356
2108a63a
KR
123572020-03-17 Kamil Rytarowski <n54@gmx.com>
12358
12359 * sparc-nat.c (gdb_ptrace): New.
12360 * sparc-nat.c (sparc_fetch_inferior_registers)
12361 (sparc_store_inferior_registers) Remove obsolete comment.
12362 * sparc-nat.c (sparc_fetch_inferior_registers)
12363 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12364 * sparc-nat.c (sparc_fetch_inferior_registers)
12365 (sparc_store_inferior_registers) Use gdb_ptrace.
12366
a225c9a8
KR
123672020-03-17 Kamil Rytarowski <n54@gmx.com>
12368
12369 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12370 it to the ptrace call.
12371 * sh-nbsd-nat.c (store_registers): Likewise.
12372
98097623
KR
123732020-03-17 Kamil Rytarowski <n54@gmx.com>
12374
12375 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12376 nbsd_nat_target instead of inf_ptrace_target.
12377 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12378 nbsd_nat_target.
12379
9e38d619
KR
123802020-03-17 Kamil Rytarowski <n54@gmx.com>
12381
12382 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12383
a2ecbe9f
KR
123842020-03-17 Kamil Rytarowski <n54@gmx.com>
12385
12386 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12387 <sys/sysctl.h>.
12388 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12389
58990295
TV
123902020-03-17 Tom de Vries <tdevries@suse.de>
12391
12392 PR gdb/23710
12393 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12394 fields.
12395 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12396 fields.
12397 (process_imported_unit_die): Skip import of c++ CUs.
12398
771dd3a8
TT
123992020-03-16 Tom Tromey <tom@tromey.com>
12400
12401 * p-valprint.c (pascal_object_print_value): Initialize
12402 base_value.
12403
817a7585
AK
124042020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12405 Shahab Vahedi <shahab@synopsys.com>
12406
12407 * Makefile.in: Add arch/arc.o
12408 * configure.tgt: Likewise.
12409 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12410 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12411 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12412 * arc-tdep.h (arc_read_description): Add proto type.
12413 * arch/arc.c: New file.
12414 * arch/arc.h: Likewise.
12415 * features/Makefile: Replace old target descriptions with new.
12416 * features/arc-arcompact.c: Remove.
12417 * features/arc-arcompact.xml: Likewise.
12418 * features/arc-v2.c: Likewise
12419 * features/arc-v2.xml: Likewise
12420 * features/arc/aux-arcompact.xml: New file.
12421 * features/arc/aux-v2.xml: Likewise.
12422 * features/arc/core-arcompact.xml: Likewise.
12423 * features/arc/core-v2.xml: Likewise.
12424 * features/arc/aux-arcompact.c: Generate.
12425 * features/arc/aux-v2.c: Likewise.
12426 * features/arc/core-arcompact.c: Likewise.
12427 * features/arc/core-v2.c: Likewise.
12428 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12429
67430cd0
TT
124302020-03-16 Tom Tromey <tromey@adacore.com>
12431
12432 PR gdb/25663:
12433 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12434 putting value into bcache.
12435
30efb6c7
SM
124362020-03-16 Simon Marchi <simon.marchi@efficios.com>
12437
12438 PR gdb/21500
12439 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12440 to...
12441 (amd64_windows_init_abi_common): ... this. Don't set size of
12442 long type.
12443 (amd64_windows_init_abi): New function.
12444 (amd64_cygwin_init_abi): New function.
12445 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12446 the Cygwin OS ABI.
12447 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12448 comment.
12449
8db52437
SM
124502020-03-16 Simon Marchi <simon.marchi@efficios.com>
12451
12452 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12453 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12454 (pe_import_directory_entry): New struct type.
12455 (is_linked_with_cygwin_dll): New function.
12456 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12457 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12458 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12459
5982a56a
SM
124602020-03-16 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12463 i386_cygwin_core_osabi_sniffer.
12464
7a1998df
SM
124652020-03-16 Simon Marchi <simon.marchi@efficios.com>
12466
12467 * i386-cygwin-tdep.c: Rename to...
12468 * i386-windows-tdep.c: ... this.
12469 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12470 i386-windows-tdep.c.
12471 * configure.tgt: Likewise.
12472
053205cc
SM
124732020-03-16 Simon Marchi <simon.marchi@efficios.com>
12474
12475 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12476 * osabi.c (gdb_osabi_names): Add "Windows".
12477 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12478 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12479 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12480 i386_cygwin_osabi_sniffer.
12481 (_initialize_i386_cygwin_tdep): Register OS ABI
12482 GDB_OSABI_WINDOWS for i386.
12483 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12484 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12485 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12486 for x86-64.
12487 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12488 when the target matches '*-*-mingw*'.
12489
fe4b2ee6
SM
124902020-03-16 Simon Marchi <simon.marchi@efficios.com>
12491
12492 * defs.h (enum gdb_osabi): Move to...
12493 * osabi.h (enum gdb_osabi): ... here.
12494 * gdbarch.sh: Include osabi.h in gdbarch.h.
12495 * gdbarch.h: Re-generate.
12496
cb9b645d
SM
124972020-03-16 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12500 function.
12501 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12502
3293bbaf
TT
125032020-03-14 Tom Tromey <tom@tromey.com>
12504
12505 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12506 for C++.
12507 (c_type_print_modifier): Likewise. Add "language" parameter.
12508 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12509 (c_type_print_base_1): Update.
12510 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12511 constants.
12512 * type-stack.c (type_stack::insert): Handle tp_atomic and
12513 tp_restrict.
12514 (type_stack::follow_type_instance_flags): Likewise.
12515 (type_stack::follow_types): Likewise. Merge type-following code.
12516 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12517 (space_identifier, cv_with_space_id)
12518 (const_or_volatile_or_space_identifier_noopt)
12519 (const_or_volatile_or_space_identifier): Remove.
12520 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12521 rules.
12522 (ptr_operator, typebase): Update.
12523 (enum token_flag) <FLAG_C>: New constant.
12524 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12525 "_Atomic".
12526 (lex_one_token): Handle FLAG_C.
12527
154151a6
KR
125282020-03-14 Kamil Rytarowski <n54@gmx.com>
12529
12530 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12531 it to the ptrace call.
12532 * m68k-bsd-nat.c (store_registers): Likewise.
12533
bc107784
KR
125342020-03-14 Kamil Rytarowski <n54@gmx.com>
12535
12536 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12537 gdb_byte *.
12538 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12539 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12540 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12541
01a80117
KR
125422020-03-14 Kamil Rytarowski <n54@gmx.com>
12543
12544 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12545 nbsd_nat_target instead of inf_ptrace_target.
12546 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12547 nbsd_nat_target.
12548
f90280ca
KR
125492020-03-14 Kamil Rytarowski <n54@gmx.com>
12550
12551 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12552 register_t.
12553
6def66f1
KR
125542020-03-14 Kamil Rytarowski <n54@gmx.com>
12555
12556 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12557 it to the ptrace call.
12558 * alpha-bsd-nat.c (store_registers): Likewise.
12559
66eaca97
KR
125602020-03-14 Kamil Rytarowski <n54@gmx.com>
12561
12562 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12563 includes.
12564 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12565 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12566 fill_fpregset): Likewise.
12567
4fed520b
KR
125682020-03-14 Kamil Rytarowski <n54@gmx.com>
12569
12570 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12571 nbsd_nat_target instead of inf_ptrace_target.
12572 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12573 nbsd_nat_target.
12574
2190cf06
KR
125752020-03-14 Kamil Rytarowski <n54@gmx.com>
12576
12577 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12578 register_t.
12579
75c56d3d
KR
125802020-03-14 Kamil Rytarowski <n54@gmx.com>
12581
12582 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12583 it to the ptrace call.
12584 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12585 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12586 * arm-nbsd-nat.c (store_register): Likewise.
12587 * arm-nbsd-nat.c (store_regs): Likewise.
12588 * arm-nbsd-nat.c (store_fp_register): Likewise.
12589 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12590
6018d381
KR
125912020-03-14 Kamil Rytarowski <n54@gmx.com>
12592
12593 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12594 nbsd_nat_target instead of inf_ptrace_target.
12595 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12596 nbsd_nat_target.
12597
013f99f0
KR
125982020-03-14 Kamil Rytarowski <n54@gmx.com>
12599
12600 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12601 it to the ptrace call.
12602 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12603
12753073
KR
126042020-03-14 Kamil Rytarowski <n54@gmx.com>
12605
6227b330
KR
12606 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12607 it to the ptrace call.
12608 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12609
126102020-03-14 Kamil Rytarowski <n54@gmx.com>
12611
12612 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12613 gdb_byte *.
12753073
KR
12614 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12615
d5be5fa4
KR
126162020-03-14 Kamil Rytarowski <n54@gmx.com>
12617
12618 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12619 instead of inf_ptrace_target.
12620 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12621 nbsd_nat_target.
12622
8110f842
KR
126232020-03-14 Kamil Rytarowski <n54@gmx.com>
12624
12625 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12626 register_t.
12627
52feded7
KR
126282020-03-14 Kamil Rytarowski <n54@gmx.com>
12629
12630 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12631 register_t.
12632
25567eee
KR
126332020-03-14 Kamil Rytarowski <n54@gmx.com>
12634
12635 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12636 register_t.
12637
426a9c18
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * value.h (val_print): Don't declare.
12641 * valprint.h (val_print_array_elements)
12642 (val_print_scalar_formatted, generic_val_print): Don't declare.
12643 * valprint.c (generic_val_print_array): Take a struct value.
12644 (generic_val_print_ptr, generic_val_print_memberptr)
12645 (generic_val_print_bool, generic_val_print_int)
12646 (generic_val_print_char, generic_val_print_complex)
12647 (generic_val_print): Remove.
12648 (generic_value_print): Update.
12649 (do_val_print): Remove unused parameters. Don't call
12650 la_val_print.
12651 (val_print): Remove.
12652 (common_val_print): Update. Don't call value_check_printable.
12653 (val_print_scalar_formatted, val_print_array_elements): Remove.
12654 * rust-lang.c (rust_val_print): Remove.
12655 (rust_language_defn): Update.
12656 * p-valprint.c (pascal_val_print): Remove.
12657 (pascal_value_print_inner): Update.
12658 (pascal_object_print_val_fields, pascal_object_print_val):
12659 Remove.
12660 (pascal_object_print_static_field): Update.
12661 * p-lang.h (pascal_val_print): Don't declare.
12662 * p-lang.c (pascal_language_defn): Update.
12663 * opencl-lang.c (opencl_language_defn): Update.
12664 * objc-lang.c (objc_language_defn): Update.
12665 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12666 * m2-lang.h (m2_val_print): Don't declare.
12667 * m2-lang.c (m2_language_defn): Update.
12668 * language.h (struct language_defn) <la_val_print>: Remove.
12669 * language.c (unk_lang_value_print_inner): Rename. Change
12670 argument types.
12671 (unknown_language_defn, auto_language_defn): Update.
12672 * go-valprint.c (go_val_print): Remove.
12673 * go-lang.h (go_val_print): Don't declare.
12674 * go-lang.c (go_language_defn): Update.
12675 * f-valprint.c (f_val_print): Remove.
12676 * f-lang.h (f_value_print): Don't declare.
12677 * f-lang.c (f_language_defn): Update.
12678 * d-valprint.c (d_val_print): Remove.
12679 * d-lang.h (d_value_print): Don't declare.
12680 * d-lang.c (d_language_defn): Update.
12681 * cp-valprint.c (cp_print_value_fields)
12682 (cp_print_value_fields_rtti, cp_print_value): Remove.
12683 (cp_print_static_field): Update.
12684 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12685 (c_val_print_struct, c_val_print_union, c_val_print_int)
12686 (c_val_print_memberptr, c_val_print): Remove.
12687 * c-lang.h (c_val_print_array, cp_print_value_fields)
12688 (cp_print_value_fields_rtti): Don't declare.
12689 * c-lang.c (c_language_defn, cplus_language_defn)
12690 (asm_language_defn, minimal_language_defn): Update.
12691 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12692 (ada_val_print_enum): Take a struct value.
12693 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12694 (ada_val_print): Remove.
12695 (ada_value_print_1): Update.
12696 (printable_val_type): Remove.
12697 * ada-lang.h (ada_val_print): Don't declare.
12698 * ada-lang.c (ada_language_defn): Update.
12699
42331a1e
TT
127002020-03-13 Tom Tromey <tom@tromey.com>
12701
12702 * valprint.c (do_val_print): Update.
12703 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12704 a struct value.
12705 (value_to_value_object_no_release): Declare.
12706 * python/py-value.c (value_to_value_object_no_release): New
12707 function.
12708 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12709 struct value.
12710 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12711 function.
12712 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12713 a struct value.
12714 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12715 Declare.
12716 (gdbscm_apply_val_pretty_printer): Take a struct value.
12717 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12718 value.
12719 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12720 value.
12721 * extension-priv.h (struct extension_language_ops)
12722 <apply_val_pretty_printer>: Take a struct value.
12723 * cp-valprint.c (cp_print_value): Create a struct value.
12724 (cp_print_value): Update.
12725
3a916a97
TT
127262020-03-13 Tom Tromey <tom@tromey.com>
12727
12728 * ada-valprint.c (print_field_values): Call common_val_print.
12729
b59eac37
TT
127302020-03-13 Tom Tromey <tom@tromey.com>
12731
12732 * ada-valprint.c (val_print_packed_array_elements): Remove
12733 bitoffset and val parameters. Call common_val_print.
12734 (ada_val_print_string): Remove offset, address, and original_value
12735 parameters.
12736 (ada_val_print_array): Update.
12737 (ada_value_print_array): New function.
12738 (ada_value_print_1): Call it.
12739
03371129
TT
127402020-03-13 Tom Tromey <tom@tromey.com>
12741
12742 * ada-valprint.c (ada_value_print): Use common_val_print.
12743
2e088f8b
TT
127442020-03-13 Tom Tromey <tom@tromey.com>
12745
12746 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12747
39ef85a8
TT
127482020-03-13 Tom Tromey <tom@tromey.com>
12749
12750 * ada-valprint.c (ada_value_print_num): New function.
12751 (ada_value_print_1): Use it.
12752
b9fa6e07
TT
127532020-03-13 Tom Tromey <tom@tromey.com>
12754
12755 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12756
416595d6
TT
127572020-03-13 Tom Tromey <tom@tromey.com>
12758
12759 * ada-valprint.c (ada_value_print_ptr): New function.
12760 (ada_value_print_1): Use it.
12761
5b5e15ec
TT
127622020-03-13 Tom Tromey <tom@tromey.com>
12763
12764 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12765 call common_val_print.
12766 (ada_val_print_1): Update.
12767 (ada_value_print_1): New function.
12768 (ada_value_print_inner): Rewrite.
12769
fbf54e75
TT
127702020-03-13 Tom Tromey <tom@tromey.com>
12771
12772 * cp-valprint.c (cp_print_value_fields): Update.
12773 (cp_print_value): New function.
12774
64b653ca
TT
127752020-03-13 Tom Tromey <tom@tromey.com>
12776
12777 * m2-valprint.c (m2_value_print_inner): Use
12778 cp_print_value_fields.
12779 * cp-valprint.c (cp_print_value_fields): New function.
12780 * c-valprint.c (c_value_print_struct): New function.
12781 (c_value_print_inner): Use c_value_print_struct.
12782 * c-lang.h (cp_print_value_fields): Declare.
12783
6999f067
TT
127842020-03-13 Tom Tromey <tom@tromey.com>
12785
12786 * c-valprint.c (c_value_print_array): New function.
12787 (c_value_print_inner): Use it.
12788
ce80b8bd
TT
127892020-03-13 Tom Tromey <tom@tromey.com>
12790
12791 * c-valprint.c (c_value_print_memberptr): New function.
12792 (c_value_print_inner): Use it.
12793
2faac269
TT
127942020-03-13 Tom Tromey <tom@tromey.com>
12795
12796 * c-valprint.c (c_value_print_int): New function.
12797 (c_value_print_inner): Use it.
12798
da3e2c29
TT
127992020-03-13 Tom Tromey <tom@tromey.com>
12800
12801 * c-valprint.c (c_value_print_ptr): New function.
12802 (c_value_print_inner): Use it.
12803
50836231
TT
128042020-03-13 Tom Tromey <tom@tromey.com>
12805
12806 * c-valprint.c (c_value_print_inner): Rewrite.
12807
4f412b6e
TT
128082020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * valprint.c (generic_value_print_complex): New function.
12811 (generic_value_print): Use it.
12812
f5354008
TT
128132020-03-13 Tom Tromey <tom@tromey.com>
12814
12815 * valprint.c (generic_val_print_float): Don't call
12816 val_print_scalar_formatted.
12817 (generic_val_print, generic_value_print): Update.
12818
3eec3b05
TT
128192020-03-13 Tom Tromey <tom@tromey.com>
12820
12821 * valprint.c (generic_value_print_char): New function
12822 (generic_value_print): Use it.
12823
fdddfccb
TT
128242020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * valprint.c (generic_value_print_int): New function.
12827 (generic_value_print): Use it.
12828
6dde7521
TT
128292020-03-13 Tom Tromey <tom@tromey.com>
12830
12831 * valprint.c (generic_value_print_bool): New function.
12832 (generic_value_print): Use it.
12833
4112d2e6
TT
128342020-03-13 Tom Tromey <tom@tromey.com>
12835
12836 * valprint.c (generic_val_print_func): Simplify.
12837 (generic_val_print, generic_value_print): Update.
12838
65786af6
TT
128392020-03-13 Tom Tromey <tom@tromey.com>
12840
12841 * valprint.c (generic_val_print_flags): Remove.
12842 (generic_val_print, generic_value_print): Update.
12843 (val_print_type_code_flags): Add original_value parameter.
12844
40f3ce18
TT
128452020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.c (generic_val_print): Update.
12848 (generic_value_print): Update.
12849 * valprint.c (generic_val_print_enum): Don't call
12850 val_print_scalar_formatted.
12851
2a5b130b
TT
128522020-03-13 Tom Tromey <tom@tromey.com>
12853
12854 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12855 * valprint.c (generic_value_print_ptr): New function.
12856
abc66ce9
TT
128572020-03-13 Tom Tromey <tom@tromey.com>
12858
12859 * valprint.c (generic_value_print): Rewrite.
12860
07a32858
TT
128612020-03-13 Tom Tromey <tom@tromey.com>
12862
12863 * p-valprint.c (pascal_object_print_value_fields)
12864 (pascal_object_print_value): New functions.
12865
64d64d3a
TT
128662020-03-13 Tom Tromey <tom@tromey.com>
12867
12868 * p-valprint.c (pascal_value_print_inner): Rewrite.
12869
6a95a1f5
TT
128702020-03-13 Tom Tromey <tom@tromey.com>
12871
12872 * f-valprint.c (f_value_print_innner): Rewrite.
12873
59fcdac6
TT
128742020-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * m2-valprint.c (m2_print_unbounded_array): New overload.
12877 (m2_print_unbounded_array): Update.
12878 (m2_print_array_contents): Take a struct value.
12879 (m2_value_print_inner): Rewrite.
12880
d133c3e1
TT
128812020-03-13 Tom Tromey <tom@tromey.com>
12882
12883 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12884 (d_value_print_inner): New function.
12885 * d-lang.h (d_value_print_inner): Declare.
12886 * d-lang.c (d_language_defn): Use d_value_print_inner.
12887
23b0f06b
TT
128882020-03-13 Tom Tromey <tom@tromey.com>
12889
12890 * go-valprint.c (go_value_print_inner): New function.
12891 * go-lang.h (go_value_print_inner): Declare.
12892 * go-lang.c (go_language_defn): Use go_value_print_inner.
12893
5f56f7cb
TT
128942020-03-13 Tom Tromey <tom@tromey.com>
12895
12896 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12897 API.
12898 (rust_val_print): Rewrite.
12899 (rust_value_print_inner): New function, from rust_val_print.
12900 (rust_language_defn): Use rust_value_print_inner.
12901
26792ee0
TT
129022020-03-13 Tom Tromey <tom@tromey.com>
12903
12904 * ada-valprint.c (ada_value_print_inner): New function.
12905 * ada-lang.h (ada_value_print_inner): Declare.
12906 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12907
24051bbe
TT
129082020-03-13 Tom Tromey <tom@tromey.com>
12909
12910 * f-valprint.c (f_value_print_innner): New function.
12911 * f-lang.h (f_value_print_innner): Declare.
12912 * f-lang.c (f_language_defn): Use f_value_print_innner.
12913
c0941be6
TT
129142020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * p-valprint.c (pascal_value_print_inner): New function.
12917 * p-lang.h (pascal_value_print_inner): Declare.
12918 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12919
62c4663d
TT
129202020-03-13 Tom Tromey <tom@tromey.com>
12921
12922 * m2-valprint.c (m2_value_print_inner): New function.
12923 * m2-lang.h (m2_value_print_inner): Declare.
12924 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12925
62182190
TT
129262020-03-13 Tom Tromey <tom@tromey.com>
12927
12928 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12929 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12930 * c-valprint.c (c_value_print_inner): New function.
12931 * c-lang.h (c_value_print_inner): Declare.
12932 * c-lang.c (c_language_defn, cplus_language_defn)
12933 (asm_language_defn, minimal_language_defn): Use
12934 c_value_print_inner.
12935
1e592a8a
TT
129362020-03-13 Tom Tromey <tom@tromey.com>
12937
12938 * p-valprint.c (pascal_object_print_value_fields): Now static.
12939 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12940
7fe471e9
TT
129412020-03-13 Tom Tromey <tom@tromey.com>
12942
12943 * c-valprint.c (c_val_print_array): Simplify.
12944
d121c6ce
TT
129452020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * valprint.c (value_print_array_elements): New function.
12948 * valprint.h (value_print_array_elements): Declare.
12949
4dba70ee
TT
129502020-03-13 Tom Tromey <tom@tromey.com>
12951
12952 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12953 * mips-tdep.c (mips_print_register): Use
12954 value_print_scalar_formatted.
12955
4f9ae810
TT
129562020-03-13 Tom Tromey <tom@tromey.com>
12957
12958 * valprint.h (value_print_scalar_formatted): Declare.
12959 * valprint.c (value_print_scalar_formatted): New function.
12960
156bfec9
TT
129612020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * valprint.h (generic_value_print): Declare.
12964 * valprint.c (generic_value_print): New function.
12965
2b4e573d
TT
129662020-03-13 Tom Tromey <tom@tromey.com>
12967
12968 * valprint.c (do_val_print): Call la_value_print_inner, if
12969 available.
12970 * rust-lang.c (rust_language_defn): Update.
12971 * p-lang.c (pascal_language_defn): Update.
12972 * opencl-lang.c (opencl_language_defn): Update.
12973 * objc-lang.c (objc_language_defn): Update.
12974 * m2-lang.c (m2_language_defn): Update.
12975 * language.h (struct language_defn) <la_value_print_inner>: New
12976 member.
12977 * language.c (unknown_language_defn, auto_language_defn): Update.
12978 * go-lang.c (go_language_defn): Update.
12979 * f-lang.c (f_language_defn): Update.
12980 * d-lang.c (d_language_defn): Update.
12981 * c-lang.c (c_language_defn, cplus_language_defn)
12982 (asm_language_defn, minimal_language_defn): Update.
12983 * ada-lang.c (ada_language_defn): Update.
12984
a1f6a07c
TT
129852020-03-13 Tom Tromey <tom@tromey.com>
12986
12987 * c-valprint.c (c_value_print): Use common_val_print.
12988
410cf315
TT
129892020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12992
72a45c93
TT
129932020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * f-valprint.c (f77_print_array_1, f_val_print): Use
12996 common_val_print.
12997
040f66bd
TT
129982020-03-13 Tom Tromey <tom@tromey.com>
12999
13000 * riscv-tdep.c (riscv_print_one_register_info): Use
13001 common_val_print.
13002
a6e05a6c
TT
130032020-03-13 Tom Tromey <tom@tromey.com>
13004
13005 * mi/mi-main.c (output_register): Use common_val_print.
13006
3444c526
TT
130072020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * infcmd.c (default_print_one_register_info): Use
13010 common_val_print.
13011
c2a44efe
TT
130122020-03-13 Tom Tromey <tom@tromey.com>
13013
13014 * valprint.h (common_val_print_checked): Declare.
13015 * valprint.c (common_val_print_checked): New function.
13016 * stack.c (print_frame_arg): Use common_val_print_checked.
13017
b0c26e99
TT
130182020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * valprint.c (do_val_print): New function, from val_print.
13021 (val_print): Use do_val_print.
13022 (common_val_print): Use do_val_print.
13023
ce3acbe9
TT
130242020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * valprint.c (value_print): Use scoped_value_mark.
13027
96c7f873
TV
130282020-03-13 Tom de Vries <tdevries@suse.de>
13029
13030 PR symtab/25646
13031 * psymtab.c (partial_symtab::partial_symtab): Don't set
13032 globals_offset and statics_offset. Push element onto
13033 current_global_psymbols and current_static_psymbols stacks.
13034 (concat): New function.
13035 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13036 element from current_global_psymbols and current_static_psymbols
13037 stacks. Concat popped elements to global_psymbols and
13038 static_symbols.
13039 (add_psymbol_to_list): Use current_global_psymbols and
13040 current_static_psymbols stacks.
13041 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13042 current_static_psymbols fields.
13043
6ba0a321
CB
130442020-03-12 Christian Biesinger <cbiesinger@google.com>
13045
13046 * corelow.c (sniff_core_bfd): Remove.
13047 (class core_target) <m_core_vec>: Remove.
13048 (core_target::core_target): Update.
13049 (core_file_fns): Remove.
13050 (deprecated_add_core_fns): Remove.
13051 (default_core_sniffer): Remove.
13052 (sniff_core_bfd): Remove.
13053 (default_check_format): Remove.
13054 (gdb_check_format): Remove.
13055 (core_target_open): Update.
13056 (core_target::get_core_register_section): Update.
13057 (get_core_registers_cb): Update.
13058 (core_target::fetch_registers): Update.
13059 * gdbcore.h (struct core_fns): Remove.
13060 (deprecated_add_core_fns): Remove.
13061 (default_core_sniffer): Remove.
13062 (default_check_format): Remove.
13063
227031b2
TT
130642020-03-12 Tom Tromey <tom@tromey.com>
13065
13066 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13067 CORE_ADDR.
13068 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13069
53807e9f
TT
130702020-03-12 Tom Tromey <tom@tromey.com>
13071
13072 * remote.c (remote_target::download_tracepoint)
13073 (remote_target::enable_tracepoint)
13074 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13075 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13076 sprintf_vma.
13077
64f25102
TT
130782020-03-12 Tom Tromey <tom@tromey.com>
13079
13080 * symfile-mem.c: Update CORE_ADDR size assert.
13081
272cd5a3
SM
130822020-03-12 Simon Marchi <simon.marchi@efficios.com>
13083
13084 * selftest.m4: Move to gdbsupport/.
13085 * acinclude.m4: Update path to selftest.m4.
13086
74cd3f9d
SM
130872020-03-12 Simon Marchi <simon.marchi@efficios.com>
13088
13089 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13090 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13091 gdbarch-selfselftests.c and selftest-arch.c.
13092 (SUBDIR_UNITTESTS_OBS): Rename to...
13093 (SELFTESTS_OBS): ... this.
13094 (COMMON_SFILES): Remove disasm-selftests.c and
13095 gdbarch-selftests.c.
13096 * configure.ac: Don't add selftest-arch.{c,o} to
13097 CONFIG_{SRCS,OBS}.
13098 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13099 preprocessor conditions.
13100
db6878ac
SM
131012020-03-12 Simon Marchi <simon.marchi@efficios.com>
13102
13103 * configure.ac: Don't source bfd/development.sh.
13104 * selftest.m4: Modify comment.
13105 * configure: Re-generate.
13106
4d696a5c
SM
131072020-03-12 Simon Marchi <simon.marchi@efficios.com>
13108
13109 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13110 not "true" or "false".
13111 * configure: Re-generate.
13112
8dd8e1c7
CB
131132020-03-12 Christian Biesinger <cbiesinger@google.com>
13114
13115 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13116 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13117 renamed to arm_nbsd_supply_gregset.
13118 (fetch_register): Update to call arm_nbsd_supply_gregset.
13119 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13120 (arm_netbsd_nat_target::fetch_registers): Update.
13121 (fetch_elfcore_registers): Removed.
13122 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13123 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13124 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13125 not require NetBSD system headers.
13126 (arm_nbsd_regset): New struct.
13127 (arm_nbsd_iterate_over_regset_sections): New function.
13128 (arm_netbsd_init_abi_common): Updated to call
13129 set_gdbarch_iterate_over_regset_sections.
13130 * arm-nbsd-tdep.h: New file.
13131
dd69bf7a
KB
131322020-03-11 Kevin Buettner <kevinb@redhat.com>
13133
13134 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13135 recursion.
13136
a0761e34
SM
131372020-03-11 Simon Marchi <simon.marchi@efficios.com>
13138
13139 * configure: Re-generate.
13140
e7a82140
TT
131412020-03-11 Tom Tromey <tromey@adacore.com>
13142
13143 * ada-typeprint.c (print_choices): Fix comment.
13144
dcc050c8
AB
131452020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13146
13147 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13148 previous item in the list, when the list has no items.
13149
1c33af77
TV
131502020-03-11 Tom de Vries <tdevries@suse.de>
13151
13152 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13153 PROP_LOCLIST handling code.
13154
8c95582d
AB
131552020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13156
13157 * buildsym-legacy.c (record_line): Pass extra parameter to
13158 record_line.
13159 * buildsym.c (buildsym_compunit::record_line): Take an extra
13160 parameter, reduce duplication in the line table, and record the
13161 is_stmt flag in the line table.
13162 * buildsym.h (buildsym_compunit::record_line): Add extra
13163 parameter.
13164 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13165 non-statement lines.
13166 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13167 this to the symtab builder.
13168 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13169 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13170 through to dwarf_record_line_1.
13171 * infrun.c (process_event_stop_test): When stepping, don't stop at
13172 a non-statement instruction, and only refresh the step info when
13173 we land in the middle of a line's range. Also add an extra
13174 comment.
13175 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13176 field.
13177 * record-btrace.c (btrace_find_line_range): Only record lines
13178 marked as is-statement.
13179 * stack.c (frame_show_address): Show the frame address if we are
13180 in a non-statement sal.
13181 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13182 (maintenance_print_one_line_table): Print a header for the is_stmt
13183 column, and include is_stmt information in the output.
13184 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13185 preference to non-statements.
13186 (find_pcs_for_symtab_line): Prefer is-statement entries.
13187 (find_line_common): Likewise.
13188 * symtab.h (struct linetable_entry): Add is_stmt field.
13189 (struct symtab_and_line): Likewise.
13190 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13191 arranging the line table.
13192
e4003a34
TV
131932020-03-07 Tom de Vries <tdevries@suse.de>
13194
13195 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13196 DIE.
13197
e8932576
TT
131982020-03-07 Tom Tromey <tom@tromey.com>
13199
13200 * valops.c (value_literal_complex): Remove obsolete comment.
13201 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13202 comment.
13203
29734269
SM
132042020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13205
13206 * infrun.h: Forward-declare thread_info.
13207 (set_step_info): Add thread_info parameter, add doc.
13208 * infrun.c (set_step_info): Add thread_info parameter, move doc
13209 to header.
13210 * infrun.c (process_event_stop_test): Pass thread to
13211 set_step_info call.
13212 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13213 set_step_info.
13214 (prepare_one_step): Add thread_info parameter, pass it to
13215 set_step_frame and prepare_one_step (recursive) call.
13216 (step_1): Pass thread to prepare_one_step call.
13217 (step_command_fsm::should_stop): Pass thread to
13218 prepare_one_step.
13219 (until_next_fsm): Pass thread to set_step_frame call.
13220 (finish_command): Pass thread to set_step_info call.
13221
b7d64b29
HD
132222020-03-06 Hannes Domani <ssbssa@yahoo.de>
13223
13224 * windows-tdep.c (windows_solib_create_inferior_hook):
13225 Check if inferior is running.
13226
09f2921c
TV
132272020-03-06 Tom de Vries <tdevries@suse.de>
13228
13229 * NEWS: Fix "the the".
13230 * ctfread.c: Same.
13231
fd760e79
TV
132322020-03-06 Tom de Vries <tdevries@suse.de>
13233
13234 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13235
20ea4a60
AB
132362020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * .dir-locals.el: Add a comment referencing the other copies of
13239 this file.
13240
0afbabf0
JB
132412020-03-05 John Baldwin <jhb@FreeBSD.org>
13242
13243 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13244 psargs.
13245
842806cb
TBA
132462020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13247
13248 * .gitattributes: New file.
13249
be1e3d3e
TT
132502020-03-04 Tom Tromey <tom@tromey.com>
13251
13252 * symmisc.c (print_symbol_bcache_statistics)
13253 (print_objfile_statistics): Update.
13254 * symfile.c (allocate_symtab): Use intern.
13255 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13256 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13257 macro_cache>: Remove.
13258 <string_cache>: New member.
13259 (struct objfile) <intern>: New methods.
13260 * elfread.c (elf_symtab_read): Use intern.
13261 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13262 (dwarf2_compute_name, dwarf2_physname)
13263 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13264 names.
13265 (guess_partial_die_structure_name): Update.
13266 (partial_die_info::fixup): Intern name.
13267 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13268 name.
13269 (dwarf2_name): Intern name. Update.
13270 * buildsym.c (buildsym_compunit::get_macro_table): Use
13271 string_cache.
13272
4e7625fd
TT
132732020-03-04 Tom Tromey <tom@tromey.com>
13274
13275 * jit.c (bfd_open_from_target_memory): Make "target" const.
13276 * corefile.c (gnutarget): Now const.
13277 * gdbcore.h (gnutarget): Now const.
13278
46f9f931
HD
132792020-03-04 Hannes Domani <ssbssa@yahoo.de>
13280
13281 * NEWS: Mention support for WOW64 processes.
13282 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13283 (amd64_windows_segment_register_p): Remove static.
13284 (_initialize_amd64_windows_nat): Update.
13285 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13286 * i386-windows-nat.c (context_offset): Update.
13287 (i386_mappings): Rename and remove static.
13288 (i386_windows_segment_register_p): Remove static.
13289 (_initialize_i386_windows_nat): Update.
13290 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13291 (STATUS_WX86_SINGLE_STEP): New macro.
13292 (EnumProcessModulesEx): New macro.
13293 (Wow64SuspendThread): New macro.
13294 (Wow64GetThreadContext): New macro.
13295 (Wow64SetThreadContext): New macro.
13296 (Wow64GetThreadSelectorEntry): New macro.
13297 (windows_set_context_register_offsets): Add static.
13298 (windows_set_segment_register_p): Likewise.
13299 (windows_add_thread): Adapt for WOW64 processes.
13300 (windows_fetch_one_register): Likewise.
13301 (windows_nat_target::fetch_registers): Likewise.
13302 (windows_store_one_register): Likewise.
13303 (display_selector): Likewise.
13304 (display_selectors): Likewise.
13305 (handle_exception): Likewise.
13306 (windows_continue): Likewise.
13307 (windows_nat_target::resume): Likewise.
13308 (windows_add_all_dlls): Likewise.
13309 (do_initial_windows_stuff): Likewise.
13310 (windows_nat_target::attach): Likewise.
13311 (windows_get_exec_module_filename): Likewise.
13312 (windows_nat_target::create_inferior): Likewise.
13313 (windows_xfer_siginfo): Likewise.
13314 (_initialize_loadable): Initialize Wow64SuspendThread,
13315 Wow64GetThreadContext, Wow64SetThreadContext,
13316 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13317 * windows-nat.h (windows_set_context_register_offsets):
13318 Remove declaration.
13319 (windows_set_segment_register_p): Likewise.
13320 (i386_windows_segment_register_p): Add declaration.
13321 (amd64_windows_segment_register_p): Likewise.
13322
440cf44e
LM
133232020-03-04 Luis Machado <luis.machado@linaro.org>
13324
13325 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13326 in "info registers" for AArch64/ARM.
13327
13328 The change caused "info registers" to not print GPR's.
13329
13330 gdb/ChangeLog:
13331
13332 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13333
13334 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13335 when reg->group is empty and reggroup is not.
13336
1009d92f
TT
133372020-03-03 Tom Tromey <tromey@adacore.com>
13338
13339 * dwarf2/frame.c (struct dwarf2_frame_cache)
13340 <checked_tailcall_bottom, entry_cfa_sp_offset,
13341 entry_cfa_sp_offset_p>: Remove members.
13342 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13343 (dwarf2_frame_prev_register): Don't call
13344 dwarf2_tailcall_sniffer_first.
13345 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13346 * frame-unwind.c (add_unwinder): New fuction.
13347 (frame_unwind_init): Use it. Add tailcall unwinder.
13348
5e5d66b6
AB
133492020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13350 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13351
13352 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13353 value should be printed as true.
13354
584cf46d
HD
133552020-03-03 Hannes Domani <ssbssa@yahoo.de>
13356
13357 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13358 (windows_init_abi): Set and use windows_so_ops.
13359
7b973adc
SDJ
133602020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13361
13362 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13363 when verifying if dealing with a convenience variable.
13364
bb7b70ab
LM
133652020-03-03 Luis Machado <luis.machado@linaro.org>
13366
13367 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13368
9822cb57
SM
133692020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13370
13371 * infrun.c (gdbarch_supports_displaced_stepping): New.
13372 (use_displaced_stepping): Break up conditions in smaller pieces.
13373 Use gdbarch_supports_displaced_stepping.
13374 (displaced_step_prepare_throw): Use
13375 gdbarch_supports_displaced_stepping.
13376
63e163f2
AB
133772020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13378
13379 * NEWS: Mention new behaviour of the history filename.
13380 * top.c (write_history_p): Add comment.
13381 (show_write_history_p): Add header comment, give a different
13382 message when history writing is on, but the history filename is
13383 empty.
13384 (history_filename): Add comment.
13385 (history_filename_empty): New function.
13386 (show_history_filename): Add header comment, give a different
13387 message when the filename is empty.
13388 (init_history): Compare history_filename against nullptr, and only
13389 read history if the filename is not empty.
13390 (set_history_filename): Add header comment, and only make
13391 non-empty filenames absolute.
13392 (init_main): Make the filename argument to 'set history filename'
13393 optional.
13394
81b86b97
CB
133952020-03-02 Christian Biesinger <cbiesinger@google.com>
13396
13397 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13398 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13399 (fetch_fp_register): Update.
13400 (fetch_fp_regs): Update.
13401 (store_fp_register): Update.
13402 (store_fp_regs): Update.
13403 (arm_netbsd_nat_target::read_description): New function.
13404 (fetch_elfcore_registers): Update.
13405
24ed6739
AB
134062020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13409 general_thread if the stop reply is missing a thread-id.
13410 (remote_target::process_stop_reply): Use the first non-exited
13411 thread if the target didn't pass a thread-id.
13412 * infrun.c (do_target_wait): Move call to
13413 switch_to_inferior_no_thread to ....
13414 (do_target_wait_1): ... here.
13415
a84bb2a0
JT
134162020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13417
13418 * debuginfod-support.c: Include defs.h first.
13419
658dadf0
TV
134202020-02-28 Tom de Vries <tdevries@suse.de>
13421
13422 * symfile.c (set_initial_language): Use default language for lookup.
13423
4ebe4877
SM
134242020-02-28 Simon Marchi <simon.marchi@efficios.com>
13425
13426 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13427 reader variable, pass `this` to read_cutu_die_from_dwo.
13428
e5da1139
AM
134292020-02-27 Aaron Merey <amerey@redhat.com>
13430
13431 * source.c (open_source_file): Check for nullptr when computing
13432 srcpath.
13433
317f7127
TT
134342020-02-27 Tom Tromey <tromey@adacore.com>
13435
13436 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13437 member.
13438 (dwarf2_add_field): Don't update nfields.
13439 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13440
3104d9ee
AB
134412020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13444 abs.
13445
b83470bf
TT
134462020-02-26 Tom Tromey <tom@tromey.com>
13447
13448 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13449 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13450 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13451 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13452 per_cu_data.
13453
edfe0a0c
TT
134542020-02-26 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2/index-write.c (psym_index_map): Change type.
13457 (add_address_entry_worker, write_one_signatured_type)
13458 (recursively_count_psymbols, recursively_write_psymbols)
13459 (class debug_names, psyms_seen_size, write_gdbindex)
13460 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13461
0d79cdc4
AM
134622020-02-26 Aaron Merey <amerey@redhat.com>
13463
13464 * Makefile.in: Handle optional debuginfod support.
13465 * NEWS: Update.
13466 * README: Add --with-debuginfod summary.
13467 * config.in: Regenerate.
13468 * configure: Regenerate.
13469 * configure.ac: Handle optional debuginfod support.
13470 * debuginfod-support.c: debuginfod helper functions.
13471 * debuginfod-support.h: Ditto.
13472 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13473 summary.
13474 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13475 when a dwz file cannot be found.
13476 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13477 debuginfo file cannot be found.
13478 * source.c (open_source_file): Query debuginfod servers when a
13479 source file cannot be found.
13480 * top.c (print_gdb_configuration): Include
13481 --{with,without}-debuginfod in the output.
13482
b65ce565
JG
134832020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13484
13485 * thread.c (thr_try_catch_cmd): Print thread name.
13486
d4c9a4f8
SM
134872020-02-26 Simon Marchi <simon.marchi@efficios.com>
13488
13489 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13490 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13491 dwarf2_fetch_die_type_sect_off): Move to...
13492 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13493 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13494 dwarf2_fetch_die_type_sect_off): ... here.
13495 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13497 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13498
0dce4280
TV
134992020-02-26 Tom de Vries <tdevries@suse.de>
13500
13501 PR gdb/25603
13502 * symfile.c (set_initial_language): Exit-early if
13503 language_mode == language_mode_manual.
13504
450a1bfc
SM
135052020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13506
13507 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13508 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13509 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13510
9e80cfa1
AB
135112020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * gdbtypes.c (create_array_type_with_stride): Handle negative
13514 array strides.
13515 * valarith.c (value_subscripted_rvalue): Likewise.
13516
09624f1f
LM
135172020-02-25 Luis Machado <luis.machado@linaro.org>
13518
13519 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13520
8cb5117c
SM
135212020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13522
13523 * loc.h (dwarf2_get_die_type): Move to...
13524 * read.h (dwarf2_get_die_type): ... here.
13525 * read.c (dwarf2_get_die_type): Move doc to header.
13526
c325c44e
JB
135272020-02-25 Joel Brobecker <brobecker@adacore.com>
13528
13529 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13530 'gnulib/Makefile.in' to the list.
13531
4ac93832
TT
135322020-02-24 Tom Tromey <tom@tromey.com>
13533
13534 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13535 Remove.
13536 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13537 XOBNEWVEC.
13538
197400e8
TT
135392020-02-24 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13542 New method.
13543 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13544 (dw2_do_instantiate_symtab, dw2_get_file_names)
13545 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13546
76935768
TT
135472020-02-24 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13550 make_scoped_restore.
13551 (dwarf2_psymtab::read_symtab): Don't clear
13552 reading_partial_symbols.
13553
a88ef40d
TV
135542020-02-24 Tom de Vries <tdevries@suse.de>
13555
13556 PR gdb/25592
13557 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13558
c9af6521
TV
135592020-02-24 Tom de Vries <tdevries@suse.de>
13560
13561 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13562 commands layout next/prev/regs.
13563
5707a07a
TT
135642020-02-22 Tom Tromey <tom@tromey.com>
13565
13566 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13567 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13568
3b0fb49e
TT
135692020-02-22 Tom Tromey <tom@tromey.com>
13570
13571 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13572
283be8bf
TT
135732020-02-22 Tom Tromey <tom@tromey.com>
13574
13575 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13576 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13577 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13578 * tui/tui.c (_initialize_tui): Add usage text.
13579
ca793b96
TT
135802020-02-22 Tom Tromey <tom@tromey.com>
13581
13582 * tui/tui-win.c (tui_set_focus_command)
13583 (tui_set_win_height_command): Use error_no_arg.
13584 (_initialize_tui_win): Update help text.
13585 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13586
432b5c40
TT
135872020-02-22 Tom Tromey <tom@tromey.com>
13588
13589 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13590 * tui/tui-disasm.h (struct tui_disasm_window)
13591 <display_start_addr>: Declare.
13592 * tui/tui-source.h (struct tui_source_window)
13593 <display_start_addr>: Declare.
13594 * tui/tui-winsource.h (struct tui_source_window_base)
13595 <show_source_line, display_start_addr>: New methods.
13596 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13597 Rename and move to protected section.
13598 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13599 (tui_source_window_base::do_erase_source_content): Update.
13600 (tui_source_window_base::show_source_line): Now a method.
13601 (tui_source_window_base::show_source_content)
13602 (tui_source_window_base::tui_source_window_base)
13603 (tui_source_window_base::rerender)
13604 (tui_source_window_base::refill)
13605 (tui_source_window_base::do_scroll_horizontal)
13606 (tui_source_window_base::set_is_exec_point_at)
13607 (tui_source_window_base::update_breakpoint_info)
13608 (tui_source_window_base::update_exec_info): Update.
13609 * tui/tui-source.c (tui_source_window::set_contents)
13610 (tui_source_window::showing_source_p)
13611 (tui_source_window::do_scroll_vertical)
13612 (tui_source_window::location_matches_p)
13613 (tui_source_window::line_is_displayed): Update.
13614 (tui_source_window::display_start_addr): New method.
13615 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13616 (tui_disasm_window::do_scroll_vertical)
13617 (tui_disasm_window::location_matches_p): Update.
13618 (tui_disasm_window::display_start_addr): New method.
13619
01b1af32
TT
136202020-02-22 Tom Tromey <tom@tromey.com>
13621
13622 * NEWS: Add entry for gdb.register_window_type.
13623 * tui/tui-layout.h (window_factory): New typedef.
13624 (tui_register_window): Declare.
13625 * tui/tui-layout.c (saved_tui_windows): New global.
13626 (tui_apply_current_layout): Use it.
13627 (tui_register_window): New function.
13628 * python/python.c (do_start_initialization): Call
13629 gdbpy_initialize_tui.
13630 (python_GdbMethods): Add "register_window_type" function.
13631 * python/python-internal.h (gdbpy_register_tui_window)
13632 (gdbpy_initialize_tui): Declare.
13633 * python/py-tui.c: New file.
13634 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13635
fc96d20b
TT
136362020-02-22 Tom Tromey <tom@tromey.com>
13637
13638 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13639
935c78c0
TT
136402020-02-22 Tom Tromey <tom@tromey.com>
13641
13642 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13643 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13644 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13645 (tui_set_win_focus_to): Move from tui-win.c.
13646
0240c8f1
TT
136472020-02-22 Tom Tromey <tom@tromey.com>
13648
13649 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13650 functions.
13651 (known_window_types): New global.
13652 (tui_get_window_by_name): Reimplement.
13653 (initialize_known_windows): New function.
13654 (validate_window_name): Rewrite.
13655 (_initialize_tui_layout): Call initialize_known_windows.
13656
fdb01f0c
TT
136572020-02-22 Tom Tromey <tom@tromey.com>
13658
13659 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13660 Remove constants.
13661 * tui/tui-winsource.h (struct tui_source_window_base)
13662 <tui_source_window_base>: Remove parameter.
13663 * tui/tui-winsource.c
13664 (tui_source_window_base::tui_source_window_base): Remove
13665 parameter.
13666 (tui_source_window_base::refill): Update.
13667 * tui/tui-stack.h (struct tui_locator_window)
13668 <tui_locator_window>: Update.
13669 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13670 Default the constructor.
13671 * tui/tui-regs.h (struct tui_data_item_window)
13672 <tui_data_item_window>: Default the constructor.
13673 (struct tui_data_window) <tui_data_window>: Likewise.
13674 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13675 Default the constructor.
13676 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13677 Default the constructor.
13678 <type>: Remove.
13679 (struct tui_win_info) <tui_win_info>: Default the constructor.
13680 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13681 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13682 Default the constructor.
13683
865a5aec
TT
136842020-02-22 Tom Tromey <tom@tromey.com>
13685
13686 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13687 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13688 * tui/tui-win.c (tui_resize_all): Don't call
13689 tui_delete_invisible_windows.
13690 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13691 done.
13692 (tui_set_layout): Update.
13693 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13694 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13695 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13696
e098d18c
TT
136972020-02-22 Tom Tromey <tom@tromey.com>
13698
13699 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13700 correctly.
13701
eb9c8874
TT
137022020-02-22 Tom Tromey <tom@tromey.com>
13703
13704 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13705
7eed1a8e
TT
137062020-02-22 Tom Tromey <tom@tromey.com>
13707
13708 * tui/tui-winsource.h (struct tui_source_window_iterator)
13709 <inner_iterator>: New etytypedef.
13710 <tui_source_window_iterator>: Take "end" parameter.
13711 <tui_source_window_iterator>: Take iterator.
13712 <operator*, advance>: Update.
13713 <m_iter>: Change type.
13714 <m_end>: New field.
13715 (struct tui_source_windows) <begin, end>: Update.
13716 * tui/tui-layout.c (tui_windows): New global.
13717 (tui_apply_current_layout): Clear tui_windows.
13718 (tui_layout_window::apply): Update tui_windows.
13719 * tui/tui-data.h (tui_windows): Declare.
13720 (all_tui_windows): Now inline function.
13721 (class tui_window_iterator, struct all_tui_windows): Remove.
13722
7c043ba6
TT
137232020-02-22 Tom Tromey <tom@tromey.com>
13724
13725 PR tui/17850:
13726 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13727 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13728 "height" argument.
13729 (class tui_layout_window) <get_sizes>: Likewise.
13730 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13731 argument.
13732 <get_sizes>: Add "height" argument.
13733 <m_vertical>: New field.
13734 * tui/tui-layout.c (tui_layout_split::clone): Update.
13735 (tui_layout_split::get_sizes): Add "height" argument.
13736 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13737 (tui_new_layout_command): Parse "-horizontal".
13738 (_initialize_tui_layout): Update help string.
13739 (tui_layout_split::specification): Add "-horizontal" when needed.
13740 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13741 argument.
13742 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13743 New methods.
13744
6bc56648
TT
137452020-02-22 Tom Tromey <tom@tromey.com>
13746
13747 * tui/tui-layout.h (enum tui_adjust_result): New.
13748 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13749 (class tui_layout_window) <adjust_size>: Return
13750 tui_adjust_result. Rewrite.
13751 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13752 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13753
c22fef7e
TT
137542020-02-22 Tom Tromey <tom@tromey.com>
13755
13756 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13757 parameter and return types.
13758 (class tui_layout_base) <specification>: Add "depth".
13759 (class tui_layout_window) <specification>: Add "depth".
13760 (class tui_layout_split) <specification>: Add "depth".
13761 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13762 and return types.
13763 (tui_new_layout_command): Parse sub-layouts.
13764 (_initialize_tui_layout): Update help string.
13765 (tui_layout_window::specification): Add "depth".
13766 (add_layout_command): Update.
13767
ee325b61
TT
137682020-02-22 Tom Tromey <tom@tromey.com>
13769
13770 * NEWS: Add "tui new-layout" item.
13771 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13772 Add new-layout command to help text.
13773 (validate_window_name): New function.
13774 (tui_new_layout_command): New function.
13775 (_initialize_tui_layout): Register "new-layout".
13776 (tui_layout_window::specification): New method.
13777 (tui_layout_window::specification): New method.
13778 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13779 method.
13780 (class tui_layout_window) <specification>: New method.
13781 (class tui_layout_split) <specification>: New method.
13782
416eb92d
TT
137832020-02-22 Tom Tromey <tom@tromey.com>
13784
13785 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13786 * tui/tui-win.c (window_name_completer): Update comment.
13787 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13788 Declare method.
13789 (class tui_layout_window) <replace_window>: Likewise.
13790 (class tui_layout_split) <replace_window>: Likewise.
13791 (tui_set_layout): Don't declare.
13792 (tui_set_initial_layout): Declare function.
13793 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13794 (asm_regs_layout): New globals.
13795 (tui_current_layout, show_layout): Remove.
13796 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13797 (find_layout, tui_apply_layout): New function.
13798 (layout_completer): Remove.
13799 (tui_next_layout): Reimplement.
13800 (tui_next_layout_command): New function.
13801 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13802 (tui_regs_layout): Reimplement.
13803 (tui_regs_layout_command): New function.
13804 (extract_display_start_addr): Rewrite.
13805 (next_layout, prev_layout): Remove.
13806 (tui_layout_window::replace_window): New method.
13807 (tui_layout_split::replace_window): New method.
13808 (destroy_layout): New function.
13809 (layout_list): New global.
13810 (add_layout_command): New function.
13811 (initialize_layouts): Update.
13812 (tui_layout_command): New function.
13813 (_initialize_tui_layout): Install "layout" commands.
13814 * tui/tui-data.h (enum tui_layout_type): Remove.
13815 (tui_current_layout): Don't declare.
13816
0dbc2fc7
TT
138172020-02-22 Tom Tromey <tom@tromey.com>
13818
13819 * tui/tui-regs.c (tui_reg_layout): Remove.
13820 (tui_reg_command): Use tui_regs_layout.
13821 * tui/tui-layout.h (tui_reg_command): Declare.
13822 * tui/tui-layout.c (tui_reg_command): New function.
13823
5afe342e
TT
138242020-02-22 Tom Tromey <tom@tromey.com>
13825
13826 * tui/tui.c (tui_rl_delete_other_windows): Call
13827 tui_remove_some_windows.
13828 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13829 Declare method.
13830 (class tui_layout_window) <remove_windows>: New method.
13831 (class tui_layout_split) <remove_windows>: Declare.
13832 (tui_remove_some_windows): Declare.
13833 * tui/tui-layout.c (tui_remove_some_windows): New function.
13834 (tui_layout_split::remove_windows): New method.
13835
427326a8
TT
138362020-02-22 Tom Tromey <tom@tromey.com>
13837
13838 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13839 * tui/tui-layout.h (tui_next_layout): Declare.
13840 * tui/tui-layout.c (tui_next_layout): New function.
13841
3fe12b6d
TT
138422020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13845 correct coordinates.
13846
59b8b5d2
TT
138472020-02-22 Tom Tromey <tom@tromey.com>
13848
13849 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13850 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13851 DATA_WIN case.
13852
2a3d458b
TT
138532020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13856 TUI_DISASM_WIN, not tui_win_list.
13857
3f0cbb04
TT
138582020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * valprint.c (generic_val_print_enum_1)
13861 (val_print_type_code_flags): Style member names.
13862 * rust-lang.c (val_print_struct, rust_print_enum)
13863 (rust_print_struct_def, rust_internal_print_type): Style member
13864 names.
13865 * p-valprint.c (pascal_object_print_value_fields): Style member
13866 names. Only call fprintf_symbol_filtered for static members.
13867 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13868 * f-valprint.c (f_val_print): Style member names.
13869 * f-typeprint.c (f_type_print_base): Style member names.
13870 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13871 call fprintf_symbol_filtered for static members.
13872 (cp_print_class_member): Style member names.
13873 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13874 member names.
13875 * ada-valprint.c (ada_print_scalar): Style enum names.
13876 (ada_val_print_enum): Likewise.
13877 * ada-typeprint.c (print_enum_type): Style enum names.
13878
d4d947ae
TT
138792020-02-21 Tom Tromey <tom@tromey.com>
13880
13881 * psympriv.h (struct partial_symtab): Update comment.
13882
e94e944b
TT
138832020-02-21 Tom Tromey <tromey@adacore.com>
13884
13885 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13886 type is CORE_ADDR.
13887
1eb73179
TV
138882020-02-21 Tom de Vries <tdevries@suse.de>
13889
13890 PR gdb/25534
13891 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13892 if dependencies[i]->user != NULL.
13893
4f180d53
AT
138942020-02-21 Ali Tamur <tamur@google.com>
13895
13896 * dwarf2/read.c (dwarf2_name): Add null check.
13897
22b6cd70
TT
138982020-02-20 Tom Tromey <tom@tromey.com>
13899
13900 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13901 ">=", in binary search.
13902 (dwarf2_find_containing_comp_unit): New overload.
13903 (run_test): New self-test.
13904 (_initialize_dwarf2_read): Register new test.
13905
bd0cf5a6
NC
139062020-02-20 Nelson Chu <nelson.chu@sifive.com>
13907
13908 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13909 * riscv-tdep.h: Likewise.
13910 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13911 rv32-only CSR.
13912 * features/riscv/64bit-csr.xml: Regenerated.
13913
3f702acd
SDJ
139142020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13915 Tom Tromey <tom@tromey.com>
13916
13917 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13918 of 'fputc_unfiltered'.
13919 (putchar_unfiltered): Call 'fputc_unfiltered'.
13920 (fputc_unfiltered): Call 'fputs_unfiltered'.
13921
d13c7322
AB
139222020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13923
13924 * config.in: Regenerate.
13925 * configure: Regenerate.
13926 * configure.ac: Add --with-python-libdir option.
13927 * main.c: Use WITH_PYTHON_LIBDIR.
13928
869d8950
TT
139292020-02-19 Tom Tromey <tom@tromey.com>
13930
13931 * symtab.c (general_symbol_info::compute_and_set_names): Use
13932 obstack_strndup. Simplify call to symbol_set_demangled_name.
13933
298e9637
SM
139342020-02-19 Simon Marchi <simon.marchi@efficios.com>
13935
13936 * dwarf2/read.c (allocate_signatured_type_table,
13937 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13938 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13939 Remove objfile parameter, update all callers.
13940
08410482
DE
139412020-02-19 Doug Evans <dje@google.com>
13942
13943 PR rust/25535
13944 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13945 rust_enum_variant calculation.
13946
dfdeeca1
TT
139472020-02-19 Tom Tromey <tromey@adacore.com>
13948
13949 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13950
2ef5453b
TT
139512020-02-19 Tom Tromey <tromey@adacore.com>
13952
13953 * ada-lang.c (cache_symbol): Use obstack_strdup.
13954
9f1528a1
AB
139552020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * configure: Regenerate.
13958
d3c22fa8
TT
139592020-02-19 Tom Tromey <tromey@adacore.com>
13960
13961 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13962 NULL check.
13963
bf84f706
MR
139642020-02-19 Maciej W. Rozycki <macro@wdc.com>
13965
13966 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13967
d1c9b20f
AB
139682020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13969
13970 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13971 if GDBSERVER is not defined.
13972 (riscv_tdesc_cache): Likewise, also store const target_desc.
13973 (STATIC_IN_GDB): Define.
13974 (riscv_create_target_description): Update declaration with
13975 STATIC_IN_GDB.
13976 (riscv_lookup_target_description): New function, only define if
13977 GDBSERVER is not defined.
13978 * arch/riscv.h (riscv_create_target_description): Declare only
13979 when GDBSERVER is defined.
13980 (riscv_lookup_target_description): New declaration when GDBSERVER
13981 is not defined.
13982 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13983 (riscv_linux_read_features): ...this, and return
13984 riscv_gdbarch_features instead of target_desc.
13985 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13986 (riscv_linux_read_description): Rename to...
13987 (riscv_linux_read_features): ...this.
13988 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13989 Update to use riscv_gdbarch_features and
13990 riscv_lookup_target_description.
13991 * riscv-tdep.c (riscv_find_default_target_description): Use
13992 riscv_lookup_target_description instead of
13993 riscv_create_target_description.
13994
373d7ac0
SM
139952020-02-18 Simon Marchi <simon.marchi@efficios.com>
13996
13997 * valprint.c (generic_val_print_enum_1): When printing a flag
13998 enum with value 0 and there is no enumerator with value 0, print
13999 just "0" instead of "(unknown: 0x0)".
14000
b29a2df0
SM
140012020-02-18 Simon Marchi <simon.marchi@efficios.com>
14002
14003 * valprint.c (generic_val_print_enum_1): Print unknown part of
14004 flag enum in hex.
14005
6740f0cc
SM
140062020-02-18 Simon Marchi <simon.marchi@efficios.com>
14007
14008 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14009 flag enums to contain duplicate enumerators.
14010 * valprint.c (generic_val_print_enum_1): Update comment.
14011
edd45eb0
SM
140122020-02-18 Simon Marchi <simon.marchi@efficios.com>
14013
14014 * dwarf2/read.c: Include "count-one-bits.h".
14015 (update_enumeration_type_from_children): If an enumerator has
14016 multiple bits set, don't treat the enumeration as a "flag enum".
14017 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14018 of flag enums have 0 or 1 bit set.
14019
6d0cf446
BE
140202020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14021
14022 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14023 conversion.
14024 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14025 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14026 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14027 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14028 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14029
7001c1b7
SM
140302020-02-18 Simon Marchi <simon.marchi@efficios.com>
14031
14032 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14033
fdb61c6c
SM
140342020-02-14 Simon Marchi <simon.marchi@efficios.com>
14035
14036 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14037 displaced_step_closure_up.
14038 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14039 (struct displaced_step_closure_up):
14040 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14041 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14042 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14043 Likewise.
14044 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14045 * gdbarch.c, gdbarch.h: Re-generate.
14046 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14047 displaced_step_closure_up.
14048 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14049 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14050 * infrun.h (displaced_step_closure_up): New type alias.
14051 (struct displaced_step_inferior_state) <step_closure>: Change
14052 type to displaced_step_closure_up.
14053 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14054 displaced_step_closure_up.
14055 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14056
a4a38eb4
TT
140572020-02-14 Tom Tromey <tom@tromey.com>
14058
14059 * minidebug.c (gnu_debug_key): New global.
14060 (find_separate_debug_file_in_section): Use it.
14061
e8217e61
SM
140622020-02-14 Simon Marchi <simon.marchi@efficios.com>
14063
14064 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14065 std::unique_ptr.
14066 * gdbarch.c: Re-generate.
14067 * gdbarch.h: Re-generate.
14068 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14069 change.
14070 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14071 type to std::unique_ptr.
14072 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14073 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14074 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14075 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14076 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14077 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14078 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14079 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14080 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14081
d8d83535
SM
140822020-02-14 Simon Marchi <simon.marchi@efficios.com>
14083
14084 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14085 std::unique_ptr.
14086 (displaced_step_clear): Rename to...
14087 (displaced_step_reset): ... this. Just call displaced->reset ().
14088 (displaced_step_clear_cleanup): Rename to...
14089 (displaced_step_reset_cleanup): ... this.
14090 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14091 (displaced_step_fixup): Likewise.
14092 (resume_1): Likewise.
14093 (handle_inferior_event): Restore child's memory before calling
14094 displaced_step_fixup on the parent.
14095 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14096 to std::unique_ptr.
14097 <step_closure>: Change type to std::unique_ptr.
14098
5f661e03
SM
140992020-02-14 Simon Marchi <simon.marchi@efficios.com>
14100
14101 * arm-tdep.c: Include count-one-bits.h.
14102 (cleanup_block_store_pc): Use count_one_bits.
14103 (cleanup_block_load_pc): Use count_one_bits.
14104 (arm_copy_block_xfer): Use count_one_bits.
14105 (thumb2_copy_block_xfer): Use count_one_bits.
14106 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14107 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14108 (thumb_get_next_pcs_raw): Use count_one_bits.
14109 (arm_get_next_pcs_raw): Use count_one_bits_l.
14110 * arch/arm.c (bitcount): Remove.
14111 * arch/arm.h (bitcount): Remove.
14112
8084e579
TT
141132020-02-14 Tom Tromey <tromey@adacore.com>
14114
14115 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14116 Update.
14117 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14118 * dwarf2/loc.c (call_site_find_chain_1): Return
14119 unique_xmalloc_ptr.
14120 (call_site_find_chain): Likewise.
14121
258bf0ee
RB
141222020-02-14 Richard Biener <rguenther@suse.de>
14123
14124 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14125 on expression with division operators.
14126
f98a8458
AKS
141272020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14128
14129 * MAINTAINERS (Write After Approval): Adding myself.
14130
d1437c0e
TT
141312020-02-12 Tom Tromey <tom@tromey.com>
14132
14133 * event-loop.c (event_data, gdb_event, event_handler_func):
14134 Remove.
14135
3d4560f7
TT
141362020-02-12 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14139 (dwarf2_frame_objfile_data): Add comment.
14140 (find_comp_unit, set_comp_unit): New functions.
14141 (dwarf2_frame_find_fde): Use find_comp_unit.
14142 (dwarf2_build_frame_info): Use set_comp_unit.
14143
21982304
TT
141442020-02-12 Tom Tromey <tom@tromey.com>
14145
14146 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14147 (comp_unit): Don't initialize objfile.
14148 (execute_cfa_program): Add text_offset parameter.
14149 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14150 (dwarf2_frame_cache): Update.
14151 (dwarf2_build_frame_info): Don't set "objfile" member.
14152
4debb237
TT
141532020-02-12 Tom Tromey <tom@tromey.com>
14154
14155 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14156 (decode_frame_entry): Likewise.
14157 (dwarf2_build_frame_info): Update.
14158
0d404d44
TT
141592020-02-12 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14162 (decode_frame_entry_1): Use the comp_unit obstack.
14163
a7a3ae5c
TT
141642020-02-12 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/frame.c (struct comp_unit): Add initializers and
14167 constructor.
14168 (dwarf2_frame_objfile_data): Store a comp_unit.
14169 (dwarf2_frame_find_fde): Update.
14170 (dwarf2_build_frame_info): Use "new".
14171
a9d65418
TT
141722020-02-12 Tom Tromey <tom@tromey.com>
14173
14174 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14175 (dwarf2_fde_table): Typedef for std::vector.
14176 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14177 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14178 (decode_frame_entry): Update.
14179 (dwarf2_build_frame_info): Use "new".
14180
7559c217
CB
141812020-02-12 Christian Biesinger <cbiesinger@google.com>
14182
14183 * arm-tdep.c (arm_gdbarch_init): Update.
14184 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14185 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14186 have_neon, is_m>: Change to bool.
14187
aeefc73c
CB
141882020-02-12 Christian Biesinger <cbiesinger@google.com>
14189
14190 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14191
d27b8e5f
TT
141922020-02-12 Tom Tromey <tom@tromey.com>
14193
14194 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14195
cd5900f3
HD
141962020-02-12 Hannes Domani <ssbssa@yahoo.de>
14197
14198 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14199 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14200
f056b22b
TT
142012020-02-11 Tom Tromey <tom@tromey.com>
14202
14203 * psymtab.h: Update comment.
14204
f92ff6b5
TT
142052020-02-11 Tom Tromey <tom@tromey.com>
14206
14207 * gdb_obstack.h (struct auto_obstack): Use
14208 DISABLE_COPY_AND_ASSIGN.
14209
3fd6912b
TT
142102020-02-11 Tom Tromey <tom@tromey.com>
14211
14212 * dwarf2/frame.h (struct objfile): Don't forward declare.
14213
69ed9b74
CB
142142020-02-11 Christian Biesinger <cbiesinger@google.com>
14215
14216 * cris-tdep.c (cris_supply_gregset): Change signature to match
14217 what struct regset expects.
14218 (cris_regset): New struct.
14219 (fetch_core_registers): Remove.
14220 (cris_iterate_over_regset_sections): New function.
14221 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14222 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14223
bda874f6
CB
142242020-02-11 Christian Biesinger <cbiesinger@google.com>
14225
14226 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14227 registers.
14228
754e1564
CB
142292020-02-11 Christian Biesinger <cbiesinger@google.com>
14230
14231 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14232
8ddd8e0e
SM
142332020-02-11 Simon Marchi <simon.marchi@efficios.com>
14234
14235 * configure: Re-generate.
14236
898e7f60
SM
142372020-02-11 Simon Marchi <simon.marchi@efficios.com>
14238
14239 * configure: Re-generate.
14240
58df732b
SM
142412020-02-11 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * acinclude: Update warning.m4 path.
14244 * warning.m4: Move to gdbsupport.
14245
da5bd37e
TT
142462020-02-11 Tom Tromey <tromey@adacore.com>
14247
14248 * remote.c (remote_console_output): Update.
14249 * printcmd.c (printf_command): Update.
14250 * event-loop.c (gdb_wait_for_event): Update.
14251 * linux-nat.c (sigchld_handler): Update.
14252 * remote-sim.c (gdb_os_write_stdout): Update.
14253 (gdb_os_flush_stdout): Update.
14254 (gdb_os_flush_stderr): Update.
14255 (gdb_os_write_stderr): Update.
14256 * exceptions.c (print_exception): Update.
14257 * remote-fileio.c (remote_fileio_func_read): Update.
14258 (remote_fileio_func_write): Update.
14259 * tui/tui.c (tui_enable): Update.
14260 * tui/tui-interp.c (tui_interp::init): Update.
14261 * utils.c (init_page_info): Update.
14262 (putchar_unfiltered, fputc_unfiltered): Update.
14263 (gdb_flush): Update.
14264 (emit_style_escape): Update.
14265 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14266 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14267 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14268 (stderr_file::write): Update.
14269 (stderr_file::puts): Update.
14270 * ui-file.h (ui_file_isatty, ui_file_write)
14271 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14272 (ui_file_puts): Don't declare.
14273
85f0dd3c
TV
142742020-02-10 Tom de Vries <tdevries@suse.de>
14275
14276 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14277 sentinel to char *.
14278
2e927613
TV
142792020-02-09 Tom de Vries <tdevries@suse.de>
14280
14281 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14282 filename if it matches "<artificial>".
14283
6bafc845
HD
142842020-02-09 Hannes Domani <ssbssa@yahoo.de>
14285
14286 * windows-tdep.c (struct enum_value_name): New struct.
14287 (create_enum): New function.
14288 (windows_get_siginfo_type): Create and use enum types.
14289
7928d571
HD
142902020-02-09 Hannes Domani <ssbssa@yahoo.de>
14291
14292 * NEWS: Mention $_siginfo support for Windows.
14293 * windows-nat.c (handle_exception): Set siginfo_er.
14294 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14295 (windows_xfer_siginfo): New function.
14296 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14297 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14298 (init_windows_gdbarch_data): New function.
14299 (get_windows_gdbarch_data): New function.
14300 (windows_get_siginfo_type): New function.
14301 (windows_init_abi): Register windows_get_siginfo_type.
14302 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14303
6751ebae
TT
143042020-02-08 Tom Tromey <tom@tromey.com>
14305
14306 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14307 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14308 <keep>: Declare method.
14309 <m_keep>: Remove member.
14310 <~cutu_reader>: Remove.
14311 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14312 (cutu_reader::cutu_reader): Update.
14313 (cutu_reader::keep): Rename from ~cutu_reader.
14314 (process_psymtab_comp_unit, build_type_psymtabs_1)
14315 (process_skeletonless_type_unit, load_partial_comp_unit)
14316 (load_full_comp_unit, dwarf2_read_addr_index)
14317 (read_signatured_type): Update.
14318
135f5437
TT
143192020-02-08 Tom Tromey <tom@tromey.com>
14320
14321 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14322 "want_partial_unit" parameter.
14323 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14324 Inline check for DW_TAG_partial_unit.
14325 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14326
9f66ff1c
TT
143272020-02-08 Tom Tromey <tom@tromey.com>
14328
14329 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14330 read.c.
14331 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14332 read.c.
14333
c8a7a66f
TT
143342020-02-08 Tom Tromey <tom@tromey.com>
14335
14336 * dwarf2/read.c (read_address): Move to comp-unit.c.
14337 (dwarf2_rnglists_process, dwarf2_ranges_process)
14338 (read_attribute_value, dwarf_decode_lines_1)
14339 (var_decode_location, decode_locdesc): Update.
14340 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14341 read.c. Remove "cu" parameter.
14342 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14343 method.
14344
8266302d
TT
143452020-02-08 Tom Tromey <tom@tromey.com>
14346
14347 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14348 (read_indirect_line_string): Update.
14349 * dwarf2/comp-unit.c (read_offset): Remove.
14350 (read_comp_unit_head): Update.
14351 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14352 method.
14353 (read_offset): Don't declare.
14354
4057dfde
TT
143552020-02-08 Tom Tromey <tom@tromey.com>
14356
14357 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14358 * dwarf2/read.c (struct comp_unit_head): Move to
14359 dwarf2/comp-unit.h.
14360 (enum class rcuh_kind): Move to comp-unit.h.
14361 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14362 (read_comp_unit_head, error_check_comp_unit_head)
14363 (read_and_check_comp_unit_head): Move to comp-unit.c.
14364 (read_offset, dwarf_unit_type_name): Likewise.
14365 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14366 (cutu_reader::cutu_reader, read_call_site_scope)
14367 (find_partial_die, follow_die_offset): Update.
14368 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14369
24aa364d
TT
143702020-02-08 Tom Tromey <tom@tromey.com>
14371
14372 * dwarf2/read.c (read_offset_1): Move to leb.c.
14373 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14374 (dwarf_decode_macro_bytes): Update.
14375 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14376 * dwarf2/leb.h (read_offset): Declare.
14377
2c7d5afc
TT
143782020-02-08 Tom Tromey <tom@tromey.com>
14379
14380 * dwarf2/read.c (dwarf2_section_size): Remove.
14381 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14382 Update.
14383 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14384
4075cb26
TT
143852020-02-08 Tom Tromey <tom@tromey.com>
14386
14387 * dwarf2/read.c (read_initial_length): Move to leb.c.
14388 * dwarf2/leb.h (read_initial_length): Declare.
14389 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14390 handle_nonstd parameter.
14391 * dwarf2/frame.c (read_initial_length): Remove.
14392 (decode_frame_entry_1): Update.
14393
09ba997f
TT
143942020-02-08 Tom Tromey <tom@tromey.com>
14395
14396 * dwarf2/loc.c (dwarf2_find_location_expression)
14397 (dwarf_evaluate_loc_desc::get_tls_address)
14398 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14399 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14400 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14401 (dwarf2_compile_property_to_c)
14402 (dwarf2_loc_desc_get_symbol_read_needs)
14403 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14404 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14405 (loclist_describe_location, loclist_tracepoint_var_ref)
14406 (loclist_generate_c_location): Update.
14407 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14408 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14409 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14410 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14411 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14412 (dwarf2_per_cu_data::addr_size)
14413 (dwarf2_per_cu_data::ref_addr_size)
14414 (dwarf2_per_cu_data::text_offset)
14415 (dwarf2_per_cu_data::addr_type): Now methods.
14416 (per_cu_header_read_in): Make per_cu "const".
14417 (dwarf2_version): Remove.
14418 (dwarf2_per_cu_data::int_type): Now a method.
14419 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14420 (set_die_type, read_array_type, read_subrange_index_type)
14421 (read_tag_string_type, read_subrange_type): Update.
14422 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14423 offset_size, ref_addr_size, text_offset, addr_type, version,
14424 objfile, int_type, addr_sized_int_type>: Declare methods.
14425
96c738c0
TT
144262020-02-08 Tom Tromey <tom@tromey.com>
14427
14428 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14429 Move earlier.
14430
8fdd972c
TT
144312020-02-08 Tom Tromey <tom@tromey.com>
14432
14433 * dwarf2/read.h (dwarf_line_debug): Declare.
14434 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14435 * dwarf2/read.c: Move line_header code to new files.
14436 (dwarf_line_debug): No longer static.
14437 * dwarf2/line-header.c: New file.
14438 * dwarf2/line-header.h: New file.
14439
03075812
TT
144402020-02-08 Tom Tromey <tom@tromey.com>
14441
14442 * dwarf2/read.c (struct line_header) <file_full_name,
14443 file_file_name>: Return unique_xmalloc_ptr.
14444 (line_header::file_file_name): Update.
14445 (line_header::file_full_name): Update.
14446 (dw2_get_file_names_reader): Update.
14447 (macro_start_file): Update.
14448
bb822404
TT
144492020-02-08 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (struct line_header) <file_full_name,
14452 file_file_name>: Declare methods.
14453 (dw2_get_file_names_reader): Update.
14454 (file_file_name): Now a method.
14455 (file_full_name): Likewise.
14456 (macro_start_file): Update.
14457
009b64fc
TT
144582020-02-08 Tom Tromey <tom@tromey.com>
14459
14460 * dwarf2/read.c (dwarf_always_disassemble)
14461 (show_dwarf_always_disassemble): Move to loc.c.
14462 (_initialize_dwarf2_read): Move "always-disassemble" registration
14463 to loc.c.
14464 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14465 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14466 static.
14467 (show_dwarf_always_disassemble): Move from read.c.
14468 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14469
5895093f
TT
144702020-02-08 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14473 (create_quick_file_names_table): Return htab_up.
14474 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14475 Update.
14476 * dwarf2/read.h (struct dwarf2_per_objfile)
14477 <quick_file_names_table>: Now htab_up.
14478
b3b32279
TT
144792020-02-08 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14482
1d33d811
TT
144832020-02-08 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14486 Rewrite.
14487 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14488 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14489 (abbrev_table::abbrev_table): No longer inline.
14490 (ABBREV_HASH_SIZE): Remove.
14491 (abbrev_table::m_abbrevs): Now an htab_up.
14492
86de1d91
TT
144932020-02-08 Tom Tromey <tom@tromey.com>
14494
14495 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14496 (cutu_reader): Update.
14497 (build_type_psymtabs_1): Update.
14498 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14499 (abbrev_table::alloc_abbrev): Update.
14500 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14501 (abbrev_table::read): New static method, renamed from
14502 abbrev_table_read_table.
14503 (abbrev_table::alloc_abbrev)
14504 (abbrev_table::add_abbrev): Now private.
14505 (abbrev_table::abbrev_table): Now private.
14506 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14507
0335378b
TT
145082020-02-08 Tom Tromey <tom@tromey.com>
14509
14510 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14511 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14512 htab_up.
14513
48b490f2
TT
145142020-02-08 Tom Tromey <tom@tromey.com>
14515
14516 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14517 htab_up.
14518 (lookup_dwo_unit_in_dwp): Update.
14519 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14520 on obstack.
14521
bc68fb19
TT
145222020-02-08 Tom Tromey <tom@tromey.com>
14523
14524 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14525 obstack.
14526
d15acc42
TT
145272020-02-08 Tom Tromey <tom@tromey.com>
14528
14529 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14530 line_header_hash.
14531 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14532 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14533 Change type to htab_up.
14534
eaa5fa8b
TT
145352020-02-08 Tom Tromey <tom@tromey.com>
14536
14537 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14538 htab_up. Don't allocate on obstack.
14539 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14540 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14541 Change type to htab_up.
14542
b0b6a987
TT
145432020-02-08 Tom Tromey <tom@tromey.com>
14544
14545 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14546 Change type to htab_up.
14547 * dwarf2/read.c (create_signatured_type_table_from_index)
14548 (create_signatured_type_table_from_debug_names)
14549 (create_all_type_units, add_type_unit)
14550 (lookup_dwo_signatured_type, lookup_signatured_type)
14551 (process_skeletonless_type_unit): Update.
14552 (create_debug_type_hash_table, create_debug_types_hash_table):
14553 Change type of types_htab.
14554 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14555 htab_up. Don't allocate on obstack.
14556 (create_cus_hash_table): Change type of cus_htab parameter.
14557 (struct dwo_file) <cus, tus>: Now htab_up.
14558 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14559 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14560 (queue_and_load_all_dwo_tus): Update.
14561 * dwarf2/index-write.c (write_gdbindex): Update.
14562 (write_debug_names): Update.
14563
39856def
TT
145642020-02-08 Tom Tromey <tom@tromey.com>
14565
14566 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14567 dwarf2/read.c. Remove "next" member. Add constructor ntad
14568 destructor.
14569 (struct dwarf2_per_objfile) <queue>: New member.
14570 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14571 dwarf2/read.h.
14572 (dwarf2_queue, dwarf2_queue_tail): Remove.
14573 (class dwarf2_queue_guard): Add parameter to constructor. Use
14574 DISABLE_COPY_AND_ASSIGN.
14575 <m_per_objfile>: New member.
14576 <~dwarf2_queue_guard>: Rewrite.
14577 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14578 Update.
14579 (~dwarf2_queue_item): New.
14580
3e225074
TT
145812020-02-08 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2/read.c (struct die_info) <has_children>: New member.
14584 (dw2_get_file_names_reader): Remove has_children.
14585 (dw2_get_file_names): Update.
14586 (read_cutu_die_from_dwo): Remove has_children.
14587 (cutu_reader::init_tu_and_read_dwo_dies)
14588 (cutu_reader::cutu_reader): Update.
14589 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14590 Remove has_children.
14591 (build_type_psymtabs_1, process_skeletonless_type_unit)
14592 (load_partial_comp_unit, load_full_comp_unit): Update.
14593 (create_dwo_cu_reader): Remove has_children.
14594 (create_cus_hash_table, read_die_and_children): Update.
14595 (read_full_die_1,read_full_die): Remove has_children.
14596 (read_signatured_type): Update.
14597 (class cutu_reader) <has_children>: Remove.
14598
82ca8957
TT
145992020-02-08 Tom Tromey <tom@tromey.com>
14600
14601 * dwarf2/expr.c: Rename from dwarf2expr.c.
14602 * dwarf2/expr.h: Rename from dwarf2expr.h.
14603 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14604 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14605 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14606 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14607 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14608 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14609 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14610 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14611 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14612 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14613 * dwarf2/loc.c: Rename from dwarf2loc.c.
14614 * dwarf2/loc.h: Rename from dwarf2loc.h.
14615 * dwarf2/read.c: Rename from dwarf2read.c.
14616 * dwarf2/read.h: Rename from dwarf2read.h.
14617 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14618 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14619 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14620 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14621 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14622 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14623 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14624 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14625 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14626 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14627 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14628 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14629 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14630 Update.
14631 * Makefile.in (COMMON_SFILES): Update.
14632 (HFILES_NO_SRCDIR): Update.
14633
9e35d499
TT
146342020-02-08 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14637 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14638
1eba2311
TT
146392020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2read.h (struct die_info): Don't declare.
14642
e41c2da2
TT
146432020-02-08 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2read.h (die_info_ptr): Remove typedef.
14646
4fc6c0d5
TT
146472020-02-08 Tom Tromey <tom@tromey.com>
14648
14649 * dwarf2read.c (read_call_site_scope)
14650 (handle_data_member_location, dwarf2_add_member_fn)
14651 (mark_common_block_symbol_computed, read_common_block)
14652 (attr_to_dynamic_prop, partial_die_info::read)
14653 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14654 (dwarf2_symbol_mark_computed, set_die_type): Update.
14655 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14656 method.
14657 (attr_form_is_block): Don't declare.
14658 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14659
cd6c91b4
TT
146602020-02-08 Tom Tromey <tom@tromey.com>
14661
14662 * dwarf2read.c (dwarf2_find_base_address, )
14663 (read_call_site_scope, rust_containing_type)
14664 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14665 (handle_data_member_location, dwarf2_add_member_fn)
14666 (get_alignment, read_structure_type, process_structure_scope)
14667 (mark_common_block_symbol_computed, read_common_block)
14668 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14669 (partial_die_info::read, read_attribute_value, new_symbol)
14670 (lookup_die_type, dwarf2_get_ref_die_offset)
14671 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14672 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14673 (dwarf2_symbol_mark_computed): Update.
14674 * dwarf2/attribute.h (struct attribute) <value_as_address,
14675 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14676 methods.
14677 (value_as_address, attr_form_is_section_offset)
14678 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14679 * dwarf2/attribute.c (attribute::value_as_address)
14680 (attribute::form_is_section_offset, attribute::form_is_constant)
14681 (attribute::form_is_ref): Now methods.
14682
162dce55
TT
146832020-02-08 Tom Tromey <tom@tromey.com>
14684
14685 * dwarf2read.c (struct attribute, DW_STRING)
14686 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14687 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14688 (attr_form_is_block, attr_form_is_section_offset)
14689 (attr_form_is_constant, attr_form_is_ref): Move.
14690 * dwarf2/attribute.h: New file.
14691 * dwarf2/attribute.c: New file, from dwarf2read.c.
14692 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14693
3054dd54
TT
146942020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14697 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14698 Move.
14699 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14700 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14701 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14702 abbrev.c.
14703 * dwarf2/abbrev.h: New file.
14704 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14705 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14706
96b79293
TT
147072020-02-08 Tom Tromey <tom@tromey.com>
14708
14709 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14710 (dwarf2_section_size, dwarf2_get_section_info)
14711 (create_signatured_type_table_from_debug_names)
14712 (create_addrmap_from_aranges, read_debug_names_from_section)
14713 (get_gdb_index_contents_from_section, read_comp_unit_head)
14714 (error_check_comp_unit_head, read_abbrev_offset)
14715 (create_debug_type_hash_table, init_cu_die_reader)
14716 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14717 (read_comp_units_from_section, create_cus_hash_table)
14718 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14719 (create_dwp_v2_section, dwarf2_rnglists_process)
14720 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14721 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14722 (read_indirect_string_from_dwz, read_addr_index_1)
14723 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14724 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14725 (fill_in_loclist_baton): Update.
14726 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14727 get_containing_section, get_bfd_owner, get_bfd_section,
14728 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14729 (dwarf2_read_section, get_section_name, get_section_file_name)
14730 (get_containing_section, get_section_bfd_owner)
14731 (get_section_bfd_section, get_section_name, get_section_file_name)
14732 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14733 declare.
14734 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14735 (dwarf2_section_info::get_bfd_owner)
14736 (dwarf2_section_info::get_bfd_section)
14737 (dwarf2_section_info::get_name)
14738 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14739 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14740 (dwarf2_section_info::read): Now methods.
14741 * dwarf-index-write.c (class debug_names): Update.
14742
2c86cff9
TT
147432020-02-08 Tom Tromey <tom@tromey.com>
14744
14745 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14746 Move to dwarf2/section.h.
14747 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14748 (get_section_bfd_section, get_section_name)
14749 (get_section_file_name, get_section_id, get_section_flags)
14750 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14751 dwarf2/section.c.
14752 * dwarf2/section.h: New file.
14753 * dwarf2/section.c: New file, from dwarf2read.c.
14754 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14755
f4382c45
TT
147562020-02-08 Tom Tromey <tom@tromey.com>
14757
14758 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14759 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14760 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14761 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14762 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14763 * dwarf2/leb.h: New file, from dwarf2read.c.
14764 * dwarf2/leb.c: New file, from dwarf2read.c.
14765 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14766 Remove.
14767 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14768 (COMMON_SFILES): Add dwarf2/leb.c.
14769
01840b7a
JB
147702020-02-08 Joel Brobecker <brobecker@adacore.com>
14771
14772 GDB 9.1 released.
14773
dfcb27e4
IB
147742020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14775
14776 PR gdb/25190:
aac66a4c
SM
14777 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14778 * gdb/remote.c (remote_console_output): Update.
14779 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14780 (ui_file_puts): ...this.
14781 * gdb/ui-file.h (ui_file_puts): Add declaration.
14782 * gdb/utils.c (emit_style_escape): Update.
14783 (flush_wrap_buffer): Update.
14784 (fputs_maybe_filtered): Update.
14785 (fputs_unfiltered): Add function.
dfcb27e4 14786
faa17681
IB
147872020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14788
aac66a4c
SM
14789 * gdb/event-loop.c (gdb_wait_for_event): Update.
14790 * gdb/printcmd.c (printf_command): Update.
14791 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14792 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14793 (gdb_os_flush_stderr): Update.
14794 * gdb/remote.c (remote_console_output): Update.
14795 * gdb/ui-file.c (gdb_flush): Rename to...
14796 (ui_file_flush): ...this.
14797 (stderr_file::write): Update.
14798 (stderr_file::puts): Update.
14799 * gdb/ui-file.h (gdb_flush): Rename to...
14800 (ui_file_flush): ...this.
14801 * gdb/utils.c (gdb_flush): Add function.
14802 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14803
5abbbe1d
TT
148042020-02-07 Tom Tromey <tromey@adacore.com>
14805
14806 PR breakpoints/24915:
14807 * source.c (find_and_open_source): Do not check basenames_may_differ.
14808
919adfe8
TT
148092020-02-07 Tom Tromey <tom@tromey.com>
14810
14811 * README: Update gdbserver documentation.
14812 * gdbserver: Move to top level.
14813 * configure.tgt (build_gdbserver): Remove.
14814 * configure.ac: Remove --enable-gdbserver.
14815 * configure: Rebuild.
14816 * Makefile.in (distclean): Don't mention gdbserver.
14817
1d5d29e7
SV
148182020-02-06 Shahab Vahedi <shahab@synopsys.com>
14819
14820 * source-cache.c (source_cache::ensure): Surround
14821 get_plain_source_lines with a try/catch.
14822 (source_cache::get_line_charpos): Get rid of try/catch
14823 and only check for the return value of "ensure".
14824 * tui/tui-source.c (tui_source_window::set_contents):
14825 Simplify "nlines" calculation.
14826
6eb1129c
SV
148272020-02-06 Shahab Vahedi <shahab@synopsys.com>
14828
14829 * MAINTAINERS (Write After Approval): Add myself.
14830
c6a42d11
CB
148312020-02-05 Christian Biesinger <cbiesinger@google.com>
14832
14833 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14834 function call.
14835
c8ecdda6
CB
148362020-02-05 Christian Biesinger <cbiesinger@google.com>
14837
14838 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14839
f6480e70
MR
148402020-02-05 Maciej W. Rozycki <macro@wdc.com>
14841
14842 * nat/riscv-linux-tdesc.h: New file.
14843 * nat/riscv-linux-tdesc.c: New file, taking code from...
14844 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14845 ... here.
14846 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14847 NATDEPFILES.
14848
dcc9fbc6
AB
148492020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14850
14851 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14852 we don't set the fake simulator ptid to the null_ptid.
14853
719546c4
SM
148542020-02-03 Simon Marchi <simon.marchi@efficios.com>
14855
14856 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14857 * gdbthread.h (class thread_info) <resumed>: Likewise.
14858 * infrun.c (resume_1): Likewise.
14859 (proceed): Likewise.
14860 (infrun_thread_stop_requested): Likewise.
14861 (stop_all_threads): Likewise.
14862 (handle_inferior_event): Likewise.
14863 (restart_threads): Likewise.
14864 (finish_step_over): Likewise.
14865 (keep_going_stepped_thread): Likewise.
14866 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14867 (linux_handle_extended_wait): Likewise.
14868 * record-btrace.c (get_thread_current_frame_id): Likewise.
14869 * record-full.c (record_full_wait_1): Likewise.
14870 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14871 * target.c (target_resume): Likewise.
14872 * thread.c (set_running_thread): Likewise.
14873
e409c542
AKS
148742020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14875
14876 * f-valprint.c (f77_print_array_1): Changed datatype of index
14877 variable to LONGEST from int to enable it to contain bound
14878 values correctly.
14879
ee98c0da
MR
148802020-02-03 Maciej W. Rozycki <macro@wdc.com>
14881
14882 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14883 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14884 offsets according to FLEN determined.
14885 (riscv_linux_nat_target::read_description): Determine FLEN
14886 dynamically.
14887 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14888 according to FLEN determined.
14889 (riscv_linux_nat_target::store_registers): Likewise.
14890
aa66aac4
SV
148912020-02-01 Shahab Vahedi <shahab@synopsys.com>
14892
14893 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14894 when reg->group is empty and reggroup is not.
14895
fd9faca8
TT
148962020-01-31 Tom Tromey <tromey@adacore.com>
14897
14898 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14899 Call beneath target's mourn_inferior after unpushing.
14900
42330a68
AB
149012020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14902
14903 PR tui/9765
14904 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14905 have enough lines to fill the screen, still return the lowest
14906 address we found.
14907
7a27a45b
AB
149082020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14909
14910 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14911 '-', '<', and '>' commands.
14912
c47f70e2
PA
149132020-01-29 Pedro Alves <palves@redhat.com>
14914 Sergio Durigan Junior <sergiodj@redhat.com>
14915
14916 * infcmd.c (construct_inferior_arguments): Assert that
14917 'argc' is greater than 0.
14918
5133a315
LM
149192020-01-29 Luis Machado <luis.machado@linaro.org>
14920
14921 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14922 (BRK_INSN_MASK): Define to 0xd4200000.
14923 (aarch64_program_breakpoint_here_p): New function.
14924 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14925 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14926 breakpoint.c.
14927 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14928 breakpoint.h
14929 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14930 call gdbarch_program_breakpoint_here_p.
14931 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14932 default_program_breakpoint_here_p, changed return type to bool and
14933 simplified.
14934 * breakpoint.h (program_breakpoint_here): Moved prototype to
14935 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14936 return type to bool.
14937 * gdbarch.c: Regenerate.
14938 * gdbarch.h: Regenerate.
14939 * gdbarch.sh (program_breakpoint_here_p): New method.
14940 * infrun.c (handle_signal_stop): Call
14941 gdbarch_program_breakpoint_here_p.
14942
168f8c6b
TT
149432020-01-26 Tom Tromey <tom@tromey.com>
14944
14945 * ctfread.c (struct ctf_fp_info): Reindent.
14946 (_initialize_ctfread): Remove.
14947
128a391f
TT
149482020-01-26 Tom Tromey <tom@tromey.com>
14949
14950 * psymtab.c (partial_map_expand_apply)
14951 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14952 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14953 (psym_print_stats, psym_expand_symtabs_for_function)
14954 (psym_map_symbol_filenames, psym_map_matching_symbols)
14955 (psym_expand_symtabs_matching)
14956 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14957 (maintenance_check_psymtabs): Use new methods.
14958 * psympriv.h (struct partial_symtab) <readin_p,
14959 get_compunit_symtab>: New methods.
14960 <readin, compunit_symtab>: Remove members.
14961 (struct standard_psymtab): New.
14962 (struct legacy_psymtab): Derive from standard_psymtab.
14963 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14964 standard_psymtab.
14965 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14966
0494dbec
TT
149672020-01-26 Tom Tromey <tom@tromey.com>
14968
14969 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14970 read_dependencies. Add assert.
14971 * psymtab.c (partial_symtab::read_dependencies): New method.
14972 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14973 method.
14974 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14975 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14976 read_dependencies.
14977 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14978 Add assert.
14979
8566b89b
TT
149802020-01-26 Tom Tromey <tom@tromey.com>
14981
14982 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14983 Call expand_psymtab.
14984 (xcoff_read_symtab): Call expand_psymtab.
14985 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14986 legacy_expand_psymtab.
14987 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14988 method.
14989 (struct legacy_psymtab) <expand_psymtab>: Implement.
14990 <legacy_expand_psymtab>: New member.
14991 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14992 (parse_partial_symbols): Set legacy_expand_psymtab.
14993 (psymtab_to_symtab_1): Change argument order. Call
14994 expand_psymtab.
14995 (new_psymtab): Set legacy_expand_psymtab.
14996 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14997 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14998 expand_psymtab.
14999 (dwarf2_psymtab::expand_psymtab): Rename from
15000 psymtab_to_symtab_1. Call expand_psymtab.
15001 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15002 (dbx_end_psymtab): Likewise.
15003 (dbx_psymtab_to_symtab_1): Change argument order. Call
15004 expand_psymtab.
15005 (dbx_read_symtab): Call expand_psymtab.
15006 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15007 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15008 (ctf_psymtab::read_symtab): Call expand_psymtab.
15009
077cbab2
TT
150102020-01-26 Tom Tromey <tom@tromey.com>
15011
15012 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15013 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15014 messages.
15015 * mdebugread.c (mdebug_read_symtab): Remove prints.
15016 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15017 assert.
15018 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15019
891813be
TT
150202020-01-26 Tom Tromey <tom@tromey.com>
15021
15022 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15023 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15024 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15025 legacy_symtab.
15026 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15027 * psymtab.c (psymtab_to_symtab): Call method.
15028 (dump_psymtab): Update.
15029 * psympriv.h (struct partial_symtab): Add virtual destructor.
15030 <read_symtab>: New method.
15031 (struct legacy_symtab): New.
15032 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15033 (struct pst_map) <pst>: Now a legacy_psymtab.
15034 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15035 (new_psymtab): Use legacy_psymtab.
15036 * dwarf2read.h (struct dwarf2_psymtab): New.
15037 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15038 * dwarf2read.c (dwarf2_create_include_psymtab)
15039 (dwarf2_build_include_psymtabs, create_type_unit_group)
15040 (create_partial_symtab, process_psymtab_comp_unit_reader)
15041 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15042 (set_partial_user): Use dwarf2_psymtab.
15043 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15044 (psymtab_to_symtab_1, process_full_comp_unit)
15045 (process_full_type_unit, dwarf2_ranges_read)
15046 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15047 (dwarf_decode_lines): Use dwarf2_psymtab.
15048 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15049 (add_address_entry_worker, write_one_signatured_type)
15050 (recursively_count_psymbols, recursively_write_psymbols)
15051 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15052 (write_debug_names): Likewise.
15053 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15054 <pst>: Now a legacy_psymtab.
15055 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15056 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15057 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15058 * ctfread.c (struct ctf_psymtab): New.
15059 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15060 ctf_psymtab.
15061 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15062 (create_partial_symtab): Return a ctf_psymtab.
15063 (scan_partial_symbols): Update.
15064
c3693a1d
TT
150652020-01-26 Tom Tromey <tom@tromey.com>
15066
15067 * xcoffread.c (xcoff_start_psymtab): Use new.
15068 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15069 renamed from start_psymtab_common.
15070 * psympriv.h (struct partial_symtab): Add new constructor.
15071 (start_psymtab_common): Don't declare.
15072 * mdebugread.c (parse_partial_symbols): Use new.
15073 * dwarf2read.c (create_partial_symtab): Use new.
15074 * dbxread.c (start_psymtab): Use new.
15075 * ctfread.c (create_partial_symtab): Use new.
15076
32caafd0
TT
150772020-01-26 Tom Tromey <tom@tromey.com>
15078
15079 * xcoffread.c (xcoff_end_psymtab): Use new.
15080 * psymtab.c (start_psymtab_common): Use new.
15081 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15082 Update.
15083 * psympriv.h (struct partial_symtab): Add parameters to
15084 constructor. Don't inline.
15085 (allocate_psymtab): Don't declare.
15086 * mdebugread.c (new_psymtab): Use new.
15087 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15088 * dbxread.c (dbx_end_psymtab): Use new.
15089
abaa2f23
TT
150902020-01-26 Tom Tromey <tom@tromey.com>
15091
15092 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15093 allocate_psymtab. Update documentation.
15094 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15095 allocate_psymtab. Do not use new.
15096 (allocate_psymtab): Use new. Update.
15097
6d94535f
TT
150982020-01-26 Tom Tromey <tom@tromey.com>
15099
15100 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15101 * psymtab.c (psym_print_stats): Update.
15102 * psympriv.h (struct partial_symtab) <readin,
15103 psymtabs_addrmap_supported, anonymous>: Now bool.
15104 * mdebugread.c (psymtab_to_symtab_1): Update.
15105 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15106 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15107 (process_full_comp_unit, process_full_type_unit): Update.
15108 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15109 * ctfread.c (psymtab_to_symtab): Update.
15110
6f17252b
TT
151112020-01-26 Tom Tromey <tom@tromey.com>
15112
15113 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15114 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15115 * psymtab.c (psymtab_storage): Delete psymtabs.
15116 (psymtab_storage::allocate_psymtab): Use new.
15117 (psymtab_storage::discard_psymtab): Use delete.
15118 * psympriv.h (struct partial_symtab): Add constructor and
15119 initializers.
15120
f6f1cebc
TT
151212020-01-26 Tom Tromey <tom@tromey.com>
15122
15123 * machoread.c: Do not include psympriv.h.
15124
e47e48f6
PW
151252020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15126
15127 * NEWS: Mention the new option and the set/show commands.
15128
a2fedca9
PW
151292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15130
15131 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15132 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15133 (validate_exec_file): New variables, enums, functions.
15134 (exec_file_locate_attach, print_section_info): Style the filenames.
15135 (_initialize_exec): Install show_exec_file_mismatch_command and
15136 set_exec_file_mismatch_command.
15137 * gdbcore.h (validate_exec_file): Declare.
15138 * infcmd.c (attach_command): Call validate_exec_file.
15139 * remote.c ( remote_target::remote_add_inferior): Likewise.
15140
7ffa82e1
AB
151412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15142
15143 * frame.c (find_frame_sal): Move call to get_next_frame into more
15144 inner scope.
15145 * inline-frame.c (inilne_state) <inline_state>: Update argument
15146 types.
15147 (inilne_state) <skipped_symbol>: Rename to...
15148 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15149 (skip_inline_frames): Build vector of skipped symbols and use this
15150 to reate the inline_state.
15151 (inline_skipped_symbol): Add a comment and some assertions, fetch
15152 skipped symbol from the list.
15153
3d92a3e3
AB
151542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15155
15156 * buildsym.c (lte_is_less_than): Delete.
15157 (buildsym_compunit::end_symtab_with_blockvector): Create local
15158 lambda function to sort line table entries, and use
15159 std::stable_sort instead of std::sort.
15160 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15161 markers when looking for a previous line.
15162
94a72be7
AB
151632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15164
15165 * dwarf2read.c (lnp_state_machine::record_line): Include
15166 end_sequence parameter in debug print out. Record the line if we
15167 are at an end_sequence marker even if it's not the start of a
15168 statement.
15169 * symmisc.c (maintenance_print_one_line_table): Print end of
15170 sequence markers with 'END' not '0'.
15171
53af73bf
PA
151722020-01-24 Pedro Alves <palves@redhat.com>
15173
15174 PR gdb/25410
15175 * thread.c (scoped_restore_current_thread::restore): Use
15176 switch_to_inferior_no_thread.
15177 * exec.c: Include "progspace-and-thread.h".
15178 (add_target_sections, remove_target_sections):
15179 scoped_restore_current_pspace_and_thread instead of
15180 scoped_restore_current_thread.
15181 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15182 and aspace to the inferior before calling clone_program_space.
15183 Remove stale comment.
15184
3050c6f4
CB
151852020-01-24 Christian Biesinger <cbiesinger@google.com>
15186
15187 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15188 (arm_netbsd_nat_target::fetch_registers): ...this.
15189 (arm_nbsd_nat_target::store_registers): Rename to...
15190 (arm_netbsd_nat_target::store_registers): ...this.
15191
73685c7e
CB
151922020-01-24 Christian Biesinger <cbiesinger@google.com>
15193
15194 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15195 register_t.
15196
89203d40
CB
151972020-01-24 Christian Biesinger <cbiesinger@google.com>
15198
15199 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15200 Update comment.
15201 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15202 Likewise.
15203 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15204 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15205 the correct replacement (iterate_over_regset_sections).
15206 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15207 Update comment.
15208
1ba1ac88
AB
152092020-01-24 Graham Markall <graham.markall@embecosm.com>
15210
15211 PR gdb/23718
15212 * gdb/python/python.c (execute_gdb_command): Call
15213 async_enable_stdin in catch block.
15214
f3364a6d
AB
152152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15216
15217 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15218 SWITCH_THRU_ALL_UIS.
15219
733d0a67
AB
152202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15221
15222 PR tui/9765
15223 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15224 comment, add extra parameter, and update to store previous symbol
15225 when appropriate.
15226 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15227 add extra parameter.
15228 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15229 remove unneeded parameter, add try/catch around gdb_print_insn,
15230 rewrite to add items to asm_lines vector.
15231 (tui_find_backward_disassembly_start_address): New function.
15232 (tui_find_disassembly_address): Updated throughout.
15233 (tui_disasm_window::set_contents): Update for changes to
15234 tui_disassemble.
15235 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15236 number of lines to scroll.
15237
b3b3bada
SM
152382020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15239
15240 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15241 (SECT_OFF_DATA): Likewise.
15242 (SECT_OFF_RODATA): Likewise.
15243 (SECT_OFF_TEXT): Likewise.
15244 (SECT_OFF_BSS): Likewise.
15245 (struct objfile) <text_section_offset, data_section_offset>: New
15246 methods.
15247 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15248 objfile::text_section_offset.
15249 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15250 * coffread.c (coff_symtab_read): Likewise.
15251 (enter_linenos): Likewise.
15252 (process_coff_symbol): Likewise.
15253 * ctfread.c (get_objfile_text_range): Likewise.
15254 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15255 Use objfile::data_section_offset.
15256 * dwarf2-frame.c (execute_cfa_program): Use
15257 objfile::text_section_offset.
15258 (dwarf2_frame_find_fde): Likewise.
15259 * dwarf2read.c (create_addrmap_from_index): Likewise.
15260 (create_addrmap_from_aranges): Likewise.
15261 (dw2_find_pc_sect_compunit_symtab): Likewise.
15262 (process_psymtab_comp_unit_reader): Likewise.
15263 (add_partial_symbol): Likewise.
15264 (add_partial_subprogram): Likewise.
15265 (process_full_comp_unit): Likewise.
15266 (read_file_scope): Likewise.
15267 (read_func_scope): Likewise.
15268 (read_lexical_block_scope): Likewise.
15269 (read_call_site_scope): Likewise.
15270 (dwarf2_rnglists_process): Likewise.
15271 (dwarf2_ranges_process): Likewise.
15272 (dwarf2_ranges_read): Likewise.
15273 (dwarf_decode_lines_1): Likewise.
15274 (new_symbol): Likewise.
15275 (dwarf2_fetch_die_loc_sect_off): Likewise.
15276 (dwarf2_per_cu_text_offset): Likewise.
15277 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15278 * hppa-tdep.c (read_unwind_info): Likewise.
15279 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15280 * psympriv.h (struct partial_symtab): Likewise.
15281 * psymtab.c (find_pc_sect_psymtab): Likewise.
15282 * solib-svr4.c (enable_break): Likewise.
15283 * stap-probe.c (relocate_address): Use
15284 objfile::data_section_offset.
15285 * xcoffread.c (enter_line_range): Use
15286 objfile::text_section_offset.
15287 (read_xcoff_symtab): Likewise.
15288
ab53f382
SM
152892020-01-23 Simon Marchi <simon.marchi@efficios.com>
15290
15291 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15292 declaration to narrower scopes.
15293
e7eee665
SM
152942020-01-23 Simon Marchi <simon.marchi@efficios.com>
15295
15296 * darwin-nat.h (struct darwin_exception_msg, enum
15297 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15298 Move up.
15299 (class darwin_nat_target) <wait_1, check_new_threads,
15300 decode_exception_message, decode_message, stop_inferior,
15301 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15302 * darwin-nat.c (darwin_check_new_threads): Rename to...
15303 (darwin_nat_target::check_new_threads): ... this.
15304 (darwin_suspend_inferior_it): Remove.
15305 (darwin_decode_exception_message): Rename to...
15306 (darwin_nat_target::decode_exception_message): ... this.
15307 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15308 (darwin_decode_message): Rename to...
15309 (darwin_nat_target::decode_message): ... this.
15310 (cancel_breakpoint): Rename to...
15311 (darwin_nat_target::cancel_breakpoint): ... this.
15312 (darwin_wait): Rename to...
15313 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15314 instead of iterate_over_inferiors.
15315 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15316 (darwin_stop_inferior): Rename to...
15317 (darwin_nat_target::stop_inferior): ... this.
15318 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15319 (darwin_init_thread_list): Rename to...
15320 (darwin_nat_target::init_thread_list): ... this.
15321 (darwin_ptrace_him): Rename to...
15322 (darwin_nat_target::ptrace_him): ... this.
15323 (darwin_nat_target::create_inferior): Pass lambda function to
15324 fork_inferior.
15325 (darwin_nat_target::detach): Call stop_inferior instead of
15326 darwin_stop_inferior.
15327 * fork-inferior.h (fork_inferior): Change init_trace_fun
15328 parameter to gdb::function_view.
15329 * fork-inferior.c (fork_inferior): Likewise.
15330
c162ed3e
HD
153312020-01-23 Hannes Domani <ssbssa@yahoo.de>
15332
15333 * i386-cygwin-tdep.c (core_process_module_section): Update.
15334 * windows-nat.c (struct lm_info_windows): Add text_offset.
15335 (windows_xfer_shared_libraries): Update.
15336 * windows-tdep.c (windows_xfer_shared_library):
15337 Add text_offset_cached argument.
15338 * windows-tdep.h (windows_xfer_shared_library): Update.
15339
a1237872
SM
153402020-01-21 Simon Marchi <simon.marchi@efficios.com>
15341
15342 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15343
b3ee6dd9
SM
153442020-01-21 Simon Marchi <simon.marchi@efficios.com>
15345
15346 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15347 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15348 replace with range-based for.
15349 (gdbsim_interrupt_inferior): Remove.
15350 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15351 with a range-based for. Inline code from
15352 gdbsim_interrupt_inferior.
15353
f9fac3c8
SM
153542020-01-21 Simon Marchi <simon.marchi@efficios.com>
15355
15356 * infrun.c (proceed): Fix indentation.
15357
f6474de9
TT
153582020-01-21 Tom Tromey <tromey@adacore.com>
15359
15360 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15361 * python/python.c (python_extension_ops): Update.
15362 (gdbpy_colorize): New function.
15363 * python/lib/gdb/__init__.py (colorize): New function.
15364 * extension.h (ext_lang_colorize): Declare.
15365 * extension.c (ext_lang_colorize): New function.
15366 * extension-priv.h (struct extension_language_ops) <colorize>: New
15367 member.
15368 * cli/cli-style.c (_initialize_cli_style): Update help text.
15369
f0c702d4
LM
153702020-01-21 Luis Machado <luis.machado@linaro.org>
15371
15372 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15373 <cond>: Change type to bool.
15374 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15375 (aarch64_displaced_step_cb): Likewise.
15376 (aarch64_displaced_step_tb): Likewise.
15377
1ab139e5
LM
153782020-01-21 Luis Machado <luis.machado@linaro.org>
15379
15380 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15381 output.
15382
0c271889
LM
153832020-01-21 Luis Machado <luis.machado@linaro.org>
15384
15385 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15386 <pc_adjust>: Adjust the documentation.
15387 (aarch64_displaced_step_fixup): Check if PC really moved before
15388 adjusting it.
15389
4d89c1c7
TT
153902020-01-19 Tom Tromey <tom@tromey.com>
15391
15392 * disasm.c (~gdb_disassembler): New destructor.
15393 (gdb_buffered_insn_length): Call disassemble_free_target.
15394 * disasm.h (class gdb_disassembler): Declare destructor. Use
15395 DISABLE_COPY_AND_ASSIGN.
15396
c0ab21c2
TT
153972020-01-19 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15400 (die_reader_func_ftype): Remove.
15401 (cutu_reader): New class.
15402 (dw2_get_file_names_reader): Remove "data" parameter.
15403 (dw2_get_file_names): Use cutu_reader.
15404 (create_debug_type_hash_table): Update.
15405 (read_cutu_die_from_dwo): Update comment.
15406 (lookup_dwo_unit): Add dwo_name parameter.
15407 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15408 die_reader_func_ftype and data parameters.
15409 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15410 Remove die_reader_func_ftype and data parameters.
15411 (~cutu_reader): New; from init_cutu_and_read_dies.
15412 (cutu_reader::cutu_reader): Rename from
15413 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15414 and data parameters.
15415 (init_cutu_and_read_dies_simple): Remove.
15416 (struct process_psymtab_comp_unit_data): Remove.
15417 (process_psymtab_comp_unit_reader): Remove data parameter; add
15418 want_partial_unit and pretend_language parameters.
15419 (process_psymtab_comp_unit): Use cutu_reader.
15420 (build_type_psymtabs_reader): Remove data parameter.
15421 (build_type_psymtabs_1): Use cutu_reader.
15422 (process_skeletonless_type_unit): Likewise.
15423 (load_partial_comp_unit_reader): Remove.
15424 (load_partial_comp_unit): Use cutu_reader.
15425 (load_full_comp_unit_reader): Remove.
15426 (load_full_comp_unit): Use cutu_reader.
15427 (struct create_dwo_cu_data): Remove.
15428 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15429 dwo_unit parameters.
15430 (create_cus_hash_table): Use cutu_reader.
15431 (struct dwarf2_read_addr_index_data): Remove.
15432 (dwarf2_read_addr_index_reader): Remove.
15433 (dwarf2_read_addr_index): Use cutu_reader.
15434 (read_signatured_type_reader): Remove.
15435 (read_signatured_type): Use cutu_reader.
15436
45bbae5c
TT
154372020-01-19 Tom Tromey <tom@tromey.com>
15438
15439 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15440 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15441 (tui_wrefresh): Declare.
15442 * tui/tui-wingeneral.c (suppress_output): New global.
15443 (tui_suppress_output, ~tui_suppress_output): New constructor and
15444 destructor.
15445 (tui_wrefresh): New function.
15446 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15447 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15448 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15449 method.
15450 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15451 tui_wrefresh.
15452 (tui_data_window::no_refresh): New method.
15453 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15454 (tui_reg_command): Use tui_suppress_output
15455 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15456 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15457 method.
15458 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15459
4f13c1c0
TT
154602020-01-19 Tom Tromey <tom@tromey.com>
15461
15462 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15463 Handle case where symtab is null.
15464
fa47e446
SM
154652020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15466
15467 * linux-fork.c (one_fork_p): Simplify.
15468
26f42329
SM
154692020-01-17 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * top.c (struct qt_args): Remove.
15472 (kill_or_detach): Change return type to void, replace `void *`
15473 parameter with a proper one.
15474 (print_inferior_quit_action): Likewise.
15475 (quit_confirm): Use range-based for loop to iterate over inferiors.
15476 (quit_force): Likewise.
15477
a9ac81b1
SM
154782020-01-17 Simon Marchi <simon.marchi@efficios.com>
15479
15480 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15481 `void *` parameter with proper parameters.
15482 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15483 (print_one_inferior): Change return type to void, replace `void *`
15484 parameter with proper parameters.
15485 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15486 inferiors.
15487 (get_other_inferior): Remove.
15488 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15489 inferiors.
15490
788eca49
SM
154912020-01-17 Simon Marchi <simon.marchi@efficios.com>
15492
15493 * mi/mi-interp.c (report_initial_inferior): Remove.
15494 (mi_interp::init): Use range-based for to iterate over inferiors.
15495
d9bc85b6
SM
154962020-01-17 Simon Marchi <simon.marchi@efficios.com>
15497
15498 * python/py-inferior.c (build_inferior_list): Remove.
15499 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15500
40c94099
CB
155012020-01-16 Christian Biesinger <cbiesinger@google.com>
15502
15503 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15504 (btrace_stitch_trace): Likewise.
15505 * charset.c (intermediate_encoding): Likewise (vaild).
15506 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15507 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15508 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15509
e0cdfe3c
HD
155102020-01-16 Hannes Domani <ssbssa@yahoo.de>
15511
15512 * windows-tdep.c (windows_get_tlb_type):
15513 Add rtl_user_process_parameters type.
15514
790f1718 155152020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15516 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15517
15518 PR build/24805
15519 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15520 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15521 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15522 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15523 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15524 (ps_plog): Redeclare exported functions with default visibility.
15525
3112ed97
NA
155262020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15527
15528 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15529 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15530
8dc3273e
SM
155312020-01-15 Simon Marchi <simon.marchi@efficios.com>
15532
15533 * infcmd.c (post_create_inferior): Use get_thread_regcache
15534 instead of get_current_regcache.
15535
ff47f4f0
TT
155362020-01-14 Tom Tromey <tom@tromey.com>
15537
15538 PR symtab/12535:
15539 * python/python.c (gdbpy_decode_line): Treat empty string the same
15540 as no argument.
15541
975f45b7
TT
155422020-01-14 Tom Tromey <tom@tromey.com>
15543
15544 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15545
25e57356
TT
155462020-01-14 Tom Tromey <tom@tromey.com>
15547
15548 * nat/linux-btrace.c: Don't include <config.h>.
15549 * nat/linux-ptrace.c: Don't include <config.h>.
15550 * nat/x86-linux-dregs.c: Don't include <config.h>.
15551
05ea2a05
TT
155522020-01-14 Tom Tromey <tom@tromey.com>
15553
15554 * configure: Rebuild.
15555 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15556
01027315
TT
155572020-01-14 Tom Tromey <tom@tromey.com>
15558
15559 * nat/x86-linux-dregs.c: Include configh.h.
15560 * nat/linux-ptrace.c: Include configh.h.
15561 * nat/linux-btrace.c: Include configh.h.
15562 * defs.h: Include config.h, bfd.h.
15563 * configure.ac: Don't source common.host.
15564 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15565 * configure: Rebuild.
15566 * acinclude.m4: Update path.
15567 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15568 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15569 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15570 (CLIBS): Add LIBSUPPORT.
15571 (CDEPS): Likewise.
15572 (COMMON_SFILES): Remove gdbsupport files.
15573 (HFILES_NO_SRCDIR): Likewise.
15574 (stamp-version): Update path to create-version.sh.
15575 (ALLDEPFILES): Remove gdbsupport files.
15576
b2ceabe8
TT
155772020-01-14 Tom Tromey <tom@tromey.com>
15578
15579 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15580 USE_WIN32API when needed.
15581 * configure.ac (USE_WIN32API): Don't define.
15582 (WIN32LIBS): Use WIN32APILIBS.
15583 * configure: Rebuild.
15584
25c51f71
TT
155852020-01-14 Tom Tromey <tom@tromey.com>
15586
15587 * configure: Rebuild.
15588 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15589
717c684d
BE
155902020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15591
15592 * skip.c (skip_function_command): Make skip w/o arguments use the
15593 name of the inlined function if pc is inside any inlined function.
15594
7da6a5b9
LM
155952020-01-14 Luis Machado <luis.machado@linaro.org>
15596
15597 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15598 * infrun.c (resume_1): Likewise.
15599 (handle_inferior_event): Remove stale comment.
15600 * linux-nat.c (linux_nat_target::resume): Update comments.
15601 (save_stop_reason): Likewise.
15602 (linux_nat_filter_event): Likewise.
15603 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15604
44e4c775
AB
156052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15606
15607 * elfread.c (record_minimal_symbol): Set section index to 0 for
15608 non-allocatable sections.
15609
18a8505e
AT
15610
156112020-01-13 Ali Tamur <tamur@google.com>
15612
15613 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15614 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15615 to gdb::optional. Update comments.
15616 (dwo_file): Update comments.
15617 (read_attribute): Update API to take an additional out parameter,
15618 need_reprocess. This is used to mark attributes that need other
15619 attributes (e.g. str_offsets_base) for correct computation which may not
15620 have been read yet.
15621 (read_attribute_reprocess): New function declaration.
15622 (read_addr_index): Likewise.
15623 (read_dwo_str_index): Likewise.
15624 (read_stub_str_index): Likewise.
15625 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15626 (lookup_addr_base): New function definition.
15627 (lookup_ranges_base): Likewise.
15628 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15629 lookup_ranges_base.
15630 (init_cutu_and_read_dies): Update comments.
15631 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15632 unit. This is used to inherit parent's str_offsets_base and addr_base.
15633 Update comments.
15634 (init_cutu_and_read_dies_simple): Reflect API changes.
15635 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15636 (create_cus_hash_table): Change API to take parent compile unit.
15637 Reflect API changes.
15638 (open_and_init_dwo_file): Reflect API changes.
15639 (dwarf2_get_pc_bounds): Update comments.
15640 (dwarf2_record_block_ranges): Likewise.
15641 (read_full_die_1): Change implementation to reprocess attributes that
15642 need str_offsets_base and addr_base.
15643 (partial_die_info::read): Likewise.
15644 (read_attribute_reprocess): New function definition.
15645 (read_attribute_value): Change API to take an additional out parameter,
15646 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15647 when a non-dwo compile unit has index based attributes.
15648 (read_attribute): Reflect API changes.
15649 (read_addr_index_1): Reflect API changes. Update comments.
15650 (dwarf2_read_addr_index_data): Reflect API changes.
15651 (dwarf2_read_addr_index): Likewise.
15652 (read_str_index): Change API and implementation. This becomes a helper
15653 to be used by the new string index related methods. Update error
15654 message and comments.
15655 (read_dwo_str_index): New function definition.
15656 (read_stub_str_index): Likewise.
15657 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15658 * symfile.h (dwarf2_debug_sections): Likewise.
15659 * xcoffread.c (dwarf2_debug_sections): Likewise.
15660
0cac9354
SM
156612020-01-13 Simon Marchi <simon.marchi@efficios.com>
15662
15663 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15664 core_reg_sect type to gdb_byte *.
15665 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15666 * cris-tdep.c (fetch_core_registers): Likewise.
15667 * corelow.c (core_target::get_core_register_section): Change
15668 type of `contents` to gdb::byte_vector.
15669
9a6d629c
AB
156702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15671
15672 * tui/tui-wingeneral.c (box_win): Position the title in the center
15673 of the border.
15674
d8b2f9e3
SM
156752020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15676
15677 * corelow.c (core_target::get_core_register_section): Use
15678 std::vector instead of alloca.
15679
bb564c58
SM
156802020-01-13 Simon Marchi <simon.marchi@efficios.com>
15681
15682 * warning.m4: Add -Wmissing-declarations to build_warnings.
15683 * configure: Re-generate.
15684
6b366111
SM
156852020-01-13 Simon Marchi <simon.marchi@efficios.com>
15686
15687 * python/python.c (init__gdb_module): Add declaration.
15688
6c265988
SM
156892020-01-13 Simon Marchi <simon.marchi@efficios.com>
15690
15691 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15692 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15693 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15694 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15695 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15696 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15697 * ada-exp.y (_initialize_ada_exp): Add declaration.
15698 * ada-lang.c (_initialize_ada_language): Add declaration.
15699 * ada-tasks.c (_initialize_tasks): Add declaration.
15700 * agent.c (_initialize_agent): Add declaration.
15701 * aix-thread.c (_initialize_aix_thread): Add declaration.
15702 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15703 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15704 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15705 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15706 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15707 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15708 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15709 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15710 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15711 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15712 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15713 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15714 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15715 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15716 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15717 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15718 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15719 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15720 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15721 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15722 * annotate.c (_initialize_annotate): Add declaration.
15723 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15724 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15725 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15726 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15727 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15728 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15729 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15730 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15731 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15732 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15733 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15734 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15735 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15736 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15737 * auto-load.c (_initialize_auto_load): Add declaration.
15738 * auxv.c (_initialize_auxv): Add declaration.
15739 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15740 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15741 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15742 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15743 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15744 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15745 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15746 * breakpoint.c (_initialize_breakpoint): Add declaration.
15747 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15748 * btrace.c (_initialize_btrace): Add declaration.
15749 * charset.c (_initialize_charset): Add declaration.
15750 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15751 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15752 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15753 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15754 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15755 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15756 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15757 * coffread.c (_initialize_coffread): Add declaration.
15758 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15759 * compile/compile.c (_initialize_compile): Add declaration.
15760 * complaints.c (_initialize_complaints): Add declaration.
15761 * completer.c (_initialize_completer): Add declaration.
15762 * copying.c (_initialize_copying): Add declaration.
15763 * corefile.c (_initialize_core): Add declaration.
15764 * corelow.c (_initialize_corelow): Add declaration.
15765 * cp-abi.c (_initialize_cp_abi): Add declaration.
15766 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15767 * cp-support.c (_initialize_cp_support): Add declaration.
15768 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15769 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15770 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15771 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15772 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15773 * ctfread.c (_initialize_ctfread): Add declaration.
15774 * d-lang.c (_initialize_d_language): Add declaration.
15775 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15776 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15777 * dbxread.c (_initialize_dbxread): Add declaration.
15778 * dcache.c (_initialize_dcache): Add declaration.
15779 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15780 * disasm.c (_initialize_disasm): Add declaration.
15781 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15782 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15783 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15784 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15785 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15786 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15787 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15788 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15789 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15790 * elfread.c (_initialize_elfread): Add declaration.
15791 * exec.c (_initialize_exec): Add declaration.
15792 * extension.c (_initialize_extension): Add declaration.
15793 * f-lang.c (_initialize_f_language): Add declaration.
15794 * f-valprint.c (_initialize_f_valprint): Add declaration.
15795 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15796 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15797 * filesystem.c (_initialize_filesystem): Add declaration.
15798 * findcmd.c (_initialize_mem_search): Add declaration.
15799 * findvar.c (_initialize_findvar): Add declaration.
15800 * fork-child.c (_initialize_fork_child): Add declaration.
15801 * frame-base.c (_initialize_frame_base): Add declaration.
15802 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15803 * frame.c (_initialize_frame): Add declaration.
15804 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15805 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15806 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15807 * gcore.c (_initialize_gcore): Add declaration.
15808 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15809 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15810 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15811 * gdbarch.c (_initialize_gdbarch): Add declaration.
15812 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15813 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15814 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15815 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15816 * go-lang.c (_initialize_go_language): Add declaration.
15817 * go32-nat.c (_initialize_go32_nat): Add declaration.
15818 * guile/guile.c (_initialize_guile): Add declaration.
15819 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15820 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15821 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15822 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15823 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15824 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15825 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15826 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15827 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15828 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15829 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15830 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15831 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15832 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15833 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15834 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15835 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15836 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15837 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15838 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15839 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15840 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15841 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15842 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15843 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15844 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15845 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15846 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15847 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15848 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15849 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15850 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15851 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15852 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15853 * infcall.c (_initialize_infcall): Add declaration.
15854 * infcmd.c (_initialize_infcmd): Add declaration.
15855 * inflow.c (_initialize_inflow): Add declaration.
15856 * infrun.c (_initialize_infrun): Add declaration.
15857 * interps.c (_initialize_interpreter): Add declaration.
15858 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15859 * jit.c (_initialize_jit): Add declaration.
15860 * language.c (_initialize_language): Add declaration.
15861 * linux-fork.c (_initialize_linux_fork): Add declaration.
15862 * linux-nat.c (_initialize_linux_nat): Add declaration.
15863 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15864 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15865 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15866 * m2-lang.c (_initialize_m2_language): Add declaration.
15867 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15868 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15869 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15870 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15871 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15872 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15873 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15874 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15875 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15876 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15877 * machoread.c (_initialize_machoread): Add declaration.
15878 * macrocmd.c (_initialize_macrocmd): Add declaration.
15879 * macroscope.c (_initialize_macroscope): Add declaration.
15880 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15881 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15882 * maint.c (_initialize_maint_cmds): Add declaration.
15883 * mdebugread.c (_initialize_mdebugread): Add declaration.
15884 * memattr.c (_initialize_mem): Add declaration.
15885 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15886 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15887 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15888 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15889 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15890 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15891 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15892 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15893 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15894 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15895 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15896 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15897 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15898 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15899 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15900 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15901 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15902 * mipsread.c (_initialize_mipsread): Add declaration.
15903 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15904 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15905 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15906 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15907 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15908 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15909 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15910 * nto-procfs.c (_initialize_procfs): Add declaration.
15911 * objc-lang.c (_initialize_objc_language): Add declaration.
15912 * observable.c (_initialize_observer): Add declaration.
15913 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15914 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15915 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15916 * osabi.c (_initialize_gdb_osabi): Add declaration.
15917 * osdata.c (_initialize_osdata): Add declaration.
15918 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15919 * parse.c (_initialize_parse): Add declaration.
15920 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15921 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15922 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15923 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15924 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15925 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15926 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15927 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15928 * printcmd.c (_initialize_printcmd): Add declaration.
15929 * probe.c (_initialize_probe): Add declaration.
15930 * proc-api.c (_initialize_proc_api): Add declaration.
15931 * proc-events.c (_initialize_proc_events): Add declaration.
15932 * proc-service.c (_initialize_proc_service): Add declaration.
15933 * procfs.c (_initialize_procfs): Add declaration.
15934 * producer.c (_initialize_producer): Add declaration.
15935 * psymtab.c (_initialize_psymtab): Add declaration.
15936 * python/python.c (_initialize_python): Add declaration.
15937 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15938 * record-btrace.c (_initialize_record_btrace): Add declaration.
15939 * record-full.c (_initialize_record_full): Add declaration.
15940 * record.c (_initialize_record): Add declaration.
15941 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15942 * regcache.c (_initialize_regcache): Add declaration.
15943 * reggroups.c (_initialize_reggroup): Add declaration.
15944 * remote-notif.c (_initialize_notif): Add declaration.
15945 * remote-sim.c (_initialize_remote_sim): Add declaration.
15946 * remote.c (_initialize_remote): Add declaration.
15947 * reverse.c (_initialize_reverse): Add declaration.
15948 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15949 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15950 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15951 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15952 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15953 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15954 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15955 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15956 Add declaration.
15957 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15958 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15959 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15960 * rust-exp.y (_initialize_rust_exp): Add declaration.
15961 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15962 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15963 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15964 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15965 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15966 * score-tdep.c (_initialize_score_tdep): Add declaration.
15967 * ser-go32.c (_initialize_ser_dos): Add declaration.
15968 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15969 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15970 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15971 * ser-uds.c (_initialize_ser_socket): Add declaration.
15972 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15973 * serial.c (_initialize_serial): Add declaration.
15974 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15975 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15976 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15977 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15978 * skip.c (_initialize_step_skip): Add declaration.
15979 * sol-thread.c (_initialize_sol_thread): Add declaration.
15980 * solib-aix.c (_initialize_solib_aix): Add declaration.
15981 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15982 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15983 * solib-frv.c (_initialize_frv_solib): Add declaration.
15984 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15985 * solib-target.c (_initialize_solib_target): Add declaration.
15986 * solib.c (_initialize_solib): Add declaration.
15987 * source-cache.c (_initialize_source_cache): Add declaration.
15988 * source.c (_initialize_source): Add declaration.
15989 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15990 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15991 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15992 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15993 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15994 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15995 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15996 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15997 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15998 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15999 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16000 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16001 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16002 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16003 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16004 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16005 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16006 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16007 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16008 * stabsread.c (_initialize_stabsread): Add declaration.
16009 * stack.c (_initialize_stack): Add declaration.
16010 * stap-probe.c (_initialize_stap_probe): Add declaration.
16011 * std-regs.c (_initialize_frame_reg): Add declaration.
16012 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16013 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16014 * symfile.c (_initialize_symfile): Add declaration.
16015 * symmisc.c (_initialize_symmisc): Add declaration.
16016 * symtab.c (_initialize_symtab): Add declaration.
16017 * target.c (_initialize_target): Add declaration.
16018 * target-connection.c (_initialize_target_connection): Add
16019 declaration.
16020 * target-dcache.c (_initialize_target_dcache): Add declaration.
16021 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16022 * thread.c (_initialize_thread): Add declaration.
16023 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16024 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16025 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16026 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16027 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16028 * tracectf.c (_initialize_ctf): Add declaration.
16029 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16030 * tracefile.c (_initialize_tracefile): Add declaration.
16031 * tracepoint.c (_initialize_tracepoint): Add declaration.
16032 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16033 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16034 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16035 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16036 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16037 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16038 * tui/tui.c (_initialize_tui): Add declaration.
16039 * typeprint.c (_initialize_typeprint): Add declaration.
16040 * ui-style.c (_initialize_ui_style): Add declaration.
16041 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16042 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16043 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16044 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16045 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16046 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16047 * unittests/filtered_iterator-selftests.c
16048 (_initialize_filtered_iterator_selftests): Add declaration.
16049 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16050 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16051 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16052 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16053 * unittests/main-thread-selftests.c
16054 (_initialize_main_thread_selftests): Add declaration.
16055 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16056 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16057 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16058 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16059 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16060 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16061 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16062 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16063 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16064 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16065 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16066 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16067 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16068 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16069 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16070 declaration.
16071 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16072 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16073 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16074 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16075 * user-regs.c (_initialize_user_regs): Add declaration.
16076 * utils.c (_initialize_utils): Add declaration.
16077 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16078 * valops.c (_initialize_valops): Add declaration.
16079 * valprint.c (_initialize_valprint): Add declaration.
16080 * value.c (_initialize_values): Add declaration.
16081 * varobj.c (_initialize_varobj): Add declaration.
16082 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16083 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16084 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16085 * windows-nat.c (_initialize_windows_nat): Add declaration.
16086 (_initialize_check_for_gdb_ini): Add declaration.
16087 (_initialize_loadable): Add declaration.
16088 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16089 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16090 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16091 * xcoffread.c (_initialize_xcoffread): Add declaration.
16092 * xml-support.c (_initialize_xml_support): Add declaration.
16093 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16094 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16095 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16096 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16097
e2de1eec
SM
160982020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16099
16100 * regformats/regdat.sh: Generate declaration for init function.
16101
e0037b4c
SM
161022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16103
16104 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16105 up.
16106 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16107 close_one_inferior>: New methods.
16108 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16109 pass down target to find_inferior_pid.
16110 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16111 Pass down target to find_inferior_ptid.
16112 (gdbsim_target::create_inferior): Pass down target to
16113 add_thread_silent.
16114 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16115 target down to find_inferior_ptid and switch_to_thread.
16116 (gdbsim_target::close): Update to call close_one_inferior.
16117 (struct resume_data): Remove.
16118 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16119 directly, rather than through a void pointer.
16120 (gdbsim_target::resume): Update to call resume_one_inferior.
16121
58920b5b
SM
161222020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16123
16124 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16125
4ec89149
PA
161262020-01-12 Pedro Alves <palves@redhat.com>
16127
16128 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16129 directly for the current inferior instead of
16130 discard_all_inferiors.
16131 (discard_all_inferiors): Delete.
16132
7c392d1d
TT
161332020-01-11 Tom Tromey <tom@tromey.com>
16134
16135 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16136 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16137 deprecated_safe_get_selected_frame.
16138
d9ebdab7
TBA
161392020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16140
16141 * inferior.c (print_inferior): Switch inferior before printing it.
16142
f3c469b9
PA
161432020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16144 Pedro Alves <palves@redhat.com>
16145
16146 * progspace-and-thread.c (switch_to_program_space_and_thread):
16147 Assert there's an inferior for PSPACE. Use
16148 switch_to_inferior_no_thread to switch the inferior too.
16149 * progspace.c (program_space::~program_space): Call
16150 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16151 (program_space::free_all_objfiles): Don't call clear_symtab_users
16152 here.
16153 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16154
65c574f6
PA
161552020-01-10 Pedro Alves <palves@redhat.com>
16156
16157 * NEWS: Mention multi-target debugging, "info connections", and
16158 "add-inferior -no-connection".
16159
2f4fcf00
PA
161602020-01-10 Pedro Alves <palves@redhat.com>
16161
16162 * infrun.c: Include "target-connection.h".
16163 (check_multi_target_resumption): New.
16164 (proceed): Call it.
16165 * target-connection.c (make_target_connection_string): Make
16166 extern.
16167 * target-connection.h (make_target_connection_string): Declare.
16168
121b3efd
PA
161692020-01-10 Pedro Alves <palves@redhat.com>
16170
16171 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16172 * inferior.c (uiout_field_connection): New function.
16173 (print_inferior): Add new "connection-id" column.
16174 (add_inferior_command): Show connection number/string of added
16175 inferior.
16176 * process-stratum-target.h
16177 (process_stratum_target::connection_string): New virtual method.
16178 (process_stratum_target::connection_number): New field.
16179 * remote.c (remote_target::connection_string): New override.
16180 * target-connection.c: New file.
16181 * target-connection.h: New file.
16182 * target.c (decref_target): Remove process_stratum targets from
16183 the connection list.
16184 (target_stack::push): Add process_stratum targets to the
16185 connection list.
16186
4f837581
PA
161872020-01-10 Pedro Alves <palves@redhat.com>
16188
16189 Revert:
16190 2016-04-12 Pedro Alves <palves@redhat.com>
16191 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16192 Remove references to name.
16193 * serial.h (struct serial) <name>: Delete.
16194
f4ec508e
PA
161952020-01-10 Pedro Alves <palves@redhat.com>
16196
16197 * gdbarch-selftests.c (register_to_value_test): Remove "target
16198 already pushed" check.
16199
5b6d1e4f
PA
162002020-01-10 Pedro Alves <palves@redhat.com>
16201 John Baldwin <jhb@FreeBSD.org>
16202
16203 * aarch64-linux-nat.c
16204 (aarch64_linux_nat_target::thread_architecture): Adjust.
16205 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16206 (task_command_1): Likewise.
16207 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16208 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16209 (aix_thread_target::store_registers)
16210 (aix_thread_target::thread_alive): Adjust.
16211 * amd64-fbsd-tdep.c: Include "inferior.h".
16212 (amd64fbsd_get_thread_local_address): Pass down target.
16213 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16214 thread's gdbarch instead of target_gdbarch.
16215 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16216 get_last_target_status.
16217 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16218 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16219 inferiors.
16220 (update_inserted_breakpoint_locations): Skip if inferiors with no
16221 execution.
16222 (update_global_location_list): When handling moribund locations,
16223 find representative inferior for location's pspace, and use thread
16224 count of its process_stratum target.
16225 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16226 * bsd-uthread.c (bsd_uthread_target::wait): Use
16227 as_process_stratum_target and adjust thread_change_ptid and
16228 add_thread calls.
16229 (bsd_uthread_target::update_thread_list): Use
16230 as_process_stratum_target and adjust find_thread_ptid,
16231 thread_change_ptid and add_thread calls.
16232 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16233 find_thread_ptid call.
16234 * corelow.c (add_to_thread_list): Adjust add_thread call.
16235 (core_target_open): Adjust add_thread_silent and thread_count
16236 calls.
16237 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16238 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16239 * event-top.c (async_disconnect): Pop targets from all inferiors.
16240 * exec.c (add_target_sections): Push exec target on all inferiors
16241 sharing the program space.
16242 (remove_target_sections): Remove the exec target from all
16243 inferiors sharing the program space.
16244 (exec_on_vfork): New.
16245 * exec.h (exec_on_vfork): Declare.
16246 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16247 Pass it down.
16248 (fbsd_nat_target::update_thread_list): Adjust.
16249 (fbsd_nat_target::resume): Adjust.
16250 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16251 down.
16252 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16253 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16254 get_thread_arch_regcache call.
16255 * fork-child.c (gdb_startup_inferior): Pass target down to
16256 startup_inferior and set_executing.
16257 * gdbthread.h (struct process_stratum_target): Forward declare.
16258 (add_thread, add_thread_silent, add_thread_with_info)
16259 (in_thread_list): Add process_stratum_target parameter.
16260 (find_thread_ptid(inferior*, ptid_t)): New overload.
16261 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16262 parameter.
16263 (all_threads()): Delete overload.
16264 (all_threads, all_non_exited_threads): Add process_stratum_target
16265 parameter.
16266 (all_threads_safe): Use brace initialization.
16267 (thread_count): Add process_stratum_target parameter.
16268 (set_resumed, set_running, set_stop_requested, set_executing)
16269 (threads_are_executing, finish_thread_state): Add
16270 process_stratum_target parameter.
16271 (switch_to_thread): Use is_current_thread.
16272 * i386-fbsd-tdep.c: Include "inferior.h".
16273 (i386fbsd_get_thread_local_address): Pass down target.
16274 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16275 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16276 have_inferiors check.
16277 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16278 (inf_ptrace_target::attach): Adjust.
16279 * infcall.c (run_inferior_call): Adjust.
16280 * infcmd.c (run_command_1): Pass target to
16281 scoped_finish_thread_state.
16282 (proceed_thread_callback): Skip inferiors with no execution.
16283 (continue_command): Rename 'all_threads' local to avoid hiding
16284 'all_threads' function. Adjust get_last_target_status call.
16285 (prepare_one_step): Adjust set_running call.
16286 (signal_command): Use user_visible_resume_target. Compare thread
16287 pointers instead of inferior_ptid.
16288 (info_program_command): Adjust to pass down target.
16289 (attach_command): Mark target's 'thread_executing' flag.
16290 (stop_current_target_threads_ns): New, factored out from ...
16291 (interrupt_target_1): ... this. Switch inferior before making
16292 target calls.
16293 * inferior-iter.h
16294 (struct all_inferiors_iterator, struct all_inferiors_range)
16295 (struct all_inferiors_safe_range)
16296 (struct all_non_exited_inferiors_range): Filter on
16297 process_stratum_target too. Remove explicit.
16298 * inferior.c (inferior::inferior): Push dummy target on target
16299 stack.
16300 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16301 Add process_stratum_target parameter, and pass it down.
16302 (have_live_inferiors): Adjust.
16303 (switch_to_inferior_and_push_target): New.
16304 (add_inferior_command, clone_inferior_command): Handle
16305 "-no-connection" parameter. Use
16306 switch_to_inferior_and_push_target.
16307 (_initialize_inferior): Mention "-no-connection" option in
16308 the help of "add-inferior" and "clone-inferior" commands.
16309 * inferior.h: Include "process-stratum-target.h".
16310 (interrupt_target_1): Use bool.
16311 (struct inferior) <push_target, unpush_target, target_is_pushed,
16312 find_target_beneath, top_target, process_target, target_at,
16313 m_stack>: New.
16314 (discard_all_inferiors): Delete.
16315 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16316 (all_inferiors, all_non_exited_inferiors): Add
16317 process_stratum_target parameter.
16318 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16319 (target_last_proc_target): New global.
16320 (follow_fork_inferior): Push target on new inferior. Pass target
16321 to add_thread_silent. Call exec_on_vfork. Handle target's
16322 reference count.
16323 (follow_fork): Adjust get_last_target_status call. Also consider
16324 target.
16325 (follow_exec): Push target on new inferior.
16326 (struct execution_control_state) <target>: New field.
16327 (user_visible_resume_target): New.
16328 (do_target_resume): Call target_async.
16329 (resume_1): Set target's threads_executing flag. Consider resume
16330 target.
16331 (commit_resume_all_targets): New.
16332 (proceed): Also consider resume target. Skip threads of inferiors
16333 with no execution. Commit resumtion in all targets.
16334 (start_remote): Pass current inferior to wait_for_inferior.
16335 (infrun_thread_stop_requested): Consider target as well. Pass
16336 thread_info pointer to clear_inline_frame_state instead of ptid.
16337 (infrun_thread_thread_exit): Consider target as well.
16338 (random_pending_event_thread): New inferior parameter. Use it.
16339 (do_target_wait): Rename to ...
16340 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16341 down.
16342 (threads_are_resumed_pending_p, do_target_wait): New.
16343 (prepare_for_detach): Adjust calls.
16344 (wait_for_inferior): New inferior parameter. Handle it. Use
16345 do_target_wait_1 instead of do_target_wait.
16346 (fetch_inferior_event): Adjust. Switch to representative
16347 inferior. Pass target down.
16348 (set_last_target_status): Add process_stratum_target parameter.
16349 Save target in global.
16350 (get_last_target_status): Add process_stratum_target parameter and
16351 handle it.
16352 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16353 (context_switch): Check inferior_ptid == null_ptid before calling
16354 inferior_thread().
16355 (get_inferior_stop_soon): Pass down target.
16356 (wait_one): Rename to ...
16357 (poll_one_curr_target): ... this.
16358 (struct wait_one_event): New.
16359 (wait_one): New.
16360 (stop_all_threads): Adjust.
16361 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16362 event's target.
16363 (switch_back_to_stepped_thread): Also consider target.
16364 (print_stop_event): Update.
16365 (normal_stop): Update. Also consider the resume target.
16366 * infrun.h (wait_for_inferior): Remove declaration.
16367 (user_visible_resume_target): New declaration.
16368 (get_last_target_status, set_last_target_status): New
16369 process_stratum_target parameter.
16370 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16371 process_stratum_target parameter, and use it.
16372 (clear_inline_frame_state (thread_info*)): New.
16373 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16374 process_stratum_target parameter.
16375 (clear_inline_frame_state (thread_info*)): Declare.
16376 * linux-fork.c (delete_checkpoint_command): Pass target down to
16377 find_thread_ptid.
16378 (checkpoint_command): Adjust.
16379 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16380 instead of just tweaking inferior_ptid.
16381 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16382 (exit_lwp): Pass target down to find_thread_ptid.
16383 (attach_proc_task_lwp_callback): Pass target down to
16384 add_thread/set_running/set_executing.
16385 (linux_nat_target::attach): Pass target down to
16386 thread_change_ptid.
16387 (get_detach_signal): Pass target down to find_thread_ptid.
16388 Consider last target status's target.
16389 (linux_resume_one_lwp_throw, resume_lwp)
16390 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16391 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16392 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16393 (linux_nat_target::async_wait_fd): New.
16394 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16395 target down.
16396 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16397 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16398 * linux-thread-db.c (struct thread_db_info::process_target): New
16399 field.
16400 (add_thread_db_info): Save target.
16401 (get_thread_db_info): New process_stratum_target parameter. Also
16402 match target.
16403 (delete_thread_db_info): New process_stratum_target parameter.
16404 Also match target.
16405 (thread_from_lwp): Adjust to pass down target.
16406 (thread_db_notice_clone): Pass down target.
16407 (check_thread_db_callback): Pass down target.
16408 (try_thread_db_load_1): Always push the thread_db target.
16409 (try_thread_db_load, record_thread): Pass target down.
16410 (thread_db_target::detach): Pass target down. Always unpush the
16411 thread_db target.
16412 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16413 target down. Always unpush the thread_db target.
16414 (find_new_threads_callback, thread_db_find_new_threads_2)
16415 (thread_db_target::update_thread_list): Pass target down.
16416 (thread_db_target::pid_to_str): Pass current inferior down.
16417 (thread_db_target::get_thread_local_address): Pass target down.
16418 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16419 target down.
16420 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16421 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16422 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16423 (procfs_init_inferior): Rename to ...
16424 (procfs_target::procfs_init_inferior): ... this and adjust.
16425 (procfs_target::create_inferior, procfs_notice_thread)
16426 (procfs_do_thread_registers): Adjust.
16427 * ppc-fbsd-tdep.c: Include "inferior.h".
16428 (ppcfbsd_get_thread_local_address): Pass down target.
16429 * proc-service.c (ps_xfer_memory): Switch current inferior and
16430 program space as well.
16431 (get_ps_regcache): Pass target down.
16432 * process-stratum-target.c
16433 (process_stratum_target::thread_address_space)
16434 (process_stratum_target::thread_architecture): Pass target down.
16435 * process-stratum-target.h
16436 (process_stratum_target::threads_executing): New field.
16437 (as_process_stratum_target): New.
16438 * ravenscar-thread.c
16439 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16440 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16441 down.
16442 * record-btrace.c (record_btrace_target::info_record): Adjust.
16443 (record_btrace_target::record_method)
16444 (record_btrace_target::record_is_replaying)
16445 (record_btrace_target::fetch_registers)
16446 (get_thread_current_frame_id, record_btrace_target::resume)
16447 (record_btrace_target::wait, record_btrace_target::stop): Pass
16448 target down.
16449 * record-full.c (record_full_wait_1): Switch to event thread.
16450 Pass target down.
16451 * regcache.c (regcache::regcache)
16452 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16453 process_stratum_target parameter and handle it.
16454 (current_thread_target): New global.
16455 (get_thread_regcache): Add process_stratum_target parameter and
16456 handle it. Switch inferior before calling target method.
16457 (get_thread_regcache): Pass target down.
16458 (get_thread_regcache_for_ptid): Pass target down.
16459 (registers_changed_ptid): Add process_stratum_target parameter and
16460 handle it.
16461 (registers_changed_thread, registers_changed): Pass target down.
16462 (test_get_thread_arch_aspace_regcache): New.
16463 (current_regcache_test): Define a couple local test_target_ops
16464 instances and use them for testing.
16465 (readwrite_regcache): Pass process_stratum_target parameter.
16466 (cooked_read_test, cooked_write_test): Pass mock_target down.
16467 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16468 (get_thread_arch_aspace_regcache): Add process_stratum_target
16469 parameter.
16470 (regcache::target): New method.
16471 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16472 (regcache::registers_changed_ptid): Add process_stratum_target
16473 parameter.
16474 (regcache::m_target): New field.
16475 (registers_changed_ptid): Add process_stratum_target parameter.
16476 * remote.c (remote_state::supports_vCont_probed): New field.
16477 (remote_target::async_wait_fd): New method.
16478 (remote_unpush_and_throw): Add remote_target parameter.
16479 (get_current_remote_target): Adjust.
16480 (remote_target::remote_add_inferior): Push target.
16481 (remote_target::remote_add_thread)
16482 (remote_target::remote_notice_new_inferior)
16483 (get_remote_thread_info): Pass target down.
16484 (remote_target::update_thread_list): Skip threads of inferiors
16485 bound to other targets. (remote_target::close): Don't discard
16486 inferiors. (remote_target::add_current_inferior_and_thread)
16487 (remote_target::process_initial_stop_replies)
16488 (remote_target::start_remote)
16489 (remote_target::remote_serial_quit_handler): Pass down target.
16490 (remote_target::remote_unpush_target): New remote_target
16491 parameter. Unpush the target from all inferiors.
16492 (remote_target::remote_unpush_and_throw): New remote_target
16493 parameter. Pass it down.
16494 (remote_target::open_1): Check whether the current inferior has
16495 execution instead of checking whether any inferior is live. Pass
16496 target down.
16497 (remote_target::remote_detach_1): Pass down target. Use
16498 remote_unpush_target.
16499 (extended_remote_target::attach): Pass down target.
16500 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16501 (remote_target::append_resumption): Pass down target.
16502 (remote_target::append_pending_thread_resumptions)
16503 (remote_target::remote_resume_with_hc, remote_target::resume)
16504 (remote_target::commit_resume): Pass down target.
16505 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16506 (remote_target::interrupt_query)
16507 (remote_target::remove_new_fork_children)
16508 (remote_target::check_pending_events_prevent_wildcard_vcont)
16509 (remote_target::remote_parse_stop_reply)
16510 (remote_target::process_stop_reply): Pass down target.
16511 (first_remote_resumed_thread): New remote_target parameter. Pass
16512 it down.
16513 (remote_target::wait_as): Pass down target.
16514 (unpush_and_perror): New remote_target parameter. Pass it down.
16515 (remote_target::readchar, remote_target::remote_serial_write)
16516 (remote_target::getpkt_or_notif_sane_1)
16517 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16518 down target.
16519 (remote_target::mourn_inferior): Pass down target. Use
16520 remote_unpush_target.
16521 (remote_target::core_of_thread)
16522 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16523 (remote_target::pid_to_exec_file)
16524 (remote_target::thread_handle_to_thread_info): Pass down target.
16525 (remote_target::async_wait_fd): New.
16526 * riscv-fbsd-tdep.c: Include "inferior.h".
16527 (riscv_fbsd_get_thread_local_address): Pass down target.
16528 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16529 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16530 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16531 Adjust.
16532 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16533 * solib-svr4.c (enable_break): Pass down target.
16534 * spu-multiarch.c (parse_spufs_run): Pass down target.
16535 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16536 * target-delegates.c: Regenerate.
16537 * target.c (g_target_stack): Delete.
16538 (current_top_target): Return the current inferior's top target.
16539 (target_has_execution_1): Refer to the passed-in inferior's top
16540 target.
16541 (target_supports_terminal_ours): Check whether the initial
16542 inferior was already created.
16543 (decref_target): New.
16544 (target_stack::push): Incref/decref the target.
16545 (push_target, push_target, unpush_target): Adjust.
16546 (target_stack::unpush): Defref target.
16547 (target_is_pushed): Return bool. Adjust to refer to the current
16548 inferior's target stack.
16549 (dispose_inferior): Delete, and inline parts ...
16550 (target_preopen): ... here. Only dispose of the current inferior.
16551 (target_detach): Hold strong target reference while detaching.
16552 Pass target down.
16553 (target_thread_name): Add assertion.
16554 (target_resume): Pass down target.
16555 (target_ops::beneath, find_target_at): Adjust to refer to the
16556 current inferior's target stack.
16557 (get_dummy_target): New.
16558 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16559 has a thread running.
16560 (initialize_targets): Rename to ...
16561 (_initialize_target): ... this.
16562 * target.h: Include "gdbsupport/refcounted-object.h".
16563 (struct target_ops): Inherit refcounted_object.
16564 (target_ops::shortname, target_ops::longname): Make const.
16565 (target_ops::async_wait_fd): New method.
16566 (decref_target): Declare.
16567 (struct target_ops_ref_policy): New.
16568 (target_ops_ref): New typedef.
16569 (get_dummy_target): Declare function.
16570 (target_is_pushed): Return bool.
16571 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16572 (all_matching_threads_iterator::all_matching_threads_iterator):
16573 Handle filter target.
16574 * thread-iter.h (struct all_matching_threads_iterator, struct
16575 all_matching_threads_range, class all_non_exited_threads_range):
16576 Filter by target too. Remove explicit.
16577 * thread.c (threads_executing): Delete.
16578 (inferior_thread): Pass down current inferior.
16579 (clear_thread_inferior_resources): Pass down thread pointer
16580 instead of ptid_t.
16581 (add_thread_silent, add_thread_with_info, add_thread): Add
16582 process_stratum_target parameter. Use it for thread and inferior
16583 searches.
16584 (is_current_thread): New.
16585 (thread_info::deletable): Use it.
16586 (find_thread_ptid, thread_count, in_thread_list)
16587 (thread_change_ptid, set_resumed, set_running): New
16588 process_stratum_target parameter. Pass it down.
16589 (set_executing): New process_stratum_target parameter. Pass it
16590 down. Adjust reference to 'threads_executing'.
16591 (threads_are_executing): New process_stratum_target parameter.
16592 Adjust reference to 'threads_executing'.
16593 (set_stop_requested, finish_thread_state): New
16594 process_stratum_target parameter. Pass it down.
16595 (switch_to_thread): Also match inferior.
16596 (switch_to_thread): New process_stratum_target parameter. Pass it
16597 down.
16598 (update_threads_executing): Reimplement.
16599 * top.c (quit_force): Pop targets from all inferior.
16600 (gdb_init): Don't call initialize_targets.
16601 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16602 Declare.
16603 (windows_add_thread, windows_delete_thread): Adjust.
16604 (get_windows_debug_event): Rename to ...
16605 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16606 * tracefile-tfile.c (tfile_target_open): Pass down target.
16607 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16608 Forward declare.
16609 (switch_to_thread): Add process_stratum_target parameter.
16610 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16611 parameter. Use it.
16612 (mi_on_resume): Pass target down.
16613 * nat/fork-inferior.c (startup_inferior): Add
16614 process_stratum_target parameter. Pass it down.
16615 * nat/fork-inferior.h (startup_inferior): Add
16616 process_stratum_target parameter.
16617 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16618
75c6c844
PA
166192020-01-10 Pedro Alves <palves@redhat.com>
16620
16621 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16622 directly. Instead find the first thread in the thread list and
16623 use switch_to_thread.
16624
78f2c40a
PA
166252020-01-10 Pedro Alves <palves@redhat.com>
16626
16627 * remote.c (remote_target::remote_add_inferior): Don't bind a
16628 process to the current inferior if the current inferior is already
16629 bound to a process.
16630
e7af6c70
TBA
166312020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16632 Pedro Alves <palves@redhat.com>
16633
16634 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16635 If no process is specified, return null_ptid instead of
16636 inferior_ptid.
16637 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16638 TARGET_WAITKIND_SIGNALLED with no pid.
16639
31ba933e
PA
166402020-01-10 Pedro Alves <palves@redhat.com>
16641
16642 * remote.c (first_remote_resumed_thread): New.
16643 (remote_target::wait_as): Use it as default event_ptid instead of
16644 inferior_ptid.
16645
735fc2ca
PA
166462020-01-10 Pedro Alves <palves@redhat.com>
16647
16648 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16649
c17e02e1
PA
166502020-01-10 Pedro Alves <palves@redhat.com>
16651
16652 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16653 not -1.
16654
ab1ddbcf
PA
166552020-01-10 Pedro Alves <palves@redhat.com>
16656
16657 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16658 ptid to get_last_target_status.
16659 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16660 ptid to get_last_target_status.
16661 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16662 get_last_target_status.
16663 (info_program_command): Don't pass a target_waitstatus to
16664 get_last_target_status.
16665 * infrun.c (init_wait_for_inferior): Use
16666 nullify_last_target_wait_ptid.
16667 (get_last_target_status): Handle nullptr arguments.
16668 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16669 (print_stop_event): Don't pass a ptid to get_last_target_status.
16670 (normal_stop): Don't pass a ptid to get_last_target_status.
16671 * infrun.h (get_last_target_status, set_last_target_status): Move
16672 comments here and update.
16673 (nullify_last_target_wait_ptid): Declare.
16674 * linux-fork.c (fork_load_infrun_state): Remove local extern
16675 declaration of nullify_last_target_wait_ptid.
16676 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16677 to get_last_target_status.
16678
f3f8ece4
PA
166792020-01-10 Pedro Alves <palves@redhat.com>
16680
16681 * gdbthread.h (scoped_restore_current_thread)
16682 <dont_restore, restore, m_dont_restore>: Declare.
16683 * thread.c (thread_alive): Add assertion. Return bool.
16684 (switch_to_thread_if_alive): New.
16685 (prune_threads): Switch inferior/thread.
16686 (print_thread_info_1): Switch thread before calling target methods.
16687 (scoped_restore_current_thread::restore): New, factored out from
16688 ...
16689 (scoped_restore_current_thread::~scoped_restore_current_thread):
16690 ... this.
16691 (scoped_restore_current_thread::scoped_restore_current_thread):
16692 Add assertion.
16693 (thread_apply_all_command, thread_select): Use
16694 switch_to_thread_if_alive.
16695 * infrun.c (proceed, restart_threads, handle_signal_stop)
16696 (switch_back_to_stepped_thread): Switch current thread before
16697 calling target methods.
16698
db2d40f7
PA
166992020-01-10 Pedro Alves <palves@redhat.com>
16700
16701 * inferior.c (switch_to_inferior_no_thread): New function,
16702 factored out from ...
16703 (inferior_command): ... here.
16704 * inferior.h (switch_to_inferior_no_thread): Declare.
16705 * mi/mi-main.c (run_one_inferior): Use
16706 switch_to_inferior_no_thread.
16707
bd420a2d
PA
167082020-01-10 Pedro Alves <palves@redhat.com>
16709
16710 * infcmd.c (kill_command): Remove dead code.
16711
ddf5db90
PA
167122020-01-10 Pedro Alves <palves@redhat.com>
16713
16714 * remote.c (remote_target::mourn_inferior): No longer check
16715 whether the target is running.
16716
5018ce90
PA
167172020-01-10 Pedro Alves <palves@redhat.com>
16718
16719 * corelow.c (core_target::has_execution): Change parameter type to
16720 inferior pointer.
16721 * inferior.c (number_of_live_inferiors): Use
16722 inferior::has_execution instead of target_has_execution_1.
16723 * inferior.h (inferior::has_execution): New.
16724 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16725 inferior::has_execution instead of target_has_execution_1.
16726 * process-stratum-target.c
16727 (process_stratum_target::has_execution): Change parameter type to
16728 inferior pointer. Check the inferior's PID instead of
16729 inferior_ptid.
16730 * process-stratum-target.h
16731 (process_stratum_target::has_execution): Change parameter type to
16732 inferior pointer.
16733 * record-full.c (record_full_core_target::has_execution): Change
16734 parameter type to inferior pointer.
16735 * target.c (target_has_execution_1): Change parameter type to
16736 inferior pointer.
16737 (target_has_execution_current): Adjust.
16738 * target.h (target_ops::has_execution): Change parameter type to
16739 inferior pointer.
16740 (target_has_execution_1): Change parameter type to inferior
16741 pointer. Change return type to bool.
16742 * tracefile.h (tracefile_target::has_execution): Change parameter
16743 type to inferior pointer.
16744
74375d18
PA
167452020-01-10 Pedro Alves <palves@redhat.com>
16746
16747 * exceptions.c (print_flush): Remove current_top_target() check.
16748
acdf84a6
PA
167492020-01-10 Pedro Alves <palves@redhat.com>
16750
16751 * remote.c (show_remote_exec_file): Show the current inferior's
16752 exec-file instead of the command variable's value.
16753
ec506636
PA
167542020-01-10 Pedro Alves <palves@redhat.com>
16755
16756 * record-full.c (record_full_resume_ptid): New global.
16757 (record_full_target::resume): Set it.
16758 (record_full_wait_1): Use record_full_resume_ptid instead of
16759 inferior_ptid.
16760
873657b9
PA
167612020-01-10 Pedro Alves <palves@redhat.com>
16762
16763 * gdbthread.h (scoped_restore_current_thread)
16764 <dont_restore, restore, m_dont_restore>: Declare.
16765 * thread.c (thread_alive): Add assertion. Return bool.
16766 (switch_to_thread_if_alive): New.
16767 (prune_threads): Switch inferior/thread.
16768 (print_thread_info_1): Switch thread before calling target methods.
16769 (scoped_restore_current_thread::restore): New, factored out from
16770 ...
16771 (scoped_restore_current_thread::~scoped_restore_current_thread):
16772 ... this.
16773 (scoped_restore_current_thread::scoped_restore_current_thread):
16774 Add assertion.
16775 (thread_apply_all_command, thread_select): Use
16776 switch_to_thread_if_alive.
16777
7f0ae84c
GB
167782020-01-10 George Barrett <bob@bob131.so>
16779
16780 * stap-probe.c (stap_modify_semaphore): Don't check for null
16781 semaphores.
16782 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16783 for null semaphores.
16784
f5a7c406
AB
167852020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16786
16787 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16788 all source windows, and maintain horizontal scroll status while
16789 doing so.
16790
9ae6bf64
TT
167912020-01-09 Tom Tromey <tom@tromey.com>
16792
16793 PR tui/18932:
16794 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16795 update_source_window, not print_source_lines.
16796
b2efe70c
AB
167972020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16798
16799 * tui/tui.c (tui_enable): Register tui hooks after calling
16800 tui_display_main.
16801
5f23a082
CB
168022020-01-09 Christian Biesinger <cbiesinger@google.com>
16803
16804 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16805
3061113b
SM
168062020-01-08 Simon Marchi <simon.marchi@efficios.com>
16807
16808 * thread.c (print_thread_info_1): Fix indentation.
16809
57d75002
CB
168102020-01-09 Christian Biesinger <cbiesinger@google.com>
16811
16812 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16813 unique_xmalloc_ptr outside the if to always free the demangled name.
16814
6a053cb1
TT
168152020-01-08 Tom Tromey <tromey@adacore.com>
16816
16817 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16818 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16819 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16820 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16821 Remove.
16822 (section_offsets): New typedef.
16823 * symtab.c (fixup_section, get_msymbol_address): Update.
16824 * symmisc.c (dump_msymbols): Update.
16825 * symfile.h (relative_addr_info_to_section_offsets)
16826 (symfile_map_offsets_to_segments): Update.
16827 * symfile.c (build_section_addr_info_from_objfile)
16828 (init_objfile_sect_indices): Update.
16829 (struct place_section_arg): Change type of "offsets".
16830 (place_section): Update.
16831 (relative_addr_info_to_section_offsets): Change type of
16832 "section_offsets". Remove "num_sections" parameter.
16833 (default_symfile_offsets, syms_from_objfile_1)
16834 (set_objfile_default_section_offset): Update.
16835 (reread_symbols): No need to preserve section offsets by hand.
16836 (symfile_map_offsets_to_segments): Change type of "offsets".
16837 * stap-probe.c (relocate_address): Update.
16838 * stabsread.h (process_one_symbol): Update.
16839 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16840 (solib_target_relocate_section_addresses): Update.
16841 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16842 Update.
16843 * solib-frv.c (frv_relocate_main_executable): Update.
16844 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16845 * solib-aix.c (solib_aix_get_section_offsets): Change return
16846 type.
16847 (solib_aix_solib_create_inferior_hook): Update.
16848 * remote.c (remote_target::get_offsets): Update.
16849 * psymtab.c (find_pc_sect_psymtab): Update.
16850 * psympriv.h (struct partial_symbol) <address, text_low,
16851 text_high>: Update.
16852 * objfiles.h (obj_section_offset): Update.
16853 (struct objfile) <section_offsets>: Change type.
16854 <num_sections>: Remove.
16855 (objfile_relocate): Update.
16856 * objfiles.c (entry_point_address_query): Update
16857 (relocate_one_symbol): Change type of "section_offsets".
16858 (objfile_relocate1, objfile_relocate1): Change type of
16859 "new_offsets".
16860 (objfile_rebase1): Update.
16861 * mipsread.c (mipscoff_symfile_read): Update.
16862 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16863 parameter.
16864 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16865 (parse_external, psymtab_to_symtab_1): Update.
16866 * machoread.c (macho_symfile_offsets): Update.
16867 * ia64-tdep.c (ia64_find_unwind_table): Update.
16868 * hppa-tdep.c (read_unwind_info): Update.
16869 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16870 * dwarf2read.c (create_addrmap_from_index)
16871 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16872 (process_psymtab_comp_unit_reader, add_partial_symbol)
16873 (add_partial_subprogram, process_full_comp_unit)
16874 (read_file_scope, read_func_scope, read_lexical_block_scope)
16875 (read_call_site_scope, dwarf2_rnglists_process)
16876 (dwarf2_ranges_process, dwarf2_ranges_read)
16877 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16878 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16879 Update.
16880 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16881 Update.
16882 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16883 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16884 (process_one_symbol): Change type of "section_offsets".
16885 * ctfread.c (get_objfile_text_range): Update.
16886 * coffread.c (coff_symtab_read, enter_linenos)
16887 (process_coff_symbol): Update.
16888 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16889 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16890
456e800a
TT
168912020-01-08 Tom Tromey <tromey@adacore.com>
16892
16893 * dwarf2read.c (parse_macro_definition): Use std::string.
16894 (parse_macro_definition): Likewise.
16895
6dfa2fc2
TT
168962020-01-08 Tom Tromey <tromey@adacore.com>
16897
16898 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16899 (ATTR_ALLOC_CHUNK): Remove.
16900
421d1616
TT
169012020-01-08 Tom Tromey <tromey@adacore.com>
16902
16903 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16904
43816ebc
TT
169052020-01-08 Tom Tromey <tromey@adacore.com>
16906
16907 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16908 (dwarf2_compute_name, open_dwo_file): Likewise.
16909 (process_enumeration_scope): Use std::vector.
16910 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16911 (partial_die_info::fixup, dwarf2_start_subfile)
16912 (guess_full_die_structure_name, dwarf2_name): Likewise.
16913 (determine_prefix): Update.
16914 (guess_full_die_structure_name): Make return type const.
16915 (partial_die_full_name): Return unique_xmalloc_ptr.
16916 (DW_FIELD_ALLOC_CHUNK): Remove.
16917
4212d509
TT
169182020-01-07 Tom Tromey <tromey@adacore.com>
16919
16920 PR build/24937:
16921 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16922
06a6207a
JT
169232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16924
16925 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16926
153d79c4
AB
169272020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16928
16929 * stack.c (print_frame_info): Move disassemble_next_line code
16930 inside source_print block.
16931
66182876
EZ
169322020-01-06 Eli Zaretskii <eliz@gnu.org>
16933
16934 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16935 gdb/signals.h, as we are now using native signal symbols.
16936
cbfa8581
SV
169372020-01-06 Shahab Vahedi <shahab@synopsys.com>
16938
16939 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16940 overflow by an early check of content vs threshold.
aac66a4c 16941 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16942 Likewise.
16943
3f602821
EZ
169442020-01-06 Eli Zaretskii <eliz@gnu.org>
16945
16946 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16947
a08c904d
JT
169482020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16949
16950 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16951 export table if no section contains it's RVA.
16952
89a65580
EZ
169532020-01-06 Eli Zaretskii <eliz@gnu.org>
16954
16955 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16956
8b7fcda2
HD
169572020-01-06 Hannes Domani <ssbssa@yahoo.de>
16958
16959 * source.c (print_source_lines_base): Set last_line_listed.
16960
a61b4f69
SV
169612020-01-06 Shahab Vahedi <shahab@synopsys.com>
16962
16963 * tui/tui-disasm.c: Remove trailing spaces.
16964
559e7e50
EZ
169652020-01-06 Eli Zaretskii <eliz@gnu.org>
16966 Pedro Alves <palves@redhat.com>
16967
16968 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16969 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16970 (windows_gdb_signal_to_target): New function, uses the above
16971 enumeration to convert GDB internal signal codes to equivalent
16972 Windows codes.
16973 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16974 * windows-nat.c: Include "gdb_wait.h".
16975 (get_windows_debug_event): Extract the fatal exception from the
16976 exit status and convert to the equivalent Posix signal number.
16977 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16978 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16979 * gdbsupport/gdb_wait.c: New file, implements
16980 windows_status_to_termsig.
16981 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16982 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16983
f2302a34
AB
169842020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16985
16986 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16987 show_layout.
16988
6a5206eb
LM
169892020-01-05 Luis Machado <luis.machado@linaro.org>
16990
16991 * aarch64-linux-nat.c
16992 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16993 and bfd_mach_aarch64.
16994
6ec1d75e
PW
169952020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16996
16997 * ui-file.c (stdio_file::can_emit_style_escape)
16998 (tee_file::can_emit_style_escape): Ensure style is used also on
16999 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17000 to gdb_stdout.
17001 * main.c (set_gdb_data_directory): Use file style to output the
17002 warning that the given pathname is not a directory.
17003 * top.c (show_history_filename, gdb_safe_append_history)
17004 (show_gdb_datadir): Use file style.
17005
44f81a76
HD
170062020-01-03 Hannes Domani <ssbssa@yahoo.de>
17007
17008 * solib-target.c (struct lm_info_target):
17009 Change offsets to be a unique_xmalloc_ptr.
17010 (solib_target_relocate_section_addresses): Update.
17011
25057eb0
HD
170122020-01-03 Hannes Domani <ssbssa@yahoo.de>
17013
17014 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17015
6e2118f5
BE
170162020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17017
17018 * MAINTAINERS (Write After Approval): Add myself.
17019
8133c7dc
LM
170202020-01-02 Luis Machado <luis.machado@linaro.org>
17021
17022 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17023 Cell BE architecture.
17024 * target.h (struct target_ops) <thread_architecture>: Likewise.
17025
48189bec
HD
170262020-01-01 Hannes Domani <ssbssa@yahoo.de>
17027
17028 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17029
ead1063b
HD
170302020-01-01 Hannes Domani <ssbssa@yahoo.de>
17031
17032 * MAINTAINERS (Write After Approval): Add myself.
17033
e5d78223
JB
170342020-01-01 Joel Brobecker <brobecker@adacore.com>
17035
17036 * gdbarch.sh: Update copyright year range of generated files.
17037
b811d2c2
JB
170382020-01-01 Joel Brobecker <brobecker@adacore.com>
17039
17040 Update copyright year range in all GDB files.
17041
5f4def5c
JB
170422020-01-01 Joel Brobecker <brobecker@adacore.com>
17043
17044 * copyright.py: Convert to Python 3.
17045
51fd4002
JB
170462020-01-01 Joel Brobecker <brobecker@adacore.com>
17047
17048 * copyright.py: Adapt after move of gnulib directory from gdb
17049 directory to toplevel directory.
17050
5fb651f2
JB
170512020-01-01 Joel Brobecker <brobecker@adacore.com>
17052
17053 * copyright.py (main): Exit if run from the wrong directory.
17054
5dd8bf88
JB
170552020-01-01 Joel Brobecker <brobecker@adacore.com>
17056
17057 * top.c (print_gdb_version): Change copyright year to 2020.
17058
9f71dacb 170592020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17060
9f71dacb 17061 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17062
9f71dacb 17063For older changes see ChangeLog-2019.
c906108c
SS
17064\f
17065Local Variables:
17066mode: change-log
17067left-margin: 8
17068fill-column: 74
17069version-control: never
57da7796 17070coding: utf-8
c906108c 17071End:
This page took 3.119666 seconds and 4 git commands to generate.