Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
539d71e8
RA
12020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
2 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
3 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
4 set region.
5
7ce05d21
TV
62020-11-30 Tom de Vries <tdevries@suse.de>
7
8 PR symtab/26905
9 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
10 is_reference parameter.
11 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
12
88b91969
TT
132020-11-30 Tom Tromey <tom@tromey.com>
14
15 * rust-lang.c (rust_op_name): Remove.
16 (exp_descriptor_rust): Update.
17 * parser-defs.h (op_name_standard): Don't declare.
18 (struct exp_descriptor) <op_name>: Remove.
19 * parse.c (exp_descriptor_standard): Update.
20 * opencl-lang.c (exp_descriptor_opencl): Update.
21 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
22 * f-lang.c (op_name_f): Remove.
23 (f_language::exp_descriptor_tab): Update.
24 * expression.h (op_name): Update.
25 * expprint.c (op_name): Rewrite.
26 (op_name_standard): Remove.
27 (dump_raw_expression, dump_subexp): Update.
28 * c-lang.c (exp_descriptor_c): Update.
29 * ax-gdb.c (gen_expr): Update.
30 * ada-lang.c (ada_op_name): Remove.
31 (ada_exp_descriptor): Update.
32
1cd49c43
TT
332020-11-30 Tom Tromey <tom@tromey.com>
34
35 * eval.c (init_array_element): Remove.
36 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
37
96fb9086
HD
382020-11-29 Hannes Domani <ssbssa@yahoo.de>
39
40 PR tui/26973
41 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
42 static locator win info.
43
b4132322
AR
442020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
45
46 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
47 program.
48
3df8c6af
AB
492020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
52 is always initialized.
53
0ae45769
RA
542020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
55 * MAINTAINERS (Write After Approval): Add myself.
56
239ca5e4
PW
572020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
58
59 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
60 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
61
cbfa382a
TT
622020-11-25 Tom Tromey <tom@tromey.com>
63
64 * eval.c (evaluate_subexp_standard): Remove unnecessary
65 variables.
66
af30c400
TT
672020-11-25 Tom Tromey <tom@tromey.com>
68
69 * d-lang.c: Include parser-defs.h.
70 * rust-lang.c: Include parser-defs.h.
71 * c-lang.h: Do not include parser-defs.h.
72
1c64f6cb
SM
732020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * regcache.h (struct cached_reg): Remove typedef.
76
2c20a601
JB
772020-11-24 Joel Brobecker <brobecker@adacore.com>
78
79 * README: Fix the URL of the MPFR library.
80
c609df64
JB
812020-11-24 Joel Brobecker <brobecker@adacore.com>
82
83 * README: Document the --with-libgmp-prefix configure option.
84
fa123c32
JB
852020-11-24 Joel Brobecker <brobecker@adacore.com>
86
87 * NEWS: Add entry documenting support for DWARF-based fixed
88 point types.
89
0fb8bb02
JB
902020-11-24 Joel Brobecker <brobecker@adacore.com>
91
92 * NEWS: Document that building GDB now requires GMP.
93
4afa9fd9
JB
942020-11-24 Joel Brobecker <brobecker@adacore.com>
95
96 * typeprint.c (print_type_scalar): Add handling of
97 TYPE_CODE_FIXED_POINT.
98
af619ce9
JB
992020-11-24 Joel Brobecker <brobecker@adacore.com>
100
101 * valarith.c (fixed_point_binop): Replace the
102 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
103 users accordingly.
104
e6fcee3a
JB
1052020-11-24 Joel Brobecker <brobecker@adacore.com>
106
107 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
108 replacing fixed_point_scaling_factor. All callers updated
109 throughout this project.
110 (fixed_point_scaling_factor): Delete declaration.
111 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
112 fixed_point_scaling_factor. Adjust implementation accordingly.
113
d19937a7
JB
1142020-11-24 Joel Brobecker <brobecker@adacore.com>
115
116 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
117 replacing the fixed_point_type_base_type function. All callers
118 updated throughout this project.
119 (fixed_point_type_base_type): Remove declaration.
120 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
121 fixed_point_type_base_type. Adjust implementation accordingly.
122
2a12c336
JB
1232020-11-24 Joel Brobecker <brobecker@adacore.com>
124
125 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
126 New methods.
127 (INIT_FIXED_POINT_SPECIFIC): Adjust.
128 (TYPE_FIXED_POINT_INFO): Delete macro.
129 (allocate_fixed_point_type_info): Change return type to void.
130 * gdbtypes.c (copy_type_recursive): Replace the use of
131 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
132 (fixed_point_scaling_factor): Likewise.
133 (allocate_fixed_point_type_info): Change return type to void.
134 Adjust implementation accordingly.
135 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
136 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
137
c9f0b43f
JB
1382020-11-24 Joel Brobecker <brobecker@adacore.com>
139
140 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
141 into one single gdb::array_view parameter.
142 (gdb_mpz::write): Likewise.
143 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
144 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
145 into one single gdb::array_view parameter.
146 Adjust implementation accordingly.
147 (gdb_mpz::write): Likewise.
148 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
149 * unittests/gmp-utils-selftests.c: Adapt following changes above.
150 * valarith.c, valops.c, valprint.c, value.c: Likewise.
151
987b6703
JB
1522020-11-24 Joel Brobecker <brobecker@adacore.com>
153
154 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
155 Change return type to std::string. Update all callers.
156 * gmp-utils.c (gmp_string_printf): Likewise.
157
4fbb7cce
JB
1582020-11-24 Joel Brobecker <brobecker@adacore.com>
159
160 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
161 instead of mpq_set_ui to initialize our GMP rational.
162
d6ab69dd
TV
1632020-11-23 Tom de Vries <tdevries@suse.de>
164
165 * debuginfod-support.c (debuginfod_source_query)
166 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
167
dab72643
TT
1682020-11-21 Tom Tromey <tom@tromey.com>
169
170 * breakpoint.c (watchpoint_exp_is_const): Return bool.
171
c0ad05d5
SM
1722020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
175 Pass 2.0 to pow.
176 (gdb_mpz_write_all_from_small): Likewise.
177
a43b29c9
SM
1782020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
179
180 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
181 of abs.
182
ae41200b
NA
1832020-11-20 Nick Alcock <nick.alcock@oracle.com>
184
185 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
186 ctf_arc_open_by_name.
187
139633c3
NA
1882020-11-20 Nick Alcock <nick.alcock@oracle.com>
189
190 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
191 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
192
cbbcd7a7
PA
1932020-11-20 Pedro Alves <pedro@palves.net>
194
195 * language.c (language_arch_info::lookup_primitive_type): Use
196 gdb::function_view instead of gdb::function.
197 (template language_lookup_primitive_type): Rename to ...
198 (language_lookup_primitive_type_1): ... this, and make static.
199 (language_lookup_primitive_type(const struct language_defn *,
200 struct gdbarch *, const char *): Make non-template.
201 (language_lookup_primitive_type(const struct language_defn *,
202 struct gdbarch *, std::function<bool (struct type *)>): Make
203 non-template and use gdb::function_view.
204 * language.h (language_arch_info::lookup_primitive_type): Use
205 gdb::function_view instead of std::function.
206 (language_lookup_primitive_type): No longer template.
207 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
208 lambda instead of a std::function.
209
d5ef21c3
AA
2102020-11-19 Andreas Arnez <arnez@linux.ibm.com>
211
212 PR tdep/26916
213 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
214 and STOCFH.
215
a5adb8f3
SM
2162020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
219
70125a45
SM
2202020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
221
222 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
223 in `loop_cb` parameter.
224 * gdbarch.c: Re-generate.
225 * gdbarch.h: Re-generate.
226 * arch-utils.c (default_read_core_file_mappings): Remove `other`
227 parameter.
228 * arch-utils.h (default_read_core_file_mappings): Likewise.
229 * corelow.c (core_target::build_file_mappings): Likewise.
230 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
231 (linux_core_info_proc_mappings): Likewise.
232
a5c641b5
AB
2332020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
236 * NEWS: Mention new options.
237 * f-array-walker.h: New file.
238 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
239 (repack_array_slices): New static global.
240 (show_repack_array_slices): New function.
241 (fortran_array_slicing_debug): New static global.
242 (show_fortran_array_slicing_debug): New function.
243 (value_f90_subarray): Delete.
244 (skip_undetermined_arglist): Delete.
245 (class fortran_array_repacker_base_impl): New class.
246 (class fortran_lazy_array_repacker_impl): New class.
247 (class fortran_array_repacker_impl): New class.
248 (fortran_value_subarray): Complete rewrite.
249 (set_fortran_list): New static global.
250 (show_fortran_list): Likewise.
251 (_initialize_f_language): Register new commands.
252 (fortran_adjust_dynamic_array_base_address_hack): New function.
253 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
254 Declare.
255 * f-valprint.c: Include 'f-array-walker.h'.
256 (class fortran_array_printer_impl): New class.
257 (f77_print_array_1): Delete.
258 (f77_print_array): Delete.
259 (fortran_print_array): New.
260 (f_value_print_inner): Update to call fortran_print_array.
261 * gdbtypes.c: Include 'f-lang.h'.
262 (resolve_dynamic_type_internal): Call
263 fortran_adjust_dynamic_array_base_address_hack.
264
a15a5258
AB
2652020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * breakpoint.c (struct watch_options): New struct.
268 (watch_option_defs): New static global.
269 (make_watch_options_def_group): New function.
270 (watch_maybe_just_location): Convert option parsing.
271 (watch_command_completer): New function.
272 (_initialize_breakpoint): Build help text using options mechanism.
273
2e362716
AB
2742020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
277 (watch_command_1): Update parameter types. Convert locals to
278 bool.
279 (watch_command_wrapper): Change parameter type.
280 (watch_maybe_just_location): Change locals to bool.
281 (rwatch_command_wrapper): Update parameter type.
282 (awatch_command_wrapper): Update parameter type.
283 * breakpoint.h (watch_command_wrapper): Change parameter type.
284 (rwatch_command_wrapper): Update parameter type.
285 (awatch_command_wrapper): Update parameter type.
286 * eval.c (fetch_subexp_value): Change parameter type.
287 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
288 'false' not '0'.
289 * value.h (fetch_subexp_value): Change parameter type in
290 declaration.
291
b3ff61f8
AB
2922020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
295 skip_spaces.
296
5b7d45d3
KS
2972020-11-18 Keith Seitz <keiths@redhat.com>
298
299 * linux-tdep.c (dump_note_entry_p): Return true instead of
300 checking `filename'.
301
c44191f8
TV
3022020-11-18 Tom de Vries <tdevries@suse.de>
303
304 * debuginfod-support.c (debuginfod_source_query)
305 (debuginfod_debuginfo_query): Also do early exit if
306 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
307
5d8254e1
TV
3082020-11-18 Tom de Vries <tdevries@suse.de>
309
310 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
311 warning.
312
584903d3
SM
3132020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * gdbtypes.h (get_array_bounds): Return bool, adjust some
316 callers. Move doc here.
317 * gdbtypes.c (get_array_bounds): Return bool
318
6f2643db
AB
3192020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
322 assert.
323 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
324 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
325 case to the default.
326
037d7135
AB
3272020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * printcmd.c: Include 'safe-ctype.c'.
330 (skip_over_slash_fmt): New function.
331 (print_command_completer): Call skip_over_slash_fmt.
332 (display_and_x_command_completer): New function.
333 (_initialize_printcmd): Add command completion for 'x' and
334 'display'.
335
2b3cb400
PA
3362020-11-16 Pedro Alves <pedro@palves.net>
337
338 * frame.c (get_prev_frame): Move get_frame_id call from here ...
339 (get_prev_frame_always_1): ... to here.
340 * inline-frame.c (inline_frame_this_id): Mention
341 get_prev_frame_always_1 in comment.
342
b74dbc20
JB
3432020-11-15 Joel Brobecker <brobecker@adacore.com>
344
345 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
346 handling.
347 (value_less): Add fixed-point handling.
348
0a12719e
JB
3492020-11-15 Joel Brobecker <brobecker@adacore.com>
350
351 * eval.c (binop_promote): Add fixed-point type handling.
352 * valarith.c (fixed_point_binop): New function.
353 (scalar_binop): Add fixed-point type handling.
354 (value_neg): Add fixed-point type handling.
355 * valops.c (value_cast_to_fixed_point): New function.
356 (value_cast): Add fixed-point type handling.
357
0c9150e4
JB
3582020-11-15 Joel Brobecker <brobecker@adacore.com>
359
360 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
361 range types.
362 * c-typeprint.c (c_type_print_varspec_prefix)
363 (c_type_print_varspec_suffix, c_type_print_base_1): Add
364 TYPE_CODE_FIXED_POINT handling.
365 * p-typeprint.c (pascal_type_print_varspec_prefix)
366 (pascal_type_print_varspec_suffix): Likewise.
367 * typeprint.c (print_type_fixed_point): New function.
368 * typeprint.h (print_type_fixed_point): Add declaration.
369
b26daff9
JB
3702020-11-15 Joel Brobecker <brobecker@adacore.com>
371
372 * printcmd.c (print_scalar_formatted): Add fixed-point type
373 handling when options->format is set.
374
09584414
JB
3752020-11-15 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
378 * dwarf2/read.c (get_dwarf2_rational_constant)
379 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
380 (has_zero_over_zero_small_attribute): New functions.
381 read_base_type, set_die_type): Add fixed-point type handling.
382 * gdb-gdb.py.in: Add fixed-point type handling.
383 * gdbtypes.c: #include "gmp-utils.h".
384 (create_range_type, set_type_code): Add fixed-point type handling.
385 (init_fixed_point_type): New function.
386 (is_integral_type, is_scalar_type): Add fixed-point type handling.
387 (print_fixed_point_type_info): New function.
388 (recursive_dump_type, copy_type_recursive): Add fixed-point type
389 handling.
390 (fixed_point_type_storage): New typedef.
391 (fixed_point_objfile_key): New static global.
392 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
393 (fixed_point_type_base_type, fixed_point_scaling_factor): New
394 functions.
395 * gdbtypes.h: #include "gmp-utils.h".
396 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
397 (union type_specific) <fixed_point_info>: New field.
398 (struct fixed_point_type_info): New struct.
399 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
400 (init_fixed_point_type, is_fixed_point_type)
401 (fixed_point_type_base_type, fixed_point_scaling_factor)
402 (allocate_fixed_point_type_info): Add declarations.
403 * valprint.c (generic_val_print_fixed_point): New function.
404 (generic_value_print): Add fixed-point type handling.
405 * value.c (value_as_address, unpack_long): Add fixed-point type
406 handling.
407
e55c6530
JB
4082020-11-15 Joel Brobecker <brobecker@adacore.com>
409
410 * utils.h (uinteger_pow): Add declaration.
411 * utils.c (uinteger_pow): Moved here (without changes)...
412 * valarith.c (uinteger_pow): ... from here.
413
b34c74ab
JB
4142020-11-15 Joel Brobecker <brobecker@adacore.com>
415
40d9d2fd 416 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
417 * unittests/gmp-utils-selftests.c: New file.
418 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
419 unittests/gmp-utils-selftests.c.
420 (COMMON_SFILES) Add gmp-utils.c.
421 (HFILES_NO_SRCDIR): Add gmp-utils.h.
422
1b4ac058
JB
4232020-11-15 Joel Brobecker <brobecker@adacore.com>
424
425 * configure.ac: Generate an error if a usable GMP library
426 could not be found.
427 * configure: Regenerate.
428
2c947d9b
JB
4292020-11-15 Joel Brobecker <brobecker@adacore.com>
430
431 * configure.ac: Add support for --with-libgmp-prefix.
432 * Makefile.in (LIBGMP): New variable.
433 (CLIBS): Include $(LIBGMP).
434 * configure, config.in: Regenerate
435
9dd02fc0
AB
4362020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 PR cli/26879
439 * f-exp.y (COMPLETE): New token.
440 (exp): Two new rules for tab-completion.
441 (saw_name_at_eof): New static global.
442 (last_was_structop): Likewise.
443 (yylex): Set new variables, and return COMPLETE token at the end
444 of the input stream in some cases.
445
758cb810
TT
4462020-11-14 Tom Tromey <tom@tromey.com>
447
448 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
449
749065b7
TT
4502020-11-14 Tom Tromey <tom@tromey.com>
451
452 * opencl-lang.c (opencl_component_ref): Make "comps" const.
453
2c5b1849
SM
4542020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
455
456 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
457
e8b2f0d9
TT
4582020-11-13 Tom Tromey <tom@tromey.com>
459
460 * c-lang.c (convert_ucn, convert_octal, convert_hex)
461 (convert_escape, parse_one_string): Constify.
462
25f4c262
KS
4632020-11-13 Keith Seitz <keiths@redhat.com>
464
465 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
466 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
467 outside of ELF segments" warning for debugin
468
9d3ab915
KS
4692020-11-13 Keith Seitz <keiths@redhat.com>
470
471 PR gdb/23034
472 * elfread.c (elf_symfile_segments): Output a BFD file name
473 for the "Loadable section ... outside of ELF segments" warning.
474
9ecab40c
SM
4752020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
476
477 PR gdb/26835
478 * arm-tdep.c (class arm_instruction_reader): New.
479 (target_arm_instruction_reader): New.
480 (arm_analyze_prologue): Add instruction reader parameter and use
481 it. Use arm_expand_immediate.
482 (class target_arm_instruction_reader): Adjust.
483 (arm_skip_prologue): Adjust.
484 (arm_expand_immediate): New.
485 (arm_scan_prologue): Adjust.
486 (arm_analyze_prologue_test): New.
487 (class test_arm_instruction_reader): New.
488
5a7cf527
AB
4892020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * f-lang.c (fortran_argument_convert): Add declaration. Add
492 header comment, taken from f-lang.h. Make static.
493 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
494 (fortran_argument_convert): Delete declaration.
495
7bea47f0
AB
4962020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * ada-exp.y (find_primitive_type): Make parameter const.
499 * ada-lang.c (enum ada_primitive_types): Delete.
500 (ada_language::language_arch_info): Update.
501 * c-lang.c (enum c_primitive_types): Delete.
502 (c_language_arch_info): Update.
503 (enum cplus_primitive_types): Delete.
504 (cplus_language::language_arch_info): Update.
505 * d-lang.c (enum d_primitive_types): Delete.
506 (d_language::language_arch_info): Update.
507 * f-lang.c (enum f_primitive_types): Delete.
508 (f_language::language_arch_info): Update.
509 * go-lang.c (enum go_primitive_types): Delete.
510 (go_language::language_arch_info): Update.
511 * language.c (auto_or_unknown_language::language_arch_info):
512 Update.
513 (language_gdbarch_post_init): Use obstack_new, use array indexing.
514 (language_string_char_type): Add header comment, call function in
515 language_arch_info.
516 (language_bool_type): Likewise
517 (language_arch_info::bool_type): Define.
518 (language_lookup_primitive_type_1): Delete.
519 (language_lookup_primitive_type): Rewrite as a templated function
520 to call function in language_arch_info, then instantiate twice.
521 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
522 (language_arch_info::lookup_primitive_type_and_symbol): Define.
523 (language_arch_info::lookup_primitive_type): Define twice with
524 different signatures.
525 (language_arch_info::lookup_primitive_type_as_symbol): Define.
526 (language_lookup_primitive_type_as_symbol): Rewrite to call a
527 member function in language_arch_info.
528 * language.h (language_arch_info): Complete rewrite.
529 (language_lookup_primitive_type): Make templated.
530 * m2-lang.c (enum m2_primitive_types): Delete.
531 (m2_language::language_arch_info): Update.
532 * opencl-lang.c (OCL_P_TYPE): Delete.
533 (enum opencl_primitive_types): Delete.
534 (opencl_type_data): Delete.
535 (builtin_opencl_type): Delete.
536 (lookup_opencl_vector_type): Update.
537 (opencl_language::language_arch_info): Update, lots of content
538 moved from...
539 (build_opencl_types): ...here. This function is now deleted.
540 (_initialize_opencl_language): Delete.
541 * p-lang.c (enum pascal_primitive_types): Delete.
542 (pascal_language::language_arch_info): Update.
543 * rust-lang.c (enum rust_primitive_types): Delete.
544 (rust_language::language_arch_info): Update.
545
bf6e5d01
SM
5462020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
549 dwarf2_queue_guard.
550
1350c3b4
SM
5512020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
554 comment.
555
6f738b01
SM
5562020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * dwarf2/read.c (dwarf_read_debug_printf,
559 dwarf_read_debug_printf_v): New macros, use throughout the file.
560
10c19fad
SV
5612020-11-12 Shahab Vahedi <shahab@synopsys.com>
562
563 * arc-linux-tdep.c (collect_register): Populate "eret" by
564 "pc" value from the regcache when asked for "pc" value.
565
1f2624a3
TT
5662020-11-12 Tom Tromey <tom@tromey.com>
567
568 PR rust/26799:
569 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
570 exist.
571
ab33b152
AB
5722020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * features/Makefile (XMLTOC): Add rx.xml.
575 (FEATURE_XMLFILES): Remove rx.xml.
576 (FEATURE_CFILES rule): Pass '-single-feature' flag.
577 * features/rx.c: Regenerate.
578 * features/rx.xml: Wrap in `target` tags, and reindent.
579 * target-descriptions.c (struct maint_print_c_tdesc_options): New
580 structure.
581 (maint_print_c_tdesc_opt_def): New typedef.
582 (maint_print_c_tdesc_opt_defs): New static global.
583 (make_maint_print_c_tdesc_options_def_group): New function.
584 (maint_print_c_tdesc_cmd): Make use of command line flags, only
585 print single feature C file for target descriptions containing a
586 single feature.
587 (maint_print_c_tdesc_cmd_completer): New function.
588 (_initialize_target_descriptions): Update call to register command
589 completer, and include command line flag in help text.
590
550820e1
AB
5912020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
594 numbers.
595 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
596 enum values.
597
baf20f76
TT
5982020-11-10 Tom Tromey <tom@tromey.com>
599
600 * value.h (internalvar_name): Update.
601 * value.c (internalvar_name): Make return type const.
602
caaece0e
TT
6032020-11-10 Tom Tromey <tom@tromey.com>
604
605 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
606 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
607 const.
608
8e20b4be
TT
6092020-11-10 Tom Tromey <tom@tromey.com>
610
611 * objc-lang.h (value_nsstring): Update.
612 * objc-lang.c (value_nsstring): Make "ptr" const.
613
86775fab
AB
6142020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * expprint.c (print_subexp_funcall): Increment expression position
617 after reading argument count.
618 * f-lang.c (print_subexp_f): Skip over opcode before calling
619 common function.
620 (dump_subexp_body_f): Likewise.
621
3fed4c0b
RG
6222020-11-06 Romain Geissler <romain.geissler@amadeus.com>
623
624 PR python/26832
625 * configure: Regenerate.
626 * configure.ac: Check for python modules ctypes instead of
627 itertools.
628
ac3d4064
PA
6292020-11-06 Pedro Alves <pedro@palves.net>
630
631 * macroexp.c (struct macro_buffer): Split in two classes. Add
632 uses adjusted.
633 (struct shared_macro_buffer): New, factored out from struct
634 macro_buffer.
635 (struct growable_macro_buffer): New, factored out from struct
636 macro_buffer.
637 (set_token, get_comment, get_identifier, get_pp_number)
638 (get_character_constant, get_string_literal, get_punctuator)
639 (get_next_token_for_substitution): Constify parameters.
640 (substitute_args): Constify locals.
641
606decb2
TT
6422020-11-05 Tom Tromey <tom@tromey.com>
643
644 * dwarf2/read.c (read_cutu_die_from_dwo)
645 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
646 (build_type_psymtabs_1): Update.
647 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
648 parameter.
649 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
650 Don't read section. Add assert.
651
9c91c725
TT
6522020-11-04 Tom Tromey <tromey@adacore.com>
653
654 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
655
8d9fd3a1
TT
6562020-11-04 Tom Tromey <tromey@adacore.com>
657
658 * ada-typeprint.c (ada_print_type): Handle __T types.
659
d8f62e84
TT
6602020-11-04 Tom Tromey <tromey@adacore.com>
661
662 * dwarf2/read.c (add_partial_symbol, process_die):
663 Handle DW_TAG_array_type.
664 (is_type_tag_for_partial): Add "lang" parameter.
665 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
666
7ff5b937
TT
6672020-11-04 Tom Tromey <tromey@adacore.com>
668
669 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
670
10f6a3ad
TT
6712020-11-04 Tom Tromey <tromey@adacore.com>
672
673 * dwarf2/read.c (read_array_type): Only apply stride to innermost
674 array.
675
b72795a8
TT
6762020-11-04 Tom Tromey <tromey@adacore.com>
677
678 * gdbtypes.c (update_static_array_size): Handle bit stride.
679
24aa1b02
TT
6802020-11-04 Tom Tromey <tromey@adacore.com>
681
682 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
683
c9a28cbe
TT
6842020-11-04 Tom Tromey <tromey@adacore.com>
685
686 * ada-lang.c (ada_is_any_packed_array_type): New function.
687 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
688
57567375
TT
6892020-11-04 Tom Tromey <tromey@adacore.com>
690
691 * dwarf2/read.c (recognize_bound_expression)
692 (quirk_ada_thick_pointer): New functions.
693 (read_array_type): Call quirk_ada_thick_pointer.
694 (set_die_type): Add "skip_data_location" parameter.
695 (quirk_ada_thick_pointer): New function.
696 (process_structure_scope): Call quirk_ada_thick_pointer.
697 * ada-lang.c (ada_is_unconstrained_packed_array_type)
698 (decode_packed_array_bitsize): Handle thick pointers without
699 parallel types.
700 (ada_is_gnat_encoded_packed_array_type): Rename from
701 ada_is_packed_array_type.
702 (ada_is_constrained_packed_array_type): Update.
703 * ada-valprint.c (ada_val_print_gnat_array): Remove.
704 (ada_value_print_1): Use ada_get_decoded_value.
705
a7400e44
TT
7062020-11-04 Tom Tromey <tromey@adacore.com>
707
708 * ada-lang.c (recursively_update_array_bitsize): New function.
709 (decode_constrained_packed_array_type): Call it.
710
75fd6a26
TT
7112020-11-04 Tom Tromey <tromey@adacore.com>
712
713 * ada-lang.c (to_fixed_array_type): Error if
714 decode_constrained_packed_array_type returns NULL.
715
93f9561e
TT
7162020-11-04 Tom Tromey <tromey@adacore.com>
717
718 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
719
257e02d8
TT
7202020-11-02 Tom Tromey <tromey@adacore.com>
721
722 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
723 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
724 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
725 * amd64-ravenscar-thread.c: New file.
726 * amd64-ravenscar-thread.h: New file.
727 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
728 * configure.tgt (amd64_tobjs): Add ravenscar objects.
729
74d877e5
AB
7302020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * main.c (execute_cmdargs): New function.
733 (captured_main_1): Make use of execute_cmdargs.
734
64aaad63
AB
7352020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * NEWS: Mention changes to config file search path.
738 * main.c
739
5b3d3560
TT
7402020-11-02 Tom Tromey <tromey@adacore.com>
741
742 * python/python.c: Consolidate two HAVE_PYTHON blocks.
743 (python_GdbModuleDef): Move earlier. Now static.
744 (do_start_initialization): Consolidate some IS_PY3K blocks.
745
dda83cd7
SM
7462020-11-02 Simon Marchi <simon.marchi@efficios.com>
747
748 * aarch64-linux-tdep.c: Fix indentation.
749 * aarch64-ravenscar-thread.c: Fix indentation.
750 * aarch64-tdep.c: Fix indentation.
751 * aarch64-tdep.h: Fix indentation.
752 * ada-lang.c: Fix indentation.
753 * ada-lang.h: Fix indentation.
754 * ada-tasks.c: Fix indentation.
755 * ada-typeprint.c: Fix indentation.
756 * ada-valprint.c: Fix indentation.
757 * ada-varobj.c: Fix indentation.
758 * addrmap.c: Fix indentation.
759 * addrmap.h: Fix indentation.
760 * agent.c: Fix indentation.
761 * aix-thread.c: Fix indentation.
762 * alpha-bsd-nat.c: Fix indentation.
763 * alpha-linux-tdep.c: Fix indentation.
764 * alpha-mdebug-tdep.c: Fix indentation.
765 * alpha-nbsd-tdep.c: Fix indentation.
766 * alpha-obsd-tdep.c: Fix indentation.
767 * alpha-tdep.c: Fix indentation.
768 * amd64-bsd-nat.c: Fix indentation.
769 * amd64-darwin-tdep.c: Fix indentation.
770 * amd64-linux-nat.c: Fix indentation.
771 * amd64-linux-tdep.c: Fix indentation.
772 * amd64-nat.c: Fix indentation.
773 * amd64-obsd-tdep.c: Fix indentation.
774 * amd64-tdep.c: Fix indentation.
775 * amd64-windows-tdep.c: Fix indentation.
776 * annotate.c: Fix indentation.
777 * arc-tdep.c: Fix indentation.
778 * arch-utils.c: Fix indentation.
779 * arch/arm-get-next-pcs.c: Fix indentation.
780 * arch/arm.c: Fix indentation.
781 * arm-linux-nat.c: Fix indentation.
782 * arm-linux-tdep.c: Fix indentation.
783 * arm-nbsd-tdep.c: Fix indentation.
784 * arm-pikeos-tdep.c: Fix indentation.
785 * arm-tdep.c: Fix indentation.
786 * arm-tdep.h: Fix indentation.
787 * arm-wince-tdep.c: Fix indentation.
788 * auto-load.c: Fix indentation.
789 * auxv.c: Fix indentation.
790 * avr-tdep.c: Fix indentation.
791 * ax-gdb.c: Fix indentation.
792 * ax-general.c: Fix indentation.
793 * bfin-linux-tdep.c: Fix indentation.
794 * block.c: Fix indentation.
795 * block.h: Fix indentation.
796 * blockframe.c: Fix indentation.
797 * bpf-tdep.c: Fix indentation.
798 * break-catch-sig.c: Fix indentation.
799 * break-catch-syscall.c: Fix indentation.
800 * break-catch-throw.c: Fix indentation.
801 * breakpoint.c: Fix indentation.
802 * breakpoint.h: Fix indentation.
803 * bsd-uthread.c: Fix indentation.
804 * btrace.c: Fix indentation.
805 * build-id.c: Fix indentation.
806 * buildsym-legacy.h: Fix indentation.
807 * buildsym.c: Fix indentation.
808 * c-typeprint.c: Fix indentation.
809 * c-valprint.c: Fix indentation.
810 * c-varobj.c: Fix indentation.
811 * charset.c: Fix indentation.
812 * cli/cli-cmds.c: Fix indentation.
813 * cli/cli-decode.c: Fix indentation.
814 * cli/cli-decode.h: Fix indentation.
815 * cli/cli-script.c: Fix indentation.
816 * cli/cli-setshow.c: Fix indentation.
817 * coff-pe-read.c: Fix indentation.
818 * coffread.c: Fix indentation.
819 * compile/compile-cplus-types.c: Fix indentation.
820 * compile/compile-object-load.c: Fix indentation.
821 * compile/compile-object-run.c: Fix indentation.
822 * completer.c: Fix indentation.
823 * corefile.c: Fix indentation.
824 * corelow.c: Fix indentation.
825 * cp-abi.h: Fix indentation.
826 * cp-namespace.c: Fix indentation.
827 * cp-support.c: Fix indentation.
828 * cp-valprint.c: Fix indentation.
829 * cris-linux-tdep.c: Fix indentation.
830 * cris-tdep.c: Fix indentation.
831 * darwin-nat-info.c: Fix indentation.
832 * darwin-nat.c: Fix indentation.
833 * darwin-nat.h: Fix indentation.
834 * dbxread.c: Fix indentation.
835 * dcache.c: Fix indentation.
836 * disasm.c: Fix indentation.
837 * dtrace-probe.c: Fix indentation.
838 * dwarf2/abbrev.c: Fix indentation.
839 * dwarf2/attribute.c: Fix indentation.
840 * dwarf2/expr.c: Fix indentation.
841 * dwarf2/frame.c: Fix indentation.
842 * dwarf2/index-cache.c: Fix indentation.
843 * dwarf2/index-write.c: Fix indentation.
844 * dwarf2/line-header.c: Fix indentation.
845 * dwarf2/loc.c: Fix indentation.
846 * dwarf2/macro.c: Fix indentation.
847 * dwarf2/read.c: Fix indentation.
848 * dwarf2/read.h: Fix indentation.
849 * elfread.c: Fix indentation.
850 * eval.c: Fix indentation.
851 * event-top.c: Fix indentation.
852 * exec.c: Fix indentation.
853 * exec.h: Fix indentation.
854 * expprint.c: Fix indentation.
855 * f-lang.c: Fix indentation.
856 * f-typeprint.c: Fix indentation.
857 * f-valprint.c: Fix indentation.
858 * fbsd-nat.c: Fix indentation.
859 * fbsd-tdep.c: Fix indentation.
860 * findvar.c: Fix indentation.
861 * fork-child.c: Fix indentation.
862 * frame-unwind.c: Fix indentation.
863 * frame-unwind.h: Fix indentation.
864 * frame.c: Fix indentation.
865 * frv-linux-tdep.c: Fix indentation.
866 * frv-tdep.c: Fix indentation.
867 * frv-tdep.h: Fix indentation.
868 * ft32-tdep.c: Fix indentation.
869 * gcore.c: Fix indentation.
870 * gdb_bfd.c: Fix indentation.
871 * gdbarch.sh: Fix indentation.
872 * gdbarch.c: Re-generate
873 * gdbarch.h: Re-generate.
874 * gdbcore.h: Fix indentation.
875 * gdbthread.h: Fix indentation.
876 * gdbtypes.c: Fix indentation.
877 * gdbtypes.h: Fix indentation.
878 * glibc-tdep.c: Fix indentation.
879 * gnu-nat.c: Fix indentation.
880 * gnu-nat.h: Fix indentation.
881 * gnu-v2-abi.c: Fix indentation.
882 * gnu-v3-abi.c: Fix indentation.
883 * go32-nat.c: Fix indentation.
884 * guile/guile-internal.h: Fix indentation.
885 * guile/scm-cmd.c: Fix indentation.
886 * guile/scm-frame.c: Fix indentation.
887 * guile/scm-iterator.c: Fix indentation.
888 * guile/scm-math.c: Fix indentation.
889 * guile/scm-ports.c: Fix indentation.
890 * guile/scm-pretty-print.c: Fix indentation.
891 * guile/scm-value.c: Fix indentation.
892 * h8300-tdep.c: Fix indentation.
893 * hppa-linux-nat.c: Fix indentation.
894 * hppa-linux-tdep.c: Fix indentation.
895 * hppa-nbsd-nat.c: Fix indentation.
896 * hppa-nbsd-tdep.c: Fix indentation.
897 * hppa-obsd-nat.c: Fix indentation.
898 * hppa-tdep.c: Fix indentation.
899 * hppa-tdep.h: Fix indentation.
900 * i386-bsd-nat.c: Fix indentation.
901 * i386-darwin-nat.c: Fix indentation.
902 * i386-darwin-tdep.c: Fix indentation.
903 * i386-dicos-tdep.c: Fix indentation.
904 * i386-gnu-nat.c: Fix indentation.
905 * i386-linux-nat.c: Fix indentation.
906 * i386-linux-tdep.c: Fix indentation.
907 * i386-nto-tdep.c: Fix indentation.
908 * i386-obsd-tdep.c: Fix indentation.
909 * i386-sol2-nat.c: Fix indentation.
910 * i386-tdep.c: Fix indentation.
911 * i386-tdep.h: Fix indentation.
912 * i386-windows-tdep.c: Fix indentation.
913 * i387-tdep.c: Fix indentation.
914 * i387-tdep.h: Fix indentation.
915 * ia64-libunwind-tdep.c: Fix indentation.
916 * ia64-libunwind-tdep.h: Fix indentation.
917 * ia64-linux-nat.c: Fix indentation.
918 * ia64-linux-tdep.c: Fix indentation.
919 * ia64-tdep.c: Fix indentation.
920 * ia64-tdep.h: Fix indentation.
921 * ia64-vms-tdep.c: Fix indentation.
922 * infcall.c: Fix indentation.
923 * infcmd.c: Fix indentation.
924 * inferior.c: Fix indentation.
925 * infrun.c: Fix indentation.
926 * iq2000-tdep.c: Fix indentation.
927 * language.c: Fix indentation.
928 * linespec.c: Fix indentation.
929 * linux-fork.c: Fix indentation.
930 * linux-nat.c: Fix indentation.
931 * linux-tdep.c: Fix indentation.
932 * linux-thread-db.c: Fix indentation.
933 * lm32-tdep.c: Fix indentation.
934 * m2-lang.c: Fix indentation.
935 * m2-typeprint.c: Fix indentation.
936 * m2-valprint.c: Fix indentation.
937 * m32c-tdep.c: Fix indentation.
938 * m32r-linux-tdep.c: Fix indentation.
939 * m32r-tdep.c: Fix indentation.
940 * m68hc11-tdep.c: Fix indentation.
941 * m68k-bsd-nat.c: Fix indentation.
942 * m68k-linux-nat.c: Fix indentation.
943 * m68k-linux-tdep.c: Fix indentation.
944 * m68k-tdep.c: Fix indentation.
945 * machoread.c: Fix indentation.
946 * macrocmd.c: Fix indentation.
947 * macroexp.c: Fix indentation.
948 * macroscope.c: Fix indentation.
949 * macrotab.c: Fix indentation.
950 * macrotab.h: Fix indentation.
951 * main.c: Fix indentation.
952 * mdebugread.c: Fix indentation.
953 * mep-tdep.c: Fix indentation.
954 * mi/mi-cmd-catch.c: Fix indentation.
955 * mi/mi-cmd-disas.c: Fix indentation.
956 * mi/mi-cmd-env.c: Fix indentation.
957 * mi/mi-cmd-stack.c: Fix indentation.
958 * mi/mi-cmd-var.c: Fix indentation.
959 * mi/mi-cmds.c: Fix indentation.
960 * mi/mi-main.c: Fix indentation.
961 * mi/mi-parse.c: Fix indentation.
962 * microblaze-tdep.c: Fix indentation.
963 * minidebug.c: Fix indentation.
964 * minsyms.c: Fix indentation.
965 * mips-linux-nat.c: Fix indentation.
966 * mips-linux-tdep.c: Fix indentation.
967 * mips-nbsd-tdep.c: Fix indentation.
968 * mips-tdep.c: Fix indentation.
969 * mn10300-linux-tdep.c: Fix indentation.
970 * mn10300-tdep.c: Fix indentation.
971 * moxie-tdep.c: Fix indentation.
972 * msp430-tdep.c: Fix indentation.
973 * namespace.h: Fix indentation.
974 * nat/fork-inferior.c: Fix indentation.
975 * nat/gdb_ptrace.h: Fix indentation.
976 * nat/linux-namespaces.c: Fix indentation.
977 * nat/linux-osdata.c: Fix indentation.
978 * nat/netbsd-nat.c: Fix indentation.
979 * nat/x86-dregs.c: Fix indentation.
980 * nbsd-nat.c: Fix indentation.
981 * nbsd-tdep.c: Fix indentation.
982 * nios2-linux-tdep.c: Fix indentation.
983 * nios2-tdep.c: Fix indentation.
984 * nto-procfs.c: Fix indentation.
985 * nto-tdep.c: Fix indentation.
986 * objfiles.c: Fix indentation.
987 * objfiles.h: Fix indentation.
988 * opencl-lang.c: Fix indentation.
989 * or1k-tdep.c: Fix indentation.
990 * osabi.c: Fix indentation.
991 * osabi.h: Fix indentation.
992 * osdata.c: Fix indentation.
993 * p-lang.c: Fix indentation.
994 * p-typeprint.c: Fix indentation.
995 * p-valprint.c: Fix indentation.
996 * parse.c: Fix indentation.
997 * ppc-linux-nat.c: Fix indentation.
998 * ppc-linux-tdep.c: Fix indentation.
999 * ppc-nbsd-nat.c: Fix indentation.
1000 * ppc-nbsd-tdep.c: Fix indentation.
1001 * ppc-obsd-nat.c: Fix indentation.
1002 * ppc-ravenscar-thread.c: Fix indentation.
1003 * ppc-sysv-tdep.c: Fix indentation.
1004 * ppc64-tdep.c: Fix indentation.
1005 * printcmd.c: Fix indentation.
1006 * proc-api.c: Fix indentation.
1007 * producer.c: Fix indentation.
1008 * producer.h: Fix indentation.
1009 * prologue-value.c: Fix indentation.
1010 * prologue-value.h: Fix indentation.
1011 * psymtab.c: Fix indentation.
1012 * python/py-arch.c: Fix indentation.
1013 * python/py-bpevent.c: Fix indentation.
1014 * python/py-event.c: Fix indentation.
1015 * python/py-event.h: Fix indentation.
1016 * python/py-finishbreakpoint.c: Fix indentation.
1017 * python/py-frame.c: Fix indentation.
1018 * python/py-framefilter.c: Fix indentation.
1019 * python/py-inferior.c: Fix indentation.
1020 * python/py-infthread.c: Fix indentation.
1021 * python/py-objfile.c: Fix indentation.
1022 * python/py-prettyprint.c: Fix indentation.
1023 * python/py-registers.c: Fix indentation.
1024 * python/py-signalevent.c: Fix indentation.
1025 * python/py-stopevent.c: Fix indentation.
1026 * python/py-stopevent.h: Fix indentation.
1027 * python/py-threadevent.c: Fix indentation.
1028 * python/py-tui.c: Fix indentation.
1029 * python/py-unwind.c: Fix indentation.
1030 * python/py-value.c: Fix indentation.
1031 * python/py-xmethods.c: Fix indentation.
1032 * python/python-internal.h: Fix indentation.
1033 * python/python.c: Fix indentation.
1034 * ravenscar-thread.c: Fix indentation.
1035 * record-btrace.c: Fix indentation.
1036 * record-full.c: Fix indentation.
1037 * record.c: Fix indentation.
1038 * reggroups.c: Fix indentation.
1039 * regset.h: Fix indentation.
1040 * remote-fileio.c: Fix indentation.
1041 * remote.c: Fix indentation.
1042 * reverse.c: Fix indentation.
1043 * riscv-linux-tdep.c: Fix indentation.
1044 * riscv-ravenscar-thread.c: Fix indentation.
1045 * riscv-tdep.c: Fix indentation.
1046 * rl78-tdep.c: Fix indentation.
1047 * rs6000-aix-tdep.c: Fix indentation.
1048 * rs6000-lynx178-tdep.c: Fix indentation.
1049 * rs6000-nat.c: Fix indentation.
1050 * rs6000-tdep.c: Fix indentation.
1051 * rust-lang.c: Fix indentation.
1052 * rx-tdep.c: Fix indentation.
1053 * s12z-tdep.c: Fix indentation.
1054 * s390-linux-tdep.c: Fix indentation.
1055 * score-tdep.c: Fix indentation.
1056 * ser-base.c: Fix indentation.
1057 * ser-mingw.c: Fix indentation.
1058 * ser-uds.c: Fix indentation.
1059 * ser-unix.c: Fix indentation.
1060 * serial.c: Fix indentation.
1061 * sh-linux-tdep.c: Fix indentation.
1062 * sh-nbsd-tdep.c: Fix indentation.
1063 * sh-tdep.c: Fix indentation.
1064 * skip.c: Fix indentation.
1065 * sol-thread.c: Fix indentation.
1066 * solib-aix.c: Fix indentation.
1067 * solib-darwin.c: Fix indentation.
1068 * solib-frv.c: Fix indentation.
1069 * solib-svr4.c: Fix indentation.
1070 * solib.c: Fix indentation.
1071 * source.c: Fix indentation.
1072 * sparc-linux-tdep.c: Fix indentation.
1073 * sparc-nbsd-tdep.c: Fix indentation.
1074 * sparc-obsd-tdep.c: Fix indentation.
1075 * sparc-ravenscar-thread.c: Fix indentation.
1076 * sparc-tdep.c: Fix indentation.
1077 * sparc64-linux-tdep.c: Fix indentation.
1078 * sparc64-nbsd-tdep.c: Fix indentation.
1079 * sparc64-obsd-tdep.c: Fix indentation.
1080 * sparc64-tdep.c: Fix indentation.
1081 * stabsread.c: Fix indentation.
1082 * stack.c: Fix indentation.
1083 * stap-probe.c: Fix indentation.
1084 * stubs/ia64vms-stub.c: Fix indentation.
1085 * stubs/m32r-stub.c: Fix indentation.
1086 * stubs/m68k-stub.c: Fix indentation.
1087 * stubs/sh-stub.c: Fix indentation.
1088 * stubs/sparc-stub.c: Fix indentation.
1089 * symfile-mem.c: Fix indentation.
1090 * symfile.c: Fix indentation.
1091 * symfile.h: Fix indentation.
1092 * symmisc.c: Fix indentation.
1093 * symtab.c: Fix indentation.
1094 * symtab.h: Fix indentation.
1095 * target-float.c: Fix indentation.
1096 * target.c: Fix indentation.
1097 * target.h: Fix indentation.
1098 * tic6x-tdep.c: Fix indentation.
1099 * tilegx-linux-tdep.c: Fix indentation.
1100 * tilegx-tdep.c: Fix indentation.
1101 * top.c: Fix indentation.
1102 * tracefile-tfile.c: Fix indentation.
1103 * tracepoint.c: Fix indentation.
1104 * tui/tui-disasm.c: Fix indentation.
1105 * tui/tui-io.c: Fix indentation.
1106 * tui/tui-regs.c: Fix indentation.
1107 * tui/tui-stack.c: Fix indentation.
1108 * tui/tui-win.c: Fix indentation.
1109 * tui/tui-winsource.c: Fix indentation.
1110 * tui/tui.c: Fix indentation.
1111 * typeprint.c: Fix indentation.
1112 * ui-out.h: Fix indentation.
1113 * unittests/copy_bitwise-selftests.c: Fix indentation.
1114 * unittests/memory-map-selftests.c: Fix indentation.
1115 * utils.c: Fix indentation.
1116 * v850-tdep.c: Fix indentation.
1117 * valarith.c: Fix indentation.
1118 * valops.c: Fix indentation.
1119 * valprint.c: Fix indentation.
1120 * valprint.h: Fix indentation.
1121 * value.c: Fix indentation.
1122 * value.h: Fix indentation.
1123 * varobj.c: Fix indentation.
1124 * vax-tdep.c: Fix indentation.
1125 * windows-nat.c: Fix indentation.
1126 * windows-tdep.c: Fix indentation.
1127 * xcoffread.c: Fix indentation.
1128 * xml-syscall.c: Fix indentation.
1129 * xml-tdesc.c: Fix indentation.
1130 * xstormy16-tdep.c: Fix indentation.
1131 * xtensa-config.c: Fix indentation.
1132 * xtensa-linux-nat.c: Fix indentation.
1133 * xtensa-linux-tdep.c: Fix indentation.
1134 * xtensa-tdep.c: Fix indentation.
1135
e1f57067
AB
11362020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1137 Craig Blackmore <craig.blackmore@embecosm.com>
1138
1139 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1140 as an unsigned value.
1141
ae7754b2
TT
11422020-11-01 Tom Tromey <tom@tromey.com>
1143
1144 * dbxread.c (dbx_end_psymtab): Update.
1145 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1146 (build_type_psymtabs_reader): Update.
1147 * xcoffread.c (xcoff_end_psymtab): Update.
1148 * ctfread.c (scan_partial_symbols): Update.
1149 * psymtab.c (sort_pst_symbols): Remove.
1150 (partial_symtab::end): Rename from end_psymtab_common. Inline
1151 sort_pst_symbols.
1152 * psympriv.h (struct partial_symtab) <end>: New method.
1153 (end_psymtab_common): Don't declare.
1154
0684bb51
TT
11552020-11-01 Tom Tromey <tom@tromey.com>
1156
1157 * symmisc.c (count_psyms): New function.
1158 (print_objfile_statistics): Use it.
1159 * psymtab.c (append_psymbol_to_list): Remove.
1160 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1161 * objfiles.h (struct objstats) <n_psyms>: Remove.
1162
089002bb
TT
11632020-11-01 Tom Tromey <tom@tromey.com>
1164
1165 * dbxread.c (dbx_end_psymtab): Update.
1166 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1167 (build_type_psymtabs_reader): Update.
1168 * xcoffread.c (xcoff_end_psymtab): Update.
1169 * ctfread.c (scan_partial_symbols): Update.
1170 * psympriv.h (end_psymtab_common): Update.
1171 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1172 (sort_pst_symbols): Likewise.
1173
525454d6
TT
11742020-11-01 Tom Tromey <tom@tromey.com>
1175
1176 * dbxread.c (dbx_symfile_read): Update.
1177 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1178 * xcoffread.c (xcoff_initial_scan): Update.
1179 * psympriv.h (init_psymbol_list): Don't declare.
1180 * psymtab.c (init_psymbol_list): Remove.
1181
60bd1d53
JB
11822020-11-01 Joel Brobecker <brobecker@adacore.com>
1183
1184 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1185 gnat_encoded_fixed_type_info. Update all callers.
1186
db99d0d0
JB
11872020-11-01 Joel Brobecker <brobecker@adacore.com>
1188
1189 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1190 line too long.
1191
75f24e86
JB
11922020-11-01 Joel Brobecker <brobecker@adacore.com>
1193
1194 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1195 cast_from_fixed. Update all callers.
1196 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1197 Update all callers.
1198 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1199 Update all callers.
1200 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1201 ada_scaling_factor.
1202 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1203 to print_gnat_encoded_fixed_point_type.
1204 * ada-valprint.c: Likewise.
1205
4f0469cd
AB
12062020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1209 (debug_prefixed_printf): Add check of debug_displaced flag.
1210 * linux-nat.c (linux_nat_debug_printf): Add check of
1211 debug_linux_nat flag.
1212
17417fb0
SM
12132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * infrun.c (infrun_debug_printf_1): Remove.
1216 (displaced_debug_printf_1): Remove.
1217 (stop_all_threads): Use debug_prefixed_printf.
1218 * infrun.h (infrun_debug_printf_1): Remove.
1219 (infrun_debug_printf): Use debug_prefixed_printf.
1220 (displaced_debug_printf_1): Remove.
1221 (displaced_debug_printf): Use debug_prefixed_printf.
1222 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1223 (linux_nat_debug_printf): Use debug_prefixed_printf.
1224
ad6dba1c
SM
12252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * configure: Re-generate.
1228 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1229 AC_LANG_PROGRAM.
1230
b6fb30ed
SM
12312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * configure: Re-generate.
1234
5164c117
SM
12352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * configure: Re-generate.
1238
864ca435
SM
12392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * configure: Re-generate.
1242
b9442ec1
SM
12432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * configure: Re-generate.
1246
294f2697
SM
12472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * acinclude.m4: Modernize.
1250 * configure: Re-generate.
1251
5593a99a
SM
12522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * configure.ac: Modernize.
1255 * configure: Re-generate.
1256
e41fda1d
SM
12572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1260 * configure: Re-generate.
1261 * configure.ac: Remove AM_PROG_CC_STDC.
1262
91e1a0ed
SM
12632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1266 AC_CANONICAL_SYSTEM.
1267 * configure: Re-generate.
1268
136821d9
SM
12692020-10-30 Simon Marchi <simon.marchi@efficios.com>
1270
1271 * infrun.h (displaced_debug_printf): New macro. Replace
1272 displaced debug prints throughout to use it.
1273 (displaced_debug_printf_1): New declaration.
1274 (displaced_step_dump_bytes): Return string, remove ui_file
1275 parameter, update all callers.
1276 * infrun.c (displaced_debug_printf_1): New function.
1277 (displaced_step_dump_bytes): Return string, remove ui_file
1278 parameter
1279
aa2045e7
SM
12802020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1283
b1ec2735
TT
12842020-10-30 Tom Tromey <tromey@adacore.com>
1285
1286 * Makefile.in (stamp-init): Depend on config.status.
1287
b78b3a29
TBA
12882020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289
1290 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1291
d70bdd3c
PA
12922020-10-30 Pedro Alves <pedro@palves.net>
1293
1294 * thread.c (lookup_selected_frame): Move ...
1295 * frame.c (lookup_selected_frame): ... here.
1296
79952e69
PA
12972020-10-30 Pedro Alves <pedro@palves.net>
1298
1299 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1300 * frame.c
1301 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1302 Use save_selected_frame. Save language as well.
1303 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1304 Use restore_selected_frame, and restore language as well.
1305 (selected_frame_id, selected_frame_level): New.
1306 (selected_frame): Update comments.
1307 (save_selected_frame, restore_selected_frame): New.
1308 (get_selected_frame): Use lookup_selected_frame.
1309 (get_selected_frame_if_set): Delete.
1310 (select_frame): Record selected_frame_level and selected_frame_id.
1311 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1312 fields.
1313 (get_selected_frame): Make 'message' parameter optional.
1314 (get_selected_frame_if_set): Delete declaration.
1315 (select_frame): Update comments.
1316 (save_selected_frame, restore_selected_frame)
1317 (lookup_selected_frame): Declare.
1318 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1319 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1320 New field.
1321 (save_infcall_control_state): Use save_selected_frame.
1322 (restore_selected_frame): Delete.
1323 (restore_infcall_control_state): Use restore_selected_frame.
1324 * stack.c (select_frame_command_core, frame_command_core): Use
1325 get_selected_frame.
1326 * thread.c (restore_selected_frame): Rename to ...
1327 (lookup_selected_frame): ... this and make extern. Select the
1328 current frame if the frame level is -1.
1329 (scoped_restore_current_thread::restore): Also restore the
1330 language.
1331 (scoped_restore_current_thread::~scoped_restore_current_thread):
1332 Don't try/catch.
1333 (scoped_restore_current_thread::scoped_restore_current_thread):
1334 Save the language as well. Use save_selected_frame.
1335
58103c33
SM
13362020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1339 documentation.
1340 * gdbarch.h: Re-generate.
1341
40a53766
SM
13422020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1345 parameter.
1346 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1347 Likewise.
1348 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1349 Likewise.
1350 * arch-utils.c (default_displaced_step_hw_singlestep):
1351 Likewise.
1352 * arch-utils.h (default_displaced_step_hw_singlestep):
1353 Likewise.
1354 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1355 Likewise.
1356 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1357 Likewise.
1358 * gdbarch.c: Re-generate.
1359 * gdbarch.h: Re-generate.
1360 * infrun.c (resume_1): Adjust.
1361
8407f91b
TT
13622020-10-29 Tom Tromey <tom@tromey.com>
1363
1364 * progspace.c (program_space::~program_space): Don't call
1365 exec_close.
1366
5008b3b2
TT
13672020-10-29 Tom Tromey <tom@tromey.com>
1368
1369 * exec.c (exec_target::close): Don't change current program
1370 space.
1371
d9eebde0
TT
13722020-10-29 Tom Tromey <tom@tromey.com>
1373
1374 * symfile.c (add_symbol_file_command): Update.
1375 * exec.c (program_space::add_target_sections): Rename.
1376 * symfile-mem.c (symbol_file_add_from_memory): Update.
1377 * progspace.h (struct program_space) <add_target_sections>:
1378 Declare new overload.
1379 * exec.h (add_target_sections_of_objfile): Don't declare.
1380
3769e227
TT
13812020-10-29 Tom Tromey <tom@tromey.com>
1382
1383 * solib.c (solib_map_sections): Update.
1384 * exec.c (program_space::add_target_sections): Now a method.
1385 (exec_file_attach): Update.
1386 * exec.h (add_target_sections): Don't declare.
1387 * progspace.h (struct program_space) <add_target_sections>:
1388 Declare.
1389
2a3f84af
TT
13902020-10-29 Tom Tromey <tom@tromey.com>
1391
1392 * progspace.h (struct program_space) <remove_target_sections>:
1393 Declare.
1394 * exec.c (program_space::remove_target_sections): Now a method.
1395 * exec.h (remove_target_sections): Don't declare.
1396
004eecfd
TT
13972020-10-29 Tom Tromey <tom@tromey.com>
1398
1399 * inferior.c (delete_inferior): Update.
1400 * progspace.c (program_space::empty): Rename from
1401 program_space_empty_p. Return bool.
1402 * progspace.h (struct program_space) <empty>: New method.
1403 (program_space_empty_p): Don't declare.
1404
e39fb971
TT
14052020-10-29 Tom Tromey <tom@tromey.com>
1406
1407 * progspace.c (program_space::~program_space): Don't call
1408 clear_program_space_solib_cache.
1409 (program_space::clear_solib_cache): Rename from
1410 clear_solib_cache.
1411 * solib.c (handle_solib_event): Update.
1412 * progspace.h (struct program_space) <clear_solib_cache>: New
1413 method.
1414 (clear_program_space_solib_cache): Don't declare.
1415
a42d7dd8
TT
14162020-10-29 Tom Tromey <tom@tromey.com>
1417
1418 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1419 * target.c (info_target_command): Update.
1420 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1421 (symbol_file_clear, reread_symbols): Update.
1422 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1423 * stabsread.c (scan_file_globals): Update.
1424 * solib.c (update_solib_list): Update.
1425 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1426 (svr4_fetch_objfile_link_map, enable_break)
1427 (svr4_relocate_main_executable)
1428 (svr4_iterate_over_objfiles_in_search_order): Update.
1429 * solib-frv.c (lm_base, enable_break)
1430 (frv_relocate_main_executable): Update.
1431 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1432 (frv_fetch_objfile_link_map): Update.
1433 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1434 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1435 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1436 * remote.c (remote_target::get_offsets): Update.
1437 (remote_target::start_remote)
1438 (extended_remote_target::post_attach): Update.
1439 * objfiles.c (entry_point_address_query): Update.
1440 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1441 * minsyms.c (get_symbol_leading_char): Update.
1442 * frame.c (inside_main_func): Update.
1443 * progspace.h (symfile_objfile): Remove macro.
1444
19f6550e
TT
14452020-10-29 Tom Tromey <tom@tromey.com>
1446
1447 * exec.c (exec_file_attach): Update.
1448 * progspace.c (program_space::exec_close): Update.
1449 * progspace.h (struct program_space) <ebfd>: Now a
1450 gdb_bfd_ref_ptr.
1451 <set_exec_bfd>: Change argument type.
1452 <exec_bfd>: Update.
1453
7e10abd1
TT
14542020-10-29 Tom Tromey <tom@tromey.com>
1455
1456 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1457 * symfile.c (reread_symbols): Update.
1458 * symfile-mem.c (add_symbol_file_from_memory_command)
1459 (add_vsyscall_page): Update.
1460 * source-cache.c (source_cache::get_plain_source_lines): Update.
1461 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1462 (svr4_current_sos_direct, svr4_exec_displacement)
1463 (svr4_relocate_main_executable): Update.
1464 (svr4_iterate_over_objfiles_in_search_order): Update.
1465 * solib-frv.c (enable_break2, enable_break): Update.
1466 * solib-dsbt.c (lm_base, enable_break): Update.
1467 * solib-darwin.c (find_program_interpreter)
1468 (darwin_solib_create_inferior_hook): Update.
1469 * sol-thread.c (rw_common, ps_pdmodel): Update.
1470 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1471 * remote.c (compare_sections_command)
1472 (remote_target::trace_set_readonly_regions): Update.
1473 * remote-sim.c (get_sim_inferior_data)
1474 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1475 (gdbsim_target_open, gdbsim_target::files_info): Update.
1476 * exec.h (exec_bfd): Remove macro.
1477 * progspace.c (initialize_progspace): Update.
1478 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1479 Update.
1480 * nto-procfs.c (nto_procfs_target::post_attach)
1481 (nto_procfs_target::create_inferior): Update.
1482 * maint.c (maintenance_info_sections): Update.
1483 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1484 Update.
1485 * infcmd.c (post_create_inferior): Update.
1486 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1487 (objfile_find_memory_regions): Update.
1488 * exec.c (validate_exec_file, exec_file_attach)
1489 (exec_read_partial_read_only, print_section_info): Update.
1490 * corelow.c (core_target_open): Update.
1491 * corefile.c (reopen_exec_file, validate_files): Update.
1492 * arm-tdep.c (gdb_print_insn_arm): Update.
1493 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1494 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1495 methods.
1496
b55221ab
TT
14972020-10-29 Tom Tromey <tom@tromey.com>
1498
1499 * progspace.h (current_target_sections): Remove macro.
1500 * solib-svr4.c (scan_dyntag): Update.
1501 * solib-dsbt.c (scan_dyntag): Update.
1502 * exec.c (exec_target::close): Update.
1503 (add_target_sections, add_target_sections_of_objfile)
1504 (remove_target_sections, exec_target::get_section_table)
1505 (exec_target::files_info, set_section_command)
1506 (exec_set_section_address, exec_target::has_memory)
1507 (exec_target::has_memory): Update.
1508
5a36e715
TT
15092020-10-29 Tom Tromey <tom@tromey.com>
1510
1511 * source-cache.c (source_cache::get_plain_source_lines): Use
1512 current_program_space.
1513 * corefile.c (reopen_exec_file): Use current_program_space.
1514 * exec.c (exec_file_attach): Use current_program_space.
1515 * exec.h (exec_bfd_mtime): Remove.
1516
784c8592
TT
15172020-10-29 Tom Tromey <tom@tromey.com>
1518
1519 * gcore.c (default_gcore_mach): Remove.
1520 (create_gcore_bfd): Update.
1521
8a4f1402
TT
15222020-10-29 Tom Tromey <tom@tromey.com>
1523
1524 * progspace.c (program_space::exec_close): New method, from
1525 exec_close in exec.c.
1526 * exec.c (exec_close): Move to progspace.c.
1527 (exec_target::close, exec_file_attach): Update.
1528 * progspace.h (struct program_space) <exec_close>: Declare
1529 method.
1530
c20cb686
TT
15312020-10-29 Tom Tromey <tom@tromey.com>
1532
1533 * progspace.h (struct program_space) <exec_filename>: Rename from
1534 pspace_exec_filename. Now a unique_xmalloc_ptr.
1535 * inferior.c (print_selected_inferior): Update.
1536 (print_inferior): Update.
1537 * mi/mi-main.c (print_one_inferior): Update.
1538 * exec.h (exec_filename): Remove macro.
1539 * corefile.c (get_exec_file): Update.
1540 * exec.c (exec_close): Update.
1541 (exec_file_attach): Update.
1542 * progspace.c (clone_program_space): Update.
1543 (print_program_space): Update.
1544
6be2a9ab
TT
15452020-10-29 Tom Tromey <tom@tromey.com>
1546
1547 * target-section.h (struct target_section): Add constructor.
1548 * exec.c (build_section_table, add_target_sections_of_objfile):
1549 Update.
1550 * corelow.c (core_target::build_file_mappings): Update.
1551
cfaa8f76
TBA
15522020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553
1554 PR gdb/19318
1555 * inferior.c (detach_inferior_command): Restore the current thread.
1556 (kill_inferior_command): Ditto.
1557
1b00ef06
TV
15582020-10-28 Tom de Vries <tdevries@suse.de>
1559
1560 PR symtab/26772
1561 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1562 map, check it in the "best match" loop.
1563
7f40ce1a
SM
15642020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * m32c-tdep.c: Remove unused includes.
1567
5eb9e3f5
SM
15682020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * xtensa-tdep.c: Remove includes.
1571
b1d4d8d1
TBA
15722020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1573
1574 * breakpoint.c (struct condition_command_opts): New struct.
1575 (condition_command_option_defs): New static global.
1576 (make_condition_command_options_def_group): New function.
1577 (condition_completer): Update to consider the '-force' flag.
1578 (condition_command): Use gdb::option for the '-force' flag.
1579
bd24c5d6
TV
15802020-10-27 Tom de Vries <tdevries@suse.de>
1581
1582 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1583 symbols in section check.
1584
61eb46a4
TV
15852020-10-27 Tom de Vries <tdevries@suse.de>
1586
1587 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1588
733d554a
TBA
15892020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1590
1591 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1592 * breakpoint.c: Update the help text of the 'condition' and 'break'
1593 commands.
1594 (set_breakpoint_condition): Take a new bool parameter
1595 to control whether condition definition should be forced even when
1596 the condition expression is invalid in all of the current locations.
1597 (condition_command): Update the call to 'set_breakpoint_condition'.
1598 (find_condition_and_thread): Take the "-force-condition" flag into
1599 account.
1600 * linespec.c (linespec_keywords): Add "-force-condition" as an
1601 element.
1602 (FORCE_KEYWORD_INDEX): New #define.
1603 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1604 as a keyword.
1605 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1606 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1607 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1608 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1609
b5fa468f
TBA
16102020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1611
1612 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1613 * breakpoint.c (set_breakpoint_location_condition): New function.
1614 (set_breakpoint_condition): Disable a breakpoint location if parsing
1615 the condition string gives an error.
1616 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1617 (build_target_condition_list): Ditto.
1618 (build_target_command_list): Ditto.
1619 (build_bpstat_chain): Ditto.
1620 (print_one_breakpoint_location): Ditto.
1621 (print_one_breakpoint): Ditto.
1622 (breakpoint_1): Ditto.
1623 (bp_location::bp_location): Ditto.
1624 (locations_are_equal): Ditto.
1625 (update_breakpoint_locations): Ditto.
1626 (enable_disable_bp_num_loc): Ditto.
1627 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1628 (find_condition_and_thread_for_sals): New static function.
1629 (create_breakpoint): Call find_condition_and_thread_for_sals.
1630 (location_to_sals): Call find_condition_and_thread_for_sals instead
1631 of find_condition_and_thread.
1632
1c47ec3e
TV
16332020-10-26 Tom de Vries <tdevries@suse.de>
1634
1635 * dwarf2/read.c (process_full_comp_unit): Call
1636 dwarf2_find_base_address.
1637
6390859c
TT
16382020-10-26 Tom Tromey <tromey@adacore.com>
1639
1640 * gdbtypes.c (create_range_type): Revert previous patch. Add
1641 comment.
1642
d744f0f9
PA
16432020-10-26 Pedro Alves <pedro@palves.net>
1644
1645 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1646 (my_waitpid): Use gdb::handle_eintr.
1647
006811bc
SM
16482020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * acinclude.m4: Update ptrace.m4 path.
1651 * ptrace.m4: Moved to gdbsupport.
1652
c75e31a1
SM
16532020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1656 instead of target_gdbarch.
1657
32495661
SM
16582020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * jit.c (jit_reader_load_command): Pass current inferior.
1661 (jit_inferior_init): Change parameter type to inferior, use it.
1662 (jit_inferior_created): Remove.
1663 (jit_inferior_created_hook): Pass inferior parameter down.
1664 (_initialize_jit): Use jit_inferior_created_hook instead of
1665 jit_inferior_created.
1666 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1667 * infrun.c (follow_exec): Pass inferior to
1668 jit_inferior_created_hook.
1669
3f66685e
SM
16702020-10-24 Simon Marchi <simon.marchi@efficios.com>
1671
1672 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1673 parameter and use it.
1674 (thread_db_inferior_created): Pass inferior argument.
1675
a0ff652f
SM
16762020-10-24 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * aix-thread.c (aix_thread_inferior_created): Add inferior
1679 parameter.
1680 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1681 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1682 * jit.c (jit_inferior_created): Likewise.
1683 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1684 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1685 * observable.h (inferior_created): Likewise.
1686 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1687 * symfile-mem.c (add_vsyscall_page): Likewise.
1688 * infcmd.c (post_create_inferior): Pass inferior argument.
1689
3c67532c
JB
16902020-10-24 Joel Brobecker <brobecker@adacore.com>
1691
1692 GDB 10.1 released.
1693
8747316e
JB
16942020-10-23 Joel Brobecker <brobecker@adacore.com>
1695
1696 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1697 to ada_check_typedef.
1698
1a0ea399
AB
16992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * f-exp.y (f_parse): Rename to...
1702 (f_language::parser): ...this.
1703 * f-lang.c (f_get_encoding): Rename to...
1704 (f_language::get_encoding): ...this.
1705 (f_op_print_tab): Rename to...
1706 (f_language::op_print_tab): ...this.
1707 (exp_descriptor_f): Rename to...
1708 (f_language::exp_descriptor_tab): ...this.
1709 (class f_language): Moved to f-lang.h.
1710 (f_language::language_arch_info): New function, moved out of class
1711 declaration.
1712 (f_language::search_name_hash): Likewise.
1713 (f_language::lookup_symbol_nonlocal): Likewise.
1714 (f_language::get_symbol_name_matcher_inner): Likewise.
1715 * f-lang.h: Add 'valprint.h' include.
1716 (class f_language): Moved here from f-lang.c.
1717 * f-typeprint.c (f_type_print_args): Delete commented out
1718 declaration.
1719 (f_print_typedef): Rename to...
1720 (f_language::print_typedef): ...this.
1721 (f_print_type): Rename to...
1722 (f_language::print_type): ...this.
1723 (f_type_print_varspec_prefix): Delete declaration and rename to...
1724 (f_language::f_type_print_varspec_prefix): ...this.
1725 (f_type_print_varspec_suffix): Delete declaration and rename to...
1726 (f_language::f_type_print_varspec_suffix): ...this.
1727 (f_type_print_base): Delete declaration and rename to...
1728 (f_language::f_type_print_base): ...this.
1729 * f-valprint.c (f_value_print_inner): Rename to...
1730 (f_language::value_print_inner): ...this.
1731 * parse.c: Delete 'f-lang.h' include.
1732
88cefd9b
AB
17332020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * language.h (language_defn::print_type): Add variable names in
1736 declaration, and update header comment.
1737
5399db93
AB
17382020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * ada-lang.c (ada_language::demangle): Rename to...
1741 (ada_language::demangle_symbol): ...this.
1742 * c-lang.c (cplus_language::demangle): Rename to...
1743 (cplus_language::demangle_symbol): ...this.
1744 * d-lang.c (d_language::demangle): Rename to...
1745 (d_language::demangle_symbol): ...this.
1746 * f-lang.c (f_language::demangle): Rename to...
1747 (f_language::demangle_symbol): ...this.
1748 * go-lang.c (go_language::demangle): Rename to...
1749 (go_language::demangle_symbol): ...this.
1750 * language.c (language_demangle): Update call to demangle_symbol.
1751 (auto_or_unknown_language::demangle): Rename to...
1752 (auto_or_unknown_language::demangle_symbol): ...this.
1753 * language.h (language_defn::demangle): Rename to...
1754 (language_defn::demangle_symbol): ...this.
1755 * objc-lang.c (objc_language::demangle): Rename to...
1756 (objc_language::demangle_symbol): ...this.
1757 * rust-lang.c (rust_language::demangle): Rename to...
1758 (rust_language::demangle_symbol): ...this.
1759
4b2f86ef
AB
17602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1763 (iterate_over_file_blocks): Replace use of macro with the macros
1764 definition.
1765
e74b39de
AB
17662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1769 * valprint.c (maybe_print_array_index): Replace use of macro with
1770 the macros definition.
1771
00c696a6
AB
17722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * ada-lang.c (ada_language::print_array_index): Call value_print
1775 directly.
1776 * language.c (language_defn::print_array_index): Likewise.
1777 * language.h (LA_VALUE_PRINT): Delete.
1778 * valprint.c (value_print): Call value_print on the
1779 current_language directly.
1780
d3b67c56
AB
17812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * language.h (LA_PRINT_TYPEDEF): Delete.
1784 * typeprint.c (typedef_print): Call print_typedef directly on the
1785 current_language object.
1786
790e2a12
AB
17872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * m2-exp.y (m2_parse): Rename to...
1790 (m2_language::parser): ...this. Update function signature.
1791 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1792 (m2_op_print): Rename to...
1793 (m2_language::op_print_tab): ...this, and make const.
1794 (exp_descriptor_modula2): Rename to...
1795 (m2_language::exp_descriptor_modula2): ...this.
1796 (class m2_language): Move to m2-lang.h.
1797 (m2_language::language_arch_info): New function, moved out of
1798 class declaration.
1799 (m2_language::printchar): New function, body from m2_printchar.
1800 (m2_language::printstr): New function, moved out of class
1801 declaration.
1802 (m2_language::emitchar): Likewise.
1803 * m2-lang.h (m2_parse): Delete declaration.
1804 (m2_print_typedef): Delete declaration.
1805 (m2_value_print_inner): Delete declaration.
1806 (class m2_language): Class declaration moved from m2-lang.c,
1807 larger functions are left in m2-lang.c.
1808 * m2-typeprint.c (m2_print_typedef): Rename to...
1809 (m2_language::print_typedef): ...this, and update function
1810 signature.
1811 * m2-valprint.c (m2_value_print_inner): Rename to...
1812 (m2_language::value_print_inner): ...this, replace use of
1813 LA_PRINT_STRING with a direct call to printstr member function,
1814 and update recursive call.
1815
b01175fc
AB
18162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * language.c (default_is_string_type_p): Delete, implementation
1819 moved into auto_or_unknown_language::is_string_type_p.
1820 (unk_op_print_tab): Moved into
1821 auto_or_unknown_language::opcode_print_table.
1822 (unknown_language_arch_info): Delete, implementation moved into
1823 auto_or_unknown_language::language_arch_info.
1824 (class auto_or_unknown_language): New class, member functions
1825 copied from unknown_language class, with some updates.
1826 (class unknown_language): Most member functions moved into
1827 auto_or_unknown_language class. Inherit from
1828 auto_or_unknown_language class.
1829 (class auto_language): Inherit from auto_or_unknown_language.
1830 Delete most member functions.
1831
1a97fe8c
HD
18322020-10-22 Hannes Domani <ssbssa@yahoo.de>
1833
1834 * stabsread.c (read_member_functions): Remove gdb_assert.
1835
6b9d0dfd
HD
18362020-10-22 Hannes Domani <ssbssa@yahoo.de>
1837
1838 * gdbtypes.c (init_complex_type): Check target type name.
1839
4b4bb603
SM
18402020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * target-debug.h (target_debug_print_struct_target_ops_p):
1843 Remove.
1844 (target_debug_print_async_callback_ftype_p): Remove.
1845 (target_debug_print_struct_trace_state_variable_p): Remove.
1846 (target_debug_print_struct_traceframe_info_p): Remove.
1847 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1848 (target_debug_print_enum_btrace_format): Remove.
1849 (target_debug_print_enum_info_proc_what): Remove.
1850 (target_debug_print_thread_info_pp): Remove.
1851
24f5300a
SM
18522020-10-22 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * target.h (struct target_ops) <make_corefile_notes>:
1855 Change return type to unique pointer.
1856 * target.c (dummy_make_corefile_notes): Likewise.
1857 * exec.c (struct exec_target) <make_corefile_notes>:
1858 Likewise.
1859 (exec_target::make_corefile_notes): Likewise.
1860 * procfs.c (class procfs_target) <make_corefile_notes>:
1861 Likewise.
1862 (procfs_do_thread_registers): Adjust to unique pointer.
1863 (struct procfs_corefile_thread_data): Add constructor.
1864 <note_data>: Change type to unique pointer.
1865 (procfs_corefile_thread_callback): Adjust to unique pointer.
1866 (procfs_target::make_corefile_notes): Change return type to
1867 unique pointer.
1868 * target-delegates.c: Re-generate.
1869 * gcore.c (write_gcore_file_1): Adjust.
1870 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1871 New.
1872
5fb4027f
TV
18732020-10-22 Tom de Vries <tdevries@suse.de>
1874
1875 * block.c (find_block_in_blockvector): Make sure the returned block
1876 contains pc.
1877
4a636814
SM
18782020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 PR gdb/26693
1881 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1882 parameter.
1883 (load_cu): Pass existing CU.
1884 (process_imported_unit_die): Likewise.
1885 (follow_die_offset): Likewise.
1886
1bd57575
LM
18872020-10-22 Luis Machado <luis.machado@linaro.org>
1888
1889 * corelow.c (core_target::xfer_partial): Also check for an empty
1890 m_core_unavailable_mappings vector.
1891
6b4c676c
AB
18922020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1895 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1896 * f-exp.y (arglist): Allow for a series of subranges.
1897 (subrange): Add cases for subranges with strides.
1898 * f-lang.c (value_f90_subarray): Catch use of array strides and
1899 throw an error.
1900 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1901
f2d8e4c5
AB
19022020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * expprint.c (print_subexp_standard): Change enum range_type to
1905 range_flag and rename variables to match.
1906 (dump_subexp_body_standard): Likewise.
1907 * expression.h (enum range_type): Rename to...
1908 (enum range_flag): ...this.
1909 (range_types): Rename to...
1910 (range_flags): ...this.
1911 * f-lang.c (value_f90_subarray): Change enum range_type to
1912 range_flag and rename variables to match.
1913 * parse.c (operator_length_standard): Likewise.
1914 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1915 range_type to range_flag.
1916 * rust-lang.c (rust_evaluate_funcall): Likewise.
1917 (rust_range): Likewise.
1918 (rust_compute_range): Likewise.
1919 (rust_subscript): Likewise.
1920
2f1b18db
AB
19212020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * expprint.c (print_subexp_standard): Update to reflect changes to
1924 enum range_type.
1925 (dump_subexp_body_standard): Likewise.
1926 * expression.h (enum range_type): Convert to a bit field enum, and
1927 make the enum unsigned.
1928 * f-exp.y (subrange): Update to reflect changes to enum
1929 range_type.
1930 * f-lang.c (value_f90_subarray): Likewise.
1931 * parse.c (operator_length_standard): Likewise.
1932 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1933 * rust-lang.c (rust_range): Likewise.
1934 (rust_compute_range): Likewise.
1935 (rust_subscript): Likewise.
1936
a46d1843
SM
19372020-10-21 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1940 (displaced_step_in_progress): Fix comment.
1941
c21f37a8
SM
19422020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1945 * gdbarch.c: Re-generate.
1946 * gdbarch.h: Re-generate.
1947 * gcore.c (write_gcore_file_1): Adjust.
1948 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1949 constructor.
1950 <note_data>: Change type to unique pointer.
1951 <abort_iteration>: Change type to bool.
1952 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1953 (fbsd_collect_thread_registers): Return void, adjust.
1954 (struct fbsd_corefile_thread_data): Add construtor.
1955 <note_data>: Change type to unique pointer.
1956 (fbsd_corefile_thread): Adjust.
1957 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1958 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1959 to unique pointer, adjust.
1960 (struct linux_collect_regset_section_cb_data): Add constructor.
1961 <note_data>: Change type to unique pointer.
1962 <abort_iteration>: Change type to bool.
1963 (linux_collect_thread_registers): Return void, adjust.
1964 (struct linux_corefile_thread_data): Add constructor.
1965 <note_data>: Change type to unique pointer.
1966 (linux_corefile_thread): Adjust.
1967 (linux_make_corefile_notes): Return unique pointer, adjust.
1968
07fbbd01
SM
19692020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1972 * gdbarch.c: Re-generate.
1973 * gdbarch.h: Re-generate.
1974 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1975 bool.
1976 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1977 Likewise.
1978 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1979 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1980 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1981 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1982
39535193
SM
19832020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * gdbarch.sh: Make generated predicates return bool.
1986 * gdbarch.c: Re-generate.
1987 * gdbarch.h: Re-generate.
1988
ad523d01
TT
19892020-10-20 Tom Tromey <tom@tromey.com>
1990
1991 * varobj-iter.h (struct varobj_item): Remove typedef.
1992
c4464ade
SM
19932020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * infrun.c (currently_stepping): Change int to bool
1996 (maybe_software_singlestep): Likewise.
1997 (show_stop_on_solib_events): Likewise.
1998 (stepping_past_nonsteppable_watchpoint): Likewise.
1999 (displaced_step_in_progress_any_inferior): Likewise.
2000 (displaced_step_in_progress_thread): Likewise.
2001 (keep_going_stepped_thread): Likewise.
2002 (thread_still_needs_step_over): Likewise.
2003 (start_step_over): Likewise.
2004 (do_target_resume): Likewise.
2005 (resume_1): Likewise.
2006 (clear_proceed_status): Likewise.
2007 (thread_still_needs_step_over_bp): Likewise.
2008 (proceed): Likewise.
2009 (switch_back_to_stepped_thread): Likewise.
2010 (adjust_pc_after_break): Likewise.
2011 (stepped_in_from): Likewise.
2012 (handle_stop_requested): Likewise.
2013 (handle_syscall_event): Likewise.
2014 (handle_no_resumed): Likewise.
2015 (handle_inferior_event): Likewise.
2016 (finish_step_over): Likewise.
2017 (handle_signal_stop): Likewise.
2018 (process_event_stop_test): Likewise.
2019
2eb20436
SM
20202020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * infrun.c (get_displaced_stepping_state): Fix comment.
2023
e0c45ded
AS
20242020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2025
2026 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2027
22cc388e
TT
20282020-10-19 Tom Tromey <tromey@adacore.com>
2029
2030 PR tui/26719
2031 * tui/tui-winsource.h (struct tui_source_window_base)
2032 <refresh_window>: Rename from refresh_pad.
2033 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2034 Rename from refresh_pad.
2035 (tui_source_window_base::show_source_content)
2036 (tui_source_window_base::do_scroll_horizontal): Update.
2037
3c6eb4d4
TBA
20382020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2039
2040 * thread.c (_initialize_thread): Fine-tune the help text of
2041 'info threads'.
2042
26703721
TBA
20432020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2044
2045 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2046
61c26be8
MS
20472020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2048
2049 * breakpoint.c (handle_jit_event): Add an argument, change how
2050 `jit_event_handler` is called.
2051
932539d7
TT
20522020-10-17 Tom Tromey <tom@tromey.com>
2053
2054 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2055 (scan_xcoff_symtab): Update.
2056 * psymtab.h (class psymtab_storage) <global_psymbols,
2057 static_psymbols, current_global_psymbols,
2058 current_static_psymbols>: Remove.
2059 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2060 (match_partial_symbol, lookup_partial_symbol): Update.
2061 (print_partial_symbols): Change parameters.
2062 (dump_psymtab, recursively_search_psymtabs)
2063 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2064 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2065 (concat): Remove.
2066 (end_psymtab_common): Simplify.
2067 (append_psymbol_to_list): Change parameters.
2068 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2069 (init_psymbol_list): Simplify.
2070 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2071 * psympriv.h (struct partial_symtab) <empty>: New method.
2072 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2073 Remove.
2074 <global_psymbols, static_psymbols>: New members.
2075 <add_psymbol>: New methods.
2076 (add_psymbol_to_list): Don't declare.
2077 (psymbol_placement): Move earlier.
2078 * mdebugread.c (parse_partial_symbols): Update.
2079 (handle_psymbol_enumerators): Change parameters.
2080 (mdebug_expand_psymtab): Update.
2081 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2082 (add_partial_symbol): Update.
2083 * dwarf2/index-write.c (write_psymbols): Change parameters.
2084 (write_one_signatured_type): Update.
2085 (recursively_count_psymbols): Update.
2086 (recursively_write_psymbols): Update.
2087 (class debug_names) <recursively_write_psymbols>: Update.
2088 <write_psymbols>: Change parameters.
2089 <write_one_signatured_type>: Update.
2090 * dbxread.c (read_dbx_symtab): Update.
2091 (dbx_end_psymtab): Use partial_symtab::empty.
2092 * ctfread.c (struct ctf_context) <pst>: New member.
2093 (create_partial_symtab): Set it.
2094 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2095 (scan_partial_symbols): Use the psymtab's context. Update.
2096
cfabbd35
TT
20972020-10-17 Tom Tromey <tom@tromey.com>
2098
2099 * valprint.c (generic_value_print): Remove comment.
2100 * m2-valprint.c (m2_value_print_inner): Remove comment.
2101 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2102 type.
2103
520596f2
TV
21042020-10-17 Tom de Vries <tdevries@suse.de>
2105
2106 PR symtab/26317
2107 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2108 symbol main.
2109
76547ab3
TV
21102020-10-14 Tom de Vries <tdevries@suse.de>
2111
2112 PR gdb/26733
2113 * solib.c (solib_contains_address_p): Handle
2114 'solib->sections == nullptr'.
2115
d3a07122
SM
21162020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 PR gdb/26642
2119 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2120 target can't do async.
2121 * target.c (target_wait): Assert that we don't pass
2122 TARGET_WNOHANG to a target that can't async.
2123
1b71cfcf
KR
21242020-10-13 Kamil Rytarowski <n54@gmx.com>
2125
2126 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2127 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2128 * alpha-bsd-nat.c: Adjust include.
2129 * alpha-bsd-tdep.h: Adjust comment.
2130 * alpha-nbsd-tdep.c: Rename to ...
2131 * alpha-netbsd-tdep.c: ... this, adjust include.
2132 * amd64-nbsd-nat.c: Rename to ...
2133 * amd64-netbsd-nat.c: ... this, adjust include.
2134 * amd64-nbsd-tdep.c: Rename to ...
2135 * amd64-netbsd-tdep.c: ... this, adjust include.
2136 * amd64-tdep.h: Adjust include.
2137 * arm-nbsd-nat.c: Rename to ...
2138 * arm-netbsd-nat.c: ... this, adjust include.
2139 * arm-nbsd-tdep.c: Rename to ...
2140 * arm-netbsd-tdep.c: ... this, adjust include.
2141 * arm-nbsd-tdep.h: Rename to ...
2142 * arm-netbsd-tdep.h: ... this, adjust include.
2143 * configure.nat: Adjust file lists.
2144 * configure.tgt: Likewise.
2145 * hppa-nbsd-nat.c: Rename to ...
2146 * hppa-netbsd-nat.c: ... this, adjust include.
2147 * hppa-nbsd-tdep.c: Rename to ...
2148 * hppa-netbsd-tdep.c: ... this, adjust include.
2149 * i386-nbsd-nat.c: Rename to ...
2150 * i386-netbsd-nat.c: ... this, adjust include.
2151 * i386-nbsd-tdep.c: Rename to ...
2152 * i386-netbsd-tdep.c: ... this, adjust include.
2153 * m68k-bsd-nat.c: Adjust include.
2154 * mips-nbsd-nat.c: Rename to ...
2155 * mips-netbsd-nat.c: ... this, adjust include.
2156 * mips-nbsd-tdep.c: Rename to ...
2157 * mips-netbsd-tdep.c: ... this, adjust include.
2158 * mips-nbsd-tdep.h: Rename to ...
2159 * mips-netbsd-tdep.h: ... this.
2160 * nbsd-nat.c: Rename to ...
2161 * netbsd-nat.c: ... this, adjust include.
2162 * nbsd-nat.h: Rename to ...
2163 * netbsd-nat.h: ... this, adjust include.
2164 * nbsd-tdep.c: Rename to ...
2165 * netbsd-tdep.c: ... this, adjust include.
2166 * nbsd-tdep.h: Rename to ...
2167 * netbsd-tdep.h: ... this.
2168 * ppc-nbsd-nat.c: Rename to ...
2169 * ppc-netbsd-nat.c: ... this, adjust include.
2170 * ppc-nbsd-tdep.c: Rename to ...
2171 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2172 * ppc-nbsd-tdep.h: Rename to ...
2173 * ppc-netbsd-tdep.h: ... this.
2174 * sh-nbsd-nat.c: Rename to ...
2175 * sh-netbsd-nat.c: ... this, adjust include.
2176 * sh-nbsd-tdep.c: Rename to ...
2177 * sh-netbsd-tdep.c: ... this, adjust include.
2178 * sparc-nbsd-nat.c: Rename to ...
2179 * sparc-netbsd-nat.c: ... this.
2180 * sparc-nbsd-tdep.c: Rename to ...
2181 * sparc-netbsd-tdep.c: ... this, adjust include.
2182 * sparc64-nbsd-nat.c: Rename to ...
2183 * sparc64-netbsd-nat.c: ... this.
2184 * sparc64-nbsd-tdep.c: Rename to ...
2185 * sparc64-netbsd-tdep.c: ... this, adjust include.
2186 * sparc64-tdep.h: Adjust comment.
2187 * vax-bsd-nat.c: Adjust include.
2188 * vax-nbsd-tdep.c: Rename to ...
2189 * vax-netbsd-tdep.c: ... this, adjust include.
2190
d7a78e5c
TT
21912020-10-12 Tom Tromey <tom@tromey.com>
2192
2193 * target.h (struct target_ops) <get_section_table>: Update.
2194 (target_get_section_table): Update.
2195 * target.c (target_get_section_table, target_section_by_addr)
2196 (memory_xfer_partial_1): Update.
2197 * target-section.h (target_section_table): Now an alias.
2198 * target-delegates.c: Rebuild.
2199 * target-debug.h (target_debug_print_target_section_table_p):
2200 Rename from target_debug_print_struct_target_section_table_p.
2201 * symfile.c (build_section_addr_info_from_section_table): Update.
2202 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2203 * solib-svr4.c (scan_dyntag): Update.
2204 * solib-dsbt.c (scan_dyntag): Update.
2205 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2206 Update.
2207 * record-full.c (record_full_core_target::xfer_partial): Update.
2208 * progspace.h (struct program_space) <target_sections>: Update.
2209 * exec.h (print_section_info): Update.
2210 * exec.c (exec_target::close, build_section_table)
2211 (add_target_sections, add_target_sections_of_objfile)
2212 (remove_target_sections, exec_on_vfork)
2213 (section_table_available_memory)
2214 (section_table_xfer_memory_partial)
2215 (exec_target::get_section_table, exec_target::xfer_partial)
2216 (print_section_info, set_section_command)
2217 (exec_set_section_address, exec_target::has_memory): Update.
2218 * corelow.c (core_target::build_file_mappings)
2219 (core_target::xfer_partial, core_target::info_proc_mappings)
2220 (core_target::info_proc_mappings): Update.
2221 * bfd-target.c (class target_bfd): Update
2222
eda214ce
TT
22232020-10-12 Tom Tromey <tom@tromey.com>
2224
2225 * progspace.c (program_space::~program_space): Don't call
2226 clear_section_table.
2227 * exec.h (clear_section_table): Don't declare.
2228 * exec.c (exec_target::close): Update.
2229 (clear_section_table): Remove.
2230
91840ee3
TT
22312020-10-12 Tom Tromey <tom@tromey.com>
2232
2233 * exec.c (add_target_sections_of_objfile): Simplify.
2234
2d128614
TT
22352020-10-12 Tom Tromey <tom@tromey.com>
2236
2237 * solib.c (solib_map_sections): Update.
2238 * record-full.c (record_full_core_open_1): Update.
2239 * exec.h (build_section_table): Return a target_section_table.
2240 * exec.c (exec_file_attach): Update.
2241 (build_section_table): Return a target_section_table.
2242 * corelow.c (core_target::core_target): Update.
2243 * bfd-target.c (target_bfd::target_bfd): Update.
2244
bb2a6777
TT
22452020-10-12 Tom Tromey <tom@tromey.com>
2246
2247 * target.c (target_section_by_addr, memory_xfer_partial_1):
2248 Update.
2249 * target-section.h (struct target_section_table): Use
2250 std::vector.
2251 * symfile.h (build_section_addr_info_from_section_table): Take a
2252 target_section_table.
2253 * symfile.c (build_section_addr_info_from_section_table): Take a
2254 target_section_table.
2255 * solist.h (struct so_list) <sections>: Change type.
2256 <sections_end>: Remove.
2257 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2258 (solib_contains_address_p): Update.
2259 * solib-svr4.c (scan_dyntag): Update.
2260 * solib-dsbt.c (scan_dyntag): Update.
2261 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2262 Update.
2263 * record-full.c (record_full_core_start, record_full_core_end):
2264 Remove.
2265 (record_full_core_sections): New global.
2266 (record_full_core_open_1, record_full_core_target::xfer_partial):
2267 Update.
2268 * exec.h (build_section_table, section_table_xfer_memory_partial)
2269 (add_target_sections): Take a target_section_table.
2270 * exec.c (exec_file_attach, clear_section_table): Update.
2271 (resize_section_table): Remove.
2272 (build_section_table, add_target_sections): Take a
2273 target_section_table.
2274 (add_target_sections_of_objfile, remove_target_sections)
2275 (exec_on_vfork): Update.
2276 (section_table_available_memory): Take a target_section_table.
2277 (section_table_read_available_memory): Update.
2278 (section_table_xfer_memory_partial): Take a target_section_table.
2279 (print_section_info, set_section_command)
2280 (exec_set_section_address, exec_target::has_memory): Update.
2281 * corelow.c (class core_target) <m_core_section_table,
2282 m_core_file_mappings>: Remove braces.
2283 <~core_target>: Remove.
2284 (core_target::core_target): Update.
2285 (core_target::~core_target): Remove.
2286 (core_target::build_file_mappings)
2287 (core_target::xfer_memory_via_mappings)
2288 (core_target::xfer_partial, core_target::info_proc_mappings):
2289 Update.
2290 * bfd-target.c (target_bfd::xfer_partial): Update.
2291 (target_bfd::target_bfd): Update.
2292 (target_bfd::~target_bfd): Remove.
2293
7b466b10
TT
22942020-10-12 Tom Tromey <tom@tromey.com>
2295
2296 * target.h (struct target_section, struct target_section_table):
2297 Move to target-section.h.
2298 * target-section.h: New file.
2299
87a37e5e
PA
23002020-10-12 Pedro Alves <pedro@palves.net>
2301
2302 PR exp/26602
2303 * valops.c (struct struct_field_searcher): New.
2304 (update_search_result): Rename to ...
2305 (struct_field_searcher::update_result): ... this. Simplify
2306 prototype. Record all found fields.
2307 (do_search_struct_field): Rename to ...
2308 (struct_field_searcher::search): ... this. Simplify prototype.
2309 Maintain stack of visited baseclass path. Call update_result for
2310 fields too. Keep searching fields in baseclasses instead of
2311 stopping at the first found field.
2312 (search_struct_field): Use struct_field_searcher. When looking
2313 for fields, report ambiguous access attempts.
2314
9370fd51
AB
23152020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * frame.c (inside_main_func): Check full symbols as well as
2318 minimal symbols.
2319
59c8a30b
JB
23202020-10-09 Joel Brobecker <brobecker@adacore.com>
2321
2322 * ada-lang.c (advance_wild_match): Rewrite the function's
2323 description. Change the type of target0, t0 and t1 to char.
2324
7c184d33
TT
23252020-10-09 Tom Tromey <tromey@adacore.com>
2326
2327 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2328
5c4258f4
TT
23292020-10-09 Tom Tromey <tromey@adacore.com>
2330
2331 * ada-lang.h (ada_encode): Return std::string.
2332 * ada-lang.c (ada_encode_1): Return std::string.
2333 (ada_encode): Likewise.
2334 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2335 Update.
2336 * ada-exp.y (block_lookup, write_var_or_type): Update.
2337
3d87245c
HD
23382020-10-09 Hannes Domani <ssbssa@yahoo.de>
2339
2340 PR exp/26714
2341 * printcmd.c (print_formatted): Handle void results as
2342 unformatted prints.
2343
bbb826f5
AB
23442020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * arch/aarch32.c (aarch32_create_target_description): Release the
2347 target_desc_up as late as possible.
2348 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2349 * arch/amd64.c (amd64_create_target_description): Likewise.
2350 * arch/arc.c (arc_create_target_description): Return a
2351 target_desc_up, don't release it.
2352 * arch/arc.h (arc_create_target_description): Update declaration.
2353 (arc_lookup_target_description): Move target_desc_up into the
2354 cache, and return a borrowed pointer.
2355 * arch/arm.c (arm_create_target_description): Release the
2356 target_desc_up as late as possible.
2357 * arch/i386.c (i386_create_target_description): Likewise.
2358 * arch/riscv.h (riscv_create_target_description): Update
2359 declaration to match definition.
2360 * arch/tic6x.c (tic6x_create_target_description): Release the
2361 target_desc_up as late as possible.
2362
361cb219
AB
23632020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2366 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2367
f5c4b229
JV
23682020-10-09 Jan Vrany <jan.vrany@labware.com>
2369
2370 * source.c (directory_command): Notify observers that "directories"
2371 parameter has changed.
2372
b2701685
TT
23732020-10-08 Tom Tromey <tom@tromey.com>
2374
2375 * cli/cli-cmds.c (print_disassembly): Style function name and
2376 addresses. Add _() wrappers.
2377
ada508b6
SV
23782020-10-08 Shahab Vahedi <shahab@synopsys.com>
2379
2380 * NEWS: Mention ARC support in GDBserver.
2381
51a948fd
AB
23822020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * arch/aarch32.c (aarch32_create_target_description): Release
2385 unique_ptr returned from allocate_target_description.
2386 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2387 * arch/amd64.c (amd64_create_target_description): Likewise.
2388 * arch/arc.c (arc_create_target_description): Likewise.
2389 * arch/arm.c (arm_create_target_description): Likewise.
2390 * arch/i386.c (i386_create_target_description): Likewise.
2391 * arch/riscv.c (riscv_create_target_description): Update return
2392 type. Handle allocate_target_description returning a unique_ptr.
2393 (riscv_lookup_target_description): Update to handle unique_ptr.
2394 * arch/tic6x.c (tic6x_create_target_description): Release
2395 unique_ptr returned from allocate_target_description.
2396 * features/microblaze-with-stack-protect.c: Regenerate.
2397 * features/microblaze.c: Regenerate.
2398 * features/mips-dsp-linux.c: Regenerate.
2399 * features/mips-linux.c: Regenerate.
2400 * features/mips64-dsp-linux.c: Regenerate.
2401 * features/mips64-linux.c: Regenerate.
2402 * features/nds32.c: Regenerate.
2403 * features/nios2.c: Regenerate.
2404 * features/or1k.c: Regenerate.
2405 * features/rs6000/powerpc-32.c: Regenerate.
2406 * features/rs6000/powerpc-32l.c: Regenerate.
2407 * features/rs6000/powerpc-403.c: Regenerate.
2408 * features/rs6000/powerpc-403gc.c: Regenerate.
2409 * features/rs6000/powerpc-405.c: Regenerate.
2410 * features/rs6000/powerpc-505.c: Regenerate.
2411 * features/rs6000/powerpc-601.c: Regenerate.
2412 * features/rs6000/powerpc-602.c: Regenerate.
2413 * features/rs6000/powerpc-603.c: Regenerate.
2414 * features/rs6000/powerpc-604.c: Regenerate.
2415 * features/rs6000/powerpc-64.c: Regenerate.
2416 * features/rs6000/powerpc-64l.c: Regenerate.
2417 * features/rs6000/powerpc-7400.c: Regenerate.
2418 * features/rs6000/powerpc-750.c: Regenerate.
2419 * features/rs6000/powerpc-860.c: Regenerate.
2420 * features/rs6000/powerpc-altivec32.c: Regenerate.
2421 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2422 * features/rs6000/powerpc-altivec64.c: Regenerate.
2423 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2424 * features/rs6000/powerpc-e500.c: Regenerate.
2425 * features/rs6000/powerpc-e500l.c: Regenerate.
2426 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2427 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2428 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2429 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2430 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2431 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2432 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2433 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2434 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2435 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2436 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2437 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2438 * features/rs6000/powerpc-vsx32.c: Regenerate.
2439 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2440 * features/rs6000/powerpc-vsx64.c: Regenerate.
2441 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2442 * features/rs6000/rs6000.c: Regenerate.
2443 * features/rx.c: Regenerate.
2444 * features/s390-gs-linux64.c: Regenerate.
2445 * features/s390-linux32.c: Regenerate.
2446 * features/s390-linux32v1.c: Regenerate.
2447 * features/s390-linux32v2.c: Regenerate.
2448 * features/s390-linux64.c: Regenerate.
2449 * features/s390-linux64v1.c: Regenerate.
2450 * features/s390-linux64v2.c: Regenerate.
2451 * features/s390-te-linux64.c: Regenerate.
2452 * features/s390-tevx-linux64.c: Regenerate.
2453 * features/s390-vx-linux64.c: Regenerate.
2454 * features/s390x-gs-linux64.c: Regenerate.
2455 * features/s390x-linux64.c: Regenerate.
2456 * features/s390x-linux64v1.c: Regenerate.
2457 * features/s390x-linux64v2.c: Regenerate.
2458 * features/s390x-te-linux64.c: Regenerate.
2459 * features/s390x-tevx-linux64.c: Regenerate.
2460 * features/s390x-vx-linux64.c: Regenerate.
2461 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2462 from allocate_target_description.
2463 * target-descriptions.c (allocate_target_description): Update
2464 return type.
2465 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2466 allocate_target_description.
2467
485c47e5
TT
24682020-10-07 Tom Tromey <tromey@adacore.com>
2469
2470 * unittests/search-memory-selftests.c: New file.
2471 * Makefile.in (SELFTESTS_SRCS): Add
2472 unittests/search-memory-selftests.c.
2473
3a135a91
TT
24742020-10-07 Tom Tromey <tromey@adacore.com>
2475
2476 PR gdb/16930:
2477 * findcmd.c (_initialize_mem_search): Mention that the range is
2478 inclusive.
2479
4a72de73
TT
24802020-10-07 Tom Tromey <tromey@adacore.com>
2481
2482 * target.h (simple_search_memory): Don't declare.
2483 * target.c (simple_search_memory): Move to gdbsupport.
2484 (default_search_memory): Update.
2485 * remote.c (remote_target::search_memory): Update.
2486
a038ffd8
SM
24872020-10-07 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * Makefile.in (COMPILE): Add CXXFLAGS.
2490 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2491 (check-headers): Add CXXFLAGS.
2492
cc463201
AK
24932020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2494
2495 * arc-linux-tdep.h: New file.
2496 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2497 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2498 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2499 arc_linux_gregset, arc_linux_v2_regset,
2500 arc_linux_iterate_over_regset_sections,
2501 arc_linux_core_read_description): Implement.
2502 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2503 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2504 (arc_gdbarch_features_create): Add.
2505 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2506
e4bd363f
SV
25072020-10-07 Shahab Vahedi <shahab@synopsys.com>
2508
2509 * arch/arc.h: Rename "arc_gdbarch_features" to
2510 "arc_arch_features".
2511 * arc-tdep.h: Likewise.
2512 * arc-tdep.c: Likewise.
2513
b68bef99
TBA
25142020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2515
2516 * infcmd.c (attach_command): Remove the redundant call to
2517 `clear_proceed_status`.
2518
4641551a
KR
25192020-10-07 Kamil Rytarowski <n54@gmx.com>
2520
2521 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2522
91e5e8db
KR
25232020-10-07 Kamil Rytarowski <n54@gmx.com>
2524
2525 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2526 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2527 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2528
64c03bdb
SM
25292020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2532 (_initialize_break_catch_sig): Don't allocate array.
2533
31a8f60f
AB
25342020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * symtab.c (find_pc_line): Return unmapped addresses when the
2537 requested address is also unmapped.
2538
9e6dbd8b
SM
25392020-10-05 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2542 tui/tui-out.h.
2543
a1d217e8
SM
25442020-10-05 Simon Marchi <simon.marchi@efficios.com>
2545
2546 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2547 type::is_vector instead of TYPE_VECTOR.
2548
7d144117
SM
25492020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * auto-load.c (auto_load_objfile_script_1): Don't use
2552 debugfile_holder as temporary variable when stripping drive
2553 letter.
2554
cd096ec8
HD
25552020-10-05 Hannes Domani <ssbssa@yahoo.de>
2556
2557 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2558 Add TYPE_CODE_COMPLEX.
2559 (amd64_windows_return_value): Fix types returned via XMM0.
2560
b58e7f72
AH
25612020-10-05 Alan Hayward <alan.hayward@arm.com>
2562
2563 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2564 AArch64/ARM maintainers.
2565
8d378f27
SM
25662020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * NEWS: Mention set/show debug event-loop.
2569
d5519913
TT
25702020-10-02 Tom Tromey <tromey@adacore.com>
2571
2572 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2573 REG_EXTENDED.
2574
18b67edc
SM
25752020-10-02 Simon Marchi <simon.marchi@efficios.com>
2576
2577 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2578 * procfs.c (procfs_inferior_created): Remove.
2579 (_initialize_procfs): Don't register procfs_inferior_created.
2580
6b01403b
SM
25812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * async-event.c (invoke_async_signal_handlers): Add debug
2584 print.
2585 (check_async_event_handlers): Likewise.
2586 * event-top.c (show_debug_event_loop): New function.
2587 (_initialize_event_top): Register "set debug event-loop"
2588 setting.
2589
ba988419
SM
25902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2593 * debug.h: Remove.
2594 * infrun.c: Include gdbsupport/common-debug.h.
2595 * linux-nat.c: Likewise.
2596
db20ebdf
SM
25972020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * async-event.h (create_async_signal_handler): Add name
2600 parameter.
2601 (create_async_event_handler): Likewise.
2602 * async-event.c (struct async_signal_handler) <name>: New field.
2603 (struct async_event_handler) <name>: New field.
2604 (create_async_signal_handler): Assign name.
2605 (create_async_event_handler): Assign name.
2606 * event-top.c (async_init_signals): Pass name when creating
2607 handler.
2608 * infrun.c (_initialize_infrun): Likewise.
2609 * record-btrace.c (record_btrace_push_target): Likewise.
2610 * record-full.c (record_full_open): Likewise.
2611 * remote-notif.c (remote_notif_state_allocate): Likewise.
2612 * remote.c (remote_target::open_1): Likewise.
2613 * tui/tui-win.c (tui_initialize_win): Likewise.
2614
2554f6f5
SM
26152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * async-event.c (initialize_async_signal_handlers): Pass name to
2618 add_file_handler
2619 * event-top.c (ui_register_input_event_handler): Likewise.
2620 * linux-nat.c (linux_nat_target::async): Likewise.
2621 * run-on-main-thread.c (_initialize_run_on_main_thread):
2622 Likewise
2623 * ser-base.c (reschedule): Likewise.
2624 (ser_base_async): Likewise.
2625 * tui/tui-io.c: Likewise.
2626 * top.h (struct ui) <num>: New field.
2627 * top.c (highest_ui_num): New variable.
2628 (ui::ui): Initialize num.
2629
a7aba266
SM
26302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2631
2632 * observable.h <inferior_created>: Remove parameters. Update all
2633 listeners.
2634 * inferior.h (post_create_inferior): Remove target parameter.
2635 Update all callers.
2636
048fde1e 26372020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2638
2639 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2640 and DW_MACRO_undef_strx.
2641 (dwarf_decode_macros): Likewise
2642 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2643 which is the value of DW_AT_str_offsets_base.
2644 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2645 str_offsets_base.
2646
064280be
KR
26472020-10-01 Kamil Rytarowski <n54@gmx.com>
2648
2649 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2650
6ff33035
KR
26512020-10-01 Kamil Rytarowski <n54@gmx.com>
2652
2653 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2654 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2655
1eb6eb79
KR
26562020-10-01 Kamil Rytarowski <n54@gmx.com>
2657
2658 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2659
95eb9e54
TV
26602020-09-30 Tom de Vries <tdevries@suse.de>
2661
2662 PR symtab/26683
2663 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2664
cae21f8e
TT
26652020-09-30 Tom Tromey <tromey@adacore.com>
2666
2667 * dwarf2/read.c (handle_variant): Use constant_value.
2668
529908cb
TT
26692020-09-29 Tom Tromey <tom@tromey.com>
2670
2671 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2672 (read_file_scope, dwarf2_get_pc_bounds)
2673 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2674 (read_structure_type, handle_struct_member_die)
2675 (read_enumeration_type, read_array_type, read_set_type)
2676 (read_tag_pointer_type, read_tag_reference_type)
2677 (read_subroutine_type, read_base_type, read_subrange_type)
2678 (read_full_die_1, partial_die_info::read)
2679 (partial_die_info::read, by, new_symbol)
2680 (dwarf2_const_value_data, dwarf2_const_value_attr)
2681 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2682 (prepare_one_comp_unit): Update.
2683 * dwarf2/attribute.h (DW_UNSND): Remove.
2684
c45bc3f8
TT
26852020-09-29 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2688 (read_subroutine_type, partial_die_info::read)
2689 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2690 (dwarf2_add_member_fn): Update.
2691 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2692 * dwarf2/attribute.c (attribute::as_boolean): New method.
2693
23dca5c3
TT
26942020-09-29 Tom Tromey <tom@tromey.com>
2695
2696 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2697 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2698 method.
2699 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2700
52c14d11
TT
27012020-09-29 Tom Tromey <tom@tromey.com>
2702
2703 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2704 the attribute's form.
2705
e8e5c158
TT
27062020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2709 (dwarf2_add_member_fn): Update.
2710 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2711 * dwarf2/attribute.c (attribute::defaulted): New method, from
2712 is_valid_DW_AT_defaulted.
2713
d4df075e
TT
27142020-09-29 Tom Tromey <tom@tromey.com>
2715
2716 * dwarf2/read.c (dw2_get_file_names_reader)
2717 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2718 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2719 (dwarf2_symbol_mark_computed): Use as_unsigned.
2720 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2721 method.
2722 <form_is_section_offset>: Update comment.
2723
bf23a268
TT
27242020-09-29 Tom Tromey <tom@tromey.com>
2725
2726 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2727 dwarf2_default_access_attribute. Look up attribute.
2728 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2729 Update.
2730
7a5f294d
TT
27312020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/read.c (skip_one_die): Update.
2734 (read_full_die_1): Change how reprocessing is done.
2735 (partial_die_info::read): Update.
2736 (read_attribute_value): Remove need_reprocess parameter.
2737 (read_attribute): Likewise.
2738 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2739 New method.
2740
36d378cf
TT
27412020-09-29 Tom Tromey <tom@tromey.com>
2742
2743 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2744 (dwarf2_const_value_attr, dump_die_shallow)
2745 (dwarf2_fetch_constant_bytes): Update.
2746 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2747 comment.
2748 <set_address>: New method.
2749 (DW_ADDR): Remove.
2750 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2751 (attribute::as_string, attribute::as_address): Add assert.
2752
fe56917a
TT
27532020-09-29 Tom Tromey <tom@tromey.com>
2754
2755 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2756 (read_attribute_reprocess, read_attribute_value): Update.
2757 (read_attribute): Clear requires_reprocessing.
2758 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2759 form_requires_reprocessing>: New methods.
2760 <string_init>: Clear requires_reprocessing.
2761 <set_unsigned_reprocess>: New method.
2762 <name>: Shrink by one bit.
2763 <requires_reprocessing>: New member.
2764 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2765 method.
2766
414ad644
TT
27672020-09-29 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (read_attribute_value): Update.
2770 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2771 set_unsigned>: New methods.
2772 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2773
1bc397c5
TT
27742020-09-29 Tom Tromey <tom@tromey.com>
2775
2776 * dwarf2/read.c (get_alignment, read_array_order)
2777 (read_attribute_value, dwarf2_const_value_attr)
2778 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2779 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2780 New methods.
2781 (DW_SND): Remove.
2782
630ed6b9
TT
27832020-09-29 Tom Tromey <tom@tromey.com>
2784
2785 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2786 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2787 Update.
2788 * dwarf2/attribute.h (struct attribute) <as_signature,
2789 set_signature>: New methods.
2790 (DW_SIGNATURE): Remove.
2791
9d2246fc
TT
27922020-09-29 Tom Tromey <tom@tromey.com>
2793
2794 * dwarf2/read.c (read_call_site_scope)
2795 (handle_data_member_location, dwarf2_add_member_fn)
2796 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2797 (partial_die_info::read, read_attribute_value)
2798 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2799 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2800 (dwarf2_symbol_mark_computed): Update.
2801 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2802 methods.
2803 (DW_BLOCK): Remove.
2804 * dwarf2/attribute.c (attribute::form_is_block): Add
2805 DW_FORM_data16.
2806
c6481205
TT
28072020-09-29 Tom Tromey <tom@tromey.com>
2808
2809 * dwarf2/read.c (read_cutu_die_from_dwo)
2810 (read_attribute_reprocess, read_attribute_value, read_attribute)
2811 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2812 (dwarf2_fetch_constant_bytes): Update.
2813 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2814 <set_string_noncanonical, set_string_canonical>: New methods.
2815 <string_is_canonical>: Update comment.
2816 <canonical_string_p>: Add assert.
2817 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2818 * dwarf2/attribute.c (attribute::form_is_string): New method.
2819 (attribute::string): Use it.
2820
3b64bf15
TT
28212020-09-29 Tom Tromey <tom@tromey.com>
2822
2823 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2824 (dump_die_shallow): Use canonical_string_p.
2825 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2826 method.
2827
2c830f54
TT
28282020-09-29 Tom Tromey <tom@tromey.com>
2829
2830 * dwarf2/read.c (partial_die_info::read)
2831 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2832 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2833 attribute::as_string.
2834
6c412691
TT
28352020-09-29 Tom Tromey <tom@tromey.com>
2836
2837 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2838 DW_ADDR.
2839 (attribute::string): Don't use DW_STRING.
2840 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2841 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2842
95f982e5
TT
28432020-09-29 Tom Tromey <tom@tromey.com>
2844
2845 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2846 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2847 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2848 * dwarf2/attribute.h (struct attribute): Rename methods.
2849 * dwarf2/attribute.c (attribute::as_address): Rename from
2850 value_as_address.
2851 (attribute::as_string): Rename from value_as_string.
2852
f800b00e
TT
28532020-09-29 Tom Tromey <tom@tromey.com>
2854
2855 * dwarf2/read.c (partial_die_info::read) <case
2856 DW_AT_linkage_name>: Use value_as_string.
2857 (dwarf2_string_attr): Use value_as_string.
2858 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2859 method.
2860 * dwarf2/attribute.c (attribute::value_as_string): New method.
2861
de38d64a
PA
28622020-09-29 Pedro Alves <pedro@palves.net>
2863
2864 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2865 defined before using '#pragma GCC diagnostic' instead of checking
2866 __clang__.
2867
9aed480c
TT
28682020-09-28 Tom Tromey <tom@tromey.com>
2869
2870 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2871 (handle_signal_stop): Update.
2872 * procfs.c (procfs_target::insert_watchpoint): Update.
2873 * target.h (target_have_steppable_watchpoint): Now a function.
2874
8a3ecb79
TT
28752020-09-28 Tom Tromey <tom@tromey.com>
2876
2877 * infrun.c (set_schedlock_func): Update.
2878 * target.h (target_can_lock_scheduler): Now a function.
2879
55f6301a
TT
28802020-09-28 Tom Tromey <tom@tromey.com>
2881
2882 * inferior.h (class inferior) <has_execution>: Update.
2883 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2884 * valops.c (find_function_in_inferior)
2885 (value_allocate_space_in_inferior): Update.
2886 * top.c (kill_or_detach): Update.
2887 * target.c (target_preopen, set_target_permissions): Update.
2888 (target_has_execution_current): Remove.
2889 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2890 Update.
2891 * solib.c (update_solib_list, reload_shared_libraries): Update.
2892 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2893 * solib-dsbt.c (enable_break): Update.
2894 * score-tdep.c (score7_fetch_inst): Update.
2895 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2896 Update.
2897 * remote.c (remote_target::start_remote)
2898 (remote_target::remote_check_symbols, remote_target::open_1)
2899 (remote_target::remote_detach_1, remote_target::verify_memory)
2900 (remote_target::xfer_partial, remote_target::read_description)
2901 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2902 * record-full.c (record_full_open_1): Update.
2903 * record-btrace.c (record_btrace_target_open): Update.
2904 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2905 (value_nsstring): Update.
2906 * linux-thread-db.c (add_thread_db_info)
2907 (thread_db_find_new_threads_silently, check_thread_db_callback)
2908 (try_thread_db_load_1, record_thread): Update.
2909 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2910 Update.
2911 * linux-fork.c (checkpoint_command): Update.
2912 * infrun.c (set_non_stop, set_observer_mode)
2913 (check_multi_target_resumption, for_each_just_stopped_thread)
2914 (maybe_remove_breakpoints, normal_stop)
2915 (class infcall_suspend_state): Update.
2916 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2917 (info_program_command, attach_command): Update.
2918 * infcall.c (call_function_by_hand_dummy): Update.
2919 * inf-loop.c (inferior_event_handler): Update.
2920 * gcore.c (gcore_command, derive_heap_segment): Update.
2921 * exec.c (exec_file_command): Update.
2922 * eval.c (evaluate_subexp): Update.
2923 * compile/compile.c (compile_to_object): Update.
2924 * cli/cli-dump.c (restore_command): Update.
2925 * breakpoint.c (update_watchpoint)
2926 (update_inserted_breakpoint_locations)
2927 (insert_breakpoint_locations, get_bpstat_thread): Update.
2928 * target.h (target_has_execution): Remove macro.
2929 (target_has_execution_current): Don't declare.
2930 (target_has_execution): Rename from target_has_execution_1. Add
2931 argument default.
2932
05374cfd
TT
29332020-09-28 Tom Tromey <tom@tromey.com>
2934
2935 * mi/mi-main.c (exec_reverse_continue)
2936 (mi_cmd_list_target_features): Update.
2937 * infrun.c (set_exec_direction_func): Update.
2938 * target.c (default_execution_direction): Update.
2939 * reverse.c (exec_reverse_once): Update.
2940 * target.h (target_can_execute_reverse): Now a function.
2941
9dccd06e
TT
29422020-09-28 Tom Tromey <tom@tromey.com>
2943
2944 * tui/tui-regs.c (tui_get_register)
2945 (tui_data_window::show_registers): Update.
2946 * thread.c (scoped_restore_current_thread::restore)
2947 (scoped_restore_current_thread::scoped_restore_current_thread):
2948 Update.
2949 * regcache-dump.c (regcache_print): Update.
2950 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2951 Update.
2952 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2953 * mep-tdep.c (current_me_module, current_options): Update.
2954 * linux-thread-db.c (thread_db_load): Update.
2955 * infcmd.c (registers_info, info_vector_command)
2956 (info_float_command): Update.
2957 * ia64-tdep.c (ia64_frame_prev_register)
2958 (ia64_sigtramp_frame_prev_register): Update.
2959 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2960 * gcore.c (derive_stack_segment): Update.
2961 * frame.c (get_current_frame, has_stack_frames): Update.
2962 * findvar.c (language_defn::read_var_value): Update.
2963 * arm-tdep.c (arm_pc_is_thumb): Update.
2964 * target.c (target_has_registers): Rename from
2965 target_has_registers_1.
2966 * target.h (target_has_registers): Remove macro.
2967 (target_has_registers): Rename from target_has_registers_1.
2968
841de120
TT
29692020-09-28 Tom Tromey <tom@tromey.com>
2970
2971 * windows-tdep.c (tlb_make_value): Update.
2972 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2973 * thread.c (scoped_restore_current_thread::restore)
2974 (scoped_restore_current_thread::scoped_restore_current_thread)
2975 (thread_command): Update.
2976 * stack.c (backtrace_command_1, frame_apply_level_command)
2977 (frame_apply_all_command, frame_apply_command): Update.
2978 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2979 Update.
2980 * gcore.c (derive_stack_segment): Update.
2981 * frame.c (get_current_frame, has_stack_frames): Update.
2982 * auxv.c (info_auxv_command): Update.
2983 * ada-tasks.c (ada_build_task_list): Update.
2984 * target.c (target_has_stack): Rename from target_has_stack_1.
2985 * target.h (target_has_stack): Remove macro.
2986 (target_has_stack): Rename from target_has_stack_1.
2987
a739972c
TT
29882020-09-28 Tom Tromey <tom@tromey.com>
2989
2990 * target.c (target_has_memory): Rename from target_has_memory_1.
2991 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2992 * thread.c (scoped_restore_current_thread::restore)
2993 (scoped_restore_current_thread::scoped_restore_current_thread):
2994 Update.
2995 * frame.c (get_current_frame, has_stack_frames): Update.
2996 * target.h (target_has_memory): Remove macro.
2997 (target_has_memory): Rename from target_has_memory_1.
2998
5b8a4776
TT
29992020-09-28 Tom Tromey <tom@tromey.com>
3000
3001 * target.c (target_has_all_memory_1): Remove.
3002 * target.h (target_has_all_memory): Remove define.
3003 (target_has_all_memory_1): Don't declare.
3004
bd356ec6
SM
30052020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3006
3007 * ser-base.c: Adjust comments formatting.
3008
2c72d5e5
TT
30092020-09-27 Tom Tromey <tom@tromey.com>
3010
3011 PR tui/25342:
3012 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3013
35a98237
TT
30142020-09-27 Tom Tromey <tom@tromey.com>
3015
3016 PR tui/25342:
3017 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3018
9e820dec
TT
30192020-09-27 Tom Tromey <tom@tromey.com>
3020
3021 * unittests/tui-selftests.c: Update.
3022 * tui/tui-winsource.h (struct tui_source_window_base)
3023 <extra_margin, show_line_number, refresh_pad>: New methods.
3024 <m_max_length, m_pad>: New members.
3025 (tui_copy_source_line): Update.
3026 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3027 first_col, line_width, ndigits parameters. Add length.
3028 (tui_source_window_base::show_source_line): Write to pad. Line
3029 number now 0-based.
3030 (tui_source_window_base::refresh_pad): New method.
3031 (tui_source_window_base::show_source_content): Write to pad. Call
3032 refresh_pad.
3033 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3034 not refill.
3035 (tui_source_window_base::update_exec_info): Call
3036 show_line_number.
3037 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3038 method.
3039 <m_digits>: New member.
3040 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3041 and m_max_length.
3042 (tui_source_window::show_line_number): New method.
3043 * tui/tui-io.h (tui_puts): Fix comment.
3044 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3045 m_max_length.
3046
c15c15c8
TT
30472020-09-27 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-winsource.c
3050 (tui_source_window_base::set_is_exec_point_at): Don't call
3051 show_source_line.
3052
149830c1
TT
30532020-09-27 Tom Tromey <tom@tromey.com>
3054
3055 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3056 method.
3057 <erase>: Update.
3058 <cursor_x, cursor_y>: Remove.
3059 <m_inner_window>: New member.
3060 (tui_py_window::rerender): Create inner window.
3061 (tui_py_window::output): Write to inner window.
3062
8f9929bb
GR
30632020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3064
3065 PR python/26586
3066 * cli/cli-script.c (execute_control_commands): don't set
3067 instream to nullptr here as this breaks the from_tty argument
3068 to gdb.execute in Python.
3069 (execute_user_command): set instream to nullptr here instead.
3070
956bdb59
SM
30712020-09-25 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * infrun.h (infrun_debug_printf): Fix formatting.
3074 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3075
3b93626b
SJ
30762020-09-25 Saagar Jha <saagar@saagarjha.com>
3077
3078 * compile/compile-object-load.h (struct munmap_list): Add
3079 explicitly-defined move constructor.
3080
b551a89f
TT
30812020-09-24 Tom Tromey <tromey@adacore.com>
3082
3083 PR tui/26638:
3084 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3085 method.
3086 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3087 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3088 (tui_prev_win): Rewrite.
3089
99bb393f
HD
30902020-09-23 Hannes Domani <ssbssa@yahoo.de>
3091
3092 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3093 in WOW64 processes as SIGINT.
3094 * nat/windows-nat.h: Make wow64_process a shared variable.
3095 * windows-nat.c: Remove static wow64_process variable.
3096
20a5fcbd
TT
30972020-09-23 Tom Tromey <tom@tromey.com>
3098
3099 PR symtab/25470:
3100 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3101 offset and bit size.
3102 * printcmd.c (print_scalar_formatted): Handle zero-length
3103 integer.
3104 (print_scalar_formatted): Use bit_size_differs_p.
3105 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3106 constant.
3107 (union type_specific): <int_stuff>: New member.
3108 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3109 methods.
3110 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3111 TYPE_SPECIFIC_FIELD.
3112 (recursive_dump_type, copy_type_recursive): Update.
3113 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3114 DW_AT_data_bit_offset.
3115
bac51ab7
TT
31162020-09-23 Tom Tromey <tom@tromey.com>
3117
3118 * utils.h (class gdb_argv): Add move operators.
3119 <append>: New methods.
3120 * compile/compile.c (build_argc_argv): Remove.
3121 (compile_args_argc): Remove.
3122 (compile_args_argv): Change type.
3123 (set_compile_args): Simplify.
3124 (append_args): Remove.
3125 (filter_args): Remove argcp parameter.
3126 (get_args): Return gdb_argv. Simplify.
3127 (compile_to_object): Update.
3128
92677124
TT
31292020-09-23 Tom Tromey <tom@tromey.com>
3130
3131 * compile/compile-object-run.c (do_module_cleanup)
3132 <~do_module_cleanup> :Remove.
3133 (do_module_cleanup): Update.
3134 * compile/compile-object-load.h (struct munmap_list): Add move
3135 assignment operator.
3136 <source_file>: Now a std::string.
3137 <munmap_list>: Rename. No longer a pointer.
3138 * compile/compile-object-load.c (struct setup_sections_data): Add
3139 constructor.
3140 <setup_one_section>: Declare.
3141 <munmap_list>: Move earlier.
3142 <m_bfd>: New member.
3143 <m_last_size, m_last_section_first, m_last_prot,
3144 m_last_max_alignment>: Rename, add initializers where needed.
3145 (setup_sections_data::setup_one_section): Rename from
3146 setup_sections. Update.
3147 (compile_object_load): Update. Don't use bfd_map_over_sections.
3148
e616f60a
TT
31492020-09-23 Tom Tromey <tom@tromey.com>
3150
3151 * compile/compile-object-run.c (struct do_module_cleanup): Add
3152 parameters to constructor. Update destructor.
3153 <source_file, scope, scope_data, out_value_type, out_value_addr,
3154 munmap_list_head, objfile_name_string>: Remove.
3155 <module>: New member.
3156 (do_module_cleanup): Update.
3157 (compile_object_run): Update.
3158
e947a848
TT
31592020-09-23 Tom Tromey <tom@tromey.com>
3160
3161 * compile/compile.c (eval_compile_command): Update.
3162 * compile/compile-object-run.h (compile_object_run): Take a
3163 compile_module_up.
3164 * compile/compile-object-run.c (compile_object_run): Take a
3165 compile_module_up.
3166 * compile/compile-object-load.h (struct compile_module): Add
3167 constructor, destructor.
3168 (compile_module_up): New typedef.
3169 (compile_object_load): Return compile_object_up.
3170 * compile/compile-object-load.c (compile_object_load): Return
3171 compile_module_up.
3172
0dbf6ee6
TT
31732020-09-23 Tom Tromey <tom@tromey.com>
3174
3175 * compile/compile-object-run.c (struct do_module_cleanup): Add
3176 constructor, destructor.
3177 <objfile_name_string>: Don't use struct hack.
3178 (do_module_cleanup): Use delete.
3179 (compile_object_run): Use new.
3180
ebe824f5
TT
31812020-09-23 Tom Tromey <tom@tromey.com>
3182
3183 * compile/compile-cplus-types.c
3184 (compile_cplus_convert_struct_or_union): Use std::vector.
3185 (compile_cplus_convert_func): Likewise.
3186 * compile/compile-c-types.c (convert_func): Use std::vector.
3187
5dd918d9
TT
31882020-09-21 Tom Tromey <tromey@adacore.com>
3189
3190 * sparc-tdep.c (sparc32_skip_prologue): Use
3191 skip_prologue_using_sal.
3192
5486c517
TT
31932020-09-19 Tom Tromey <tom@tromey.com>
3194
3195 * symfile.c (add_section_size_callback): Remove.
3196 (load_one_section): Rename from load_section_callback. Change
3197 parameters.
3198 (generic_load): Use foreach.
3199
8a6bb1d1
TT
32002020-09-19 Tom Tromey <tom@tromey.com>
3201
3202 * exec.c (add_to_section_table): Remove.
3203 (build_section_table): Use foreach.
3204
08f93a1a
TT
32052020-09-19 Tom Tromey <tom@tromey.com>
3206
3207 * elfread.c (elf_locate_sections): Change parameters.
3208 (elf_symfile_read): Use foreach.
3209
03cd72b8
TT
32102020-09-19 Tom Tromey <tom@tromey.com>
3211
3212 * cli/cli-dump.c (struct callback_data): Remove.
3213 (restore_one_section): Rename from restore_section_callback.
3214 Change parameters.
3215 (restore_binary_file): Change parameters.
3216 (restore_command): Use foreach.
3217
f4f2b85f
TT
32182020-09-19 Tom Tromey <tom@tromey.com>
3219
3220 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3221 (gcore_copy_callback): Likewise.
3222 (gcore_memory_sections): Use foreach.
3223
b35c1d1c
TT
32242020-09-19 Tom Tromey <tom@tromey.com>
3225
3226 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3227 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3228 parameters.
3229 (generic_elf_osabi_sniffer): Use foreach.
3230 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3231 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3232
5bb6e9dd
TT
32332020-09-19 Tom Tromey <tom@tromey.com>
3234
3235 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3236 (dwarf2_get_dwz_file): Use foreach.
3237 (dwarf2_locate_dwo_sections): Change parameters.
3238 (open_and_init_dwo_file): Use foreach.
3239 (dwarf2_locate_common_dwp_sections): Change parameters.
3240 (open_and_init_dwp_file): Use foreach.
3241
ad7277da
TT
32422020-09-19 Tom Tromey <tom@tromey.com>
3243
3244 * symfile.h: (find_lowest_section): Don't declare.
3245 * symfile.c (find_lowest_section): Now static. Change
3246 parameters.
3247 (struct place_section_arg): Remove.
3248 (place_section): Change parameters.
3249 (addr_info_make_relative): Use foreach.
3250 (symfile_dummy_outputs): Remove.
3251 (default_symfile_relocate): Use foreach.
3252
cb814f2e
TT
32532020-09-19 Tom Tromey <tom@tromey.com>
3254
3255 * objfiles.c (add_to_objfile_sections): Rename from
3256 add_to_objfile_sections_full.
3257 (add_to_objfile_sections): Remove.
3258 (build_objfile_section_table): Use foreach.
3259
3cabfd26
TT
32602020-09-19 Tom Tromey <tom@tromey.com>
3261
3262 * stap-probe.c (get_stap_base_address_1): Remove.
3263 (get_stap_base_address): Use foreach.
3264
1ce51eb5
TT
32652020-09-19 Tom Tromey <tom@tromey.com>
3266
3267 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3268 parameters.
3269 (gdb_bfd_close_or_warn): Use foreach.
3270
a190fabb
TT
32712020-09-19 Tom Tromey <tom@tromey.com>
3272
3273 * corelow.c (add_to_thread_list): Change parameters.
3274 (core_target_open): Use foreach.
3275
cafb0d81
TT
32762020-09-19 Tom Tromey <tom@tromey.com>
3277
3278 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3279 existing function.
3280
c8d5abea
AB
32812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3284 for arrays.
3285
6d816919
AB
32862020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3287
3288 * eval.c: Remove 'f-lang.h' include.
3289 (value_f90_subarray): Moved to f-lang.c.
3290 (eval_call): Renamed to...
3291 (evaluate_subexp_do_call): ...this, is no longer static, header
3292 comment moved into header file.
3293 (evaluate_funcall): Update call to eval_call.
3294 (skip_undetermined_arglist): Moved to f-lang.c.
3295 (fortran_value_subarray): Likewise.
3296 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3297 moved to evaluate_subexp_f.
3298 (calc_f77_array_dims): Moved to f-lang.c
3299 * expprint.c (print_subexp_funcall): New function.
3300 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3301 moved to print_subexp_f, OP_FUNCALL uses new function.
3302 (dump_subexp_body_funcall): New function.
3303 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3304 moved to dump_subexp_f, OP_FUNCALL uses new function.
3305 * expression.h (evaluate_subexp_do_call): Declare.
3306 * f-lang.c (value_f90_subarray): Moved from eval.c.
3307 (skip_undetermined_arglist): Likewise.
3308 (calc_f77_array_dims): Likewise.
3309 (fortran_value_subarray): Likewise.
3310 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3311 (operator_length_f): Likewise.
3312 (print_subexp_f): Likewise.
3313 (dump_subexp_body_f): Likewise.
3314 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3315 declaration of this operation to here.
3316 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3317 support moved to operator_length_f.
3318 * parser-defs.h (dump_subexp_body_funcall): Declare.
3319 (print_subexp_funcall): Declare.
3320 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3321 fortran-operator.def.
3322
8c37706a
AB
33232020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * eval.c (fortran_value_subarray): New function, content is taken
3326 from...
3327 (evaluate_subexp_standard): ...here, in two places. Now arrays
3328 and strings both call the new function.
3329 (calc_f77_array_dims): Add header comment, handle strings.
3330
14f9473c
VC
33312020-09-18 Victor Collod <vcollod@nvidia.com>
3332
3333 PR gdb/26635
3334 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3335 (i386_analyze_prologue): Call i386_skip_endbr.
3336
b60cea74
TT
33372020-09-18 Tom Tromey <tromey@adacore.com>
3338
3339 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3340 (windows_nat_target::wait): Update.
3341 * target/wait.h (enum target_wait_flag): New. Use
3342 DEF_ENUM_FLAGS_TYPE.
3343 * target/target.h (target_wait): Change type of options.
3344 * target.h (target_options_to_string, default_target_wait):
3345 Update.
3346 (struct target_ops) <wait>: Change type of options.
3347 * target.c (target_wait, default_target_wait, do_option): Change
3348 type of "options".
3349 (target_options_to_string): Likewise.
3350 * target-delegates.c: Rebuild.
3351 * target-debug.h (target_debug_print_target_wait_flags): Rename
3352 from target_debug_print_options.
3353 * sol-thread.c (class sol_thread_target) <wait>: Update.
3354 (sol_thread_target::wait): Update.
3355 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3356 (rs6000_nat_target::wait): Update.
3357 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3358 Update.
3359 (remote_target::wait_ns, remote_target::wait_as): Change type of
3360 "options".
3361 (remote_target::wait): Update.
3362 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3363 (gdbsim_target::wait): Update.
3364 * record-full.c (class record_full_base_target) <wait>: Update.
3365 (record_full_wait_1): Change type of "options".
3366 (record_full_base_target::wait): Update.
3367 * record-btrace.c (class record_btrace_target) <wait>: Update.
3368 (record_btrace_target::wait): Update.
3369 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3370 Update.
3371 (ravenscar_thread_target::wait): Update.
3372 * procfs.c (class procfs_target) <wait>: Update.
3373 (procfs_target::wait): Update.
3374 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3375 * obsd-nat.c (obsd_nat_target::wait): Update.
3376 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3377 (nto_procfs_target::wait): Update.
3378 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3379 * nbsd-nat.c (nbsd_wait): Change type of "options".
3380 (nbsd_nat_target::wait): Update.
3381 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3382 (thread_db_target::wait): Update.
3383 * linux-nat.h (class linux_nat_target) <wait>: Update.
3384 * linux-nat.c (linux_nat_target::wait): Update.
3385 (linux_nat_wait_1): Update.
3386 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3387 "options".
3388 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3389 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3390 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3391 (go32_nat_target::wait): Update.
3392 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3393 * gnu-nat.c (gnu_nat_target::wait): Update.
3394 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3395 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3396 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3397 * darwin-nat.c (darwin_nat_target::wait): Update.
3398 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3399 (bsd_uthread_target::wait): Update.
3400 * aix-thread.c (class aix_thread_target) <wait>: Update.
3401 (aix_thread_target::wait): Update.
3402
0295dde6
AB
34032020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * compile/compile-object-run.c (create_copied_type_recursive): New
3406 function.
3407 (compile_object_run): Use new function.
3408
d3483b43
JT
34092020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3410
3411 * NEWS: Mention x86_64 Cygwin core file support.
3412
e7d612ad
JT
34132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3414
3415 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3416 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3417
aff9d387
JT
34182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3419
62a5151b
JT
3420 * windows-tdep.h: Add prototypes.
3421 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3422 (i386_windows_core_pid_to_str): Move and rename ...
3423 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3424 (windows_core_pid_to_str): ... and here.
3425 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3426
34272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3428 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3429 (amd64_windows_init_abi_common): ... and register.
3430
7d155da3
JT
34312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3432
3433 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3434 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3435
e8ef12b9
PA
34362020-09-18 Pedro Alves <pedro@palves.net>
3437
3438 PR gdb/26631
3439 * thread.c (thread_find_command): Switch inferior before calling
3440 target methods.
3441
c1e1314d
TT
34422020-09-17 Tom Tromey <tromey@adacore.com>
3443
3444 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3445 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3446 (tdesc_arch_data_up): New typedef.
3447 (tdesc_use_registers, tdesc_data_alloc): Update.
3448 (tdesc_data_cleanup): Don't declare.
3449 * target-descriptions.c (tdesc_data_alloc): Return a
3450 tdesc_arch_data_up.
3451 (tdesc_arch_data_deleter::operator()): Rename from
3452 tdesc_data_cleanup. Change argument type.
3453 (tdesc_use_registers): Change early_data to an rvalue reference.
3454 (tdesc_use_registers): Don't use delete.
3455 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3456 * s390-tdep.c (s390_gdbarch_init): Update.
3457 * rx-tdep.c (rx_gdbarch_init): Update.
3458 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3459 * riscv-tdep.c (riscv_gdbarch_init): Update.
3460 * or1k-tdep.c (or1k_gdbarch_init): Update.
3461 * nios2-tdep.c (nios2_gdbarch_init): Update.
3462 * nds32-tdep.c (nds32_gdbarch_init): Update.
3463 * mips-tdep.c (mips_gdbarch_init): Update.
3464 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3465 * m68k-tdep.c (m68k_gdbarch_init): Update.
3466 * i386-tdep.c (i386_gdbarch_init): Update.
3467 * arm-tdep.c (arm_gdbarch_init): Update.
3468 * arc-tdep.c (arc_tdesc_init): Update.
3469 (arc_gdbarch_init): Update.
3470 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3471
0363df3d
HD
34722020-09-17 Hannes Domani <ssbssa@yahoo.de>
3473
3474 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3475 for WOW64 processes.
3476
280a9412
TT
34772020-09-17 Tom Tromey <tom@tromey.com>
3478
3479 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3480
6108fd18
TT
34812020-09-17 Tom Tromey <tom@tromey.com>
3482
3483 * value.c (preserve_values): Update.
3484 * python/py-type.c (save_objfile_types): Update.
3485 * guile/scm-type.c (save_objfile_types): Update.
3486 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3487 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3488 * compile/compile-object-run.c (compile_object_run): Update.
3489
fa9b1164
TT
34902020-09-17 Tom Tromey <tom@tromey.com>
3491
3492 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3493 Remove.
3494 <m_table>: Now htab_up.
3495 * typeprint.c (typedef_hash_table::recursively_update)
3496 (typedef_hash_table::add_template_parameters)
3497 (typedef_hash_table::typedef_hash_table): Update.
3498 (typedef_hash_table::~typedef_hash_table): Remove.
3499 (typedef_hash_table::typedef_hash_table)
3500 (typedef_hash_table::find_global_typedef)
3501 (typedef_hash_table::find_typedef): Update.
3502
eb53f105
TT
35032020-09-17 Tom Tromey <tom@tromey.com>
3504
3505 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3506
7a8a5d47
TT
35072020-09-17 Tom Tromey <tom@tromey.com>
3508
3509 * linespec.c (class decode_compound_collector)
3510 <~decode_compound_collector>: Remove.
3511 <m_unique_syms>: Now htab_up.
3512 (decode_compound_collector::operator ()): Update.
3513 (class symtab_collector) <~symtab_collector>: Remove.
3514 <m_symtab_table>: Now htab_up.
3515 (symtab_collector::operator ()): Update.
3516
99032cfc
TT
35172020-09-17 Tom Tromey <tom@tromey.com>
3518
3519 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3520 (filename_seen_cache::clear): Update.
3521 (~filename_seen_cache): Remove.
3522 (filename_seen_cache::seen): Update.
3523 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3524 htab_up.
3525 <~filename_seen_cache>: Remove.
3526 <traverse>: Update.
3527
32580f6d
TT
35282020-09-17 Tom Tromey <tom@tromey.com>
3529
3530 * completer.c (completion_tracker::discard_completions)
3531 (completion_tracker::~completion_tracker)
3532 (completion_tracker::maybe_add_completion)
3533 (completion_tracker::remove_completion)
3534 (completion_tracker::recompute_lowest_common_denominator)
3535 (completion_tracker::build_completion_result): Update.
3536 * completer.h (class completion_tracker) <have_completions>:
3537 Update.
3538 <m_entries_hash>: Now htab_up.
3539
c1fb9836
TT
35402020-09-17 Tom Tromey <tom@tromey.com>
3541
3542 * breakpoint.c (ambiguous_names_p): Use htab_up.
3543
88f07206
TT
35442020-09-17 Tom Tromey <tom@tromey.com>
3545
3546 * auto-load.c (struct auto_load_pspace_info)
3547 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3548 <loaded_script_files, loaded_script_texts>: Change type to
3549 htab_up.
3550 (~auto_load_pspace_info) Remove.
3551 (init_loaded_scripts_info, maybe_add_script_file)
3552 (maybe_add_script_text, auto_load_info_scripts): Update.
3553
9519b2ee
TT
35542020-09-17 Tom Tromey <tromey@adacore.com>
3555
3556 * c-exp.y (name_obstack): Now static.
3557
d2cd4113
CC
35582020-09-17 Chungyi Chi <demonic@csie.io>
3559
3560 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3561
b650a282
SM
35622020-09-16 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3565 (add_solib_catchpoint): Likewise.
3566 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3567 to bool.
3568 (add_solib_catchpoint): Change int parameter/variable to bool.
3569 (catch_load_or_unload): Likewise.
3570 (init_catchpoint): Likewise.
3571 (create_fork_vfork_event_catchpoint): Likewise.
3572 (catch_fork_command_1): Likewise.
3573 (catch_exec_command_1): Likewise.
3574
4d0bcfcf
SM
35752020-09-16 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3578 Change instance_flags to m_instance_flags.
3579
fe830662
TT
35802020-09-16 Tom Tromey <tromey@adacore.com>
3581
3582 PR gdb/26598:
3583 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3584
fe5ddfc3
JB
35852020-09-16 John Baldwin <jhb@FreeBSD.org>
3586
3587 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3588 PL_FLAG_EXEC.
3589 (fbsd_nat_target::insert_exec_catchpoint)
3590 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3591 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3592 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3593
e911c666
JB
35942020-09-16 John Baldwin <jhb@FreeBSD.org>
3595
3596 * configure.ac: Remove check for kinfo_getvmmap().
3597 * configure, config.in: Regenerate.
3598 * fbsd-nat.c (fbsd_read_mapping): Remove
3599 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3600 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3601 kinfo_get_vmmap() are always present.
3602
1f17d372
JB
36032020-09-16 John Baldwin <jhb@FreeBSD.org>
3604
3605 * fbsd-nat.c: Always include support for
3606 TARGET_OBJECT_SIGNAL_INFO.
3607
bcb1da7f
JB
36082020-09-16 John Baldwin <jhb@FreeBSD.org>
3609
3610 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3611 sysctl and remove procfs fallback.
3612
5515f729
JB
36132020-09-16 John Baldwin <jhb@FreeBSD.org>
3614
3615 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3616 * fbsd-nat.h: Likewise.
3617
da1df1db
TBA
36182020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3619
3620 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3621 argument.
3622
0e25e767
AB
36232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_language_data): Delete.
3626 (ada_language): Remove references to ada_language_data.
3627 * c-lang.c (c_language_data): Delete.
3628 (c_language): Remove references to c_language_data.
3629 (cplus_language_data): Delete.
3630 (cplus_language): Remove references to cplus_language_data.
3631 (asm_language_data): Delete.
3632 (asm_language): Remove references to asm_language_data.
3633 (minimal_language_data): Delete.
3634 (minimal_language): Remove references to minimal_language_data.
3635 * d-lang.c (d_language_data): Delete.
3636 (d_language): Remove references to d_language_data.
3637 * f-lang.c (f_language_data): Delete.
3638 (f_language): Remove references to f_language_data.
3639 * go-lang.c (go_language_data): Delete.
3640 (go_language): Remove references to go_language_data.
3641 * language.c (unknown_language_data): Delete.
3642 (unknown_language): Remove references to unknown_language_data.
3643 (auto_language_data): Delete.
3644 (auto_language): Remove references to auto_language_data.
3645 * language.h (language_data): Delete struct.
3646 (language_defn): No longer inherit from language_data.
3647 * m2-lang.c (m2_language_data): Delete.
3648 (m2_language): Remove references to m2_language_data.
3649 * objc-lang.c (objc_language_data): Delete.
3650 (objc_language): Remove references to objc_language_data.
3651 * opencl-lang.c (opencl_language_data): Delete.
3652 (opencl_language): Remove references to opencl_language_data.
3653 * p-lang.c (pascal_language_data): Delete.
3654 (pascal_language): Remove references to pascal_language_data.
3655 * rust-lang.c (rust_language_data): Delete.
3656 (rust_language): Remove references to rust_language_data.
3657
b7c6e27d
AB
36582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3661 initializer.
3662 (ada_language::opcode_print_table): New member function.
3663 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3664 (c_language::opcode_print_table): New member function.
3665 (cplus_language_data): Remove la_op_print_tab initializer.
3666 (cplus_language::opcode_print_table): New member function.
3667 (asm_language_data): Remove la_op_print_tab initializer.
3668 (asm_language::opcode_print_table): New member function.
3669 (minimal_language_data): Remove la_op_print_tab initializer.
3670 (minimal_language::opcode_print_table): New member function.
3671 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3672 (d_language::opcode_print_table): New member function.
3673 * expprint.c (print_subexp_standard): Update call to
3674 opcode_print_table.
3675 (op_string): Likewise.
3676 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3677 (f_language::opcode_print_table): New member function.
3678 * go-lang.c (go_language_data): Remove la_op_print_tab
3679 initializer.
3680 (go_language::opcode_print_table): New member function.
3681 * language.c (unknown_language_data): Remove la_op_print_tab
3682 initializer.
3683 (unknown_language::opcode_print_table): New member function.
3684 (auto_language_data): Remove la_op_print_tab initializer.
3685 (auto_language::opcode_print_table): New member function.
3686 * language.h (language_data): Remove la_op_print_tab field.
3687 (language_defn::opcode_print_table): Declare new member function.
3688 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3689 initializer.
3690 (m2_language::opcode_print_table): New member function.
3691 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3692 initializer.
3693 (objc_language::opcode_print_table): New member function.
3694 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3695 initializer.
3696 (opencl_language::opcode_print_table): New member function.
3697 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3698 initializer.
3699 (pascal_language::opcode_print_table): New member function.
3700 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3701 initializer.
3702 (rust_language::opcode_print_table): New member function.
3703
5aba6ebe
AB
37042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3707 (ada_language::expression_ops): New member function.
3708 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3709 (c_language::expression_ops): New member function.
3710 (cplus_language_data): Remove la_exp_desc initializer.
3711 (cplus_language::expression_ops): New member function.
3712 (asm_language_data): Remove la_exp_desc initializer.
3713 (asm_language::expression_ops): New member function.
3714 (minimal_language_data): Remove la_exp_desc initializer.
3715 (minimal_language::expression_ops): New member function.
3716 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3717 (d_language::expression_ops): New member function.
3718 * eval.c (evaluate_subexp): Update call to expression_ops.
3719 * expprint.c (print_subexp): Likewise.
3720 (op_name): Likewise.
3721 (dump_subexp_body): Likewise.
3722 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3723 (f_language::expression_ops): New member function.
3724 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3725 (go_language::expression_ops): New member function.
3726 * language.c (language_defn::expression_ops): New function.
3727 (unknown_language_data): Remove la_exp_desc initializer.
3728 (auto_language_data): Likewise.
3729 * language.h (language_data): Remove la_exp_desc field.
3730 (language_defn::expression_ops): Declare new member function.
3731 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3732 (m2_language::expression_ops): New member function.
3733 * objc-lang.c (objc_language_data): Remove la_exp_desc
3734 initializer.
3735 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3736 initializer.
3737 (opencl_language::expression_ops): New member function.
3738 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3739 * parse.c (operator_length): Update call to expression_ops.
3740 (exp_iterate): Likewise.
3741 * rust-lang.c (rust_language_data): Remove la_exp_desc
3742 initializer.
3743 (ruse_language::expression_ops): New member function.
3744
b63a3f3f
AB
37452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3746
3747 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3748 initializer.
3749 (ada_language::varobj_ops): New member function.
3750 * c-lang.c (c_language_data): Remove la_varobj_ops
3751 initializer.
3752 (cplus_language_data): Likewise.
3753 (cplus_language::varobj_ops): New member function.
3754 (asm_language_data): Remove la_varobj_ops initializer.
3755 (minimal_language_data): Likewise.
3756 * d-lang.c (d_language_data): Likewise.
3757 * f-lang.c (f_language_data): Likewise.
3758 * go-lang.c (go_language_data): Likewise.
3759 * language.c (language_defn::varobj_ops): New function.
3760 (unknown_language_data): Remove la_varobj_ops
3761 initializer.
3762 (auto_language_data): Likewise.
3763 * language.h (language_data): Remove la_varobj_ops field.
3764 (language_defn::varobj_ops): Declare new member function.
3765 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3766 * objc-lang.c (objc_language_data): Likewise.
3767 * opencl-lang.c (opencl_language_data): Likewise.
3768 * p-lang.c (pascal_language_data): Likewise.
3769 * rust-lang.c (rust_language_data): Likewise.
3770 * varobj.c (varobj_create): Update call to varobj_ops.
3771 * varobj.h (default_varobj_ops): Delete define.
3772
1ac14a04
AB
37732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3776 initializer.
3777 * c-lang.c (c_language_data): Likewise.
3778 (c_language::macro_expansion): New member function.
3779 (cplus_language_data): Likewise.
3780 (cplus_language::macro_expansion): New member function.
3781 (asm_language_data): Likewise.
3782 (asm_language::macro_expansion): New member function.
3783 (minimal_language_data): Likewise.
3784 (minimal_language::macro_expansion): New member function.
3785 * d-lang.c (d_language_data): Remove la_macro_expansion
3786 initializer.
3787 * f-lang.c (f_language_data): Likewise.
3788 * go-lang.c (go_language_data): Likewise.
3789 * language.c (unknown_language_data): Likewise.
3790 (auto_language_data): Likewise.
3791 * language.h (language_data): Remove la_macro_expansion field.
3792 (language_defn::macro_expansion): New member function.
3793 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3794 initializer.
3795 * objc-lang.c (objc_language_data): Likewise.
3796 (objc_language::macro_expansion): New member function.
3797 * opencl-lang.c (opencl_language_data): Likewise.
3798 (opencl_language::macro_expansion): New member function.
3799 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3800 initializer.
3801 * rust-lang.c (rust_language_data): Likewise.
3802 * symtab.c (default_collect_symbol_completion_matches_break_on):
3803 Update call to macro_expansion.
3804
3a3440fb
AB
38052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * ada-lang.c (ada_language_data): Remove la_array_ordering
3808 initializer.
3809 * c-lang.c (c_language_data): Likewise.
3810 (cplus_language_data): Likewise.
3811 (asm_language_data): Likewise.
3812 (minimal_language_data): Likewise.
3813 * d-lang.c (d_language_data): Likewise.
3814 * dwarf2/read.c (read_array_order): Update for call to
3815 array_ordering.
3816 * f-lang.c (f_language_data): Remove la_array_ordering
3817 initializer.
3818 (f_language::array_ordering): New member function.
3819 * go-lang.c (go_language_data): Remove la_array_ordering
3820 initializer.
3821 * language.c (unknown_language_data): Likewise.
3822 (auto_language_data): Likewise.
3823 * language.h (language_data): Delete la_array_ordering field.
3824 (language_defn::array_ordering): New member function.
3825 * m2-lang.c (m2_language_data): Remove la_array_ordering
3826 initializer.
3827 * objc-lang.c (objc_language_data): Likewise.
3828 * opencl-lang.c (opencl_language_data): Likewise.
3829 * p-lang.c (pascal_language_data): Likewise.
3830 * rust-lang.c (rust_language_data): Likewise.
3831
0d201fa4
AB
38322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3835 initializer.
3836 * c-lang.c (c_language_data): Likewise.
3837 (cplus_language_data): Likewise.
3838 (asm_language_data): Likewise.
3839 (minimal_language_data): Likewise.
3840 * d-lang.c (d_language_data): Likewise.
3841 * f-lang.c (f_language_data): Likewise.
3842 (f_language::case_sensitivity): New member function.
3843 * go-lang.c (go_language_data): Remove la_case_sensitivity
3844 initializer.
3845 * language.c (enum case_mode): Moved here from language.h.
3846 (case_mode): Make static.
3847 (show_case_command): Update for case_sensitivity being a method.
3848 (set_case_command): Likewise.
3849 (set_range_case): Likewise.
3850 (unknown_language_data): Remove la_case_sensitivity initializer.
3851 (auto_language_data): Likewise.
3852 * language.h (case_mode): Delete, move enum declaration to
3853 language.c.
3854 (language_data): Delete la_case_sensitivity field.
3855 (language_defn::case_sensitivity): New member function.
3856 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3857 initializer.
3858 * objc-lang.c (objc_language_data): Likewise.
3859 * opencl-lang.c (opencl_language_data): Likewise.
3860 * p-lang.c (pascal_language_data): Likewise.
3861 * rust-lang.c (rust_language_data): Likewise.
3862
efdf6a73
AB
38632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_language_data): Remove la_range_check
3866 initializer.
3867 * c-lang.c (c_language_data): Likewise.
3868 (cplus_language_data): Likewise.
3869 (asm_language_data): Likewise.
3870 (minimal_language_data): Likewise.
3871 * d-lang.c (d_language_data): Likewise.
3872 * f-lang.c (f_language_data): Likewise.
3873 (f_language::range_checking_on_by_default): New member function.
3874 * go-lang.c (go_language_data): Remove la_range_check initializer.
3875 * language.c (enum range_mode): Moved here from language.h.
3876 (range_mode): Made static.
3877 (show_range_command): Update to use
3878 range_checking_on_by_default.
3879 (set_range_command): Likewise.
3880 (set_range_case): Likewise.
3881 (unknown_language_data): Remove la_range_check initializer.
3882 (auto_language_data): Likewise.
3883 * language.h (range_mode): Delete. Enum definition moved to
3884 language.c.
3885 (language_data): Remove la_range_check field.
3886 (language_defn::range_checking_on_by_default): New member
3887 function.
3888 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3889 (m2_language::range_checking_on_by_default): New member function.
3890 * objc-lang.c (objc_language_data): Remove la_range_check
3891 initializer.
3892 * opencl-lang.c (opencl_language_data): Likewise.
3893 * p-lang.c (pascal_language_data): Likewise.
3894 (pascal_language::range_checking_on_by_default): New member
3895 function.
3896 * rust-lang.c (rust_language_data): Remove la_range_check
3897 initializer.
3898 (rust_language::range_checking_on_by_default): New member
3899 function.
3900
bf92aec5
AB
39012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * dwarf2/read.c (dwarf2_physname): Remove special case for
3904 language_go.
3905 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3906 member function.
3907
d3355e4d
AB
39082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * ada-lang.c (ada_language_data): Remove
3911 la_store_sym_names_in_linkage_form_p initializer.
3912 (ada_language::store_sym_names_in_linkage_form_p): New member
3913 function.
3914 * c-lang.c (c_language_data): Remove
3915 la_store_sym_names_in_linkage_form_p initializer.
3916 (c_language::store_sym_names_in_linkage_form_p): New member
3917 function.
3918 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3919 initializer.
3920 (asm_language_data): Likewise.
3921 (asm_language::store_sym_names_in_linkage_form_p): New member
3922 function.
3923 (minimal_language_data): Remove
3924 la_store_sym_names_in_linkage_form_p initializer.
3925 (minimal_language::store_sym_names_in_linkage_form_p): New member
3926 function.
3927 * d-lang.c (d_language_data): Remove
3928 la_store_sym_names_in_linkage_form_p initializer.
3929 * dwarf2/read.c (dwarf2_physname): Update call to
3930 store_sym_names_in_linkage_form_p.
3931 * f-lang.c (f_language_data): Remove
3932 la_store_sym_names_in_linkage_form_p initializer.
3933 * go-lang.c (go_language_data): Remove
3934 la_store_sym_names_in_linkage_form_p initializer.
3935 * language.c (unknown_language_data): Remove
3936 la_store_sym_names_in_linkage_form_p initializer.
3937 (unknown_language::store_sym_names_in_linkage_form_p): New member
3938 function.
3939 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3940 initializer.
3941 (auto_language::store_sym_names_in_linkage_form_p): New member
3942 function.
3943 * language.h (language_data): Remove
3944 la_store_sym_names_in_linkage_form_p member variable.
3945 (language_defn::store_sym_names_in_linkage_form_p): New member
3946 function.
3947 * m2-lang.c (m2_language_data): Remove
3948 la_store_sym_names_in_linkage_form_p initializer.
3949 * objc-lang.c (objc_language_data): Likewise.
3950 * opencl-lang.c (opencl_language_data): Likewise.
3951 * p-lang.c (pascal_language_data): Likewise.
3952 * rust-lang.c (rust_language_data): Likewise.
3953
22c12a6c
AB
39542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3955
3956 * ada-lang.c (ada_language_data): Remove string_lower_bound
3957 initializer.
3958 * c-lang.c (c_language_data): Likewise.
3959 (cplus_language_data): Likewise.
3960 (asm_language_data): Likewise.
3961 (minimal_language_data): Likewise.
3962 * d-lang.c (d_language_data): Likewise.
3963 * f-lang.c (f_language_data): Likewise.
3964 * go-lang.c (go_language_data): Likewise.
3965 * language.c (unknown_language_data): Likewise.
3966 (auto_language_data): Likewise.
3967 * language.h (language_data): Remove string_lower_bound field.
3968 (language_defn::string_lower_bound): New member function.
3969 * m2-lang.c (m2_language_data): Remove string_lower_bound
3970 initializer.
3971 (m2_language::string_lower_bound): New member function.
3972 * objc-lang.c (objc_language_data): Remove string_lower_bound
3973 initializer.
3974 * opencl-lang.c (opencl_language_data): Likewise.
3975 * p-lang.c (pascal_language_data): Likewise.
3976 * rust-lang.c (rust_language_data): Likewise.
3977 * valops.c (value_cstring): Update call to string_lower_bound.
3978 (value_string): Likewise.
3979 * value.c (allocate_repeated_value): Likewise.
3980
1c236ddd
AB
39812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3982
3983 * valops.c (value_repeat): Fix incorrect argument name in comment.
3984
67bd3fd5
AB
39852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * ada-lang.c (ada_language_data): Remove c_style_arrays
3988 initializer.
3989 (ada_language::c_style_arrays_p): New member fuction.
3990 * c-lang.c (c_language_data): Remove c_style_arrays
3991 initializer.
3992 (cplus_language_data): Likewise.
3993 (asm_language_data): Likewise.
3994 (minimal_language_data): Likewise.
3995 * d-lang.c (d_language_data): Likewise.
3996 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3997 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3998 (f_language::c_style_arrays_p): New member function.
3999 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4000 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4001 * language.c (unknown_language_data): Remove c_style_arrays
4002 initializer.
4003 (auto_language_data): Likewise.
4004 * language.h (language_data): Remove c_style_arrays field.
4005 (language_defn::c_style_arrays_p): New member function.
4006 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4007 (m2_language::c_style_arrays_p): New member function.
4008 * objc-lang.c (objc_language_data): Remove c_style_arrays
4009 initializer.
4010 * opencl-lang.c (opencl_language_data): Likewise.
4011 * p-lang.c (pascal_language_data): Likewise.
4012 * rust-lang.c (rust_language_data): Likewise.
4013 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4014 and update local variable to a bool.
4015 * valops.c (value_cast): Update call to c_style_arrays_p.
4016 (value_array): Likewise.
4017 * value.c (coerce_array): Likewise.
4018
85967615
AB
40192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * ada-lang.c (ada_language_data): Remove la_language initializer.
4022 * c-lang.c (c_language_data): Likewise.
4023 (cplus_language_data): Likewise.
4024 (asm_language_data): Likewise.
4025 (minimal_language_data): Likewise.
4026 * d-lang.c (d_language_data): Likewise.
4027 * f-lang.c (f_language_data): Likewise.
4028 * go-lang.c (go_language_data): Likewise.
4029 * language.c (unknown_language_data): Likewise.
4030 (auto_language_data): Likewise.
4031 * language.h (language_data): Remove la_language field.
4032 (language_defn::language_defn): Initialise la_language field.
4033 (language_defn::la_language): New member variable.
4034 * m2-lang.c (m2_language_data): Remove la_language field.
4035 * objc-lang.c (objc_language_data): Likewise.
4036 * opencl-lang.c (opencl_language_data): Likewise.
4037 * p-lang.c (pascal_language_data): Likewise.
4038 * rust-lang.c (rust_language_data): Likewise.
4039
e171d6f1
AB
40402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * ada-lang.c (ada_extensions): Delete, moved into
4043 ada_language::filename_extensions.
4044 (ada_language_data): Remove la_filename_extensions initializer.
4045 (ada_language::filename_extensions): New member function.
4046 * c-lang.c (c_extensions): Delete, moved into
4047 c_language::filename_extensions.
4048 (c_language_data): Remove la_filename_extensions initializer.
4049 (c_language::filename_extensions): New member function.
4050 (cplus_extensions): Delete, moved into
4051 cplus_language::filename_extensions.
4052 (cplus_language_data): Remove la_filename_extensions initializer.
4053 (cplus_language::filename_extensions): New member function.
4054 (asm_extensions): Delete, moved into
4055 asm_language::filename_extensions.
4056 (asm_language_data): Remove la_filename_extensions initializer.
4057 (asm_language::filename_extensions): New member function.
4058 (minimal_language_data): Remove la_filename_extensions
4059 initializer.
4060 * d-lang.c (d_extensions): Delete, moved into
4061 d_language::filename_extensions.
4062 (d_language_data): Remove la_filename_extensions initializer.
4063 (d_language::filename_extensions): New member function.
4064 * f-lang.c (f_extensions): Delete, moved into
4065 f_language::filename_extensions.
4066 (f_language_data): Remove la_filename_extensions initializer.
4067 (f_language::filename_extensions): New member function.
4068 * go-lang.c (go_language_data): Remove la_filename_extensions
4069 initializer.
4070 * language.c (add_set_language_command): Update now that
4071 filename_extensions returns a vector.
4072 (unknown_language_data): Remove la_filename_extensions
4073 initializer.
4074 (auto_language_data): Likewise.
4075 * language.h (language_data): Remove la_filename_extensions field.
4076 (language_defn::filename_extensions): New member function.
4077 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4078 initializer.
4079 * objc-lang.c (objc_extensions): Delete, moved into
4080 objc_language::filename_extensions.
4081 (objc_language_data): Remove la_filename_extensions initializer.
4082 (objc_language::filename_extensions): New member function.
4083 * opencl-lang.c (opencl_language_data): Remove
4084 la_filename_extensions initializer.
4085 * p-lang.c (pascal_extensions): Delete, moved into
4086 pascal_language::filename_extensions.
4087 (pascal_language_data): Remove la_filename_extensions initializer.
4088 (pascal_language::filename_extensions): New member function.
4089 * rust-lang.c (rust_extensions): Delete, moved into
4090 rust_language::filename_extensions.
4091 (rust_language_data): Remove la_filename_extensions initializer.
4092 (rust_language::filename_extensions): New member function.
4093 * symfile.c (add_filename_language): Add new assert.
4094
6f7664a9
AB
40952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4096
4097 * ada-lang.c (ada_language_data): Remove la_name and
4098 la_natural_name initializers.
4099 (ada_language::name): New member function.
4100 (ada_language::natural_name): New member function.
4101 * c-lang.c (c_language_data): Remove la_name and
4102 la_natural_name initializers.
4103 (c_language::name): New member function.
4104 (c_language::natural_name): New member function.
4105 (cplus_language_data): Remove la_name and
4106 la_natural_name initializers.
4107 (cplus_language::name): New member function.
4108 (cplus_language::natural_name): New member function.
4109 (asm_language_data): Remove la_name and
4110 la_natural_name initializers.
4111 (asm_language::name): New member function.
4112 (asm_language::natural_name): New member function.
4113 (minimal_language_data): Remove la_name and
4114 la_natural_name initializers.
4115 (minimal_language::name): New member function.
4116 (minimal_language::natural_name): New member function.
4117 * compile/compile.c (compile_to_object): Update call to
4118 lanugage_defn::name.
4119 * d-lang.c (d_language_data): Remove la_name and
4120 la_natural_name initializers.
4121 (d_language::name): New member function.
4122 (d_language::natural_name): New member function.
4123 * expprint.c (print_subexp_standard): Update call to
4124 language_defn::name.
4125 (dump_raw_expression): Likewise
4126 (dump_prefix_expression): Likewise.
4127 * f-lang.c (f_language_data): Remove la_name and
4128 la_natural_name initializers.
4129 (f_language::name): New member function.
4130 (f_language::natural_name): New member function.
4131 * go-lang.c (go_language_data): Remove la_name and
4132 la_natural_name initializers.
4133 (go_language::name): New member function.
4134 (go_language::natural_name): New member function.
4135 * language.c (show_language_command): Update call to
4136 language_defn::name.
4137 (set_language_command): Likewise.
4138 (language_enum): Likewise.
4139 (language_str): Likewise.
4140 (add_set_language_command): Likewise, use
4141 language_defn::natural_name in the doc string.
4142 (unknown_language_data): Remove la_name and
4143 la_natural_name initializers.
4144 (unknown_language::name): New member function.
4145 (unknown_language::natural_name): New member function.
4146 (auto_language_data): Remove la_name and
4147 la_natural_name initializers.
4148 (auto_language::name): New member function.
4149 (auto_language::natural_name): New member function.
4150 (language_lookup_primitive_type_as_symbol): Update call to
4151 language_defn::name.
4152 * language.h (language_data): Remove la_name and la_natural_name
4153 member variables.
4154 (language_defn::name): New member function.
4155 (language_defn::natural_name): New member function.
4156 * m2-lang.c (m2_language_data): Remove la_name and
4157 la_natural_name initializers.
4158 (m2_language::name): New member function.
4159 (m2_language::natural_name): New member function.
4160 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4161 language_defn::natural_name.
4162 * objc-lang.c (objc_language_data): Remove la_name and
4163 la_natural_name initializers.
4164 (objc_language::name): New member function.
4165 (objc_language::natural_name): New member function.
4166 * opencl-lang.c (opencl_language_data): Remove la_name and
4167 la_natural_name initializers.
4168 (opencl_language::name): New member function.
4169 (opencl_language::natural_name): New member function.
4170 * p-lang.c (pascal_language_data): Remove la_name and
4171 la_natural_name initializers.
4172 (pascal_language::name): New member function.
4173 (pascal_language::natural_name): New member function.
4174 * rust-lang.c (rust_language_data): Remove la_name and
4175 la_natural_name initializers.
4176 (rust_language::name): New member function.
4177 (rust_language::natural_name): New member function.
4178 * symtab.c (lookup_language_this): Update call to
4179 language_defn::name.
4180
5bae7c4e
AB
41812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * ada-lang.c (ada_language_data): Remove la_name_of_this
4184 initializer.
4185 * ax-gdb.c (gen_expr): Update call to name_of_this.
4186 * c-exp.y (classify_name): Likewise.
4187 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4188 (cplus_language_data): Likewise.
4189 (cplus_language::name_of_this): New member function.
4190 (asm_language_data): Remove la_name_of_this initializer.
4191 (minimal_language_data): Likewise.
4192 * d-lang.c (d_language_data): Likewise.
4193 (d_language::name_of_this): New member function.
4194 * expprint.c (print_subexp_standard): Update call to name_of_this.
4195 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4196 * go-lang.c (go_language_data): Likewise.
4197 * language.c (unknown_language_data): Likewise.
4198 (unknown_language::name_of_this): New member function.
4199 (auto_language_data): Remove la_name_of_this initializer.
4200 (auto_language::name_of_this): New member function.
4201 * language.h (language_data): Delete la_name_of_this member
4202 variable.
4203 (language_defn::name_of_this): New member function.
4204 * m2-lang.c (m2_language_data): Remove la_name_of_this
4205 initializer.
4206 * objc-lang.c (objc_language_data): Likewise.
4207 (objc_language::name_of_this): New member function.
4208 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4209 initializer.
4210 * p-lang.c (pascal_language_data): Likewise.
4211 (pascal_language::name_of_this): New member function.
4212 * rust-lang.c (rust_language_data): Remove la_name_of_this
4213 initializer.
4214 * symtab.c (lookup_language_this): Update call to name_of_this.
4215 (lookup_symbol_aux): Likewise.
4216 * valops.c (value_of_this): Likewise.
4217
22e3f3ed
AB
42182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4219
4220 * ada-lang.c (ada_language_data): Remove
4221 la_struct_too_deep_ellipsis initializer.
4222 (ada_language::struct_too_deep_ellipsis): New member function.
4223 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4224 initializer.
4225 (cplus_language_data): Likewise.
4226 (asm_language_data): Likewise.
4227 (minimal_language_data): Likewise.
4228 * cp-valprint.c (cp_print_value): Update call to
4229 struct_too_deep_ellipsis.
4230 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4231 initializer.
4232 * f-lang.c (f_language_data): Likewise.
4233 (f_language::struct_too_deep_ellipsis): New member function.
4234 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4235 initializer.
4236 * language.c (unknown_language_data): Likewise.
4237 (auto_language_data): Likewise.
4238 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4239 member variable.
4240 (language_defn::struct_too_deep_ellipsis): New member function.
4241 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4242 initializer.Q
4243 * objc-lang.c (objc_language_data): Likewise.
4244 * opencl-lang.c (opencl_language_data): Likewise.
4245 * p-lang.c (pascal_language_data): Likewise.
4246 * rust-lang.c (rust_language_data): Likewise.
4247 * valprint.c (val_print_check_max_depth): Update call to
4248 struct_too_deep_ellipsis.
4249
ed29e1c7
FW
42502020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4251
4252 * MAINTAINERS (Write After Approval): Add myself.
4253
12d8f940
TT
42542020-09-15 Tom Tromey <tom@tromey.com>
4255
4256 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4257 Remove.
4258
6b5a7bc7
TT
42592020-09-15 Tom Tromey <tom@tromey.com>
4260
4261 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4262 and TYPE_CODE_METHODPTR cases.
4263 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4264 (c_value_print_inner): Update.
4265 * valprint.c (generic_value_print_memberptr): New function, from
4266 c_value_print_memberptr.
4267 (generic_value_print): Use it. Call cplus_print_method_ptr.
4268
47f0e2ff
TT
42692020-09-15 Tom Tromey <tromey@adacore.com>
4270
4271 * python/python-internal.h (PyInt_FromLong): Remove define.
4272 * python/py-value.c (convert_value_from_python): Use
4273 gdb_py_object_from_longest.
4274 * python/py-type.c (typy_get_code): Use
4275 gdb_py_object_from_longest.
4276 * python/py-symtab.c (salpy_get_line): Use
4277 gdb_py_object_from_longest.
4278 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4279 gdb_py_object_from_longest.
4280 * python/py-record.c (recpy_gap_reason_code): Use
4281 gdb_py_object_from_longest.
4282 * python/py-record-btrace.c (recpy_bt_insn_size)
4283 (recpy_bt_func_level, btpy_list_count): Use
4284 gdb_py_object_from_longest.
4285 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4286 gdb_py_object_from_longest. Fix error handling.
4287 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4288 gdb_py_object_from_longest.
4289 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4290 gdb_py_object_from_longest.
4291 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4292 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4293 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4294
512116ce
TT
42952020-09-15 Tom Tromey <tromey@adacore.com>
4296
4297 * python/python.c (gdbpy_parameter_value): Use
4298 gdb_py_object_from_ulongest.
4299
4ab1029c
TT
43002020-09-15 Tom Tromey <tromey@adacore.com>
4301
4302 * python/py-infevents.c (create_register_changed_event_object):
4303 Use gdb_py_object_from_longest.
4304 * python/py-exitedevent.c (create_exited_event_object): Use
4305 gdb_py_object_from_longest.
4306
062534d4
TT
43072020-09-15 Tom Tromey <tromey@adacore.com>
4308
4309 * python/python.c (gdbpy_parameter_value): Use
4310 gdb_py_object_from_longest.
4311 * python/py-type.c (convert_field, typy_range): Use
4312 gdb_py_object_from_longest.
4313 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4314 gdb_py_object_from_longest.
4315 * python/py-lazy-string.c (stpy_get_length): Use
4316 gdb_py_object_from_longest.
4317 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4318 gdb_py_object_from_longest.
4319 * python/py-infevents.c (create_memory_changed_event_object): Use
4320 gdb_py_object_from_longest.
4321 * python/py-inferior.c (infpy_get_num): Use
4322 gdb_py_object_from_longest.
4323 (infpy_get_pid): Likewise.
4324
d1cab987
TT
43252020-09-15 Tom Tromey <tromey@adacore.com>
4326
4327 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4328 defines.
4329 * python/py-value.c (valpy_long): Use
4330 gdb_py_object_from_ulongest.
4331 * python/py-symtab.c (salpy_get_pc): Use
4332 gdb_py_object_from_ulongest.
4333 (salpy_get_last): Likewise.
4334 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4335 gdb_py_object_from_ulongest.
4336 * python/py-lazy-string.c (stpy_get_address): Use
4337 gdb_py_object_from_ulongest.
4338 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4339 * python/py-arch.c (archpy_disassemble): Use
4340 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4341 error handling.
4342
4bde49dc
TT
43432020-09-15 Tom Tromey <tromey@adacore.com>
4344
4345 * python/python-internal.h (gdb_py_long_from_longest): Remove
4346 defines.
4347 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4348 * python/py-type.c (convert_field, typy_get_sizeof): Use
4349 gdb_py_object_from_longest.
4350 * python/py-record-btrace.c (btpy_list_index): Use
4351 gdb_py_object_from_longest.
4352
37431074
TT
43532020-09-15 Tom Tromey <tromey@adacore.com>
4354
4355 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4356 * python/py-record.c (recpy_element_number): Use
4357 gdb_py_object_from_longest.
4358 (recpy_gap_number): Likewise.
4359
cbe25684
TT
43602020-09-15 Tom Tromey <tromey@adacore.com>
4361
4362 * top.c (ui::ui): Update.
4363 (highest_ui_num): Remove.
4364 * top.h (struct ui) <num>: Remove.
4365
db92ac45
TT
43662020-09-15 Tom Tromey <tromey@adacore.com>
4367
4368 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4369 * ui-style.c (ansi_regex_text): Now array.
4370 * rust-exp.y (number_regex_text): Now array.
4371 * linespec.c (linespec_quote_characters): Now array.
4372 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4373 Now arrays.
4374
d2b31b67
SM
43752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4376
4377 * debuginfod-support.c (debuginfod_client_deleter): New.
4378 (debuginfod_client_up): New.
4379 (debuginfod_init): Return debuginfod_client_up.
4380 (debuginfod_source_query): Adjust.
4381 (debuginfod_debuginfo_query): Adjust.
4382
3246bd8e
SM
43832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * debuginfod-support.c (debuginfod_source_query): Use
4386 make_unique_xstrdup.
4387
10242f36
SM
43882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4391 with `type::instance_flags`.
4392
e1044e6a
MM
43932020-09-14 Michael Mullin <masmullin@gmail.com>
4394
4395 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4396 Remove baton parameter.
4397
04902b09
PA
43982020-09-14 Pedro Alves <pedro@palves.net>
4399
4400 * Makefile.in (SELFTESTS_SRCS): Add
4401 unittests/enum-flags-selftests.c.
4402 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4403 btrace_function_flags instead of enum btrace_function_flag.
4404 * compile/compile-c-types.c (convert_qualified): Use
4405 enum_flags::raw.
4406 * compile/compile-cplus-symbols.c (convert_one_symbol)
4407 (convert_symbol_bmsym):
4408 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4409 (compile_cplus_convert_struct_or_union_methods)
4410 (compile_cplus_instance::convert_qualified_base):
4411 * go-exp.y (parse_string_or_char): Add cast to int.
4412 * unittests/enum-flags-selftests.c: New file.
4413 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4414 type to btrace_thread_flags from btrace_thread_flag.
4415 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4416 local's type to btrace_thread_flags from btrace_thread_flag. Add
4417 cast in DEBUG call.
4418
69896a2c
PA
44192020-09-14 Pedro Alves <pedro@palves.net>
4420
4421 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4422 * gdbtypes.c (address_space_name_to_int): Rename to ...
4423 (address_space_name_to_type_instance_flags): ... this.
4424 (address_space_int_to_name): Rename to ...
4425 (address_space_type_instance_flags_to_name): ... this.
4426 * gdbtypes.h (address_space_name_to_int): Rename to ...
4427 (address_space_name_to_type_instance_flags): ... this.
4428 (address_space_int_to_name): Rename to ...
4429 (address_space_type_instance_flags_to_name): ... this.
4430 * type-stack.c (type_stack::insert): Adjust to rename.
4431 * type-stack.h (type_stack::insert): Likewise.
4432
314ad88d
PA
44332020-09-14 Pedro Alves <pedro@palves.net>
4434 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * avr-tdep.c (avr_address_class_type_flags): Return
4437 type_instance_flags.
4438 (avr_address_class_type_flags_to_name): Take a
4439 type_instance_flags.
4440 (avr_address_class_name_to_type_flags): Return bool and take a
4441 type_instance_flags.
4442 * d-lang.c (build_d_types): Use type::set_instance_flags.
4443 * ft32-tdep.c (ft32_address_class_type_flags): Return
4444 type_instance_flags.
4445 (ft32_address_class_type_flags_to_name): Take a
4446 type_instance_flags.
4447 (ft32_address_class_name_to_type_flags): Return bool and take a
4448 type_instance_flags.
4449 (ft32_gdbarch_init): Use type::set_instance_flags.
4450 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4451 * gdbarch.h, gdbarch.c: Regenerate.
4452 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4453 (address_class_name_to_type_flags): Use type_instance_flags and
4454 bool.
4455 * gdbtypes.c (address_space_name_to_int)
4456 (address_space_int_to_name, make_qualified_type): Use
4457 type_instance_flags.
4458 (make_qualified_type): Use type_instance_flags and
4459 type::set_instance_flags.
4460 (make_type_with_address_space, make_cv_type, make_vector_type)
4461 (check_typedef): Use type_instance_flags.
4462 (recursive_dump_type): Cast type_instance_flags to unsigned for
4463 printing.
4464 (copy_type_recursive): Use type::set_instance_flags.
4465 (gdbtypes_post_init): Use type::set_instance_flags.
4466 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4467 <m_instance_flags>: ... this.
4468 <instance_flags, set_instance_flags>: New methods.
4469 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4470 (SET_TYPE_INSTANCE_FLAGS): New.
4471 (address_space_name_to_int, address_space_int_to_name)
4472 (make_type_with_address_space): Pass flags using
4473 type_instance_flags instead of int.
4474 * stabsread.c (cleanup_undefined_types_noname): Use
4475 type::set_instance_flags.
4476 * s390-tdep.c (s390_address_class_type_flags): Return
4477 type_instance_flags.
4478 (s390_address_class_type_flags_to_name): Take a
4479 type_instance_flags.
4480 (s390_address_class_name_to_type_flags): Return bool and take a
4481 type_instance_flags.
4482 * type-stack.c (type_stack::follow_types): Use
4483 type_instance_flags.
4484 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4485
27087b7f
TT
44862020-09-14 Tom Tromey <tromey@adacore.com>
4487
4488 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4489 * x86-tdep.c (x86_is_thunk_register_name)
4490 (x86_in_indirect_branch_thunk): Update.
4491 * sparc64-tdep.c (sparc64_fpu_register_names)
4492 (sparc64_cp0_register_names, sparc64_register_names)
4493 (sparc64_pseudo_register_names): Now const.
4494 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4495 cp0_registers_num>: Now const.
4496 * sparc-tdep.c (sparc_core_register_names)
4497 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4498 (sparc32_pseudo_register_names): Now const.
4499 (validate_tdesc_registers): Update.
4500 * rust-lang.c (rust_extensions): Now const.
4501 * p-lang.c (p_extensions): Now const.
4502 * objc-lang.c (objc_extensions): Now const.
4503 * nto-tdep.c (nto_thread_state_str): Now const.
4504 * moxie-tdep.c (moxie_register_names): Now const.
4505 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4506 Now const.
4507 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4508 (mips_linux_reg_names): Now const.
4509 (mips_gdbarch_init): Update.
4510 * microblaze-tdep.c (microblaze_register_names): Now const.
4511 * m68k-tdep.c (m68k_register_names): Now const.
4512 * m32r-tdep.c (m32r_register_names): Now const.
4513 * ia64-tdep.c (ia64_register_names): Now const.
4514 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4515 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4516 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4517 ymm_avx512_register_names, pkeys_register_names>: Now const.
4518 * i386-tdep.c (i386_register_names, i386_zmm_names)
4519 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4520 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4521 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4522 * f-lang.c (f_extensions): Now const.
4523 * d-lang.c (d_extensions): Now const.
4524 * csky-tdep.c (csky_register_names): Now const.
4525 * charset.c (default_charset_names, charset_enum): Now const.
4526 (_initialize_charset): Update.
4527 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4528 const.
4529 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4530 (bsd_uthread_solib_loaded): Update.
4531 (bsd_uthread_state): Now const.
4532 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4533 (amd64_ymm_avx512_names, amd64_ymmh_names)
4534 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4535 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4536 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4537 (amd64_dword_names): Now const.
4538 * agent.c (can_use_agent_enum): Now const.
4539 * ada-tasks.c (task_states, long_task_states): Now const.
4540 * ada-lang.c (known_runtime_file_name_patterns)
4541 (known_auxiliary_function_name_patterns, attribute_names)
4542 (standard_exc, ada_extensions): Now const.
4543
89806626
SM
45442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4545
4546 * bcache.h (struct bcache) <bcache>: Remove constructor.
4547 <m_hash_function, m_compare_function>: Remove.
4548 <~bcache>: Make virtual.
4549 <compare>: Remove static method, introduce virtual method.
4550 <default_hash>: Remove.
4551 <hash>: New virtual method.
4552 * bcache.c (bcache::expand_hash_table): Update.
4553 (bcache::insert): Update.
4554 (bcache::hash): New.
4555 (bcache::compare): Update comment and parameter names.
4556 * gdbtypes.c (types_deeply_equal): Update.
4557 * psymtab.h (struct psymbol_bcache): New struct.
4558 (class psymtab_storage) <psymtab_storage>: Make default.
4559 <psymbol_cache>: Change type to psymbol_bcache.
4560 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4561 (psymbol_hash): Change to...
4562 (psymbol_bcache::hash): ... this.
4563 (psymbol_compare): Change to...
4564 (psymbol_bcache::compare): ... this.
4565
677c92fe
SM
45662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4567
4568 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4569 checking for initial lwp.
4570
3eba3a01
TT
45712020-09-14 Tom Tromey <tromey@adacore.com>
4572
4573 * m68k-tdep.c (m68k_extract_return_value): Use
4574 pointer_result_regnum.
4575 (m68k_store_return_value): Likewise.
4576 (m68k_reg_struct_return_p): Handle vectors and arrays.
4577 (m68k_return_value): Handle arrays.
4578 (m68k_svr4_return_value): Fix single-element aggregate handling.
4579 Handle long double. Adjust for embedded ABI.
4580 (m68k_svr4_init_abi): Set pointer_result_regnum.
4581 (m68k_embedded_init_abi): New function.
4582 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4583 (m68k_osabi_sniffer): New function.
4584 (_initialize_m68k_tdep): Register osabi sniffer.
4585 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4586 member.
4587
33f4dd48
SM
45882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4591 with gdb::unique_xmalloc_ptr<char>.
4592
8400a90d
SM
45932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4594
4595 * xml-support.h (xml_fetch_another): Change type to be a
4596 function_view.
4597 (xml_process_xincludes): Remove baton parameter.
4598 (xml_fetch_content_from_file): Change baton parameter to
4599 dirname.
4600 * xml-support.c (struct xinclude_parsing_data)
4601 <xinclude_parsing_data>: Remove baton parameter.
4602 <fetcher_baton>: Remove.
4603 (xinclude_start_include): Adjust.
4604 (xml_process_xincludes): Adjust.
4605 (xml_fetch_content_from_file): Replace baton parameter with
4606 dirname.
4607 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4608 (xml_init_syscalls_info): Use a lambda.
4609 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4610 (file_read_description_xml): Use a lambda.
4611 (fetch_available_features_from_target): Change baton parameter
4612 to target_ops.
4613 (target_read_description_xml): Use a lambda.
4614 (target_fetch_description_xml): Use a lambda.
4615 (string_read_description_xml): Update.
4616
04f5bab2
SM
46172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4618
4619 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4620 uses with type::endianity_is_not_default.
4621
db558e34
SM
46222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (struct type) <endianity_is_not_default,
4625 set_endianity_is_not_default>: New methods.
4626 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4627 type::endianity_is_not_default, change all write call sites to
4628 use type::set_endianity_is_not_default.
4629
22c4c60c
SM
46302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4633 uses with type::is_fixed_instance.
4634
9cdd0d12
SM
46352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (struct type) <is_fixed_instance,
4638 set_is_fixed_instance>: New methods.
4639 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4640 write call sites to use type::set_is_fixed_instance.
4641
0becda7a
SM
46422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4645 uses with type::is_gnu_ifunc.
4646
03cc7249
SM
46472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4650 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4651 use type::set_is_gnu_ifunc.
4652
3f46044c
SM
46532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4656 uses with type::stub_is_supported.
4657
9baccff6
SM
46582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4661 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4662 use type::set_stub_is_supported.
4663
bd63c870
SM
46642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4667 uses with type::is_vector.
4668
2062087b
SM
46692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4672 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4673 use type::set_is_vector.
4674
a409645d
SM
46752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4678 uses with type::has_varargs.
4679
1d6286ed
SM
46802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4683 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4684 use type::set_has_varargs.
4685
7f9f399b
SM
46862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4689 uses with type::is_prototyped.
4690
27e69b7a
SM
46912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4694 New methods.
4695 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4696 call sites to use type::set_is_prototyped.
4697
d2183968
SM
46982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4701 uses with type::target_is_stub.
4702
8f53807e
SM
47032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4706 New methods.
4707 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4708 sites to use type::set_target_is_stub.
4709
e46d3488
SM
47102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbtypes.h (TYPE_STUB): Remove, replace all
4713 uses with type::is_stub.
4714
b4b73759
SM
47152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4718 (TYPE_STUB): Use type::is_stub, change all write call sites to
4719 use type::set_is_stub.
4720
20ce4123
SM
47212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4724 type::has_no_signedness.
4725
15152a54
SM
47262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * gdbtypes.h (struct type) <has_no_signedness,
4729 set_has_no_signedness>: New methods.
4730 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4731 call sites to use type::set_has_no_signedness.
4732
c6d940a9
SM
47332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4736 type::is_unsigned.
4737
653223d3
SM
47382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4739
4740 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4741 methods.
4742 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4743 sites to use type::set_is_unsigned.
4744
55ea94da 47452020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4746 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4747
e851246a
SM
4748 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4749 pointer and stack frame offset when unwinding.
55ea94da 4750
6791b117
PA
47512020-09-13 Pedro Alves <pedro@palves.net>
4752
4753 * NEWS: Document "-break-insert --qualified".
4754 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4755
77f2120b
PA
47562020-09-13 Pedro Alves <pedro@palves.net>
4757
4758 * linespec.c (classify_mtype, compare_msyms): Delete.
4759 (search_minsyms_for_name): Remove classification logic. Instead
4760 filter out trampoline symbols if we also found an external
4761 function of the same name.
4762
ed6a896c
JB
47632020-09-13 Joel Brobecker <brobecker@adacore.com>
4764
4765 * NEWS: Create a new section for the next release branch.
4766 Rename the section of the current branch, now that it has
4767 been cut.
4768
32aea73e
JB
47692020-09-13 Joel Brobecker <brobecker@adacore.com>
4770
4771 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4772 * version.in: Bump version to 11.0.50.DATE-git.
4773
8087c3fa
JB
47742020-09-12 Joel Brobecker <brobecker@adacore.com>
4775
4776 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4777
2a67f09d
FW
47782020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4779 Felix Willgerodt <Felix.Willgerodt@intel.com>
4780
4781 * gdbarch.sh: Added bfloat16 type.
4782 * gdbarch.c: Regenerated.
4783 * gdbarch.h: Regenerated.
4784 * gdbtypes.c (floatformats_bfloat16): New struct.
4785 (gdbtypes_post_init): Add builtin_bfloat16.
4786 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4787 (floatformats_bfloat16): New struct.
4788 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4789 (i386_ymm_type): Add field "v16_bfloat16"
4790 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4791 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4792 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4793 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4794 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4795 * features/i386/64bit-avx512.c: Regenerated.
4796 * features/i386/64bit-sse.xml: Add bfloat16 type.
4797 * features/i386/64bit-sse.c: Regenerated.
4798
1347d111
FW
47992020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4800
4801 * i386-tdep.c (i386_zmm_type): Fix field names.
4802 (i386_ymm_type): Fix field names.
4803
7a4e8e7d
TBA
48042020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4805
4806 * breakpoint.c: Fix typo in the help message of the
4807 "set breakpoint condition-evaluation" command.
4808
cf4ac4be
KR
48092020-09-10 Kamil Rytarowski <n54@gmx.com>
4810
4811 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4812 * (nbsd_nat_target::pid_to_exec_file)
4813 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4814 (nbsd_nat_target::post_startup_inferior)
4815 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4816 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4817 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4818 * (nbsd_thread_lister): Remove.
4819
f404573e
KR
48202020-09-10 Kamil Rytarowski <n54@gmx.com>
4821
4822 * fork-inferior.c (startup_inferior): Avoid double free.
4823
1ccb2c17
KR
48242020-09-10 Kamil Rytarowski <n54@gmx.com>
4825
4826 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4827 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4828
feedfcc7
KR
48292020-09-10 Kamil Rytarowski <n54@gmx.com>
4830
4831 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4832 * netbsd-nat.c: Include <sys/ptrace.h>.
4833 * (netbsd_nat::enable_proc_events): Add.
4834
c489f8c6
KR
48352020-09-10 Kamil Rytarowski <n54@gmx.com>
4836
4837 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4838 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4839 (netbsd_nat::for_each_thread): Add.
4840 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4841 "gdbsupport/common-debug.h".
4842 * (netbsd_nat::netbsd_thread_lister)
4843 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4844 (netbsd_nat::for_each_thread): Add.
4845
330662f6
KR
48462020-09-10 Kamil Rytarowski <n54@gmx.com>
4847
4848 * netbsd-nat.h: Include <unistd.h>.
4849 * (netbsd_nat::pid_to_exec_file): Add.
4850 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4851 * (netbsd_nat::pid_to_exec_file) Add.
4852
70b67307
KR
48532020-09-10 Kamil Rytarowski <n54@gmx.com>
4854
4855 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4856
99cf6da6
KR
48572020-09-10 Kamil Rytarowski <n54@gmx.com>
4858
4859 * netbsd-nat.h: New file.
4860 * netbsd-nat.c: Likewise.
4861
1b788fb6
TT
48622020-09-09 Tom Tromey <tromey@adacore.com>
4863
4864 * ada-lang.c (remove_extra_symbols): Do not increment when
4865 removing an element
4866
03b0a45f
TT
48672020-09-08 Tom Tromey <tromey@adacore.com>
4868
4869 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4870
3cae4447
TT
48712020-09-08 Tom Tromey <tromey@adacore.com>
4872
4873 PR win32/25302:
4874 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4875 (gdb_bfd_init_data): New function.
4876 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4877
7f08fd51
TBA
48782020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4879
4880 * infrun.c (fetch_inferior_event): Use
4881 `switch_to_target_no_thread` to switch the target.
4882
3e6ff933
TT
48832020-09-06 Tom Tromey <tom@tromey.com>
4884
4885 * symfile.h (dwarf2_free_objfile): Don't declare.
4886
e56798df
AKS
48872020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4888
4889 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4890 to match 16 byte real/complex type generated by Flang compiler.
4891
8f5c6526
TV
48922020-09-03 Tom de Vries <tdevries@suse.de>
4893
4894 PR breakpoint/26546
4895 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4896 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4897
c5065df0
SM
48982020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4899
4900 * maint.c (index_digits): New function.
4901 (struct maint_print_section_data): Remove.
4902 (print_bfd_section_info): Remove print_data parameter, add arg
4903 and index_digits.
4904 (print_objfile_section_info): Likewise.
4905 (print_bfd_section_info_maybe_relocated): Likewise (plus
4906 objfile).
4907 (maintenance_info_sections): Adjust calls.
4908
02c6f3f1
TT
49092020-09-02 Tom Tromey <tromey@adacore.com>
4910
4911 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4912 for null pointers.
4913 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4914
ef5e5b0b
SM
49152020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * bcache.h (struct bcache) <insert>: Change type of `added` to
4918 pointer to bool.
4919 * bcache.c (bcache::insert): Likewise.
4920 * gdbtypes.c (check_types_worklist): Adjust.
4921 * psymtab.c (add_psymbol_to_bcache): Adjust.
4922
973695d6
KB
49232020-08-31 Kevin Buettner <kevinb@redhat.com>
4924
4925 * corelow.c (unordered_set): Include.
4926 (class core_target): Add field 'm_core_unavailable_mappings'.
4927 (core_target::build_file_mappings): Print only one warning
4928 per inaccessible file. Add unavailable/broken mappings
4929 to m_core_unavailable_mappings.
4930 (core_target::xfer_partial): Call...
4931 (core_target::xfer_memory_via_mappings): New method.
4932
264fc0e2
SM
49332020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4936 type to bool.
4937
2de01bdb
SM
49382020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4939
4940 * dwarf2/read.c (struct field_info): Fix indentation.
4941
f3bd50f1
SM
49422020-08-31 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4945 ordering in comment.
4946 * frame.c (frame_id_eq): Fix indentation.
4947
22b9b4b0
SL
49482020-08-31 Scott Linder <scott@scottlinder.com>
4949 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4952 inline frame ids in outer frame.
4953
84154d16
SM
49542020-08-31 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4957 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4958 (outer_frame_id): Use FID_STACK_OUTER instead of
4959 FID_STACK_INVALID.
4960 (frame_id_p): Don't check for outer_frame_id.
4961
8efaf6b3
SM
49622020-08-31 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4965 regnum/frame in value. Call allocate_value_lazy.
4966 * frame.c (frame_unwind_register_value): Use
4967 val_print_not_saved.
4968
fe1fe7ea
SM
49692020-08-31 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4972
f7c7700d
PA
49732020-08-29 Pedro Alves <pedro@palves.net>
4974
4975 * progspace.c (print_program_space): Use all_inferiors. Switch to
4976 the inferior before calling target_pid_to_str.
4977
e0814aae
TT
49782020-08-28 Tom Tromey <tom@tromey.com>
4979
4980 * xcoffread.c (xcoff_end_psymtab): Update comment.
4981 * dbxread.c (dbx_end_psymtab): Update comment.
4982
626d2320
TV
49832020-08-28 Tom de Vries <tdevries@suse.de>
4984
4985 PR breakpoint/26544
4986 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4987 event_location.
4988 (create_breakpoint): Same.
4989 (base_breakpoint_decode_location): Same.
4990 (bkpt_create_sals_from_location): Same.
4991 (bkpt_decode_location): Same.
4992 (bkpt_probe_create_sals_from_location): Same.
4993 (bkpt_probe_decode_location): Same.
4994 (tracepoint_create_sals_from_location): Same.
4995 (tracepoint_decode_location): Same.
4996 (tracepoint_probe_decode_location): Same.
4997 (strace_marker_create_sals_from_location): Same.
4998 (strace_marker_decode_location): Same.
4999 (create_sals_from_location_default): Same.
5000 (decode_location_default): Same.
5001 * breakpoint.h (struct breakpoint_ops): Same.
5002 (create_breakpoint): Same.
5003 * linespec.h (decode_line_full): Same.
5004 * linespec.c (decode_line_full): Same. Throw error if
5005 result.size () == 0.
5006
df631783
PA
50072020-08-27 Pedro Alves <pedro@palves.net>
5008
5009 PR gdb/26524
5010 * breakpoint.c (until_break_fsm) <location_breakpoint,
5011 caller_breakpoint>: Delete fields.
5012 <breakpoints>: New field.
5013 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5014 two individual breakpoints.
5015 (until_break_fsm::should_stop): Loop over breakpoints in the
5016 breakpoint vector.
5017 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5018 vector.
5019 (until_break_command): Handle location expanding into multiple
5020 sals.
5021
b2b38aa4
PA
50222020-08-27 Pedro Alves <pedro@palves.net>
5023
5024 PR gdb/26523
5025 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5026 bp_until breakpoints user-specified locations. Update intro
5027 comment.
5028
b886559f
SM
50292020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5032 gdb_bfd_sections): New.
5033 * maint.c (print_bfd_section_info): Change param type to
5034 maint_print_section_data.
5035 (print_objfile_section_info): Likewise.
5036 (print_bfd_section_info_maybe_relocated): Likewise.
5037 (maintenance_info_sections): Use gdb_bfd_sections.
5038
4c6e63bf
SV
50392020-08-25 Shahab Vahedi <shahab@synopsys.com>
5040
5041 * MAINTAINERS: Add ARC target and maintainer.
5042
8d7f0635
AK
50432020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5044
5045 * configure.tgt: ARC support for GNU/Linux.
5046 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5047 * arc-linux-tdep.c: New file.
5048 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5049 * arc-tdep.c (arc_write_pc): Use it.
5050
fdd8731b
SV
50512020-08-25 Shahab Vahedi <shahab@synopsys.com>
5052
5053 * arc-tdep.c (arc_check_for_hardware_loop): New.
5054 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5055
22459524
SV
50562020-08-25 Shahab Vahedi <shahab@synopsys.com>
5057
5058 * arc-tdep.h: Include "gdbarch.h".
5059
995d3a19
SV
50602020-08-25 Shahab Vahedi <shahab@synopsys.com>
5061
5062 * arch/arc.h
5063 (arc_gdbarch_features): New class to stir the selection of target XML.
5064 (arc_create_target_description): Use FEATURES to choose XML target.
5065 (arc_lookup_target_description): Use arc_create_target_description
5066 to create _new_ target descriptions or return the already created
5067 ones if the FEATURES is the same.
5068 * arch/arc.c: Implementation of prototypes described above.
5069 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5070 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5071 * arc-tdep.c (*_feature_name): Make feature names consistent.
5072 (arc_register_feature): A new struct to hold information about
5073 registers of a particular target/feature.
5074 (arc_check_tdesc_feature): Check if XML provides registers in
5075 compliance with ARC_REGISTER_FEATURE structs.
5076 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5077 (determine_*_reg_feature_set): Which feature name to look for.
5078 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5079 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5080 to expected ISA enums to be used in arc_gdbarch_features structs.
5081 * features/Makefile (FEATURE_XMLFILES): Add new files.
5082 * gdb/features/arc/v1-aux.c: New file.
5083 * gdb/features/arc/v1-aux.xml: Likewise.
5084 * gdb/features/arc/v1-core.c: Likewise.
5085 * gdb/features/arc/v1-core.xml: Likewise.
5086 * gdb/features/arc/v2-aux.c: Likewise.
5087 * gdb/features/arc/v2-aux.xml: Likewise.
5088 * gdb/features/arc/v2-core.c: Likewise.
5089 * gdb/features/arc/v2-core.xml: Likewise.
5090 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5091
3945d2d7
GM
50922020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5093 Andrew Burgess <andrew.burgess@embecosm.com>
5094
5095 PR m2/26372
fc5d6901 5096 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5097 an assert. Remove single element array indexing pattern as the
5098 MULTI_SUBSCRIPT support will handle this case too.
5099
2677f2d3
SM
51002020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * value.h (valprint_check_validity): Move declaration from
5103 here...
5104 * valprint.h (valprint_check_validity): ... to here.
5105
c426fddb
SM
51062020-08-24 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * debug.h: New file.
5109 * debug.c (debug_prefixed_vprintf): New function.
5110 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5111 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5112
1eb8556f
SM
51132020-08-24 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * infrun.h (infrun_debug_printf_1): New function declaration.
5116 (infrun_debug_printf): New macro.
5117 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5118 throughout.
5119 (infrun_debug_printf): New function.
5120 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5121 (handle_jit_event): Likewise.
5122
b8fff44e
MW
51232020-08-21 Mark Wielaard <mark@klomp.org>
5124
5125 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5126
d19c3068
SM
51272020-08-22 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * frame.c (enum class frame_id_status): New.
5130 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5131 (fprintf_frame): Update.
5132 (compute_frame_id): Set frame id status to "computing" on entry.
5133 Set it back to "not_computed" on failure and to "computed" on
5134 success.
5135 (get_frame_id): Assert the frame id is not being computed.
5136 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5137 (create_new_frame): Likewise.
5138 (frame_cleanup_after_sniffer): Update assert.
5139
b70e516e
SM
51402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * regcache.c (pid_ptid_regcache_map): New type.
5143 (target_ptid_regcache_map): Remove.
5144 (target_pid_ptid_regcache_map): New type.
5145 (regcaches): Change type to target_pid_ptid_regcache_map.
5146 (get_thread_arch_aspace_regcache): Update.
5147 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5148 case.
5149 (regcaches_size): Update.
5150 (regcache_count): Update.
5151 (registers_changed_ptid_target_pid_test): New.
5152 (_initialize_regcache): Register new test.
5153
cdd9148a
SM
51542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * regcache.c (regcache_count): New.
5157 (struct regcache_test_data): New.
5158 (regcache_test_data_up): New.
5159 (populate_regcaches_for_test): New.
5160 (regcaches_test): Remove.
5161 (get_thread_arch_aspace_regcache_test): New.
5162 (registers_changed_ptid_all_test): New.
5163 (registers_changed_ptid_target_test): New.
5164 (registers_changed_ptid_target_ptid_test): New.
5165 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5166 (_initialize_regcache): Register new tests.
5167
dd125343
SM
51682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5171 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5172 gdbarch and aspace parameter. Use current inferior's aspace.
5173 Validate regcache's arch value.
5174 (regcaches_test): Update.
5175
3ee93972
SM
51762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * regcache.c (regcaches_test): Call registers_changed.
5179
33bf4c5c
TBA
51802020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5181
5182 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5183
c2fd7fae
AKS
51842020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5185
5186 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5187 to find the end of prologue for flang compiled binaries.
5188 * arm-tdep.c (arm_skip_prologue): Likewise.
5189 * i386-tdep.c (i386_skip_prologue): Likewise.
5190 * producer.c (producer_is_llvm): New function.
5191 (producer_parsing_tests): Added new tests for clang/flang.
5192 * producer.h (producer_is_llvm): New declaration.
5193
9327494e
SM
51942020-08-18 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * linux-nat.c (linux_nat_debug_printf): New function.
5197 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5198
d138725a
AM
51992020-08-18 Aaron Merey <amerey@redhat.com>
5200
5201 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5202 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5203 (CLIBS): Add DEBUGINFOD_LIBS.
5204
f9b11e6b
ST
52052020-08-17 Sergei Trofimovich <siarheit@google.com>
5206
5207 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5208 'gdbarch_num_regs'.
5209
3ae7ab99
TT
52102020-08-17 Tom Tromey <tromey@adacore.com>
5211
5212 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5213 ada_get_decoded_value returns NULL.
5214
b017825f
TT
52152020-08-17 Tom Tromey <tromey@adacore.com>
5216
5217 * python/py-inferior.c (infpy_search_memory): Use
5218 gdb_py_object_from_ulongest.
5219 * python/py-infevents.c (create_inferior_call_event_object)
5220 (create_memory_changed_event_object): Use
5221 gdb_py_object_from_ulongest.
5222 * python/py-linetable.c (ltpy_entry_get_pc): Use
5223 gdb_py_object_from_ulongest.
5224
7635cf79
SM
52252020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * loc.c (class symbol_needs_eval_context): Fix indentation.
5228
f54be24b
SM
52292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5230
5231 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5232 bool.
5233
53d5a2a5
TV
52342020-08-17 Tom de Vries <tdevries@suse.de>
5235
5236 PR gdb/26393
5237 * gdbtypes.c (dump_dynamic_prop): New function.
5238 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5239
547ce8f0
TV
52402020-08-15 Tom de Vries <tdevries@suse.de>
5241
5242 PR backtrace/26390
5243 * stack.c (print_frame_args): Temporarily set the selected
5244 frame to FRAME while printing the frame's arguments.
5245
6ea815e7
PFC
52462020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5247
5248 PR breakpoints/26385
5249 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5250 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5251
6e562fa3
PFC
52522020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5253
5254 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5255 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5256 and >= to check return value instead of == -1 and != -1.
5257
d369b608
SM
52582020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5259
5260 * utils.h (class gdb_argv) <as_array_view>: New method.
5261 * utils.c (gdb_argv_as_array_view_test): New.
5262 (_initialize_utils): Register selftest.
5263 * maint.c (maintenance_selftest): Use the new method.
5264
b31488a3
KR
52652020-08-13 Kamil Rytarowski <n54@gmx.com>
5266
5267 * target.h (supports_dumpcore, dumpcore): New
5268 function declarations.
5269 * target.c (supports_dumpcore, dumpcore): New
5270 functions.
5271 * target-delegates.c: Rebuild.
5272 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5273 and target_dumpcore ().
5274
002a3166
AM
52752020-08-13 Aaron Merey <amerey@redhat.com>
5276
5277 * debuginfod-support.c: Replace global variables with user_data.
5278
ece5bc8a
SM
52792020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5280
5281 * maint.c (maintenance_selftest): Split args and pass array_view
5282 to run_tests.
5283
6d8a0a5e
LM
52842020-08-12 Luis Machado <luis.machado@linaro.org>
5285
5286 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5287 type's length.
5288 Use %s and pulongest to print the length.
5289
7cf663a9
PA
52902020-08-12 Pedro Alves <palves@redhat.com>
5291
5292 * NEWS: Move "Multi-target debugging support" item to the
5293 "Changes since GDB 9" section.
5294
27c7b875
PA
52952020-08-12 Pedro Alves <palves@redhat.com>
5296
5297 PR gdb/26336
5298 * progspace.c (program_space::remove_objfile): Invalidate the
5299 frame cache.
5300
1796a2a1
TV
53012020-08-11 Tom de Vries <tdevries@suse.de>
5302
5303 * MAINTAINERS: Mark ms1 as deleted.
5304
f8e3fe0d
LM
53052020-08-10 Luis Machado <luis.machado@linaro.org>
5306
5307 PR gdb/26310
5308
5309 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5310 act accordingly.
5311 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5312 movz/str/stur/stp skipping behavior.
5313
cc308722
LM
53142020-08-10 Luis Machado <luis.machado@linaro.org>
5315
5316 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5317 struct user_sve_header instead of struct sve_context.
5318
041d9819
SM
53192020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5320
5321 * read.h (dwarf2_fetch_die_loc_sect_off,
5322 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5323 `void *` parameter with function_view.
5324 * read.c (dwarf2_fetch_die_loc_sect_off,
5325 dwarf2_fetch_die_loc_cu_off): Likewise.
5326 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5327 (per_cu_dwarf_call): Adjust.
5328 (get_frame_address_in_block_wrapper): Remove.
5329 (indirect_synthetic_pointer): Adjust.
5330 (get_ax_pc): Remove.
5331 (dwarf2_compile_expr_to_ax): Adjust.
5332
38f8aa06
TV
53332020-08-08 Tom de Vries <tdevries@suse.de>
5334
5335 PR build/26344
5336 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5337 constructor.
5338 * regcache.c (get_thread_arch_aspace_regcache): Same.
5339
a52b3ae2
TT
53402020-08-07 Tom Tromey <tromey@adacore.com>
5341
5342 * ravenscar-thread.c
5343 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5344 New method.
5345 (ravenscar_thread_target::wait): Check
5346 runtime_initialized.
5347 (ravenscar_thread_target::prepare_to_store)
5348 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5349 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5350 (ravenscar_thread_target::stopped_by_watchpoint)
5351 (ravenscar_thread_target::stopped_data_address)
5352 (ravenscar_thread_target::core_of_thread): Use
5353 scoped_restore_current_thread and
5354 set_base_thread_from_ravenscar_task.
5355
0e29517d
TT
53562020-08-07 Tom Tromey <tromey@adacore.com>
5357
5358 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5359
592f9bd7
TT
53602020-08-07 Tom Tromey <tromey@adacore.com>
5361
5362 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5363 update_inferior_ptid before update_thread_list.
5364 (temporarily_change_regcache_ptid): New class.
5365 (ravenscar_thread_target::fetch_registers)
5366 (ravenscar_thread_target::store_registers)
5367 (ravenscar_thread_target::prepare_to_store): Use base thread when
5368 forwarding operation.
5369
39e2018a
TT
53702020-08-07 Tom Tromey <tromey@adacore.com>
5371
5372 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5373 "is_pid" case.
5374
2080266b
TT
53752020-08-07 Tom Tromey <tromey@adacore.com>
5376
5377 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5378 New methods.
5379 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5380 first.
5381 (ravenscar_thread_target::add_thread): Rename from
5382 ravenscar_add_thread.
5383 (ravenscar_thread_target::update_thread_list): Use a lambda.
5384 (ravenscar_thread_target::xfer_partial): New method.
5385
78c02f21
TT
53862020-08-07 Tom Tromey <tromey@adacore.com>
5387
5388 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5389 gdb::function_view.
5390 (iterate_over_live_ada_tasks): Change type of argument.
5391 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5392 of argument.
5393
d5d833af
TT
53942020-08-07 Tom Tromey <tromey@adacore.com>
5395
5396 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5397 Remove.
5398 (ravenscar_thread_target::extra_thread_info): Remove.
5399 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5400 defer to target beneath for non-Ravenscar threads.
5401
a8ac85bb
TT
54022020-08-07 Tom Tromey <tromey@adacore.com>
5403
5404 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5405 get_base_thread_from_ravenscar_task>: Now methods.
5406 <m_cpu_map>: New member.
5407 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5408 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5409 (ravenscar_thread_target::task_is_currently_active): Update.
5410 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5411 Now a method.
5412 (ravenscar_thread_target::add_active_thread): Put initial thread
5413 into the m_cpu_map.
5414
550ab58d
TT
54152020-08-07 Tom Tromey <tromey@adacore.com>
5416
5417 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5418 event_ptid.
5419
e9546579
TT
54202020-08-07 Tom Tromey <tromey@adacore.com>
5421
5422 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5423 runtime_initialized.
5424
3d4470e5
TT
54252020-08-07 Tom Tromey <tromey@adacore.com>
5426
5427 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5428 add_active_thread.
5429 (ravenscar_thread_target::add_active_thread): Now public.
5430 (ravenscar_inferior_created): Call add_active_thread after pushing
5431 the target.
5432
888bdb2b
SM
54332020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * regcache.c (ptid_regcache_map): New type.
5436 (target_ptid_regcache_map): New type.
5437 (regcaches): Change type to target_ptid_regcache_map.
5438 (get_thread_arch_aspace_regcache): Update to regcaches' new
5439 type.
5440 (regcache_thread_ptid_changed): Likewise.
5441 (registers_changed_ptid): Likewise.
5442 (regcaches_size): Likewise.
5443 (regcaches_test): Update.
5444 (regcache_thread_ptid_changed): Update.
5445 * regcache.h (regcache_up): New type.
5446 * gdbsupport/ptid.h (hash_ptid): New struct.
5447
b161a60d
SM
54482020-08-07 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * observable.h (thread_ptid_changed): Add parameter
5451 `process_stratum_target *`.
5452 * infrun.c (infrun_thread_ptid_changed): Add parameter
5453 `process_stratum_target *` and use it.
5454 (selftests): New namespace.
5455 (infrun_thread_ptid_changed): New function.
5456 (_initialize_infrun): Register selftest.
5457 * regcache.c (regcache_thread_ptid_changed): Add parameter
5458 `process_stratum_target *` and use it.
5459 (regcache_thread_ptid_changed): New function.
5460 (_initialize_regcache): Register selftest.
5461 * thread.c (thread_change_ptid): Pass target to
5462 thread_ptid_changed observable.
5463
d2854d8d
CT
54642020-08-06 Caroline Tice <cmtice@google.com>
5465
fe4c3d43
SM
5466 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5467 (struct dwp_sections): Update field comments. Add loclists and
5468 rnglists fields.
5469 (struct virtual_v2_dwo_sections): Rename struct to
5470 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5471 size & offset fields for loclists and rnglists.
5472 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5473 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5474 skipping dummy type units.
5475 (create_dwp_hash_table): Update the large comment above the function to
5476 discuss Version 5 DWP files as well, with references. Update all the
5477 version checks in the function to check for version 5 as well. Add new
5478 section at the end to create dwp hash table for version 5.
5479 (create_dwp_v2_section): Rename function to
5480 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5481 Add V5 to error message text.
5482 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5483 into calls to create_dwp_v2_or_v5_section.
5484 (create_dwo_unit_in_dwp_v5): New function.
5485 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5486 check for version2; add else clause to handle version 5.
5487 (open_and_init_dwo_file): Add code to check dwarf version & only call
5488 create_debug_types_hash_table (with sections.types) if version is not 5;
5489 else call create_debug_type_hash_table, with sections.info.
5490 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5491 version 5.
5492 (dwarf2_locate_v5_dwp_sections): New function.
5493 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5494 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5495
159ed7d9
SM
54962020-08-06 Simon Marchi <simon.marchi@efficios.com>
5497
5498 * regcache.h (class regcache): Remove friend
5499 registers_changed_ptid.
5500 <regcache_thread_ptid_changed>: Remove.
5501 <regcaches>: Remove.
5502 * regcache.c (regcache::regcaches): Rename to...
5503 (regcaches): ... this. Make static.
5504 (get_thread_arch_aspace_regcache): Update.
5505 (regcache::regcache_thread_ptid_changed): Rename to...
5506 (regcache_thread_ptid_changed): ... this. Update.
5507 (class regcache_access): Remove.
5508 (regcaches_test): Update.
5509 (_initialize_regcache): Update.
5510 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5511 <forward_list>.
5512
174981ae
SM
55132020-08-06 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * regcache.h (class regcache) <current_regcache>: Rename to...
5516 <regcaches>: ... this. Move doc here.
5517 * regcache.c (regcache::current_regcache) Rename to...
5518 (regcache::regcaches): ... this. Move doc to header.
5519 (get_thread_arch_aspace_regcache): Update.
5520 (regcache::regcache_thread_ptid_changed): Update.
5521 (registers_changed_ptid): Update.
5522 (class regcache_access) <current_regcache_size>: Rename to...
5523 <regcaches_size>: ... this.
5524 (current_regcache_test): Rename to...
5525 (regcaches_test): ... this.
5526 (_initialize_regcache): Update.
5527
ed908db6
VC
55282020-08-06 Victor Collod <vcollod@nvidia.com>
5529
5530 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5531
b5582ab7
KB
55322020-08-05 Kevin Buettner <kevinb@redhat.com>
5533
5534 * corelow.c (core_target::build_file_mappings): Don't output
5535 null pathname in warning.
5536
ea946b86
SM
55372020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5538
5539 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5540 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5541 gdb.dwarf2/dw2-single-line-discriminators.exp,
5542 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5543
57d02173
TT
55442020-08-05 Tom Tromey <tromey@adacore.com>
5545
5546 PR rust/26197:
5547 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5548 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5549 Fix off-by-one and type size errors in ordinary case.
5550
5555c86d
TV
55512020-08-05 Tom de Vries <tdevries@suse.de>
5552
5553 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5554 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5555
97916bfe
SM
55562020-08-04 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * frame.h (frame_id_p): Return bool.
5559 (frame_id_artificial_p): Return bool.
5560 (frame_id_eq): Return bool.
5561 (has_stack_frames): Return bool.
5562 (get_selected_frame): Fix typo in comment.
5563 (get_frame_pc_if_available): Return bool.
5564 (get_frame_address_in_block_if_available): Return bool.
5565 (get_frame_func_if_available): Return bool.
5566 (read_frame_register_unsigned): Return bool.
5567 (get_frame_register_bytes): Return bool.
5568 (safe_frame_unwind_memory): Return bool.
5569 (deprecated_frame_register_read): Return bool.
5570 (frame_unwinder_is): Return bool.
5571 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5572 bool.
5573 <this_id::p>: Likewise.
5574 <prev_p>: Likewise.
5575 (frame_stash_add): Return bool.
5576 (get_frame_id): Use bool.
5577 (frame_id_build_special) Use bool.
5578 (frame_id_build_unavailable_stack): Use bool.
5579 (frame_id_build): Use bool.
5580 (frame_id_p): Return bool, use true/false instead of 1/0.
5581 (frame_id_artificial_p): Likewise.
5582 (frame_id_eq): Likewise.
5583 (frame_id_inner): Likewise.
5584 (get_frame_func_if_available): Likewise.
5585 (read_frame_register_unsigned): Likewise.
5586 (deprecated_frame_register_read): Likewise.
5587 (get_frame_register_bytes): Likewise.
5588 (has_stack_frames): Likewise.
5589 (inside_main_func): Likewise.
5590 (inside_entry_func): Likewise.
5591 (get_frame_pc_if_available): Likewise.
5592 (get_frame_address_in_block_if_available): Likewise.
5593 (frame_unwinder_is): Likewise.
5594 (safe_frame_unwind_memory): Likewise.
5595 (frame_unwind_arch): Likewise.
5596
fedfee88
SM
55972020-08-04 Simon Marchi <simon.marchi@efficios.com>
5598
5599 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5600 type to cached_copy_status.
5601 (fprintf_frame): Adjust.
5602 (get_frame_func_if_available): Adjust.
5603 (frame_cleanup_after_sniffer): Adjust.
5604
6cfa9b59
MW
56052020-08-04 Mark Wielaard <mark@klomp.org>
5606
5607 * MAINTAINERS (Write After Approval): Update email address.
5608
66d6346b
SM
56092020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5612 dynamic_prop::const_val.
5613
8a6d5e35
SM
56142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5617 dynamic_prop::kind.
5618
51d6067d
SM
56192020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5622
b26e2ae7
JM
56232020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5624
5625 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5626
39791af2
JM
56272020-08-04 Weimin Pan <weimin.pan@oracle.com>
5628 Jose E. Marchesi <jose.marchesi@oracle.com>
5629
5630 * configure.tgt: Add entry for bpf-*-*.
5631 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5632 (ALLDEPFILES): Add bpf-tdep.c.
5633 * bpf-tdep.c: New file.
5634 * MAINTAINERS: Add bpf target and maintainer.
5635 * NEWS: Mention the support for the new target.
5636
521894aa
TV
56372020-08-04 Tom de Vries <tdevries@suse.de>
5638
5639 PR symtab/23270
5640 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5641 Error.
5642
5d6356e9
JB
56432020-08-03 John Baldwin <jhb@FreeBSD.org>
5644
5645 * syscalls/freebsd.xml: Regenerate.
5646
0cf82b81
JB
56472020-08-03 John Baldwin <jhb@FreeBSD.org>
5648
5649 * syscalls/update-freebsd.sh: Fix usage and year range.
5650
8f34b746
TV
56512020-08-03 Tom de Vries <tdevries@suse.de>
5652
5653 PR symtab/26333
5654 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5655 DW_LNE_lo_user/DW_LNE_hi_user range.
5656
5e500d33
SM
56572020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5658
5659 PR ada/26318
5660 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5661 kind.
5662
78319c15
TBA
56632020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5664
5665 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5666
4c55e970
TBA
56672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5668
5669 * breakpoint.c (set_breakpoint_condition): Update the condition
5670 expressions after checking that the input condition string parses
5671 successfully and does not contain junk at the end.
5672
1e620590
TBA
56732020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5674
5675 * breakpoint.c (set_breakpoint_condition): Update the
5676 condition string after parsing the new condition successfully.
5677
c8693053
RO
56782020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5679
5680 * proc-api.c (_STRUCTURED_PROC): Don't define.
5681 * proc-events.c: Likewise.
5682 * proc-flags.c: Likewise.
5683 * proc-why.c: Likewise.
5684 * procfs.c: Likewise.
5685
5686 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5687 * configure, config.in: Regenerate.
5688
5a99adb8
TV
56892020-07-30 Tom de Vries <tdevries@suse.de>
5690
5691 PR build/26320
5692 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5693 m_red/m_green/m_blue in a union.
5694
8ba83e91
TV
56952020-07-29 Tom de Vries <tdevries@suse.de>
5696
5697 PR tdep/26280
5698 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5699
f75a0693
AB
57002020-07-28 Tom Tromey <tromey@adacore.com>
5701
5702 PR symtab/26270:
5703 * symtab.h (find_pc_partial_function_sym): Declare.
5704 * cli/cli-cmds.c (disassemble_command): Use
5705 find_pc_partial_function_sym. Check asm_demangle.
5706 * blockframe.c (cache_pc_function_sym): New global.
5707 (cache_pc_function_name): Remove.
5708 (clear_pc_function_cache): Update.
5709 (find_pc_partial_function_sym): New function, from
5710 find_pc_partial_function.
5711 (find_pc_partial_function): Rewrite using
5712 find_pc_partial_function_sym.
5713
16f3242c
TT
57142020-07-28 Tom Tromey <tromey@adacore.com>
5715
5716 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5717 help. Add usage.
5718
4888741a
TT
57192020-07-28 Tom Tromey <tromey@adacore.com>
5720
5721 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5722 <DW_OP_GNU_variable_value>: Cast to address type.
5723
4d46f402
KR
57242020-07-28 Kamil Rytarowski <n54@gmx.com>
5725
5726 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5727 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5728 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5729 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5730 (nbsd_get_siginfo_type): New.
5731 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5732 (_initialize_nbsd_tdep): New.
5733
d70f978b
L
57342020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5735
5736 PR binutils/26301
5737 * configure: Regenerated.
5738
377170fa
L
57392020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5740
5741 PR binutils/26301
5742 * configure: Regenerated.
5743
43d5901d
AB
57442020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5745
5746 * python/py-frame.c: Remove 'user-regs.h' include.
5747 (frapy_read_register): Rewrite to make use of
5748 gdbpy_parse_register_id.
5749 * python/py-registers.c (gdbpy_parse_register_id): New function,
5750 moved here from python/py-unwind.c. Updated the return type, and
5751 also accepts register descriptor objects.
5752 * python/py-unwind.c: Remove 'user-regs.h' include.
5753 (pyuw_parse_register_id): Moved to python/py-registers.c.
5754 (unwind_infopy_add_saved_register): Update to use
5755 gdbpy_parse_register_id.
5756 (pending_framepy_read_register): Likewise.
5757 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5758
14fa8fb3
AB
57592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * python/py-registers.c: Add 'user-regs.h' include.
5762 (register_descriptor_iter_find): New function.
5763 (register_descriptor_iterator_object_methods): New static global
5764 methods array.
5765 (register_descriptor_iterator_object_type): Add pointer to methods
5766 array.
5767
ddce1758
JB
57682020-07-27 John Baldwin <jhb@FreeBSD.org>
5769
5770 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5771 for all architectures on FreeBSD 11.3 and later.
5772
a4089f52
TT
57732020-07-27 Tom Tromey <tromey@adacore.com>
5774
5775 * gcore.h (load_corefile): Don't declare.
5776
95420d30
TV
57772020-07-27 Tom de Vries <tdevries@suse.de>
5778
5779 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5780 * config.in: Regenerate.
5781 * configure: Regenerate.
5782
05a6b8c2
EZ
57832020-07-26 Eli Zaretskii <eliz@gnu.org>
5784
5785 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5786 ws2tcpip.h. When checking whether socklen_t type is defined, use
5787 ws2tcpip.h if it is available and sys/socket.h isn't.
5788 * configure: Regenerate.
5789 * config.in: Regenerate.
5790
e79eb02f
AB
57912020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5792
5793 PR fortran/23051
5794 PR fortran/26139
5795 * valops.c (value_ind): Pass address to
5796 readjust_indirect_value_type.
5797 * value.c (readjust_indirect_value_type): Make parameter
5798 non-const, and add extra address parameter. Resolve original type
5799 before using it.
5800 * value.h (readjust_indirect_value_type): Update function
5801 signature and comment.
5802
876518dd
TV
58032020-07-25 Tom de Vries <tdevries@suse.de>
5804
5805 PR symtab/26243
5806 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5807 entries.
5808
f6720b1c
AM
58092020-07-24 Aaron Merey <amerey@redhat.com>
5810
5811 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5812 * configure: Rebuild.
5813
513487e1
KB
58142020-07-23 Kevin Buettner <kevinb@redhat.com>
5815
5816 PR corefiles/26294
5817 * corelow.c (_initialize_corelow): Add period to help text
5818 for "maintenance print core-file-backed-mappings".
5819
e7bc9db8
PA
58202020-07-23 Pedro Alves <pedro@palves.net>
5821
5822 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5823 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5824 meanwhile.
5825 * frame.c (frame_cache_generation, get_frame_cache_generation):
5826 New.
5827 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5828 (get_prev_frame_if_no_cycle): On exception, don't touch
5829 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5830 * frame.h (get_frame_cache_generation): Declare.
5831
90fcc466
TV
58322020-07-23 Tom de Vries <tdevries@suse.de>
5833
5834 PR tui/26282
5835 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5836 New default constructor.
5837
78344df7
AB
58382020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5841 exclude non-statement entries.
5842
b089853a
KB
58432020-07-22 Kevin Buettner <kevinb@redhat.com>
5844
5845 * NEWS (New commands): Mention new command
5846 "maintenance print core-file-backed-mappings".
5847
09c2f5d4
KB
58482020-07-22 Kevin Buettner <kevinb@redhat.com>
5849
5850 * corelow.c (gdbcmd.h): Include.
5851 (core_target::info_proc_mappings): New method.
5852 (get_current_core_target): New function.
5853 (maintenance_print_core_file_backed_mappings): New function.
5854 (_initialize_corelow): Add core-file-backed-mappings to
5855 "maint print" commands.
5856
9c5ec5c2 58572020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5858
9c5ec5c2
KB
5859 * linux-tdep.c (dump_note_entry_p): New function.
5860 (linux_dump_mapping_p_ftype): New typedef.
5861 (linux_find_memory_regions_full): Add new parameter,
5862 should_dump_mapping_p.
5863 (linux_find_memory_regions): Adjust call to
5864 linux_find_memory_regions_full.
5865 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5866 call to linux_find_memory_regions_full.
5867
db082f59
KB
58682020-07-22 Kevin Buettner <kevinb@redhat.com>
5869
5870 * corelow.c (solist.h, unordered_map): Include.
5871 (class core_target): Add field m_core_file_mappings and
5872 method build_file_mappings.
5873 (core_target::core_target): Call build_file_mappings.
5874 (core_target::~core_target): Free memory associated with
5875 m_core_file_mappings.
5876 (core_target::build_file_mappings): New method.
5877 (core_target::xfer_partial): Use m_core_file_mappings
5878 for memory transfers.
5879 * linux-tdep.c (linux_read_core_file_mappings): New
5880 function.
5881 (linux_core_info_proc_mappings): Rewrite to use
5882 linux_read_core_file_mappings.
5883 (linux_init_abi): Register linux_read_core_file_mappings.
5884
7e183d27
KB
58852020-07-22 Kevin Buettner <kevinb@redhat.com>
5886
5887 * arch-utils.c (default_read_core_file_mappings): New function.
5888 * arch-utils.c (default_read_core_file_mappings): Declare.
5889 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5890 * gdbarch.h, gdbarch.c: Regenerate.
5891
2735d421
KB
58922020-07-22 Kevin Buettner <kevinb@redhat.com>
5893
5894 PR corefiles/25631
5895 * corelow.c (core_target:xfer_partial): Revise
5896 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5897 case after first checking the stratum beneath the core
5898 target.
5899 (has_all_memory): Return true.
5900 * target.c (raw_memory_xfer_partial): Revise comment
5901 regarding use of has_all_memory.
5902
e56cb451
KB
59032020-07-22 Kevin Buettner <kevinb@redhat.com>
5904
5905 * exec.h (section_table_xfer_memory): Revise declaration,
5906 replacing section name parameter with an optional callback
5907 predicate.
5908 * exec.c (section_table_xfer_memory): Likewise.
5909 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5910 of section_table_xfer_memory.
5911
32fa152e
TT
59122020-07-22 Tom Tromey <tromey@adacore.com>
5913
5914 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5915 lookup_symbol_search_name.
5916
a67a1c41
AB
59172020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5918
5919 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5920 redundant local variable.
5921 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5922 reference, not pointer, update code accordingly.
5923
a7b4ff4f
SM
59242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5925 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5926
5927 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5928 * jit.c (jit_breakpoint_re_set_internal): Use the
5929 `skip_jit_symbol_lookup` field.
5930
2340e834
SM
59312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5932 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5933
5934 * jit.c (jit_read_descriptor): Define the descriptor address once,
5935 use twice.
5936 (jit_breakpoint_deleted): Move the declaration of the loop variable
5937 `iter` into the loop header.
5938 (jit_breakpoint_re_set_internal): Move the declaration of the local
5939 variable `objf_data` to the first point of definition.
5940 (jit_event_handler): Move the declaration of local variables
5941 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5942 Rename `objf` to `jited`.
5943
c1072906
SM
59442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5947 Remove.
5948 * jit.c (get_jiter_objfile_data): Update.
5949
c8474dc3
TBA
59502020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5951 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * jit.c (struct jit_program_space_data): Remove.
5954 (jit_program_space_key): Remove.
5955 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5956 stuff.
5957 (get_jit_program_space_data): Remove.
5958 (jit_breakpoint_deleted): Iterate on all of the program space's
5959 objfiles.
5960 (jit_inferior_init): Likewise.
5961 (jit_breakpoint_re_set_internal): Likewise. Also change return
5962 type to void.
5963 (jit_breakpoint_re_set): Pass current_program_space to
5964 jit_breakpoint_re_set_internal.
5965
77208eb7
SM
59662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * jit.h (struct jiter_objfile_data) <cached_code_address,
5969 jit_breakpoint>: Move to here from ...
5970 * jit.c (jit_program_space_data): ... here.
5971 (jiter_objfile_data::~jiter_objfile_data): Update.
5972 (jit_breakpoint_deleted): Update.
5973 (jit_breakpoint_re_set_internal): Update.
5974
8c1c720f
SM
59752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5978 checks.
5979 (jit_read_descriptor): Remove NULL check.
5980 (jit_event_handler): Add an assertion.
5981
0e74a041
SM
59822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * jit.h (struct jit_objfile_data): Split into...
5985 (struct jiter_objfile_data): ... this ...
5986 (struct jited_objfile_data): ... and this.
5987 * objfiles.h (struct objfile) <jit_data>: Remove.
5988 <jiter_data, jited_data>: New fields.
5989 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5990 (jiter_objfile_data::~jiter_objfile_data): ... this.
5991 (get_jit_objfile_data): Rename to ...
5992 (get_jiter_objfile_data): ... this.
5993 (add_objfile_entry): Update.
5994 (jit_read_descriptor): Use get_jiter_objfile_data.
5995 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5996 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5997 (jit_inferior_exit_hook): Use objfile's jited_data field.
5998
238b5c9f
SM
59992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * jit.h: Forward-declare `struct minimal_symbol`.
6002 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6003 constructor, destructor, and an objfile* field.
6004 * jit.c (jit_objfile_data): Remove.
6005 (struct jit_objfile_data): Migrate from here to jit.h.
6006 (jit_objfile_data::~jit_objfile_data): New destructor
6007 implementation with code moved from free_objfile_data.
6008 (free_objfile_data): Delete.
6009 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6010 (jit_find_objf_with_entry_addr): Ditto.
6011 (jit_inferior_exit_hook): Ditto.
6012 (_initialize_jit): Remove the call to
6013 register_objfile_data_with_cleanup.
6014 * objfiles.h (struct objfile) <jit_data>: New field.
6015
fe053b9e
TBA
60162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6017
6018 * jit.h: Forward-declare `struct objfile`.
6019 (jit_event_handler): Add a second parameter, the JITer objfile.
6020 * jit.c (jit_read_descriptor): Change the signature to take the
6021 JITer objfile as an argument instead of the jit_program_space_data.
6022 (jit_inferior_init): Update the call to jit_read_descriptor.
6023 (jit_event_handler): Use the new JITer objfile argument when calling
6024 jit_read_descriptor.
6025 * breakpoint.c (handle_jit_event): Update the call to
6026 jit_event_handler to pass the JITer objfile.
6027
4cec0c66
JB
60282020-07-21 John Baldwin <jhb@FreeBSD.org>
6029
6030 * gdbarch.c: Regenerate.
6031 * gdbarch.h: Regenerate.
6032 * gdbarch.sh (handle_segmentation_fault): Remove method.
6033 * infrun.c (handle_segmentation_fault): Remove.
6034 (print_signal_received_reason): Remove call to
6035 handle_segmentation_fault.
6036
0e42f66a
JB
60372020-07-21 John Baldwin <jhb@FreeBSD.org>
6038
6039 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6040 Rename to sparc64_linux_report_signal_info and add siggnal
6041 argument.
6042 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6043 instead of sparc64_linux_handle_segmentation_fault.
6044
77bdfeb2
JB
60452020-07-21 John Baldwin <jhb@FreeBSD.org>
6046
6047 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6048 i386_linux_report_signal_info instead of
6049 i386_linux_handle_segmentation_fault.
6050 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6051 to i386_linux_report_signal_info and add siggnal argument.
6052 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6053 of i386_linux_handle_segmentation_fault.
6054 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6055 to i386_linux_report_signal_info and add siggnal argument.
6056
ad97bfc5
JB
60572020-07-21 John Baldwin <jhb@FreeBSD.org>
6058
6059 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6060 hook if present.
6061
272bb05c
JB
60622020-07-21 John Baldwin <jhb@FreeBSD.org>
6063
6064 * gdbarch.c: Regenerate.
6065 * gdbarch.h: Regenerate.
6066 * gdbarch.sh (report_signal_info): New method.
6067 * infrun.c (print_signal_received_reason): Invoke gdbarch
6068 report_signal_info hook if present.
6069
baf8791e
AB
60702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6071
6072 * python/py-registers.c : Add 'unordered_map' include.
6073 (gdbpy_new_reggroup): Renamed to...
6074 (gdbpy_get_reggroup): ...this. Update to only create register
6075 group descriptors when needed.
6076 (gdbpy_reggroup_iter_next): Update.
6077
f7306dac
AB
60782020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 * python/py-registers.c (gdbpy_register_object_data): New static
6081 global.
6082 (gdbpy_register_object_data_init): New function.
6083 (gdbpy_new_register_descriptor): Renamed to...
6084 (gdbpy_get_register_descriptor): ...this, and update to reuse
6085 existing register descriptors where possible.
6086 (gdbpy_register_descriptor_iter_next): Update.
6087 (gdbpy_initialize_registers): Register new gdbarch data.
6088
05c309a8
SM
60892020-07-21 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * linux-nat.c (stopped_pids): Make static.
6092
d1fd641e
SM
60932020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 PR ada/26235
6096 * gdbtypes.c (ada_discrete_type_low_bound,
6097 ada_discrete_type_high_bound): Handle undefined bounds.
6098
1de14d77
KR
60992020-07-21 Kamil Rytarowski <n54@gmx.com>
6100
6101 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6102 declaration.
6103 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6104 function.
6105
ed810cc7
JB
61062020-07-20 John Baldwin <jhb@FreeBSD.org>
6107
6108 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6109 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6110 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6111 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6112 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6113 method.
6114
ae5369e7
LC
61152020-07-20 Ludovic Courtès <ludo@gnu.org>
6116
6117 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6118 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6119 which are deprecated in Guile 3.0.
6120 * configure.ac (try_guile_versions): Add "guile-3.0".
6121 * configure (try_guile_versions): Regenerate.
6122 * NEWS: Update entry.
6123
68cf161c
LC
61242020-07-20 Ludovic Courtès <ludo@gnu.org>
6125 Doug Evans <dje@google.com>
6126
6127 PR gdb/21104
6128 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6129 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6130 USING_GUILE_BEFORE_2_2.
6131 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6132 Change type to 'scm_t_port_type *'.
6133 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6134 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6135 parameter and honor it. Update callers.
6136 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6137 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6138 functions.
6139 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6140 USING_GUILE_BEFORE_2_2.
6141 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6142 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6143 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6144 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6145 and 'SCM_PORT_TYPE'.
6146 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6147 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6148 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6149 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6150 [!USING_GUILE_BEFORE_2_2]: New functions.
6151 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6152 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6153 'gdbscm_memory_port_read'.
6154 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6155 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6156 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6157 function.
6158 (ioscm_init_memory_port): Remove.
6159 (ioscm_init_memory_port_stream): New function
6160 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6161 function.
6162 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6163 Return scm_from_uint (0).
6164 (gdbscm_set_memory_port_read_buffer_size_x)
6165 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6166 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6167 Return scm_from_uint (0).
6168 (gdbscm_set_memory_port_write_buffer_size_x)
6169 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6170 * configure.ac (try_guile_versions): Add "guile-2.2".
6171 * configure: Regenerate.
6172 * NEWS: Add entry.
6173
aee91db3
TT
61742020-07-18 Tom Tromey <tom@tromey.com>
6175
6176 * linux-nat.c (linux_multi_process): Remove.
6177 (linux_nat_target::supports_multi_process): Return true.
6178
0e267416
AB
61792020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6182 (riscv_lookup_target_description): Return pointer out of
6183 unique_ptr.
6184 * target-descriptions.c (allocate_target_description): Add
6185 comment.
6186 (target_desc_deleter::operator()): Likewise.
6187 * target-descriptions.h (struct target_desc_deleter): Moved to
6188 gdbsupport/tdesc.h.
6189 (target_desc_up): Likewise.
6190
f80c8ec4
TT
61912020-07-17 Tom Tromey <tromey@adacore.com>
6192
6193 * linux-nat.c (linux_nat_target::supports_non_stop)
6194 (linux_nat_target::always_non_stop_p): Use "true".
6195 (linux_nat_target::supports_disable_randomization): Use "true" and
6196 "false".
6197
d0ce17d8
CT
61982020-07-16 Caroline Tice <cmtice@google.com>
6199
6200 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6201 (RNGLIST_HEADER_SIZE64): New constant definition.
6202 (struct dwop_section_names): Add rnglists_dwo.
6203 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6204 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6205 (struct dwo_sections): Add rnglists field.
6206 (read_attribut_reprocess): Add tag parameter.
6207 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6208 (cu_debug_rnglists_section): New function (decl & definition).
6209 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6210 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6211 die whose range is being checked; get rnglist section from
6212 cu_debug_rnglists_section, to get from either objfile or dwo file as
6213 appropriate. Add cases for DW_RLE_base_addressx,
6214 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6215 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6216 test inside if-condition and updating complaint message.
6217 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6218 dwarf2_rnglists_process.
6219 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6220 dwarf2_ranges_process.
6221 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6222 need_ranges_base and update comment appropriately. Also pass die tag
6223 to dwarf2_ranges_read.
6224 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6225 need_ranges_base and update comment appropriately. Also pass die tag
6226 to dwarf2_ranges_process.
6227 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6228 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6229 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6230 need_ranges_base and update comment appropriately. Also pass die tag
6231 to read_attribute_reprocess and dwarf2_ranges_read.
6232 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6233 and update function comment appropriately.
6234 (read_loclist_index): Call read_loclists_rnglists_header instead of
6235 read_loclist_header.
6236 (read_rnglist_index): New function.
6237 (read_attribute_reprocess): Add tag parameter. Add code for
6238 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6239 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6240
3dcc261c
AB
62412020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6242
6243 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6244 being resolved.
6245
ccb9eba6
AB
62462020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * arch-utils.c (show_architecture): Update formatting of messages.
6249
cf88be68
SM
62502020-07-12 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * gdbtypes.h (struct type) <bounds>: Handle array and string
6253 types.
6254 * ada-lang.c (assign_aggregate): Use type::bounds on
6255 array/string type.
6256 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6257 * c-varobj.c (c_number_of_children): Likewise.
6258 (c_describe_child): Likewise.
6259 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6260 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6261 (f_type_print_base): Likewise.
6262 * f-valprint.c (f77_array_offset_tbl): Likewise.
6263 (f77_get_upperbound): Likewise.
6264 (f77_print_array_1): Likewise.
6265 * guile/scm-type.c (gdbscm_type_range): Likewise.
6266 * m2-typeprint.c (m2_array): Likewise.
6267 (m2_is_long_set_of_type): Likewise.
6268 * m2-valprint.c (get_long_set_bounds): Likewise.
6269 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6270 * python/py-type.c (typy_range): Likewise.
6271 * rust-lang.c (rust_internal_print_type): Likewise.
6272 * type-stack.c (type_stack::follow_types): Likewise.
6273 * valarith.c (value_subscripted_rvalue): Likewise.
6274 * valops.c (value_cast): Likewise.
6275
509971ae
SM
62762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6279 callers to use the equivalent accessor methods.
6280
107406b7
SM
62812020-07-12 Simon Marchi <simon.marchi@efficios.com>
6282
6283 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6284 (struct type) <bit_stride>: New method.
6285 (TYPE_BIT_STRIDE): Remove.
6286 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6287
bb789949
SM
62882020-07-12 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6291 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6292 callers to use the equivalent accessor methods instead.
6293
39498edb
SM
62942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6297 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6298 callers to use the equivalent accessor methods instead.
6299
3b606f38
SM
63002020-07-12 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6303 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6304 to use dynamic_prop::kind.
6305
064d9cb9
SM
63062020-07-12 Simon Marchi <simon.marchi@efficios.com>
6307
6308 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6309 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6310 to get the bound property's kind and check against
6311 PROP_UNDEFINED.
6312
5537ddd0
SM
63132020-07-12 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6316 all callers to use type::range_bounds followed by
6317 dynamic_prop::{low,high}.
6318
8c2e4e06
SM
63192020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6322 const_val, set_const_val, baton, set_locexpr, set_loclist,
6323 set_addr_offset, variant_parts, set_variant_parts,
6324 original_type, set_original_type>: New methods.
6325 <kind>: Rename to...
6326 <m_kind>: ... this. Update all users to use the new methods
6327 instead.
6328 <data>: Rename to...
6329 <m_data>: ... this. Update all users to use the new methods
6330 instead.
6331
7c6f2712
SM
63322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * gdbtypes.c (get_discrete_bounds): Return failure if
6335 the range type's bounds are not both defined and constant
6336 values.
6337 (get_array_bounds): Update comment. Remove undefined bound check.
6338
599088e3
SM
63392020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6342 the type::bounds method directly.
6343
c4dfcb36
SM
63442020-07-12 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6347 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6348 are used to set the range type's bounds to use set_bounds.
6349
0a278aa7
PW
63502020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6351
6352 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6353
cce20f10
PA
63542020-07-10 Pedro Alves <pedro@palves.net>
6355
6356 * gdbthread.h (inferior_ref): Define.
6357 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6358 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6359 * thread.c
6360 (scoped_restore_current_thread::restore):
6361 Adjust to gdb::ref_ptr.
6362 (scoped_restore_current_thread::~scoped_restore_current_thread):
6363 Remove manual decref handling.
6364 (scoped_restore_current_thread::scoped_restore_current_thread):
6365 Adjust to use
6366 inferior_ref::new_reference/thread_info_ref::new_reference.
6367 Incref the thread before calling get_frame_id instead of after.
6368 Let TARGET_CLOSE_ERROR propagate.
6369
6d7aa592
PA
63702020-07-10 Pedro Alves <pedro@palves.net>
6371
6372 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6373 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6374 NOT_AVAILABLE_ERROR.
6375 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6376 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6377
b3e3a4c1
SM
63782020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6379 Pedro Alves <pedro@palves.net>
6380
6381 PR gdb/26199
6382 * infrun.c (threads_are_resumed_pending_p): Delete.
6383 (do_target_wait): Remove threads_are_executing and
6384 threads_are_resumed_pending_p checks from the inferior_matches
6385 lambda. Update comments.
6386
d6cc5d98
PA
63872020-07-10 Pedro Alves <pedro@palves.net>
6388
6389 PR gdb/26199
6390 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6391 executing threads.
6392
7d3badc6
PA
63932020-07-10 Pedro Alves <pedro@palves.net>
6394
6395 PR gdb/26199
6396 * infrun.c (handle_no_resumed): Handle multiple targets.
6397
42bd97a6
PA
63982020-07-10 Pedro Alves <pedro@palves.net>
6399
6400 PR gdb/26199
6401 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6402 target_is_async_p.
6403
43667cc6
PA
64042020-07-10 Pedro Alves <pedro@palves.net>
6405
6406 PR gdb/26199
6407 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6408 threads, not all threads.
6409
96118d11
PA
64102020-07-10 Pedro Alves <pedro@palves.net>
6411
6412 PR gdb/26199
6413 * remote.c (remote_target::open_1): Pass remote target pointer as
6414 data to create_async_event_handler.
6415 (remote_async_inferior_event_handler): Mark async event handler
6416 before returning if the remote target still has either pending
6417 events or unacknowledged notifications.
6418
54904d81
JB
64192020-07-10 John Baldwin <jhb@FreeBSD.org>
6420
6421 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6422 declaration.
6423 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6424 function.
6425
f37e5866
JB
64262020-07-09 John Baldwin <jhb@FreeBSD.org>
6427
6428 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6429 inferior_ptid.
6430
fc238d4a
JB
64312020-07-09 John Baldwin <jhb@FreeBSD.org>
6432
6433 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6434 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6435 AT_FREEBSD_PS_STRINGS.
6436
6e2469ff
HD
64372020-07-08 Hannes Domani <ssbssa@yahoo.de>
6438
6439 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6440 of debugfile path on Windows.
6441
d1076c41
JB
64422020-07-08 John Baldwin <jhb@FreeBSD.org>
6443
6444 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6445 argument to 'data'.
6446
15f3b077
TT
64472020-07-08 Tom Tromey <tromey@adacore.com>
6448
6449 * ada-lang.c (ada_exception_message_1): Use read_memory.
6450
9fc501fd
AB
64512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 PR python/22748
6454 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6455 special handling for inline frames.
6456 * findvar.c (value_of_register_lazy): Skip inline frames when
6457 creating lazy register values.
6458 * frame.c (frame_id_computed_p): Delete definition.
6459 * frame.h (frame_id_computed_p): Delete declaration.
6460
64cb3757
AB
64612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * NEWS: Mention additions to Python API.
6464 * python/py-arch.c (archpy_register_groups): New function.
6465 (arch_object_methods): Add 'register_groups' method.
6466 * python/py-registers.c (reggroup_iterator_object): New struct.
6467 (reggroup_object): New struct.
6468 (gdbpy_new_reggroup): New function.
6469 (gdbpy_reggroup_to_string): New function.
6470 (gdbpy_reggroup_name): New function.
6471 (gdbpy_reggroup_iter): New function.
6472 (gdbpy_reggroup_iter_next): New function.
6473 (gdbpy_new_reggroup_iterator): New function
6474 (gdbpy_initialize_registers): Register new types.
6475 (reggroup_iterator_object_type): Define new Python type.
6476 (gdbpy_reggroup_getset): New static global.
6477 (reggroup_object_type): Define new Python type.
6478 * python/python-internal.h
6479
0f767f94
AB
64802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6483 * python/py-arch.c (archpy_registers): New function.
6484 (arch_object_methods): Add 'registers' method.
6485 * python/py-registers.c: New file.
6486 * python/python-internal.h
6487 (gdbpy_new_register_descriptor_iterator): Declare.
6488 (gdbpy_initialize_registers): Declare.
6489 * python/python.c (do_start_initialization): Call
6490 gdbpy_initialize_registers.
6491 * NEWS: Mention additions to the Python API.
6492
87dbc774
AB
64932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * NEWS: Mention new Python API method.
6496 * python/py-unwind.c (pending_framepy_architecture): New function.
6497 (pending_frame_object_methods): Add architecture method.
6498
3bc98c0c
AB
64992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * gdbarch.c: Regenerate.
6502 * gdbarch.h: Regenerate.
6503 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6504 (gdbarch_data): Use internal_error for the case where
6505 deprecated_set_gdbarch_data was originally needed.
6506 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6507 and use passed in obstack.
6508 (libunwind_frame_set_descr): Should no longer get back NULL from
6509 gdbarch_data.
6510 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6511 type.
6512 * user-regs.c (user_regs_init): Update parameters, and use passed
6513 in obstack.
6514 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6515 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6516
d8cc8af6
TV
65172020-07-06 Tom de Vries <tdevries@suse.de>
6518
6519 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6520 End-Of-Sequence in lte_is_less_than.
6521 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6522 "gdb: Don't reorder line table entries too much when sorting".
6523
947f7597
TV
65242020-07-06 Tom de Vries <tdevries@suse.de>
6525
6526 PR tui/26205
6527 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6528
1e7c1b22
TV
65292020-07-05 Tom de Vries <tdevries@suse.de>
6530
6531 PR build/26187
6532 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6533 std::uncaught_exceptions instead of deprecated
6534 std::uncaught_exception.
6535
a36158ec
SM
65362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * macroexp.h (macro_stringify): Return
6539 gdb::unique_xmalloc_ptr<char>.
6540 * macroexp.c (macro_stringify): Likewise.
6541 * macrotab.c (fixup_definition): Update.
6542
14d960c8
SM
65432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6544
6545 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6546 (lex_one_token): Update.
6547 * macroexp.c (struct macro_buffer) <release>: Return
6548 gdb::unique_xmalloc_ptr<char>.
6549 (macro_stringify): Update.
6550 (macro_expand): Update.
6551 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6552 * macroexp.h (macro_expand_next): Likewise.
6553
211d5b1c
SM
65542020-07-02 Simon Marchi <simon.marchi@efficios.com>
6555
6556 * macroexp.h (macro_lookup_ftype): Remove.
6557 (macro_expand, macro_expand_once, macro_expand_next): Remove
6558 lookup function parameters, add scope parameter.
6559 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6560 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6561 * macroscope.h (standard_macro_lookup): Change parameter type
6562 to macro_scope.
6563 * macroscope.c (standard_macro_lookup): Likewise.
6564 * c-exp.y (lex_one_token): Update.
6565 * macrocmd.c (macro_expand_command): Likewise.
6566 (macro_expand_once_command): Likewise.
6567
b1a35af2
SM
65682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * inf-loop.c (inferior_event_handler): Remove client_data param.
6571 * inf-loop.h (inferior_event_handler): Likewise.
6572 * infcmd.c (step_1): Adjust.
6573 * infrun.c (proceed): Adjust.
6574 (fetch_inferior_event): Remove client_data param.
6575 (infrun_async_inferior_event_handler): Adjust.
6576 * infrun.h (fetch_inferior_event): Remove `void *` param.
6577 * linux-nat.c (handle_target_event): Adjust.
6578 * record-btrace.c (record_btrace_handle_async_inferior_event):
6579 Adjust.
6580 * record-full.c (record_full_async_inferior_event_handler):
6581 Adjust.
6582 * remote.c (remote_async_inferior_event_handler): Adjust.
6583
1cdf9e33
TT
65842020-07-01 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6587 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6588
32c1e210
TT
65892020-07-01 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6592 tui_gen_win_info.
6593 (tui_win_info::make_window): Merge with
6594 tui_gen_win_info::make_window.
6595 (tui_win_info::make_visible): Move from tui_gen_win_info.
6596 * tui/tui-win.c (tui_win_info::max_width): Move from
6597 tui_gen_win_info.
6598 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6599 type.
6600 <window_factory>: Likewise.
6601 * tui/tui-layout.c (tui_win_info::resize): Move from
6602 tui_gen_win_info.
6603 (make_standard_window): Change return type.
6604 (get_locator_window, tui_get_window_by_name): Likewise.
6605 (tui_layout_window::apply): Remove a cast.
6606 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6607 (struct tui_win_info): Merge with tui_gen_win_info.
6608 (struct tui_gen_win_info): Remove.
6609
a30cb6da
TT
66102020-07-01 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-stack.h (struct tui_locator_window): Derive from
6613 tui_win_info.
6614 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6615 <can_box>: New method.
6616
1eb2161f
TT
66172020-07-01 Tom Tromey <tom@tromey.com>
6618
6619 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6620
7134f2eb
TT
66212020-07-01 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-regs.c (tui_data_window::display_registers_from)
6624 (tui_data_window::display_registers_from)
6625 (tui_data_window::first_data_item_displayed)
6626 (tui_data_window::delete_data_content_windows): Update.
6627 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6628 Remove.
6629 (tui_data_window::check_register_values): Update.
6630 (tui_data_item_window::rerender): Add parameters. Update.
6631 (tui_data_item_window::refresh_window): Remove.
6632 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6633 virtual.
6634 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6635 tui_gen_win_info.
6636 <refresh_window, max_height, min_height>: Remove.
6637 <rerender>: Add parameters.
6638 <x, y, visible>: New members.
6639 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6640 <m_item_width>: New member.
6641
22b7b041
TT
66422020-07-01 Tom Tromey <tom@tromey.com>
6643
6644 * tui/tui-regs.c (tui_data_window::show_register_group)
6645 (tui_data_window::check_register_values): Update.
6646 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6647 from item_no.
6648
c9753adb
TT
66492020-07-01 Tom Tromey <tom@tromey.com>
6650
6651 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6652 useless "if".
6653
9ab26b4a
TT
66542020-07-01 Tom Tromey <tom@tromey.com>
6655
6656 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6657 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6658
e555083f
TT
66592020-07-01 Tom Tromey <tom@tromey.com>
6660
6661 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6662 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6663 (struct tui_line_or_address): Move from tui-data.h.
6664 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6665 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6666 (tui_cmd_window, tui_source_window_base, tui_source_window)
6667 (tui_disasm_window): Don't declare.
6668 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6669 to tui-winsource.h.
6670 (SINGLE_KEY): Move to tui-stack.c.
6671
7a02bab7
TT
66722020-07-01 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6675 std::string.
6676 * tui/tui-regs.c (class tab_expansion_file): New.
6677 (tab_expansion_file::write): New method.
6678 (tui_register_format): Change return type. Use
6679 tab_expansion_file.
6680 (tui_get_register, tui_data_window::display_registers_from)
6681 (tui_data_item_window::rerender): Update.
6682 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6683 * tui/tui-io.c (tui_expand_tabs): Remove.
6684
ea68593b
TT
66852020-07-01 Tom Tromey <tom@tromey.com>
6686
6687 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6688
a8caed5d
FS
66892020-07-01 Fangrui Song <maskray@google.com>
6690
6691 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6692
9cdf9820
AKS
66932020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6694
6695 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6696 forms for DW_AT_associated and DW_AT_allocated attributes,
6697 which is already checked in function attr_to_dynamic_prop.
6698
a1520ad8
TT
66992020-06-30 Tom Tromey <tromey@adacore.com>
6700
6701 * dwarf2/read.c (quirk_rust_enum): Correctly call
6702 alloc_rust_variant for default-less enum.
6703
5ac58899
TT
67042020-06-30 Tom Tromey <tromey@adacore.com>
6705
6706 PR build/26183:
6707 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6708 gdb::to_string.
6709
19b187a9
SM
67102020-06-29 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6713 * gdbarch.h: Re-generate.
6714
cd4c4c07
TT
67152020-06-28 Tom Tromey <tom@tromey.com>
6716
6717 * command.h (cmd_types): Remove.
6718 (cmd_type): Don't declare.
6719 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6720 typedef.
6721 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6722 * cli/cli-decode.c (cmd_type): Remove.
6723
05779d57
PA
67242020-06-27 Pedro Alves <palves@redhat.com>
6725
6726 * fork-child.c (prefork_hook): Adjust.
6727 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6728 Delete.
6729 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6730 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6731 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6732 Remove declarations.
6733 (struct inferior) <set_tty, tty>: New methods.
6734 (struct inferior) <terminal>: Rename to ...
6735 (struct inferior) <m_terminal>: ... this and make private.
6736 * main.c (captured_main_1): Adjust.
6737 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6738 (mi_cmd_inferior_tty_show): Adjust.
6739 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6740 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6741
1776e3e5
NA
67422020-06-26 Nick Alcock <nick.alcock@oracle.com>
6743
6744 * configure.ac: Add --enable-libctf: handle --disable-static
6745 properly.
6746 * acinclude.m4: sinclude ../config/enable.m4.
6747 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6748 (LIBCTF): Substitute in.
6749 (CTF_DEPS): New, likewise.
6750 (CLIBS): libctf needs symbols from libbfd: move earlier.
6751 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6752 flags.
6753 * ctfread.c: Surround in ENABLE_LIBCTF.
6754 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6755 * configure: Regenerate.
6756 * config.in: Likewise.
6757
58373b80
SM
67582020-06-25 Simon Marchi <simon.marchi@efficios.com>
6759
6760 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6761
277474ee
SM
67622020-06-25 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * inferior.h (struct inferior) <terminal>: Change type to
6765 gdb::unique_xmalloc_ptr<char>.
6766 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6767 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6768 field, adjust to unique pointer.
6769 (get_inferior_io_terminal): Adjust to unique pointer.
6770
6d74da72
AB
67712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6774 registers, not just the known core set of registers.
6775
2e52d038
AB
67762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6779 fflags, frm, and fcsr registers.
6780 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6781 restore groups.
6782 (riscv_tdesc_unknown_reg): New function.
6783 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6784 tdesc_use_registers.
6785 * riscv-tdep.h (struct gdbarch_tdep): Add
6786 unknown_csrs_first_regnum, unknown_csrs_count,
6787 duplicate_fflags_regnum, duplicate_frm_regnum, and
6788 duplicate_fcsr_regnum fields.
6789
be64fd07
AB
67902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6793 callback, use the callback (when not null) to help number unknown
6794 registers.
6795 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6796 (tdesc_use_registers): Add extra parameter to declaration.
6797
3b9fce96
AB
67982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6801 in the file.
6802 (class riscv_pending_register_alias): Likewise.
6803 (riscv_register_feature::register_info): Change 'required_p' field
6804 to 'required', and change its type. Add 'check' member function.
6805 (riscv_register_feature::register_info::check): Define new member
6806 function.
6807 (riscv_xreg_feature): Change initialisation of 'required' field.
6808 (riscv_freg_feature): Likewise.
6809 (riscv_virtual_feature): Likewise.
6810 (riscv_csr_feature): Likewise.
6811 (riscv_check_tdesc_feature): Take extra parameter, the csr
6812 tdesc_feature, rewrite the function to use the new
6813 riscv_register_feature::register_info::check function.
6814 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6815
865bad26
AB
68162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * features/Makefile: Remove all references to the deleted files
6819 below.
6820 * features/riscv/32bit-csr.c: Deleted.
6821 * features/riscv/32bit-csr.xml: Deleted.
6822 * features/riscv/64bit-csr.c: Deleted.
6823 * features/riscv/64bit-csr.xml: Deleted.
6824 * features/riscv/rebuild-csr-xml.sh: Deleted.
6825
ed69cbc8
AB
68262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6829 whitespace error for declaration of names member variable.
6830 (struct riscv_register_feature): Add new prefer_first_name member
6831 variable, and fix whitespace error in declaration of registers.
6832 (riscv_xreg_feature): Initialize prefer_first_name field.
6833 (riscv_freg_feature): Likewise.
6834 (riscv_virtual_feature): Likewise.
6835 (riscv_csr_feature): Likewise.
6836 (riscv_register_name): Expand on comments. Remove register name
6837 modifications for CSR and virtual registers.
6838
4445e8f5
AB
68392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6842 errors.
6843
767a879e
AB
68442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6845
6846 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6847 riscv-opc.h.
6848 (class riscv_pending_register_alias): New class.
6849 (riscv_check_tdesc_feature): Take vector of pending aliases and
6850 populate it as appropriate.
6851 (riscv_setup_register_aliases): Delete.
6852 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6853 to riscv_check_tdesc_feature in all cases. Use the vector to
6854 create the register aliases.
6855
bb6e55f3
RO
68562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6857
6858 * sol2-tdep.c (sol2_static_transform_name): Remove.
6859 (sol2_init_abi): Don't register it.
6860 * gdbarch.sh (static_transform_name): Remove.
6861 * gdbarch.c, gdbarch.h: Regenerate.
6862
6863 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6864 gdbarch_static_transform_name.
6865 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6866 * stabsread.c (define_symbol) <'X'>: Remove.
6867 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6868 handling.
6869 <'V'>: Likewise.
6870 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6871 <'S'>: Remove call to gdbarch_static_transform_name.
6872
c6d36836
RO
68732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6874
6875 * procfs.c (procfs_pre_trace): New function.
6876 (procfs_target::create_inferior): Pass it to fork_inferior.
6877
a7e6196b
RO
68782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6879
6880 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6881 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6882 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6883 sol2-tdep.o, sparc-sol2-tdep.o.
6884 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6885 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6886 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6887 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6888
d412e696
RO
68892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6890
6891 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6892 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6893 Call sol2_init_abi.
6894 Remove calls to set_gdbarch_skip_solib_resolver,
6895 set_gdbarch_core_pid_to_str.
6896 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6897 (i386_sol2_static_transform_name): Remove.
6898 (i386_sol2_init_abi): Call sol2_init_abi.
6899 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6900 set_gdbarch_static_transform_name,
6901 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6902 Use sol2_sigtramp_p.
6903 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6904 (sol2_sigtramp_p): New function.
6905 (sol2_static_transform_name): New function.
6906 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6907 (sol2_init_abi): New function.
6908 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6909 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6910 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6911 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6912 (sparc_sol2_static_transform_name): Remove.
6913 (sparc32_sol2_init_abi): Call sol2_init_abi.
6914 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6915 set_gdbarch_static_transform_name,
6916 set_gdbarch_skip_solib_resolver,
6917 set_gdbarch_core_pid_to_str.
6918 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6919 (sparc_sol2_static_transform_name): Remove
6920 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6921 call sol2_sigtramp_p.
6922 (sparc64_sol2_init_abi): Call sol2_init_abi.
6923 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6924 set_gdbarch_static_transform_name,
6925 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6926
a8654e7d
PW
69272020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6928
6929 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6930 * exec.c (validate_exec_file): If from_tty, set both
6931 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6932 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6933 and from_tty, unconditionally ask a confirmation.
6934
caa7fd04
AB
69352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * target-descriptions.c (tdesc_architecture_name): Protect against
6938 NULL pointer dereference.
6939 (maint_print_xml_tdesc_cmd): New function.
6940 (_initialize_target_descriptions): Register new 'maint print
6941 xml-tdesc' command and give it the filename completer.
6942 * NEWS: Mention new 'maint print xml-tdesc' command.
6943
fbf42f4e
AB
69442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * target-descriptions.c (class tdesc_compatible_info): New class.
6947 (struct target_desc): Change type of compatible vector.
6948 (tdesc_compatible_p): Update for change in type of
6949 target_desc::compatible.
6950 (tdesc_compatible_info_list): New function.
6951 (tdesc_compatible_info_arch_name): New function.
6952 (tdesc_add_compatible): Update for change in type of
6953 target_desc::compatible.
6954 (print_c_tdesc::visit_pre): Likewise.
6955
20821f4e
AB
69562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6959 whitespace to underscore.
6960 (maint_print_c_tdesc_cmd): Use fake filename for target
6961 descriptions that came from the target.
6962 (_initialize_target_descriptions): Add filename command completion
6963 for 'maint print c-tdesc'.
6964
1fb5ee62
SM
69652020-06-23 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6968 lines.
6969
fc3ecb3e
SM
69702020-06-23 Simon Marchi <simon.marchi@efficios.com>
6971
6972 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6973 lines.
6974 (dwarf2_find_location_expression): Likewise.
6975 (call_site_parameter_matches): Likewise.
6976 (dwarf2_compile_expr_to_ax): Likewise.
6977 (disassemble_dwarf_expression): Likewise.
6978 (loclist_describe_location): Likewise.
6979
236ef034
PA
69802020-06-23 Pedro Alves <palves@redhat.com>
6981
6982 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6983 progspace-and-thread.h. Include scoped-mock-context.h instead.
6984 (register_to_value_test): Use scoped_mock_context.
6985 * regcache.c: Include "scoped-mock-context.h".
6986 (cooked_read_test): Don't error out if a target is already pushed.
6987 Use scoped_mock_context. Adjust.
6988 * scoped-mock-context.h: New file.
6989
39e7ecca
AB
69902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6991
6992 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6993 initializer.
6994 (ada_language::is_string_type_p): New member function.
6995 * c-lang.c (c_language_data): Delete la_is_string_type_p
6996 initializer.
6997 (cplus_language_data): Likewise.
6998 (asm_language_data): Likewise.
6999 (minimal_language_data): Likewise.
7000 * d-lang.c (d_language_data): Likewise.
7001 * f-lang.c (f_is_string_type_p): Delete function, implementation
7002 moved to f_language::is_string_type_p.
7003 (f_language_data): Delete la_is_string_type_p initializer.
7004 (f_language::is_string_type_p): New member function,
7005 implementation from f_is_string_type_p.
7006 * go-lang.c (go_is_string_type_p): Delete function, implementation
7007 moved to go_language::is_string_type_p.
7008 (go_language_data): Delete la_is_string_type_p initializer.
7009 (go_language::is_string_type_p): New member function,
7010 implementation from go_is_string_type_p.
7011 * language.c (language_defn::is_string_type_p): Define new member
7012 function.
7013 (default_is_string_type_p): Make static, add comment copied from
7014 header file.
7015 (unknown_language_data): Delete la_is_string_type_p initializer.
7016 (unknown_language::is_string_type_p): New member function.
7017 (auto_language_data): Delete la_is_string_type_p initializer.
7018 (auto_language::is_string_type_p): New member function.
7019 * language.h (language_data): Delete la_is_string_type_p field.
7020 (language_defn::is_string_type_p): Declare new function.
7021 (default_is_string_type_p): Delete desclaration, move comment to
7022 definition.
7023 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7024 moved to m2_language::is_string_type_p.
7025 (m2_language_data): Delete la_is_string_type_p initializer.
7026 (m2_language::is_string_type_p): New member function,
7027 implementation from m2_is_string_type_p.
7028 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7029 initializer.
7030 * opencl-lang.c (opencl_language_data): Likewise.
7031 * p-lang.c (pascal_is_string_type_p): Delete function,
7032 implementation moved to pascal_language::is_string_type_p.
7033 (pascal_language_data): Delete la_is_string_type_p initializer.
7034 (pascal_language::is_string_type_p): New member function,
7035 implementation from pascal_is_string_type_p.
7036 * rust-lang.c (rust_is_string_type_p): Delete function,
7037 implementation moved to rust_language::is_string_type_p.
7038 (rust_language_data): Delete la_is_string_type_p initializer.
7039 (rust_language::is_string_type_p): New member function,
7040 implementation from rust_is_string_type_p.
7041 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7042 is_string_type_p.
7043
4ffc13fb
AB
70442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * ada-lang.c (ada_language_data): Delete la_print_typedef
7047 initializer.
7048 (ada_language::print_typedef): New member function.
7049 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7050 (cplus_language_data): Likewise.
7051 (asm_language_data): Likewise.
7052 (minimal_language_data): Likewise.
7053 * d-lang.c (d_language_data): Likewise.
7054 * f-lang.c (f_language_data): Likewise.
7055 (f_language::print_typedef): New member function.
7056 * go-lang.c (go_language_data): Delete la_print_typedef
7057 initializer.
7058 * language.c (language_defn::print_typedef): Define member
7059 function.
7060 (unknown_language_data): Delete la_print_typedef initializer.
7061 (unknown_language::print_typedef): New member function.
7062 (auto_language_data): Delete la_print_typedef initializer.
7063 (auto_language::print_typedef): New member function.
7064 * language.h (language_data): Delete la_print_typedef field.
7065 (language_defn::print_typedef): Declare new member function.
7066 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7067 (default_print_typedef): Delete declaration.
7068 * m2-lang.c (m2_language_data): Delete la_print_typedef
7069 initializer.
7070 (m2_language::print_typedef): New member function.
7071 * objc-lang.c (objc_language_data): Delete la_print_typedef
7072 initializer.
7073 * opencl-lang.c (opencl_language_data): Likewise.
7074 * p-lang.c (pascal_language_data): Likewise.
7075 (pascal_language::print_typedef): New member function.
7076 * rust-lang.c (rust_print_typedef): Delete function,
7077 implementation moved to rust_language::print_typedef.
7078 (rust_language): Delete la_print_typedef initializer.
7079 (rust_language::print_typedef): New member function,
7080 implementation from rust_print_typedef.
7081 * typeprint.c (default_print_typedef): Delete.
7082
d711ee67
AB
70832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7086 (ada_language::printstr): New member function.
7087 * c-lang.c (c_language_data): Delete la_printstr initializer.
7088 (cplus_language_data): Likewise.
7089 (asm_language_data): Likewise.
7090 (minimal_language_data): Likewise.
7091 * d-lang.c (d_language_data): Likewise.
7092 * f-lang.c (f_printstr): Rename to f_language::printstr.
7093 (f_language_data): Delete la_printstr initializer.
7094 (f_language::printstr): New member function, implementation from
7095 f_printstr.
7096 * go-lang.c (go_language_data): Delete la_printstr initializer.
7097 * language.c (language_defn::printstr): Define new member
7098 function.
7099 (unk_lang_printstr): Delete.
7100 (unknown_language_data): Delete la_printstr initializer.
7101 (unknown_language::printstr): New member function.
7102 (auto_language_data): Delete la_printstr initializer.
7103 (auto_language::printstr): New member function.
7104 * language.h (language_data): Delete la_printstr field.
7105 (language_defn::printstr): Declare new member function.
7106 (LA_PRINT_STRING): Update call to printstr.
7107 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7108 (m2_language_data): Delete la_printstr initializer.
7109 (m2_language::printstr): New member function, implementation from
7110 m2_printstr.
7111 * objc-lang.c (objc_language_data): Delete la_printstr
7112 initializer.
7113 * opencl-lang.c (opencl_language_data): Likewise.
7114 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7115 (pascal_language_data): Delete la_printstr initializer.
7116 (pascal_language::printstr): New member function, implementation
7117 from pascal_printstr.
7118 * p-lang.h (pascal_printstr): Delete declaration.
7119 * rust-lang.c (rust_printstr): Update header comment.
7120 (rust_language_data): Delete la_printstr initializer.
7121 (rust_language::printstr): New member function.
7122
52b50f2c
AB
71232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7126 (ada_language::printchar): New member function.
7127 * c-lang.c (c_language_data): Delete la_printchar initializer.
7128 (cplus_language_data): Likewise.
7129 (asm_language_data): Likewise.
7130 (minimal_language_data): Likewise.
7131 * d-lang.c (d_language_data): Likewise.
7132 * f-lang.c (f_printchar): Rename to f_language::printchar.
7133 (f_language_data): Delete la_printchar initializer.
7134 (f_language::printchar): New member function, implementation from
7135 f_printchar.
7136 * go-lang.c (go_language_data): Delete la_printchar initializer.
7137 * language.c (unk_lang_printchar): Delete.
7138 (language_defn::printchar): Define new member function.
7139 (unknown_language_data): Delete la_printchar initializer.
7140 (unknown_language::printchar): New member function.
7141 (auto_language_data): Delete la_printchar initializer.
7142 (auto_language::printchar): New member function.
7143 * language.h (language_data): Delete la_printchar field.
7144 (language_defn::printchar): Declare new member function.
7145 (LA_PRINT_CHAR): Update call to printchar.
7146 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7147 (m2_language::printchar): New member function.
7148 * objc-lang.c (objc_language_data): Delete la_printchar
7149 initializer.
7150 * opencl-lang.c (opencl_language_data): Likewise.
7151 * p-lang.c (pascal_language_data): Delete la_printchar
7152 initializer.
7153 (pascal_language::printchar): New member function.
7154 * rust-lang.c (rust_printchar): Rename to
7155 rust_language::printchar.
7156 (rust_language_data): Delete la_printchar initializer.
7157 (rust_language::printchar): New member function, implementation
7158 from rust_printchar.
7159
ec8cec5b
AB
71602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7163 (ada_language_data): Delete la_emitchar initializer.
7164 (ada_language::emitchar): New member function, implementation from
7165 emit_char.
7166 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7167 (cplus_language_data): Likewise.
7168 (asm_language_data): Likewise.
7169 (minimal_language_data): Likewise.
7170 * d-lang.c (d_language_data): Likewise.
7171 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7172 (f_language_data): Delete la_emitchar initializer.
7173 (f_language::emitchar): New member function, implementation from
7174 f_emit_char.
7175 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7176 * language.c (unk_lang_emit_char): Delete.
7177 (language_defn::emitchar): New member function definition.
7178 (unknown_language_data): Delete la_emitchar initializer.
7179 (unknown_language::emitchar): New member function.
7180 (auto_language_data): Delete la_emitchar initializer.
7181 (auto_language::emitchar): New member function.
7182 * language.h (language_data): Delete la_emitchar field.
7183 (language_defn::emitchar): New member field declaration.
7184 (LA_EMIT_CHAR): Update call to emitchar.
7185 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7186 (m2_language_data): Delete la_emitchar initializer.
7187 (m2_language::emitchar): New member function, implementation from
7188 m2_emit_char.
7189 * objc-lang.c (objc_language_data): Delete la_emitchar
7190 initializer.
7191 * opencl-lang.c (opencl_language_data): Likewise.
7192 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7193 (pascal_language_data): Delete la_emitchar initializer.
7194 (pascal_language::emitchar): New member function, implementation
7195 from pascal_emit_char.
7196 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7197 (rust_language_data): Delete la_emitchar initializer.
7198 (rust_language::emitchar): New member function, implementation
7199 from rust_emitchar.
7200
1bf9c363
AB
72012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7202
7203 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7204 (ada_language_data): Delete la_post_parser initializer.
7205 (ada_language::post_parser): New member function.
7206 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7207 (cplus_language_data): Likewise.
7208 (asm_language_data): Likewise.
7209 (minimal_language_data): Likewise.
7210 * d-lang.c (d_language_data): Likewise.
7211 * f-lang.c (f_language_data): Likewise.
7212 * go-lang.c (go_language_data): Likewise.
7213 * language.c (unknown_language_data): Likewise.
7214 (auto_language_data): Likewise.
7215 * language.h (language_data): Delete la_post_parser field.
7216 (language_defn::post_parser): New member function.
7217 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7218 * objc-lang.c (objc_language_data): Likewise.
7219 * opencl-lang.c (opencl_language_data): Likewise.
7220 * p-lang.c (pascal_language_data): Likewise.
7221 * parse.c (parse_exp_in_context): Update call to post_parser.
7222 (null_post_parser): Delete definition.
7223 * parser-defs.h (null_post_parser): Delete declaration.
7224 * rust-lang.c (rust_language_data): Delete la_post_parser
7225 initializer.
7226
87afa652
AB
72272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * ada-lang.c (parse): Rename to ada_language::parser.
7230 (ada_language_data): Delete la_parser initializer.
7231 (ada_language::parser): New member function, implementation from
7232 parse.
7233 * c-lang.c (c_language_data): Delete la_parser initializer.
7234 (cplus_language_data): Likewise.
7235 (asm_language_data): Likewise.
7236 (minimal_language_data): Likewise.
7237 * d-lang.c (d_language_data): Likewise.
7238 (d_language::parser): New member function.
7239 * f-lang.c (f_language_data): Delete la_parser initializer.
7240 (f_language::parser): New member function.
7241 * go-lang.c (go_language_data): Delete la_parser initializer.
7242 (go_language::parser): New member function.
7243 * language.c (unk_lang_parser): Delete.
7244 (language_defn::parser): Define new member function.
7245 (unknown_language_data): Delete la_parser initializer.
7246 (unknown_language::parser): New member function.
7247 (auto_language_data): Delete la_parser initializer.
7248 (auto_language::parser): New member function.
7249 * language.h (language_data): Delete la_parser field.
7250 (language_defn::parser): Declare new member function.
7251 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7252 (m2_language::parser): New member function.
7253 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7254 * opencl-lang.c (opencl_language_data): Likewise.
7255 * p-lang.c (pascal_language_data): Likewise.
7256 (pascal_language::parser): New member function.
7257 * parse.c (parse_exp_in_context): Update call to parser.
7258 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7259 (rust_language::parser): New member function.
7260
37825800
AB
72612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * top.c (print_gdb_configuration): Print --with-python-libdir
7264 configuration value.
7265
5b860c93
PW
72662020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7267
7268 * NEWS: Mention change to the alias command.
7269
cf00cd6f
PW
72702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7271
7272 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7273 (alias_command_completer)
7274 (make_alias_options_def_group): New functions.
7275 (alias_opts, alias_option_defs): New struct and array.
7276 (alias_usage_error): Update usage.
7277 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7278 Use option framework.
7279 (_initialize_cli_cmds): Update alias command help.
7280 Update aliases command help.
7281 (show_user):
7282 Add NULL for new default_args lookup_cmd argument.
7283 (valid_command_p): Rename to validate_aliased_command.
7284 Add NULL for new default_args lookup_cmd argument. Verify that the
7285 aliased_command has no default args.
7286 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7287 (lookup_cmd_1, lookup_cmd): New argument default_args.
7288 (add_alias_cmd):
7289 Add NULL for new default_args lookup_cmd argument.
7290 (print_help_for_command): Show default args under the layout
7291 alias some_alias = some_aliased_cmd some_alias_default_arg.
7292 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7293 xfree default_args in destructor.
7294 * cli/cli-script.c (process_next_line, do_define_command):
7295 Add NULL for new default_args lookup_cmd argument.
7296 * command.h: Declare new default_args argument in lookup_cmd
7297 and lookup_cmd_1.
7298 * completer.c (complete_line_internal_1):
7299 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7300 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7301 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7302 Likewise.
7303 * infcmd.c (_initialize_infcmd): Likewise.
7304 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7305 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7306 * python/py-param.c (add_setshow_generic): Likewise.
7307 * remote.c (_initialize_remote): Likewise.
7308 * top.c (execute_command): Prepend default_args if command has some.
7309 (set_verbose):
7310 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7311 * tracepoint.c (validate_actionline, encode_actions_1):
7312 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7313
bd920864
TBA
73142020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7315
7316 * jit.c (jit_read_descriptor): Use bool as the return type.
7317 (jit_breakpoint_re_set_internal): Use bool as the return type.
7318 Invert the return value logic; return true if the jit breakpoint
7319 has been successfully initialized.
7320 (jit_inferior_init): Update the call to
7321 jit_breakpoint_re_set_internal.
7322
f8098322
PA
73232020-06-22 Pedro Alves <palves@redhat.com>
7324
7325 PR gdb/25939
7326 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7327 Use the current inferior instead. Don't return
7328 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7329 wait again.
7330 * sol-thread.c (sol_thread_target::wait): Don't reference
7331 inferior_ptid.
7332 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7333 (sol_update_thread_list_callback): Use the current inferior's pid
7334 instead of inferior_ptid.
7335
196535a6
RO
73362020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7337
7338 * procfs.c: Cleanup many comments.
7339
7340 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7341 (AFTER_WATCHFLAG): Replace by value.
7342
7343 (MAIN_PROC_NAME_FORMAT): Inline ...
7344 (create_procinfo): ... here.
7345
7346 (procfs_debug_inferior): Remove SYS_exec handling.
7347 (syscall_is_exec): Likewise.
7348 (procfs_set_exec_trap): Likewise.
7349
7350 (syscall_is_lwp_exit): Inline in callers.
7351 (syscall_is_exit): Likewise.
7352 (syscall_is_exec): Likewise.
7353 (syscall_is_lwp_create): Likewise.
7354
7355 (invalidate_cache): Remove #if 0 code.
7356
7357 (make_signal_thread_runnable): Remove.
7358 (procfs_target::resume): Remove #if 0 code.
7359
cf6f3e86
RO
73602020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7361
7362 PR gdb/25939
7363 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7364 call ...
7365 (procfs_target::create_inferior): ... here.
7366
48e9cc84
PW
73672020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7368
7369 * exec.c (validate_exec_file): Ensure the build-id is up to
7370 date by calling reopen_exec_file (that checks file timestamp
7371 to decide to re-read the file).
7372
3922b302
PA
73732020-06-18 Pedro Alves <palves@redhat.com>
7374
7375 PR gdb/25412
7376 * gdbthread.h (delete_thread, delete_thread_silent)
7377 (find_thread_ptid): Update comments.
7378 * thread.c (current_thread_): New global.
7379 (is_current_thread): Move higher, and reimplement.
7380 (inferior_thread): Reimplement.
7381 (set_thread_exited): Use bool. Add assertions.
7382 (add_thread_silent): Simplify thread-reuse handling by always
7383 calling delete_thread.
7384 (delete_thread): Remove intro comment.
7385 (find_thread_ptid): Skip exited threads.
7386 (switch_to_thread_no_regs): Write to current_thread_.
7387 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7388 INFERIOR_PTID. Clear current_thread_.
7389
6dbdab44
PA
73902020-06-18 Pedro Alves <palves@redhat.com>
7391
7392 * aix-thread.c (pd_update): Use switch_to_thread.
7393
2da4b788
PA
73942020-06-18 Pedro Alves <palves@redhat.com>
7395
7396 * ravenscar-thread.c (ravenscar_thread_target): Update.
7397 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7398 (ravenscar_thread_target::add_active_thread): ... this. Don't
7399 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7400 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7401
50838d1b
PA
74022020-06-18 Pedro Alves <palves@redhat.com>
7403
7404 * nat/windows-nat.c (current_windows_thread): Remove.
7405 * nat/windows-nat.h (current_windows_thread): Remove.
7406 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7407 Adjust.
7408 (display_selectors): Adjust to fetch the current
7409 windows_thread_info based on inferior_ptid.
7410 (fake_create_process): No longer write to current_windows_thread.
7411 (windows_nat_target::get_windows_debug_event):
7412 Don't set inferior_ptid or current_windows_thread.
7413 (windows_nat_target::wait): Adjust to not rely on
7414 current_windows_thread.
7415 (do_initial_windows_stuff): Now a method of windows_nat_target.
7416 Switch to the last_ptid thread.
7417 (windows_nat_target::attach): Adjust.
7418 (windows_nat_target::detach): Use switch_to_no_thread instead of
7419 writing to inferior_ptid directly.
7420 (windows_nat_target::create_inferior): Adjust.
7421
31ce04e9
PA
74222020-06-18 Pedro Alves <palves@redhat.com>
7423
7424 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7425
1ee1a363
PA
74262020-06-18 Pedro Alves <palves@redhat.com>
7427
7428 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7429 after creating it, instead of writing to inferior_ptid. Don't
7430 write to inferior_ptid.
7431
6d350754
PA
74322020-06-18 Pedro Alves <palves@redhat.com>
7433
7434 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7435
5d971d48
PA
74362020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7439 it, instead of writing to inferior_ptid.
7440
86e57d1b
PA
74412020-06-18 Pedro Alves <palves@redhat.com>
7442
7443 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7444 to inferior_ptid.
7445
f2e1c129
PA
74462020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7449 instead of writing to inferior_ptid directly.
7450
60db1b85
PA
74512020-06-18 Pedro Alves <palves@redhat.com>
7452
7453 * corelow.c (core_target::close): Use switch_to_no_thread instead
7454 of writing to inferior_ptid directly.
7455 (add_to_thread_list, core_target_open): Use switch_to_thread
7456 instead of writing to inferior_ptid directly.
7457
fe7d6a8d
PA
74582020-06-18 Pedro Alves <palves@redhat.com>
7459
7460 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7461 inferior_ptid.
7462 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7463 inferior_ptid.
7464 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7465 inferior_ptid directly.
7466 (darwin_nat_target::init_thread_list): Switch to thread, instead
7467 of writing to inferior_ptid.
7468 (darwin_nat_target::attach): Don't write to inferior_ptid.
7469 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7470
975f8708
PA
74712020-06-18 Pedro Alves <palves@redhat.com>
7472
7473 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7474 thread.
7475 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7476 Instead use switch_to_thread.
7477 (gnu_nat_target::detach): Use switch_to_no_thread
7478 instead of writing to inferior_ptid directly. Used passed-in
7479 inferior instead of looking up the inferior by pid.
7480
1a204730
PA
74812020-06-18 Pedro Alves <palves@redhat.com>
7482
7483 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7484 inferior_ptid.
7485
ebe84f23
PA
74862020-06-18 Pedro Alves <palves@redhat.com>
7487
7488 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7489 inferior_ptid.
7490 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7491 thread.
7492 (nto_procfs_target::detach): Avoid referencing
7493 inferior_ptid. Use switch_to_no_thread instead of writing to
7494 inferior_ptid directly.
7495 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7496 instead of writing to inferior_ptid directly.
7497 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7498 to thread.
7499
191f02e5
PA
75002020-06-18 Pedro Alves <palves@redhat.com>
7501
7502 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7503 after creating it, instead of writing to inferior_ptid.
7504 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7505 to inferior_ptid directly.
7506 (gdbsim_target::wait): Don't write to inferior_ptid.
7507
0ac55310
PA
75082020-06-18 Pedro Alves <palves@redhat.com>
7509
7510 * remote.c (remote_target::remote_notice_new_inferior): Use
7511 switch_to_thread instead of writing to inferior_ptid directly.
7512 (remote_target::add_current_inferior_and_thread): Use
7513 switch_to_no_thread instead of writing to inferior_ptid directly.
7514 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7515 and switch_to_thread instead of using set_current_inferior or
7516 writing to inferior_ptid directly.
7517
5233f39b
PA
75182020-06-18 Pedro Alves <palves@redhat.com>
7519
7520 * tracectf.c (ctf_target_open): Switch to added thread instead of
7521 writing to inferior_ptid directly.
7522 (ctf_target::close): Use switch_to_no_thread instead of writing to
7523 inferior_ptid directly.
7524
087e161b
PA
75252020-06-18 Pedro Alves <palves@redhat.com>
7526
7527 * tracefile-tfile.c (tfile_target_open): Don't write to
7528 inferior_ptid directly, instead switch to added thread.
7529 (tfile_target::close): Use switch_to_no_thread instead of writing
7530 to inferior_ptid directly.
7531
7fb43e53
PA
75322020-06-18 Pedro Alves <palves@redhat.com>
7533
7534 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7535 (procfs_target::detach): Use switch_to_no_thread
7536 instead of writing to inferior_ptid directly.
7537 (do_attach): Change return type to void. Switch to the added
7538 thread.
7539 (procfs_target::create_inferior): Switch to the added thread.
7540 (procfs_do_thread_registers): Don't write to inferior_ptid.
7541
18493a00
PA
75422020-06-18 Pedro Alves <palves@redhat.com>
7543
7544 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7545 of writing to inferior_ptid.
7546 (scoped_restore_exited_inferior): Delete.
7547 (handle_vfork_child_exec_or_exit): Simplify using
7548 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7549 instead of writing to inferior_ptid.
7550 (THREAD_STOPPED_BY): Delete.
7551 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7552 (thread_stopped_by_hw_breakpoint): Delete.
7553 (save_waitstatus): Use
7554 scoped_restore_current_thread+switch_to_thread, and call
7555 target_stopped_by_watchpoint instead of
7556 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7557 instead of thread_stopped_by_sw_breakpoint, and
7558 target_stopped_by_hw_breakpoint instead of
7559 thread_stopped_by_hw_breakpoint.
7560 (handle_inferior_event)
7561 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7562 inferior_ptid directly, nor
7563 set_current_inferior/set_current_program_space. Use
7564 switch_to_thread / switch_to_inferior_no_thread instead.
7565
a0776b13
PA
75662020-06-18 Pedro Alves <palves@redhat.com>
7567
7568 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7569 instead of writing to inferior_ptid.
7570
6155c136
PA
75712020-06-18 Pedro Alves <palves@redhat.com>
7572
7573 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7574 added thread.
7575 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7576 to the added thread.
7577 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7578 instead of writing to inferior_ptid.
7579
c5316fc6
PA
75802020-06-18 Pedro Alves <palves@redhat.com>
7581
7582 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7583 (register_to_value_test): Mock a program_space too. Heap-allocate
7584 the address space. Don't write to inferior_ptid. Use
7585 switch_to_thread instead.
7586
8df01799
PA
75872020-06-18 Pedro Alves <palves@redhat.com>
7588
7589 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7590 Delete.
7591 (find_signalled_thread()): New, factored out from
7592 linux_make_corefile_notes and adjusted to handle exited threads.
7593 (linux_make_corefile_notes): Adjust to use the new
7594 find_signalled_thread.
7595
41792d68
PA
75962020-06-18 Pedro Alves <palves@redhat.com>
7597
7598 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7599 of saving/restoring inferior_ptid.
7600
612f258a
TT
76012020-06-17 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7604 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7605 declare.
7606 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7607
efb763a5
SM
76082020-06-15 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7611 of partial symtabs.
7612
2951f6c0
SM
76132020-06-17 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * regformats/reg-arm.dat: Remove.
7616 * regformats/reg-bfin.dat: Remove.
7617 * regformats/reg-cris.dat: Remove.
7618 * regformats/reg-crisv32.dat: Remove.
7619 * regformats/reg-m32r.dat: Remove.
7620 * regformats/reg-tilegx.dat: Remove.
7621 * regformats/reg-tilegx32.dat: Remove.
7622
7d458ea5
SM
76232020-06-17 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * features/Makefile (WHICH): Remove arm files.
7626 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7627 * regformats/arm/arm-with-neon.dat: Remove.
7628 * regformats/arm/arm-with-vfpv2.dat: Remove.
7629 * regformats/arm/arm-with-vfpv3.dat: Remove.
7630
3af96c0d
SM
76312020-06-17 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * features/Makefile (XMLTOC): Remove rx.xml.
7634
b25e22fd
PA
76352020-06-17 Pedro Alves <palves@redhat.com>
7636
7637 * gdbthread.h (thread_control_state) <trap_expected> Update
7638 comments.
7639
a78a19b1
AB
76402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7643 ada_language::lookup_symbol_nonlocal.
7644 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7645 (ada_language::lookup_symbol_nonlocal): New member function,
7646 implementation from ada_lookup_symbol_nonlocal.
7647 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7648 initializer.
7649 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7650 initializer.
7651 (cplus_language::lookup_symbol_nonlocal): New member function.
7652 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7653 (minimal_language_data) Likewise.
7654 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7655 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7656 initializer.
7657 (d_language::lookup_symbol_nonlocal): New member function.
7658 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7659 initializer.
7660 (f_language::lookup_symbol_nonlocal): New member function.
7661 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7662 initializer.
7663 * language.c (unknown_language_data): Likewise.
7664 (auto_language_data): Likewise.
7665 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7666 field.
7667 (language_defn::lookup_symbol_nonlocal): New member function.
7668 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7669 initializer.
7670 * objc-lang.c (objc_language_data): Likewise.
7671 * opencl-lang.c (opencl_language_data): Likewise.
7672 * p-lang.c (pascal_language_data): Likewise.
7673 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7674 rust_language::lookup_symbol_nonlocal.
7675 (rust_language_data): Delete la_lookup_symbol_nonlocal
7676 initializer.
7677 (rust_language::lookup_symbol_nonlocal): New member function,
7678 implementation from rust_lookup_symbol_nonlocal.
7679 * symtab.c (lookup_symbol_aux): Update call to
7680 lookup_symbol_nonlocal.
7681 (basic_lookup_symbol_nonlocal): Rename to...
7682 (language_defn::lookup_symbol_nonlocal): ...this, and update
7683 header comment. Remove language_defn parameter, and replace with
7684 uses of `this'.
7685 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7686
ebe2334e
AB
76872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7690 initializer.
7691 (ada_language::value_print_inner): New member function.
7692 * c-lang.c (c_language_data): Delete la_value_print_inner
7693 initializer.
7694 (cplus_language_data): Likewise.
7695 (asm_language_data): Likewise.
7696 (minimal_language_data): Likewise.
7697 * d-lang.c (d_language_data): Likewise.
7698 (d_language::value_print_inner): New member function.
7699 * f-lang.c (f_language_data): Delete la_value_print_inner
7700 initializer.
7701 (f_language::value_print_inner): New member function.
7702 * f-lang.h (f_value_print_innner): Rename to...
7703 (f_value_print_inner): ...this (note spelling of 'inner').
7704 * f-valprint.c (f_value_print_innner): Rename to...
7705 (f_value_print_inner): ...this (note spelling of 'inner').
7706 * go-lang.c (go_language_data): Delete la_value_print_inner
7707 initializer.
7708 (go_language::value_print_inner): New member function.
7709 * language.c (language_defn::value_print_inner): Define new member
7710 function.
7711 (unk_lang_value_print_inner): Delete.
7712 (unknown_language_data): Delete la_value_print_inner initializer.
7713 (unknown_language::value_print_inner): New member function.
7714 (auto_language_data): Delete la_value_print_inner initializer.
7715 (auto_language::value_print_inner): New member function.
7716 * language.h (language_data): Delete la_value_print_inner field.
7717 (language_defn::value_print_inner): Delcare new member function.
7718 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7719 initializer.
7720 (m2_language::value_print_inner): New member function.
7721 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7722 initializer.
7723 * opencl-lang.c (opencl_language_data): Likewise.
7724 * p-lang.c (pascal_language_data): Likewise.
7725 (pascal_language::value_print_inner): New member function.
7726 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7727 initializer.
7728 (rust_language::value_print_inner): New member function.
7729 * valprint.c (do_val_print): Update call to value_print_inner.
7730
a1d1fa3e
AB
77312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * ada-lang.c (ada_language_data): Delete la_value_print
7734 initializer.
7735 (ada_language::value_print): New member function.
7736 * c-lang.c (c_language_data): Delete la_value_print initializer.
7737 (cplus_language_data): Likewise.
7738 (asm_language_data): Likewise.
7739 (minimal_language_data): Likewise.
7740 * d-lang.c (d_language_data): Likewise.
7741 * f-lang.c (f_language_data): Likewise.
7742 * go-lang.c (go_language_data): Likewise.
7743 * language.c (unk_lang_value_print): Delete.
7744 (language_defn::value_print): Define new member function.
7745 (unknown_language_data): Delete la_value_print initializer.
7746 (unknown_language::value_print): New member function.
7747 (auto_language_data): Delete la_value_print initializer.
7748 (auto_language::value_print): New member function.
7749 * language.h (language_data): Delete la_value_print field.
7750 (language_defn::value_print): Declare new member function.
7751 (LA_VALUE_PRINT): Update call to value_print.
7752 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7753 * objc-lang.c (objc_language_data): Likewise.
7754 * opencl-lang.c (opencl_language_data): Likewise.
7755 * p-lang.c (pascal_language_data): Likewise.
7756 (pascal_language::value_print): New member function.
7757 * rust-lang.c (rust_language_data): Delete la_value_print
7758 initializer.
7759
f16a9f57
AB
77602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7761
7762 * ada-lang.c (ada_watch_location_expression): Rename to
7763 ada_language::watch_location_expression.
7764 (ada_language_data): Delete la_watch_location_expression
7765 initializer.
7766 (ada_language::watch_location_expression): New member function,
7767 implementation from ada_watch_location_expression.
7768 * breakpoint.c (watch_command_1): Update call to
7769 watch_location_expression.
7770 * c-lang.c (c_watch_location_expression): Rename to
7771 language_defn::watch_location_expression.
7772 (c_language_data): Delete la_watch_location_expression
7773 initializer.
7774 (cplus_language_data): Likewise.
7775 (asm_language_data): Likewise.
7776 (minimal_language_data): Likewise.
7777 * c-lang.h (c_watch_location_expression): Delete declaration.
7778 * d-lang.c (d_language_data): Delete la_watch_location_expression
7779 initializer.
7780 * f-lang.c (f_language_data): Likewise.
7781 * go-lang.c (go_language_data): Likewise.
7782 * language.c (language_defn::watch_location_expression): Member
7783 function implementation from c_watch_location_expression.
7784 (unknown_language_data): Delete la_watch_location_expression
7785 initializer.
7786 (auto_language_data): Likewise.
7787 * language.h (language_data): Delete la_watch_location_expression
7788 field.
7789 (language_defn::watch_location_expression): Declare new member
7790 function.
7791 * m2-lang.c (m2_language_data): Delete
7792 la_watch_location_expression initializer.
7793 * objc-lang.c (objc_language_data): Likewise.
7794 * opencl-lang.c (opencl_language_data): Likewise.
7795 * p-lang.c (pascal_language_data): Likewise.
7796 * rust-lang.c (rust_watch_location_expression): Rename to
7797 rust_language::watch_location_expression.
7798 (rust_language_data): Delete la_watch_location_expression
7799 initializer.
7800 (rust_language::watch_location_expression): New member function,
7801 implementation from rust_watch_location_expression.
7802
7e56227d
AB
78032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7804
7805 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7806 ada_language::collect_symbol_completion_matches.
7807 (ada_language_data): Delete la_collect_symbol_completion_matches
7808 initializer.
7809 (ada_language::collect_symbol_completion_matches): New member
7810 function, implementation from
7811 ada_collect_symbol_completion_matches.
7812 * c-lang.c (c_language_data): Delete
7813 la_collect_symbol_completion_matches initializer.
7814 (cplus_language_data): Likewise.
7815 (asm_language_data): Likewise.
7816 (minimal_language_data): Likewise.
7817 * d-lang.c (d_language_data): Likewise.
7818 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7819 f_language::collect_symbol_completion_matches.
7820 (f_language_data): Delete la_collect_symbol_completion_matches
7821 initializer.
7822 (f_language::collect_symbol_completion_matches) New member
7823 function, implementation from f_collect_symbol_completion_matches.
7824 * go-lang.c (go_language_data): Delete
7825 la_collect_symbol_completion_matches initializer.
7826 * language.c (unknown_language_data): Likewise.
7827 (auto_language_data): Likewise.
7828 * language.h (language_data): Delete
7829 la_collect_symbol_completion_matches field.
7830 (language_defn::collect_symbol_completion_matches): New member
7831 function.
7832 * m2-lang.c (m2_language_data): Delete
7833 la_collect_symbol_completion_matches initializer.
7834 * objc-lang.c (objc_language_data): Likewise.
7835 * opencl-lang.c (opencl_language_data): Likewise.
7836 * p-lang.c (pascal_language_data): Likewise.
7837 * rust-lang.c (rust_language_data): Likewise.
7838 * symtab.c (default_collect_symbol_completion_matches): Delete.
7839 (collect_symbol_completion_matches): Update call to
7840 collect_symbol_completion_matches.
7841 (collect_symbol_completion_matches_type): Likewise.
7842 * symtab.h (default_collect_symbol_completion_matches): Delete
7843 declaration.
7844
53fc67f8
AB
78452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7846
7847 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7848 (ada_language_data): Delete la_word_break_characters initializer.
7849 (ada_language::word_break_characters): New member function.
7850 * c-lang.c (c_language_data): Delete la_word_break_characters
7851 initializer.
7852 (cplus_language_data): Likewise.
7853 (asm_language_data): Likewise.
7854 (minimal_language_data): Likewise.
7855 * completer.c: Update global comment.
7856 (advance_to_expression_complete_word_point): Update call to
7857 word_break_characters.
7858 (complete_files_symbols): Likewise.
7859 (complete_line_internal_1): Likewise.
7860 (default_completer_handle_brkchars): Likewise.
7861 (skip_quoted_chars): Likewise.
7862 * d-lang.c (d_language_data): Delete la_word_break_characters
7863 initializer.
7864 * f-lang.c (f_word_break_characters): Delete.
7865 (f_language_data): Delete la_word_break_characters initializer.
7866 (f_language::word_break_characters): New member function.
7867 * go-lang.c (go_language_data): Delete la_word_break_characters
7868 initializer.
7869 * language.c (unknown_language_data): Likewise.
7870 (auto_language_data): Likewise.
7871 * language.h (default_word_break_characters): Move declaration to
7872 earlier in the file.
7873 (language_data): Delete la_word_break_characters field.
7874 (language_defn::word_break_characters): New member function.
7875 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7876 initializer.
7877 * objc-lang.c (objc_language_data): Likewise.
7878 * opencl-lang.c (opencl_language_data): Likewise.
7879 * p-lang.c (pascal_language_data): Likewise.
7880 * rust-lang.c (rust_language_data): Likewise.
7881
c9debfb9
AB
78822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7885 (ada_language_data): Delete la_get_symbol_name_matcher
7886 initializer.
7887 (language_defn::get_symbol_name_matcher_inner): New member
7888 function.
7889 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7890 initializer.
7891 (cplus_language_data): Likewise.
7892 (cplus_language::get_symbol_name_matcher_inner): New member
7893 function.
7894 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7895 (minimal_language_data): Likewise.
7896 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7897 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7898 initializer.
7899 * dictionary.c (iter_match_first_hashed): Update call to
7900 get_symbol_name_matcher.
7901 (iter_match_next_hashed): Likewise.
7902 (iter_match_next_linear): Likewise.
7903 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7904 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7905 initializer.
7906 (f_language::get_symbol_name_matcher_inner): New member function.
7907 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7908 initializer.
7909 * language.c (default_symbol_name_matcher): Update header comment,
7910 make static.
7911 (language_defn::get_symbol_name_matcher): New definition.
7912 (language_defn::get_symbol_name_matcher_inner): Likewise.
7913 (get_symbol_name_matcher): Delete.
7914 (unknown_language_data): Delete la_get_symbol_name_matcher
7915 initializer.
7916 (auto_language_data): Likewise.
7917 * language.h (language_data): Delete la_get_symbol_name_matcher
7918 field.
7919 (language_defn::get_symbol_name_matcher): New member function.
7920 (language_defn::get_symbol_name_matcher_inner): Likewise.
7921 (default_symbol_name_matcher): Delete declaration.
7922 * linespec.c (find_methods): Update call to
7923 get_symbol_name_matcher.
7924 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7925 initializer.
7926 * minsyms.c (lookup_minimal_symbol): Update call to
7927 get_symbol_name_matcher.
7928 (iterate_over_minimal_symbols): Likewise.
7929 * objc-lang.c (objc_language_data): Delete
7930 la_get_symbol_name_matcher initializer.
7931 * opencl-lang.c (opencl_language_data): Likewise.
7932 * p-lang.c (pascal_language_data): Likewise.
7933 * psymtab.c (psymbol_name_matches): Update call to
7934 get_symbol_name_matcher.
7935 * rust-lang.c (rust_language_data): Delete
7936 la_get_symbol_name_matcher initializer.
7937 * symtab.c (symbol_matches_search_name): Update call to
7938 get_symbol_name_matcher.
7939 (compare_symbol_name): Likewise.
7940
9a49ad8c
AB
79412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 * ada-lang.c (ada_language_data): Delete la_compute_program
7944 initializer.
7945 * c-lang.c (c_language_data): Likewise.
7946 (c_language::compute_program): New member function.
7947 (cplus_language_data): Delete la_compute_program initializer.
7948 (cplus_language::compute_program): New member function.
7949 (asm_language_data): Delete la_compute_program initializer.
7950 (minimal_language_data): Likewise.
7951 * c-lang.h (c_compute_program): Update comment.
7952 (cplus_compute_program): Likewise.
7953 * compile/compile-c-support.c (c_compute_program): Likewise.
7954 (cplus_compute_program): Likewise.
7955 * compile/compile.c (compile_to_object): Update call to
7956 la_compute_program.
7957 * d-lang.c (d_language_data): Delete la_compute_program
7958 initializer.
7959 * f-lang.c (f_language_data): Likewise.
7960 * go-lang.c (go_language_data): Likewise.
7961 * language.c (unknown_language_data): Likewise.
7962 (auto_language_data): Likewise.
7963 * language.h (language_data): Delete la_compute_program field.
7964 (language_defn::compute_program): New member function.
7965 * m2-lang.c (m2_language_data): Delete la_compute_program
7966 initializer.
7967 * objc-lang.c (objc_language_data): Likewise.
7968 * opencl-lang.c (opencl_language_data): Likewise.
7969 * p-lang.c (pascal_language_data): Likewise.
7970 * rust-lang.c (rust_language_data): Likewise.
7971
eff93b4d
AB
79722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7973
7974 * ada-lang.c (ada_language_data) Delete
7975 la_class_name_from_physname initializer.
7976 * c-lang.c (c_language_data): Likewise.
7977 (cplus_language_data): Likewise.
7978 (cplus_language::class_name_from_physname): New member function.
7979 (asm_language_data): Delete la_class_name_from_physname
7980 initializer.
7981 (minimal_language_data): Likewise.
7982 * d-lang.c (d_language_data): Likewise.
7983 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7984 method on language_defn class.
7985 (guess_full_die_structure_name): Likewise.
7986 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7987 initializer.
7988 * go-lang.c (go_language_data): Likewise.
7989 * language.c (language_class_name_from_physname): Delete.
7990 (unk_lang_class_name): Delete.
7991 (unknown_language_data): Delete la_class_name_from_physname
7992 initializer.
7993 (auto_language_data): Likewise.
7994 * language.h (language_data): Delete la_class_name_from_physname
7995 field.
7996 (language_defn::class_name_from_physname): New function.
7997 (language_class_name_from_physname): Delete declaration.
7998 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7999 initializer.
8000 * objc-lang.c (objc_language_data): Likewise.
8001 * opencl-lang.c (opencl_language_data): Likewise.
8002 * p-lang.c (pascal_language_data): Likewise.
8003 * rust-lang.c (rust_language_data): Likewise.
8004
de543742
TT
80052020-06-16 Tom Tromey <tom@tromey.com>
8006
8007 * tui/tui-data.h (STATUS_NAME): New macro.
8008 * tui/tui-layout.c (tui_remove_some_windows)
8009 (initialize_known_windows, tui_register_window)
8010 (tui_layout_split::remove_windows, initialize_layouts)
8011 (tui_new_layout_command): Don't use hard-coded window names.
8012
a350efd4
TT
80132020-06-16 Tom Tromey <tom@tromey.com>
8014
8015 PR tui/25348:
8016 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8017 tui_initialize_readline. Only run once. Call rl_initialize.
8018 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8019 tui_initialize_readline.
8020 * tui/tui-io.c (tui_setup_io): Call
8021 tui_ensure_readline_initialized.
8022 * tui/tui-interp.c (tui_interp::init): Update.
8023
39ec0490
TT
80242020-06-16 Tom Tromey <tom@tromey.com>
8025
8026 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8027 Also preserve the status window.
8028
d2d1ea20
TT
80292020-06-16 Tom Tromey <tom@tromey.com>
8030
8031 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8032 where m_window==nullptr.
8033
66920317
TT
80342020-06-15 Tom Tromey <tromey@adacore.com>
8035
8036 * windows-nat.c (windows_nat::handle_output_debug_string):
8037 Update.
8038 (windows_nat::handle_ms_vc_exception): Update.
8039 * target.h (target_read_string): Change API.
8040 * target.c (target_read_string): Change API.
8041 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8042 Update.
8043 * solib-frv.c (frv_current_sos): Update.
8044 * solib-dsbt.c (dsbt_current_sos): Update.
8045 * solib-darwin.c (darwin_current_sos): Update.
8046 * linux-thread-db.c (inferior_has_bug): Update.
8047 * expprint.c (print_subexp_standard): Update.
8048 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8049 (ada_exception_message_1): Update.
8050
a5d871dd
TT
80512020-06-15 Tom Tromey <tromey@adacore.com>
8052
8053 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8054
670e35fa
TT
80552020-06-15 Tom Tromey <tromey@adacore.com>
8056
8057 * valprint.c (read_string): Update comment.
8058 * target.c (MIN): Remove.
8059 (target_read_string): Rewrite.
8060
f5272a3b
TT
80612020-06-15 Tom Tromey <tromey@adacore.com>
8062
8063 * corefile.c (read_memory_string): Remove.
8064 * ada-valprint.c (ada_value_print_ptr): Update.
8065 * ada-lang.h (ada_tag_name): Change return type.
8066 * ada-lang.c (type_from_tag): Update.
8067 (ada_tag_name_from_tsd): Change return type. Use
8068 target_read_string.
8069 (ada_tag_name): Likewise.
8070 * gdbcore.h (read_memory_string): Don't declare.
8071
2c074f49
HD
80722020-06-14 Hannes Domani <ssbssa@yahoo.de>
8073
8074 * symtab.c (rbreak_command): Ignore Windows drive colon.
8075
6a17d503
SM
80762020-06-12 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * NEWS: Mention removed GDBserver host support.
8079
453c733f
NC
80802020-06-12 Nelson Chu <nelson.chu@sifive.com>
8081
8082 * features/riscv/rebuild-csr-xml.sh: Updated.
8083
2b4e6a3f
TT
80842020-06-11 Tom Tromey <tom@tromey.com>
8085
8086 PR gdb/18318:
8087 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8088
4412332f
JG
80892020-06-09 Jonny Grant <jg@jguk.org>
80902020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8091
8092 * main.c (captured_main_1): Don't print new line after help.
8093 (print_gdb_help): add mailing list and IRC channel information
8094 to --help. Add new lines between items in the footer. Remove
8095 quotes around bug url.
8096
2f33032a
KS
80972020-06-11 Keith Seitz <keiths@redhat.com>
8098
8099 PR gdb/21356
8100 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8101 Resolve typedefs for type length calculations.
8102
7ab96794
TV
81032020-06-10 Tom de Vries <tdevries@suse.de>
8104
8105 PR ada/24713
8106 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8107 (write_psymbols): Enable .gdb_index for ada.
8108 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8109 ada.
8110
e5f3ece2
TV
81112020-06-10 Tom de Vries <tdevries@suse.de>
8112
8113 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8114 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8115 namei" instead of "const char *name" argument.
8116 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8117 dw2_symtab_iter_init.
8118
940da03e
SM
81192020-06-08 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8122 to use type::field and field::type instead.
8123
b6cdac4b
SM
81242020-06-08 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8127 to use field::type instead.
8128
5d14b6e5
SM
81292020-06-08 Simon Marchi <simon.marchi@efficios.com>
8130
8131 * gdbtypes.h (struct field) <type, set_type>: New methods.
8132 Rename `type` field to...
8133 <m_type>: ... this. Change references throughout to use type or
8134 set_type methods.
8135 (FIELD_TYPE): Use field::type. Change call sites that modify
8136 the field's type to use field::set_type instead.
8137
3d967001
SM
81382020-06-08 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8141 to use type::index_type instead.
8142
262abc0d
SM
81432020-06-08 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8146 methods.
8147 (TYPE_INDEX_TYPE): Use type::index_type.
8148 * gdbtypes.c (create_array_type_with_stride): Likewise.
8149
82836c92
TT
81502020-06-07 Tom Tromey <tom@tromey.com>
8151
8152 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8153 parameter.
8154 (generic_value_print): Update.
8155
940dace9
AB
81562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8157
8158 Revert commit 982a38f60b0.
8159 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8160
982a38f6
AB
81612020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8164 avoid use after free.
8165
82f06518
TV
81662020-06-05 Tom de Vries <tdevries@suse.de>
8167
8168 * NEWS: Fix typos.
8169
f8c41851
SM
81702020-06-04 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8173 the per_bfd object.
8174 (dwarf2_read_debug_names): Likewise.
8175 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8176 object when re-using a per_bfd object with an index.
8177
f9b5d5ea
TV
81782020-06-03 Tom de Vries <tdevries@suse.de>
8179
8180 PR symtab/26046
8181 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8182 children for C++.
8183 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8184 DW_TAG_subprogram.
8185
f6eee2d0
AB
81862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * ada-lang.c (ada_language_data): Delete skip_trampoline
8189 initializer.
8190 * c-lang.c (c_language_data): Likewise.
8191 (cplus_language_data): Likewise.
8192 (cplus_language::skip_trampoline): New member function.
8193 (asm_language_data): Delete skip_trampoline initializer.
8194 (minimal_language_data): Likewise.
8195 * d-lang.c (d_language_data): Likewise.
8196 * f-lang.c (f_language_data): Likewise.
8197 * go-lang.c (go_language_data): Likewise.
8198 * language.c (unk_lang_trampoline): Delete function.
8199 (skip_language_trampoline): Update.
8200 (unknown_language_data): Delete skip_trampoline initializer.
8201 (auto_language_data): Likewise.
8202 * language.h (language_data): Delete skip_trampoline field.
8203 (language_defn::skip_trampoline): New function.
8204 * m2-lang.c (m2_language_data): Delete skip_trampoline
8205 initializer.
8206 * objc-lang.c (objc_skip_trampoline): Delete function, move
8207 implementation to objc_language::skip_trampoline.
8208 (objc_language_data): Delete skip_trampoline initializer.
8209 (objc_language::skip_trampoline): New member function with
8210 implementation from objc_skip_trampoline.
8211 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8212 initializer.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 * rust-lang.c (rust_language_data): Likewise.
8215
0a50df5d
AB
82162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8217
8218 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8219 (ada_language::demangle): New member function.
8220 * c-lang.c (c_language_data): Delete la_demangle initializer.
8221 (cplus_language_data): Delete la_demangle initializer.
8222 (cplus_language::demangle): New member function.
8223 (asm_language_data): Delete la_demangle initializer.
8224 (minimal_language_data): Delete la_demangle initializer.
8225 * d-lang.c (d_language_data): Delete la_demangle initializer.
8226 (d_language::demangle): New member function.
8227 * f-lang.c (f_language_data): Delete la_demangle initializer.
8228 (f_language::demangle): New member function.
8229 * go-lang.c (go_language_data): Delete la_demangle initializer.
8230 (go_language::demangle): New member function.
8231 * language.c (language_demangle): Update.
8232 (unk_lang_demangle): Delete.
8233 (unknown_language_data): Delete la_demangle initializer.
8234 (unknown_language::demangle): New member function.
8235 (auto_language_data): Delete la_demangle initializer.
8236 (auto_language::demangle): New member function.
8237 * language.h (language_data): Delete la_demangle field.
8238 (language_defn::demangle): New function.
8239 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8240 * objc-lang.c (objc_language_data): Delete la_demangle
8241 initializer.
8242 (objc_language::demangle): New member function.
8243 * opencl-lang.c (opencl_language_data): Delete la_demangle
8244 initializer.
8245 * p-lang.c (pascal_language_data): Likewise.
8246 * rust-lang.c (rust_language_data): Likewise.
8247 (rust_language::demangle): New member function.
8248
fbfb0a46
AB
82492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * ada-lang.c (ada_language_data): Delete la_print_type
8252 initializer.
8253 (ada_language::print_type): New member function.
8254 * c-lang.c (c_language_data): Delete la_print_type initializer.
8255 (c_language::print_type): New member function.
8256 (cplus_language_data): Delete la_print_type initializer.
8257 (cplus_language::print_type): New member function.
8258 (asm_language_data): Delete la_print_type initializer.
8259 (asm_language::print_type): New member function.
8260 (minimal_language_data): Delete la_print_type initializer.
8261 (minimal_language::print_type): New member function.
8262 * d-lang.c (d_language_data): Delete la_print_type initializer.
8263 (d_language::print_type): New member function.
8264 * f-lang.c (f_language_data): Delete la_print_type initializer.
8265 (f_language::print_type): New member function.
8266 * go-lang.c (go_language_data): Delete la_print_type initializer.
8267 (go_language::print_type): New member function.
8268 * language.c (unk_lang_print_type): Delete.
8269 (unknown_language_data): Delete la_print_type initializer.
8270 (unknown_language::print_type): New member function.
8271 (auto_language_data): Delete la_print_type initializer.
8272 (auto_language::print_type): New member function.
8273 * language.h (language_data): Delete la_print_type field.
8274 (language_defn::print_type): New function.
8275 (LA_PRINT_TYPE): Update.
8276 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8277 (m2_language::print_type): New member function.
8278 * objc-lang.c (objc_language_data): Delete la_print_type
8279 initializer.
8280 (objc_language::print_type): New member function.
8281 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8282 to opencl_language::print_type.
8283 (opencl_language_data): Delete la_print_type initializer.
8284 (opencl_language::print_type): New member function, implementation
8285 from opencl_print_type.
8286 * p-lang.c (pascal_language_data): Delete la_print_type
8287 initializer.
8288 (pascal_language::print_type): New member function.
8289 * rust-lang.c (rust_print_type): Delete, implementation moved to
8290 rust_language::print_type.
8291 (rust_language_data): Delete la_print_type initializer.
8292 (rust_language::print_type): New member function, implementation
8293 from rust_print_type.
8294
6f827019
AB
82952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8298 implementation moves to...
8299 (ada_language::sniff_from_mangled_name): ...here. Update return
8300 type.
8301 (ada_language_data): Delete la_sniff_from_mangled_name
8302 initializer.
8303 * c-lang.c (c_language_data): Likewise.
8304 (cplus_language_data): Likewise.
8305 (cplus_language::sniff_from_mangled_name): New member function,
8306 implementation taken from gdb_sniff_from_mangled_name.
8307 (asm_language_data): Delete la_sniff_from_mangled_name
8308 initializer.
8309 (minimal_language_data): Likewise.
8310 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8311 implementation moves to cplus_language::sniff_from_mangled_name.
8312 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8313 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8314 moves to...
8315 (d_language::sniff_from_mangled_name): ...here.
8316 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8317 * f-lang.c (f_language_data): Likewise.
8318 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8319 moves to...
8320 (go_language::sniff_from_mangled_name): ...here.
8321 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8322 * language.c (language_sniff_from_mangled_name): Delete.
8323 (unknown_language_data): Delete la_sniff_from_mangled_name
8324 initializer.
8325 (auto_language_data): Likewise.
8326 * language.h (language_data): Delete la_sniff_from_mangled_name
8327 field.
8328 (language_defn::sniff_from_mangled_name): New function.
8329 (language_sniff_from_mangled_name): Delete declaration.
8330 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8331 field.
8332 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8333 implementation moves to...
8334 (objc_language::sniff_from_mangled_name): ...here.
8335 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8336 * opencl-lang.c (opencl_language_data): Likewise.
8337 * p-lang.c (pascal_language_data): Likewise.
8338 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8339 implementation moves to...
8340 (rust_language::sniff_from_mangled_name): ...here.
8341 (rust_language_data): Delete la_sniff_from_mangled_name
8342 initializer.
8343 * symtab.c (symbol_find_demangled_name): Call
8344 sniff_from_mangled_name member function.
8345
fb8006fd
AB
83462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8349 initializer.
8350 * c-lang.c (c_language_data): Likewise.
8351 (cplus_language_data): Likewise.
8352 (cplus_language::search_name_hash): New member function.
8353 (asm_language_data): Delete la_search_name_hash initializer.
8354 (minimal_language_data): Likewise.
8355 * d-lang.c (d_language_data): Likewise.
8356 * dictionary.c (default_search_name_hash): Rename to...
8357 (language_defn::search_name_hash): ...this.
8358 * f-lang.c (f_language_data): Likewise.
8359 (f_language::search_name_hash): New member function.
8360 * go-lang.c (go_language_data): Delete la_search_name_hash
8361 initializer.
8362 * language.c (unknown_language_data): Likewise.
8363 (auto_language_data): Likewise.
8364 * language.h (struct language_data): Delete la_search_name_hash
8365 field.
8366 (language_defn::search_name_hash): Declare new member function.
8367 (default_search_name_hash): Delete declaration.
8368 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8369 initializer.
8370 * objc-lang.c (objc_language_data): Likewise.
8371 * opencl-lang.c (opencl_language_data): Likewise.
8372 * p-lang.c (pascal_language_data): Likewise.
8373 * rust-lang.c (rust_language_data): Likewise.
8374 * symtab.c (search_name_hash): Update call.
8375
8e25bafe
AB
83762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8379 initializer.
8380 * c-lang.c (class compile_instance): Declare.
8381 (c_language_data): Delete la_get_compile_instance initializer.
8382 (c_language::get_compile_instance): New member function.
8383 (cplus_language_data): Delete la_get_compile_instance initializer.
8384 (cplus_language::get_compile_instance): New member function.
8385 (asm_language_data): Delete la_get_compile_instance initializer.
8386 (minimal_language_data): Likewise.
8387 * c-lang.h (c_get_compile_context): Update comment.
8388 (cplus_get_compile_context): Update comment.
8389 * compile/compile.c (compile_to_object): Update calls, don't rely
8390 on function pointer being NULL.
8391 * d-lang.c (d_language_data): Delete la_get_compile_instance
8392 initializer.
8393 * f-lang.c (f_language_data): Likewise.
8394 * go-lang.c (go_language_data): Likewise.
8395 * language.c (unknown_language_data): Likewise.
8396 (auto_language_data): Likewise.
8397 * language.h (language_data): Delete la_get_compile_instance field.
8398 (language_defn::get_compile_instance): New member function.
8399 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8400 initializer.
8401 * objc-lang.c (objc_language_data): Likewise.
8402 * opencl-lang.c (opencl_language_data): Likewise.
8403 * p-lang.c (pascal_language_data): Likewise.
8404 * rust-lang.c (rust_language_data): Likewise.
8405
4009ee92
AB
84062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8407
8408 * ada-lang.c (ada_add_all_symbols): Update comment.
8409 (ada_iterate_over_symbols): Delete, move implementation to...
8410 (ada_language::iterate_over_symbols): ...here, a new member
8411 function, rewrite to use range based for loop.
8412 (ada_language_data): Delete la_iterate_over_symbols initializer.
8413 * c-lang.c (c_language_data): Likewise.
8414 (cplus_language_data): Likewise.
8415 (asm_language_data): Likewise.
8416 (minimal_language_data): Likewise.
8417 * d-lang.c (d_language_data): Likewise.
8418 * f-lang.c (f_language_data): Likewise.
8419 * go-lang.c (go_language_data): Likewise.
8420 * language.c (unknown_language_data): Likewise.
8421 (auto_language_data): Likewise.
8422 * language.h (language_data): Delete la_iterate_over_symbols field.
8423 (language_defn::iterate_over_symbols): New member function.
8424 (LA_ITERATE_OVER_SYMBOLS): Update.
8425 * linespec.c (iterate_over_all_matching_symtabs): Update.
8426 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8427 initializer.
8428 * objc-lang.c (objc_language_data): Likewise.
8429 * opencl-lang.c (opencl_language_data): Likewise.
8430 * p-lang.c (pascal_language_data): Likewise.
8431 * rust-lang.c (rust_language_data): Likewise.
8432
54f4ca46
AB
84332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * ada-lang.c (ada_language_data): Delete
8436 la_lookup_transparent_type initializer.
8437 * c-lang.c (c_language_data): Likewise.
8438 (cplus_language_data): Likewise.
8439 (cplus_language::lookup_transparent_type): New member function.
8440 (asm_language_data): Delete la_lookup_transparent_type
8441 initializer.
8442 (minimal_language_data): Likewise.
8443 * d-lang.c (d_language_data): Likewise.
8444 * f-lang.c (f_language_data): Likewise.
8445 * go-lang.c (go_language_data): Likewise.
8446 * language.c (unknown_language_data): Likewise.
8447 (auto_language_data): Likewise.
8448 * language.h (struct language_data): Delete
8449 la_lookup_transparent_type field.
8450 (language_defn::lookup_transparent_type): New member function.
8451 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8452 initializer.
8453 * objc-lang.c (objc_language_data): Likewise.
8454 * opencl-lang.c (opencl_language_data): Likewise.
8455 * p-lang.c (pascal_language_data): Likewise.
8456 * rust-lang.c (rust_language_data): Likewise.
8457 * symtab.c (symbol_matches_domain): Update call.
8458
1fb314aa
AB
84592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8460
8461 * ada-lang.c (ada_language_arch_info): Delete function, move
8462 implementation to...
8463 (ada_language::language_arch_info): ...here, a new member
8464 function.
8465 (ada_language_data): Delete la_language_arch_info.
8466 * c-lang.c (c_language_data): Likewise.
8467 (c_language::language_arch_info): New member function.
8468 (cplus_language_arch_info): Delete function, move
8469 implementation to...
8470 (cplus_language::language_arch_info): ...here, a new member
8471 function.
8472 (cplus_language_data): Delete la_language_arch_info.
8473 (asm_language_data): Likewise.
8474 (asm_language::language_arch_info): New member function.
8475 (minimal_language_data): Delete la_language_arch_info.
8476 (minimal_language::language_arch_info): New member function.
8477 * d-lang.c (d_language_arch_info): Delete function, move
8478 implementation to...
8479 (d_language::language_arch_info): ...here, a new member
8480 function.
8481 (d_language_data): Delete la_language_arch_info.
8482 * f-lang.c (f_language_arch_info): Delete function, move
8483 implementation to...
8484 (f_language::language_arch_info): ...here, a new member
8485 function.
8486 (f_language_data): Delete la_language_arch_info.
8487 * go-lang.c (go_language_arch_info): Delete function, move
8488 implementation to...
8489 (go_language::language_arch_info): ...here, a new member
8490 function.
8491 (go_language_data): Delete la_language_arch_info.
8492 * language.c (unknown_language_data): Likewise.
8493 (unknown_language::language_arch_info): New member function.
8494 (auto_language_data): Delete la_language_arch_info.
8495 (auto_language::language_arch_info): New member function.
8496 (language_gdbarch_post_init): Update call to
8497 la_language_arch_info.
8498 * language.h (language_data): Delete la_language_arch_info
8499 function pointer.
8500 (language_defn::language_arch_info): New function.
8501 * m2-lang.c (m2_language_arch_info): Delete function, move
8502 implementation to...
8503 (m2_language::language_arch_info): ...here, a new member
8504 function.
8505 (m2_language_data): Delete la_language_arch_info.
8506 * objc-lang.c (objc_language_arch_info): Delete function, move
8507 implementation to...
8508 (objc_language::language_arch_info): ...here, a new member
8509 function.
8510 (objc_language_data): Delete la_language_arch_info.
8511 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8512 implementation to...
8513 (opencl_language::language_arch_info): ...here, a new member
8514 function.
8515 (opencl_language_data): Delete la_language_arch_info.
8516 * p-lang.c (pascal_language_arch_info): Delete function, move
8517 implementation to...
8518 (pascal_language::language_arch_info): ...here, a new member
8519 function.
8520 (pascal_language_data): Delete la_language_arch_info.
8521 * rust-lang.c (rust_language_arch_info): Delete function, move
8522 implementation to...
8523 (rust_language::language_arch_info): ...here, a new member
8524 function.
8525 (rust_language_data): Delete la_language_arch_info.
8526
48448202
AB
85272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8528
8529 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8530 initializer.
8531 * c-lang.c (c_language_data): Likewise.
8532 (cplus_language_data): Likewise.
8533 (cplus_language::pass_by_reference_info): New method.
8534 (asm_language_data): Delete la_pass_by_reference initializer.
8535 (minimal_language_data): Likewise.
8536 * cp-abi.c (cp_pass_by_reference): Remove use of
8537 default_pass_by_reference.
8538 * d-lang.c (d_language_data): Likewise.
8539 * f-lang.c (f_language_data): Likewise.
8540 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8541 default_pass_by_reference.
8542 * go-lang.c (go_language_data): Likewise.
8543 * language.c (language_pass_by_reference): Update.
8544 (default_pass_by_reference): Delete.
8545 (unknown_language_data): Delete la_pass_by_reference
8546 initializer.
8547 (auto_language_data): Likewise.
8548 * language.h (struct language_data): Delete la_pass_by_reference
8549 field.
8550 (language_defn::pass_by_reference_info): New member function.
8551 (default_pass_by_reference): Delete declaration.
8552 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8553 initializer.
8554 * objc-lang.c (objc_language_data): Likewise.
8555 * opencl-lang.c (opencl_language_data): Likewise.
8556 * p-lang.c (pascal_language_data): Likewise.
8557 * rust-lang.c (rust_language_data): Likewise.
8558
15e5fd35
AB
85592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8560
8561 * ada-lang.c (ada_read_var_value): Delete function, move
8562 implementation to...
8563 (ada_language::read_var_value): ...here.
8564 (ada_language_data): Delete la_read_var_value initializer.
8565 * c-lang.c (c_language_data): Likewise.
8566 (cplus_language_data): Likewise.
8567 (minimal_language_data): Likewise.
8568 * d-lang.c (d_language_data): Likewise.
8569 * f-lang.c (f_language_data): Likewise.
8570 * findvar.c (default_read_var_value): Rename to...
8571 (language_defn::read_var_value): ...this.
8572 * findvar.c (read_var_value): Update header comment, and change to
8573 call member function instead of function pointer.
8574 * go-lang.c (go_language_data): Likewise.
8575 * language.c (unknown_language_data): Delete la_read_var_value
8576 initializer.
8577 (auto_language_data): Likewise.
8578 * language.h (struct language_data): Delete la_read_var_value
8579 field.
8580 (language_defn::read_var_value): New member function.
8581 (default_read_var_value): Delete declaration.
8582 * m2-lang.c (m2_language_data): Delete la_read_var_value
8583 initializer.
8584 * objc-lang.c (objc_language_data): Likewise.
8585 * opencl-lang.c (opencl_language_data): Likewise.
8586 * p-lang.c (pascal_language_data): Likewise.
8587 * rust-lang.c (rust_language_data): Likewise.
8588 * value.h (default_read_var_value): Delete declaration.
8589
5bd40f2a
AB
85902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * ada-lang.c (ada_print_array_index): Delete function, move
8593 implementation to...
8594 (ada_language::print_array_index): ...here.
8595 (ada_language_data): Delete la_print_array_index initializer.
8596 * c-lang.c (c_language_data): Likewise.
8597 (cplus_language_data): Likewise.
8598 (minimal_language_data): Likewise.
8599 * d-lang.c (d_language_data): Likewise.
8600 * f-lang.c (f_language_data): Likewise.
8601 * go-lang.c (go_language_data): Likewise.
8602 * language.c (default_print_array_index): Delete function, move
8603 implementation to...
8604 (language_defn::print_array_index): ...here.
8605 (unknown_language_data): Delete la_print_array_index initializer.
8606 (auto_language_data): Likewise.
8607 * language.h (struct language_data): Delete la_print_array_index
8608 field.
8609 (language_defn::print_array_index): New member function.
8610 (LA_PRINT_ARRAY_INDEX): Update.
8611 (default_print_array_index): Delete declaration.
8612 * m2-lang.c (m2_language_data): Delete la_print_array_index
8613 initializer.
8614 * objc-lang.c (objc_language_data): Likewise.
8615 * opencl-lang.c (opencl_language_data): Likewise.
8616 * p-lang.c (pascal_language_data): Likewise.
8617 * rust-lang.c (rust_language_data): Likewise.
8618
0874fd07
AB
86192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 * gdb/ada-lang.c (ada_language_defn): Convert to...
8622 (ada_language_data): ...this.
8623 (class ada_language): New class.
8624 (ada_language_defn): New static global.
8625 * gdb/c-lang.c (c_language_defn): Convert to...
8626 (c_language_data): ...this.
8627 (class c_language): New class.
8628 (c_language_defn): New static global.
8629 (cplus_language_defn): Convert to...
8630 (cplus_language_data): ...this.
8631 (class cplus_language): New class.
8632 (cplus_language_defn): New static global.
8633 (asm_language_defn): Convert to...
8634 (asm_language_data): ...this.
8635 (class asm_language): New class.
8636 (asm_language_defn): New static global.
8637 (minimal_language_defn): Convert to...
8638 (minimal_language_data): ...this.
8639 (class minimal_language): New class.
8640 (minimal_language_defn): New static global.
8641 * gdb/d-lang.c (d_language_defn): Convert to...
8642 (d_language_data): ...this.
8643 (class d_language): New class.
8644 (d_language_defn): New static global.
8645 * gdb/f-lang.c (f_language_defn): Convert to...
8646 (f_language_data): ...this.
8647 (class f_language): New class.
8648 (f_language_defn): New static global.
8649 * gdb/go-lang.c (go_language_defn): Convert to...
8650 (go_language_data): ...this.
8651 (class go_language): New class.
8652 (go_language_defn): New static global.
8653 * gdb/language.c (unknown_language_defn): Remove declaration.
8654 (current_language): Initialize to nullptr, real initialization is
8655 moved to _initialize_language.
8656 (languages): Delete global.
8657 (language_defn::languages): Define.
8658 (set_language_command): Use language_defn::languages.
8659 (set_language): Likewise.
8660 (range_error): Likewise.
8661 (language_enum): Likewise.
8662 (language_def): Likewise.
8663 (add_set_language_command): Use language_def::languages for the
8664 language list, and language_def to lookup language pointers.
8665 (skip_language_trampoline): Use language_defn::languages.
8666 (unknown_language_defn): Convert to...
8667 (unknown_language_data): ...this.
8668 (class unknown_language): New class.
8669 (unknown_language_defn): New static global.
8670 (auto_language_defn): Convert to...
8671 (auto_language_data): ...this.
8672 (class auto_language): New class.
8673 (auto_language_defn): New static global.
8674 (language_gdbarch_post_init): Use language_defn::languages.
8675 (_initialize_language): Initialize current_language.
8676 * gdb/language.h (struct language_defn): Rename to...
8677 (struct language_data): ...this.
8678 (struct language_defn): New.
8679 (auto_language_defn): Delete.
8680 (unknown_language_defn): Delete.
8681 (minimal_language_defn): Delete.
8682 (ada_language_defn): Delete.
8683 (asm_language_defn): Delete.
8684 (c_language_defn): Delete.
8685 (cplus_language_defn): Delete.
8686 (d_language_defn): Delete.
8687 (f_language_defn): Delete.
8688 (go_language_defn): Delete.
8689 (m2_language_defn): Delete.
8690 (objc_language_defn): Delete.
8691 (opencl_language_defn): Delete.
8692 (pascal_language_defn): Delete.
8693 (rust_language_defn): Delete.
8694 * gdb/m2-lang.c (m2_language_defn): Convert to...
8695 (m2_language_data): ...this.
8696 (class m2_language): New class.
8697 (m2_language_defn): New static global.
8698 * gdb/objc-lang.c (objc_language_defn): Convert to...
8699 (objc_language_data): ...this.
8700 (class objc_language): New class.
8701 (objc_language_defn): New static global.
8702 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8703 (opencl_language_data): ...this.
8704 (class opencl_language): New class.
8705 (opencl_language_defn): New static global.
8706 * gdb/p-lang.c (pascal_language_defn): Convert to...
8707 (pascal_language_data): ...this.
8708 (class pascal_language): New class.
8709 (pascal_language_defn): New static global.
8710 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8711 language pointer, update comment format.
8712 * gdb/rust-lang.c (rust_language_defn): Convert to...
8713 (rust_language_data): ...this.
8714 (class rust_language): New class.
8715 (rust_language_defn): New static global.
8716
1313c56e
AB
87172020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8720 member variable.
8721 <m_stmt_at_address>: New member variable.
8722 (lnp_state_machine::record_line): Don't record some lines, update
8723 tracking of is_stmt at the same address.
8724 (lnp_state_machine::lnp_state_machine): Initialise new member
8725 variables.
8726
b7ed9f3d
ST
87272020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8728
8729 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8730 "-include gnu-nat-mig.h".
8731 * gnu-nat-mig.h: New file.
8732 * gnu-nat.c: Include "gnu-nat-mig.h".
8733 (exc_server, msg_reply_server, notify_server,
8734 process_reply_server): Remove declarations.
8735
14a8ad62
ST
87362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8737
8738 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8739 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8740 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8741 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8742 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8743 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8744 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8745 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8746 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8747 to gnu_nat_target class.
8748 * gnu-nat.c: Likewise.
8749 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8750 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8751 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8752 object.
8753 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8754 instead of `gnu_target'.
8755
0af5e106
ST
87562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8757
8758 * i386-gnu-tdep.c: Include "gdbcore.h"
8759 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8760 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8761 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8762 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8763 i386_gnu_sigcontext_addr): New functions
8764 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8765 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8766 tdep.
8767
078f2fc9
ST
87682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8769
8770 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8771 before fork_inferior call. Avoid calling it if target_is_pushed returns
8772 true.
8773
53dff92c
ST
87742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8775
8776 * gnu-nat.h (gnu_target): New variable declaration.
8777 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8778 gnu_target.
8779 * gnu-nat.c (gnu_target): New variable.
8780 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8781 add_thread_silent, and add_thread calls.
8782 (gnu_nat_target::create_inferior): Pass gnu_target to
8783 add_thread_silent, thread_change_ptid call.
8784 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8785 call.
8786
5a8b8627
ST
87872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8788
8789 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8790 (gnu_nat_target::find_memory_regions): Remove unused
8791 `old_address' variable.
8792
366f550a
ST
87932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8794
8795 * gnu-nat.c: Include "gdbarch.h".
8796
f14871bf
ST
87972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8798
8799 * reply_mig_hack.awk (Error return): Cast function through
8800 void *, to bypass compiler function call check.
8801
c6887cfb
ST
88022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8803
8804 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8805 $(srcdir)/reply_mig_hack.awk.
8806
6930bffe
ST
88072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8808
8809 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8810
112c22ed
JG
88112020-05-30 Jonny Grant <jg@jguk.org>
8812
8813 * configure.ac (ACX_BUGURL): change bug URL to https.
8814
f68f85b5
PA
88152020-05-30 Pedro Alves <palves@redhat.com>
8816
8817 * cp-support.c (replace_typedefs_template): New.
8818 (replace_typedefs_qualified_name): Handle
8819 DEMANGLE_COMPONENT_TEMPLATE.
8820
976ca316
SM
88212020-05-29 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8824 dwarf2/index-cache.h, dwarf2/index-write.c,
8825 dwarf2/index-write.h, dwarf2/line-header.c,
8826 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8827 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8828 variables and fields from `dwarf2_per_objfile` to just
8829 `per_objfile` throughout.
8830
989ade05
SM
88312020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8832
8833 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8834 <push_dwarf_reg_entry_value>: Add comment.
8835
c47bae85
KB
88362020-05-28 Kevin Buettner <kevinb@redhat.com>
8837 Keith Seitz <keiths@redhat.com>
8838
8839 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8840 instead of PyEval_ReleaseLock.
8841 (class gdbpy_gil): Move to earlier in file.
8842 (finalize_python): Set gdb_python_initialized.
8843 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8844 when not initialized.
8845
44486dcf
SM
88462020-05-28 Simon Marchi <simon.marchi@efficios.com>
8847
8848 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8849 <push_dwarf_reg_entry_value>: Remove assert. Override
8850 per_objfile with caller_per_objfile.
8851
f030440d
TV
88522020-05-28 Tom de Vries <tdevries@suse.de>
8853
8854 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8855 PR gold/15646 workaround to symbol kind "type".
8856
f0fbb768
TT
88572020-05-27 Tom Tromey <tromey@adacore.com>
8858
8859 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8860
af0b2a3e
TT
88612020-05-27 Tom Tromey <tromey@adacore.com>
8862
8863 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8864 Use htab_find_with_hash.
8865 <add_abbrev>: Remove "abbrev_number" parameter.
8866 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8867 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8868 (hash_abbrev): Add comment.
8869 (abbrev_table::lookup_abbrev): Move to header file.
8870 (abbrev_table::read): Update.
8871
7d00ffec
TT
88722020-05-27 Tom Tromey <tromey@adacore.com>
8873
8874 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8875 method.
8876 <canonical_name>: New member.
8877 <raw_name>: Rename from "name".
8878 (partial_die_info): Initialize canonical_name.
8879 (scan_partial_symbols): Check raw_name.
8880 (partial_die_parent_scope, partial_die_full_name)
8881 (add_partial_symbol, add_partial_subprogram)
8882 (add_partial_enumeration, load_partial_dies): Use "name" method.
8883 (partial_die_info::name): New method.
8884 (partial_die_info::read, guess_partial_die_structure_name)
8885 (partial_die_info::fixup): Update.
8886
697bba18
TT
88872020-05-27 Tom Tromey <tromey@adacore.com>
8888
8889 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8890 <get_ref_die_offset>: Inline.
8891 <get_ref_die_offset_complaint>: New method.
8892 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8893 (attribute::get_ref_die_offset_complaint): Rename from
8894 get_ref_die_offset. Just issue complaint.
8895
c17ace43
HD
88962020-05-27 Hannes Domani <ssbssa@yahoo.de>
8897
8898 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8899
96445f0b
HD
89002020-05-27 Hannes Domani <ssbssa@yahoo.de>
8901
8902 * exec.c (exec_file_attach): Use errno value of first openp failure.
8903
ac637ec3
HD
89042020-05-27 Hannes Domani <ssbssa@yahoo.de>
8905
8906 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8907 Don't close thread handle.
8908
17ee85fc
TT
89092020-05-27 Tom Tromey <tom@tromey.com>
8910 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8913 shared_ptr.
8914 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8915 member.
8916 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8917 dwarf2_per_bfd_objfile_data_key>: New globals.
8918 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8919 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8920 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8921 shared.
8922 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8923 short-circuit when sharing.
8924 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8925 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8926
39b16f87
SM
89272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8928
8929 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8930 to...
8931 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8932 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8933
fcf23d5b
SM
89342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8935
8936 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8937 build_name_components, find_name_components_bounds>:
8938 Add per_objfile parameter.
8939 (struct mapped_index) <symbol_name_at>: Likewise.
8940 (struct mapped_debug_names): Remove constructor.
8941 <dwarf2_per_objfile>: Remove field.
8942 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8943 (mapped_index_base::find_name_components_bounds,
8944 mapped_index_base::build_name_components,
8945 dw2_expand_symtabs_matching_symbol): Likewise.
8946 (class mock_mapped_index) <symbol_name_at>: Likewise.
8947 (check_match): Likewise.
8948 (check_find_bounds_finds): Likewise.
8949 (test_mapped_index_find_name_component_bounds): Update.
8950 (CHECK_MATCH): Update.
8951 (dw2_expand_symtabs_matching): Update.
8952 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8953 per_objfile parameter.
8954 <find_vec_in_debug_names>: Likewise.
8955 <m_per_objfile>: New field.
8956 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8957 parameter.
8958 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8959 (dw2_debug_names_iterator::next): Update.
8960 (dw2_debug_names_lookup_symbol): Update.
8961 (dw2_debug_names_expand_symtabs_for_function): Update.
8962 (dw2_debug_names_map_matching_symbols): Update.
8963 (dw2_debug_names_expand_symtabs_matching): Update.
8964 (dwarf2_read_debug_names): Update.
8965
7188ed02
SM
89662020-05-27 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8969 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8970 move to dwarf2_per_objfile.
8971 <read_in_chain>: Remove.
8972 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8973 remove_all_cus, age_comp_units>: New methods.
8974 <m_dwarf2_cus>: New member.
8975 (struct dwarf2_per_cu_data) <cu>: Remove.
8976 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8977 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8978 moved to methods of dwarf2_per_objfile.
8979 (dwarf2_clear_marks): Remove.
8980 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8981 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8982 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8983 (dwarf2_per_objfile::remove_all_cus): New.
8984 (class free_cached_comp_units) <~free_cached_comp_units>:
8985 Update.
8986 (load_cu): Update.
8987 (dw2_do_instantiate_symtab): Adjust.
8988 (fill_in_sig_entry_from_dwo_entry): Adjust.
8989 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8990 (cutu_reader::cutu_reader): Likewise.
8991 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8992 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8993 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8994 and dwarf2_per_objfile::age_comp_units.
8995 (load_partial_comp_unit): Update.
8996 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8997 (process_queue): Likewise.
8998 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8999 backlink.
9000 (dwarf2_read_addr_index): Likewise.
9001 (follow_die_offset): Likewise.
9002 (dwarf2_fetch_die_loc_sect_off): Likewise.
9003 (dwarf2_fetch_constant_bytes): Likewise.
9004 (dwarf2_fetch_die_type_sect_off): Likewise.
9005 (follow_die_sig_1): Likewise.
9006 (load_full_type_unit): Likewise.
9007 (read_signatured_type): Likewise.
9008 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9009 (dwarf2_cu::~dwarf2_cu): Remove.
9010 (dwarf2_per_objfile::get_cu): New.
9011 (dwarf2_per_objfile::set_cu): New.
9012 (age_cached_comp_units): Rename to...
9013 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9014 to std::unordered_map.
9015 (free_one_cached_comp_unit): Rename to...
9016 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9017 to std::unordered_map.
9018 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9019 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9020 a dwarf2_per_objfile in data.
9021 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9022 (dwarf2_clear_marks): Remove.
9023
2e671100
SM
90242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9027 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9028 (init_tu_and_read_dwo_dies): Likewise.
9029 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9030 (cutu_reader::cutu_reader): Likewise.
9031 (load_partial_comp_unit): Likewise.
9032 (process_psymtab_comp_unit): Update.
9033 (build_type_psymtabs_1): Update.
9034 (process_skeletonless_type_unit): Update.
9035 (load_full_comp_unit): Update.
9036 (find_partial_die): Update.
9037 (dwarf2_read_addr_index): Update.
9038 (read_signatured_type): Update.
9039
2e6a9f79
SM
90402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9041
9042 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9043 m_header_read_in>: New fields.
9044 <get_header>: New method.
9045 * dwarf2/read.c (per_cu_header_read_in): Remove.
9046 (dwarf2_per_cu_data::get_header): New.
9047 (dwarf2_per_cu_data::addr_size): Update.
9048 (dwarf2_per_cu_data::offset_size): Update.
9049 (dwarf2_per_cu_data::ref_addr_size): Update.
9050
1b555f17
SM
90512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9054 (dw2_do_instantiate_symtab): Update.
9055 (queue_and_load_all_dwo_tus): Change parameter from
9056 dwarf2_per_cu_data to dwarf2_cu.
9057 (dwarf2_fetch_die_loc_sect_off): Update.
9058 (dwarf2_fetch_constant_bytes): Update.
9059 (dwarf2_fetch_die_type_sect_off): Update.
9060
8fc0b21d
SM
90612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * dwarf2/read.c (process_full_comp_unit,
9064 process_full_type_unit): Remove per_cu, per_objfile paramters.
9065 Add dwarf2_cu parameter.
9066 (process_queue): Update.
9067
168c9250
SM
90682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * dwarf2/read.c (create_cu_from_index_list): Replace
9071 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9072 (create_cus_from_index_list): Likewise.
9073 (create_cus_from_index): Likewise.
9074 (create_signatured_type_table_from_index): Likewise.
9075 (create_cus_from_debug_names_list): Likewise.
9076 (create_cus_from_debug_names): Likewise.
9077 (dwarf2_read_gdb_index): Update.
9078 (dwarf2_read_debug_names): Update.
9079
e286671b
TT
90802020-05-27 Tom Tromey <tom@tromey.com>
9081 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * dwarf2/read.h (struct dwarf2_per_objfile)
9084 <get_type_for_signatured_type, set_type_for_signatured_type>:
9085 New methods.
9086 <m_type_map>: New member.
9087 (struct signatured_type) <type>: Remove.
9088 * dwarf2/read.c
9089 (dwarf2_per_objfile::get_type_for_signatured_type,
9090 dwarf2_per_objfile::set_type_for_signatured_type): New.
9091 (get_signatured_type): Use new methods.
9092
8adb8487
TT
90932020-05-27 Tom Tromey <tom@tromey.com>
9094 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9097 (struct dwarf2_per_objfile) <type_units>: New member.
9098 <get_type_unit_group_unshareable>: New method.
9099 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9100 num_symtabs, symtabs>: Remove; move to
9101 type_unit_group_unshareable.
9102 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9103 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9104 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9105
127bbf4b
SM
91062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * dwarf2/read.h (struct dwarf2_per_cu_data):
9109 <dwarf2_per_objfile>: Remove.
9110 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9111 dwarf2_per_objfile.
9112 (create_signatured_type_table_from_index): Likewise.
9113 (create_signatured_type_table_from_debug_names): Likewise.
9114 (create_debug_type_hash_table): Likewise.
9115 (fill_in_sig_entry_from_dwo_entry): Likewise.
9116 (create_type_unit_group): Likewise.
9117 (read_comp_units_from_section): Likewise.
9118 (create_cus_hash_table): Likewise.
9119
f6e649dd
SM
91202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9123 dwarf2_per_cu_data::dwarf2_per_objfile.
9124 (compute_compunit_symtab_includes): Likewise.
9125 (dwarf2_cu::start_symtab): Likewise.
9126
aa66c379
SM
91272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9128
9129 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9130 parameter.
9131 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9132 (read_namespace_alias): Update.
9133 (lookup_die_type): Update.
9134 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9135 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9136 Update.
9137 (disassemble_dwarf_expression): Update.
9138
120ce1b5
SM
91392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * dwarf2/read.h (struct dwarf2_queue_item): Add
9142 dwarf2_per_objfile parameter, assign new parameter.
9143 <per_objfile>: New field.
9144 * dwarf2/read.c (free_one_cached_comp_unit): Add
9145 dwarf2_per_objfile parameter.
9146 (queue_comp_unit): Likewise.
9147 (dw2_do_instantiate_symtab): Update.
9148 (process_psymtab_comp_unit): Update.
9149 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9150 (process_imported_unit_die): Update.
9151 (queue_and_load_dwo_tu): Update.
9152 (follow_die_offset): Update.
9153 (follow_die_sig_1): Update.
9154
9f47c707
SM
91552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9158 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9159 (read_call_site_scope): Assign per_objfile.
9160 (dwarf2_per_cu_data::objfile): Remove.
9161 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9162 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9163 dwarf2_per_objfile parameter.
9164 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9165 dwarf2_per_objfile parameter.
9166 (dwarf_expr_reg_to_entry_parameter): Add output
9167 dwarf2_per_objfile parameter.
9168 (locexpr_get_frame_base): Update.
9169 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9170 <push_dwarf_reg_entry_value>: Update.
9171 <call_site_to_target_addr>: Update.
9172 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9173 parameter.
9174 (value_of_dwarf_reg_entry): Update.
9175 (rw_pieced_value): Update.
9176 (indirect_synthetic_pointer): Update.
9177 (dwarf2_evaluate_property): Update.
9178 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9179 parameter.
9180 (locexpr_read_variable): Update.
9181 (locexpr_get_symbol_read_needs): Update.
9182 (loclist_read_variable): Update.
9183
14095eb3
SM
91842020-05-27 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9187 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9188 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9189 parameter.
9190 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9191 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9192 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9193 parameter.
9194 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9195 sect_variable_value): Add dwarf2_per_objfile parameter.
9196 (class dwarf_evaluate_loc_desc) <dwarf_call,
9197 dwarf_variable_value>: Update.
9198 (fetch_const_value_from_synthetic_pointer): Add
9199 dwarf2_per_objfile parameter.
9200 (fetch_const_value_from_synthetic_pointer): Update.
9201 (coerced_pieced_ref): Update.
9202 (class symbol_needs_eval_context) <dwarf_call,
9203 dwarf_variable_value>: Update.
9204 (dwarf2_compile_expr_to_ax): Update.
9205
3c3cd3d4
SM
92062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9209 parameter.
9210 (dwarf2_evaluate_loc_desc_full): Update.
9211
82ca3f51
SM
92122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9213
9214 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9215 parameter.
9216 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9217 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9218 dwarf2_per_objfile parameter.
9219 (decode_debug_loc_dwo_addresses): Likewise.
9220 (dwarf2_find_location_expression): Update.
9221 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9222 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9223 parameter.
9224 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9225 parameter.
9226 (locexpr_describe_location_1): Likewise.
9227 (locexpr_describe_location): Update.
9228
4b167ea1
SM
92292020-05-27 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9232 Remove.
9233 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9234 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9235 (dwarf2_compile_property_to_c): Update.
9236 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9237 use text offset from objfile.
9238 (locexpr_tracepoint_var_ref): Update.
9239 (locexpr_generate_c_location): Update.
9240 (loclist_describe_location): Update.
9241 (loclist_tracepoint_var_ref): Update.
9242 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9243 dwarf2_per_objfile parameter.
9244 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9245 use text offset from objfile.
9246 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9247
89b07335
SM
92482020-05-27 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * dwarf2/expr.h (struct dwarf_expr_context)
9251 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9252 <offset>: Remove.
9253 <per_objfile>: New member.
9254 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9255 dwarf2_per_objfile parameter. Don't set offset, set
9256 per_objfile.
9257 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9258 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9259 a dwarf2_per_objfile object instead of an offset.
9260 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9261 constructor.
9262 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9263 to dwarf2_expr_executor constructor. Don't set offset.
9264 (dwarf2_fetch_cfa_info): Update.
9265 (struct dwarf2_frame_cache) <text_offset>: Remove.
9266 <per_objfile>: New field.
9267 (dwarf2_frame_cache): Update.
9268 (dwarf2_frame_prev_register): Update.
9269 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9270 <dwarf_evaluate_loc_desc>: Add constructor.
9271 (dwarf2_evaluate_loc_desc_full): Update.
9272 (dwarf2_locexpr_baton_eval): Update.
9273 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9274 Add constructor.
9275 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9276
293e7e51
SM
92772020-05-27 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9280 addr_sized_int_type>: Move to dwarf2_cu.
9281 <int_type>: Move to dwarf2_per_objfile.
9282 (struct dwarf2_per_objfile) <int_type>: Move here.
9283 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9284 addr_sized_int_type>: Move here.
9285 (read_func_scope): Update.
9286 (read_array_type): Update.
9287 (read_tag_string_type): Update.
9288 (attr_to_dynamic_prop): Update.
9289 (dwarf2_per_cu_data::int_type): Rename to...
9290 (dwarf2_per_objfile::int_type): ... this.
9291 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9292 (dwarf2_cu::addr_sized_int_type): ... this.
9293 (read_subrange_type): Update.
9294 (dwarf2_per_cu_data::addr_type): Rename to...
9295 (dwarf2_cu::addr_type): ... this.
9296 (set_die_type): Update.
9297
64874a40
SM
92982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9301 data through per_cu->cu.
9302
4ab09049
SM
93032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9306 dwarf2_per_cu_data parameter fo dwarf2_cu.
9307 (lookup_dwo_type_unit): Likewise.
9308 (read_cutu_die_from_dwo): Likewise.
9309 (lookup_dwo_unit): Likewise.
9310 (open_and_init_dwo_file): Likewise.
9311 (lookup_dwo_cutu): Likewise.
9312 (lookup_dwo_comp_unit): Likewise.
9313 (lookup_dwo_type_unit): Likewise.
9314 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9315 (cutu_reader::cutu_reader): Update.
9316
47b14e86
SM
93172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9318
9319 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9320 parameter.
9321 (process_full_type_unit): Likewise.
9322 (process_queue): Update.
9323
43182c09
SM
93242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * dwarf2/read.c (recursively_compute_inclusions): Add
9327 dwarf2_per_objfile parameter.
9328 (compute_compunit_symtab_includes): Likewise.
9329 (process_cu_includes): Update.
9330
7aa104c4
SM
93312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9334 parameter.
9335 (create_type_unit_group): Update.
9336 (process_psymtab_comp_unit_reader): Update.
9337 (build_type_psymtabs_reader): Update.
9338
e3beb21d
SM
93392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9342 object through m_this_cu->cu.
9343
d460f660
SM
93442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9345
9346 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9347 the info parameter.
9348 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9349
ab432490
SM
93502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9353 per_objfile parameter.
9354 (load_full_type_unit): Add per_objfile parameter.
9355 (read_signatured_type): Likewise.
9356 (load_full_comp_unit): Likewise.
9357 (load_cu): Likewise.
9358 (dw2_do_instantiate_symtab): Likewise.
9359 (dw2_get_file_names): Likewise.
9360 (dw2_map_symtabs_matching_filename): Update.
9361 (dw_expand_symtabs_matching_file_matcher): Update.
9362 (dw2_map_symbol_filenames): Update.
9363 (process_psymtab_comp_unit): Add per_objfile parameter.
9364 (build_type_psymtabs_1): Update.
9365 (process_skeletonless_type_unit): Update.
9366 (dwarf2_build_psymtabs_hard): Update.
9367 (load_partial_comp_unit): Add per_objfile parameter.
9368 (scan_partial_symbols): Update.
9369 (load_full_comp_unit): Add per_objfile parameter.
9370 (process_imported_unit_die): Update.
9371 (create_cus_hash_table): Update.
9372 (find_partial_die): Update.
9373 (dwarf2_read_addr_index): Update.
9374 (follow_die_offset): Update.
9375 (dwarf2_fetch_die_loc_sect_off): Update.
9376 (dwarf2_fetch_constant_bytes): Update.
9377 (dwarf2_fetch_die_type_sect_off): Update.
9378 (follow_die_sig_1): Update.
9379 (load_full_type_unit): Add per_objfile parameter.
9380 (read_signatured_type): Likewise.
9381
313bad1b
SM
93822020-05-27 Simon Marchi <simon.marchi@efficios.com>
9383
9384 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9385 of objfile_name.
9386
c3699833
SM
93872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9388
9389 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9390 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9391 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9392 field.
9393 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9394 (create_cus_from_index): Update.
9395 (dwarf2_read_gdb_index): Update.
9396 (create_cus_from_debug_names): Update.
9397 (dwarf2_read_debug_names): Update.
9398 (get_abbrev_section_for_cu): Update.
9399 (create_all_comp_units): Update.
9400 (read_attribute_value): Update.
9401 (get_debug_line_section): Update.
9402 * dwarf2/index-cache.c (index_cache::store): Update.
9403 * dwarf2/index-write.c (save_gdb_index_command): Update.
9404 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9405
1859c670
SM
94062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9407
9408 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9409 member.
9410 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9411 dwarf2_per_cu_data::per_bfd.
9412 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9413 (create_type_unit_group): Likewise.
9414 (queue_comp_unit): Remove reference to
9415 per_cu->dwarf2_per_objfile.
9416 (maybe_queue_comp_unit): Likewise.
9417 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9418 (create_cus_hash_table): Assign new field.
9419
5e22e966
SM
94202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * dwarf2/read.c: Replace
9423 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9424 dwarf2_cu->per_objfile throughout.
9425
97a1449a
SM
94262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9429 parameter, don't use per_cu->dwarf2_per_objfile.
9430 (dw2_instantiate_symtab): Likewise.
9431 (dw2_find_last_source_symtab): Update.
9432 (dw2_map_expand_apply): Update.
9433 (dw2_lookup_symbol): Update.
9434 (dw2_expand_symtabs_for_function): Update.
9435 (dw2_expand_all_symtabs): Update.
9436 (dw2_expand_symtabs_with_fullname): Update.
9437 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9438 don't use per_cu->dwarf2_per_objfile.
9439 (dw2_expand_marked_cus): Update.
9440 (dw2_find_pc_sect_compunit_symtab): Update.
9441 (dw2_debug_names_lookup_symbol): Update.
9442 (dw2_debug_names_expand_symtabs_for_function): Update.
9443 (dw2_debug_names_map_matching_symbols): Update.
9444 (dwarf2_psymtab::expand_psymtab): Update.
9445
9e021579
SM
94462020-05-27 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9449 <per_objfile>: New member.
9450 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9451 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9452 call to dwarf2_cu.
9453 (cutu_reader::cutu_reader): Update.
9454 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9455
ae090bdb
SM
94562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9457
9458 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9459 struct dwarf2_per_objfile.
9460 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9461 dwarf2_per_bfd.
9462 * dwarf2/read.c (set_die_type): Update.
9463 (get_die_type_at_offset): Update.
9464
af758d11
SM
94652020-05-27 Tom Tromey <tom@tromey.com>
9466 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9469 method.
9470 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9471 get_symtab, set_symtab>: New methods.
9472 <m_symtabs>: New field.
9473 (struct dwarf2_psymtab): Derive from partial_symtab.
9474 <readin_p, get_compunit_symtab>: Declare methods.
9475 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9476 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9477 New methods.
9478 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9479 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9480 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9481 (dw2_symtab_iter_next, dw2_print_stats)
9482 (dw2_expand_symtabs_with_fullname)
9483 (dw2_expand_symtabs_matching_one)
9484 (dw_expand_symtabs_matching_file_matcher)
9485 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9486 (dw2_debug_names_iterator::next)
9487 (dw2_debug_names_map_matching_symbols)
9488 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9489 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9490 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9491 New methods.
9492 (get_compunit_symtab, process_full_comp_unit)
9493 (process_full_type_unit): Update.
9494 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9495
5989a64e
SM
94962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9497
9498 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9499 then introduce a new dwarf2_per_objfile type.
9500 <read_line_string>: Move to the new dwarf2_per_objfile type.
9501 <objfile>: Likewise.
9502 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9503 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9504 dwarf2_per_objfile->per_bfd.
9505 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9506 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9507 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9508 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9509 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9510 (dwarf2_per_objfile::locate_sections): Rename to...
9511 (dwarf2_per_bfd::locate_sections): ... this.
9512 (dwarf2_per_objfile::get_cutu): Rename to...
9513 (dwarf2_per_bfd::get_cutu): ... this.
9514 (dwarf2_per_objfile::get_cu): Rename to...
9515 (dwarf2_per_bfd::get_cu): ... this.
9516 (dwarf2_per_objfile::get_tu): Rename to...
9517 (dwarf2_per_bfd::get_tu): ... this.
9518 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9519 (dwarf2_per_bfd::allocate_per_cu): ... this.
9520 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9521 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9522 (get_gdb_index_contents_ftype): Change parameter from
9523 dwarf2_per_objfile to dwarf2_per_bfd.
9524 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9525 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9526
a50264ba
TT
95272020-05-27 Tom Tromey <tom@tromey.com>
9528 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9531 (allocate_piece_closure): Set "per_objfile" member.
9532 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9533 (locexpr_describe_location, loclist_describe_location): Use new
9534 member.
9535 * dwarf2/read.c (read_call_site_scope)
9536 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9537 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9538 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9539 handle_data_member_location): Set per_objfile member.
9540 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9541 member.
9542 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9543
d3473f0c
TT
95442020-05-27 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9547 allocate_signatured_type>: Declare new methods.
9548 <m_num_psymtabs>: New member.
9549 (struct dwarf2_per_cu_data) <index>: New member.
9550 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9551 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9552 (create_cu_from_index_list): Use allocate_per_cu.
9553 (create_signatured_type_table_from_index)
9554 (create_signatured_type_table_from_debug_names)
9555 (create_debug_type_hash_table, add_type_unit)
9556 (read_comp_units_from_section): Use allocate_signatured_type.
9557
5717c425
TT
95582020-05-27 Tom Tromey <tom@tromey.com>
9559
9560 * psymtab.c (partial_map_expand_apply)
9561 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9562 (psym_lookup_global_symbol_language)
9563 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9564 (psym_print_stats, psym_expand_symtabs_for_function)
9565 (psym_map_symbol_filenames, psym_map_matching_symbols)
9566 (psym_expand_symtabs_matching)
9567 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9568 (maintenance_check_psymtabs): Update.
9569 * psympriv.h (struct partial_symtab) <readin_p,
9570 get_compunit_symtab>: Add objfile parameter.
9571 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9572 Likewise.
9573 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9574 get_compunit_symtab>: Likewise.
9575 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9576
45940949
TT
95772020-05-27 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9580 member.
9581 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9582 (create_cu_from_index_list)
9583 (create_signatured_type_table_from_index)
9584 (create_signatured_type_table_from_debug_names)
9585 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9586 (dwarf2_create_include_psymtab)
9587 (create_debug_type_hash_table, add_type_unit)
9588 (create_type_unit_group, read_comp_units_from_section)
9589 (dwarf2_compute_name, create_cus_hash_table)
9590 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9591 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9592 obstack.
9593 (dw2_get_real_path): Likewise. Change argument to
9594 dwarf2_per_objfile.
9595
f8c6d152
LM
95962020-05-27 Luis Machado <luis.machado@linaro.org>
9597
9598 PR tdep/26000
9599 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9600 for ldrd (immediate).
9601
e98d2e6d
PW
96022020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9603
9604 * command.h: Add comment giving the name of class_tui.
9605 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9606 create the fake command for the help for class_tui.
9607
53a47a3e
TT
96082020-05-26 Tom Tromey <tromey@adacore.com>
9609
9610 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9611 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9612 (val_atr): New function.
9613 (value_val_atr): Use it.
9614 * ada-valprint.c (print_optional_low_bound): Change low bound
9615 handling for enums.
9616 (val_print_packed_array_elements): Don't call discrete_position.
9617 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9618 discrete_position for enum types.
9619 * language.c (default_print_array_index): Change type.
9620 * language.h (struct language_defn) <la_print_array_index>: Add
9621 index_type parameter, change type of index_value.
9622 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9623 (default_print_array_index): Update.
9624 * valprint.c (maybe_print_array_index): Don't call
9625 value_from_longest. Update.
9626 (value_print_array_elements): Don't call discrete_position.
9627
0bc2354b
TT
96282020-05-26 Tom Tromey <tromey@adacore.com>
9629
9630 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9631 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9632
1218a4bf
CDA
96332020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9634
9635 PR gdb/13519
9636 * avr-tdep.c (avr_integer_to_address): Return data or code
9637 address accordingly to the second 'type' argument of the
9638 function.
9639
92651b1d
MW
96402020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9641
9642 * infcmd.c, inferior.h: (construct_inferior_arguments):
9643 Moved function from here to gdbsupport/common-inferior.{h,cc}
9644
0a4f5f8c
TT
96452020-05-23 Tom Tromey <tom@tromey.com>
9646
9647 Revert commit eca1f90c:
9648 * NEWS: Remove entry for completion styling.
9649 * completer.c (_rl_completion_prefix_display_length): Move
9650 declaration later.
9651 (gdb_fnprint): Revert.
9652 (gdb_display_match_list_1): Likewise.
9653 * cli/cli-style.c (completion_prefix_style)
9654 (completion_difference_style, completion_suffix_style): Remove.
9655 (_initialize_cli_style): Revert.
9656 * cli/cli-style.h (completion_prefix_style)
9657 (completion_difference_style, completion_suffix_style): Don't
9658 declare.
9659
e08bd6c5
PA
96602020-05-24 Pedro Alves <palves@redhat.com>
9661
9662 * symtab.c (completion_list_add_name): Return boolean indication
9663 of whether the symbol matched.
9664 (completion_list_add_symbol): Don't try to remove C++ aliases if
9665 the symbol didn't match in the first place.
9666 * symtab.h (completion_list_add_name): Return bool.
9667
ceacbf6e
SM
96682020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9671 type::field.
9672
26f16254
JB
96732020-05-23 Joel Brobecker <brobecker@adacore.com>
9674
9675 GDB 9.2 released.
9676
eca1f90c
TT
96772020-05-23 Tom Tromey <tom@tromey.com>
9678
9679 * NEWS: Add entry for completion styling.
9680 * completer.c (_rl_completion_prefix_display_length): Move
9681 declaration earlier.
9682 (gdb_fnprint): Use completion_style.
9683 (gdb_display_match_list_1): Likewise.
9684 * cli/cli-style.c (completion_prefix_style)
9685 (completion_difference_style, completion_suffix_style): New
9686 globals.
9687 (_initialize_cli_style): Register new globals.
9688 * cli/cli-style.h (completion_prefix_style)
9689 (completion_difference_style, completion_suffix_style): Declare.
9690
51e2cfa2
PA
96912020-05-23 Pedro Alves <palves@redhat.com>
9692
9693 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9694 (parse_escape): Use ISDIGIT instead of isdigit.
9695 (puts_debug): Use gdb_isprint instead of isprint.
9696 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9697 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9698 ISSPACE instead of isspace.
9699 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9700 instead of isspace.
9701 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9702 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9703 instead of isxdigit and ISDIGIT instead of isdigit.
9704
80fc5e77
SM
97052020-05-22 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * gdbtypes.h (struct type) <field>: New method.
9708 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9709 or type::field.
9710
3cabb6b0
SM
97112020-05-22 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9714 (TYPE_FIELDS): Use type::fields. Change all call sites that
9715 modify the propery to use type::set_fields instead.
9716
1f704f76
SM
97172020-05-22 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9720 type::num_fields instead.
9721
5e33d5f4
SM
97222020-05-22 Simon Marchi <simon.marchi@efficios.com>
9723
9724 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9725 methods.
9726 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9727 that modify the number of fields to use type::set_num_fields
9728 instead.
9729
9392ebb3
TT
97302020-05-22 Tom Tromey <tromey@adacore.com>
9731
9732 * compile/compile-object-load.h (munmap_list_free): Don't
9733 declare.
9734
7c13f4e8
AB
97352020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * annotate.c (annotate_source_line): Update return type, add call
9738 to update current symtab and line.
9739 * annotate.h (annotate_source_line): Update return type, and
9740 extend header comment.
9741 * source.c (info_line_command): Check annotation_level before
9742 calling annotate_source_line.
9743 * stack.c (print_frame_info): If calling annotate_source_line
9744 returns true, then don't print any other source line information.
9745
aa370940
SM
97462020-05-21 Simon Marchi <simon.marchi@efficios.com>
9747
9748 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9749
84d53fa9
SM
97502020-05-21 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * coffread.c (patch_type): Remove NULL check before xfree.
9753 * corefile.c (set_gnutarget): Likewise.
9754 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9755 * exec.c (build_section_table): Likewise.
9756 * remote.c (remote_target::pass_signals): Likewise.
9757 * utils.c (n_spaces): Likewise.
9758 * cli/cli-script.c (document_command): Likewise.
9759 * i386-windows-tdep.c (core_process_module_section): Likewise.
9760 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9761
9d428aae
SM
97622020-05-20 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * symfile.c (reread_symbols): Clear objfile's section_offsets
9765 vector and section indices, re-compute them by calling
9766 sym_offsets.
9767
250106a7
TT
97682020-05-20 Tom Tromey <tromey@adacore.com>
9769
9770 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9771 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9772
9a0bacfb
TV
97732020-05-20 Tom de Vries <tdevries@suse.de>
9774
9775 PR symtab/25833
9776 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9777
7b958a48
AM
97782020-05-20 Alan Modra <amodra@gmail.com>
9779
9780 PR 25993
9781 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9782 bfd_set_filename.
9783 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9784 passed to bfd_set_filename.
9785 * symfile-mem.c (add_vsyscall_page): Likewise for string
9786 passed to symbol_file_add_from_memory.
9787 (symbol_file_add_from_memory): Make name param a const char* and
9788 don't strdup.
9789
c7e97679
AM
97902020-05-20 Alan Modra <amodra@gmail.com>
9791
9792 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9793 rather than accessing bfd->filename directly.
9794 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9795 and use bfd_section_name.
9796 * dwarf2/frame.c (decode_frame_entry): Likewise.
9797 * exec.c (exec_set_section_address): Likewise.
9798 * solib-aix.c (solib_aix_bfd_open): Likewise.
9799 * stap-probe.c (get_stap_base_address): Likewise.
9800 * symfile.c (reread_symbols): Likewise.
9801
563c591b
TT
98022020-05-19 Tom Tromey <tromey@adacore.com>
9803
9804 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9805
f408d82c
SM
98062020-05-19 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9809
98c59b52
PA
98102020-05-19 Pedro Alves <palves@redhat.com>
9811
9812 * NEWS (set exec-file-mismatch): Adjust entry.
9813 * exec.c: Include "build-id.h".
9814 (validate_exec_file): Try to match build IDs instead of filenames.
9815 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9816 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9817 and pass down 'warn_if_slow'.
9818 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9819 gdb_bfd_open_closure to pass it down.
9820 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9821
4111f652
PA
98222020-05-19 Pedro Alves <palves@redhat.com>
9823
9824 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9825 * target.c (target_fileio_open_1): Rename to target_fileio_open
9826 and make extern. Use bool.
9827 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9828 (target_fileio_read_alloc_1): Adjust.
9829 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9830 (target_fileio_open_warn_if_slow): Delete declaration.
9831
ad80db5b
PA
98322020-05-19 Pedro Alves <palves@redhat.com>
9833
9834 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9835 Adjust all callers.
9836
1d6ce4d3
YS
98372020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9838
9839 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9840 whether disp is negative.
9841
9005fbbb
SM
98422020-05-19 Simon Marchi <simon.marchi@efficios.com>
9843
9844 * symfile.h (struct symfile_segment_data)
9845 <~symfile_segment_data>: Remove.
9846 <segment_info>: Change to std::vector.
9847 * symfile.c (default_symfile_segments): Update.
9848 * elfread.c (elf_symfile_segments): Update.
9849
68b888ff
SM
98502020-05-19 Simon Marchi <simon.marchi@efficios.com>
9851
9852 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9853 <segments>: New.
9854 <segment_bases, segment_sizes>: Remove.
9855 * symfile.c (default_symfile_segments): Update.
9856 * elfread.c (elf_symfile_segments): Update.
9857 * remote.c (remote_target::get_offsets): Update.
9858 * solib-target.c (solib_target_relocate_section_addresses):
9859 Update.
9860
62982abd
SM
98612020-05-19 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * symfile.h (struct symfile_segment_data): Initialize fields.
9864 <~symfile_segment_data>: Add.
9865 (symfile_segment_data_up): New.
9866 (struct sym_fns) <sym_segments>: Return a
9867 symfile_segment_data_up.
9868 (default_symfile_segments): Return a symfile_segment_data_up.
9869 (free_symfile_segment_data): Remove.
9870 (get_symfile_segment_data): Return a symfile_segment_data_up.
9871 * symfile.c (default_symfile_segments): Likewise.
9872 (get_symfile_segment_data): Likewise.
9873 (free_symfile_segment_data): Remove.
9874 (symfile_find_segment_sections): Update.
9875 * elfread.c (elf_symfile_segments): Return a
9876 symfile_segment_data_up.
9877 * remote.c (remote_target::get_offsets): Update.
9878 * solib-target.c (solib_target_relocate_section_addresses):
9879 Update.
9880 * symfile-debug.c (debug_sym_segments): Return a
9881 symfile_segment_data_up.
9882
7f204339
RO
98832020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9884
e52a0f1b
RO
9885 PR build/25981
9886 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9887 Hardcode register numbers.
9888
7f204339
RO
9889 PR build/25981
9890 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9891 procfs_find_LDT_entry): Remove.
9892 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9893 procfs_find_LDT_entry): Remove.
9894 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9895 Remove.
9896
7f32a4d5
PA
98972020-05-17 Pedro Alves <palves@redhat.com>
9898 Andrew Burgess <andrew.burgess@embecosm.com>
9899 Keno Fischer <keno@juliacomputing.com>
9900
9901 PR gdb/25741
9902 * breakpoint.c (build_target_condition_list): Update comments.
9903 (build_target_command_list): Update comments and skip matching
9904 locations.
9905 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9906 a separate function. Simplify "set breakpoint auto-hw off"
9907 handling.
9908 (insert_breakpoints): Update comment.
9909 (tracepoint_locations_match): New parameter. For breakpoints,
9910 compare location types too, if the caller wants to.
9911 (handle_automatic_hardware_breakpoints): New functions.
9912 (bp_location_is_less_than): Also sort by location type and
9913 hardware breakpoint length.
9914 (update_global_location_list): Handle "set breakpoint auto-hw on"
9915 here.
9916 (update_breakpoint_locations): Ask breakpoint_locations_match to
9917 ignore location types.
9918
7d93a1e0
SM
99192020-05-16 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9922 type::name instead.
9923
d0e39ea2
SM
99242020-05-16 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * gdbtypes.h (struct type) <name, set_name>: New methods.
9927 (TYPE_CODE): Use type::name. Change all call sites used to set
9928 the name to use type::set_name instead.
9929
2dab0c7b
TT
99302020-05-16 Tom Tromey <tom@tromey.com>
9931
9932 * top.c (quit_force): Update.
9933 * infrun.c (handle_no_resumed): Update.
9934 * top.h (all_uis): New function.
9935 (ALL_UIS): Remove.
9936
59f7bd8d
SM
99372020-05-16 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9940
9bf058f0
PA
99412020-05-16 Pedro Alves <palves@redhat.com>
9942
9943 * ia64-linux-nat.c
9944 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9945 Declare method.
9946 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9947
8f86ae1a
SM
99482020-05-15 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9951 (sparc64_adi_info): Likewise.
9952
d6bc0792
TT
99532020-05-15 Tom Tromey <tom@tromey.com>
9954
9955 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9956 block_objfile.
9957 (lookup_objfile_from_block): Remove.
9958 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9959 (lookup_global_symbol): Use block_objfile.
9960 * symtab.h (lookup_objfile_from_block): Don't declare.
9961 * printcmd.c (clear_dangling_display_expressions): Use
9962 block_objfile.
9963 * parse.c (operator_check_standard): Use block_objfile.
9964
8c14c3a3
TT
99652020-05-15 Tom Tromey <tom@tromey.com>
9966
9967 * language.c (language_alloc_type_symbol): Set
9968 SYMBOL_SECTION.
9969 * symtab.c (initialize_objfile_symbol): Remove.
9970 (allocate_symbol): Remove.
9971 (allocate_template_symbol): Remove.
9972 * dwarf2/read.c (fixup_go_packaging): Use "new".
9973 (new_symbol): Use "new".
9974 (read_variable): Don't call initialize_objfile_symbol. Use
9975 "new".
9976 (read_func_scope): Use "new".
9977 * xcoffread.c (process_xcoff_symbol): Don't call
9978 initialize_objfile_symbol.
9979 (SYMBOL_DUP): Remove.
9980 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9981 "new".
9982 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9983 (allocate_template_symbol): Don't declare.
9984 (struct symbol): Add copy constructor. Change defaults.
9985 * jit.c (finalize_symtab): Use "new".
9986 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9987 Use "new".
9988 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9989 (common_block_end): Use "new".
9990 * mdebugread.c (parse_symbol): Use "new".
9991 (new_symbol): Likewise.
9992
5b4a1a8d
PW
99932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9994
9995 * NEWS: Mention changes to help and apropos.
9996
57b4f16e
PW
99972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9998
9999 * command.h (enum command_class): Improve comments, document
10000 that class_alias is for user-defined aliases, give the class
10001 name for each class, remove unused class_xdb.
10002 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10003 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10004 by a precise class.
10005 * infcmd.c (_initialize_infcmd): Likewise.
10006 * reverse.c (_initialize_reverse): Likewise.
10007 * stack.c (_initialize_stack): Likewise.
10008 * symfile.c (_initialize_symfile): Likewise.
10009 * tracepoint.c (_initialize_tracepoint): Likewise.
10010
7c05caf7
PW
100112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10012
10013 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10014 when their aliased command is traversed.
10015 (help_cmd): Add fput_command_names_styled call to
10016 output command name and aliases when command has an alias.
10017
3b3aaacb
PW
100182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10019
10020 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10021 * cli/cli-decode.c (help_cmd_list): Declare as static,
10022 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10023 a command together with the command.
10024 (fput_command_name_styled, fput_command_names_styled): New functions.
10025 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10026 fput_command_name_styled.
10027 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10028 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10029
7aa1b46f
PW
100302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10031
10032 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10033 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10034 * command.h (cmd_show_list): Likewise.
10035 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10036 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10037
89bcba74
PW
100382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10039
10040 * unittests/command-def-selftests.c (traverse_command_structure):
10041 Verify all commands of a list have the same prefix command and
10042 that only the top cmdlist commands have a null prefix.
10043
3f4d92eb
PW
100442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10045
10046 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10047 as prefix, not one of its aliases.
10048 (set_cmd_prefix): Remove.
10049 (do_add_cmd): Centralize the setting of the prefix of a command, when
10050 command is defined after its full chain of prefix commands.
10051 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10052 (add_setshow_cmd_full): Likewise.
10053 (update_prefix_field_of_prefixed_commands): New function.
10054 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10055 update_prefix_field_of_prefixed_commands.
10056 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10057 addresses of remote_set_cmdlist and remote_show_cmdlist given
10058 as argument, not the address of an argument.
10059 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10060 * gdb/remote.c (_initialize_remote): Likewise.
10061
0605465f
PW
100622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10063
10064 * cli/cli-cmds.c (alias_command): Check for an existing alias
10065 using lookup_cmd_composition, as valid_command_p is too strict
10066 and forbids aliases that are the prefix of an existing alias
10067 or command.
10068 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10069 command is properly recognised as a valid command.
10070
58e6ac70
PW
100712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10072
10073 * unittests/help-doc-selftests.c: Rename to
10074 unittests/command-def-selftests.c
10075 * unittests/command-def-selftests.c (help_doc_tests): Update some
10076 comments.
10077 (command_structure_tests, traverse_command_structure): New namespace
10078 and function.
10079 (command_structure_invariants_tests): New function.
10080 (_initialize_command_def_selftests) Renamed from
10081 _initialize_help_doc_selftests, register command_structure_invariants
10082 selftest.
10083
a7b9ceb8
PW
100842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10085
10086 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10087 an alias of 'show'.
10088
b2188a06
JB
100892020-05-15 Joel Brobecker <brobecker@adacore.com>
10090
10091 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10092 ada_is_fixed_point_type. Update all callers.
10093 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10094 all callers.
10095 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10096 Update all callers.
10097 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10098 print_fixed_point_type. Update all callers.
10099 * ada-valprint.c (ada_value_print_num): Replace call to
10100 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10101
a51951c2
KB
101022020-05-14 Kevin Buettner <kevinb@redhat.com>
10103
10104 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10105 processors.
10106 (cpu_supports_bts): Add CV_AMD case.
10107
29d6859f
LM
101082020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10109 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * infrun.c (stop_all_threads): Collect multiple wait events at
10112 each pass.
10113
78134374
SM
101142020-05-14 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10117 type::code instead.
10118
67607e24
SM
101192020-05-14 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * gdbtypes.h (struct type) <code, set_code>: New methods.
10122 (TYPE_CODE): Use type::code. Change all call sites used to set
10123 the code to use type::set_code instead.
10124
a05575d3
TBA
101252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10126 Tom de Vries <tdevries@suse.de>
10127 Pedro Alves <palves@redhat.com>
10128
10129 PR threads/25478
10130 * infrun.c (stop_all_threads): Do NOT ignore
10131 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10132 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10133 received.
10134 (handle_no_resumed): Remove code handling a live inferior with no
10135 threads.
10136 * remote.c (has_single_non_exited_thread): New.
10137 (remote_target::update_thread_list): Do not delete a thread if is
10138 the last thread of the process.
10139 * thread.c (thread_select): Call delete_exited_threads instead of
10140 prune_threads.
10141
6ad82919
TBA
101422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10143
10144 * infrun.c (stop_all_threads): Enable/disable thread events of all
10145 targets. Move a debug message denoting the end of the function
10146 into the SCOPED_EXIT block.
10147
d890404b
TBA
101482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10149
10150 * process-stratum-target.h: Include <set>.
10151 (all_non_exited_process_targets, switch_to_target_no_thread): New
10152 function declarations.
10153 * process-stratum-target.c (all_non_exited_process_targets)
10154 (switch_to_target_no_thread): New function implementations.
10155
293b3ebc
TBA
101562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10157
10158 * infrun.c (handle_inferior_event): Extract out a piece of code
10159 into...
10160 (mark_non_executing_threads): ...this new function.
10161
7ca9b62a
TBA
101622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10163
10164 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10165 use.
10166
fc75c28b
TBA
101672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10168
10169 * regcache.c (regcache_read_pc_protected): New function
10170 implementation that returns 0 if the PC cannot read via
10171 'regcache_read_pc'.
10172 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10173 instead of 'regcache_read_pc'.
10174 (keep_going_pass_signal): Ditto.
10175
a89febbd
TT
101762020-05-13 Tom Tromey <tromey@adacore.com>
10177
10178 * ada-lang.c (align_value): Remove.
10179 (ada_template_to_fixed_record_type_1): Use align_up.
10180
f7e23710
TBA
101812020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10182
10183 * async-event.c: Update the copyright year.
10184 * async-event.h: Update the copyright year.
10185
02ff80c2
SM
101862020-05-12 Simon Marchi <simon.marchi@efficios.com>
10187
10188 * objfiles.h (is_addr_in_objfile,
10189 shared_objfile_contains_address_p): Return bool.
10190 * objfile.c (is_addr_in_objfile,
10191 shared_objfile_contains_address_p): Return bool.
10192
4fd6c7e8
TT
101932020-05-11 Tom Tromey <tromey@adacore.com>
10194
10195 * cli/cli-cmds.c (info_command): Restore.
10196 (_initialize_cli_cmds): Use add_prefix_command for "info".
10197 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10198
5eb68a39
TT
101992020-05-11 Tom Tromey <tromey@adacore.com>
10200
10201 * ada-lang.c (ada_value_primitive_field): Now public.
10202 * ada-lang.h (ada_value_primitive_field): Declare.
10203 * ada-valprint.c (print_field_values): Use
10204 ada_value_primitive_field for wrapper fields.
10205
7666722f
TV
102062020-05-11 Tom de Vries <tdevries@suse.de>
10207
10208 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10209 MODULE_DOMAIN.
10210
3ee6bb11
TV
102112020-05-11 Tom de Vries <tdevries@suse.de>
10212
10213 PR symtab/25941
10214 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10215 with length 0, if not gdb-produced.
10216 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10217
43434996
TV
102182020-05-09 Tom de Vries <tdevries@suse.de>
10219
10220 PR gdb/25955
10221 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10222 calculation.
10223
2f78cffc
TT
102242020-05-09 Tom Tromey <tom@tromey.com>
10225
10226 * top.c (server_command): Now bool.
10227 * top.h (server_command): Now bool.
10228
4f7bc5ed
TT
102292020-05-08 Tom Tromey <tromey@adacore.com>
10230
10231 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10232 already being processed.
10233
8be4b118
TT
102342020-05-08 Tom Tromey <tom@tromey.com>
10235
10236 * printcmd.c (struct display) <next>: Remove.
10237 <display>: New constructor.
10238 <exp_string>: Now a std::string.
10239 <enabled_p>: Now a bool.
10240 (display_number): Move definition earlier.
10241 (displays): Rename from display_chain. Now a std::vector.
10242 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10243 (display_command): Update.
10244 (do_one_display, disable_display)
10245 (enable_disable_display_command, do_enable_disable_display):
10246 Update.
10247 (free_display): Remove.
10248 (clear_displays): Rewrite.
10249 (delete_display): Update.
10250 (map_display_numbers): Use function_view. Remove "data"
10251 parameter. Update.
10252 (do_delete_display): Remove.
10253 (undisplay_command): Update.
10254 (do_one_display, do_displays, disable_display)
10255 (info_display_command): Update.
10256 (do_enable_disable_display): Remove.
10257 (enable_disable_display_command)
10258 (clear_dangling_display_expressions): Update.
10259
94c93c35
TT
102602020-05-08 Tom Tromey <tom@tromey.com>
10261
10262 * symtab.c (set_symbol_cache_size)
10263 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10264 (maintenance_print_symbol_cache_statistics): Update.
10265 * symmisc.c (print_symbol_bcache_statistics)
10266 (print_objfile_statistics, maintenance_print_objfiles)
10267 (maintenance_info_symtabs, maintenance_check_symtabs)
10268 (maintenance_expand_symtabs, maintenance_info_line_tables):
10269 Update.
10270 * symfile-debug.c (set_debug_symfile): Update.
10271 * source.c (forget_cached_source_info): Update.
10272 * python/python.c (gdbpy_progspaces): Update.
10273 * psymtab.c (maintenance_info_psymtabs): Update.
10274 * probe.c (parse_probes): Update.
10275 * linespec.c (iterate_over_all_matching_symtabs)
10276 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10277 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10278 * exec.c (exec_target::close): Update.
10279 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10280 * breakpoint.c (print_one_breakpoint_location)
10281 (create_longjmp_master_breakpoint)
10282 (create_std_terminate_master_breakpoint): Update.
10283 * progspace.c (program_spaces): Now a std::vector.
10284 (maybe_new_address_space): Update.
10285 (add_program_space): Remove.
10286 (program_space::program_space): Update.
10287 (remove_program_space): Update.
10288 (number_of_program_spaces): Remove.
10289 (print_program_space, update_address_spaces): Update.
10290 * progspace.h (program_spaces): Change type.
10291 (ALL_PSPACES): Remove.
10292 (number_of_program_spaces): Don't declare.
10293 (struct program_space) <next>: Remove.
10294
a1fd1ac9
TT
102952020-05-08 Tom Tromey <tom@tromey.com>
10296
10297 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10298 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10299 (enable_break): Update.
10300 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10301 (frv_fdpic_find_canonical_descriptor): Update.
10302 (frv_fetch_objfile_link_map): Update.
10303 * progspace.c (program_space::free_all_objfiles): Update.
10304 (program_space::solibs): New method.
10305 * progspace.h (struct program_space) <solibs>: New method.
10306 * solist.h (master_so_list): Don't declare.
10307 (ALL_SO_LIBS): Remove.
10308 * solib.h (so_list_head): Remove.
10309 (update_solib_list): Update comment.
10310 * solib.c (master_so_list): Remove.
10311 (solib_used, update_solib_list, solib_add)
10312 (info_sharedlibrary_command, clear_solib)
10313 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10314
38eae084
TT
103152020-05-08 Tom Tromey <tom@tromey.com>
10316
10317 * extension.c (extension_languages): Now a std::array.
10318 (ALL_EXTENSION_LANGUAGES): Remove.
10319 (get_ext_lang_defn, get_ext_lang_of_file)
10320 (eval_ext_lang_from_control_command): Update.
10321 (finish_ext_lang_initialization)
10322 (auto_load_ext_lang_scripts_for_objfile)
10323 (ext_lang_type_printers::ext_lang_type_printers)
10324 (apply_ext_lang_type_printers)
10325 (ext_lang_type_printers::~ext_lang_type_printers)
10326 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10327 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10328 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10329 (get_matching_xmethod_workers, ext_lang_colorize)
10330 (ext_lang_before_prompt): Update.
10331 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10332
596dc4ad
TT
103332020-05-08 Tom Tromey <tom@tromey.com>
10334
10335 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10336 overload.
10337 <swap_string, m_string>: Remove.
10338 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10339 Update.
10340 * stabsread.c (define_symbol, read_type): Update.
10341 * linespec.c (find_linespec_symbols): Update.
10342 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10343 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10344 * dbxread.c (read_dbx_symtab): Update.
10345 * cp-support.h (cp_canonicalize_string_full)
10346 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10347 Return unique_xmalloc_ptr.
10348 * cp-support.c (inspect_type): Update.
10349 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10350 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10351 Likewise.
10352 * c-typeprint.c (print_name_maybe_canonical): Update.
10353 * break-catch-throw.c (check_status_exception_catchpoint):
10354 Update.
10355
bf4cb9be
TV
103562020-05-08 Tom de Vries <tdevries@suse.de>
10357
10358 * infrun.c (follow_fork): Copy current_line and current_symtab to
10359 child thread.
10360
a1b68f28
SM
103612020-05-07 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * async-event.c (struct async_signal_handler, struct
10364 async_event_handler): Reformat, remove typedef.
10365
98d48915
SM
103662020-05-07 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10369 access thistype->main_type->dyn_prop_list directly.
10370
7aa91313
SM
103712020-05-07 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10374 (remove_dyn_prop): Remove. Update all users to use
10375 type::remove_dyn_prop.
10376 * gdbtypes.c (remove_dyn_prop): Rename to...
10377 (type::remove_dyn_prop): ... this.
10378
5c54719c
SM
103792020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10380
10381 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10382 (add_dyn_prop): Remove. Update all users to use
10383 type::add_dyn_prop.
10384 * gdbtypes.c (add_dyn_prop): Rename to...
10385 (type::add_dyn_prop): ... this.
10386
24e99c6c
SM
103872020-05-07 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10390 (get_dyn_prop): Remove. Update all users to use
10391 type::dyn_prop.
10392 * gdbtypes.c (get_dyn_prop): Rename to...
10393 (type::dyn_prop): ... this.
10394
0d4bf016
SM
103952020-05-06 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10398
ac4a4f1c
SM
103992020-05-06 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10402 instruction, skip it if it's there.
10403
a3bbacc1
SM
104042020-05-05 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10407
c3236f84
SM
104082020-05-04 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10411 * gdbtypes.c (recursive_dump_type): Remove use of
10412 TYPE_INCOMPLETE.
10413
3b6acaee
TT
104142020-05-03 Tom Tromey <tom@tromey.com>
10415
10416 * breakpoint.c (catch_command, tcatch_command): Remove.
10417 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10418 add_show_prefix_cmd.
10419 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10420 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10421 Remove.
10422 (add_internal_problem_command): Use add_basic_prefix_cmd,
10423 add_show_prefix_cmd.
10424 * mips-tdep.c (set_mipsfpu_command): Remove.
10425 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10426 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10427 (_initialize_index_cache): Use add_basic_prefix_cmd.
10428 * memattr.c (dummy_cmd): Remove.
10429 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10430 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10431 (_initialize_tui_win): Use add_basic_prefix_cmd,
10432 add_show_prefix_cmd.
10433 * cli/cli-logging.c (set_logging_command): Remove.
10434 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10435 add_show_prefix_cmd.
10436 (show_logging_command): Remove.
10437 * target.c (target_command): Remove.
10438 (add_target): Use add_basic_prefix_cmd.
10439
a51119cd
HD
104402020-05-02 Hannes Domani <ssbssa@yahoo.de>
10441
10442 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10443
652fc23a 104442020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10445
652fc23a
PW
10446 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10447 info_command.
10448
117539e6
KR
104492020-04-30 Kamil Rytarowski <n54@gmx.com>
10450
10451 * nbsd-nat.c (nbsd_enable_proc_events)
10452 (nbsd_nat_target::post_startup_inferior): Add.
10453 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10454 (nbsd_nat_target::update_thread_list): Rewrite.
10455 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10456 "PTRACE_LWP_CREATE".
10457 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10458
102e38eb 104592020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10460
102e38eb
PW
10461 * stack.c (_initialize_stack): Remove duplicated creation
10462 of "frame" command and "f" alias.
10463
ee9d1e5f
HD
104642020-04-30 Hannes Domani <ssbssa@yahoo.de>
10465
10466 PR gdb/18706
10467 * gdbtypes.c (check_typedef): Calculate size of array of
10468 stubbed type.
10469
627c7fb8
HD
104702020-04-30 Hannes Domani <ssbssa@yahoo.de>
10471
10472 PR gdb/15559
10473 * i386-tdep.c (i386_push_dummy_call): Call
10474 i386_thiscall_push_dummy_call.
10475 (i386_thiscall_push_dummy_call): New function.
10476 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10477 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10478 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10479
ffc2844e
SM
104802020-04-29 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbarch.sh (do_read): Add shellcheck disable directive for
10483 warning SC2162.
10484
1207375d
SM
104852020-04-29 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10488 "referenced but not assigned" warning.
10489
9fdb2916
SM
104902020-04-29 Simon Marchi <simon.marchi@efficios.com>
10491
10492 * gdbarch.sh: Remove code that sets fallbackdefault.
10493
759cea5e
SM
104942020-04-29 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * gdbarch.sh: Use shell operators && and || instead of
10497 -a and -o.
10498
cb02ab24
SM
104992020-04-29 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * gdbarch.sh: Use $(...) instead of `...`.
10502
a6fc5ffc
SM
105032020-04-29 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * gdbarch.sh: Use double quotes around variables.
10506
8d113d13
SM
105072020-04-29 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbarch.sh: Use %s with printf, instead of variables in the
10510 format string.
10511
ed6acedd
TT
105122020-04-29 Tom Tromey <tromey@adacore.com>
10513
10514 PR ada/25875:
10515 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10516 type fields here.
10517 (read_enumeration_type): Call
10518 update_enumeration_type_from_children later. Update comments.
10519 (process_enumeration_scope): Don't create type fields.
10520
b68b1b58
KR
105212020-04-29 Kamil Rytarowski <n54@gmx.com>
10522
10523 * nbsd-tdep.c: Include "xml-syscall.h".
10524 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10525
f94b2e03
KR
105262020-04-29 Kamil Rytarowski <n54@gmx.com>
10527
10528 * nbsd-nat.c: Include "sys/wait.h".
10529 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10530 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10531 (nbsd_nat_target::remove_exec_catchpoint)
10532 (nbsd_nat_target::set_syscall_catchpoint): Add.
10533 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10534 (nbsd_nat_target::insert_exec_catchpoint)
10535 (nbsd_nat_target::remove_exec_catchpoint)
10536 (nbsd_nat_target::set_syscall_catchpoint): Add.
10537 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10538 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10539 `nbsd_get_syscall_number'.
10540
fc49bc72
TT
105412020-04-29 Tom Tromey <tom@tromey.com>
10542
10543 * stack.c (print_block_frame_labels): Remove.
10544
d642b692
HD
105452020-04-29 Hannes Domani <ssbssa@yahoo.de>
10546
10547 PR gdb/17320
10548 * ada-valprint.c (val_print_packed_array_elements): Move array
10549 end bracket to new line.
10550 (ada_val_print_string): Remove extra spaces before first array
10551 element.
10552 * c-valprint.c (c_value_print_array): Likewise.
10553 * m2-valprint.c (m2_print_array_contents): Likewise.
10554 (m2_value_print_inner): Likewise.
10555 * p-valprint.c (pascal_value_print_inner): Likewise.
10556 * valprint.c (generic_val_print_array): Likewise.
10557 (value_print_array_elements): Move first array element and array
10558 end bracket to new line.
10559
ea90f227
TV
105602020-04-29 Tom de Vries <tdevries@suse.de>
10561
10562 PR symtab/25889
10563 * linespec.c (find_method): Fix ix calculation.
10564
4498ef4f
KR
105652020-04-28 Kamil Rytarowski <n54@gmx.com>
10566
10567 * syscalls/update-netbsd.sh: New file.
10568 * syscalls/netbsd.xml: Regenerate.
10569 * data-directory/Makefile.in: Register `netbsd.xml' in
10570 `SYSCALLS_FILES'.
10571
a55e30b5
SM
105722020-04-28 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * syscalls/update-freebsd.sh: Add double quotes.
10575
2b2fbab8
TT
105762020-04-28 Tom Tromey <tom@tromey.com>
10577
10578 * NEWS: Update.
10579 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10580 (cmdpy_init): Allow class_tui.
10581
a65189c9
TV
105822020-04-28 Mark Williams <mark@myosotissp.com>
10583
10584 PR gdb/24480
10585 * dwarf2read.c: Add missing assingments to list_in_scope when
10586 start_symtab was already called.
10587
1b95cdb7
SM
105882020-04-28 Simon Marchi <simon.marchi@efficios.com>
10589
10590 PR gdb/25881
10591 * dwarf2/read.c (offset_map_type): Use
10592 gdb:hash_enum<sect_offset> as hash function.
10593
15cd93d0
TV
105942020-04-28 Tom de Vries <tdevries@suse.de>
10595
10596 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10597 with DW_AT_signature.
10598
1eb39914
SM
105992020-04-27 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * configure.ac: Remove check for fs_base/gs_base in
10602 user_regs_struct.
10603 * configure: Re-generate.
10604 * config.in: Re-generate.
10605 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10606 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10607 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10608
991a3e2e
LM
106092020-04-27 Luis Machado <luis.machado@linaro.org>
10610
10611 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10612 problematic inline frame unwinding situation.
10613 * frame.c (frame_id_computed_p): New function.
10614 * frame.h (frame_id_computed_p): New prototype.
10615
361ba0e8
TT
106162020-04-26 Tom Tromey <tom@tromey.com>
10617
10618 * command.h (enum command_class) <class_pseudo>: Remove.
10619
bc3609fd
PW
106202020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10621
10622 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10623 and whitespace.
10624
b9771db7
KR
106252020-04-25 Kamil Rytarowski <n54@gmx.com>
10626
ec16513e
SM
10627 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10628 `PT_GET_PROCESS_STATE' block.
b9771db7 10629
7151c1af
TT
106302020-04-24 Tom Tromey <tom@tromey.com>
10631
10632 * symtab.h (symbol_get_demangled_name): Don't declare.
10633 * symtab.c (symbol_get_demangled_name): Remove.
10634 (general_symbol_info::natural_name)
10635 (general_symbol_info::demangled_name): Update.
10636
906bb4c5
TT
106372020-04-24 Tom Tromey <tom@tromey.com>
10638
10639 PR rust/25025:
10640 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10641
bcfe6157
TT
106422020-04-24 Tom Tromey <tom@tromey.com>
10643
10644 PR symtab/12707:
10645 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10646 exists.
10647 (new_symbol): Likewise.
10648 * compile/compile-object-load.c (get_out_value_type): Use
10649 symbol_matches_search_name.
10650
f049a313
TT
106512020-04-24 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2/read.c (add_partial_symbol): Do not call
10654 compute_and_set_names.
10655
76e288d1
TT
106562020-04-24 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10659 overload.
10660
2467f4f6
TT
106612020-04-24 Tom Tromey <tom@tromey.com>
10662
10663 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10664 (add_psymbol_to_list): New overload. Make old overload call new
10665 one.
10666 * psympriv.h (add_psymbol_to_list): New overload.
10667
e61108c9
TT
106682020-04-24 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/read.c (partial_die_info::read) <case
10671 DW_AT_linkage_name>: Use value_as_string.
10672 (dwarf2_string_attr): Use value_as_string.
10673 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10674 method.
10675 * dwarf2/attribute.c (attribute::value_as_string): New method.
10676
8c87a452
TT
106772020-04-24 Tom Tromey <tom@tromey.com>
10678
10679 * symtab.c (general_symbol_info::natural_name)
10680 (general_symbol_info::demangled_name): Check for language_rust.
10681
787de330
TT
106822020-04-24 Tom Tromey <tom@tromey.com>
10683
10684 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10685 (dwarf2_physname): ... from here.
10686 (partial_die_info::read): Add Rust "{" hack.
10687
ff985671
TT
106882020-04-24 Tom Tromey <tom@tromey.com>
10689
10690 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10691 method.
10692 (symbol_set_demangled_name): Don't declare.
10693 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10694 symbol_set_demangled_name.
10695 (general_symbol_info::set_language)
10696 (general_symbol_info::compute_and_set_names): Update.
10697 * minsyms.c (minimal_symbol_reader::install): Update.
10698 * dwarf2/read.c (new_symbol): Update.
10699
1acda803
TT
107002020-04-24 Tom Tromey <tromey@adacore.com>
10701
10702 PR python/23662:
10703 * python/py-type.c (convert_field): Handle
10704 FIELD_LOC_KIND_DWARF_BLOCK.
10705 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10706 (typy_get_dynamic): Nw function.
10707 (type_object_getset): Add "dynamic".
10708 * NEWS: Add entry.
10709
d656f129
TT
107102020-04-24 Tom Tromey <tromey@adacore.com>
10711
10712 * ada-typeprint.c (print_choices, print_variant_part)
10713 (print_record_field_types_dynamic): New functions.
10714 (print_record_field_types): Use print_record_field_types_dynamic.
10715
7d79de9a
TT
107162020-04-24 Tom Tromey <tromey@adacore.com>
10717
10718 * dwarf2/read.c (handle_data_member_location): New overload.
10719 (dwarf2_add_field): Use it.
10720 (decode_locdesc): Add "computed" parameter. Update comment.
10721 * gdbtypes.c (is_dynamic_type_internal): Also look for
10722 FIELD_LOC_KIND_DWARF_BLOCK.
10723 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10724 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10725 virtual base classes.
10726 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10727 FIELD_LOC_KIND_DWARF_BLOCK.
10728
f8e89861
TT
107292020-04-24 Tom Tromey <tromey@adacore.com>
10730
10731 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10732 * gdbtypes.c (is_dynamic_type_internal): Check
10733 TYPE_HAS_DYNAMIC_LENGTH.
10734 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10735 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10736 New macros.
10737 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10738 constant.
10739
9c6a1327
TT
107402020-04-24 Tom Tromey <tromey@adacore.com>
10741
10742 * dwarf2/read.c (struct variant_field): Rewrite.
10743 (struct variant_part_builder): New.
10744 (struct nextfield): Remove "variant" field. Add "offset".
10745 (struct field_info): Add "current_variant_part" and
10746 "variant_parts".
10747 (alloc_discriminant_info): Remove.
10748 (alloc_rust_variant): New function.
10749 (quirk_rust_enum): Update.
10750 (dwarf2_add_field): Set "offset" member. Don't handle
10751 DW_TAG_variant_part.
10752 (offset_map_type): New typedef.
10753 (convert_variant_range, create_one_variant)
10754 (create_one_variant_part, create_variant_parts)
10755 (add_variant_property): New functions.
10756 (dwarf2_attach_fields_to_type): Call add_variant_property.
10757 (read_structure_type): Don't handle DW_TAG_variant_part.
10758 (handle_variant_part, handle_variant): New functions.
10759 (handle_struct_member_die): Use them.
10760 (process_structure_scope): Don't handle variant parts.
10761 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10762 (struct discriminant_info): Remove.
10763 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10764 (struct main_type) <flag_discriminated_union>: Remove.
10765 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10766 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10767 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10768 Update.
10769 * valops.c (value_union_variant): Remove.
10770 * value.h (value_union_variant): Don't declare.
10771
b249d2c2
TT
107722020-04-24 Tom Tromey <tromey@adacore.com>
10773
10774 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10775 (ada_value_primitive_packed_val): Update.
10776 * ada-valprint.c (ada_value_print_1): Update.
10777 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10778 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10779 just an address. Use evaluate_for_locexpr_baton.
10780 (dwarf2_evaluate_property): Update.
10781 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10782 array_view.
10783 * findvar.c (default_read_var_value): Update.
10784 * gdbtypes.c (compute_variant_fields_inner)
10785 (resolve_dynamic_type_internal): Update.
10786 (resolve_dynamic_type): Change type of valaddr parameter.
10787 * gdbtypes.h (resolve_dynamic_type): Update.
10788 * valarith.c (value_subscripted_rvalue): Update.
10789 * value.c (value_from_contents_and_address): Update.
10790
61122aa9
TT
107912020-04-24 Tom Tromey <tromey@adacore.com>
10792
10793 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10794 "push_initial_value" parameter.
10795 (dwarf2_evaluate_property): Likewise.
10796 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10797
ef83a141
TT
107982020-04-24 Tom Tromey <tromey@adacore.com>
10799
10800 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10801 (variant::matches, compute_variant_fields_recurse)
10802 (compute_variant_fields_inner, compute_variant_fields): New
10803 functions.
10804 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10805 Use resolved_type after type is made.
10806 (operator==): Add new cases.
10807 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10808 (struct discriminant_range, struct variant, struct variant_part):
10809 New.
10810 (union dynamic_prop_data) <variant_parts, original_type>: New
10811 members.
10812 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10813 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10814 constants.
10815 * value.c (unpack_bits_as_long): Now public.
10816 * value.h (unpack_bits_as_long): Declare.
10817
675127ec
TT
108182020-04-24 Tom Tromey <tromey@adacore.com>
10819
10820 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10821 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10822
9852ceef
HD
108232020-04-24 Hannes Domani <ssbssa@yahoo.de>
10824
10825 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10826
7632c6ce
KR
108272020-04-24 Kamil Rytarowski <n54@gmx.com>
10828
10829 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10830 (remove_fork_catchpoint, post_startup_inferior)
10831 (post_attach): Move...
10832 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10833 (remove_fork_catchpoint, post_startup_inferior)
10834 (post_attach): ...here.
10835 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10836 (remove_fork_catchpoint, post_startup_inferior)
10837 (post_attach): Move...
10838 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10839 (remove_fork_catchpoint, post_startup_inferior)
10840 (post_attach): ...here.
10841
7be2bb4f
TT
108422020-04-24 Tom Tromey <tromey@adacore.com>
10843
10844 * nat/windows-nat.h (struct windows_thread_info)
10845 <pc_adjusted>: New member.
10846 * windows-nat.c (windows_fetch_one_register): Check
10847 pc_adjusted.
10848 (windows_nat_target::get_windows_debug_event)
10849 (windows_nat_target::wait): Set pc_adjusted.
10850
f80cb3b4
TV
108512020-04-24 Tom de Vries <tdevries@suse.de>
10852
10853 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10854 Run gdb-add-index inside temp dir.
10855
29514b87
TT
108562020-04-23 Tom Tromey <tromey@adacore.com>
10857
10858 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10859 in loop.
10860
5939967b
LM
108612020-04-23 Luis Machado <luis.machado@linaro.org>
10862
10863 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10864 get_frame_register instead of gdbarch_unwind_pc.
10865
70bc38f5
TV
108662020-04-23 Tom de Vries <tdevries@suse.de>
10867
10868 * symtab.c (lookup_global_symbol): Prefer def over decl.
10869
de82891c
TV
108702020-04-23 Tom de Vries <tdevries@suse.de>
10871
10872 PR symtab/25807
10873 * block.c (best_symbol, better_symbol): Promote to external.
10874 * block.h (best_symbol, better_symbol): Declare.
10875 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10876 decl.
10877
ecc6c606
TT
108782020-04-23 Tom Tromey <tromey@adacore.com>
10879
10880 PR ada/25837:
10881 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10882 "const char *", not a "const std::string &".
10883 <name_and_matcher::operator==>: Update.
10884 * unittests/lookup_name_info-selftests.c: Change type of
10885 "result".
10886
740480b8
TT
108872020-04-23 Tom Tromey <tom@tromey.com>
10888
10889 * inferior.h (iterate_over_inferiors): Don't declare.
10890 * inferior.c (iterate_over_inferiors): Remove.
10891 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10892 Remove.
10893 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10894 use iterate_over_inferiors.
10895 (darwin_resume_inferior_it)
10896 (struct resume_inferior_threads_param)
10897 (darwin_resume_inferior_threads_it): Remove.
10898 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10899
ae3ab1f0
TV
109002020-04-23 Tom de Vries <tdevries@suse.de>
10901
10902 * blockframe.c (find_pc_partial_function): Use
10903 find_pc_sect_compunit_symtab rather than
10904 objfile->sf->qf->find_pc_sect_compunit_symtab.
10905
317d2668
TV
109062020-04-22 Tom de Vries <tdevries@suse.de>
10907
10908 PR symtab/25764
10909 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10910 in psymtabs.
10911
eea9e357
TV
109122020-04-22 Tom de Vries <tdevries@suse.de>
10913
10914 PR symtab/25801
10915 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10916 symtabs.
10917
3d5afab3
TV
109182020-04-22 Tom de Vries <tdevries@suse.de>
10919
10920 PR symtab/25700
10921 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10922 CU if already created.
10923
d43b7a2d
TBA
109242020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10925
10926 * infrun.c (displaced_step_fixup): Switch to the event_thread
10927 before calling displaced_step_restore, not after.
10928
d89edf9b
MM
109292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10930
10931 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10932 its inferior is not recorded by us.
10933 (record_btrace_target_open): Replace call to
10934 all_non_exited_threads () with call to current_inferior
10935 ()->non_exited_threads ().
10936 (record_btrace_target::stop_recording): Likewise.
10937 (record_btrace_target::close): Likewise.
10938 (record_btrace_target::wait): Likewise.
10939 (record_btrace_target::record_stop_replaying): Likewise.
10940
5897fd49
MM
109412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10942
10943 * btrace.c (btrace_enable): Throw an error on double enables and
10944 when enabling recording fails.
10945 (btrace_disable): Throw an error if the thread is not recorded.
10946
1a476b6d
MM
109472020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10948
10949 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10950 request if we do not have a thread_info.
10951
4778a5f8
TV
109522020-04-21 Tom de Vries <tdevries@suse.de>
10953
10954 PR gdb/25471
10955 * thread.c
10956 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10957 exception in get_frame_id.
10958
0fa7617d
TT
109592020-04-20 Tom Tromey <tromey@adacore.com>
10960
10961 * python/python.c (struct gdbpy_event): Mark move constructor as
10962 noexcept.
10963 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10964 constructor as noexcept.
10965 * completer.h (struct completion_result): Mark move constructor as
10966 noexcept.
10967 * completer.c (completion_result::completion_result): Use
10968 initialization style. Don't call reset_match_list.
10969
ad23bda0
MS
109702020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10971
10972 * MAINTAINERS (Write After Approval): Add myself.
10973
45e1f031
TT
109742020-04-18 Tom Tromey <tom@tromey.com>
10975
10976 * windows-tdep.c (init_w32_command_list)
10977 (w32_prefix_command_valid): Restore.
10978 (_initialize_windows_tdep): Call init_w32_command_list.
10979
08feed99
TT
109802020-04-18 Tom Tromey <tom@tromey.com>
10981
10982 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10983 * value.c (value_fn_field): Update.
10984 * valops.c (find_function_in_inferior)
10985 (value_allocate_space_in_inferior): Update.
10986 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10987 Update.
10988 * tui/tui-source.c (tui_source_window::set_contents): Update.
10989 * symtab.c (lookup_global_or_static_symbol)
10990 (find_function_start_sal_1, skip_prologue_sal)
10991 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10992 * symmisc.c (dump_msymbols, dump_symtab_1)
10993 (maintenance_print_one_line_table): Update.
10994 * symfile.c (init_entry_point_info, section_is_mapped)
10995 (list_overlays_command, simple_read_overlay_table)
10996 (simple_overlay_update_1): Update.
10997 * stap-probe.c (handle_stap_probe): Update.
10998 * stabsread.c (dbx_init_float_type, define_symbol)
10999 (read_one_struct_field, read_enum_type, read_range_type): Update.
11000 * source.c (info_line_command): Update.
11001 * python/python.c (gdbpy_source_objfile_script)
11002 (gdbpy_execute_objfile_script): Update.
11003 * python/py-type.c (save_objfile_types): Update.
11004 * python/py-objfile.c (py_free_objfile): Update.
11005 * python/py-inferior.c (python_new_objfile): Update.
11006 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11007 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11008 (maintenance_check_psymtabs): Update.
11009 * printcmd.c (info_address_command): Update.
11010 * objfiles.h (struct objfile) <arch>: New method, from
11011 get_objfile_arch.
11012 (get_objfile_arch): Don't declare.
11013 * objfiles.c (get_objfile_arch): Remove.
11014 (filter_overlapping_sections): Update.
11015 * minsyms.c (msymbol_is_function): Update.
11016 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11017 (output_nondebug_symbol): Update.
11018 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11019 (mdebug_expand_psymtab): Update.
11020 * machoread.c (macho_add_oso_symfile): Update.
11021 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11022 Update.
11023 * linux-fork.c (checkpoint_command): Update.
11024 * linespec.c (convert_linespec_to_sals): Update.
11025 * jit.c (finalize_symtab): Update.
11026 * infrun.c (insert_exception_resume_from_probe): Update.
11027 * ia64-tdep.c (ia64_find_unwind_table): Update.
11028 * hppa-tdep.c (internalize_unwinds): Update.
11029 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11030 Update.
11031 * gcore.c (call_target_sbrk): Update.
11032 * elfread.c (record_minimal_symbol, elf_symtab_read)
11033 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11034 (elf_gnu_ifunc_resolve_by_got): Update.
11035 * dwarf2/read.c (create_addrmap_from_index)
11036 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11037 (read_debug_names_from_section)
11038 (process_psymtab_comp_unit_reader, add_partial_symbol)
11039 (add_partial_subprogram, process_full_comp_unit)
11040 (read_file_scope, read_func_scope, read_lexical_block_scope)
11041 (read_call_site_scope, dwarf2_ranges_read)
11042 (dwarf2_record_block_ranges, dwarf2_add_field)
11043 (mark_common_block_symbol_computed, read_tag_pointer_type)
11044 (read_tag_string_type, dwarf2_init_float_type)
11045 (dwarf2_init_complex_target_type, read_base_type)
11046 (partial_die_info::read, partial_die_info::read)
11047 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11048 (dwarf2_fetch_die_loc_sect_off): Update.
11049 * dwarf2/loc.c (dwarf2_find_location_expression)
11050 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11051 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11052 (dwarf2_loc_desc_get_symbol_read_needs)
11053 (locexpr_describe_location_piece, locexpr_describe_location_1)
11054 (loclist_describe_location): Update.
11055 * dwarf2/index-write.c (write_debug_names): Update.
11056 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11057 * dtrace-probe.c (dtrace_process_dof): Update.
11058 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11059 (process_one_symbol): Update.
11060 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11061 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11062 (coff_read_enum_type): Update.
11063 * cli/cli-cmds.c (edit_command, list_command): Update.
11064 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11065 * breakpoint.c (create_overlay_event_breakpoint)
11066 (create_longjmp_master_breakpoint)
11067 (create_std_terminate_master_breakpoint)
11068 (create_exception_master_breakpoint, get_sal_arch): Update.
11069 * block.c (block_gdbarch): Update.
11070 * annotate.c (annotate_source_line): Update.
11071
0743fc83
TT
110722020-04-17 Tom Tromey <tromey@adacore.com>
11073
11074 * auto-load.c (show_auto_load_cmd): Remove.
11075 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11076 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11077 (maintenance_print_arc_command): Remove.
11078 * tui/tui-win.c (tui_command): Remove.
11079 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11080 * tui/tui-layout.c (tui_layout_command): Remove.
11081 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11082 * python/python.c (user_set_python, user_show_python): Remove.
11083 (_initialize_python): Use add_basic_prefix_cmd,
11084 add_show_prefix_cmd.
11085 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11086 (install_gdb_commands): Use add_basic_prefix_cmd,
11087 add_show_prefix_cmd.
11088 (info_guile_command): Remove.
11089 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11090 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11093 Remove do_set and do_show parameters.
11094 * cli/cli-style.c (set_style, show_style): Remove.
11095 (_initialize_cli_style): Use add_basic_prefix_cmd,
11096 add_show_prefix_cmd.
11097 (cli_style_option::add_setshow_commands): Remove do_set and
11098 do_show parameters.
11099 (cli_style_option::add_setshow_commands): Use
11100 add_basic_prefix_cmd, add_show_prefix_cmd.
11101 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11102 (set_style_name): Remove.
11103 * cli/cli-dump.c (dump_command, append_command): Remove.
11104 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11105 (tekhex_dump_command, binary_dump_command)
11106 (binary_append_command): Remove.
11107 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11108 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11109 (init_w32_command_list): Remove; move into ...
11110 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11111 * valprint.c (set_print, show_print, set_print_raw)
11112 (show_print_raw): Remove.
11113 (_initialize_valprint): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 * typeprint.c (set_print_type, show_print_type): Remove.
11116 (_initialize_typeprint): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * record.c (set_record_command, show_record_command): Remove.
11119 (_initialize_record): Use add_basic_prefix_cmd,
11120 add_show_prefix_cmd.
11121 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11122 add_show_prefix_cmd.
11123 (info_command, show_command, set_debug, show_debug): Remove.
11124 * top.h (set_history, show_history): Don't declare.
11125 * top.c (set_history, show_history): Remove.
11126 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11127 (unset_tdesc_cmd): Remove.
11128 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11129 add_show_prefix_cmd.
11130 * symtab.c (info_module_command): Remove.
11131 (_initialize_symtab): Use add_basic_prefix_cmd.
11132 * symfile.c (overlay_command): Remove.
11133 (_initialize_symfile): Use add_basic_prefix_cmd.
11134 * sparc64-tdep.c (info_adi_command): Remove.
11135 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11136 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11137 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11138 add_show_prefix_cmd.
11139 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11140 (_initialize_serial): Use add_basic_prefix_cmd,
11141 add_show_prefix_cmd.
11142 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11143 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11144 add_show_prefix_cmd.
11145 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11146 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11147 add_show_prefix_cmd.
11148 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11149 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11150 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11151 add_show_prefix_cmd.
11152 * remote.c (remote_command, set_remote_cmd): Remove.
11153 (_initialize_remote): Use add_basic_prefix_cmd.
11154 * record-full.c (set_record_full_command)
11155 (show_record_full_command): Remove.
11156 (_initialize_record_full): Use add_basic_prefix_cmd,
11157 add_show_prefix_cmd.
11158 * record-btrace.c (cmd_set_record_btrace)
11159 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11160 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11161 (cmd_show_record_btrace_pt): Remove.
11162 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11163 add_show_prefix_cmd.
11164 * ravenscar-thread.c (set_ravenscar_command)
11165 (show_ravenscar_command): Remove.
11166 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11167 add_show_prefix_cmd.
11168 * mips-tdep.c (show_mips_command, set_mips_command)
11169 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11170 add_show_prefix_cmd.
11171 * maint.c (maintenance_command, maintenance_info_command)
11172 (maintenance_check_command, maintenance_print_command)
11173 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11174 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11175 add_show_prefix_cmd.
11176 (show_per_command_cmd): Remove.
11177 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11178 Remove.
11179 (maintenance_show_test_settings_cmd): Remove.
11180 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11181 add_show_prefix_cmd.
11182 * maint-test-options.c (maintenance_test_options_command):
11183 Remove.
11184 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11185 * macrocmd.c (macro_command): Remove
11186 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11187 * language.c (set_check, show_check): Remove.
11188 (_initialize_language): Use add_basic_prefix_cmd,
11189 add_show_prefix_cmd.
11190 * infcmd.c (unset_command): Remove.
11191 (_initialize_infcmd): Use add_basic_prefix_cmd.
11192 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11193 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11194 add_show_prefix_cmd.
11195 * go32-nat.c (go32_info_dos_command): Remove.
11196 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11197 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11198 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11199 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11200 (_initialize_frame): Use add_basic_prefix_cmd,
11201 add_show_prefix_cmd.
11202 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11203 (_initialize_dcache): Use add_basic_prefix_cmd,
11204 add_show_prefix_cmd.
11205 * cp-support.c (maint_cplus_command): Remove.
11206 (_initialize_cp_support): Use add_basic_prefix_cmd.
11207 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11208 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11209 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11210 add_basic_prefix_cmd, add_show_prefix_cmd.
11211 * breakpoint.c (save_command): Remove.
11212 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11213 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11214 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11215 add_show_prefix_cmd.
11216 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11217 (set_ada_command, show_ada_command): Remove.
11218 (_initialize_ada_language): Use add_basic_prefix_cmd,
11219 add_show_prefix_cmd.
11220 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11221
3557f442
KR
112222020-04-16 Kamil Rytarowski <n54@gmx.com>
11223
11224 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11225 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11226
16197208
SM
112272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11228
11229 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11230 warning messages.
11231
00ac85d3
SM
112322020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11233
11234 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11235 import table is not at beginning of .idata section.
11236
381ce63f
PA
112372020-04-16 Pedro Alves <palves@redhat.com>
11238
11239 * inferior.c (delete_inferior): Use delete operator directly
11240 instead of delete_program_space.
11241 * progspace.c (add_program_space): New, factored out from
11242 program_space::program_space.
11243 (remove_program_space): New, factored out from
11244 delete_program_space.
11245 (program_space::program_space): Remove intro comment. Rewrite.
11246 (program_space::~program_space): Remove intro comment. Call
11247 remove_program_space.
11248 (delete_program_space): Delete.
11249 * progspace.h (program_space::program_space): Make explicit. Move
11250 intro comment here, adjusted.
11251 (program_space::~program_space): Move intro comment here,
11252 adjusted.
11253 (delete_program_space): Remove.
11254
a010605f
TT
112552020-04-16 Tom Tromey <tromey@adacore.com>
11256
11257 * windows-nat.c (windows_nat::handle_access_violation): New
11258 function.
11259 * nat/windows-nat.h (handle_access_violation): Declare.
11260 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11261 windows-nat.c. Call handle_access_violation.
11262
efba5c23
TV
112632020-04-16 Tom de Vries <tdevries@suse.de>
11264
11265 PR symtab/25791
11266 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11267 CUs without psymtab.
11268
97ed802d
KB
112692020-04-16 Kevin Buettner <kevinb@redhat.com>
11270
11271 * python/python.c (do_start_initialization): Don't call
11272 PyEval_InitThreads for Python 3.9 and beyond.
11273
c7d64809
KR
112742020-04-15 Kamil Rytarowski <n54@gmx.com>
11275
11276 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11277 thread functions.
11278 (obsd_nat_target::wait): Likewise.
11279
ce127a96
TT
112802020-04-15 Tom Tromey <tromey@adacore.com>
11281
11282 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11283 (DEBUG_EXCEPT): Use debug_printf.
11284
99f1bc6a
AB
112852020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * completer.c (class completion_tracker::completion_hash_entry)
11288 <hash_name>: New member function.
11289 (completion_tracker::discard_completions): New callback to hash a
11290 completion_hash_entry, pass this to htab_create_alloc.
11291
a0e9b532
JT
112922016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11293
11294 * windows-nat.c (windows_make_so): Warn rather than stopping with
11295 an error if realpath() fails.
11296
06ca5dd4
KR
112972020-04-14 Kamil Rytarowski <n54@gmx.com>
11298
11299 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11300 (nbsd_nat_target::info_proc): Add do_status.
11301
194d088f
TV
113022020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11303 Tom de Vries <tdevries@suse.de>
11304
11305 PR symtab/25718
11306 * psympriv.h (struct partial_symtab::read_symtab)
11307 (struct partial_symtab::expand_psymtab)
11308 (struct partial_symtab::read_dependencies): Update comments.
11309 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11310 read_symtab for includer.
11311 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11312 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11313 (struct dwarf2_include_psymtab::m_readin): Remove.
11314 (struct dwarf2_include_psymtab::includer): New member function.
11315 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11316
c1a66c06
TV
113172020-04-14 Tom de Vries <tdevries@suse.de>
11318
11319 PR symtab/25720
11320 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11321 with NULL symbol_matcher and lookup_name.
11322 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11323 and lookup_name.
11324 * dwarf2/read.c (dw2_expand_symtabs_matching)
11325 (dw2_debug_names_expand_symtabs_matching): Same.
11326 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11327 Make lookup_name a pointer. Update comment.
11328 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11329 lookup_name being a pointer.
11330 * symfile.c (expand_symtabs_matching): Same.
11331 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11332 * linespec.c (iterate_over_all_matching_symtabs): Same.
11333
400b5eca
TT
113342020-04-13 Tom Tromey <tom@tromey.com>
11335
11336 * run-on-main-thread.c: Update include.
11337 * unittests/main-thread-selftests.c: Update include.
11338 * tui/tui-win.c: Update include.
11339 * tui/tui-io.c: Update include.
11340 * tui/tui-interp.c: Update include.
11341 * tui/tui-hooks.c: Update include.
11342 * top.h: Update include.
11343 * top.c: Update include.
11344 * ser-base.c: Update include.
11345 * remote.c: Update include.
11346 * remote-notif.c: Update include.
11347 * remote-fileio.c: Update include.
11348 * record-full.c: Update include.
11349 * record-btrace.c: Update include.
11350 * python/python.c: Update include.
11351 * posix-hdep.c: Update include.
11352 * mingw-hdep.c: Update include.
11353 * mi/mi-main.c: Update include.
11354 * mi/mi-interp.c: Update include.
11355 * main.c: Update include.
11356 * linux-nat.c: Update include.
11357 * interps.c: Update include.
11358 * infrun.c: Update include.
11359 * inf-loop.c: Update include.
11360 * event-top.c: Update include.
11361 * event-loop.c: Move to ../gdbsupport/.
11362 * event-loop.h: Move to ../gdbsupport/.
11363 * async-event.h: Update include.
11364 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11365
93b54c8e
TT
113662020-04-13 Tom Tromey <tom@tromey.com>
11367
11368 * tui/tui-win.c: Include async-event.h.
11369 * remote.c: Include async-event.h.
11370 * remote-notif.c: Include async-event.h.
11371 * record-full.c: Include async-event.h.
11372 * record-btrace.c: Include async-event.h.
11373 * infrun.c: Include async-event.h.
11374 * event-top.c: Include async-event.h.
11375 * event-loop.h: Move some declarations to async-event.h.
11376 * event-loop.c: Don't include ser-event.h or top.h. Move some
11377 code to async-event.c.
11378 * async-event.h: New file.
11379 * async-event.c: New file.
11380 * Makefile.in (COMMON_SFILES): Add async-event.c.
11381 (HFILES_NO_SRCDIR): Add async-event.h.
11382
c1cd3163
TT
113832020-04-13 Tom Tromey <tom@tromey.com>
11384
11385 * utils.c (flush_streams): New function.
11386 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11387
29f2bf4f
TT
113882020-04-13 Tom Tromey <tom@tromey.com>
11389
11390 * event-loop.c (handle_file_event): Use warning, not
11391 printf_unfiltered.
11392
98029d02
TT
113932020-04-13 Tom Tromey <tom@tromey.com>
11394
11395 * event-loop.c: Include <chrono>.
11396
06cc9596
TT
113972020-04-13 Tom Tromey <tom@tromey.com>
11398
11399 * gdb_select.h: Move to ../gdbsupport/.
11400 * event-loop.c: Update include path.
11401 * top.c: Update include path.
11402 * ser-base.c: Update include path.
11403 * ui-file.c: Update include path.
11404 * ser-tcp.c: Update include path.
11405 * guile/scm-ports.c: Update include path.
11406 * posix-hdep.c: Update include path.
11407 * ser-unix.c: Update include path.
11408 * gdb_usleep.c: Update include path.
11409 * mingw-hdep.c: Update include path.
11410 * inflow.c: Update include path.
11411 * infrun.c: Update include path.
11412 * event-top.c: Update include path.
11413
8ae8e197
TT
114142020-04-13 Tom Tromey <tom@tromey.com>
11415
11416 * configure: Rebuild.
11417 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11418
58cf28e8
TT
114192020-04-13 Tom Tromey <tom@tromey.com>
11420
11421 * event-loop.h (start_event_loop): Don't declare.
11422 * event-loop.c (start_event_loop): Move...
11423 * main.c (start_event_loop): ...here. Now static.
11424
b7f999ae
SDJ
114252020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11426
11427 * MAINTAINERS: Update my email address.
11428
1085dfd4
KR
114292020-04-12 Kamil Rytarowski <n54@gmx.com>
11430
11431 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11432 IP_ALL.
11433
49d1d1f5
KR
114342020-04-12 Kamil Rytarowski <n54@gmx.com>
11435
11436 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11437 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11438
b4848d2a
KR
114392020-04-12 Kamil Rytarowski <n54@gmx.com>
11440
11441 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11442 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11443
51c133d5
KR
114442020-04-12 Kamil Rytarowski <n54@gmx.com>
11445
11446 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11447
54b8cbd0
KR
114482020-04-11 Kamil Rytarowski <n54@gmx.com>
11449
11450 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11451 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11452 (nbsd_nat_target::info_proc): New functions.
11453 * nbsd-nat.c (kinfo_get_vmmap): New function.
11454 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11455 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11456 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11457 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11458 functions.
11459 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11460 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11461 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11462 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11463 (KINFO_VME_FLAG_GROWS_DOWN): New.
11464
cf83625d
AS
114652020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11466
11467 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11468 bit shift.
11469
0c4311ab
TT
114702020-04-10 Tom Tromey <tromey@adacore.com>
11471
11472 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11473
3e65b3e9
TT
114742020-04-10 Tom Tromey <tromey@adacore.com>
11475
11476 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11477 separate debug files.
11478
13302e95
HD
114792020-04-10 Hannes Domani <ssbssa@yahoo.de>
11480
11481 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11482 Move to...
11483 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11484 ... here.
11485 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11486 Check for STATUS_WX86_BREAKPOINT.
11487 (windows_nat_target::wait): Same.
11488
bdfc1e8a
TV
114892020-04-10 Tom de Vries <tdevries@suse.de>
11490
11491 PR cli/25808
11492 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11493
f4460aec
SM
114942020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11495
11496 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11497 (Write After Approval): Remove Tom de Vries.
11498
a25198bb
BE
114992020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11500
11501 revert partially:
11502 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11503
aac66a4c
SM
11504 * buildsym.c (record_line): Fix undefined behavior and preserve
11505 lines at eof.
a25198bb 11506
206c98a6
KR
115072020-04-09 Kamil Rytarowski <n54@gmx.com>
11508
11509 * auxv.h (svr4_auxv_parse): New.
11510 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11511 and generic_auxv_parse.
11512 (svr4_auxv_parse): Add.
11513 * obsd-tdep.c: Include "auxv.h".
11514 (obsd_auxv_parse): Remove.
11515 (obsd_init_abi): Remove comment.
11516 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11517 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11518 * nbsd-tdep.c: Include "auxv.h".
11519 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11520
71fbdbaf
TT
115212020-04-08 Tom Tromey <tromey@adacore.com>
11522
11523 * nat/windows-nat.h (last_wait_event): Don't declare.
11524 (wait_for_debug_event): Update comment.
11525 * nat/windows-nat.c (last_wait_event): Now static.
11526
2c1d95e8
TT
115272020-04-08 Tom Tromey <tromey@adacore.com>
11528
11529 * windows-nat.c (wait_for_debug_event): Move to
11530 nat/windows-nat.c.
11531 * nat/windows-nat.h (wait_for_debug_event): Declare.
11532 * nat/windows-nat.c (wait_for_debug_event): Move from
11533 windows-nat.c. No longer static.
11534
d2977bc4
TT
115352020-04-08 Tom Tromey <tromey@adacore.com>
11536
11537 * windows-nat.c (get_windows_debug_event): Use
11538 fetch_pending_stop.
11539 * nat/windows-nat.h (fetch_pending_stop): Declare.
11540 * nat/windows-nat.c (fetch_pending_stop): New function.
11541
e758e19c
TT
115422020-04-08 Tom Tromey <tromey@adacore.com>
11543
11544 * windows-nat.c (windows_continue): Use matching_pending_stop and
11545 continue_last_debug_event.
11546 * nat/windows-nat.h (matching_pending_stop)
11547 (continue_last_debug_event): Declare.
11548 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11549 (matching_pending_stop, continue_last_debug_event): New
11550 functions.
11551
8d30e395
TT
115522020-04-08 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11555 (handle_exception_result): Move to nat/windows-nat.h.
11556 (DEBUG_EXCEPTION_SIMPLE): Remove.
11557 (windows_nat::handle_ms_vc_exception): New function.
11558 (handle_exception): Move to nat/windows-nat.c.
11559 (get_windows_debug_event): Update.
11560 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11561 nat/windows-nat.c.
11562 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11563 (handle_exception_result): Move from windows-nat.c.
11564 (handle_exception): Declare.
11565 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11566 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11567 windows-nat.c.
11568
29de418d
TT
115692020-04-08 Tom Tromey <tromey@adacore.com>
11570
11571 * windows-nat.c (exception_count, event_count): Remove.
11572 (handle_exception, get_windows_debug_event)
11573 (do_initial_windows_stuff): Update.
11574
a816ba18
TT
115752020-04-08 Tom Tromey <tromey@adacore.com>
11576
11577 * windows-nat.c (windows_nat::handle_load_dll)
11578 (windows_nat::handle_unload_dll): Rename. No longer static.
11579 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11580 Declare.
11581
a00caa12
TT
115822020-04-08 Tom Tromey <tromey@adacore.com>
11583
11584 * complaints.h (stop_whining): Declare at top-level.
11585 (complaint): Don't declare stop_whining.
11586
d41b524f
TT
115872020-04-08 Tom Tromey <tromey@adacore.com>
11588
11589 * windows-nat.c (windows_nat::handle_output_debug_string):
11590 Rename. No longer static.
11591 * nat/windows-nat.h (handle_output_debug_string): Declare.
11592
3c76026d
TT
115932020-04-08 Tom Tromey <tromey@adacore.com>
11594
11595 * windows-nat.c (current_process_handle, current_process_id)
11596 (main_thread_id, last_sig, current_event, last_wait_event)
11597 (current_windows_thread, desired_stop_thread_id, pending_stops)
11598 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11599 (display_selectors, fake_create_process)
11600 (get_windows_debug_event): Update.
11601 * nat/windows-nat.h (current_process_handle, current_process_id)
11602 (main_thread_id, last_sig, current_event, last_wait_event)
11603 (current_windows_thread, desired_stop_thread_id, pending_stops)
11604 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11605 * nat/windows-nat.c (current_process_handle, current_process_id)
11606 (main_thread_id, last_sig, current_event, last_wait_event)
11607 (current_windows_thread, desired_stop_thread_id, pending_stops)
11608 (siginfo_er): New globals. Move from windows-nat.c.
11609
9d8679cc
TT
116102020-04-08 Tom Tromey <tromey@adacore.com>
11611
11612 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11613 (handle_load_dll): Update.
11614 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11615
28688adf
TT
116162020-04-08 Tom Tromey <tromey@adacore.com>
11617
11618 * windows-nat.c (enum thread_disposition_type): Move to
11619 nat/windows-nat.h.
11620 (windows_nat::thread_rec): Rename from thread_rec. No longer
11621 static.
11622 (windows_add_thread, windows_nat_target::fetch_registers)
11623 (windows_nat_target::store_registers, handle_exception)
11624 (windows_nat_target::resume, get_windows_debug_event)
11625 (windows_nat_target::get_tib_address)
11626 (windows_nat_target::thread_name)
11627 (windows_nat_target::thread_alive): Update.
11628 * nat/windows-nat.h (enum thread_disposition_type): Move from
11629 windows-nat.c.
11630 (thread_rec): Declare.
11631
4834dad0
TT
116322020-04-08 Tom Tromey <tromey@adacore.com>
11633
11634 * windows-nat.c: Add "using namespace".
11635 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11636 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11637
65bafd5b
TT
116382020-04-08 Tom Tromey <tromey@adacore.com>
11639
11640 * nat/windows-nat.h (struct windows_thread_info): Declare
11641 destructor.
11642 * nat/windows-nat.c (~windows_thread_info): New.
11643
0a4afda3
TT
116442020-04-08 Tom Tromey <tromey@adacore.com>
11645
11646 PR gdb/22992
11647 * windows-nat.c (current_event): Update comment.
11648 (last_wait_event, desired_stop_thread_id): New globals.
11649 (struct pending_stop): New.
11650 (pending_stops): New global.
11651 (windows_nat_target) <stopped_by_sw_breakpoint>
11652 <supports_stopped_by_sw_breakpoint>: New methods.
11653 (windows_fetch_one_register): Add assertions. Adjust PC.
11654 (windows_continue): Handle pending stops. Suspend other threads
11655 when stepping. Use last_wait_event
11656 (wait_for_debug_event): New function.
11657 (get_windows_debug_event): Use wait_for_debug_event. Handle
11658 pending stops. Queue spurious stops.
11659 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11660 (windows_nat_target::kill): Use wait_for_debug_event.
11661 * nat/windows-nat.h (struct windows_thread_info)
11662 <stopped_at_software_breakpoint>: New field.
11663 * nat/windows-nat.c (windows_thread_info::resume): Clear
11664 stopped_at_software_breakpoint.
11665
8e61ebec
TT
116662020-04-08 Tom Tromey <tromey@adacore.com>
11667
11668 * windows-nat.c (enum thread_disposition_type): New.
11669 (thread_rec): Replace "get_context" parameter with "disposition";
11670 change type.
11671 (windows_add_thread, windows_nat_target::fetch_registers)
11672 (windows_nat_target::store_registers, handle_exception)
11673 (windows_nat_target::resume, get_windows_debug_event)
11674 (windows_nat_target::get_tib_address)
11675 (windows_nat_target::thread_name)
11676 (windows_nat_target::thread_alive): Update.
11677
98a03287
TT
116782020-04-08 Tom Tromey <tromey@adacore.com>
11679
11680 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11681 (windows_continue): Use windows_continue::resume.
11682 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11683 resume>: Declare new methods.
11684 * nat/windows-nat.c: New file.
11685 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11686
7c7411bc
TT
116872020-04-08 Tom Tromey <tromey@adacore.com>
11688
11689 * windows-nat.c (windows_add_thread, windows_delete_thread)
11690 (windows_nat_target::fetch_registers)
11691 (windows_nat_target::store_registers, fake_create_process)
11692 (windows_nat_target::resume, windows_nat_target::resume)
11693 (get_windows_debug_event, windows_nat_target::wait)
11694 (windows_nat_target::pid_to_str)
11695 (windows_nat_target::get_tib_address)
11696 (windows_nat_target::get_ada_task_ptid)
11697 (windows_nat_target::thread_name)
11698 (windows_nat_target::thread_alive): Use lwp, not tid.
11699
2950fdf7
TT
117002020-04-08 Tom Tromey <tromey@adacore.com>
11701
11702 * windows-nat.c (handle_exception)
11703 (windows_nat_target::thread_name): Update.
11704 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11705 <name>: Now unique_xmalloc_ptr.
11706
62fe396b
TT
117072020-04-08 Tom Tromey <tromey@adacore.com>
11708
11709 * windows-nat.c (thread_rec)
11710 (windows_nat_target::fetch_registers): Update.
11711 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11712 Update comment.
11713 <debug_registers_changed, reload_context>: Now bool.
11714
e9534bd2
TT
117152020-04-08 Tom Tromey <tromey@adacore.com>
11716
11717 * windows-nat.c (windows_add_thread): Use new.
11718 (windows_init_thread_list, windows_delete_thread): Use delete.
11719 (get_windows_debug_event): Update.
11720 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11721 destructor, and initializers.
11722
ae1f8880
TT
117232020-04-08 Tom Tromey <tromey@adacore.com>
11724
11725 * windows-nat.c (struct windows_thread_info): Remove.
11726 * nat/windows-nat.h: New file.
11727
55a1e039
TT
117282020-04-08 Tom Tromey <tromey@adacore.com>
11729
11730 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11731 (thread_rec, windows_add_thread, windows_delete_thread)
11732 (windows_continue): Update.
11733
93366324
TT
117342020-04-08 Tom Tromey <tromey@adacore.com>
11735
11736 * windows-nat.c (struct windows_thread_info): Remove typedef.
11737 (thread_head): Remove.
11738 (thread_list): New global.
11739 (thread_rec, windows_add_thread, windows_init_thread_list)
11740 (windows_delete_thread, windows_continue): Update.
11741
0f2265e2
SM
117422020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11743
11744 * windows-tdep.h (windows_init_abi): Add comment.
11745 (cygwin_init_abi): New declaration.
11746 * windows-tdep.c: Split signal enumeration in two, one for
11747 Windows and one for Cygwin.
11748 (windows_gdb_signal_to_target): Only deal with signal of the
11749 Windows OS ABI.
11750 (cygwin_gdb_signal_to_target): New function.
11751 (windows_init_abi): Rename to windows_init_abi_common, don't set
11752 gdb_signal_to_target gdbarch method. Add new new function with
11753 this name.
11754 (cygwin_init_abi): New function.
11755 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11756 comment. Don't call windows_init_abi.
11757 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11758 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11759 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11760 i386_windows_init_abi_common, don't call windows_init_abi. Add
11761 a new function of this name.
11762 (i386_cygwin_init_abi): New function.
11763 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11764 OS ABI Cygwin.
11765
3810f182
SM
117662020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11767
11768 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11769 parameter.c.
11770 (dwarf2_read_gdb_index): Update.
11771
063f8e80
KR
117722020-04-07 Kamil Rytarowski <n54@gmx.com>
11773
11774 * nbsd-tdep.c: Include "objfiles.h".
11775 (nbsd_skip_solib_resolver): New.
11776 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11777
85a9510c 117782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11779
11780 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11781 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11782 with DW_LLE_base_addressx are being emitted in DWARFv5.
11783 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11784 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11785 unsigned integer.
11786
9fc3eaae 117872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11788
11789 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11790 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11791 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11792 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11793 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11794 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11795 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11796
11797
41144253 117982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11799
11800 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11801 (read_loclist_index): New function definition.
11802 (lookup_loclist_base): New function definition.
11803 (read_loclist_header): New function definition.
11804 (dwarf2_cu): Add loclist_base and loclist_header field.
11805 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11806 (read_full_die_1): Read the value of DW_AT_loclists_base.
11807 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11808 (read_attribute_value): Handle DW_FORM_loclistx.
11809 (skip_one_die): Handle DW_FORM_loclistx.
11810 (loclist_header): New structure declaration.
11811 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11812
9f4e76a4
SM
118132020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11814
11815 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11816 constructor. Remove `addr` parameter from other constructor and
11817 add `per_cu` parameter.
11818 * dwarf2/read.c (create_partial_symtab): Update.
11819
25c11aca
TV
118202020-04-07 Tom de Vries <tdevries@suse.de>
11821
11822 PR symtab/25796
11823 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11824 (partial_die_info::fixup): Inherit has_const_value.
11825
5707e24b
TV
118262020-04-07 Tom de Vries <tdevries@suse.de>
11827
11828 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11829 symbols without address.
11830
05f00e22
KR
118312020-04-06 Kamil Rytarowski <n54@gmx.com>
11832
11833 * nbsd-nat.h (struct thread_info): Add forward declaration.
11834 (nbsd_nat_target::thread_alive): Add.
11835 (nbsd_nat_target::thread_name): Likewise.
11836 (nbsd_nat_target::update_thread_list): Likewise.
11837 (update_thread_list::post_attach): Likewise.
11838 (post_attach::pid_to_str): Likewise.
11839 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11840 (nbsd_thread_lister): Add.
11841 (nbsd_nat_target::thread_alive): Likewise.
11842 (nbsd_nat_target::thread_name): Likewise.
11843 (nbsd_add_threads): Likewise.
11844 (update_thread_list::post_attach): Likewise.
11845 (nbsd_nat_target::update_thread_list): Likewise.
11846 (post_attach::pid_to_str): Likewise.
11847
6ee448cc
TT
118482020-04-06 Tom Tromey <tromey@adacore.com>
11849
11850 * ada-valprint.c (print_variant_part): Extract the variant field.
11851 (print_field_values): Use the field as the outer value when
11852 recursing.
11853
dea34e8c
TT
118542020-04-06 Tom Tromey <tromey@adacore.com>
11855
11856 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11857 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11858 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11859 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11860 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11861
93689ce9
TT
118622020-04-06 Tom Tromey <tromey@adacore.com>
11863
11864 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11865 TYPE_CODE_ERROR.
11866
79743962
KR
118672020-04-06 Kamil Rytarowski <n54@gmx.com>
11868
11869 * nbsd-tdep.c: Include "gdbarch.h".
11870 Define enum with NetBSD signal numbers.
11871 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11872 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11873 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11874 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11875 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11876 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11877 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11878 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11879 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11880 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11881 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11882 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11883
9e7c9a03
HD
118842020-04-03 Hannes Domani <ssbssa@yahoo.de>
11885
11886 PR gdb/25325
11887 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11888
d9e49b61
TT
118892020-04-03 Tom Tromey <tromey@adacore.com>
11890
11891 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11892 Read constant block.
11893
e0fc5c3f
SM
118942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11895
11896 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11897 (gdb_bfd_get_full_section_contents): New declaration.
11898 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11899 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11900 gdb_bfd_get_full_section_contents.
11901
e2ff18a0
SM
119022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11903
11904 * exec.c (build_section_table): Replace internal_error with
11905 gdb_assert.
11906 (section_table_xfer_memory_partial): Likewise.
11907 * mdebugread.c (parse_partial_symbols): Likewise.
11908 * psymtab.c (lookup_partial_symbol): Likewise.
11909 * utils.c (wrap_here): Likewise.
11910
0830d301
TT
119112020-04-02 Tom Tromey <tromey@adacore.com>
11912
11913 * f-lang.c (build_fortran_types): Use arch_type to initialize
11914 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11915
e7da7f8f
TT
119162020-04-02 Tom Tromey <tromey@adacore.com>
11917
11918 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11919 of attributes.
11920
c90d28ac
AB
119212020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11922 Bernd Edlinger <bernd.edlinger@hotmail.de>
11923 Tom Tromey <tromey@adacore.com>
11924
11925 * buildsym.c (buildsym_compunit::record_line): Remove
11926 deduplication code.
11927
1aa98955
TV
119282020-04-02 Tom de Vries <tdevries@suse.de>
11929
11930 PR ada/24671
11931 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11932
d3214198
TV
119332020-04-02 Tom de Vries <tdevries@suse.de>
11934
11935 * dwarf2/read.c (dwarf2_gdb_index_functions,
11936 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11937 NULL.
11938 * psymtab.c (psym_lookup_global_symbol_language): New function.
11939 (psym_functions): Init psym_lookup_global_symbol_language with
11940 psym_lookup_global_symbol_language.
11941 * symfile-debug.c (debug_sym_quick_functions): Init
11942 lookup_global_symbol_language with NULL.
11943 * symfile.c (set_initial_language): Remove fixme comment.
11944 * symfile.h (struct quick_symbol_functions): Add
11945 lookup_global_symbol_language.
11946 * symtab.c (find_quick_global_symbol_language): New function.
11947 (find_main_name): Use find_quick_global_symbol_language.
11948
2836752f
SM
119492020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11950
11951 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11952
64dc2d4b
BE
119532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11954
11955 * buildsym.c (record_line): Fix undefined behavior and preserve
11956 lines at eof.
11957
bbe3dc41
BE
119582020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11959
11960 * buildsym.c (record_line): Fix the resizing condition.
11961
6b4a335b
TT
119622020-04-01 Tom Tromey <tom@tromey.com>
11963
11964 * value.h (value_literal_complex): Add comment.
11965 * valops.c (value_literal_complex): Refer to value.h.
11966
3638a098
TT
119672020-04-01 Tom Tromey <tom@tromey.com>
11968
11969 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11970 (scalar_type): New rule, from typebase.
11971 (typebase): Use scalar_type. Recognize complex types.
11972 (field_name): Handle FLOAT_KEYWORD.
11973 (ident_tokens): Add _Complex and __complex__.
11974
c34e8714
TT
119752020-04-01 Tom Tromey <tom@tromey.com>
11976
11977 PR exp/25299:
11978 * valarith.c (promotion_type, complex_binop): New functions.
11979 (scalar_binop): Handle complex numbers. Use promotion_type.
11980 (value_pos, value_neg, value_complement): Handle complex numbers.
11981
fa649bb7
TT
119822020-04-01 Tom Tromey <tom@tromey.com>
11983
11984 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11985 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11986 (parse_number): Handle complex numbers.
11987
981c08ce
TT
119882020-04-01 Tom Tromey <tom@tromey.com>
11989
11990 * c-valprint.c (c_decorations): Change complex suffix to "i".
11991
4c99290d
TT
119922020-04-01 Tom Tromey <tom@tromey.com>
11993
11994 * valprint.c (generic_value_print_complex): Use accessors.
11995 * value.h (value_real_part, value_imaginary_part): Declare.
11996 * valops.c (value_real_part, value_imaginary_part): New
11997 functions.
11998 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11999
5b930b45
TT
120002020-04-01 Tom Tromey <tom@tromey.com>
12001
12002 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12003 (read_range_type): Update.
12004 * mdebugread.c (basic_type): Update.
12005 * go-lang.c (build_go_types): Use init_complex_type.
12006 * gdbtypes.h (struct main_type) <complex_type>: New member.
12007 (init_complex_type): Update.
12008 (arch_complex_type): Don't declare.
12009 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12010 Make name if none given. Use alloc_type_copy. Look for cached
12011 complex type.
12012 (arch_complex_type): Remove.
12013 (gdbtypes_post_init): Use init_complex_type.
12014 * f-lang.c (build_fortran_types): Use init_complex_type.
12015 * dwarf2/read.c (read_base_type): Update.
12016 * d-lang.c (build_d_types): Use init_complex_type.
12017 * ctfread.c (read_base_type): Update.
12018
53cccef1
TBA
120192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12020
12021 * infrun.c (stop_all_threads): Update assertion, plus when
12022 stopping threads, take into account that we might be trying
12023 to stop an all-stop target.
12024 (stop_waiting): Call 'stop_all_threads' if there exists a
12025 non-stop target.
12026
a0714d30
TBA
120272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12028
12029 * target.h (exists_non_stop_target): New function declaration.
12030 * target.c (exists_non_stop_target): New function.
12031
60e22c1e
HD
120322020-04-01 Hannes Domani <ssbssa@yahoo.de>
12033
12034 PR gdb/24789
12035 * eval.c (is_integral_or_integral_reference): New function.
12036 (evaluate_subexp_standard): Allow integer references in
12037 pointer arithmetic.
12038
e139a727
TBA
120392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12040
12041 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12042 check for no ptid in the stop reply when the target is non-stop.
12043
e0802d59
TT
120442020-04-01 Tom Tromey <tromey@adacore.com>
12045
12046 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12047 "name" parameter to rvalue reference. Initialize m_name_holder.
12048 <lookup_name_info>: New overloads.
12049 <name>: Return gdb::string_view.
12050 <c_str>: New method.
12051 <make_ignore_params>: Update.
12052 <search_name_hash>: Update.
12053 <language_lookup_name>: Return const char *.
12054 <m_name>: Change type.
12055 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12056 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12057 (lookup_name_info::match_any): Update.
12058 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12059 Update.
12060 * minsyms.c (linkage_name_str): Update.
12061 * language.c (default_symbol_name_matcher): Update.
12062 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12063 Update.
12064 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12065 (ada_lookup_name_info::ada_lookup_name_info): Update.
12066 (literal_symbol_name_matcher): Update.
12067
8c072cb6
TT
120682020-04-01 Tom Tromey <tromey@adacore.com>
12069
12070 * psymtab.c (psymtab_search_name): Remove function.
12071 (psym_lookup_symbol): Create search name and lookup name here.
12072 (lookup_partial_symbol): Remove "name" parameter; add
12073 lookup_name.
12074 (psym_expand_symtabs_for_function): Update.
12075
6f29a534
TT
120762020-03-31 Joel Jones <joelkevinjones@gmail.com>
12077
12078 PR tui/25597:
12079 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12080
af62665e
TT
120812020-03-31 Tom Tromey <tromey@adacore.com>
12082
12083 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12084 memcpy.
12085
d1a89da5
NC
120862020-03-30 Nelson Chu <nelson.chu@sifive.com>
12087
12088 * features/riscv/32bit-csr.xml: Regenerated.
12089 * features/riscv/64bit-csr.xml: Regenerated.
12090
d8af9068
TT
120912020-03-30 Tom Tromey <tromey@adacore.com>
12092
12093 * ada-valprint.c (print_variant_part): Update.
12094 * ada-lang.h (ada_which_variant_applies): Update.
12095 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12096 outer_valaddr parameters; replace with "outer" value parameter.
12097 (to_fixed_variant_branch_type): Update.
12098
227c0bf4
PFC
120992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12100
12101 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12102 <list>. Remove inclusion of observable.h.
12103 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12104 (struct arch_lwp_info): New struct.
12105 (class ppc_linux_dreg_interface): New class.
12106 (struct ppc_linux_process_info): New struct.
12107 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12108 <low_new_clone, low_forget_process, low_prepare_to_resume>
12109 <copy_thread_dreg_state, mark_thread_stale>
12110 <mark_debug_registers_changed, register_hw_breakpoint>
12111 <clear_hw_breakpoint, register_wp, clear_wp>
12112 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12113 <num_memory_accesses, get_trigger_type>
12114 <create_watchpoint_request, hwdebug_point_cmp>
12115 <init_arch_lwp_info, get_arch_lwp_info>
12116 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12117 methods.
12118 <struct ptid_hash>: New inner struct.
12119 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12120 members.
12121 (saved_dabr_value, hwdebug_info, max_slots_number)
12122 (struct hw_break_tuple, struct thread_points, ppc_threads)
12123 (have_ptrace_hwdebug_interface)
12124 (hwdebug_find_thread_points_by_tid)
12125 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12126 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12127 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12128 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12129 use m_dreg_interface.
12130 (hwdebug_point_cmp): Change to...
12131 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12132 reference arguments instead of pointers.
12133 (ppc_linux_nat_target::ranged_break_num_registers): Use
12134 m_dreg_interface.
12135 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12136 m_dreg_interface. Call register_hw_breakpoint.
12137 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12138 m_dreg_interface. Call clear_hw_breakpoint.
12139 (get_trigger_type): Change to...
12140 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12141 comment.
12142 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12143 use m_dreg_interface. Call register_hw_breakpoint.
12144 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12145 use m_dreg_interface. Call clear_hw_breakpoint.
12146 (can_use_watchpoint_cond_accel): Change to...
12147 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12148 method. Update comment, use m_dreg_interface and
12149 m_process_info.
12150 (calculate_dvc): Change to...
12151 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12152 m_dreg_interface.
12153 (num_memory_accesses): Change to...
12154 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12155 (check_condition): Change to...
12156 (ppc_linux_nat_target::check_condition): ...this method.
12157 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12158 comment, use m_dreg_interface.
12159 (create_watchpoint_request): Change to...
12160 (ppc_linux_nat_target::create_watchpoint_request): ...this
12161 method. Use m_dreg_interface.
12162 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12163 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12164 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12165 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12166 (ppc_linux_nat_target::low_forget_process)
12167 (ppc_linux_nat_target::low_new_fork)
12168 (ppc_linux_nat_target::low_new_clone)
12169 (ppc_linux_nat_target::low_delete_thread)
12170 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12171 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12172 only call mark_thread_stale.
12173 (ppc_linux_thread_exit): Remove.
12174 (ppc_linux_nat_target::stopped_data_address): Change to...
12175 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12176 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12177 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12178 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12179 comment. Call low_stopped_data_address.
12180 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12181 m_dreg_interface.
12182 (ppc_linux_nat_target::masked_watch_num_registers): Use
12183 m_dreg_interface.
12184 (ppc_linux_nat_target::copy_thread_dreg_state)
12185 (ppc_linux_nat_target::mark_thread_stale)
12186 (ppc_linux_nat_target::mark_debug_registers_changed)
12187 (ppc_linux_nat_target::register_hw_breakpoint)
12188 (ppc_linux_nat_target::clear_hw_breakpoint)
12189 (ppc_linux_nat_target::register_wp)
12190 (ppc_linux_nat_target::clear_wp)
12191 (ppc_linux_nat_target::init_arch_lwp_info)
12192 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12193 (_initialize_ppc_linux_nat): Remove observer callback.
12194
4db10d8f
PFC
121952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12196
12197 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12198 (ppc_linux_nat_target::auxv_parse)
12199 (ppc_linux_nat_target::read_description)
12200 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12201 Move up.
12202
1310c1b0
PFC
122032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12204
12205 * linux-nat.h (low_new_clone): New method.
12206 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12207
69b037c3
SM
122082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12209
12210 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12211 (dbx_expand_psymtab): ... this.
12212 (start_psymtab): Update.
12213 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12214 (mdebug_expand_psymtab): ... this.
12215 (parse_partial_symbols): Update.
12216 (new_psymtab): Update.
12217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12218 (xcoff_expand_psymtab): ... this.
12219 (xcoff_start_psymtab): Update.
12220
48993951
SM
122212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12222
12223 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12224 <expand_dependencies>: ... this.
12225 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12226 (partial_symtab::expand_dependencies): ... this.
12227 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12228 Update.
12229 (dwarf2_psymtab::expand_psymtab): Update.
12230 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12231 * mdebugread.c (psymtab_to_symtab_1): Update.
12232 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12233
3ad83046
SM
122342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12235
12236 * psympriv.h (discard_psymtab): Remove.
12237 * dbxread.c (dbx_end_psymtab): Update.
12238 * xcoffread.c (xcoff_end_psymtab): Update.
12239
4d1b9ab6
TT
122402020-03-28 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12243 comment.
12244
f1749218
TT
122452020-03-28 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12248
ebea7626
HD
122492020-03-27 Hannes Domani <ssbssa@yahoo.de>
12250
12251 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12252
a879b4d5
JB
122532020-03-26 John Baldwin <jhb@FreeBSD.org>
12254
12255 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12256
0826b30a
TT
122572020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12260 (mark_common_block_symbol_computed, read_tag_string_type)
12261 (attr_to_dynamic_prop, read_subrange_type): Update.
12262 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12263 to be methods on struct attribute.
12264 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12265 (read_call_site_scope, partial_die_info::read)
12266 (partial_die_info::read, lookup_die_type, follow_die_ref):
12267 Update.
12268 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12269 from dwarf2_get_ref_die_offset.
12270 (attribute::constant_value): New method, from
12271 dwarf2_get_attr_constant_value.
12272 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12273 Declare method.
12274 <constant_value>: New method.
12275
2b2558bf
TT
122762020-03-26 Tom Tromey <tom@tromey.com>
12277
12278 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12279 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12280 (dwarf_type_encoding_name): Move to stringify.c.
12281 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12282 * dwarf2/stringify.c: New file.
12283 * dwarf2/stringify.h: New file.
12284
eeb64781
TT
122852020-03-26 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12288 Rewrite.
12289
a39fdb41
TT
122902020-03-26 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12293 methods.
12294 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12295 (lookup_ranges_base): Likewise.
12296 (read_cutu_die_from_dwo, read_full_die_1): Update.
12297
436c571c
TT
122982020-03-26 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2/read.c (read_import_statement, read_file_scope)
12301 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12302 (read_lexical_block_scope, read_call_site_scope)
12303 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12304 (handle_struct_member_die, process_structure_scope)
12305 (update_enumeration_type_from_children)
12306 (process_enumeration_scope, read_array_type, read_common_block)
12307 (read_namespace, read_module, read_subroutine_type): Update.
12308 (sibling_die): Remove.
12309
052c8bb8
TT
123102020-03-26 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12313 (build_type_psymtabs_reader, read_structure_type)
12314 (read_enumeration_type, read_full_die_1): Update.
12315 (dwarf2_attr_no_follow): Move to die.h.
12316 * dwarf2/die.h (struct die_info) <attr>: New method.
12317
2b24b6e4
TT
123182020-03-26 Tom Tromey <tom@tromey.com>
12319
12320 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12321 <base_address>: Now an optional.
12322 (dwarf2_find_base_address, dwarf2_rnglists_process)
12323 (dwarf2_ranges_process, fill_in_loclist_baton)
12324 (dwarf2_symbol_mark_computed): Update.
12325
c2d50fd0
TT
123262020-03-26 Tom Tromey <tom@tromey.com>
12327
12328 * dwarf2/read.c (struct die_info): Move to die.h.
12329 * dwarf2/die.h: New file.
12330
0df7ad3a
TT
123312020-03-26 Tom Tromey <tom@tromey.com>
12332
12333 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12334 * dwarf2/read.c
12335 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12336 Move to line-header.c.
12337 (read_checked_initial_length_and_offset, read_formatted_entries):
12338 Likewise.
12339 (dwarf_decode_line_header): Split into two.
12340 * dwarf2/line-header.c
12341 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12342 Move from read.c.
12343 (read_checked_initial_length_and_offset, read_formatted_entries):
12344 Likewise.
12345 (dwarf_decode_line_header): New function, split from read.c.
12346
86c0bb4c
TT
123472020-03-26 Tom Tromey <tom@tromey.com>
12348
12349 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12350 Declare method.
12351 * dwarf2/read.c (read_attribute_value): Update.
12352 (dwarf2_per_objfile::read_line_string): Rename from
12353 read_indirect_line_string.
12354 (read_formatted_entries): Update.
12355
2ef46c2f
TT
123562020-03-26 Tom Tromey <tom@tromey.com>
12357
12358 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12359 variable.
12360
4f9c1eda
TT
123612020-03-26 Tom Tromey <tom@tromey.com>
12362
12363 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12364 const.
12365 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12366 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12367 parameter const.
12368
5a0e026f
TT
123692020-03-26 Tom Tromey <tom@tromey.com>
12370
12371 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12372 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12373 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12374 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12375
8844c11b
TT
123762020-03-26 Tom Tromey <tom@tromey.com>
12377
12378 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12379 file_names_size, file_full_name, file_file_name>: Use const.
12380 <file_name_at, file_names>: Add const overload.
12381 * dwarf2/line-header.c (line_header::file_file_name)
12382 (line_header::file_full_name): Update.
12383
c90ec28a
TT
123842020-03-26 Tom Tromey <tom@tromey.com>
12385
12386 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12387 (macro_start_file, consume_improper_spaces)
12388 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12389 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12390 (dwarf_decode_macros): Move to macro.c.
12391 * dwarf2/macro.c: New file.
12392 * dwarf2/macro.h: New file.
12393 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12394
4f44ae6c
TT
123952020-03-26 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12398 method.
12399 * dwarf2/section.c: New method. From
12400 read_indirect_string_at_offset_from.
12401 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12402 (read_indirect_string_at_offset_from): Move to section.c.
12403 (read_indirect_string_at_offset): Rewrite.
12404 (read_indirect_line_string_at_offset): Remove.
12405 (read_indirect_string, read_indirect_line_string)
12406 (dwarf_decode_macro_bytes): Update.
12407
a0194fa8
TT
124082020-03-26 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/section.h (struct dwarf2_section_info)
12411 <overload_complaint>: Declare.
12412 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12413 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12414 Rename from dwarf2_section_buffer_overflow_complaint.
12415 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12416 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12417
3d27bbdb
TT
124182020-03-26 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12421 Declare.
12422 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12423 Move from read.c.
12424 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12425 to section.c.
12426
9eac9650
TT
124272020-03-26 Tom Tromey <tom@tromey.com>
12428
12429 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12430
bf80d710
TT
124312020-03-26 Tom Tromey <tom@tromey.com>
12432
12433 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12434 "builder".
12435 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12436 parameter.
12437 (dwarf_decode_macros): Update.
12438
0314b390
TT
124392020-03-26 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2/read.c (read_attribute_value): Update.
12442 (read_indirect_string_from_dwz): Move to dwz.c; change into
12443 method.
12444 (dwarf_decode_macro_bytes): Update.
12445 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12446 * dwarf2/dwz.c: New file.
12447 * Makefile.in (COMMON_SFILES): Add dwz.c.
12448
9fda78b6
TT
124492020-03-26 Tom Tromey <tom@tromey.com>
12450
12451 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12452 * dwarf2/read.c: Add include.
12453 * dwarf2/index-write.c: Add include.
12454 * dwarf2/index-cache.c: Add include.
12455 * dwarf2/dwz.h: New file.
12456
33aa3c10
TT
124572020-03-25 Tom Tromey <tom@tromey.com>
12458
12459 * compile/compile-object-load.c (get_out_value_type): Mention
12460 correct symbol name in error message.
12461
d503b685
HD
124622020-03-25 Hannes Domani <ssbssa@yahoo.de>
12463
12464 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12465
7b1eff95
TV
124662020-03-25 Tom de Vries <tdevries@suse.de>
12467
12468 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12469 * symmisc.c (dump_symtab_1): Print user and includes fields.
12470 (maintenance_info_symtabs): Same.
12471
dd895392
AB
124722020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12473
12474 PR gdb/25534
12475 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12476 (riscv_regcache_cooked_write): New function.
12477 (riscv_push_dummy_call): Use new function.
12478 (riscv_return_value): Likewise.
12479
5ab2fbf1
SM
124802020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12481
12482 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12483 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12484 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12485 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12486 * infrun.c (follow_fork): Likewise.
12487 (follow_fork_inferior): Likewise.
12488 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12489 * linux-nat.h (class linux_nat_target): Likewise.
12490 * remote.c (class remote_target) <follow_fork>: Likewise.
12491 (remote_target::follow_fork): Likewise.
12492 * target-delegates.c: Re-generate.
12493 * target.c (default_follow_fork): Likewise.
12494 (target_follow_fork): Likewise.
12495 * target.h (struct target_ops) <follow_fork>: Likewise.
12496 (target_follow_fork): Likewise.
12497
a64fafb5
TV
124982020-03-24 Tom de Vries <tdevries@suse.de>
12499
12500 * psymtab.c (maintenance_info_psymtabs): Print user field.
12501
fe26d3a3
TT
125022020-03-20 Tom Tromey <tromey@adacore.com>
12503
12504 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12505 const.
12506 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12507 const.
12508
c884cc46
SM
125092020-03-20 Simon Marchi <simon.marchi@efficios.com>
12510
12511 * ptrace.m4: Don't check for ptrace declaration.
12512 * config.in: Re-generate.
12513 * configure: Re-generate.
12514 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12515 not defined.
12516
1ff700c2
KR
125172020-03-20 Kamil Rytarowski <n54@gmx.com>
12518
12519 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12520 `PTRACE_TYPE_RET'.
12521 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12522 * sparc-nat.c (gdb_ptrace): Likewise.
12523 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12524
f7d4f0b1
TT
125252020-03-20 Tom Tromey <tromey@adacore.com>
12526
12527 * c-exp.y (lex_one_token): Fix assert.
12528
f67210ff
TT
125292020-03-20 Tom Tromey <tromey@adacore.com>
12530
12531 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12532 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12533 strncpy call.
12534
1773be9e
TT
125352020-03-20 Tom Tromey <tromey@adacore.com>
12536
12537 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12538
70304be9
TT
125392020-03-20 Tom Tromey <tromey@adacore.com>
12540
12541 * ada-valprint.c (print_variant_part): Remove parameters; switch
12542 to value-based API.
12543 (print_field_values): Likewise.
12544 (ada_val_print_struct_union): Likewise.
12545 (ada_value_print_1): Update.
12546
9faa006d
KR
125472020-03-20 Kamil Rytarowski <n54@gmx.com>
12548
12549 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12550 nbsd_nat_target instead of inf_ptrace_target.
12551 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12552 nbsd_nat_target.
12553
4a90f062
KR
125542020-03-20 Kamil Rytarowski <n54@gmx.com>
12555
12556 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12557 it to the ptrace call.
12558 * (store_registers): Likewise.
12559
125602020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12561
12562 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12563 it to the ptrace call.
12564 * (store_registers): Likewise.
12565
2d07da27
LM
125662020-03-19 Luis Machado <luis.machado@linaro.org>
12567
12568 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12569 valid, fetch vg value from ptrace.
12570
f09db380
KR
125712020-03-19 Kamil Rytarowski <n54@gmx.com>
12572 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12573 * inf-ptrace.c: Likewise.
12574 * (gdb_ptrace): Add.
12575 * (inf_ptrace_target::resume): Update.
12576 * (inf_ptrace_target::xfer_partial): Likewise.
12577 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12578 * (inf_ptrace_peek_poke): Update.
12579
fcc7376e
KR
125802020-03-19 Kamil Rytarowski <n54@gmx.com>
12581
12582 * x86-bsd-nat.c (gdb_ptrace): New.
12583 * (x86bsd_dr_set): Add new argument `ptid'.
12584 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12585 x86bsd_dr_set_addr): Update.
12586
cada5fc9
AB
125872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * remote.c (remote_target::process_stop_reply): Handle events for
12590 all threads differently.
12591
19a2740f
AB
125922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12593
12594 * completer.c (completion_tracker::remove_completion): Define new
12595 function.
12596 * completer.h (completion_tracker::remove_completion): Declare new
12597 function.
12598 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12599 when adding a C++ function symbol.
12600
724fd9ba
AB
126012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12602
12603 * completer.c (completion_tracker::completion_hash_entry): Define
12604 new class.
12605 (advance_to_filename_complete_word_point): Call
12606 recompute_lowest_common_denominator.
12607 (completion_tracker::completion_tracker): Call discard_completions
12608 to setup the hash table.
12609 (completion_tracker::discard_completions): Allow for being called
12610 from the constructor, pass new equal function, and element deleter
12611 when constructing the hash table. Initialise new class member
12612 variables.
12613 (completion_tracker::maybe_add_completion): Remove use of
12614 m_entries_vec, and store more information into m_entries_hash.
12615 (completion_tracker::recompute_lcd_visitor): New function, most
12616 content taken from...
12617 (completion_tracker::recompute_lowest_common_denominator):
12618 ...here, this now just visits each item in the hash calling the
12619 above visitor.
12620 (completion_tracker::build_completion_result): Remove use of
12621 m_entries_vec, call recompute_lowest_common_denominator.
12622 * completer.h (completion_tracker::have_completions): Remove use
12623 of m_entries_vec.
12624 (completion_tracker::completion_hash_entry): Declare new class.
12625 (completion_tracker::recompute_lowest_common_denominator): Change
12626 function signature.
12627 (completion_tracker::recompute_lcd_visitor): Declare new function.
12628 (completion_tracker::m_entries_vec): Delete.
12629 (completion_tracker::m_entries_hash): Initialize to NULL.
12630 (completion_tracker::m_lowest_common_denominator_valid): New
12631 member variable.
12632 (completion_tracker::m_lowest_common_denominator_max_length): New
12633 member variable.
12634
5a82b8a1
KR
126352020-03-17 Kamil Rytarowski <n54@gmx.com>
12636
12637 * regformats/regdef.h: Put reg in gdb namespace.
12638
fb516a69
KR
126392020-03-17 Kamil Rytarowski <n54@gmx.com>
12640
12641 * i386-bsd-nat.c (gdb_ptrace): New.
12642 * (i386bsd_fetch_inferior_registers,
12643 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12644 * (i386bsd_fetch_inferior_registers,
12645 i386bsd_store_inferior_registers) Use gdb_ptrace.
12646
1c0aa1fb
KR
126472020-03-17 Kamil Rytarowski <n54@gmx.com>
12648
12649 * amd64-bsd-nat.c (gdb_ptrace): New.
12650 * (amd64bsd_fetch_inferior_registers,
12651 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12652 * (amd64bsd_fetch_inferior_registers,
12653 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12654
5ccd2fb7
KR
126552020-03-17 Kamil Rytarowski <n54@gmx.com>
12656
12657 * user-regs.c (user_reg::read): Rename to...
12658 (user_reg::xread): ...this.
12659 * (append_user_reg): Rename argument `read' to `xread'.
12660 * (user_reg_add_builtin): Likewise.
12661 * (user_reg_add): Likewise.
12662 * (value_of_user_reg): Likewise.
12663
2108a63a
KR
126642020-03-17 Kamil Rytarowski <n54@gmx.com>
12665
12666 * sparc-nat.c (gdb_ptrace): New.
12667 * sparc-nat.c (sparc_fetch_inferior_registers)
12668 (sparc_store_inferior_registers) Remove obsolete comment.
12669 * sparc-nat.c (sparc_fetch_inferior_registers)
12670 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12671 * sparc-nat.c (sparc_fetch_inferior_registers)
12672 (sparc_store_inferior_registers) Use gdb_ptrace.
12673
a225c9a8
KR
126742020-03-17 Kamil Rytarowski <n54@gmx.com>
12675
12676 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12677 it to the ptrace call.
12678 * sh-nbsd-nat.c (store_registers): Likewise.
12679
98097623
KR
126802020-03-17 Kamil Rytarowski <n54@gmx.com>
12681
12682 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12683 nbsd_nat_target instead of inf_ptrace_target.
12684 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12685 nbsd_nat_target.
12686
9e38d619
KR
126872020-03-17 Kamil Rytarowski <n54@gmx.com>
12688
12689 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12690
a2ecbe9f
KR
126912020-03-17 Kamil Rytarowski <n54@gmx.com>
12692
12693 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12694 <sys/sysctl.h>.
12695 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12696
58990295
TV
126972020-03-17 Tom de Vries <tdevries@suse.de>
12698
12699 PR gdb/23710
12700 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12701 fields.
12702 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12703 fields.
12704 (process_imported_unit_die): Skip import of c++ CUs.
12705
771dd3a8
TT
127062020-03-16 Tom Tromey <tom@tromey.com>
12707
12708 * p-valprint.c (pascal_object_print_value): Initialize
12709 base_value.
12710
817a7585
AK
127112020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12712 Shahab Vahedi <shahab@synopsys.com>
12713
12714 * Makefile.in: Add arch/arc.o
12715 * configure.tgt: Likewise.
12716 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12717 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12718 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12719 * arc-tdep.h (arc_read_description): Add proto type.
12720 * arch/arc.c: New file.
12721 * arch/arc.h: Likewise.
12722 * features/Makefile: Replace old target descriptions with new.
12723 * features/arc-arcompact.c: Remove.
12724 * features/arc-arcompact.xml: Likewise.
12725 * features/arc-v2.c: Likewise
12726 * features/arc-v2.xml: Likewise
12727 * features/arc/aux-arcompact.xml: New file.
12728 * features/arc/aux-v2.xml: Likewise.
12729 * features/arc/core-arcompact.xml: Likewise.
12730 * features/arc/core-v2.xml: Likewise.
12731 * features/arc/aux-arcompact.c: Generate.
12732 * features/arc/aux-v2.c: Likewise.
12733 * features/arc/core-arcompact.c: Likewise.
12734 * features/arc/core-v2.c: Likewise.
12735 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12736
67430cd0
TT
127372020-03-16 Tom Tromey <tromey@adacore.com>
12738
12739 PR gdb/25663:
12740 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12741 putting value into bcache.
12742
30efb6c7
SM
127432020-03-16 Simon Marchi <simon.marchi@efficios.com>
12744
12745 PR gdb/21500
12746 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12747 to...
12748 (amd64_windows_init_abi_common): ... this. Don't set size of
12749 long type.
12750 (amd64_windows_init_abi): New function.
12751 (amd64_cygwin_init_abi): New function.
12752 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12753 the Cygwin OS ABI.
12754 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12755 comment.
12756
8db52437
SM
127572020-03-16 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12760 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12761 (pe_import_directory_entry): New struct type.
12762 (is_linked_with_cygwin_dll): New function.
12763 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12764 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12765 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12766
5982a56a
SM
127672020-03-16 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12770 i386_cygwin_core_osabi_sniffer.
12771
7a1998df
SM
127722020-03-16 Simon Marchi <simon.marchi@efficios.com>
12773
12774 * i386-cygwin-tdep.c: Rename to...
12775 * i386-windows-tdep.c: ... this.
12776 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12777 i386-windows-tdep.c.
12778 * configure.tgt: Likewise.
12779
053205cc
SM
127802020-03-16 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12783 * osabi.c (gdb_osabi_names): Add "Windows".
12784 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12785 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12786 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12787 i386_cygwin_osabi_sniffer.
12788 (_initialize_i386_cygwin_tdep): Register OS ABI
12789 GDB_OSABI_WINDOWS for i386.
12790 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12791 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12792 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12793 for x86-64.
12794 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12795 when the target matches '*-*-mingw*'.
12796
fe4b2ee6
SM
127972020-03-16 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * defs.h (enum gdb_osabi): Move to...
12800 * osabi.h (enum gdb_osabi): ... here.
12801 * gdbarch.sh: Include osabi.h in gdbarch.h.
12802 * gdbarch.h: Re-generate.
12803
cb9b645d
SM
128042020-03-16 Simon Marchi <simon.marchi@efficios.com>
12805
12806 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12807 function.
12808 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12809
3293bbaf
TT
128102020-03-14 Tom Tromey <tom@tromey.com>
12811
12812 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12813 for C++.
12814 (c_type_print_modifier): Likewise. Add "language" parameter.
12815 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12816 (c_type_print_base_1): Update.
12817 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12818 constants.
12819 * type-stack.c (type_stack::insert): Handle tp_atomic and
12820 tp_restrict.
12821 (type_stack::follow_type_instance_flags): Likewise.
12822 (type_stack::follow_types): Likewise. Merge type-following code.
12823 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12824 (space_identifier, cv_with_space_id)
12825 (const_or_volatile_or_space_identifier_noopt)
12826 (const_or_volatile_or_space_identifier): Remove.
12827 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12828 rules.
12829 (ptr_operator, typebase): Update.
12830 (enum token_flag) <FLAG_C>: New constant.
12831 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12832 "_Atomic".
12833 (lex_one_token): Handle FLAG_C.
12834
154151a6
KR
128352020-03-14 Kamil Rytarowski <n54@gmx.com>
12836
12837 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12838 it to the ptrace call.
12839 * m68k-bsd-nat.c (store_registers): Likewise.
12840
bc107784
KR
128412020-03-14 Kamil Rytarowski <n54@gmx.com>
12842
12843 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12844 gdb_byte *.
12845 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12846 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12847 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12848
01a80117
KR
128492020-03-14 Kamil Rytarowski <n54@gmx.com>
12850
12851 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12852 nbsd_nat_target instead of inf_ptrace_target.
12853 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12854 nbsd_nat_target.
12855
f90280ca
KR
128562020-03-14 Kamil Rytarowski <n54@gmx.com>
12857
12858 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12859 register_t.
12860
6def66f1
KR
128612020-03-14 Kamil Rytarowski <n54@gmx.com>
12862
12863 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12864 it to the ptrace call.
12865 * alpha-bsd-nat.c (store_registers): Likewise.
12866
66eaca97
KR
128672020-03-14 Kamil Rytarowski <n54@gmx.com>
12868
12869 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12870 includes.
12871 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12872 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12873 fill_fpregset): Likewise.
12874
4fed520b
KR
128752020-03-14 Kamil Rytarowski <n54@gmx.com>
12876
12877 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12878 nbsd_nat_target instead of inf_ptrace_target.
12879 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12880 nbsd_nat_target.
12881
2190cf06
KR
128822020-03-14 Kamil Rytarowski <n54@gmx.com>
12883
12884 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12885 register_t.
12886
75c56d3d
KR
128872020-03-14 Kamil Rytarowski <n54@gmx.com>
12888
12889 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12890 it to the ptrace call.
12891 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12892 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12893 * arm-nbsd-nat.c (store_register): Likewise.
12894 * arm-nbsd-nat.c (store_regs): Likewise.
12895 * arm-nbsd-nat.c (store_fp_register): Likewise.
12896 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12897
6018d381
KR
128982020-03-14 Kamil Rytarowski <n54@gmx.com>
12899
12900 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12901 nbsd_nat_target instead of inf_ptrace_target.
12902 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12903 nbsd_nat_target.
12904
013f99f0
KR
129052020-03-14 Kamil Rytarowski <n54@gmx.com>
12906
12907 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12908 it to the ptrace call.
12909 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12910
12753073
KR
129112020-03-14 Kamil Rytarowski <n54@gmx.com>
12912
6227b330
KR
12913 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12914 it to the ptrace call.
12915 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12916
129172020-03-14 Kamil Rytarowski <n54@gmx.com>
12918
12919 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12920 gdb_byte *.
12753073
KR
12921 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12922
d5be5fa4
KR
129232020-03-14 Kamil Rytarowski <n54@gmx.com>
12924
12925 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12926 instead of inf_ptrace_target.
12927 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12928 nbsd_nat_target.
12929
8110f842
KR
129302020-03-14 Kamil Rytarowski <n54@gmx.com>
12931
12932 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12933 register_t.
12934
52feded7
KR
129352020-03-14 Kamil Rytarowski <n54@gmx.com>
12936
12937 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12938 register_t.
12939
25567eee
KR
129402020-03-14 Kamil Rytarowski <n54@gmx.com>
12941
12942 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12943 register_t.
12944
426a9c18
TT
129452020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * value.h (val_print): Don't declare.
12948 * valprint.h (val_print_array_elements)
12949 (val_print_scalar_formatted, generic_val_print): Don't declare.
12950 * valprint.c (generic_val_print_array): Take a struct value.
12951 (generic_val_print_ptr, generic_val_print_memberptr)
12952 (generic_val_print_bool, generic_val_print_int)
12953 (generic_val_print_char, generic_val_print_complex)
12954 (generic_val_print): Remove.
12955 (generic_value_print): Update.
12956 (do_val_print): Remove unused parameters. Don't call
12957 la_val_print.
12958 (val_print): Remove.
12959 (common_val_print): Update. Don't call value_check_printable.
12960 (val_print_scalar_formatted, val_print_array_elements): Remove.
12961 * rust-lang.c (rust_val_print): Remove.
12962 (rust_language_defn): Update.
12963 * p-valprint.c (pascal_val_print): Remove.
12964 (pascal_value_print_inner): Update.
12965 (pascal_object_print_val_fields, pascal_object_print_val):
12966 Remove.
12967 (pascal_object_print_static_field): Update.
12968 * p-lang.h (pascal_val_print): Don't declare.
12969 * p-lang.c (pascal_language_defn): Update.
12970 * opencl-lang.c (opencl_language_defn): Update.
12971 * objc-lang.c (objc_language_defn): Update.
12972 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12973 * m2-lang.h (m2_val_print): Don't declare.
12974 * m2-lang.c (m2_language_defn): Update.
12975 * language.h (struct language_defn) <la_val_print>: Remove.
12976 * language.c (unk_lang_value_print_inner): Rename. Change
12977 argument types.
12978 (unknown_language_defn, auto_language_defn): Update.
12979 * go-valprint.c (go_val_print): Remove.
12980 * go-lang.h (go_val_print): Don't declare.
12981 * go-lang.c (go_language_defn): Update.
12982 * f-valprint.c (f_val_print): Remove.
12983 * f-lang.h (f_value_print): Don't declare.
12984 * f-lang.c (f_language_defn): Update.
12985 * d-valprint.c (d_val_print): Remove.
12986 * d-lang.h (d_value_print): Don't declare.
12987 * d-lang.c (d_language_defn): Update.
12988 * cp-valprint.c (cp_print_value_fields)
12989 (cp_print_value_fields_rtti, cp_print_value): Remove.
12990 (cp_print_static_field): Update.
12991 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12992 (c_val_print_struct, c_val_print_union, c_val_print_int)
12993 (c_val_print_memberptr, c_val_print): Remove.
12994 * c-lang.h (c_val_print_array, cp_print_value_fields)
12995 (cp_print_value_fields_rtti): Don't declare.
12996 * c-lang.c (c_language_defn, cplus_language_defn)
12997 (asm_language_defn, minimal_language_defn): Update.
12998 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12999 (ada_val_print_enum): Take a struct value.
13000 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13001 (ada_val_print): Remove.
13002 (ada_value_print_1): Update.
13003 (printable_val_type): Remove.
13004 * ada-lang.h (ada_val_print): Don't declare.
13005 * ada-lang.c (ada_language_defn): Update.
13006
42331a1e
TT
130072020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * valprint.c (do_val_print): Update.
13010 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13011 a struct value.
13012 (value_to_value_object_no_release): Declare.
13013 * python/py-value.c (value_to_value_object_no_release): New
13014 function.
13015 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13016 struct value.
13017 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13018 function.
13019 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13020 a struct value.
13021 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13022 Declare.
13023 (gdbscm_apply_val_pretty_printer): Take a struct value.
13024 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13025 value.
13026 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13027 value.
13028 * extension-priv.h (struct extension_language_ops)
13029 <apply_val_pretty_printer>: Take a struct value.
13030 * cp-valprint.c (cp_print_value): Create a struct value.
13031 (cp_print_value): Update.
13032
3a916a97
TT
130332020-03-13 Tom Tromey <tom@tromey.com>
13034
13035 * ada-valprint.c (print_field_values): Call common_val_print.
13036
b59eac37
TT
130372020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * ada-valprint.c (val_print_packed_array_elements): Remove
13040 bitoffset and val parameters. Call common_val_print.
13041 (ada_val_print_string): Remove offset, address, and original_value
13042 parameters.
13043 (ada_val_print_array): Update.
13044 (ada_value_print_array): New function.
13045 (ada_value_print_1): Call it.
13046
03371129
TT
130472020-03-13 Tom Tromey <tom@tromey.com>
13048
13049 * ada-valprint.c (ada_value_print): Use common_val_print.
13050
2e088f8b
TT
130512020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13054
39ef85a8
TT
130552020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * ada-valprint.c (ada_value_print_num): New function.
13058 (ada_value_print_1): Use it.
13059
b9fa6e07
TT
130602020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13063
416595d6
TT
130642020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * ada-valprint.c (ada_value_print_ptr): New function.
13067 (ada_value_print_1): Use it.
13068
5b5e15ec
TT
130692020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13072 call common_val_print.
13073 (ada_val_print_1): Update.
13074 (ada_value_print_1): New function.
13075 (ada_value_print_inner): Rewrite.
13076
fbf54e75
TT
130772020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * cp-valprint.c (cp_print_value_fields): Update.
13080 (cp_print_value): New function.
13081
64b653ca
TT
130822020-03-13 Tom Tromey <tom@tromey.com>
13083
13084 * m2-valprint.c (m2_value_print_inner): Use
13085 cp_print_value_fields.
13086 * cp-valprint.c (cp_print_value_fields): New function.
13087 * c-valprint.c (c_value_print_struct): New function.
13088 (c_value_print_inner): Use c_value_print_struct.
13089 * c-lang.h (cp_print_value_fields): Declare.
13090
6999f067
TT
130912020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * c-valprint.c (c_value_print_array): New function.
13094 (c_value_print_inner): Use it.
13095
ce80b8bd
TT
130962020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * c-valprint.c (c_value_print_memberptr): New function.
13099 (c_value_print_inner): Use it.
13100
2faac269
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * c-valprint.c (c_value_print_int): New function.
13104 (c_value_print_inner): Use it.
13105
da3e2c29
TT
131062020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * c-valprint.c (c_value_print_ptr): New function.
13109 (c_value_print_inner): Use it.
13110
50836231
TT
131112020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * c-valprint.c (c_value_print_inner): Rewrite.
13114
4f412b6e
TT
131152020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * valprint.c (generic_value_print_complex): New function.
13118 (generic_value_print): Use it.
13119
f5354008
TT
131202020-03-13 Tom Tromey <tom@tromey.com>
13121
13122 * valprint.c (generic_val_print_float): Don't call
13123 val_print_scalar_formatted.
13124 (generic_val_print, generic_value_print): Update.
13125
3eec3b05
TT
131262020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * valprint.c (generic_value_print_char): New function
13129 (generic_value_print): Use it.
13130
fdddfccb
TT
131312020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * valprint.c (generic_value_print_int): New function.
13134 (generic_value_print): Use it.
13135
6dde7521
TT
131362020-03-13 Tom Tromey <tom@tromey.com>
13137
13138 * valprint.c (generic_value_print_bool): New function.
13139 (generic_value_print): Use it.
13140
4112d2e6
TT
131412020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * valprint.c (generic_val_print_func): Simplify.
13144 (generic_val_print, generic_value_print): Update.
13145
65786af6
TT
131462020-03-13 Tom Tromey <tom@tromey.com>
13147
13148 * valprint.c (generic_val_print_flags): Remove.
13149 (generic_val_print, generic_value_print): Update.
13150 (val_print_type_code_flags): Add original_value parameter.
13151
40f3ce18
TT
131522020-03-13 Tom Tromey <tom@tromey.com>
13153
13154 * valprint.c (generic_val_print): Update.
13155 (generic_value_print): Update.
13156 * valprint.c (generic_val_print_enum): Don't call
13157 val_print_scalar_formatted.
13158
2a5b130b
TT
131592020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13162 * valprint.c (generic_value_print_ptr): New function.
13163
abc66ce9
TT
131642020-03-13 Tom Tromey <tom@tromey.com>
13165
13166 * valprint.c (generic_value_print): Rewrite.
13167
07a32858
TT
131682020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * p-valprint.c (pascal_object_print_value_fields)
13171 (pascal_object_print_value): New functions.
13172
64d64d3a
TT
131732020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * p-valprint.c (pascal_value_print_inner): Rewrite.
13176
6a95a1f5
TT
131772020-03-13 Tom Tromey <tom@tromey.com>
13178
13179 * f-valprint.c (f_value_print_innner): Rewrite.
13180
59fcdac6
TT
131812020-03-13 Tom Tromey <tom@tromey.com>
13182
13183 * m2-valprint.c (m2_print_unbounded_array): New overload.
13184 (m2_print_unbounded_array): Update.
13185 (m2_print_array_contents): Take a struct value.
13186 (m2_value_print_inner): Rewrite.
13187
d133c3e1
TT
131882020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13191 (d_value_print_inner): New function.
13192 * d-lang.h (d_value_print_inner): Declare.
13193 * d-lang.c (d_language_defn): Use d_value_print_inner.
13194
23b0f06b
TT
131952020-03-13 Tom Tromey <tom@tromey.com>
13196
13197 * go-valprint.c (go_value_print_inner): New function.
13198 * go-lang.h (go_value_print_inner): Declare.
13199 * go-lang.c (go_language_defn): Use go_value_print_inner.
13200
5f56f7cb
TT
132012020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13204 API.
13205 (rust_val_print): Rewrite.
13206 (rust_value_print_inner): New function, from rust_val_print.
13207 (rust_language_defn): Use rust_value_print_inner.
13208
26792ee0
TT
132092020-03-13 Tom Tromey <tom@tromey.com>
13210
13211 * ada-valprint.c (ada_value_print_inner): New function.
13212 * ada-lang.h (ada_value_print_inner): Declare.
13213 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13214
24051bbe
TT
132152020-03-13 Tom Tromey <tom@tromey.com>
13216
13217 * f-valprint.c (f_value_print_innner): New function.
13218 * f-lang.h (f_value_print_innner): Declare.
13219 * f-lang.c (f_language_defn): Use f_value_print_innner.
13220
c0941be6
TT
132212020-03-13 Tom Tromey <tom@tromey.com>
13222
13223 * p-valprint.c (pascal_value_print_inner): New function.
13224 * p-lang.h (pascal_value_print_inner): Declare.
13225 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13226
62c4663d
TT
132272020-03-13 Tom Tromey <tom@tromey.com>
13228
13229 * m2-valprint.c (m2_value_print_inner): New function.
13230 * m2-lang.h (m2_value_print_inner): Declare.
13231 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13232
62182190
TT
132332020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13236 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13237 * c-valprint.c (c_value_print_inner): New function.
13238 * c-lang.h (c_value_print_inner): Declare.
13239 * c-lang.c (c_language_defn, cplus_language_defn)
13240 (asm_language_defn, minimal_language_defn): Use
13241 c_value_print_inner.
13242
1e592a8a
TT
132432020-03-13 Tom Tromey <tom@tromey.com>
13244
13245 * p-valprint.c (pascal_object_print_value_fields): Now static.
13246 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13247
7fe471e9
TT
132482020-03-13 Tom Tromey <tom@tromey.com>
13249
13250 * c-valprint.c (c_val_print_array): Simplify.
13251
d121c6ce
TT
132522020-03-13 Tom Tromey <tom@tromey.com>
13253
13254 * valprint.c (value_print_array_elements): New function.
13255 * valprint.h (value_print_array_elements): Declare.
13256
4dba70ee
TT
132572020-03-13 Tom Tromey <tom@tromey.com>
13258
13259 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13260 * mips-tdep.c (mips_print_register): Use
13261 value_print_scalar_formatted.
13262
4f9ae810
TT
132632020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * valprint.h (value_print_scalar_formatted): Declare.
13266 * valprint.c (value_print_scalar_formatted): New function.
13267
156bfec9
TT
132682020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * valprint.h (generic_value_print): Declare.
13271 * valprint.c (generic_value_print): New function.
13272
2b4e573d
TT
132732020-03-13 Tom Tromey <tom@tromey.com>
13274
13275 * valprint.c (do_val_print): Call la_value_print_inner, if
13276 available.
13277 * rust-lang.c (rust_language_defn): Update.
13278 * p-lang.c (pascal_language_defn): Update.
13279 * opencl-lang.c (opencl_language_defn): Update.
13280 * objc-lang.c (objc_language_defn): Update.
13281 * m2-lang.c (m2_language_defn): Update.
13282 * language.h (struct language_defn) <la_value_print_inner>: New
13283 member.
13284 * language.c (unknown_language_defn, auto_language_defn): Update.
13285 * go-lang.c (go_language_defn): Update.
13286 * f-lang.c (f_language_defn): Update.
13287 * d-lang.c (d_language_defn): Update.
13288 * c-lang.c (c_language_defn, cplus_language_defn)
13289 (asm_language_defn, minimal_language_defn): Update.
13290 * ada-lang.c (ada_language_defn): Update.
13291
a1f6a07c
TT
132922020-03-13 Tom Tromey <tom@tromey.com>
13293
13294 * c-valprint.c (c_value_print): Use common_val_print.
13295
410cf315
TT
132962020-03-13 Tom Tromey <tom@tromey.com>
13297
13298 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13299
72a45c93
TT
133002020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * f-valprint.c (f77_print_array_1, f_val_print): Use
13303 common_val_print.
13304
040f66bd
TT
133052020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * riscv-tdep.c (riscv_print_one_register_info): Use
13308 common_val_print.
13309
a6e05a6c
TT
133102020-03-13 Tom Tromey <tom@tromey.com>
13311
13312 * mi/mi-main.c (output_register): Use common_val_print.
13313
3444c526
TT
133142020-03-13 Tom Tromey <tom@tromey.com>
13315
13316 * infcmd.c (default_print_one_register_info): Use
13317 common_val_print.
13318
c2a44efe
TT
133192020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * valprint.h (common_val_print_checked): Declare.
13322 * valprint.c (common_val_print_checked): New function.
13323 * stack.c (print_frame_arg): Use common_val_print_checked.
13324
b0c26e99
TT
133252020-03-13 Tom Tromey <tom@tromey.com>
13326
13327 * valprint.c (do_val_print): New function, from val_print.
13328 (val_print): Use do_val_print.
13329 (common_val_print): Use do_val_print.
13330
ce3acbe9
TT
133312020-03-13 Tom Tromey <tom@tromey.com>
13332
13333 * valprint.c (value_print): Use scoped_value_mark.
13334
96c7f873
TV
133352020-03-13 Tom de Vries <tdevries@suse.de>
13336
13337 PR symtab/25646
13338 * psymtab.c (partial_symtab::partial_symtab): Don't set
13339 globals_offset and statics_offset. Push element onto
13340 current_global_psymbols and current_static_psymbols stacks.
13341 (concat): New function.
13342 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13343 element from current_global_psymbols and current_static_psymbols
13344 stacks. Concat popped elements to global_psymbols and
13345 static_symbols.
13346 (add_psymbol_to_list): Use current_global_psymbols and
13347 current_static_psymbols stacks.
13348 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13349 current_static_psymbols fields.
13350
6ba0a321
CB
133512020-03-12 Christian Biesinger <cbiesinger@google.com>
13352
13353 * corelow.c (sniff_core_bfd): Remove.
13354 (class core_target) <m_core_vec>: Remove.
13355 (core_target::core_target): Update.
13356 (core_file_fns): Remove.
13357 (deprecated_add_core_fns): Remove.
13358 (default_core_sniffer): Remove.
13359 (sniff_core_bfd): Remove.
13360 (default_check_format): Remove.
13361 (gdb_check_format): Remove.
13362 (core_target_open): Update.
13363 (core_target::get_core_register_section): Update.
13364 (get_core_registers_cb): Update.
13365 (core_target::fetch_registers): Update.
13366 * gdbcore.h (struct core_fns): Remove.
13367 (deprecated_add_core_fns): Remove.
13368 (default_core_sniffer): Remove.
13369 (default_check_format): Remove.
13370
227031b2
TT
133712020-03-12 Tom Tromey <tom@tromey.com>
13372
13373 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13374 CORE_ADDR.
13375 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13376
53807e9f
TT
133772020-03-12 Tom Tromey <tom@tromey.com>
13378
13379 * remote.c (remote_target::download_tracepoint)
13380 (remote_target::enable_tracepoint)
13381 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13382 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13383 sprintf_vma.
13384
64f25102
TT
133852020-03-12 Tom Tromey <tom@tromey.com>
13386
13387 * symfile-mem.c: Update CORE_ADDR size assert.
13388
272cd5a3
SM
133892020-03-12 Simon Marchi <simon.marchi@efficios.com>
13390
13391 * selftest.m4: Move to gdbsupport/.
13392 * acinclude.m4: Update path to selftest.m4.
13393
74cd3f9d
SM
133942020-03-12 Simon Marchi <simon.marchi@efficios.com>
13395
13396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13397 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13398 gdbarch-selfselftests.c and selftest-arch.c.
13399 (SUBDIR_UNITTESTS_OBS): Rename to...
13400 (SELFTESTS_OBS): ... this.
13401 (COMMON_SFILES): Remove disasm-selftests.c and
13402 gdbarch-selftests.c.
13403 * configure.ac: Don't add selftest-arch.{c,o} to
13404 CONFIG_{SRCS,OBS}.
13405 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13406 preprocessor conditions.
13407
db6878ac
SM
134082020-03-12 Simon Marchi <simon.marchi@efficios.com>
13409
13410 * configure.ac: Don't source bfd/development.sh.
13411 * selftest.m4: Modify comment.
13412 * configure: Re-generate.
13413
4d696a5c
SM
134142020-03-12 Simon Marchi <simon.marchi@efficios.com>
13415
13416 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13417 not "true" or "false".
13418 * configure: Re-generate.
13419
8dd8e1c7
CB
134202020-03-12 Christian Biesinger <cbiesinger@google.com>
13421
13422 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13423 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13424 renamed to arm_nbsd_supply_gregset.
13425 (fetch_register): Update to call arm_nbsd_supply_gregset.
13426 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13427 (arm_netbsd_nat_target::fetch_registers): Update.
13428 (fetch_elfcore_registers): Removed.
13429 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13430 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13431 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13432 not require NetBSD system headers.
13433 (arm_nbsd_regset): New struct.
13434 (arm_nbsd_iterate_over_regset_sections): New function.
13435 (arm_netbsd_init_abi_common): Updated to call
13436 set_gdbarch_iterate_over_regset_sections.
13437 * arm-nbsd-tdep.h: New file.
13438
dd69bf7a
KB
134392020-03-11 Kevin Buettner <kevinb@redhat.com>
13440
13441 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13442 recursion.
13443
a0761e34
SM
134442020-03-11 Simon Marchi <simon.marchi@efficios.com>
13445
13446 * configure: Re-generate.
13447
e7a82140
TT
134482020-03-11 Tom Tromey <tromey@adacore.com>
13449
13450 * ada-typeprint.c (print_choices): Fix comment.
13451
dcc050c8
AB
134522020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13455 previous item in the list, when the list has no items.
13456
1c33af77
TV
134572020-03-11 Tom de Vries <tdevries@suse.de>
13458
13459 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13460 PROP_LOCLIST handling code.
13461
8c95582d
AB
134622020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13463
13464 * buildsym-legacy.c (record_line): Pass extra parameter to
13465 record_line.
13466 * buildsym.c (buildsym_compunit::record_line): Take an extra
13467 parameter, reduce duplication in the line table, and record the
13468 is_stmt flag in the line table.
13469 * buildsym.h (buildsym_compunit::record_line): Add extra
13470 parameter.
13471 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13472 non-statement lines.
13473 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13474 this to the symtab builder.
13475 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13476 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13477 through to dwarf_record_line_1.
13478 * infrun.c (process_event_stop_test): When stepping, don't stop at
13479 a non-statement instruction, and only refresh the step info when
13480 we land in the middle of a line's range. Also add an extra
13481 comment.
13482 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13483 field.
13484 * record-btrace.c (btrace_find_line_range): Only record lines
13485 marked as is-statement.
13486 * stack.c (frame_show_address): Show the frame address if we are
13487 in a non-statement sal.
13488 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13489 (maintenance_print_one_line_table): Print a header for the is_stmt
13490 column, and include is_stmt information in the output.
13491 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13492 preference to non-statements.
13493 (find_pcs_for_symtab_line): Prefer is-statement entries.
13494 (find_line_common): Likewise.
13495 * symtab.h (struct linetable_entry): Add is_stmt field.
13496 (struct symtab_and_line): Likewise.
13497 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13498 arranging the line table.
13499
e4003a34
TV
135002020-03-07 Tom de Vries <tdevries@suse.de>
13501
13502 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13503 DIE.
13504
e8932576
TT
135052020-03-07 Tom Tromey <tom@tromey.com>
13506
13507 * valops.c (value_literal_complex): Remove obsolete comment.
13508 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13509 comment.
13510
29734269
SM
135112020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13512
13513 * infrun.h: Forward-declare thread_info.
13514 (set_step_info): Add thread_info parameter, add doc.
13515 * infrun.c (set_step_info): Add thread_info parameter, move doc
13516 to header.
13517 * infrun.c (process_event_stop_test): Pass thread to
13518 set_step_info call.
13519 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13520 set_step_info.
13521 (prepare_one_step): Add thread_info parameter, pass it to
13522 set_step_frame and prepare_one_step (recursive) call.
13523 (step_1): Pass thread to prepare_one_step call.
13524 (step_command_fsm::should_stop): Pass thread to
13525 prepare_one_step.
13526 (until_next_fsm): Pass thread to set_step_frame call.
13527 (finish_command): Pass thread to set_step_info call.
13528
b7d64b29
HD
135292020-03-06 Hannes Domani <ssbssa@yahoo.de>
13530
13531 * windows-tdep.c (windows_solib_create_inferior_hook):
13532 Check if inferior is running.
13533
09f2921c
TV
135342020-03-06 Tom de Vries <tdevries@suse.de>
13535
13536 * NEWS: Fix "the the".
13537 * ctfread.c: Same.
13538
fd760e79
TV
135392020-03-06 Tom de Vries <tdevries@suse.de>
13540
13541 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13542
20ea4a60
AB
135432020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * .dir-locals.el: Add a comment referencing the other copies of
13546 this file.
13547
0afbabf0
JB
135482020-03-05 John Baldwin <jhb@FreeBSD.org>
13549
13550 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13551 psargs.
13552
842806cb
TBA
135532020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13554
13555 * .gitattributes: New file.
13556
be1e3d3e
TT
135572020-03-04 Tom Tromey <tom@tromey.com>
13558
13559 * symmisc.c (print_symbol_bcache_statistics)
13560 (print_objfile_statistics): Update.
13561 * symfile.c (allocate_symtab): Use intern.
13562 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13563 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13564 macro_cache>: Remove.
13565 <string_cache>: New member.
13566 (struct objfile) <intern>: New methods.
13567 * elfread.c (elf_symtab_read): Use intern.
13568 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13569 (dwarf2_compute_name, dwarf2_physname)
13570 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13571 names.
13572 (guess_partial_die_structure_name): Update.
13573 (partial_die_info::fixup): Intern name.
13574 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13575 name.
13576 (dwarf2_name): Intern name. Update.
13577 * buildsym.c (buildsym_compunit::get_macro_table): Use
13578 string_cache.
13579
4e7625fd
TT
135802020-03-04 Tom Tromey <tom@tromey.com>
13581
13582 * jit.c (bfd_open_from_target_memory): Make "target" const.
13583 * corefile.c (gnutarget): Now const.
13584 * gdbcore.h (gnutarget): Now const.
13585
46f9f931
HD
135862020-03-04 Hannes Domani <ssbssa@yahoo.de>
13587
13588 * NEWS: Mention support for WOW64 processes.
13589 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13590 (amd64_windows_segment_register_p): Remove static.
13591 (_initialize_amd64_windows_nat): Update.
13592 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13593 * i386-windows-nat.c (context_offset): Update.
13594 (i386_mappings): Rename and remove static.
13595 (i386_windows_segment_register_p): Remove static.
13596 (_initialize_i386_windows_nat): Update.
13597 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13598 (STATUS_WX86_SINGLE_STEP): New macro.
13599 (EnumProcessModulesEx): New macro.
13600 (Wow64SuspendThread): New macro.
13601 (Wow64GetThreadContext): New macro.
13602 (Wow64SetThreadContext): New macro.
13603 (Wow64GetThreadSelectorEntry): New macro.
13604 (windows_set_context_register_offsets): Add static.
13605 (windows_set_segment_register_p): Likewise.
13606 (windows_add_thread): Adapt for WOW64 processes.
13607 (windows_fetch_one_register): Likewise.
13608 (windows_nat_target::fetch_registers): Likewise.
13609 (windows_store_one_register): Likewise.
13610 (display_selector): Likewise.
13611 (display_selectors): Likewise.
13612 (handle_exception): Likewise.
13613 (windows_continue): Likewise.
13614 (windows_nat_target::resume): Likewise.
13615 (windows_add_all_dlls): Likewise.
13616 (do_initial_windows_stuff): Likewise.
13617 (windows_nat_target::attach): Likewise.
13618 (windows_get_exec_module_filename): Likewise.
13619 (windows_nat_target::create_inferior): Likewise.
13620 (windows_xfer_siginfo): Likewise.
13621 (_initialize_loadable): Initialize Wow64SuspendThread,
13622 Wow64GetThreadContext, Wow64SetThreadContext,
13623 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13624 * windows-nat.h (windows_set_context_register_offsets):
13625 Remove declaration.
13626 (windows_set_segment_register_p): Likewise.
13627 (i386_windows_segment_register_p): Add declaration.
13628 (amd64_windows_segment_register_p): Likewise.
13629
440cf44e
LM
136302020-03-04 Luis Machado <luis.machado@linaro.org>
13631
13632 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13633 in "info registers" for AArch64/ARM.
13634
13635 The change caused "info registers" to not print GPR's.
13636
13637 gdb/ChangeLog:
13638
13639 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13640
13641 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13642 when reg->group is empty and reggroup is not.
13643
1009d92f
TT
136442020-03-03 Tom Tromey <tromey@adacore.com>
13645
13646 * dwarf2/frame.c (struct dwarf2_frame_cache)
13647 <checked_tailcall_bottom, entry_cfa_sp_offset,
13648 entry_cfa_sp_offset_p>: Remove members.
13649 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13650 (dwarf2_frame_prev_register): Don't call
13651 dwarf2_tailcall_sniffer_first.
13652 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13653 * frame-unwind.c (add_unwinder): New fuction.
13654 (frame_unwind_init): Use it. Add tailcall unwinder.
13655
5e5d66b6
AB
136562020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13657 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13658
13659 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13660 value should be printed as true.
13661
584cf46d
HD
136622020-03-03 Hannes Domani <ssbssa@yahoo.de>
13663
13664 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13665 (windows_init_abi): Set and use windows_so_ops.
13666
7b973adc
SDJ
136672020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13668
13669 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13670 when verifying if dealing with a convenience variable.
13671
bb7b70ab
LM
136722020-03-03 Luis Machado <luis.machado@linaro.org>
13673
13674 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13675
9822cb57
SM
136762020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13677
13678 * infrun.c (gdbarch_supports_displaced_stepping): New.
13679 (use_displaced_stepping): Break up conditions in smaller pieces.
13680 Use gdbarch_supports_displaced_stepping.
13681 (displaced_step_prepare_throw): Use
13682 gdbarch_supports_displaced_stepping.
13683
63e163f2
AB
136842020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * NEWS: Mention new behaviour of the history filename.
13687 * top.c (write_history_p): Add comment.
13688 (show_write_history_p): Add header comment, give a different
13689 message when history writing is on, but the history filename is
13690 empty.
13691 (history_filename): Add comment.
13692 (history_filename_empty): New function.
13693 (show_history_filename): Add header comment, give a different
13694 message when the filename is empty.
13695 (init_history): Compare history_filename against nullptr, and only
13696 read history if the filename is not empty.
13697 (set_history_filename): Add header comment, and only make
13698 non-empty filenames absolute.
13699 (init_main): Make the filename argument to 'set history filename'
13700 optional.
13701
81b86b97
CB
137022020-03-02 Christian Biesinger <cbiesinger@google.com>
13703
13704 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13705 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13706 (fetch_fp_register): Update.
13707 (fetch_fp_regs): Update.
13708 (store_fp_register): Update.
13709 (store_fp_regs): Update.
13710 (arm_netbsd_nat_target::read_description): New function.
13711 (fetch_elfcore_registers): Update.
13712
24ed6739
AB
137132020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13714
13715 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13716 general_thread if the stop reply is missing a thread-id.
13717 (remote_target::process_stop_reply): Use the first non-exited
13718 thread if the target didn't pass a thread-id.
13719 * infrun.c (do_target_wait): Move call to
13720 switch_to_inferior_no_thread to ....
13721 (do_target_wait_1): ... here.
13722
a84bb2a0
JT
137232020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13724
13725 * debuginfod-support.c: Include defs.h first.
13726
658dadf0
TV
137272020-02-28 Tom de Vries <tdevries@suse.de>
13728
13729 * symfile.c (set_initial_language): Use default language for lookup.
13730
4ebe4877
SM
137312020-02-28 Simon Marchi <simon.marchi@efficios.com>
13732
13733 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13734 reader variable, pass `this` to read_cutu_die_from_dwo.
13735
e5da1139
AM
137362020-02-27 Aaron Merey <amerey@redhat.com>
13737
13738 * source.c (open_source_file): Check for nullptr when computing
13739 srcpath.
13740
317f7127
TT
137412020-02-27 Tom Tromey <tromey@adacore.com>
13742
13743 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13744 member.
13745 (dwarf2_add_field): Don't update nfields.
13746 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13747
3104d9ee
AB
137482020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13751 abs.
13752
b83470bf
TT
137532020-02-26 Tom Tromey <tom@tromey.com>
13754
13755 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13756 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13757 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13758 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13759 per_cu_data.
13760
edfe0a0c
TT
137612020-02-26 Tom Tromey <tom@tromey.com>
13762
13763 * dwarf2/index-write.c (psym_index_map): Change type.
13764 (add_address_entry_worker, write_one_signatured_type)
13765 (recursively_count_psymbols, recursively_write_psymbols)
13766 (class debug_names, psyms_seen_size, write_gdbindex)
13767 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13768
0d79cdc4
AM
137692020-02-26 Aaron Merey <amerey@redhat.com>
13770
13771 * Makefile.in: Handle optional debuginfod support.
13772 * NEWS: Update.
13773 * README: Add --with-debuginfod summary.
13774 * config.in: Regenerate.
13775 * configure: Regenerate.
13776 * configure.ac: Handle optional debuginfod support.
13777 * debuginfod-support.c: debuginfod helper functions.
13778 * debuginfod-support.h: Ditto.
13779 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13780 summary.
13781 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13782 when a dwz file cannot be found.
13783 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13784 debuginfo file cannot be found.
13785 * source.c (open_source_file): Query debuginfod servers when a
13786 source file cannot be found.
13787 * top.c (print_gdb_configuration): Include
13788 --{with,without}-debuginfod in the output.
13789
b65ce565
JG
137902020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13791
13792 * thread.c (thr_try_catch_cmd): Print thread name.
13793
d4c9a4f8
SM
137942020-02-26 Simon Marchi <simon.marchi@efficios.com>
13795
13796 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13797 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13798 dwarf2_fetch_die_type_sect_off): Move to...
13799 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13800 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13801 dwarf2_fetch_die_type_sect_off): ... here.
13802 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13803 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13804 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13805
0dce4280
TV
138062020-02-26 Tom de Vries <tdevries@suse.de>
13807
13808 PR gdb/25603
13809 * symfile.c (set_initial_language): Exit-early if
13810 language_mode == language_mode_manual.
13811
450a1bfc
SM
138122020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13813
13814 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13815 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13816 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13817
9e80cfa1
AB
138182020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13819
13820 * gdbtypes.c (create_array_type_with_stride): Handle negative
13821 array strides.
13822 * valarith.c (value_subscripted_rvalue): Likewise.
13823
09624f1f
LM
138242020-02-25 Luis Machado <luis.machado@linaro.org>
13825
13826 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13827
8cb5117c
SM
138282020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13829
13830 * loc.h (dwarf2_get_die_type): Move to...
13831 * read.h (dwarf2_get_die_type): ... here.
13832 * read.c (dwarf2_get_die_type): Move doc to header.
13833
c325c44e
JB
138342020-02-25 Joel Brobecker <brobecker@adacore.com>
13835
13836 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13837 'gnulib/Makefile.in' to the list.
13838
4ac93832
TT
138392020-02-24 Tom Tromey <tom@tromey.com>
13840
13841 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13842 Remove.
13843 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13844 XOBNEWVEC.
13845
197400e8
TT
138462020-02-24 Tom Tromey <tom@tromey.com>
13847
13848 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13849 New method.
13850 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13851 (dw2_do_instantiate_symtab, dw2_get_file_names)
13852 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13853
76935768
TT
138542020-02-24 Tom Tromey <tom@tromey.com>
13855
13856 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13857 make_scoped_restore.
13858 (dwarf2_psymtab::read_symtab): Don't clear
13859 reading_partial_symbols.
13860
a88ef40d
TV
138612020-02-24 Tom de Vries <tdevries@suse.de>
13862
13863 PR gdb/25592
13864 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13865
c9af6521
TV
138662020-02-24 Tom de Vries <tdevries@suse.de>
13867
13868 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13869 commands layout next/prev/regs.
13870
5707a07a
TT
138712020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13874 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13875
3b0fb49e
TT
138762020-02-22 Tom Tromey <tom@tromey.com>
13877
13878 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13879
283be8bf
TT
138802020-02-22 Tom Tromey <tom@tromey.com>
13881
13882 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13883 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13884 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13885 * tui/tui.c (_initialize_tui): Add usage text.
13886
ca793b96
TT
138872020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * tui/tui-win.c (tui_set_focus_command)
13890 (tui_set_win_height_command): Use error_no_arg.
13891 (_initialize_tui_win): Update help text.
13892 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13893
432b5c40
TT
138942020-02-22 Tom Tromey <tom@tromey.com>
13895
13896 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13897 * tui/tui-disasm.h (struct tui_disasm_window)
13898 <display_start_addr>: Declare.
13899 * tui/tui-source.h (struct tui_source_window)
13900 <display_start_addr>: Declare.
13901 * tui/tui-winsource.h (struct tui_source_window_base)
13902 <show_source_line, display_start_addr>: New methods.
13903 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13904 Rename and move to protected section.
13905 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13906 (tui_source_window_base::do_erase_source_content): Update.
13907 (tui_source_window_base::show_source_line): Now a method.
13908 (tui_source_window_base::show_source_content)
13909 (tui_source_window_base::tui_source_window_base)
13910 (tui_source_window_base::rerender)
13911 (tui_source_window_base::refill)
13912 (tui_source_window_base::do_scroll_horizontal)
13913 (tui_source_window_base::set_is_exec_point_at)
13914 (tui_source_window_base::update_breakpoint_info)
13915 (tui_source_window_base::update_exec_info): Update.
13916 * tui/tui-source.c (tui_source_window::set_contents)
13917 (tui_source_window::showing_source_p)
13918 (tui_source_window::do_scroll_vertical)
13919 (tui_source_window::location_matches_p)
13920 (tui_source_window::line_is_displayed): Update.
13921 (tui_source_window::display_start_addr): New method.
13922 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13923 (tui_disasm_window::do_scroll_vertical)
13924 (tui_disasm_window::location_matches_p): Update.
13925 (tui_disasm_window::display_start_addr): New method.
13926
01b1af32
TT
139272020-02-22 Tom Tromey <tom@tromey.com>
13928
13929 * NEWS: Add entry for gdb.register_window_type.
13930 * tui/tui-layout.h (window_factory): New typedef.
13931 (tui_register_window): Declare.
13932 * tui/tui-layout.c (saved_tui_windows): New global.
13933 (tui_apply_current_layout): Use it.
13934 (tui_register_window): New function.
13935 * python/python.c (do_start_initialization): Call
13936 gdbpy_initialize_tui.
13937 (python_GdbMethods): Add "register_window_type" function.
13938 * python/python-internal.h (gdbpy_register_tui_window)
13939 (gdbpy_initialize_tui): Declare.
13940 * python/py-tui.c: New file.
13941 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13942
fc96d20b
TT
139432020-02-22 Tom Tromey <tom@tromey.com>
13944
13945 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13946
935c78c0
TT
139472020-02-22 Tom Tromey <tom@tromey.com>
13948
13949 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13950 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13951 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13952 (tui_set_win_focus_to): Move from tui-win.c.
13953
0240c8f1
TT
139542020-02-22 Tom Tromey <tom@tromey.com>
13955
13956 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13957 functions.
13958 (known_window_types): New global.
13959 (tui_get_window_by_name): Reimplement.
13960 (initialize_known_windows): New function.
13961 (validate_window_name): Rewrite.
13962 (_initialize_tui_layout): Call initialize_known_windows.
13963
fdb01f0c
TT
139642020-02-22 Tom Tromey <tom@tromey.com>
13965
13966 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13967 Remove constants.
13968 * tui/tui-winsource.h (struct tui_source_window_base)
13969 <tui_source_window_base>: Remove parameter.
13970 * tui/tui-winsource.c
13971 (tui_source_window_base::tui_source_window_base): Remove
13972 parameter.
13973 (tui_source_window_base::refill): Update.
13974 * tui/tui-stack.h (struct tui_locator_window)
13975 <tui_locator_window>: Update.
13976 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13977 Default the constructor.
13978 * tui/tui-regs.h (struct tui_data_item_window)
13979 <tui_data_item_window>: Default the constructor.
13980 (struct tui_data_window) <tui_data_window>: Likewise.
13981 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13982 Default the constructor.
13983 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13984 Default the constructor.
13985 <type>: Remove.
13986 (struct tui_win_info) <tui_win_info>: Default the constructor.
13987 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13988 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13989 Default the constructor.
13990
865a5aec
TT
139912020-02-22 Tom Tromey <tom@tromey.com>
13992
13993 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13994 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13995 * tui/tui-win.c (tui_resize_all): Don't call
13996 tui_delete_invisible_windows.
13997 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13998 done.
13999 (tui_set_layout): Update.
14000 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14001 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14002 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14003
e098d18c
TT
140042020-02-22 Tom Tromey <tom@tromey.com>
14005
14006 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14007 correctly.
14008
eb9c8874
TT
140092020-02-22 Tom Tromey <tom@tromey.com>
14010
14011 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14012
7eed1a8e
TT
140132020-02-22 Tom Tromey <tom@tromey.com>
14014
14015 * tui/tui-winsource.h (struct tui_source_window_iterator)
14016 <inner_iterator>: New etytypedef.
14017 <tui_source_window_iterator>: Take "end" parameter.
14018 <tui_source_window_iterator>: Take iterator.
14019 <operator*, advance>: Update.
14020 <m_iter>: Change type.
14021 <m_end>: New field.
14022 (struct tui_source_windows) <begin, end>: Update.
14023 * tui/tui-layout.c (tui_windows): New global.
14024 (tui_apply_current_layout): Clear tui_windows.
14025 (tui_layout_window::apply): Update tui_windows.
14026 * tui/tui-data.h (tui_windows): Declare.
14027 (all_tui_windows): Now inline function.
14028 (class tui_window_iterator, struct all_tui_windows): Remove.
14029
7c043ba6
TT
140302020-02-22 Tom Tromey <tom@tromey.com>
14031
14032 PR tui/17850:
14033 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14034 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14035 "height" argument.
14036 (class tui_layout_window) <get_sizes>: Likewise.
14037 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14038 argument.
14039 <get_sizes>: Add "height" argument.
14040 <m_vertical>: New field.
14041 * tui/tui-layout.c (tui_layout_split::clone): Update.
14042 (tui_layout_split::get_sizes): Add "height" argument.
14043 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14044 (tui_new_layout_command): Parse "-horizontal".
14045 (_initialize_tui_layout): Update help string.
14046 (tui_layout_split::specification): Add "-horizontal" when needed.
14047 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14048 argument.
14049 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14050 New methods.
14051
6bc56648
TT
140522020-02-22 Tom Tromey <tom@tromey.com>
14053
14054 * tui/tui-layout.h (enum tui_adjust_result): New.
14055 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14056 (class tui_layout_window) <adjust_size>: Return
14057 tui_adjust_result. Rewrite.
14058 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14059 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14060
c22fef7e
TT
140612020-02-22 Tom Tromey <tom@tromey.com>
14062
14063 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14064 parameter and return types.
14065 (class tui_layout_base) <specification>: Add "depth".
14066 (class tui_layout_window) <specification>: Add "depth".
14067 (class tui_layout_split) <specification>: Add "depth".
14068 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14069 and return types.
14070 (tui_new_layout_command): Parse sub-layouts.
14071 (_initialize_tui_layout): Update help string.
14072 (tui_layout_window::specification): Add "depth".
14073 (add_layout_command): Update.
14074
ee325b61
TT
140752020-02-22 Tom Tromey <tom@tromey.com>
14076
14077 * NEWS: Add "tui new-layout" item.
14078 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14079 Add new-layout command to help text.
14080 (validate_window_name): New function.
14081 (tui_new_layout_command): New function.
14082 (_initialize_tui_layout): Register "new-layout".
14083 (tui_layout_window::specification): New method.
14084 (tui_layout_window::specification): New method.
14085 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14086 method.
14087 (class tui_layout_window) <specification>: New method.
14088 (class tui_layout_split) <specification>: New method.
14089
416eb92d
TT
140902020-02-22 Tom Tromey <tom@tromey.com>
14091
14092 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14093 * tui/tui-win.c (window_name_completer): Update comment.
14094 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14095 Declare method.
14096 (class tui_layout_window) <replace_window>: Likewise.
14097 (class tui_layout_split) <replace_window>: Likewise.
14098 (tui_set_layout): Don't declare.
14099 (tui_set_initial_layout): Declare function.
14100 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14101 (asm_regs_layout): New globals.
14102 (tui_current_layout, show_layout): Remove.
14103 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14104 (find_layout, tui_apply_layout): New function.
14105 (layout_completer): Remove.
14106 (tui_next_layout): Reimplement.
14107 (tui_next_layout_command): New function.
14108 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14109 (tui_regs_layout): Reimplement.
14110 (tui_regs_layout_command): New function.
14111 (extract_display_start_addr): Rewrite.
14112 (next_layout, prev_layout): Remove.
14113 (tui_layout_window::replace_window): New method.
14114 (tui_layout_split::replace_window): New method.
14115 (destroy_layout): New function.
14116 (layout_list): New global.
14117 (add_layout_command): New function.
14118 (initialize_layouts): Update.
14119 (tui_layout_command): New function.
14120 (_initialize_tui_layout): Install "layout" commands.
14121 * tui/tui-data.h (enum tui_layout_type): Remove.
14122 (tui_current_layout): Don't declare.
14123
0dbc2fc7
TT
141242020-02-22 Tom Tromey <tom@tromey.com>
14125
14126 * tui/tui-regs.c (tui_reg_layout): Remove.
14127 (tui_reg_command): Use tui_regs_layout.
14128 * tui/tui-layout.h (tui_reg_command): Declare.
14129 * tui/tui-layout.c (tui_reg_command): New function.
14130
5afe342e
TT
141312020-02-22 Tom Tromey <tom@tromey.com>
14132
14133 * tui/tui.c (tui_rl_delete_other_windows): Call
14134 tui_remove_some_windows.
14135 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14136 Declare method.
14137 (class tui_layout_window) <remove_windows>: New method.
14138 (class tui_layout_split) <remove_windows>: Declare.
14139 (tui_remove_some_windows): Declare.
14140 * tui/tui-layout.c (tui_remove_some_windows): New function.
14141 (tui_layout_split::remove_windows): New method.
14142
427326a8
TT
141432020-02-22 Tom Tromey <tom@tromey.com>
14144
14145 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14146 * tui/tui-layout.h (tui_next_layout): Declare.
14147 * tui/tui-layout.c (tui_next_layout): New function.
14148
3fe12b6d
TT
141492020-02-22 Tom Tromey <tom@tromey.com>
14150
14151 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14152 correct coordinates.
14153
59b8b5d2
TT
141542020-02-22 Tom Tromey <tom@tromey.com>
14155
14156 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14157 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14158 DATA_WIN case.
14159
2a3d458b
TT
141602020-02-22 Tom Tromey <tom@tromey.com>
14161
14162 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14163 TUI_DISASM_WIN, not tui_win_list.
14164
3f0cbb04
TT
141652020-02-22 Tom Tromey <tom@tromey.com>
14166
14167 * valprint.c (generic_val_print_enum_1)
14168 (val_print_type_code_flags): Style member names.
14169 * rust-lang.c (val_print_struct, rust_print_enum)
14170 (rust_print_struct_def, rust_internal_print_type): Style member
14171 names.
14172 * p-valprint.c (pascal_object_print_value_fields): Style member
14173 names. Only call fprintf_symbol_filtered for static members.
14174 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14175 * f-valprint.c (f_val_print): Style member names.
14176 * f-typeprint.c (f_type_print_base): Style member names.
14177 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14178 call fprintf_symbol_filtered for static members.
14179 (cp_print_class_member): Style member names.
14180 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14181 member names.
14182 * ada-valprint.c (ada_print_scalar): Style enum names.
14183 (ada_val_print_enum): Likewise.
14184 * ada-typeprint.c (print_enum_type): Style enum names.
14185
d4d947ae
TT
141862020-02-21 Tom Tromey <tom@tromey.com>
14187
14188 * psympriv.h (struct partial_symtab): Update comment.
14189
e94e944b
TT
141902020-02-21 Tom Tromey <tromey@adacore.com>
14191
14192 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14193 type is CORE_ADDR.
14194
1eb73179
TV
141952020-02-21 Tom de Vries <tdevries@suse.de>
14196
14197 PR gdb/25534
14198 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14199 if dependencies[i]->user != NULL.
14200
4f180d53
AT
142012020-02-21 Ali Tamur <tamur@google.com>
14202
14203 * dwarf2/read.c (dwarf2_name): Add null check.
14204
22b6cd70
TT
142052020-02-20 Tom Tromey <tom@tromey.com>
14206
14207 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14208 ">=", in binary search.
14209 (dwarf2_find_containing_comp_unit): New overload.
14210 (run_test): New self-test.
14211 (_initialize_dwarf2_read): Register new test.
14212
bd0cf5a6
NC
142132020-02-20 Nelson Chu <nelson.chu@sifive.com>
14214
14215 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14216 * riscv-tdep.h: Likewise.
14217 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14218 rv32-only CSR.
14219 * features/riscv/64bit-csr.xml: Regenerated.
14220
3f702acd
SDJ
142212020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14222 Tom Tromey <tom@tromey.com>
14223
14224 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14225 of 'fputc_unfiltered'.
14226 (putchar_unfiltered): Call 'fputc_unfiltered'.
14227 (fputc_unfiltered): Call 'fputs_unfiltered'.
14228
d13c7322
AB
142292020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * config.in: Regenerate.
14232 * configure: Regenerate.
14233 * configure.ac: Add --with-python-libdir option.
14234 * main.c: Use WITH_PYTHON_LIBDIR.
14235
869d8950
TT
142362020-02-19 Tom Tromey <tom@tromey.com>
14237
14238 * symtab.c (general_symbol_info::compute_and_set_names): Use
14239 obstack_strndup. Simplify call to symbol_set_demangled_name.
14240
298e9637
SM
142412020-02-19 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * dwarf2/read.c (allocate_signatured_type_table,
14244 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14245 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14246 Remove objfile parameter, update all callers.
14247
08410482
DE
142482020-02-19 Doug Evans <dje@google.com>
14249
14250 PR rust/25535
14251 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14252 rust_enum_variant calculation.
14253
dfdeeca1
TT
142542020-02-19 Tom Tromey <tromey@adacore.com>
14255
14256 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14257
2ef5453b
TT
142582020-02-19 Tom Tromey <tromey@adacore.com>
14259
14260 * ada-lang.c (cache_symbol): Use obstack_strdup.
14261
9f1528a1
AB
142622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14263
14264 * configure: Regenerate.
14265
d3c22fa8
TT
142662020-02-19 Tom Tromey <tromey@adacore.com>
14267
14268 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14269 NULL check.
14270
bf84f706
MR
142712020-02-19 Maciej W. Rozycki <macro@wdc.com>
14272
14273 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14274
d1c9b20f
AB
142752020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14276
14277 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14278 if GDBSERVER is not defined.
14279 (riscv_tdesc_cache): Likewise, also store const target_desc.
14280 (STATIC_IN_GDB): Define.
14281 (riscv_create_target_description): Update declaration with
14282 STATIC_IN_GDB.
14283 (riscv_lookup_target_description): New function, only define if
14284 GDBSERVER is not defined.
14285 * arch/riscv.h (riscv_create_target_description): Declare only
14286 when GDBSERVER is defined.
14287 (riscv_lookup_target_description): New declaration when GDBSERVER
14288 is not defined.
14289 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14290 (riscv_linux_read_features): ...this, and return
14291 riscv_gdbarch_features instead of target_desc.
14292 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14293 (riscv_linux_read_description): Rename to...
14294 (riscv_linux_read_features): ...this.
14295 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14296 Update to use riscv_gdbarch_features and
14297 riscv_lookup_target_description.
14298 * riscv-tdep.c (riscv_find_default_target_description): Use
14299 riscv_lookup_target_description instead of
14300 riscv_create_target_description.
14301
373d7ac0
SM
143022020-02-18 Simon Marchi <simon.marchi@efficios.com>
14303
14304 * valprint.c (generic_val_print_enum_1): When printing a flag
14305 enum with value 0 and there is no enumerator with value 0, print
14306 just "0" instead of "(unknown: 0x0)".
14307
b29a2df0
SM
143082020-02-18 Simon Marchi <simon.marchi@efficios.com>
14309
14310 * valprint.c (generic_val_print_enum_1): Print unknown part of
14311 flag enum in hex.
14312
6740f0cc
SM
143132020-02-18 Simon Marchi <simon.marchi@efficios.com>
14314
14315 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14316 flag enums to contain duplicate enumerators.
14317 * valprint.c (generic_val_print_enum_1): Update comment.
14318
edd45eb0
SM
143192020-02-18 Simon Marchi <simon.marchi@efficios.com>
14320
14321 * dwarf2/read.c: Include "count-one-bits.h".
14322 (update_enumeration_type_from_children): If an enumerator has
14323 multiple bits set, don't treat the enumeration as a "flag enum".
14324 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14325 of flag enums have 0 or 1 bit set.
14326
6d0cf446
BE
143272020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14328
14329 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14330 conversion.
14331 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14332 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14333 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14334 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14335 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14336
7001c1b7
SM
143372020-02-18 Simon Marchi <simon.marchi@efficios.com>
14338
14339 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14340
fdb61c6c
SM
143412020-02-14 Simon Marchi <simon.marchi@efficios.com>
14342
14343 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14344 displaced_step_closure_up.
14345 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14346 (struct displaced_step_closure_up):
14347 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14348 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14349 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14350 Likewise.
14351 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14352 * gdbarch.c, gdbarch.h: Re-generate.
14353 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14354 displaced_step_closure_up.
14355 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14356 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14357 * infrun.h (displaced_step_closure_up): New type alias.
14358 (struct displaced_step_inferior_state) <step_closure>: Change
14359 type to displaced_step_closure_up.
14360 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14361 displaced_step_closure_up.
14362 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14363
a4a38eb4
TT
143642020-02-14 Tom Tromey <tom@tromey.com>
14365
14366 * minidebug.c (gnu_debug_key): New global.
14367 (find_separate_debug_file_in_section): Use it.
14368
e8217e61
SM
143692020-02-14 Simon Marchi <simon.marchi@efficios.com>
14370
14371 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14372 std::unique_ptr.
14373 * gdbarch.c: Re-generate.
14374 * gdbarch.h: Re-generate.
14375 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14376 change.
14377 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14378 type to std::unique_ptr.
14379 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14380 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14381 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14382 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14383 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14384 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14385 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14386 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14387 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14388
d8d83535
SM
143892020-02-14 Simon Marchi <simon.marchi@efficios.com>
14390
14391 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14392 std::unique_ptr.
14393 (displaced_step_clear): Rename to...
14394 (displaced_step_reset): ... this. Just call displaced->reset ().
14395 (displaced_step_clear_cleanup): Rename to...
14396 (displaced_step_reset_cleanup): ... this.
14397 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14398 (displaced_step_fixup): Likewise.
14399 (resume_1): Likewise.
14400 (handle_inferior_event): Restore child's memory before calling
14401 displaced_step_fixup on the parent.
14402 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14403 to std::unique_ptr.
14404 <step_closure>: Change type to std::unique_ptr.
14405
5f661e03
SM
144062020-02-14 Simon Marchi <simon.marchi@efficios.com>
14407
14408 * arm-tdep.c: Include count-one-bits.h.
14409 (cleanup_block_store_pc): Use count_one_bits.
14410 (cleanup_block_load_pc): Use count_one_bits.
14411 (arm_copy_block_xfer): Use count_one_bits.
14412 (thumb2_copy_block_xfer): Use count_one_bits.
14413 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14414 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14415 (thumb_get_next_pcs_raw): Use count_one_bits.
14416 (arm_get_next_pcs_raw): Use count_one_bits_l.
14417 * arch/arm.c (bitcount): Remove.
14418 * arch/arm.h (bitcount): Remove.
14419
8084e579
TT
144202020-02-14 Tom Tromey <tromey@adacore.com>
14421
14422 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14423 Update.
14424 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14425 * dwarf2/loc.c (call_site_find_chain_1): Return
14426 unique_xmalloc_ptr.
14427 (call_site_find_chain): Likewise.
14428
258bf0ee
RB
144292020-02-14 Richard Biener <rguenther@suse.de>
14430
14431 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14432 on expression with division operators.
14433
f98a8458
AKS
144342020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14435
14436 * MAINTAINERS (Write After Approval): Adding myself.
14437
d1437c0e
TT
144382020-02-12 Tom Tromey <tom@tromey.com>
14439
14440 * event-loop.c (event_data, gdb_event, event_handler_func):
14441 Remove.
14442
3d4560f7
TT
144432020-02-12 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14446 (dwarf2_frame_objfile_data): Add comment.
14447 (find_comp_unit, set_comp_unit): New functions.
14448 (dwarf2_frame_find_fde): Use find_comp_unit.
14449 (dwarf2_build_frame_info): Use set_comp_unit.
14450
21982304
TT
144512020-02-12 Tom Tromey <tom@tromey.com>
14452
14453 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14454 (comp_unit): Don't initialize objfile.
14455 (execute_cfa_program): Add text_offset parameter.
14456 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14457 (dwarf2_frame_cache): Update.
14458 (dwarf2_build_frame_info): Don't set "objfile" member.
14459
4debb237
TT
144602020-02-12 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14463 (decode_frame_entry): Likewise.
14464 (dwarf2_build_frame_info): Update.
14465
0d404d44
TT
144662020-02-12 Tom Tromey <tom@tromey.com>
14467
14468 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14469 (decode_frame_entry_1): Use the comp_unit obstack.
14470
a7a3ae5c
TT
144712020-02-12 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/frame.c (struct comp_unit): Add initializers and
14474 constructor.
14475 (dwarf2_frame_objfile_data): Store a comp_unit.
14476 (dwarf2_frame_find_fde): Update.
14477 (dwarf2_build_frame_info): Use "new".
14478
a9d65418
TT
144792020-02-12 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14482 (dwarf2_fde_table): Typedef for std::vector.
14483 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14484 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14485 (decode_frame_entry): Update.
14486 (dwarf2_build_frame_info): Use "new".
14487
7559c217
CB
144882020-02-12 Christian Biesinger <cbiesinger@google.com>
14489
14490 * arm-tdep.c (arm_gdbarch_init): Update.
14491 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14492 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14493 have_neon, is_m>: Change to bool.
14494
aeefc73c
CB
144952020-02-12 Christian Biesinger <cbiesinger@google.com>
14496
14497 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14498
d27b8e5f
TT
144992020-02-12 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14502
cd5900f3
HD
145032020-02-12 Hannes Domani <ssbssa@yahoo.de>
14504
14505 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14506 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14507
f056b22b
TT
145082020-02-11 Tom Tromey <tom@tromey.com>
14509
14510 * psymtab.h: Update comment.
14511
f92ff6b5
TT
145122020-02-11 Tom Tromey <tom@tromey.com>
14513
14514 * gdb_obstack.h (struct auto_obstack): Use
14515 DISABLE_COPY_AND_ASSIGN.
14516
3fd6912b
TT
145172020-02-11 Tom Tromey <tom@tromey.com>
14518
14519 * dwarf2/frame.h (struct objfile): Don't forward declare.
14520
69ed9b74
CB
145212020-02-11 Christian Biesinger <cbiesinger@google.com>
14522
14523 * cris-tdep.c (cris_supply_gregset): Change signature to match
14524 what struct regset expects.
14525 (cris_regset): New struct.
14526 (fetch_core_registers): Remove.
14527 (cris_iterate_over_regset_sections): New function.
14528 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14529 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14530
bda874f6
CB
145312020-02-11 Christian Biesinger <cbiesinger@google.com>
14532
14533 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14534 registers.
14535
754e1564
CB
145362020-02-11 Christian Biesinger <cbiesinger@google.com>
14537
14538 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14539
8ddd8e0e
SM
145402020-02-11 Simon Marchi <simon.marchi@efficios.com>
14541
14542 * configure: Re-generate.
14543
898e7f60
SM
145442020-02-11 Simon Marchi <simon.marchi@efficios.com>
14545
14546 * configure: Re-generate.
14547
58df732b
SM
145482020-02-11 Simon Marchi <simon.marchi@efficios.com>
14549
14550 * acinclude: Update warning.m4 path.
14551 * warning.m4: Move to gdbsupport.
14552
da5bd37e
TT
145532020-02-11 Tom Tromey <tromey@adacore.com>
14554
14555 * remote.c (remote_console_output): Update.
14556 * printcmd.c (printf_command): Update.
14557 * event-loop.c (gdb_wait_for_event): Update.
14558 * linux-nat.c (sigchld_handler): Update.
14559 * remote-sim.c (gdb_os_write_stdout): Update.
14560 (gdb_os_flush_stdout): Update.
14561 (gdb_os_flush_stderr): Update.
14562 (gdb_os_write_stderr): Update.
14563 * exceptions.c (print_exception): Update.
14564 * remote-fileio.c (remote_fileio_func_read): Update.
14565 (remote_fileio_func_write): Update.
14566 * tui/tui.c (tui_enable): Update.
14567 * tui/tui-interp.c (tui_interp::init): Update.
14568 * utils.c (init_page_info): Update.
14569 (putchar_unfiltered, fputc_unfiltered): Update.
14570 (gdb_flush): Update.
14571 (emit_style_escape): Update.
14572 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14573 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14574 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14575 (stderr_file::write): Update.
14576 (stderr_file::puts): Update.
14577 * ui-file.h (ui_file_isatty, ui_file_write)
14578 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14579 (ui_file_puts): Don't declare.
14580
85f0dd3c
TV
145812020-02-10 Tom de Vries <tdevries@suse.de>
14582
14583 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14584 sentinel to char *.
14585
2e927613
TV
145862020-02-09 Tom de Vries <tdevries@suse.de>
14587
14588 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14589 filename if it matches "<artificial>".
14590
6bafc845
HD
145912020-02-09 Hannes Domani <ssbssa@yahoo.de>
14592
14593 * windows-tdep.c (struct enum_value_name): New struct.
14594 (create_enum): New function.
14595 (windows_get_siginfo_type): Create and use enum types.
14596
7928d571
HD
145972020-02-09 Hannes Domani <ssbssa@yahoo.de>
14598
14599 * NEWS: Mention $_siginfo support for Windows.
14600 * windows-nat.c (handle_exception): Set siginfo_er.
14601 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14602 (windows_xfer_siginfo): New function.
14603 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14604 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14605 (init_windows_gdbarch_data): New function.
14606 (get_windows_gdbarch_data): New function.
14607 (windows_get_siginfo_type): New function.
14608 (windows_init_abi): Register windows_get_siginfo_type.
14609 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14610
6751ebae
TT
146112020-02-08 Tom Tromey <tom@tromey.com>
14612
14613 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14614 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14615 <keep>: Declare method.
14616 <m_keep>: Remove member.
14617 <~cutu_reader>: Remove.
14618 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14619 (cutu_reader::cutu_reader): Update.
14620 (cutu_reader::keep): Rename from ~cutu_reader.
14621 (process_psymtab_comp_unit, build_type_psymtabs_1)
14622 (process_skeletonless_type_unit, load_partial_comp_unit)
14623 (load_full_comp_unit, dwarf2_read_addr_index)
14624 (read_signatured_type): Update.
14625
135f5437
TT
146262020-02-08 Tom Tromey <tom@tromey.com>
14627
14628 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14629 "want_partial_unit" parameter.
14630 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14631 Inline check for DW_TAG_partial_unit.
14632 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14633
9f66ff1c
TT
146342020-02-08 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14637 read.c.
14638 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14639 read.c.
14640
c8a7a66f
TT
146412020-02-08 Tom Tromey <tom@tromey.com>
14642
14643 * dwarf2/read.c (read_address): Move to comp-unit.c.
14644 (dwarf2_rnglists_process, dwarf2_ranges_process)
14645 (read_attribute_value, dwarf_decode_lines_1)
14646 (var_decode_location, decode_locdesc): Update.
14647 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14648 read.c. Remove "cu" parameter.
14649 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14650 method.
14651
8266302d
TT
146522020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14655 (read_indirect_line_string): Update.
14656 * dwarf2/comp-unit.c (read_offset): Remove.
14657 (read_comp_unit_head): Update.
14658 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14659 method.
14660 (read_offset): Don't declare.
14661
4057dfde
TT
146622020-02-08 Tom Tromey <tom@tromey.com>
14663
14664 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14665 * dwarf2/read.c (struct comp_unit_head): Move to
14666 dwarf2/comp-unit.h.
14667 (enum class rcuh_kind): Move to comp-unit.h.
14668 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14669 (read_comp_unit_head, error_check_comp_unit_head)
14670 (read_and_check_comp_unit_head): Move to comp-unit.c.
14671 (read_offset, dwarf_unit_type_name): Likewise.
14672 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14673 (cutu_reader::cutu_reader, read_call_site_scope)
14674 (find_partial_die, follow_die_offset): Update.
14675 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14676
24aa364d
TT
146772020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2/read.c (read_offset_1): Move to leb.c.
14680 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14681 (dwarf_decode_macro_bytes): Update.
14682 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14683 * dwarf2/leb.h (read_offset): Declare.
14684
2c7d5afc
TT
146852020-02-08 Tom Tromey <tom@tromey.com>
14686
14687 * dwarf2/read.c (dwarf2_section_size): Remove.
14688 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14689 Update.
14690 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14691
4075cb26
TT
146922020-02-08 Tom Tromey <tom@tromey.com>
14693
14694 * dwarf2/read.c (read_initial_length): Move to leb.c.
14695 * dwarf2/leb.h (read_initial_length): Declare.
14696 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14697 handle_nonstd parameter.
14698 * dwarf2/frame.c (read_initial_length): Remove.
14699 (decode_frame_entry_1): Update.
14700
09ba997f
TT
147012020-02-08 Tom Tromey <tom@tromey.com>
14702
14703 * dwarf2/loc.c (dwarf2_find_location_expression)
14704 (dwarf_evaluate_loc_desc::get_tls_address)
14705 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14706 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14707 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14708 (dwarf2_compile_property_to_c)
14709 (dwarf2_loc_desc_get_symbol_read_needs)
14710 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14711 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14712 (loclist_describe_location, loclist_tracepoint_var_ref)
14713 (loclist_generate_c_location): Update.
14714 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14715 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14716 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14717 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14718 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14719 (dwarf2_per_cu_data::addr_size)
14720 (dwarf2_per_cu_data::ref_addr_size)
14721 (dwarf2_per_cu_data::text_offset)
14722 (dwarf2_per_cu_data::addr_type): Now methods.
14723 (per_cu_header_read_in): Make per_cu "const".
14724 (dwarf2_version): Remove.
14725 (dwarf2_per_cu_data::int_type): Now a method.
14726 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14727 (set_die_type, read_array_type, read_subrange_index_type)
14728 (read_tag_string_type, read_subrange_type): Update.
14729 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14730 offset_size, ref_addr_size, text_offset, addr_type, version,
14731 objfile, int_type, addr_sized_int_type>: Declare methods.
14732
96c738c0
TT
147332020-02-08 Tom Tromey <tom@tromey.com>
14734
14735 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14736 Move earlier.
14737
8fdd972c
TT
147382020-02-08 Tom Tromey <tom@tromey.com>
14739
14740 * dwarf2/read.h (dwarf_line_debug): Declare.
14741 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14742 * dwarf2/read.c: Move line_header code to new files.
14743 (dwarf_line_debug): No longer static.
14744 * dwarf2/line-header.c: New file.
14745 * dwarf2/line-header.h: New file.
14746
03075812
TT
147472020-02-08 Tom Tromey <tom@tromey.com>
14748
14749 * dwarf2/read.c (struct line_header) <file_full_name,
14750 file_file_name>: Return unique_xmalloc_ptr.
14751 (line_header::file_file_name): Update.
14752 (line_header::file_full_name): Update.
14753 (dw2_get_file_names_reader): Update.
14754 (macro_start_file): Update.
14755
bb822404
TT
147562020-02-08 Tom Tromey <tom@tromey.com>
14757
14758 * dwarf2/read.c (struct line_header) <file_full_name,
14759 file_file_name>: Declare methods.
14760 (dw2_get_file_names_reader): Update.
14761 (file_file_name): Now a method.
14762 (file_full_name): Likewise.
14763 (macro_start_file): Update.
14764
009b64fc
TT
147652020-02-08 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.c (dwarf_always_disassemble)
14768 (show_dwarf_always_disassemble): Move to loc.c.
14769 (_initialize_dwarf2_read): Move "always-disassemble" registration
14770 to loc.c.
14771 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14772 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14773 static.
14774 (show_dwarf_always_disassemble): Move from read.c.
14775 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14776
5895093f
TT
147772020-02-08 Tom Tromey <tom@tromey.com>
14778
14779 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14780 (create_quick_file_names_table): Return htab_up.
14781 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14782 Update.
14783 * dwarf2/read.h (struct dwarf2_per_objfile)
14784 <quick_file_names_table>: Now htab_up.
14785
b3b32279
TT
147862020-02-08 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14789
1d33d811
TT
147902020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14793 Rewrite.
14794 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14795 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14796 (abbrev_table::abbrev_table): No longer inline.
14797 (ABBREV_HASH_SIZE): Remove.
14798 (abbrev_table::m_abbrevs): Now an htab_up.
14799
86de1d91
TT
148002020-02-08 Tom Tromey <tom@tromey.com>
14801
14802 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14803 (cutu_reader): Update.
14804 (build_type_psymtabs_1): Update.
14805 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14806 (abbrev_table::alloc_abbrev): Update.
14807 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14808 (abbrev_table::read): New static method, renamed from
14809 abbrev_table_read_table.
14810 (abbrev_table::alloc_abbrev)
14811 (abbrev_table::add_abbrev): Now private.
14812 (abbrev_table::abbrev_table): Now private.
14813 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14814
0335378b
TT
148152020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14818 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14819 htab_up.
14820
48b490f2
TT
148212020-02-08 Tom Tromey <tom@tromey.com>
14822
14823 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14824 htab_up.
14825 (lookup_dwo_unit_in_dwp): Update.
14826 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14827 on obstack.
14828
bc68fb19
TT
148292020-02-08 Tom Tromey <tom@tromey.com>
14830
14831 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14832 obstack.
14833
d15acc42
TT
148342020-02-08 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14837 line_header_hash.
14838 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14839 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14840 Change type to htab_up.
14841
eaa5fa8b
TT
148422020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14845 htab_up. Don't allocate on obstack.
14846 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14847 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14848 Change type to htab_up.
14849
b0b6a987
TT
148502020-02-08 Tom Tromey <tom@tromey.com>
14851
14852 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14853 Change type to htab_up.
14854 * dwarf2/read.c (create_signatured_type_table_from_index)
14855 (create_signatured_type_table_from_debug_names)
14856 (create_all_type_units, add_type_unit)
14857 (lookup_dwo_signatured_type, lookup_signatured_type)
14858 (process_skeletonless_type_unit): Update.
14859 (create_debug_type_hash_table, create_debug_types_hash_table):
14860 Change type of types_htab.
14861 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14862 htab_up. Don't allocate on obstack.
14863 (create_cus_hash_table): Change type of cus_htab parameter.
14864 (struct dwo_file) <cus, tus>: Now htab_up.
14865 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14866 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14867 (queue_and_load_all_dwo_tus): Update.
14868 * dwarf2/index-write.c (write_gdbindex): Update.
14869 (write_debug_names): Update.
14870
39856def
TT
148712020-02-08 Tom Tromey <tom@tromey.com>
14872
14873 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14874 dwarf2/read.c. Remove "next" member. Add constructor ntad
14875 destructor.
14876 (struct dwarf2_per_objfile) <queue>: New member.
14877 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14878 dwarf2/read.h.
14879 (dwarf2_queue, dwarf2_queue_tail): Remove.
14880 (class dwarf2_queue_guard): Add parameter to constructor. Use
14881 DISABLE_COPY_AND_ASSIGN.
14882 <m_per_objfile>: New member.
14883 <~dwarf2_queue_guard>: Rewrite.
14884 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14885 Update.
14886 (~dwarf2_queue_item): New.
14887
3e225074
TT
148882020-02-08 Tom Tromey <tom@tromey.com>
14889
14890 * dwarf2/read.c (struct die_info) <has_children>: New member.
14891 (dw2_get_file_names_reader): Remove has_children.
14892 (dw2_get_file_names): Update.
14893 (read_cutu_die_from_dwo): Remove has_children.
14894 (cutu_reader::init_tu_and_read_dwo_dies)
14895 (cutu_reader::cutu_reader): Update.
14896 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14897 Remove has_children.
14898 (build_type_psymtabs_1, process_skeletonless_type_unit)
14899 (load_partial_comp_unit, load_full_comp_unit): Update.
14900 (create_dwo_cu_reader): Remove has_children.
14901 (create_cus_hash_table, read_die_and_children): Update.
14902 (read_full_die_1,read_full_die): Remove has_children.
14903 (read_signatured_type): Update.
14904 (class cutu_reader) <has_children>: Remove.
14905
82ca8957
TT
149062020-02-08 Tom Tromey <tom@tromey.com>
14907
14908 * dwarf2/expr.c: Rename from dwarf2expr.c.
14909 * dwarf2/expr.h: Rename from dwarf2expr.h.
14910 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14911 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14912 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14913 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14914 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14915 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14916 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14917 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14918 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14919 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14920 * dwarf2/loc.c: Rename from dwarf2loc.c.
14921 * dwarf2/loc.h: Rename from dwarf2loc.h.
14922 * dwarf2/read.c: Rename from dwarf2read.c.
14923 * dwarf2/read.h: Rename from dwarf2read.h.
14924 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14925 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14926 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14927 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14928 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14929 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14930 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14931 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14932 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14933 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14934 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14935 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14936 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14937 Update.
14938 * Makefile.in (COMMON_SFILES): Update.
14939 (HFILES_NO_SRCDIR): Update.
14940
9e35d499
TT
149412020-02-08 Tom Tromey <tom@tromey.com>
14942
14943 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14944 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14945
1eba2311
TT
149462020-02-08 Tom Tromey <tom@tromey.com>
14947
14948 * dwarf2read.h (struct die_info): Don't declare.
14949
e41c2da2
TT
149502020-02-08 Tom Tromey <tom@tromey.com>
14951
14952 * dwarf2read.h (die_info_ptr): Remove typedef.
14953
4fc6c0d5
TT
149542020-02-08 Tom Tromey <tom@tromey.com>
14955
14956 * dwarf2read.c (read_call_site_scope)
14957 (handle_data_member_location, dwarf2_add_member_fn)
14958 (mark_common_block_symbol_computed, read_common_block)
14959 (attr_to_dynamic_prop, partial_die_info::read)
14960 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14961 (dwarf2_symbol_mark_computed, set_die_type): Update.
14962 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14963 method.
14964 (attr_form_is_block): Don't declare.
14965 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14966
cd6c91b4
TT
149672020-02-08 Tom Tromey <tom@tromey.com>
14968
14969 * dwarf2read.c (dwarf2_find_base_address, )
14970 (read_call_site_scope, rust_containing_type)
14971 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14972 (handle_data_member_location, dwarf2_add_member_fn)
14973 (get_alignment, read_structure_type, process_structure_scope)
14974 (mark_common_block_symbol_computed, read_common_block)
14975 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14976 (partial_die_info::read, read_attribute_value, new_symbol)
14977 (lookup_die_type, dwarf2_get_ref_die_offset)
14978 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14979 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14980 (dwarf2_symbol_mark_computed): Update.
14981 * dwarf2/attribute.h (struct attribute) <value_as_address,
14982 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14983 methods.
14984 (value_as_address, attr_form_is_section_offset)
14985 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14986 * dwarf2/attribute.c (attribute::value_as_address)
14987 (attribute::form_is_section_offset, attribute::form_is_constant)
14988 (attribute::form_is_ref): Now methods.
14989
162dce55
TT
149902020-02-08 Tom Tromey <tom@tromey.com>
14991
14992 * dwarf2read.c (struct attribute, DW_STRING)
14993 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14994 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14995 (attr_form_is_block, attr_form_is_section_offset)
14996 (attr_form_is_constant, attr_form_is_ref): Move.
14997 * dwarf2/attribute.h: New file.
14998 * dwarf2/attribute.c: New file, from dwarf2read.c.
14999 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15000
3054dd54
TT
150012020-02-08 Tom Tromey <tom@tromey.com>
15002
15003 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15004 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15005 Move.
15006 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15007 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15008 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15009 abbrev.c.
15010 * dwarf2/abbrev.h: New file.
15011 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15012 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15013
96b79293
TT
150142020-02-08 Tom Tromey <tom@tromey.com>
15015
15016 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15017 (dwarf2_section_size, dwarf2_get_section_info)
15018 (create_signatured_type_table_from_debug_names)
15019 (create_addrmap_from_aranges, read_debug_names_from_section)
15020 (get_gdb_index_contents_from_section, read_comp_unit_head)
15021 (error_check_comp_unit_head, read_abbrev_offset)
15022 (create_debug_type_hash_table, init_cu_die_reader)
15023 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15024 (read_comp_units_from_section, create_cus_hash_table)
15025 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15026 (create_dwp_v2_section, dwarf2_rnglists_process)
15027 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15028 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15029 (read_indirect_string_from_dwz, read_addr_index_1)
15030 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15031 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15032 (fill_in_loclist_baton): Update.
15033 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15034 get_containing_section, get_bfd_owner, get_bfd_section,
15035 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15036 (dwarf2_read_section, get_section_name, get_section_file_name)
15037 (get_containing_section, get_section_bfd_owner)
15038 (get_section_bfd_section, get_section_name, get_section_file_name)
15039 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15040 declare.
15041 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15042 (dwarf2_section_info::get_bfd_owner)
15043 (dwarf2_section_info::get_bfd_section)
15044 (dwarf2_section_info::get_name)
15045 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15046 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15047 (dwarf2_section_info::read): Now methods.
15048 * dwarf-index-write.c (class debug_names): Update.
15049
2c86cff9
TT
150502020-02-08 Tom Tromey <tom@tromey.com>
15051
15052 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15053 Move to dwarf2/section.h.
15054 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15055 (get_section_bfd_section, get_section_name)
15056 (get_section_file_name, get_section_id, get_section_flags)
15057 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15058 dwarf2/section.c.
15059 * dwarf2/section.h: New file.
15060 * dwarf2/section.c: New file, from dwarf2read.c.
15061 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15062
f4382c45
TT
150632020-02-08 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15066 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15067 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15068 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15069 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15070 * dwarf2/leb.h: New file, from dwarf2read.c.
15071 * dwarf2/leb.c: New file, from dwarf2read.c.
15072 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15073 Remove.
15074 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15075 (COMMON_SFILES): Add dwarf2/leb.c.
15076
01840b7a
JB
150772020-02-08 Joel Brobecker <brobecker@adacore.com>
15078
15079 GDB 9.1 released.
15080
dfcb27e4
IB
150812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15082
15083 PR gdb/25190:
aac66a4c
SM
15084 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15085 * gdb/remote.c (remote_console_output): Update.
15086 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15087 (ui_file_puts): ...this.
15088 * gdb/ui-file.h (ui_file_puts): Add declaration.
15089 * gdb/utils.c (emit_style_escape): Update.
15090 (flush_wrap_buffer): Update.
15091 (fputs_maybe_filtered): Update.
15092 (fputs_unfiltered): Add function.
dfcb27e4 15093
faa17681
IB
150942020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15095
aac66a4c
SM
15096 * gdb/event-loop.c (gdb_wait_for_event): Update.
15097 * gdb/printcmd.c (printf_command): Update.
15098 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15099 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15100 (gdb_os_flush_stderr): Update.
15101 * gdb/remote.c (remote_console_output): Update.
15102 * gdb/ui-file.c (gdb_flush): Rename to...
15103 (ui_file_flush): ...this.
15104 (stderr_file::write): Update.
15105 (stderr_file::puts): Update.
15106 * gdb/ui-file.h (gdb_flush): Rename to...
15107 (ui_file_flush): ...this.
15108 * gdb/utils.c (gdb_flush): Add function.
15109 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15110
5abbbe1d
TT
151112020-02-07 Tom Tromey <tromey@adacore.com>
15112
15113 PR breakpoints/24915:
15114 * source.c (find_and_open_source): Do not check basenames_may_differ.
15115
919adfe8
TT
151162020-02-07 Tom Tromey <tom@tromey.com>
15117
15118 * README: Update gdbserver documentation.
15119 * gdbserver: Move to top level.
15120 * configure.tgt (build_gdbserver): Remove.
15121 * configure.ac: Remove --enable-gdbserver.
15122 * configure: Rebuild.
15123 * Makefile.in (distclean): Don't mention gdbserver.
15124
1d5d29e7
SV
151252020-02-06 Shahab Vahedi <shahab@synopsys.com>
15126
15127 * source-cache.c (source_cache::ensure): Surround
15128 get_plain_source_lines with a try/catch.
15129 (source_cache::get_line_charpos): Get rid of try/catch
15130 and only check for the return value of "ensure".
15131 * tui/tui-source.c (tui_source_window::set_contents):
15132 Simplify "nlines" calculation.
15133
6eb1129c
SV
151342020-02-06 Shahab Vahedi <shahab@synopsys.com>
15135
15136 * MAINTAINERS (Write After Approval): Add myself.
15137
c6a42d11
CB
151382020-02-05 Christian Biesinger <cbiesinger@google.com>
15139
15140 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15141 function call.
15142
c8ecdda6
CB
151432020-02-05 Christian Biesinger <cbiesinger@google.com>
15144
15145 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15146
f6480e70
MR
151472020-02-05 Maciej W. Rozycki <macro@wdc.com>
15148
15149 * nat/riscv-linux-tdesc.h: New file.
15150 * nat/riscv-linux-tdesc.c: New file, taking code from...
15151 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15152 ... here.
15153 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15154 NATDEPFILES.
15155
dcc9fbc6
AB
151562020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15157
15158 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15159 we don't set the fake simulator ptid to the null_ptid.
15160
719546c4
SM
151612020-02-03 Simon Marchi <simon.marchi@efficios.com>
15162
15163 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15164 * gdbthread.h (class thread_info) <resumed>: Likewise.
15165 * infrun.c (resume_1): Likewise.
15166 (proceed): Likewise.
15167 (infrun_thread_stop_requested): Likewise.
15168 (stop_all_threads): Likewise.
15169 (handle_inferior_event): Likewise.
15170 (restart_threads): Likewise.
15171 (finish_step_over): Likewise.
15172 (keep_going_stepped_thread): Likewise.
15173 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15174 (linux_handle_extended_wait): Likewise.
15175 * record-btrace.c (get_thread_current_frame_id): Likewise.
15176 * record-full.c (record_full_wait_1): Likewise.
15177 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15178 * target.c (target_resume): Likewise.
15179 * thread.c (set_running_thread): Likewise.
15180
e409c542
AKS
151812020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15182
15183 * f-valprint.c (f77_print_array_1): Changed datatype of index
15184 variable to LONGEST from int to enable it to contain bound
15185 values correctly.
15186
ee98c0da
MR
151872020-02-03 Maciej W. Rozycki <macro@wdc.com>
15188
15189 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15190 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15191 offsets according to FLEN determined.
15192 (riscv_linux_nat_target::read_description): Determine FLEN
15193 dynamically.
15194 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15195 according to FLEN determined.
15196 (riscv_linux_nat_target::store_registers): Likewise.
15197
aa66aac4
SV
151982020-02-01 Shahab Vahedi <shahab@synopsys.com>
15199
15200 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15201 when reg->group is empty and reggroup is not.
15202
fd9faca8
TT
152032020-01-31 Tom Tromey <tromey@adacore.com>
15204
15205 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15206 Call beneath target's mourn_inferior after unpushing.
15207
42330a68
AB
152082020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15209
15210 PR tui/9765
15211 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15212 have enough lines to fill the screen, still return the lowest
15213 address we found.
15214
7a27a45b
AB
152152020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15216
15217 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15218 '-', '<', and '>' commands.
15219
c47f70e2
PA
152202020-01-29 Pedro Alves <palves@redhat.com>
15221 Sergio Durigan Junior <sergiodj@redhat.com>
15222
15223 * infcmd.c (construct_inferior_arguments): Assert that
15224 'argc' is greater than 0.
15225
5133a315
LM
152262020-01-29 Luis Machado <luis.machado@linaro.org>
15227
15228 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15229 (BRK_INSN_MASK): Define to 0xd4200000.
15230 (aarch64_program_breakpoint_here_p): New function.
15231 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15232 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15233 breakpoint.c.
15234 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15235 breakpoint.h
15236 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15237 call gdbarch_program_breakpoint_here_p.
15238 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15239 default_program_breakpoint_here_p, changed return type to bool and
15240 simplified.
15241 * breakpoint.h (program_breakpoint_here): Moved prototype to
15242 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15243 return type to bool.
15244 * gdbarch.c: Regenerate.
15245 * gdbarch.h: Regenerate.
15246 * gdbarch.sh (program_breakpoint_here_p): New method.
15247 * infrun.c (handle_signal_stop): Call
15248 gdbarch_program_breakpoint_here_p.
15249
168f8c6b
TT
152502020-01-26 Tom Tromey <tom@tromey.com>
15251
15252 * ctfread.c (struct ctf_fp_info): Reindent.
15253 (_initialize_ctfread): Remove.
15254
128a391f
TT
152552020-01-26 Tom Tromey <tom@tromey.com>
15256
15257 * psymtab.c (partial_map_expand_apply)
15258 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15259 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15260 (psym_print_stats, psym_expand_symtabs_for_function)
15261 (psym_map_symbol_filenames, psym_map_matching_symbols)
15262 (psym_expand_symtabs_matching)
15263 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15264 (maintenance_check_psymtabs): Use new methods.
15265 * psympriv.h (struct partial_symtab) <readin_p,
15266 get_compunit_symtab>: New methods.
15267 <readin, compunit_symtab>: Remove members.
15268 (struct standard_psymtab): New.
15269 (struct legacy_psymtab): Derive from standard_psymtab.
15270 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15271 standard_psymtab.
15272 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15273
0494dbec
TT
152742020-01-26 Tom Tromey <tom@tromey.com>
15275
15276 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15277 read_dependencies. Add assert.
15278 * psymtab.c (partial_symtab::read_dependencies): New method.
15279 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15280 method.
15281 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15282 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15283 read_dependencies.
15284 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15285 Add assert.
15286
8566b89b
TT
152872020-01-26 Tom Tromey <tom@tromey.com>
15288
15289 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15290 Call expand_psymtab.
15291 (xcoff_read_symtab): Call expand_psymtab.
15292 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15293 legacy_expand_psymtab.
15294 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15295 method.
15296 (struct legacy_psymtab) <expand_psymtab>: Implement.
15297 <legacy_expand_psymtab>: New member.
15298 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15299 (parse_partial_symbols): Set legacy_expand_psymtab.
15300 (psymtab_to_symtab_1): Change argument order. Call
15301 expand_psymtab.
15302 (new_psymtab): Set legacy_expand_psymtab.
15303 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15304 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15305 expand_psymtab.
15306 (dwarf2_psymtab::expand_psymtab): Rename from
15307 psymtab_to_symtab_1. Call expand_psymtab.
15308 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15309 (dbx_end_psymtab): Likewise.
15310 (dbx_psymtab_to_symtab_1): Change argument order. Call
15311 expand_psymtab.
15312 (dbx_read_symtab): Call expand_psymtab.
15313 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15314 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15315 (ctf_psymtab::read_symtab): Call expand_psymtab.
15316
077cbab2
TT
153172020-01-26 Tom Tromey <tom@tromey.com>
15318
15319 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15320 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15321 messages.
15322 * mdebugread.c (mdebug_read_symtab): Remove prints.
15323 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15324 assert.
15325 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15326
891813be
TT
153272020-01-26 Tom Tromey <tom@tromey.com>
15328
15329 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15330 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15331 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15332 legacy_symtab.
15333 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15334 * psymtab.c (psymtab_to_symtab): Call method.
15335 (dump_psymtab): Update.
15336 * psympriv.h (struct partial_symtab): Add virtual destructor.
15337 <read_symtab>: New method.
15338 (struct legacy_symtab): New.
15339 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15340 (struct pst_map) <pst>: Now a legacy_psymtab.
15341 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15342 (new_psymtab): Use legacy_psymtab.
15343 * dwarf2read.h (struct dwarf2_psymtab): New.
15344 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15345 * dwarf2read.c (dwarf2_create_include_psymtab)
15346 (dwarf2_build_include_psymtabs, create_type_unit_group)
15347 (create_partial_symtab, process_psymtab_comp_unit_reader)
15348 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15349 (set_partial_user): Use dwarf2_psymtab.
15350 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15351 (psymtab_to_symtab_1, process_full_comp_unit)
15352 (process_full_type_unit, dwarf2_ranges_read)
15353 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15354 (dwarf_decode_lines): Use dwarf2_psymtab.
15355 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15356 (add_address_entry_worker, write_one_signatured_type)
15357 (recursively_count_psymbols, recursively_write_psymbols)
15358 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15359 (write_debug_names): Likewise.
15360 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15361 <pst>: Now a legacy_psymtab.
15362 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15363 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15364 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15365 * ctfread.c (struct ctf_psymtab): New.
15366 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15367 ctf_psymtab.
15368 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15369 (create_partial_symtab): Return a ctf_psymtab.
15370 (scan_partial_symbols): Update.
15371
c3693a1d
TT
153722020-01-26 Tom Tromey <tom@tromey.com>
15373
15374 * xcoffread.c (xcoff_start_psymtab): Use new.
15375 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15376 renamed from start_psymtab_common.
15377 * psympriv.h (struct partial_symtab): Add new constructor.
15378 (start_psymtab_common): Don't declare.
15379 * mdebugread.c (parse_partial_symbols): Use new.
15380 * dwarf2read.c (create_partial_symtab): Use new.
15381 * dbxread.c (start_psymtab): Use new.
15382 * ctfread.c (create_partial_symtab): Use new.
15383
32caafd0
TT
153842020-01-26 Tom Tromey <tom@tromey.com>
15385
15386 * xcoffread.c (xcoff_end_psymtab): Use new.
15387 * psymtab.c (start_psymtab_common): Use new.
15388 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15389 Update.
15390 * psympriv.h (struct partial_symtab): Add parameters to
15391 constructor. Don't inline.
15392 (allocate_psymtab): Don't declare.
15393 * mdebugread.c (new_psymtab): Use new.
15394 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15395 * dbxread.c (dbx_end_psymtab): Use new.
15396
abaa2f23
TT
153972020-01-26 Tom Tromey <tom@tromey.com>
15398
15399 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15400 allocate_psymtab. Update documentation.
15401 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15402 allocate_psymtab. Do not use new.
15403 (allocate_psymtab): Use new. Update.
15404
6d94535f
TT
154052020-01-26 Tom Tromey <tom@tromey.com>
15406
15407 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15408 * psymtab.c (psym_print_stats): Update.
15409 * psympriv.h (struct partial_symtab) <readin,
15410 psymtabs_addrmap_supported, anonymous>: Now bool.
15411 * mdebugread.c (psymtab_to_symtab_1): Update.
15412 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15413 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15414 (process_full_comp_unit, process_full_type_unit): Update.
15415 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15416 * ctfread.c (psymtab_to_symtab): Update.
15417
6f17252b
TT
154182020-01-26 Tom Tromey <tom@tromey.com>
15419
15420 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15421 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15422 * psymtab.c (psymtab_storage): Delete psymtabs.
15423 (psymtab_storage::allocate_psymtab): Use new.
15424 (psymtab_storage::discard_psymtab): Use delete.
15425 * psympriv.h (struct partial_symtab): Add constructor and
15426 initializers.
15427
f6f1cebc
TT
154282020-01-26 Tom Tromey <tom@tromey.com>
15429
15430 * machoread.c: Do not include psympriv.h.
15431
e47e48f6
PW
154322020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15433
15434 * NEWS: Mention the new option and the set/show commands.
15435
a2fedca9
PW
154362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15437
15438 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15439 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15440 (validate_exec_file): New variables, enums, functions.
15441 (exec_file_locate_attach, print_section_info): Style the filenames.
15442 (_initialize_exec): Install show_exec_file_mismatch_command and
15443 set_exec_file_mismatch_command.
15444 * gdbcore.h (validate_exec_file): Declare.
15445 * infcmd.c (attach_command): Call validate_exec_file.
15446 * remote.c ( remote_target::remote_add_inferior): Likewise.
15447
7ffa82e1
AB
154482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15449
15450 * frame.c (find_frame_sal): Move call to get_next_frame into more
15451 inner scope.
15452 * inline-frame.c (inilne_state) <inline_state>: Update argument
15453 types.
15454 (inilne_state) <skipped_symbol>: Rename to...
15455 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15456 (skip_inline_frames): Build vector of skipped symbols and use this
15457 to reate the inline_state.
15458 (inline_skipped_symbol): Add a comment and some assertions, fetch
15459 skipped symbol from the list.
15460
3d92a3e3
AB
154612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15462
15463 * buildsym.c (lte_is_less_than): Delete.
15464 (buildsym_compunit::end_symtab_with_blockvector): Create local
15465 lambda function to sort line table entries, and use
15466 std::stable_sort instead of std::sort.
15467 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15468 markers when looking for a previous line.
15469
94a72be7
AB
154702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15471
15472 * dwarf2read.c (lnp_state_machine::record_line): Include
15473 end_sequence parameter in debug print out. Record the line if we
15474 are at an end_sequence marker even if it's not the start of a
15475 statement.
15476 * symmisc.c (maintenance_print_one_line_table): Print end of
15477 sequence markers with 'END' not '0'.
15478
53af73bf
PA
154792020-01-24 Pedro Alves <palves@redhat.com>
15480
15481 PR gdb/25410
15482 * thread.c (scoped_restore_current_thread::restore): Use
15483 switch_to_inferior_no_thread.
15484 * exec.c: Include "progspace-and-thread.h".
15485 (add_target_sections, remove_target_sections):
15486 scoped_restore_current_pspace_and_thread instead of
15487 scoped_restore_current_thread.
15488 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15489 and aspace to the inferior before calling clone_program_space.
15490 Remove stale comment.
15491
3050c6f4
CB
154922020-01-24 Christian Biesinger <cbiesinger@google.com>
15493
15494 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15495 (arm_netbsd_nat_target::fetch_registers): ...this.
15496 (arm_nbsd_nat_target::store_registers): Rename to...
15497 (arm_netbsd_nat_target::store_registers): ...this.
15498
73685c7e
CB
154992020-01-24 Christian Biesinger <cbiesinger@google.com>
15500
15501 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15502 register_t.
15503
89203d40
CB
155042020-01-24 Christian Biesinger <cbiesinger@google.com>
15505
15506 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15507 Update comment.
15508 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15509 Likewise.
15510 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15511 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15512 the correct replacement (iterate_over_regset_sections).
15513 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15514 Update comment.
15515
1ba1ac88
AB
155162020-01-24 Graham Markall <graham.markall@embecosm.com>
15517
15518 PR gdb/23718
15519 * gdb/python/python.c (execute_gdb_command): Call
15520 async_enable_stdin in catch block.
15521
f3364a6d
AB
155222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15525 SWITCH_THRU_ALL_UIS.
15526
733d0a67
AB
155272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15528
15529 PR tui/9765
15530 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15531 comment, add extra parameter, and update to store previous symbol
15532 when appropriate.
15533 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15534 add extra parameter.
15535 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15536 remove unneeded parameter, add try/catch around gdb_print_insn,
15537 rewrite to add items to asm_lines vector.
15538 (tui_find_backward_disassembly_start_address): New function.
15539 (tui_find_disassembly_address): Updated throughout.
15540 (tui_disasm_window::set_contents): Update for changes to
15541 tui_disassemble.
15542 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15543 number of lines to scroll.
15544
b3b3bada
SM
155452020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15546
15547 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15548 (SECT_OFF_DATA): Likewise.
15549 (SECT_OFF_RODATA): Likewise.
15550 (SECT_OFF_TEXT): Likewise.
15551 (SECT_OFF_BSS): Likewise.
15552 (struct objfile) <text_section_offset, data_section_offset>: New
15553 methods.
15554 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15555 objfile::text_section_offset.
15556 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15557 * coffread.c (coff_symtab_read): Likewise.
15558 (enter_linenos): Likewise.
15559 (process_coff_symbol): Likewise.
15560 * ctfread.c (get_objfile_text_range): Likewise.
15561 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15562 Use objfile::data_section_offset.
15563 * dwarf2-frame.c (execute_cfa_program): Use
15564 objfile::text_section_offset.
15565 (dwarf2_frame_find_fde): Likewise.
15566 * dwarf2read.c (create_addrmap_from_index): Likewise.
15567 (create_addrmap_from_aranges): Likewise.
15568 (dw2_find_pc_sect_compunit_symtab): Likewise.
15569 (process_psymtab_comp_unit_reader): Likewise.
15570 (add_partial_symbol): Likewise.
15571 (add_partial_subprogram): Likewise.
15572 (process_full_comp_unit): Likewise.
15573 (read_file_scope): Likewise.
15574 (read_func_scope): Likewise.
15575 (read_lexical_block_scope): Likewise.
15576 (read_call_site_scope): Likewise.
15577 (dwarf2_rnglists_process): Likewise.
15578 (dwarf2_ranges_process): Likewise.
15579 (dwarf2_ranges_read): Likewise.
15580 (dwarf_decode_lines_1): Likewise.
15581 (new_symbol): Likewise.
15582 (dwarf2_fetch_die_loc_sect_off): Likewise.
15583 (dwarf2_per_cu_text_offset): Likewise.
15584 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15585 * hppa-tdep.c (read_unwind_info): Likewise.
15586 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15587 * psympriv.h (struct partial_symtab): Likewise.
15588 * psymtab.c (find_pc_sect_psymtab): Likewise.
15589 * solib-svr4.c (enable_break): Likewise.
15590 * stap-probe.c (relocate_address): Use
15591 objfile::data_section_offset.
15592 * xcoffread.c (enter_line_range): Use
15593 objfile::text_section_offset.
15594 (read_xcoff_symtab): Likewise.
15595
ab53f382
SM
155962020-01-23 Simon Marchi <simon.marchi@efficios.com>
15597
15598 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15599 declaration to narrower scopes.
15600
e7eee665
SM
156012020-01-23 Simon Marchi <simon.marchi@efficios.com>
15602
15603 * darwin-nat.h (struct darwin_exception_msg, enum
15604 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15605 Move up.
15606 (class darwin_nat_target) <wait_1, check_new_threads,
15607 decode_exception_message, decode_message, stop_inferior,
15608 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15609 * darwin-nat.c (darwin_check_new_threads): Rename to...
15610 (darwin_nat_target::check_new_threads): ... this.
15611 (darwin_suspend_inferior_it): Remove.
15612 (darwin_decode_exception_message): Rename to...
15613 (darwin_nat_target::decode_exception_message): ... this.
15614 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15615 (darwin_decode_message): Rename to...
15616 (darwin_nat_target::decode_message): ... this.
15617 (cancel_breakpoint): Rename to...
15618 (darwin_nat_target::cancel_breakpoint): ... this.
15619 (darwin_wait): Rename to...
15620 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15621 instead of iterate_over_inferiors.
15622 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15623 (darwin_stop_inferior): Rename to...
15624 (darwin_nat_target::stop_inferior): ... this.
15625 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15626 (darwin_init_thread_list): Rename to...
15627 (darwin_nat_target::init_thread_list): ... this.
15628 (darwin_ptrace_him): Rename to...
15629 (darwin_nat_target::ptrace_him): ... this.
15630 (darwin_nat_target::create_inferior): Pass lambda function to
15631 fork_inferior.
15632 (darwin_nat_target::detach): Call stop_inferior instead of
15633 darwin_stop_inferior.
15634 * fork-inferior.h (fork_inferior): Change init_trace_fun
15635 parameter to gdb::function_view.
15636 * fork-inferior.c (fork_inferior): Likewise.
15637
c162ed3e
HD
156382020-01-23 Hannes Domani <ssbssa@yahoo.de>
15639
15640 * i386-cygwin-tdep.c (core_process_module_section): Update.
15641 * windows-nat.c (struct lm_info_windows): Add text_offset.
15642 (windows_xfer_shared_libraries): Update.
15643 * windows-tdep.c (windows_xfer_shared_library):
15644 Add text_offset_cached argument.
15645 * windows-tdep.h (windows_xfer_shared_library): Update.
15646
a1237872
SM
156472020-01-21 Simon Marchi <simon.marchi@efficios.com>
15648
15649 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15650
b3ee6dd9
SM
156512020-01-21 Simon Marchi <simon.marchi@efficios.com>
15652
15653 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15654 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15655 replace with range-based for.
15656 (gdbsim_interrupt_inferior): Remove.
15657 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15658 with a range-based for. Inline code from
15659 gdbsim_interrupt_inferior.
15660
f9fac3c8
SM
156612020-01-21 Simon Marchi <simon.marchi@efficios.com>
15662
15663 * infrun.c (proceed): Fix indentation.
15664
f6474de9
TT
156652020-01-21 Tom Tromey <tromey@adacore.com>
15666
15667 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15668 * python/python.c (python_extension_ops): Update.
15669 (gdbpy_colorize): New function.
15670 * python/lib/gdb/__init__.py (colorize): New function.
15671 * extension.h (ext_lang_colorize): Declare.
15672 * extension.c (ext_lang_colorize): New function.
15673 * extension-priv.h (struct extension_language_ops) <colorize>: New
15674 member.
15675 * cli/cli-style.c (_initialize_cli_style): Update help text.
15676
f0c702d4
LM
156772020-01-21 Luis Machado <luis.machado@linaro.org>
15678
15679 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15680 <cond>: Change type to bool.
15681 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15682 (aarch64_displaced_step_cb): Likewise.
15683 (aarch64_displaced_step_tb): Likewise.
15684
1ab139e5
LM
156852020-01-21 Luis Machado <luis.machado@linaro.org>
15686
15687 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15688 output.
15689
0c271889
LM
156902020-01-21 Luis Machado <luis.machado@linaro.org>
15691
15692 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15693 <pc_adjust>: Adjust the documentation.
15694 (aarch64_displaced_step_fixup): Check if PC really moved before
15695 adjusting it.
15696
4d89c1c7
TT
156972020-01-19 Tom Tromey <tom@tromey.com>
15698
15699 * disasm.c (~gdb_disassembler): New destructor.
15700 (gdb_buffered_insn_length): Call disassemble_free_target.
15701 * disasm.h (class gdb_disassembler): Declare destructor. Use
15702 DISABLE_COPY_AND_ASSIGN.
15703
c0ab21c2
TT
157042020-01-19 Tom Tromey <tom@tromey.com>
15705
15706 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15707 (die_reader_func_ftype): Remove.
15708 (cutu_reader): New class.
15709 (dw2_get_file_names_reader): Remove "data" parameter.
15710 (dw2_get_file_names): Use cutu_reader.
15711 (create_debug_type_hash_table): Update.
15712 (read_cutu_die_from_dwo): Update comment.
15713 (lookup_dwo_unit): Add dwo_name parameter.
15714 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15715 die_reader_func_ftype and data parameters.
15716 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15717 Remove die_reader_func_ftype and data parameters.
15718 (~cutu_reader): New; from init_cutu_and_read_dies.
15719 (cutu_reader::cutu_reader): Rename from
15720 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15721 and data parameters.
15722 (init_cutu_and_read_dies_simple): Remove.
15723 (struct process_psymtab_comp_unit_data): Remove.
15724 (process_psymtab_comp_unit_reader): Remove data parameter; add
15725 want_partial_unit and pretend_language parameters.
15726 (process_psymtab_comp_unit): Use cutu_reader.
15727 (build_type_psymtabs_reader): Remove data parameter.
15728 (build_type_psymtabs_1): Use cutu_reader.
15729 (process_skeletonless_type_unit): Likewise.
15730 (load_partial_comp_unit_reader): Remove.
15731 (load_partial_comp_unit): Use cutu_reader.
15732 (load_full_comp_unit_reader): Remove.
15733 (load_full_comp_unit): Use cutu_reader.
15734 (struct create_dwo_cu_data): Remove.
15735 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15736 dwo_unit parameters.
15737 (create_cus_hash_table): Use cutu_reader.
15738 (struct dwarf2_read_addr_index_data): Remove.
15739 (dwarf2_read_addr_index_reader): Remove.
15740 (dwarf2_read_addr_index): Use cutu_reader.
15741 (read_signatured_type_reader): Remove.
15742 (read_signatured_type): Use cutu_reader.
15743
45bbae5c
TT
157442020-01-19 Tom Tromey <tom@tromey.com>
15745
15746 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15747 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15748 (tui_wrefresh): Declare.
15749 * tui/tui-wingeneral.c (suppress_output): New global.
15750 (tui_suppress_output, ~tui_suppress_output): New constructor and
15751 destructor.
15752 (tui_wrefresh): New function.
15753 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15754 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15755 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15756 method.
15757 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15758 tui_wrefresh.
15759 (tui_data_window::no_refresh): New method.
15760 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15761 (tui_reg_command): Use tui_suppress_output
15762 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15763 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15764 method.
15765 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15766
4f13c1c0
TT
157672020-01-19 Tom Tromey <tom@tromey.com>
15768
15769 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15770 Handle case where symtab is null.
15771
fa47e446
SM
157722020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15773
15774 * linux-fork.c (one_fork_p): Simplify.
15775
26f42329
SM
157762020-01-17 Simon Marchi <simon.marchi@efficios.com>
15777
15778 * top.c (struct qt_args): Remove.
15779 (kill_or_detach): Change return type to void, replace `void *`
15780 parameter with a proper one.
15781 (print_inferior_quit_action): Likewise.
15782 (quit_confirm): Use range-based for loop to iterate over inferiors.
15783 (quit_force): Likewise.
15784
a9ac81b1
SM
157852020-01-17 Simon Marchi <simon.marchi@efficios.com>
15786
15787 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15788 `void *` parameter with proper parameters.
15789 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15790 (print_one_inferior): Change return type to void, replace `void *`
15791 parameter with proper parameters.
15792 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15793 inferiors.
15794 (get_other_inferior): Remove.
15795 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15796 inferiors.
15797
788eca49
SM
157982020-01-17 Simon Marchi <simon.marchi@efficios.com>
15799
15800 * mi/mi-interp.c (report_initial_inferior): Remove.
15801 (mi_interp::init): Use range-based for to iterate over inferiors.
15802
d9bc85b6
SM
158032020-01-17 Simon Marchi <simon.marchi@efficios.com>
15804
15805 * python/py-inferior.c (build_inferior_list): Remove.
15806 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15807
40c94099
CB
158082020-01-16 Christian Biesinger <cbiesinger@google.com>
15809
15810 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15811 (btrace_stitch_trace): Likewise.
15812 * charset.c (intermediate_encoding): Likewise (vaild).
15813 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15814 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15815 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15816
e0cdfe3c
HD
158172020-01-16 Hannes Domani <ssbssa@yahoo.de>
15818
15819 * windows-tdep.c (windows_get_tlb_type):
15820 Add rtl_user_process_parameters type.
15821
790f1718 158222020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15823 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15824
15825 PR build/24805
15826 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15827 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15828 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15829 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15830 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15831 (ps_plog): Redeclare exported functions with default visibility.
15832
3112ed97
NA
158332020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15834
15835 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15836 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15837
8dc3273e
SM
158382020-01-15 Simon Marchi <simon.marchi@efficios.com>
15839
15840 * infcmd.c (post_create_inferior): Use get_thread_regcache
15841 instead of get_current_regcache.
15842
ff47f4f0
TT
158432020-01-14 Tom Tromey <tom@tromey.com>
15844
15845 PR symtab/12535:
15846 * python/python.c (gdbpy_decode_line): Treat empty string the same
15847 as no argument.
15848
975f45b7
TT
158492020-01-14 Tom Tromey <tom@tromey.com>
15850
15851 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15852
25e57356
TT
158532020-01-14 Tom Tromey <tom@tromey.com>
15854
15855 * nat/linux-btrace.c: Don't include <config.h>.
15856 * nat/linux-ptrace.c: Don't include <config.h>.
15857 * nat/x86-linux-dregs.c: Don't include <config.h>.
15858
05ea2a05
TT
158592020-01-14 Tom Tromey <tom@tromey.com>
15860
15861 * configure: Rebuild.
15862 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15863
01027315
TT
158642020-01-14 Tom Tromey <tom@tromey.com>
15865
15866 * nat/x86-linux-dregs.c: Include configh.h.
15867 * nat/linux-ptrace.c: Include configh.h.
15868 * nat/linux-btrace.c: Include configh.h.
15869 * defs.h: Include config.h, bfd.h.
15870 * configure.ac: Don't source common.host.
15871 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15872 * configure: Rebuild.
15873 * acinclude.m4: Update path.
15874 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15875 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15876 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15877 (CLIBS): Add LIBSUPPORT.
15878 (CDEPS): Likewise.
15879 (COMMON_SFILES): Remove gdbsupport files.
15880 (HFILES_NO_SRCDIR): Likewise.
15881 (stamp-version): Update path to create-version.sh.
15882 (ALLDEPFILES): Remove gdbsupport files.
15883
b2ceabe8
TT
158842020-01-14 Tom Tromey <tom@tromey.com>
15885
15886 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15887 USE_WIN32API when needed.
15888 * configure.ac (USE_WIN32API): Don't define.
15889 (WIN32LIBS): Use WIN32APILIBS.
15890 * configure: Rebuild.
15891
25c51f71
TT
158922020-01-14 Tom Tromey <tom@tromey.com>
15893
15894 * configure: Rebuild.
15895 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15896
717c684d
BE
158972020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15898
15899 * skip.c (skip_function_command): Make skip w/o arguments use the
15900 name of the inlined function if pc is inside any inlined function.
15901
7da6a5b9
LM
159022020-01-14 Luis Machado <luis.machado@linaro.org>
15903
15904 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15905 * infrun.c (resume_1): Likewise.
15906 (handle_inferior_event): Remove stale comment.
15907 * linux-nat.c (linux_nat_target::resume): Update comments.
15908 (save_stop_reason): Likewise.
15909 (linux_nat_filter_event): Likewise.
15910 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15911
44e4c775
AB
159122020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15913
15914 * elfread.c (record_minimal_symbol): Set section index to 0 for
15915 non-allocatable sections.
15916
18a8505e
AT
15917
159182020-01-13 Ali Tamur <tamur@google.com>
15919
15920 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15921 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15922 to gdb::optional. Update comments.
15923 (dwo_file): Update comments.
15924 (read_attribute): Update API to take an additional out parameter,
15925 need_reprocess. This is used to mark attributes that need other
15926 attributes (e.g. str_offsets_base) for correct computation which may not
15927 have been read yet.
15928 (read_attribute_reprocess): New function declaration.
15929 (read_addr_index): Likewise.
15930 (read_dwo_str_index): Likewise.
15931 (read_stub_str_index): Likewise.
15932 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15933 (lookup_addr_base): New function definition.
15934 (lookup_ranges_base): Likewise.
15935 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15936 lookup_ranges_base.
15937 (init_cutu_and_read_dies): Update comments.
15938 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15939 unit. This is used to inherit parent's str_offsets_base and addr_base.
15940 Update comments.
15941 (init_cutu_and_read_dies_simple): Reflect API changes.
15942 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15943 (create_cus_hash_table): Change API to take parent compile unit.
15944 Reflect API changes.
15945 (open_and_init_dwo_file): Reflect API changes.
15946 (dwarf2_get_pc_bounds): Update comments.
15947 (dwarf2_record_block_ranges): Likewise.
15948 (read_full_die_1): Change implementation to reprocess attributes that
15949 need str_offsets_base and addr_base.
15950 (partial_die_info::read): Likewise.
15951 (read_attribute_reprocess): New function definition.
15952 (read_attribute_value): Change API to take an additional out parameter,
15953 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15954 when a non-dwo compile unit has index based attributes.
15955 (read_attribute): Reflect API changes.
15956 (read_addr_index_1): Reflect API changes. Update comments.
15957 (dwarf2_read_addr_index_data): Reflect API changes.
15958 (dwarf2_read_addr_index): Likewise.
15959 (read_str_index): Change API and implementation. This becomes a helper
15960 to be used by the new string index related methods. Update error
15961 message and comments.
15962 (read_dwo_str_index): New function definition.
15963 (read_stub_str_index): Likewise.
15964 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15965 * symfile.h (dwarf2_debug_sections): Likewise.
15966 * xcoffread.c (dwarf2_debug_sections): Likewise.
15967
0cac9354
SM
159682020-01-13 Simon Marchi <simon.marchi@efficios.com>
15969
15970 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15971 core_reg_sect type to gdb_byte *.
15972 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15973 * cris-tdep.c (fetch_core_registers): Likewise.
15974 * corelow.c (core_target::get_core_register_section): Change
15975 type of `contents` to gdb::byte_vector.
15976
9a6d629c
AB
159772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15978
15979 * tui/tui-wingeneral.c (box_win): Position the title in the center
15980 of the border.
15981
d8b2f9e3
SM
159822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15983
15984 * corelow.c (core_target::get_core_register_section): Use
15985 std::vector instead of alloca.
15986
bb564c58
SM
159872020-01-13 Simon Marchi <simon.marchi@efficios.com>
15988
15989 * warning.m4: Add -Wmissing-declarations to build_warnings.
15990 * configure: Re-generate.
15991
6b366111
SM
159922020-01-13 Simon Marchi <simon.marchi@efficios.com>
15993
15994 * python/python.c (init__gdb_module): Add declaration.
15995
6c265988
SM
159962020-01-13 Simon Marchi <simon.marchi@efficios.com>
15997
15998 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15999 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16000 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16001 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16002 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16003 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16004 * ada-exp.y (_initialize_ada_exp): Add declaration.
16005 * ada-lang.c (_initialize_ada_language): Add declaration.
16006 * ada-tasks.c (_initialize_tasks): Add declaration.
16007 * agent.c (_initialize_agent): Add declaration.
16008 * aix-thread.c (_initialize_aix_thread): Add declaration.
16009 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16010 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16011 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16012 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16013 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16014 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16015 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16016 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16017 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16018 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16019 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16020 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16021 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16022 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16023 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16024 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16025 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16026 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16027 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16028 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16029 * annotate.c (_initialize_annotate): Add declaration.
16030 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16031 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16032 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16033 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16034 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16035 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16036 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16037 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16038 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16039 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16040 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16041 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16042 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16043 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16044 * auto-load.c (_initialize_auto_load): Add declaration.
16045 * auxv.c (_initialize_auxv): Add declaration.
16046 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16047 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16048 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16049 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16050 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16051 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16052 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16053 * breakpoint.c (_initialize_breakpoint): Add declaration.
16054 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16055 * btrace.c (_initialize_btrace): Add declaration.
16056 * charset.c (_initialize_charset): Add declaration.
16057 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16058 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16059 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16060 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16061 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16062 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16063 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16064 * coffread.c (_initialize_coffread): Add declaration.
16065 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16066 * compile/compile.c (_initialize_compile): Add declaration.
16067 * complaints.c (_initialize_complaints): Add declaration.
16068 * completer.c (_initialize_completer): Add declaration.
16069 * copying.c (_initialize_copying): Add declaration.
16070 * corefile.c (_initialize_core): Add declaration.
16071 * corelow.c (_initialize_corelow): Add declaration.
16072 * cp-abi.c (_initialize_cp_abi): Add declaration.
16073 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16074 * cp-support.c (_initialize_cp_support): Add declaration.
16075 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16076 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16077 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16078 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16079 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16080 * ctfread.c (_initialize_ctfread): Add declaration.
16081 * d-lang.c (_initialize_d_language): Add declaration.
16082 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16083 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16084 * dbxread.c (_initialize_dbxread): Add declaration.
16085 * dcache.c (_initialize_dcache): Add declaration.
16086 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16087 * disasm.c (_initialize_disasm): Add declaration.
16088 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16089 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16090 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16091 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16092 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16093 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16094 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16095 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16096 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16097 * elfread.c (_initialize_elfread): Add declaration.
16098 * exec.c (_initialize_exec): Add declaration.
16099 * extension.c (_initialize_extension): Add declaration.
16100 * f-lang.c (_initialize_f_language): Add declaration.
16101 * f-valprint.c (_initialize_f_valprint): Add declaration.
16102 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16103 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16104 * filesystem.c (_initialize_filesystem): Add declaration.
16105 * findcmd.c (_initialize_mem_search): Add declaration.
16106 * findvar.c (_initialize_findvar): Add declaration.
16107 * fork-child.c (_initialize_fork_child): Add declaration.
16108 * frame-base.c (_initialize_frame_base): Add declaration.
16109 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16110 * frame.c (_initialize_frame): Add declaration.
16111 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16112 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16113 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16114 * gcore.c (_initialize_gcore): Add declaration.
16115 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16116 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16117 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16118 * gdbarch.c (_initialize_gdbarch): Add declaration.
16119 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16120 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16121 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16122 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16123 * go-lang.c (_initialize_go_language): Add declaration.
16124 * go32-nat.c (_initialize_go32_nat): Add declaration.
16125 * guile/guile.c (_initialize_guile): Add declaration.
16126 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16127 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16128 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16129 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16130 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16131 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16132 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16133 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16134 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16135 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16136 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16137 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16138 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16139 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16140 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16141 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16142 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16143 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16144 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16145 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16146 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16147 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16148 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16149 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16150 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16151 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16152 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16153 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16154 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16155 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16156 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16157 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16158 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16159 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16160 * infcall.c (_initialize_infcall): Add declaration.
16161 * infcmd.c (_initialize_infcmd): Add declaration.
16162 * inflow.c (_initialize_inflow): Add declaration.
16163 * infrun.c (_initialize_infrun): Add declaration.
16164 * interps.c (_initialize_interpreter): Add declaration.
16165 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16166 * jit.c (_initialize_jit): Add declaration.
16167 * language.c (_initialize_language): Add declaration.
16168 * linux-fork.c (_initialize_linux_fork): Add declaration.
16169 * linux-nat.c (_initialize_linux_nat): Add declaration.
16170 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16171 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16172 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16173 * m2-lang.c (_initialize_m2_language): Add declaration.
16174 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16175 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16176 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16177 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16178 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16179 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16180 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16181 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16182 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16183 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16184 * machoread.c (_initialize_machoread): Add declaration.
16185 * macrocmd.c (_initialize_macrocmd): Add declaration.
16186 * macroscope.c (_initialize_macroscope): Add declaration.
16187 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16188 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16189 * maint.c (_initialize_maint_cmds): Add declaration.
16190 * mdebugread.c (_initialize_mdebugread): Add declaration.
16191 * memattr.c (_initialize_mem): Add declaration.
16192 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16193 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16194 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16195 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16196 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16197 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16198 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16199 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16200 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16201 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16202 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16203 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16204 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16205 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16206 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16207 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16208 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16209 * mipsread.c (_initialize_mipsread): Add declaration.
16210 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16211 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16212 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16213 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16214 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16215 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16216 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16217 * nto-procfs.c (_initialize_procfs): Add declaration.
16218 * objc-lang.c (_initialize_objc_language): Add declaration.
16219 * observable.c (_initialize_observer): Add declaration.
16220 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16221 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16222 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16223 * osabi.c (_initialize_gdb_osabi): Add declaration.
16224 * osdata.c (_initialize_osdata): Add declaration.
16225 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16226 * parse.c (_initialize_parse): Add declaration.
16227 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16228 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16229 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16230 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16231 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16232 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16233 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16234 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16235 * printcmd.c (_initialize_printcmd): Add declaration.
16236 * probe.c (_initialize_probe): Add declaration.
16237 * proc-api.c (_initialize_proc_api): Add declaration.
16238 * proc-events.c (_initialize_proc_events): Add declaration.
16239 * proc-service.c (_initialize_proc_service): Add declaration.
16240 * procfs.c (_initialize_procfs): Add declaration.
16241 * producer.c (_initialize_producer): Add declaration.
16242 * psymtab.c (_initialize_psymtab): Add declaration.
16243 * python/python.c (_initialize_python): Add declaration.
16244 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16245 * record-btrace.c (_initialize_record_btrace): Add declaration.
16246 * record-full.c (_initialize_record_full): Add declaration.
16247 * record.c (_initialize_record): Add declaration.
16248 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16249 * regcache.c (_initialize_regcache): Add declaration.
16250 * reggroups.c (_initialize_reggroup): Add declaration.
16251 * remote-notif.c (_initialize_notif): Add declaration.
16252 * remote-sim.c (_initialize_remote_sim): Add declaration.
16253 * remote.c (_initialize_remote): Add declaration.
16254 * reverse.c (_initialize_reverse): Add declaration.
16255 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16256 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16257 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16258 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16259 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16260 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16261 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16262 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16263 Add declaration.
16264 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16265 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16266 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16267 * rust-exp.y (_initialize_rust_exp): Add declaration.
16268 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16269 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16270 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16271 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16272 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16273 * score-tdep.c (_initialize_score_tdep): Add declaration.
16274 * ser-go32.c (_initialize_ser_dos): Add declaration.
16275 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16276 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16277 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16278 * ser-uds.c (_initialize_ser_socket): Add declaration.
16279 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16280 * serial.c (_initialize_serial): Add declaration.
16281 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16282 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16283 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16284 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16285 * skip.c (_initialize_step_skip): Add declaration.
16286 * sol-thread.c (_initialize_sol_thread): Add declaration.
16287 * solib-aix.c (_initialize_solib_aix): Add declaration.
16288 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16289 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16290 * solib-frv.c (_initialize_frv_solib): Add declaration.
16291 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16292 * solib-target.c (_initialize_solib_target): Add declaration.
16293 * solib.c (_initialize_solib): Add declaration.
16294 * source-cache.c (_initialize_source_cache): Add declaration.
16295 * source.c (_initialize_source): Add declaration.
16296 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16297 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16298 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16299 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16300 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16301 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16302 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16303 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16304 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16305 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16306 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16307 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16308 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16309 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16310 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16311 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16312 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16313 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16314 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16315 * stabsread.c (_initialize_stabsread): Add declaration.
16316 * stack.c (_initialize_stack): Add declaration.
16317 * stap-probe.c (_initialize_stap_probe): Add declaration.
16318 * std-regs.c (_initialize_frame_reg): Add declaration.
16319 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16320 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16321 * symfile.c (_initialize_symfile): Add declaration.
16322 * symmisc.c (_initialize_symmisc): Add declaration.
16323 * symtab.c (_initialize_symtab): Add declaration.
16324 * target.c (_initialize_target): Add declaration.
16325 * target-connection.c (_initialize_target_connection): Add
16326 declaration.
16327 * target-dcache.c (_initialize_target_dcache): Add declaration.
16328 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16329 * thread.c (_initialize_thread): Add declaration.
16330 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16331 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16332 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16333 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16334 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16335 * tracectf.c (_initialize_ctf): Add declaration.
16336 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16337 * tracefile.c (_initialize_tracefile): Add declaration.
16338 * tracepoint.c (_initialize_tracepoint): Add declaration.
16339 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16340 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16341 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16342 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16343 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16344 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16345 * tui/tui.c (_initialize_tui): Add declaration.
16346 * typeprint.c (_initialize_typeprint): Add declaration.
16347 * ui-style.c (_initialize_ui_style): Add declaration.
16348 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16349 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16350 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16351 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16352 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16353 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16354 * unittests/filtered_iterator-selftests.c
16355 (_initialize_filtered_iterator_selftests): Add declaration.
16356 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16357 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16358 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16359 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16360 * unittests/main-thread-selftests.c
16361 (_initialize_main_thread_selftests): Add declaration.
16362 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16363 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16364 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16365 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16366 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16367 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16368 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16369 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16370 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16371 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16372 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16373 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16374 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16375 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16376 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16377 declaration.
16378 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16379 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16380 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16381 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16382 * user-regs.c (_initialize_user_regs): Add declaration.
16383 * utils.c (_initialize_utils): Add declaration.
16384 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16385 * valops.c (_initialize_valops): Add declaration.
16386 * valprint.c (_initialize_valprint): Add declaration.
16387 * value.c (_initialize_values): Add declaration.
16388 * varobj.c (_initialize_varobj): Add declaration.
16389 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16390 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16391 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16392 * windows-nat.c (_initialize_windows_nat): Add declaration.
16393 (_initialize_check_for_gdb_ini): Add declaration.
16394 (_initialize_loadable): Add declaration.
16395 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16396 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16397 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16398 * xcoffread.c (_initialize_xcoffread): Add declaration.
16399 * xml-support.c (_initialize_xml_support): Add declaration.
16400 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16401 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16402 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16403 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16404
e2de1eec
SM
164052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16406
16407 * regformats/regdat.sh: Generate declaration for init function.
16408
e0037b4c
SM
164092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16410
16411 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16412 up.
16413 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16414 close_one_inferior>: New methods.
16415 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16416 pass down target to find_inferior_pid.
16417 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16418 Pass down target to find_inferior_ptid.
16419 (gdbsim_target::create_inferior): Pass down target to
16420 add_thread_silent.
16421 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16422 target down to find_inferior_ptid and switch_to_thread.
16423 (gdbsim_target::close): Update to call close_one_inferior.
16424 (struct resume_data): Remove.
16425 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16426 directly, rather than through a void pointer.
16427 (gdbsim_target::resume): Update to call resume_one_inferior.
16428
58920b5b
SM
164292020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16430
16431 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16432
4ec89149
PA
164332020-01-12 Pedro Alves <palves@redhat.com>
16434
16435 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16436 directly for the current inferior instead of
16437 discard_all_inferiors.
16438 (discard_all_inferiors): Delete.
16439
7c392d1d
TT
164402020-01-11 Tom Tromey <tom@tromey.com>
16441
16442 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16443 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16444 deprecated_safe_get_selected_frame.
16445
d9ebdab7
TBA
164462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16447
16448 * inferior.c (print_inferior): Switch inferior before printing it.
16449
f3c469b9
PA
164502020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16451 Pedro Alves <palves@redhat.com>
16452
16453 * progspace-and-thread.c (switch_to_program_space_and_thread):
16454 Assert there's an inferior for PSPACE. Use
16455 switch_to_inferior_no_thread to switch the inferior too.
16456 * progspace.c (program_space::~program_space): Call
16457 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16458 (program_space::free_all_objfiles): Don't call clear_symtab_users
16459 here.
16460 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16461
65c574f6
PA
164622020-01-10 Pedro Alves <palves@redhat.com>
16463
16464 * NEWS: Mention multi-target debugging, "info connections", and
16465 "add-inferior -no-connection".
16466
2f4fcf00
PA
164672020-01-10 Pedro Alves <palves@redhat.com>
16468
16469 * infrun.c: Include "target-connection.h".
16470 (check_multi_target_resumption): New.
16471 (proceed): Call it.
16472 * target-connection.c (make_target_connection_string): Make
16473 extern.
16474 * target-connection.h (make_target_connection_string): Declare.
16475
121b3efd
PA
164762020-01-10 Pedro Alves <palves@redhat.com>
16477
16478 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16479 * inferior.c (uiout_field_connection): New function.
16480 (print_inferior): Add new "connection-id" column.
16481 (add_inferior_command): Show connection number/string of added
16482 inferior.
16483 * process-stratum-target.h
16484 (process_stratum_target::connection_string): New virtual method.
16485 (process_stratum_target::connection_number): New field.
16486 * remote.c (remote_target::connection_string): New override.
16487 * target-connection.c: New file.
16488 * target-connection.h: New file.
16489 * target.c (decref_target): Remove process_stratum targets from
16490 the connection list.
16491 (target_stack::push): Add process_stratum targets to the
16492 connection list.
16493
4f837581
PA
164942020-01-10 Pedro Alves <palves@redhat.com>
16495
16496 Revert:
16497 2016-04-12 Pedro Alves <palves@redhat.com>
16498 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16499 Remove references to name.
16500 * serial.h (struct serial) <name>: Delete.
16501
f4ec508e
PA
165022020-01-10 Pedro Alves <palves@redhat.com>
16503
16504 * gdbarch-selftests.c (register_to_value_test): Remove "target
16505 already pushed" check.
16506
5b6d1e4f
PA
165072020-01-10 Pedro Alves <palves@redhat.com>
16508 John Baldwin <jhb@FreeBSD.org>
16509
16510 * aarch64-linux-nat.c
16511 (aarch64_linux_nat_target::thread_architecture): Adjust.
16512 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16513 (task_command_1): Likewise.
16514 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16515 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16516 (aix_thread_target::store_registers)
16517 (aix_thread_target::thread_alive): Adjust.
16518 * amd64-fbsd-tdep.c: Include "inferior.h".
16519 (amd64fbsd_get_thread_local_address): Pass down target.
16520 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16521 thread's gdbarch instead of target_gdbarch.
16522 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16523 get_last_target_status.
16524 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16525 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16526 inferiors.
16527 (update_inserted_breakpoint_locations): Skip if inferiors with no
16528 execution.
16529 (update_global_location_list): When handling moribund locations,
16530 find representative inferior for location's pspace, and use thread
16531 count of its process_stratum target.
16532 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16533 * bsd-uthread.c (bsd_uthread_target::wait): Use
16534 as_process_stratum_target and adjust thread_change_ptid and
16535 add_thread calls.
16536 (bsd_uthread_target::update_thread_list): Use
16537 as_process_stratum_target and adjust find_thread_ptid,
16538 thread_change_ptid and add_thread calls.
16539 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16540 find_thread_ptid call.
16541 * corelow.c (add_to_thread_list): Adjust add_thread call.
16542 (core_target_open): Adjust add_thread_silent and thread_count
16543 calls.
16544 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16545 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16546 * event-top.c (async_disconnect): Pop targets from all inferiors.
16547 * exec.c (add_target_sections): Push exec target on all inferiors
16548 sharing the program space.
16549 (remove_target_sections): Remove the exec target from all
16550 inferiors sharing the program space.
16551 (exec_on_vfork): New.
16552 * exec.h (exec_on_vfork): Declare.
16553 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16554 Pass it down.
16555 (fbsd_nat_target::update_thread_list): Adjust.
16556 (fbsd_nat_target::resume): Adjust.
16557 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16558 down.
16559 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16560 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16561 get_thread_arch_regcache call.
16562 * fork-child.c (gdb_startup_inferior): Pass target down to
16563 startup_inferior and set_executing.
16564 * gdbthread.h (struct process_stratum_target): Forward declare.
16565 (add_thread, add_thread_silent, add_thread_with_info)
16566 (in_thread_list): Add process_stratum_target parameter.
16567 (find_thread_ptid(inferior*, ptid_t)): New overload.
16568 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16569 parameter.
16570 (all_threads()): Delete overload.
16571 (all_threads, all_non_exited_threads): Add process_stratum_target
16572 parameter.
16573 (all_threads_safe): Use brace initialization.
16574 (thread_count): Add process_stratum_target parameter.
16575 (set_resumed, set_running, set_stop_requested, set_executing)
16576 (threads_are_executing, finish_thread_state): Add
16577 process_stratum_target parameter.
16578 (switch_to_thread): Use is_current_thread.
16579 * i386-fbsd-tdep.c: Include "inferior.h".
16580 (i386fbsd_get_thread_local_address): Pass down target.
16581 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16582 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16583 have_inferiors check.
16584 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16585 (inf_ptrace_target::attach): Adjust.
16586 * infcall.c (run_inferior_call): Adjust.
16587 * infcmd.c (run_command_1): Pass target to
16588 scoped_finish_thread_state.
16589 (proceed_thread_callback): Skip inferiors with no execution.
16590 (continue_command): Rename 'all_threads' local to avoid hiding
16591 'all_threads' function. Adjust get_last_target_status call.
16592 (prepare_one_step): Adjust set_running call.
16593 (signal_command): Use user_visible_resume_target. Compare thread
16594 pointers instead of inferior_ptid.
16595 (info_program_command): Adjust to pass down target.
16596 (attach_command): Mark target's 'thread_executing' flag.
16597 (stop_current_target_threads_ns): New, factored out from ...
16598 (interrupt_target_1): ... this. Switch inferior before making
16599 target calls.
16600 * inferior-iter.h
16601 (struct all_inferiors_iterator, struct all_inferiors_range)
16602 (struct all_inferiors_safe_range)
16603 (struct all_non_exited_inferiors_range): Filter on
16604 process_stratum_target too. Remove explicit.
16605 * inferior.c (inferior::inferior): Push dummy target on target
16606 stack.
16607 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16608 Add process_stratum_target parameter, and pass it down.
16609 (have_live_inferiors): Adjust.
16610 (switch_to_inferior_and_push_target): New.
16611 (add_inferior_command, clone_inferior_command): Handle
16612 "-no-connection" parameter. Use
16613 switch_to_inferior_and_push_target.
16614 (_initialize_inferior): Mention "-no-connection" option in
16615 the help of "add-inferior" and "clone-inferior" commands.
16616 * inferior.h: Include "process-stratum-target.h".
16617 (interrupt_target_1): Use bool.
16618 (struct inferior) <push_target, unpush_target, target_is_pushed,
16619 find_target_beneath, top_target, process_target, target_at,
16620 m_stack>: New.
16621 (discard_all_inferiors): Delete.
16622 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16623 (all_inferiors, all_non_exited_inferiors): Add
16624 process_stratum_target parameter.
16625 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16626 (target_last_proc_target): New global.
16627 (follow_fork_inferior): Push target on new inferior. Pass target
16628 to add_thread_silent. Call exec_on_vfork. Handle target's
16629 reference count.
16630 (follow_fork): Adjust get_last_target_status call. Also consider
16631 target.
16632 (follow_exec): Push target on new inferior.
16633 (struct execution_control_state) <target>: New field.
16634 (user_visible_resume_target): New.
16635 (do_target_resume): Call target_async.
16636 (resume_1): Set target's threads_executing flag. Consider resume
16637 target.
16638 (commit_resume_all_targets): New.
16639 (proceed): Also consider resume target. Skip threads of inferiors
16640 with no execution. Commit resumtion in all targets.
16641 (start_remote): Pass current inferior to wait_for_inferior.
16642 (infrun_thread_stop_requested): Consider target as well. Pass
16643 thread_info pointer to clear_inline_frame_state instead of ptid.
16644 (infrun_thread_thread_exit): Consider target as well.
16645 (random_pending_event_thread): New inferior parameter. Use it.
16646 (do_target_wait): Rename to ...
16647 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16648 down.
16649 (threads_are_resumed_pending_p, do_target_wait): New.
16650 (prepare_for_detach): Adjust calls.
16651 (wait_for_inferior): New inferior parameter. Handle it. Use
16652 do_target_wait_1 instead of do_target_wait.
16653 (fetch_inferior_event): Adjust. Switch to representative
16654 inferior. Pass target down.
16655 (set_last_target_status): Add process_stratum_target parameter.
16656 Save target in global.
16657 (get_last_target_status): Add process_stratum_target parameter and
16658 handle it.
16659 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16660 (context_switch): Check inferior_ptid == null_ptid before calling
16661 inferior_thread().
16662 (get_inferior_stop_soon): Pass down target.
16663 (wait_one): Rename to ...
16664 (poll_one_curr_target): ... this.
16665 (struct wait_one_event): New.
16666 (wait_one): New.
16667 (stop_all_threads): Adjust.
16668 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16669 event's target.
16670 (switch_back_to_stepped_thread): Also consider target.
16671 (print_stop_event): Update.
16672 (normal_stop): Update. Also consider the resume target.
16673 * infrun.h (wait_for_inferior): Remove declaration.
16674 (user_visible_resume_target): New declaration.
16675 (get_last_target_status, set_last_target_status): New
16676 process_stratum_target parameter.
16677 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16678 process_stratum_target parameter, and use it.
16679 (clear_inline_frame_state (thread_info*)): New.
16680 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16681 process_stratum_target parameter.
16682 (clear_inline_frame_state (thread_info*)): Declare.
16683 * linux-fork.c (delete_checkpoint_command): Pass target down to
16684 find_thread_ptid.
16685 (checkpoint_command): Adjust.
16686 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16687 instead of just tweaking inferior_ptid.
16688 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16689 (exit_lwp): Pass target down to find_thread_ptid.
16690 (attach_proc_task_lwp_callback): Pass target down to
16691 add_thread/set_running/set_executing.
16692 (linux_nat_target::attach): Pass target down to
16693 thread_change_ptid.
16694 (get_detach_signal): Pass target down to find_thread_ptid.
16695 Consider last target status's target.
16696 (linux_resume_one_lwp_throw, resume_lwp)
16697 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16698 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16699 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16700 (linux_nat_target::async_wait_fd): New.
16701 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16702 target down.
16703 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16704 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16705 * linux-thread-db.c (struct thread_db_info::process_target): New
16706 field.
16707 (add_thread_db_info): Save target.
16708 (get_thread_db_info): New process_stratum_target parameter. Also
16709 match target.
16710 (delete_thread_db_info): New process_stratum_target parameter.
16711 Also match target.
16712 (thread_from_lwp): Adjust to pass down target.
16713 (thread_db_notice_clone): Pass down target.
16714 (check_thread_db_callback): Pass down target.
16715 (try_thread_db_load_1): Always push the thread_db target.
16716 (try_thread_db_load, record_thread): Pass target down.
16717 (thread_db_target::detach): Pass target down. Always unpush the
16718 thread_db target.
16719 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16720 target down. Always unpush the thread_db target.
16721 (find_new_threads_callback, thread_db_find_new_threads_2)
16722 (thread_db_target::update_thread_list): Pass target down.
16723 (thread_db_target::pid_to_str): Pass current inferior down.
16724 (thread_db_target::get_thread_local_address): Pass target down.
16725 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16726 target down.
16727 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16728 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16729 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16730 (procfs_init_inferior): Rename to ...
16731 (procfs_target::procfs_init_inferior): ... this and adjust.
16732 (procfs_target::create_inferior, procfs_notice_thread)
16733 (procfs_do_thread_registers): Adjust.
16734 * ppc-fbsd-tdep.c: Include "inferior.h".
16735 (ppcfbsd_get_thread_local_address): Pass down target.
16736 * proc-service.c (ps_xfer_memory): Switch current inferior and
16737 program space as well.
16738 (get_ps_regcache): Pass target down.
16739 * process-stratum-target.c
16740 (process_stratum_target::thread_address_space)
16741 (process_stratum_target::thread_architecture): Pass target down.
16742 * process-stratum-target.h
16743 (process_stratum_target::threads_executing): New field.
16744 (as_process_stratum_target): New.
16745 * ravenscar-thread.c
16746 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16747 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16748 down.
16749 * record-btrace.c (record_btrace_target::info_record): Adjust.
16750 (record_btrace_target::record_method)
16751 (record_btrace_target::record_is_replaying)
16752 (record_btrace_target::fetch_registers)
16753 (get_thread_current_frame_id, record_btrace_target::resume)
16754 (record_btrace_target::wait, record_btrace_target::stop): Pass
16755 target down.
16756 * record-full.c (record_full_wait_1): Switch to event thread.
16757 Pass target down.
16758 * regcache.c (regcache::regcache)
16759 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16760 process_stratum_target parameter and handle it.
16761 (current_thread_target): New global.
16762 (get_thread_regcache): Add process_stratum_target parameter and
16763 handle it. Switch inferior before calling target method.
16764 (get_thread_regcache): Pass target down.
16765 (get_thread_regcache_for_ptid): Pass target down.
16766 (registers_changed_ptid): Add process_stratum_target parameter and
16767 handle it.
16768 (registers_changed_thread, registers_changed): Pass target down.
16769 (test_get_thread_arch_aspace_regcache): New.
16770 (current_regcache_test): Define a couple local test_target_ops
16771 instances and use them for testing.
16772 (readwrite_regcache): Pass process_stratum_target parameter.
16773 (cooked_read_test, cooked_write_test): Pass mock_target down.
16774 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16775 (get_thread_arch_aspace_regcache): Add process_stratum_target
16776 parameter.
16777 (regcache::target): New method.
16778 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16779 (regcache::registers_changed_ptid): Add process_stratum_target
16780 parameter.
16781 (regcache::m_target): New field.
16782 (registers_changed_ptid): Add process_stratum_target parameter.
16783 * remote.c (remote_state::supports_vCont_probed): New field.
16784 (remote_target::async_wait_fd): New method.
16785 (remote_unpush_and_throw): Add remote_target parameter.
16786 (get_current_remote_target): Adjust.
16787 (remote_target::remote_add_inferior): Push target.
16788 (remote_target::remote_add_thread)
16789 (remote_target::remote_notice_new_inferior)
16790 (get_remote_thread_info): Pass target down.
16791 (remote_target::update_thread_list): Skip threads of inferiors
16792 bound to other targets. (remote_target::close): Don't discard
16793 inferiors. (remote_target::add_current_inferior_and_thread)
16794 (remote_target::process_initial_stop_replies)
16795 (remote_target::start_remote)
16796 (remote_target::remote_serial_quit_handler): Pass down target.
16797 (remote_target::remote_unpush_target): New remote_target
16798 parameter. Unpush the target from all inferiors.
16799 (remote_target::remote_unpush_and_throw): New remote_target
16800 parameter. Pass it down.
16801 (remote_target::open_1): Check whether the current inferior has
16802 execution instead of checking whether any inferior is live. Pass
16803 target down.
16804 (remote_target::remote_detach_1): Pass down target. Use
16805 remote_unpush_target.
16806 (extended_remote_target::attach): Pass down target.
16807 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16808 (remote_target::append_resumption): Pass down target.
16809 (remote_target::append_pending_thread_resumptions)
16810 (remote_target::remote_resume_with_hc, remote_target::resume)
16811 (remote_target::commit_resume): Pass down target.
16812 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16813 (remote_target::interrupt_query)
16814 (remote_target::remove_new_fork_children)
16815 (remote_target::check_pending_events_prevent_wildcard_vcont)
16816 (remote_target::remote_parse_stop_reply)
16817 (remote_target::process_stop_reply): Pass down target.
16818 (first_remote_resumed_thread): New remote_target parameter. Pass
16819 it down.
16820 (remote_target::wait_as): Pass down target.
16821 (unpush_and_perror): New remote_target parameter. Pass it down.
16822 (remote_target::readchar, remote_target::remote_serial_write)
16823 (remote_target::getpkt_or_notif_sane_1)
16824 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16825 down target.
16826 (remote_target::mourn_inferior): Pass down target. Use
16827 remote_unpush_target.
16828 (remote_target::core_of_thread)
16829 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16830 (remote_target::pid_to_exec_file)
16831 (remote_target::thread_handle_to_thread_info): Pass down target.
16832 (remote_target::async_wait_fd): New.
16833 * riscv-fbsd-tdep.c: Include "inferior.h".
16834 (riscv_fbsd_get_thread_local_address): Pass down target.
16835 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16836 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16837 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16838 Adjust.
16839 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16840 * solib-svr4.c (enable_break): Pass down target.
16841 * spu-multiarch.c (parse_spufs_run): Pass down target.
16842 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16843 * target-delegates.c: Regenerate.
16844 * target.c (g_target_stack): Delete.
16845 (current_top_target): Return the current inferior's top target.
16846 (target_has_execution_1): Refer to the passed-in inferior's top
16847 target.
16848 (target_supports_terminal_ours): Check whether the initial
16849 inferior was already created.
16850 (decref_target): New.
16851 (target_stack::push): Incref/decref the target.
16852 (push_target, push_target, unpush_target): Adjust.
16853 (target_stack::unpush): Defref target.
16854 (target_is_pushed): Return bool. Adjust to refer to the current
16855 inferior's target stack.
16856 (dispose_inferior): Delete, and inline parts ...
16857 (target_preopen): ... here. Only dispose of the current inferior.
16858 (target_detach): Hold strong target reference while detaching.
16859 Pass target down.
16860 (target_thread_name): Add assertion.
16861 (target_resume): Pass down target.
16862 (target_ops::beneath, find_target_at): Adjust to refer to the
16863 current inferior's target stack.
16864 (get_dummy_target): New.
16865 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16866 has a thread running.
16867 (initialize_targets): Rename to ...
16868 (_initialize_target): ... this.
16869 * target.h: Include "gdbsupport/refcounted-object.h".
16870 (struct target_ops): Inherit refcounted_object.
16871 (target_ops::shortname, target_ops::longname): Make const.
16872 (target_ops::async_wait_fd): New method.
16873 (decref_target): Declare.
16874 (struct target_ops_ref_policy): New.
16875 (target_ops_ref): New typedef.
16876 (get_dummy_target): Declare function.
16877 (target_is_pushed): Return bool.
16878 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16879 (all_matching_threads_iterator::all_matching_threads_iterator):
16880 Handle filter target.
16881 * thread-iter.h (struct all_matching_threads_iterator, struct
16882 all_matching_threads_range, class all_non_exited_threads_range):
16883 Filter by target too. Remove explicit.
16884 * thread.c (threads_executing): Delete.
16885 (inferior_thread): Pass down current inferior.
16886 (clear_thread_inferior_resources): Pass down thread pointer
16887 instead of ptid_t.
16888 (add_thread_silent, add_thread_with_info, add_thread): Add
16889 process_stratum_target parameter. Use it for thread and inferior
16890 searches.
16891 (is_current_thread): New.
16892 (thread_info::deletable): Use it.
16893 (find_thread_ptid, thread_count, in_thread_list)
16894 (thread_change_ptid, set_resumed, set_running): New
16895 process_stratum_target parameter. Pass it down.
16896 (set_executing): New process_stratum_target parameter. Pass it
16897 down. Adjust reference to 'threads_executing'.
16898 (threads_are_executing): New process_stratum_target parameter.
16899 Adjust reference to 'threads_executing'.
16900 (set_stop_requested, finish_thread_state): New
16901 process_stratum_target parameter. Pass it down.
16902 (switch_to_thread): Also match inferior.
16903 (switch_to_thread): New process_stratum_target parameter. Pass it
16904 down.
16905 (update_threads_executing): Reimplement.
16906 * top.c (quit_force): Pop targets from all inferior.
16907 (gdb_init): Don't call initialize_targets.
16908 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16909 Declare.
16910 (windows_add_thread, windows_delete_thread): Adjust.
16911 (get_windows_debug_event): Rename to ...
16912 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16913 * tracefile-tfile.c (tfile_target_open): Pass down target.
16914 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16915 Forward declare.
16916 (switch_to_thread): Add process_stratum_target parameter.
16917 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16918 parameter. Use it.
16919 (mi_on_resume): Pass target down.
16920 * nat/fork-inferior.c (startup_inferior): Add
16921 process_stratum_target parameter. Pass it down.
16922 * nat/fork-inferior.h (startup_inferior): Add
16923 process_stratum_target parameter.
16924 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16925
75c6c844
PA
169262020-01-10 Pedro Alves <palves@redhat.com>
16927
16928 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16929 directly. Instead find the first thread in the thread list and
16930 use switch_to_thread.
16931
78f2c40a
PA
169322020-01-10 Pedro Alves <palves@redhat.com>
16933
16934 * remote.c (remote_target::remote_add_inferior): Don't bind a
16935 process to the current inferior if the current inferior is already
16936 bound to a process.
16937
e7af6c70
TBA
169382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16939 Pedro Alves <palves@redhat.com>
16940
16941 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16942 If no process is specified, return null_ptid instead of
16943 inferior_ptid.
16944 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16945 TARGET_WAITKIND_SIGNALLED with no pid.
16946
31ba933e
PA
169472020-01-10 Pedro Alves <palves@redhat.com>
16948
16949 * remote.c (first_remote_resumed_thread): New.
16950 (remote_target::wait_as): Use it as default event_ptid instead of
16951 inferior_ptid.
16952
735fc2ca
PA
169532020-01-10 Pedro Alves <palves@redhat.com>
16954
16955 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16956
c17e02e1
PA
169572020-01-10 Pedro Alves <palves@redhat.com>
16958
16959 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16960 not -1.
16961
ab1ddbcf
PA
169622020-01-10 Pedro Alves <palves@redhat.com>
16963
16964 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16965 ptid to get_last_target_status.
16966 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16967 ptid to get_last_target_status.
16968 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16969 get_last_target_status.
16970 (info_program_command): Don't pass a target_waitstatus to
16971 get_last_target_status.
16972 * infrun.c (init_wait_for_inferior): Use
16973 nullify_last_target_wait_ptid.
16974 (get_last_target_status): Handle nullptr arguments.
16975 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16976 (print_stop_event): Don't pass a ptid to get_last_target_status.
16977 (normal_stop): Don't pass a ptid to get_last_target_status.
16978 * infrun.h (get_last_target_status, set_last_target_status): Move
16979 comments here and update.
16980 (nullify_last_target_wait_ptid): Declare.
16981 * linux-fork.c (fork_load_infrun_state): Remove local extern
16982 declaration of nullify_last_target_wait_ptid.
16983 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16984 to get_last_target_status.
16985
f3f8ece4
PA
169862020-01-10 Pedro Alves <palves@redhat.com>
16987
16988 * gdbthread.h (scoped_restore_current_thread)
16989 <dont_restore, restore, m_dont_restore>: Declare.
16990 * thread.c (thread_alive): Add assertion. Return bool.
16991 (switch_to_thread_if_alive): New.
16992 (prune_threads): Switch inferior/thread.
16993 (print_thread_info_1): Switch thread before calling target methods.
16994 (scoped_restore_current_thread::restore): New, factored out from
16995 ...
16996 (scoped_restore_current_thread::~scoped_restore_current_thread):
16997 ... this.
16998 (scoped_restore_current_thread::scoped_restore_current_thread):
16999 Add assertion.
17000 (thread_apply_all_command, thread_select): Use
17001 switch_to_thread_if_alive.
17002 * infrun.c (proceed, restart_threads, handle_signal_stop)
17003 (switch_back_to_stepped_thread): Switch current thread before
17004 calling target methods.
17005
db2d40f7
PA
170062020-01-10 Pedro Alves <palves@redhat.com>
17007
17008 * inferior.c (switch_to_inferior_no_thread): New function,
17009 factored out from ...
17010 (inferior_command): ... here.
17011 * inferior.h (switch_to_inferior_no_thread): Declare.
17012 * mi/mi-main.c (run_one_inferior): Use
17013 switch_to_inferior_no_thread.
17014
bd420a2d
PA
170152020-01-10 Pedro Alves <palves@redhat.com>
17016
17017 * infcmd.c (kill_command): Remove dead code.
17018
ddf5db90
PA
170192020-01-10 Pedro Alves <palves@redhat.com>
17020
17021 * remote.c (remote_target::mourn_inferior): No longer check
17022 whether the target is running.
17023
5018ce90
PA
170242020-01-10 Pedro Alves <palves@redhat.com>
17025
17026 * corelow.c (core_target::has_execution): Change parameter type to
17027 inferior pointer.
17028 * inferior.c (number_of_live_inferiors): Use
17029 inferior::has_execution instead of target_has_execution_1.
17030 * inferior.h (inferior::has_execution): New.
17031 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17032 inferior::has_execution instead of target_has_execution_1.
17033 * process-stratum-target.c
17034 (process_stratum_target::has_execution): Change parameter type to
17035 inferior pointer. Check the inferior's PID instead of
17036 inferior_ptid.
17037 * process-stratum-target.h
17038 (process_stratum_target::has_execution): Change parameter type to
17039 inferior pointer.
17040 * record-full.c (record_full_core_target::has_execution): Change
17041 parameter type to inferior pointer.
17042 * target.c (target_has_execution_1): Change parameter type to
17043 inferior pointer.
17044 (target_has_execution_current): Adjust.
17045 * target.h (target_ops::has_execution): Change parameter type to
17046 inferior pointer.
17047 (target_has_execution_1): Change parameter type to inferior
17048 pointer. Change return type to bool.
17049 * tracefile.h (tracefile_target::has_execution): Change parameter
17050 type to inferior pointer.
17051
74375d18
PA
170522020-01-10 Pedro Alves <palves@redhat.com>
17053
17054 * exceptions.c (print_flush): Remove current_top_target() check.
17055
acdf84a6
PA
170562020-01-10 Pedro Alves <palves@redhat.com>
17057
17058 * remote.c (show_remote_exec_file): Show the current inferior's
17059 exec-file instead of the command variable's value.
17060
ec506636
PA
170612020-01-10 Pedro Alves <palves@redhat.com>
17062
17063 * record-full.c (record_full_resume_ptid): New global.
17064 (record_full_target::resume): Set it.
17065 (record_full_wait_1): Use record_full_resume_ptid instead of
17066 inferior_ptid.
17067
873657b9
PA
170682020-01-10 Pedro Alves <palves@redhat.com>
17069
17070 * gdbthread.h (scoped_restore_current_thread)
17071 <dont_restore, restore, m_dont_restore>: Declare.
17072 * thread.c (thread_alive): Add assertion. Return bool.
17073 (switch_to_thread_if_alive): New.
17074 (prune_threads): Switch inferior/thread.
17075 (print_thread_info_1): Switch thread before calling target methods.
17076 (scoped_restore_current_thread::restore): New, factored out from
17077 ...
17078 (scoped_restore_current_thread::~scoped_restore_current_thread):
17079 ... this.
17080 (scoped_restore_current_thread::scoped_restore_current_thread):
17081 Add assertion.
17082 (thread_apply_all_command, thread_select): Use
17083 switch_to_thread_if_alive.
17084
7f0ae84c
GB
170852020-01-10 George Barrett <bob@bob131.so>
17086
17087 * stap-probe.c (stap_modify_semaphore): Don't check for null
17088 semaphores.
17089 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17090 for null semaphores.
17091
f5a7c406
AB
170922020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17093
17094 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17095 all source windows, and maintain horizontal scroll status while
17096 doing so.
17097
9ae6bf64
TT
170982020-01-09 Tom Tromey <tom@tromey.com>
17099
17100 PR tui/18932:
17101 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17102 update_source_window, not print_source_lines.
17103
b2efe70c
AB
171042020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17105
17106 * tui/tui.c (tui_enable): Register tui hooks after calling
17107 tui_display_main.
17108
5f23a082
CB
171092020-01-09 Christian Biesinger <cbiesinger@google.com>
17110
17111 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17112
3061113b
SM
171132020-01-08 Simon Marchi <simon.marchi@efficios.com>
17114
17115 * thread.c (print_thread_info_1): Fix indentation.
17116
57d75002
CB
171172020-01-09 Christian Biesinger <cbiesinger@google.com>
17118
17119 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17120 unique_xmalloc_ptr outside the if to always free the demangled name.
17121
6a053cb1
TT
171222020-01-08 Tom Tromey <tromey@adacore.com>
17123
17124 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17125 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17126 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17127 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17128 Remove.
17129 (section_offsets): New typedef.
17130 * symtab.c (fixup_section, get_msymbol_address): Update.
17131 * symmisc.c (dump_msymbols): Update.
17132 * symfile.h (relative_addr_info_to_section_offsets)
17133 (symfile_map_offsets_to_segments): Update.
17134 * symfile.c (build_section_addr_info_from_objfile)
17135 (init_objfile_sect_indices): Update.
17136 (struct place_section_arg): Change type of "offsets".
17137 (place_section): Update.
17138 (relative_addr_info_to_section_offsets): Change type of
17139 "section_offsets". Remove "num_sections" parameter.
17140 (default_symfile_offsets, syms_from_objfile_1)
17141 (set_objfile_default_section_offset): Update.
17142 (reread_symbols): No need to preserve section offsets by hand.
17143 (symfile_map_offsets_to_segments): Change type of "offsets".
17144 * stap-probe.c (relocate_address): Update.
17145 * stabsread.h (process_one_symbol): Update.
17146 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17147 (solib_target_relocate_section_addresses): Update.
17148 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17149 Update.
17150 * solib-frv.c (frv_relocate_main_executable): Update.
17151 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17152 * solib-aix.c (solib_aix_get_section_offsets): Change return
17153 type.
17154 (solib_aix_solib_create_inferior_hook): Update.
17155 * remote.c (remote_target::get_offsets): Update.
17156 * psymtab.c (find_pc_sect_psymtab): Update.
17157 * psympriv.h (struct partial_symbol) <address, text_low,
17158 text_high>: Update.
17159 * objfiles.h (obj_section_offset): Update.
17160 (struct objfile) <section_offsets>: Change type.
17161 <num_sections>: Remove.
17162 (objfile_relocate): Update.
17163 * objfiles.c (entry_point_address_query): Update
17164 (relocate_one_symbol): Change type of "section_offsets".
17165 (objfile_relocate1, objfile_relocate1): Change type of
17166 "new_offsets".
17167 (objfile_rebase1): Update.
17168 * mipsread.c (mipscoff_symfile_read): Update.
17169 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17170 parameter.
17171 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17172 (parse_external, psymtab_to_symtab_1): Update.
17173 * machoread.c (macho_symfile_offsets): Update.
17174 * ia64-tdep.c (ia64_find_unwind_table): Update.
17175 * hppa-tdep.c (read_unwind_info): Update.
17176 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17177 * dwarf2read.c (create_addrmap_from_index)
17178 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17179 (process_psymtab_comp_unit_reader, add_partial_symbol)
17180 (add_partial_subprogram, process_full_comp_unit)
17181 (read_file_scope, read_func_scope, read_lexical_block_scope)
17182 (read_call_site_scope, dwarf2_rnglists_process)
17183 (dwarf2_ranges_process, dwarf2_ranges_read)
17184 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17185 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17186 Update.
17187 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17188 Update.
17189 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17190 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17191 (process_one_symbol): Change type of "section_offsets".
17192 * ctfread.c (get_objfile_text_range): Update.
17193 * coffread.c (coff_symtab_read, enter_linenos)
17194 (process_coff_symbol): Update.
17195 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17196 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17197
456e800a
TT
171982020-01-08 Tom Tromey <tromey@adacore.com>
17199
17200 * dwarf2read.c (parse_macro_definition): Use std::string.
17201 (parse_macro_definition): Likewise.
17202
6dfa2fc2
TT
172032020-01-08 Tom Tromey <tromey@adacore.com>
17204
17205 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17206 (ATTR_ALLOC_CHUNK): Remove.
17207
421d1616
TT
172082020-01-08 Tom Tromey <tromey@adacore.com>
17209
17210 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17211
43816ebc
TT
172122020-01-08 Tom Tromey <tromey@adacore.com>
17213
17214 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17215 (dwarf2_compute_name, open_dwo_file): Likewise.
17216 (process_enumeration_scope): Use std::vector.
17217 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17218 (partial_die_info::fixup, dwarf2_start_subfile)
17219 (guess_full_die_structure_name, dwarf2_name): Likewise.
17220 (determine_prefix): Update.
17221 (guess_full_die_structure_name): Make return type const.
17222 (partial_die_full_name): Return unique_xmalloc_ptr.
17223 (DW_FIELD_ALLOC_CHUNK): Remove.
17224
4212d509
TT
172252020-01-07 Tom Tromey <tromey@adacore.com>
17226
17227 PR build/24937:
17228 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17229
06a6207a
JT
172302020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17231
17232 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17233
153d79c4
AB
172342020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17235
17236 * stack.c (print_frame_info): Move disassemble_next_line code
17237 inside source_print block.
17238
66182876
EZ
172392020-01-06 Eli Zaretskii <eliz@gnu.org>
17240
17241 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17242 gdb/signals.h, as we are now using native signal symbols.
17243
cbfa8581
SV
172442020-01-06 Shahab Vahedi <shahab@synopsys.com>
17245
17246 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17247 overflow by an early check of content vs threshold.
aac66a4c 17248 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17249 Likewise.
17250
3f602821
EZ
172512020-01-06 Eli Zaretskii <eliz@gnu.org>
17252
17253 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17254
a08c904d
JT
172552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17256
17257 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17258 export table if no section contains it's RVA.
17259
89a65580
EZ
172602020-01-06 Eli Zaretskii <eliz@gnu.org>
17261
17262 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17263
8b7fcda2
HD
172642020-01-06 Hannes Domani <ssbssa@yahoo.de>
17265
17266 * source.c (print_source_lines_base): Set last_line_listed.
17267
a61b4f69
SV
172682020-01-06 Shahab Vahedi <shahab@synopsys.com>
17269
17270 * tui/tui-disasm.c: Remove trailing spaces.
17271
559e7e50
EZ
172722020-01-06 Eli Zaretskii <eliz@gnu.org>
17273 Pedro Alves <palves@redhat.com>
17274
17275 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17276 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17277 (windows_gdb_signal_to_target): New function, uses the above
17278 enumeration to convert GDB internal signal codes to equivalent
17279 Windows codes.
17280 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17281 * windows-nat.c: Include "gdb_wait.h".
17282 (get_windows_debug_event): Extract the fatal exception from the
17283 exit status and convert to the equivalent Posix signal number.
17284 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17285 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17286 * gdbsupport/gdb_wait.c: New file, implements
17287 windows_status_to_termsig.
17288 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17289 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17290
f2302a34
AB
172912020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17292
17293 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17294 show_layout.
17295
6a5206eb
LM
172962020-01-05 Luis Machado <luis.machado@linaro.org>
17297
17298 * aarch64-linux-nat.c
17299 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17300 and bfd_mach_aarch64.
17301
6ec1d75e
PW
173022020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17303
17304 * ui-file.c (stdio_file::can_emit_style_escape)
17305 (tee_file::can_emit_style_escape): Ensure style is used also on
17306 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17307 to gdb_stdout.
17308 * main.c (set_gdb_data_directory): Use file style to output the
17309 warning that the given pathname is not a directory.
17310 * top.c (show_history_filename, gdb_safe_append_history)
17311 (show_gdb_datadir): Use file style.
17312
44f81a76
HD
173132020-01-03 Hannes Domani <ssbssa@yahoo.de>
17314
17315 * solib-target.c (struct lm_info_target):
17316 Change offsets to be a unique_xmalloc_ptr.
17317 (solib_target_relocate_section_addresses): Update.
17318
25057eb0
HD
173192020-01-03 Hannes Domani <ssbssa@yahoo.de>
17320
17321 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17322
6e2118f5
BE
173232020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17324
17325 * MAINTAINERS (Write After Approval): Add myself.
17326
8133c7dc
LM
173272020-01-02 Luis Machado <luis.machado@linaro.org>
17328
17329 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17330 Cell BE architecture.
17331 * target.h (struct target_ops) <thread_architecture>: Likewise.
17332
48189bec
HD
173332020-01-01 Hannes Domani <ssbssa@yahoo.de>
17334
17335 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17336
ead1063b
HD
173372020-01-01 Hannes Domani <ssbssa@yahoo.de>
17338
17339 * MAINTAINERS (Write After Approval): Add myself.
17340
e5d78223
JB
173412020-01-01 Joel Brobecker <brobecker@adacore.com>
17342
17343 * gdbarch.sh: Update copyright year range of generated files.
17344
b811d2c2
JB
173452020-01-01 Joel Brobecker <brobecker@adacore.com>
17346
17347 Update copyright year range in all GDB files.
17348
5f4def5c
JB
173492020-01-01 Joel Brobecker <brobecker@adacore.com>
17350
17351 * copyright.py: Convert to Python 3.
17352
51fd4002
JB
173532020-01-01 Joel Brobecker <brobecker@adacore.com>
17354
17355 * copyright.py: Adapt after move of gnulib directory from gdb
17356 directory to toplevel directory.
17357
5fb651f2
JB
173582020-01-01 Joel Brobecker <brobecker@adacore.com>
17359
17360 * copyright.py (main): Exit if run from the wrong directory.
17361
5dd8bf88
JB
173622020-01-01 Joel Brobecker <brobecker@adacore.com>
17363
17364 * top.c (print_gdb_version): Change copyright year to 2020.
17365
9f71dacb 173662020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17367
9f71dacb 17368 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17369
9f71dacb 17370For older changes see ChangeLog-2019.
c906108c
SS
17371\f
17372Local Variables:
17373mode: change-log
17374left-margin: 8
17375fill-column: 74
17376version-control: never
57da7796 17377coding: utf-8
c906108c 17378End:
This page took 3.085034 seconds and 4 git commands to generate.