Remove some dead code from evaluate_subexp_standard
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1cd49c43
TT
12020-11-30 Tom Tromey <tom@tromey.com>
2
3 * eval.c (init_array_element): Remove.
4 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
5
96fb9086
HD
62020-11-29 Hannes Domani <ssbssa@yahoo.de>
7
8 PR tui/26973
9 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
10 static locator win info.
11
b4132322
AR
122020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
13
14 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
15 program.
16
3df8c6af
AB
172020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
20 is always initialized.
21
239ca5e4
PW
222020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23
24 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
25 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
26
cbfa382a
TT
272020-11-25 Tom Tromey <tom@tromey.com>
28
29 * eval.c (evaluate_subexp_standard): Remove unnecessary
30 variables.
31
af30c400
TT
322020-11-25 Tom Tromey <tom@tromey.com>
33
34 * d-lang.c: Include parser-defs.h.
35 * rust-lang.c: Include parser-defs.h.
36 * c-lang.h: Do not include parser-defs.h.
37
1c64f6cb
SM
382020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * regcache.h (struct cached_reg): Remove typedef.
41
2c20a601
JB
422020-11-24 Joel Brobecker <brobecker@adacore.com>
43
44 * README: Fix the URL of the MPFR library.
45
c609df64
JB
462020-11-24 Joel Brobecker <brobecker@adacore.com>
47
48 * README: Document the --with-libgmp-prefix configure option.
49
fa123c32
JB
502020-11-24 Joel Brobecker <brobecker@adacore.com>
51
52 * NEWS: Add entry documenting support for DWARF-based fixed
53 point types.
54
0fb8bb02
JB
552020-11-24 Joel Brobecker <brobecker@adacore.com>
56
57 * NEWS: Document that building GDB now requires GMP.
58
4afa9fd9
JB
592020-11-24 Joel Brobecker <brobecker@adacore.com>
60
61 * typeprint.c (print_type_scalar): Add handling of
62 TYPE_CODE_FIXED_POINT.
63
af619ce9
JB
642020-11-24 Joel Brobecker <brobecker@adacore.com>
65
66 * valarith.c (fixed_point_binop): Replace the
67 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
68 users accordingly.
69
e6fcee3a
JB
702020-11-24 Joel Brobecker <brobecker@adacore.com>
71
72 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
73 replacing fixed_point_scaling_factor. All callers updated
74 throughout this project.
75 (fixed_point_scaling_factor): Delete declaration.
76 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
77 fixed_point_scaling_factor. Adjust implementation accordingly.
78
d19937a7
JB
792020-11-24 Joel Brobecker <brobecker@adacore.com>
80
81 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
82 replacing the fixed_point_type_base_type function. All callers
83 updated throughout this project.
84 (fixed_point_type_base_type): Remove declaration.
85 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
86 fixed_point_type_base_type. Adjust implementation accordingly.
87
2a12c336
JB
882020-11-24 Joel Brobecker <brobecker@adacore.com>
89
90 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
91 New methods.
92 (INIT_FIXED_POINT_SPECIFIC): Adjust.
93 (TYPE_FIXED_POINT_INFO): Delete macro.
94 (allocate_fixed_point_type_info): Change return type to void.
95 * gdbtypes.c (copy_type_recursive): Replace the use of
96 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
97 (fixed_point_scaling_factor): Likewise.
98 (allocate_fixed_point_type_info): Change return type to void.
99 Adjust implementation accordingly.
100 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
101 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
102
c9f0b43f
JB
1032020-11-24 Joel Brobecker <brobecker@adacore.com>
104
105 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
106 into one single gdb::array_view parameter.
107 (gdb_mpz::write): Likewise.
108 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
109 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
110 into one single gdb::array_view parameter.
111 Adjust implementation accordingly.
112 (gdb_mpz::write): Likewise.
113 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
114 * unittests/gmp-utils-selftests.c: Adapt following changes above.
115 * valarith.c, valops.c, valprint.c, value.c: Likewise.
116
987b6703
JB
1172020-11-24 Joel Brobecker <brobecker@adacore.com>
118
119 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
120 Change return type to std::string. Update all callers.
121 * gmp-utils.c (gmp_string_printf): Likewise.
122
4fbb7cce
JB
1232020-11-24 Joel Brobecker <brobecker@adacore.com>
124
125 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
126 instead of mpq_set_ui to initialize our GMP rational.
127
d6ab69dd
TV
1282020-11-23 Tom de Vries <tdevries@suse.de>
129
130 * debuginfod-support.c (debuginfod_source_query)
131 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
132
dab72643
TT
1332020-11-21 Tom Tromey <tom@tromey.com>
134
135 * breakpoint.c (watchpoint_exp_is_const): Return bool.
136
c0ad05d5
SM
1372020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
140 Pass 2.0 to pow.
141 (gdb_mpz_write_all_from_small): Likewise.
142
a43b29c9
SM
1432020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
146 of abs.
147
ae41200b
NA
1482020-11-20 Nick Alcock <nick.alcock@oracle.com>
149
150 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
151 ctf_arc_open_by_name.
152
139633c3
NA
1532020-11-20 Nick Alcock <nick.alcock@oracle.com>
154
155 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
156 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
157
cbbcd7a7
PA
1582020-11-20 Pedro Alves <pedro@palves.net>
159
160 * language.c (language_arch_info::lookup_primitive_type): Use
161 gdb::function_view instead of gdb::function.
162 (template language_lookup_primitive_type): Rename to ...
163 (language_lookup_primitive_type_1): ... this, and make static.
164 (language_lookup_primitive_type(const struct language_defn *,
165 struct gdbarch *, const char *): Make non-template.
166 (language_lookup_primitive_type(const struct language_defn *,
167 struct gdbarch *, std::function<bool (struct type *)>): Make
168 non-template and use gdb::function_view.
169 * language.h (language_arch_info::lookup_primitive_type): Use
170 gdb::function_view instead of std::function.
171 (language_lookup_primitive_type): No longer template.
172 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
173 lambda instead of a std::function.
174
d5ef21c3
AA
1752020-11-19 Andreas Arnez <arnez@linux.ibm.com>
176
177 PR tdep/26916
178 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
179 and STOCFH.
180
a5adb8f3
SM
1812020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
184
70125a45
SM
1852020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
188 in `loop_cb` parameter.
189 * gdbarch.c: Re-generate.
190 * gdbarch.h: Re-generate.
191 * arch-utils.c (default_read_core_file_mappings): Remove `other`
192 parameter.
193 * arch-utils.h (default_read_core_file_mappings): Likewise.
194 * corelow.c (core_target::build_file_mappings): Likewise.
195 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
196 (linux_core_info_proc_mappings): Likewise.
197
a5c641b5
AB
1982020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
201 * NEWS: Mention new options.
202 * f-array-walker.h: New file.
203 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
204 (repack_array_slices): New static global.
205 (show_repack_array_slices): New function.
206 (fortran_array_slicing_debug): New static global.
207 (show_fortran_array_slicing_debug): New function.
208 (value_f90_subarray): Delete.
209 (skip_undetermined_arglist): Delete.
210 (class fortran_array_repacker_base_impl): New class.
211 (class fortran_lazy_array_repacker_impl): New class.
212 (class fortran_array_repacker_impl): New class.
213 (fortran_value_subarray): Complete rewrite.
214 (set_fortran_list): New static global.
215 (show_fortran_list): Likewise.
216 (_initialize_f_language): Register new commands.
217 (fortran_adjust_dynamic_array_base_address_hack): New function.
218 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
219 Declare.
220 * f-valprint.c: Include 'f-array-walker.h'.
221 (class fortran_array_printer_impl): New class.
222 (f77_print_array_1): Delete.
223 (f77_print_array): Delete.
224 (fortran_print_array): New.
225 (f_value_print_inner): Update to call fortran_print_array.
226 * gdbtypes.c: Include 'f-lang.h'.
227 (resolve_dynamic_type_internal): Call
228 fortran_adjust_dynamic_array_base_address_hack.
229
a15a5258
AB
2302020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * breakpoint.c (struct watch_options): New struct.
233 (watch_option_defs): New static global.
234 (make_watch_options_def_group): New function.
235 (watch_maybe_just_location): Convert option parsing.
236 (watch_command_completer): New function.
237 (_initialize_breakpoint): Build help text using options mechanism.
238
2e362716
AB
2392020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
242 (watch_command_1): Update parameter types. Convert locals to
243 bool.
244 (watch_command_wrapper): Change parameter type.
245 (watch_maybe_just_location): Change locals to bool.
246 (rwatch_command_wrapper): Update parameter type.
247 (awatch_command_wrapper): Update parameter type.
248 * breakpoint.h (watch_command_wrapper): Change parameter type.
249 (rwatch_command_wrapper): Update parameter type.
250 (awatch_command_wrapper): Update parameter type.
251 * eval.c (fetch_subexp_value): Change parameter type.
252 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
253 'false' not '0'.
254 * value.h (fetch_subexp_value): Change parameter type in
255 declaration.
256
b3ff61f8
AB
2572020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
260 skip_spaces.
261
5b7d45d3
KS
2622020-11-18 Keith Seitz <keiths@redhat.com>
263
264 * linux-tdep.c (dump_note_entry_p): Return true instead of
265 checking `filename'.
266
c44191f8
TV
2672020-11-18 Tom de Vries <tdevries@suse.de>
268
269 * debuginfod-support.c (debuginfod_source_query)
270 (debuginfod_debuginfo_query): Also do early exit if
271 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
272
5d8254e1
TV
2732020-11-18 Tom de Vries <tdevries@suse.de>
274
275 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
276 warning.
277
584903d3
SM
2782020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * gdbtypes.h (get_array_bounds): Return bool, adjust some
281 callers. Move doc here.
282 * gdbtypes.c (get_array_bounds): Return bool
283
6f2643db
AB
2842020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
287 assert.
288 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
289 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
290 case to the default.
291
037d7135
AB
2922020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * printcmd.c: Include 'safe-ctype.c'.
295 (skip_over_slash_fmt): New function.
296 (print_command_completer): Call skip_over_slash_fmt.
297 (display_and_x_command_completer): New function.
298 (_initialize_printcmd): Add command completion for 'x' and
299 'display'.
300
2b3cb400
PA
3012020-11-16 Pedro Alves <pedro@palves.net>
302
303 * frame.c (get_prev_frame): Move get_frame_id call from here ...
304 (get_prev_frame_always_1): ... to here.
305 * inline-frame.c (inline_frame_this_id): Mention
306 get_prev_frame_always_1 in comment.
307
b74dbc20
JB
3082020-11-15 Joel Brobecker <brobecker@adacore.com>
309
310 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
311 handling.
312 (value_less): Add fixed-point handling.
313
0a12719e
JB
3142020-11-15 Joel Brobecker <brobecker@adacore.com>
315
316 * eval.c (binop_promote): Add fixed-point type handling.
317 * valarith.c (fixed_point_binop): New function.
318 (scalar_binop): Add fixed-point type handling.
319 (value_neg): Add fixed-point type handling.
320 * valops.c (value_cast_to_fixed_point): New function.
321 (value_cast): Add fixed-point type handling.
322
0c9150e4
JB
3232020-11-15 Joel Brobecker <brobecker@adacore.com>
324
325 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
326 range types.
327 * c-typeprint.c (c_type_print_varspec_prefix)
328 (c_type_print_varspec_suffix, c_type_print_base_1): Add
329 TYPE_CODE_FIXED_POINT handling.
330 * p-typeprint.c (pascal_type_print_varspec_prefix)
331 (pascal_type_print_varspec_suffix): Likewise.
332 * typeprint.c (print_type_fixed_point): New function.
333 * typeprint.h (print_type_fixed_point): Add declaration.
334
b26daff9
JB
3352020-11-15 Joel Brobecker <brobecker@adacore.com>
336
337 * printcmd.c (print_scalar_formatted): Add fixed-point type
338 handling when options->format is set.
339
09584414
JB
3402020-11-15 Joel Brobecker <brobecker@adacore.com>
341
342 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
343 * dwarf2/read.c (get_dwarf2_rational_constant)
344 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
345 (has_zero_over_zero_small_attribute): New functions.
346 read_base_type, set_die_type): Add fixed-point type handling.
347 * gdb-gdb.py.in: Add fixed-point type handling.
348 * gdbtypes.c: #include "gmp-utils.h".
349 (create_range_type, set_type_code): Add fixed-point type handling.
350 (init_fixed_point_type): New function.
351 (is_integral_type, is_scalar_type): Add fixed-point type handling.
352 (print_fixed_point_type_info): New function.
353 (recursive_dump_type, copy_type_recursive): Add fixed-point type
354 handling.
355 (fixed_point_type_storage): New typedef.
356 (fixed_point_objfile_key): New static global.
357 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
358 (fixed_point_type_base_type, fixed_point_scaling_factor): New
359 functions.
360 * gdbtypes.h: #include "gmp-utils.h".
361 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
362 (union type_specific) <fixed_point_info>: New field.
363 (struct fixed_point_type_info): New struct.
364 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
365 (init_fixed_point_type, is_fixed_point_type)
366 (fixed_point_type_base_type, fixed_point_scaling_factor)
367 (allocate_fixed_point_type_info): Add declarations.
368 * valprint.c (generic_val_print_fixed_point): New function.
369 (generic_value_print): Add fixed-point type handling.
370 * value.c (value_as_address, unpack_long): Add fixed-point type
371 handling.
372
e55c6530
JB
3732020-11-15 Joel Brobecker <brobecker@adacore.com>
374
375 * utils.h (uinteger_pow): Add declaration.
376 * utils.c (uinteger_pow): Moved here (without changes)...
377 * valarith.c (uinteger_pow): ... from here.
378
b34c74ab
JB
3792020-11-15 Joel Brobecker <brobecker@adacore.com>
380
40d9d2fd 381 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
382 * unittests/gmp-utils-selftests.c: New file.
383 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
384 unittests/gmp-utils-selftests.c.
385 (COMMON_SFILES) Add gmp-utils.c.
386 (HFILES_NO_SRCDIR): Add gmp-utils.h.
387
1b4ac058
JB
3882020-11-15 Joel Brobecker <brobecker@adacore.com>
389
390 * configure.ac: Generate an error if a usable GMP library
391 could not be found.
392 * configure: Regenerate.
393
2c947d9b
JB
3942020-11-15 Joel Brobecker <brobecker@adacore.com>
395
396 * configure.ac: Add support for --with-libgmp-prefix.
397 * Makefile.in (LIBGMP): New variable.
398 (CLIBS): Include $(LIBGMP).
399 * configure, config.in: Regenerate
400
9dd02fc0
AB
4012020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 PR cli/26879
404 * f-exp.y (COMPLETE): New token.
405 (exp): Two new rules for tab-completion.
406 (saw_name_at_eof): New static global.
407 (last_was_structop): Likewise.
408 (yylex): Set new variables, and return COMPLETE token at the end
409 of the input stream in some cases.
410
758cb810
TT
4112020-11-14 Tom Tromey <tom@tromey.com>
412
413 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
414
749065b7
TT
4152020-11-14 Tom Tromey <tom@tromey.com>
416
417 * opencl-lang.c (opencl_component_ref): Make "comps" const.
418
2c5b1849
SM
4192020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
422
e8b2f0d9
TT
4232020-11-13 Tom Tromey <tom@tromey.com>
424
425 * c-lang.c (convert_ucn, convert_octal, convert_hex)
426 (convert_escape, parse_one_string): Constify.
427
25f4c262
KS
4282020-11-13 Keith Seitz <keiths@redhat.com>
429
430 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
431 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
432 outside of ELF segments" warning for debugin
433
9d3ab915
KS
4342020-11-13 Keith Seitz <keiths@redhat.com>
435
436 PR gdb/23034
437 * elfread.c (elf_symfile_segments): Output a BFD file name
438 for the "Loadable section ... outside of ELF segments" warning.
439
9ecab40c
SM
4402020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
441
442 PR gdb/26835
443 * arm-tdep.c (class arm_instruction_reader): New.
444 (target_arm_instruction_reader): New.
445 (arm_analyze_prologue): Add instruction reader parameter and use
446 it. Use arm_expand_immediate.
447 (class target_arm_instruction_reader): Adjust.
448 (arm_skip_prologue): Adjust.
449 (arm_expand_immediate): New.
450 (arm_scan_prologue): Adjust.
451 (arm_analyze_prologue_test): New.
452 (class test_arm_instruction_reader): New.
453
5a7cf527
AB
4542020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * f-lang.c (fortran_argument_convert): Add declaration. Add
457 header comment, taken from f-lang.h. Make static.
458 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
459 (fortran_argument_convert): Delete declaration.
460
7bea47f0
AB
4612020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
462
463 * ada-exp.y (find_primitive_type): Make parameter const.
464 * ada-lang.c (enum ada_primitive_types): Delete.
465 (ada_language::language_arch_info): Update.
466 * c-lang.c (enum c_primitive_types): Delete.
467 (c_language_arch_info): Update.
468 (enum cplus_primitive_types): Delete.
469 (cplus_language::language_arch_info): Update.
470 * d-lang.c (enum d_primitive_types): Delete.
471 (d_language::language_arch_info): Update.
472 * f-lang.c (enum f_primitive_types): Delete.
473 (f_language::language_arch_info): Update.
474 * go-lang.c (enum go_primitive_types): Delete.
475 (go_language::language_arch_info): Update.
476 * language.c (auto_or_unknown_language::language_arch_info):
477 Update.
478 (language_gdbarch_post_init): Use obstack_new, use array indexing.
479 (language_string_char_type): Add header comment, call function in
480 language_arch_info.
481 (language_bool_type): Likewise
482 (language_arch_info::bool_type): Define.
483 (language_lookup_primitive_type_1): Delete.
484 (language_lookup_primitive_type): Rewrite as a templated function
485 to call function in language_arch_info, then instantiate twice.
486 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
487 (language_arch_info::lookup_primitive_type_and_symbol): Define.
488 (language_arch_info::lookup_primitive_type): Define twice with
489 different signatures.
490 (language_arch_info::lookup_primitive_type_as_symbol): Define.
491 (language_lookup_primitive_type_as_symbol): Rewrite to call a
492 member function in language_arch_info.
493 * language.h (language_arch_info): Complete rewrite.
494 (language_lookup_primitive_type): Make templated.
495 * m2-lang.c (enum m2_primitive_types): Delete.
496 (m2_language::language_arch_info): Update.
497 * opencl-lang.c (OCL_P_TYPE): Delete.
498 (enum opencl_primitive_types): Delete.
499 (opencl_type_data): Delete.
500 (builtin_opencl_type): Delete.
501 (lookup_opencl_vector_type): Update.
502 (opencl_language::language_arch_info): Update, lots of content
503 moved from...
504 (build_opencl_types): ...here. This function is now deleted.
505 (_initialize_opencl_language): Delete.
506 * p-lang.c (enum pascal_primitive_types): Delete.
507 (pascal_language::language_arch_info): Update.
508 * rust-lang.c (enum rust_primitive_types): Delete.
509 (rust_language::language_arch_info): Update.
510
bf6e5d01
SM
5112020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
514 dwarf2_queue_guard.
515
1350c3b4
SM
5162020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
519 comment.
520
6f738b01
SM
5212020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * dwarf2/read.c (dwarf_read_debug_printf,
524 dwarf_read_debug_printf_v): New macros, use throughout the file.
525
10c19fad
SV
5262020-11-12 Shahab Vahedi <shahab@synopsys.com>
527
528 * arc-linux-tdep.c (collect_register): Populate "eret" by
529 "pc" value from the regcache when asked for "pc" value.
530
1f2624a3
TT
5312020-11-12 Tom Tromey <tom@tromey.com>
532
533 PR rust/26799:
534 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
535 exist.
536
ab33b152
AB
5372020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * features/Makefile (XMLTOC): Add rx.xml.
540 (FEATURE_XMLFILES): Remove rx.xml.
541 (FEATURE_CFILES rule): Pass '-single-feature' flag.
542 * features/rx.c: Regenerate.
543 * features/rx.xml: Wrap in `target` tags, and reindent.
544 * target-descriptions.c (struct maint_print_c_tdesc_options): New
545 structure.
546 (maint_print_c_tdesc_opt_def): New typedef.
547 (maint_print_c_tdesc_opt_defs): New static global.
548 (make_maint_print_c_tdesc_options_def_group): New function.
549 (maint_print_c_tdesc_cmd): Make use of command line flags, only
550 print single feature C file for target descriptions containing a
551 single feature.
552 (maint_print_c_tdesc_cmd_completer): New function.
553 (_initialize_target_descriptions): Update call to register command
554 completer, and include command line flag in help text.
555
550820e1
AB
5562020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
559 numbers.
560 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
561 enum values.
562
baf20f76
TT
5632020-11-10 Tom Tromey <tom@tromey.com>
564
565 * value.h (internalvar_name): Update.
566 * value.c (internalvar_name): Make return type const.
567
caaece0e
TT
5682020-11-10 Tom Tromey <tom@tromey.com>
569
570 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
571 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
572 const.
573
8e20b4be
TT
5742020-11-10 Tom Tromey <tom@tromey.com>
575
576 * objc-lang.h (value_nsstring): Update.
577 * objc-lang.c (value_nsstring): Make "ptr" const.
578
86775fab
AB
5792020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * expprint.c (print_subexp_funcall): Increment expression position
582 after reading argument count.
583 * f-lang.c (print_subexp_f): Skip over opcode before calling
584 common function.
585 (dump_subexp_body_f): Likewise.
586
3fed4c0b
RG
5872020-11-06 Romain Geissler <romain.geissler@amadeus.com>
588
589 PR python/26832
590 * configure: Regenerate.
591 * configure.ac: Check for python modules ctypes instead of
592 itertools.
593
ac3d4064
PA
5942020-11-06 Pedro Alves <pedro@palves.net>
595
596 * macroexp.c (struct macro_buffer): Split in two classes. Add
597 uses adjusted.
598 (struct shared_macro_buffer): New, factored out from struct
599 macro_buffer.
600 (struct growable_macro_buffer): New, factored out from struct
601 macro_buffer.
602 (set_token, get_comment, get_identifier, get_pp_number)
603 (get_character_constant, get_string_literal, get_punctuator)
604 (get_next_token_for_substitution): Constify parameters.
605 (substitute_args): Constify locals.
606
606decb2
TT
6072020-11-05 Tom Tromey <tom@tromey.com>
608
609 * dwarf2/read.c (read_cutu_die_from_dwo)
610 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
611 (build_type_psymtabs_1): Update.
612 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
613 parameter.
614 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
615 Don't read section. Add assert.
616
9c91c725
TT
6172020-11-04 Tom Tromey <tromey@adacore.com>
618
619 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
620
8d9fd3a1
TT
6212020-11-04 Tom Tromey <tromey@adacore.com>
622
623 * ada-typeprint.c (ada_print_type): Handle __T types.
624
d8f62e84
TT
6252020-11-04 Tom Tromey <tromey@adacore.com>
626
627 * dwarf2/read.c (add_partial_symbol, process_die):
628 Handle DW_TAG_array_type.
629 (is_type_tag_for_partial): Add "lang" parameter.
630 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
631
7ff5b937
TT
6322020-11-04 Tom Tromey <tromey@adacore.com>
633
634 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
635
10f6a3ad
TT
6362020-11-04 Tom Tromey <tromey@adacore.com>
637
638 * dwarf2/read.c (read_array_type): Only apply stride to innermost
639 array.
640
b72795a8
TT
6412020-11-04 Tom Tromey <tromey@adacore.com>
642
643 * gdbtypes.c (update_static_array_size): Handle bit stride.
644
24aa1b02
TT
6452020-11-04 Tom Tromey <tromey@adacore.com>
646
647 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
648
c9a28cbe
TT
6492020-11-04 Tom Tromey <tromey@adacore.com>
650
651 * ada-lang.c (ada_is_any_packed_array_type): New function.
652 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
653
57567375
TT
6542020-11-04 Tom Tromey <tromey@adacore.com>
655
656 * dwarf2/read.c (recognize_bound_expression)
657 (quirk_ada_thick_pointer): New functions.
658 (read_array_type): Call quirk_ada_thick_pointer.
659 (set_die_type): Add "skip_data_location" parameter.
660 (quirk_ada_thick_pointer): New function.
661 (process_structure_scope): Call quirk_ada_thick_pointer.
662 * ada-lang.c (ada_is_unconstrained_packed_array_type)
663 (decode_packed_array_bitsize): Handle thick pointers without
664 parallel types.
665 (ada_is_gnat_encoded_packed_array_type): Rename from
666 ada_is_packed_array_type.
667 (ada_is_constrained_packed_array_type): Update.
668 * ada-valprint.c (ada_val_print_gnat_array): Remove.
669 (ada_value_print_1): Use ada_get_decoded_value.
670
a7400e44
TT
6712020-11-04 Tom Tromey <tromey@adacore.com>
672
673 * ada-lang.c (recursively_update_array_bitsize): New function.
674 (decode_constrained_packed_array_type): Call it.
675
75fd6a26
TT
6762020-11-04 Tom Tromey <tromey@adacore.com>
677
678 * ada-lang.c (to_fixed_array_type): Error if
679 decode_constrained_packed_array_type returns NULL.
680
93f9561e
TT
6812020-11-04 Tom Tromey <tromey@adacore.com>
682
683 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
684
257e02d8
TT
6852020-11-02 Tom Tromey <tromey@adacore.com>
686
687 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
688 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
689 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
690 * amd64-ravenscar-thread.c: New file.
691 * amd64-ravenscar-thread.h: New file.
692 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
693 * configure.tgt (amd64_tobjs): Add ravenscar objects.
694
74d877e5
AB
6952020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * main.c (execute_cmdargs): New function.
698 (captured_main_1): Make use of execute_cmdargs.
699
64aaad63
AB
7002020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * NEWS: Mention changes to config file search path.
703 * main.c
704
5b3d3560
TT
7052020-11-02 Tom Tromey <tromey@adacore.com>
706
707 * python/python.c: Consolidate two HAVE_PYTHON blocks.
708 (python_GdbModuleDef): Move earlier. Now static.
709 (do_start_initialization): Consolidate some IS_PY3K blocks.
710
dda83cd7
SM
7112020-11-02 Simon Marchi <simon.marchi@efficios.com>
712
713 * aarch64-linux-tdep.c: Fix indentation.
714 * aarch64-ravenscar-thread.c: Fix indentation.
715 * aarch64-tdep.c: Fix indentation.
716 * aarch64-tdep.h: Fix indentation.
717 * ada-lang.c: Fix indentation.
718 * ada-lang.h: Fix indentation.
719 * ada-tasks.c: Fix indentation.
720 * ada-typeprint.c: Fix indentation.
721 * ada-valprint.c: Fix indentation.
722 * ada-varobj.c: Fix indentation.
723 * addrmap.c: Fix indentation.
724 * addrmap.h: Fix indentation.
725 * agent.c: Fix indentation.
726 * aix-thread.c: Fix indentation.
727 * alpha-bsd-nat.c: Fix indentation.
728 * alpha-linux-tdep.c: Fix indentation.
729 * alpha-mdebug-tdep.c: Fix indentation.
730 * alpha-nbsd-tdep.c: Fix indentation.
731 * alpha-obsd-tdep.c: Fix indentation.
732 * alpha-tdep.c: Fix indentation.
733 * amd64-bsd-nat.c: Fix indentation.
734 * amd64-darwin-tdep.c: Fix indentation.
735 * amd64-linux-nat.c: Fix indentation.
736 * amd64-linux-tdep.c: Fix indentation.
737 * amd64-nat.c: Fix indentation.
738 * amd64-obsd-tdep.c: Fix indentation.
739 * amd64-tdep.c: Fix indentation.
740 * amd64-windows-tdep.c: Fix indentation.
741 * annotate.c: Fix indentation.
742 * arc-tdep.c: Fix indentation.
743 * arch-utils.c: Fix indentation.
744 * arch/arm-get-next-pcs.c: Fix indentation.
745 * arch/arm.c: Fix indentation.
746 * arm-linux-nat.c: Fix indentation.
747 * arm-linux-tdep.c: Fix indentation.
748 * arm-nbsd-tdep.c: Fix indentation.
749 * arm-pikeos-tdep.c: Fix indentation.
750 * arm-tdep.c: Fix indentation.
751 * arm-tdep.h: Fix indentation.
752 * arm-wince-tdep.c: Fix indentation.
753 * auto-load.c: Fix indentation.
754 * auxv.c: Fix indentation.
755 * avr-tdep.c: Fix indentation.
756 * ax-gdb.c: Fix indentation.
757 * ax-general.c: Fix indentation.
758 * bfin-linux-tdep.c: Fix indentation.
759 * block.c: Fix indentation.
760 * block.h: Fix indentation.
761 * blockframe.c: Fix indentation.
762 * bpf-tdep.c: Fix indentation.
763 * break-catch-sig.c: Fix indentation.
764 * break-catch-syscall.c: Fix indentation.
765 * break-catch-throw.c: Fix indentation.
766 * breakpoint.c: Fix indentation.
767 * breakpoint.h: Fix indentation.
768 * bsd-uthread.c: Fix indentation.
769 * btrace.c: Fix indentation.
770 * build-id.c: Fix indentation.
771 * buildsym-legacy.h: Fix indentation.
772 * buildsym.c: Fix indentation.
773 * c-typeprint.c: Fix indentation.
774 * c-valprint.c: Fix indentation.
775 * c-varobj.c: Fix indentation.
776 * charset.c: Fix indentation.
777 * cli/cli-cmds.c: Fix indentation.
778 * cli/cli-decode.c: Fix indentation.
779 * cli/cli-decode.h: Fix indentation.
780 * cli/cli-script.c: Fix indentation.
781 * cli/cli-setshow.c: Fix indentation.
782 * coff-pe-read.c: Fix indentation.
783 * coffread.c: Fix indentation.
784 * compile/compile-cplus-types.c: Fix indentation.
785 * compile/compile-object-load.c: Fix indentation.
786 * compile/compile-object-run.c: Fix indentation.
787 * completer.c: Fix indentation.
788 * corefile.c: Fix indentation.
789 * corelow.c: Fix indentation.
790 * cp-abi.h: Fix indentation.
791 * cp-namespace.c: Fix indentation.
792 * cp-support.c: Fix indentation.
793 * cp-valprint.c: Fix indentation.
794 * cris-linux-tdep.c: Fix indentation.
795 * cris-tdep.c: Fix indentation.
796 * darwin-nat-info.c: Fix indentation.
797 * darwin-nat.c: Fix indentation.
798 * darwin-nat.h: Fix indentation.
799 * dbxread.c: Fix indentation.
800 * dcache.c: Fix indentation.
801 * disasm.c: Fix indentation.
802 * dtrace-probe.c: Fix indentation.
803 * dwarf2/abbrev.c: Fix indentation.
804 * dwarf2/attribute.c: Fix indentation.
805 * dwarf2/expr.c: Fix indentation.
806 * dwarf2/frame.c: Fix indentation.
807 * dwarf2/index-cache.c: Fix indentation.
808 * dwarf2/index-write.c: Fix indentation.
809 * dwarf2/line-header.c: Fix indentation.
810 * dwarf2/loc.c: Fix indentation.
811 * dwarf2/macro.c: Fix indentation.
812 * dwarf2/read.c: Fix indentation.
813 * dwarf2/read.h: Fix indentation.
814 * elfread.c: Fix indentation.
815 * eval.c: Fix indentation.
816 * event-top.c: Fix indentation.
817 * exec.c: Fix indentation.
818 * exec.h: Fix indentation.
819 * expprint.c: Fix indentation.
820 * f-lang.c: Fix indentation.
821 * f-typeprint.c: Fix indentation.
822 * f-valprint.c: Fix indentation.
823 * fbsd-nat.c: Fix indentation.
824 * fbsd-tdep.c: Fix indentation.
825 * findvar.c: Fix indentation.
826 * fork-child.c: Fix indentation.
827 * frame-unwind.c: Fix indentation.
828 * frame-unwind.h: Fix indentation.
829 * frame.c: Fix indentation.
830 * frv-linux-tdep.c: Fix indentation.
831 * frv-tdep.c: Fix indentation.
832 * frv-tdep.h: Fix indentation.
833 * ft32-tdep.c: Fix indentation.
834 * gcore.c: Fix indentation.
835 * gdb_bfd.c: Fix indentation.
836 * gdbarch.sh: Fix indentation.
837 * gdbarch.c: Re-generate
838 * gdbarch.h: Re-generate.
839 * gdbcore.h: Fix indentation.
840 * gdbthread.h: Fix indentation.
841 * gdbtypes.c: Fix indentation.
842 * gdbtypes.h: Fix indentation.
843 * glibc-tdep.c: Fix indentation.
844 * gnu-nat.c: Fix indentation.
845 * gnu-nat.h: Fix indentation.
846 * gnu-v2-abi.c: Fix indentation.
847 * gnu-v3-abi.c: Fix indentation.
848 * go32-nat.c: Fix indentation.
849 * guile/guile-internal.h: Fix indentation.
850 * guile/scm-cmd.c: Fix indentation.
851 * guile/scm-frame.c: Fix indentation.
852 * guile/scm-iterator.c: Fix indentation.
853 * guile/scm-math.c: Fix indentation.
854 * guile/scm-ports.c: Fix indentation.
855 * guile/scm-pretty-print.c: Fix indentation.
856 * guile/scm-value.c: Fix indentation.
857 * h8300-tdep.c: Fix indentation.
858 * hppa-linux-nat.c: Fix indentation.
859 * hppa-linux-tdep.c: Fix indentation.
860 * hppa-nbsd-nat.c: Fix indentation.
861 * hppa-nbsd-tdep.c: Fix indentation.
862 * hppa-obsd-nat.c: Fix indentation.
863 * hppa-tdep.c: Fix indentation.
864 * hppa-tdep.h: Fix indentation.
865 * i386-bsd-nat.c: Fix indentation.
866 * i386-darwin-nat.c: Fix indentation.
867 * i386-darwin-tdep.c: Fix indentation.
868 * i386-dicos-tdep.c: Fix indentation.
869 * i386-gnu-nat.c: Fix indentation.
870 * i386-linux-nat.c: Fix indentation.
871 * i386-linux-tdep.c: Fix indentation.
872 * i386-nto-tdep.c: Fix indentation.
873 * i386-obsd-tdep.c: Fix indentation.
874 * i386-sol2-nat.c: Fix indentation.
875 * i386-tdep.c: Fix indentation.
876 * i386-tdep.h: Fix indentation.
877 * i386-windows-tdep.c: Fix indentation.
878 * i387-tdep.c: Fix indentation.
879 * i387-tdep.h: Fix indentation.
880 * ia64-libunwind-tdep.c: Fix indentation.
881 * ia64-libunwind-tdep.h: Fix indentation.
882 * ia64-linux-nat.c: Fix indentation.
883 * ia64-linux-tdep.c: Fix indentation.
884 * ia64-tdep.c: Fix indentation.
885 * ia64-tdep.h: Fix indentation.
886 * ia64-vms-tdep.c: Fix indentation.
887 * infcall.c: Fix indentation.
888 * infcmd.c: Fix indentation.
889 * inferior.c: Fix indentation.
890 * infrun.c: Fix indentation.
891 * iq2000-tdep.c: Fix indentation.
892 * language.c: Fix indentation.
893 * linespec.c: Fix indentation.
894 * linux-fork.c: Fix indentation.
895 * linux-nat.c: Fix indentation.
896 * linux-tdep.c: Fix indentation.
897 * linux-thread-db.c: Fix indentation.
898 * lm32-tdep.c: Fix indentation.
899 * m2-lang.c: Fix indentation.
900 * m2-typeprint.c: Fix indentation.
901 * m2-valprint.c: Fix indentation.
902 * m32c-tdep.c: Fix indentation.
903 * m32r-linux-tdep.c: Fix indentation.
904 * m32r-tdep.c: Fix indentation.
905 * m68hc11-tdep.c: Fix indentation.
906 * m68k-bsd-nat.c: Fix indentation.
907 * m68k-linux-nat.c: Fix indentation.
908 * m68k-linux-tdep.c: Fix indentation.
909 * m68k-tdep.c: Fix indentation.
910 * machoread.c: Fix indentation.
911 * macrocmd.c: Fix indentation.
912 * macroexp.c: Fix indentation.
913 * macroscope.c: Fix indentation.
914 * macrotab.c: Fix indentation.
915 * macrotab.h: Fix indentation.
916 * main.c: Fix indentation.
917 * mdebugread.c: Fix indentation.
918 * mep-tdep.c: Fix indentation.
919 * mi/mi-cmd-catch.c: Fix indentation.
920 * mi/mi-cmd-disas.c: Fix indentation.
921 * mi/mi-cmd-env.c: Fix indentation.
922 * mi/mi-cmd-stack.c: Fix indentation.
923 * mi/mi-cmd-var.c: Fix indentation.
924 * mi/mi-cmds.c: Fix indentation.
925 * mi/mi-main.c: Fix indentation.
926 * mi/mi-parse.c: Fix indentation.
927 * microblaze-tdep.c: Fix indentation.
928 * minidebug.c: Fix indentation.
929 * minsyms.c: Fix indentation.
930 * mips-linux-nat.c: Fix indentation.
931 * mips-linux-tdep.c: Fix indentation.
932 * mips-nbsd-tdep.c: Fix indentation.
933 * mips-tdep.c: Fix indentation.
934 * mn10300-linux-tdep.c: Fix indentation.
935 * mn10300-tdep.c: Fix indentation.
936 * moxie-tdep.c: Fix indentation.
937 * msp430-tdep.c: Fix indentation.
938 * namespace.h: Fix indentation.
939 * nat/fork-inferior.c: Fix indentation.
940 * nat/gdb_ptrace.h: Fix indentation.
941 * nat/linux-namespaces.c: Fix indentation.
942 * nat/linux-osdata.c: Fix indentation.
943 * nat/netbsd-nat.c: Fix indentation.
944 * nat/x86-dregs.c: Fix indentation.
945 * nbsd-nat.c: Fix indentation.
946 * nbsd-tdep.c: Fix indentation.
947 * nios2-linux-tdep.c: Fix indentation.
948 * nios2-tdep.c: Fix indentation.
949 * nto-procfs.c: Fix indentation.
950 * nto-tdep.c: Fix indentation.
951 * objfiles.c: Fix indentation.
952 * objfiles.h: Fix indentation.
953 * opencl-lang.c: Fix indentation.
954 * or1k-tdep.c: Fix indentation.
955 * osabi.c: Fix indentation.
956 * osabi.h: Fix indentation.
957 * osdata.c: Fix indentation.
958 * p-lang.c: Fix indentation.
959 * p-typeprint.c: Fix indentation.
960 * p-valprint.c: Fix indentation.
961 * parse.c: Fix indentation.
962 * ppc-linux-nat.c: Fix indentation.
963 * ppc-linux-tdep.c: Fix indentation.
964 * ppc-nbsd-nat.c: Fix indentation.
965 * ppc-nbsd-tdep.c: Fix indentation.
966 * ppc-obsd-nat.c: Fix indentation.
967 * ppc-ravenscar-thread.c: Fix indentation.
968 * ppc-sysv-tdep.c: Fix indentation.
969 * ppc64-tdep.c: Fix indentation.
970 * printcmd.c: Fix indentation.
971 * proc-api.c: Fix indentation.
972 * producer.c: Fix indentation.
973 * producer.h: Fix indentation.
974 * prologue-value.c: Fix indentation.
975 * prologue-value.h: Fix indentation.
976 * psymtab.c: Fix indentation.
977 * python/py-arch.c: Fix indentation.
978 * python/py-bpevent.c: Fix indentation.
979 * python/py-event.c: Fix indentation.
980 * python/py-event.h: Fix indentation.
981 * python/py-finishbreakpoint.c: Fix indentation.
982 * python/py-frame.c: Fix indentation.
983 * python/py-framefilter.c: Fix indentation.
984 * python/py-inferior.c: Fix indentation.
985 * python/py-infthread.c: Fix indentation.
986 * python/py-objfile.c: Fix indentation.
987 * python/py-prettyprint.c: Fix indentation.
988 * python/py-registers.c: Fix indentation.
989 * python/py-signalevent.c: Fix indentation.
990 * python/py-stopevent.c: Fix indentation.
991 * python/py-stopevent.h: Fix indentation.
992 * python/py-threadevent.c: Fix indentation.
993 * python/py-tui.c: Fix indentation.
994 * python/py-unwind.c: Fix indentation.
995 * python/py-value.c: Fix indentation.
996 * python/py-xmethods.c: Fix indentation.
997 * python/python-internal.h: Fix indentation.
998 * python/python.c: Fix indentation.
999 * ravenscar-thread.c: Fix indentation.
1000 * record-btrace.c: Fix indentation.
1001 * record-full.c: Fix indentation.
1002 * record.c: Fix indentation.
1003 * reggroups.c: Fix indentation.
1004 * regset.h: Fix indentation.
1005 * remote-fileio.c: Fix indentation.
1006 * remote.c: Fix indentation.
1007 * reverse.c: Fix indentation.
1008 * riscv-linux-tdep.c: Fix indentation.
1009 * riscv-ravenscar-thread.c: Fix indentation.
1010 * riscv-tdep.c: Fix indentation.
1011 * rl78-tdep.c: Fix indentation.
1012 * rs6000-aix-tdep.c: Fix indentation.
1013 * rs6000-lynx178-tdep.c: Fix indentation.
1014 * rs6000-nat.c: Fix indentation.
1015 * rs6000-tdep.c: Fix indentation.
1016 * rust-lang.c: Fix indentation.
1017 * rx-tdep.c: Fix indentation.
1018 * s12z-tdep.c: Fix indentation.
1019 * s390-linux-tdep.c: Fix indentation.
1020 * score-tdep.c: Fix indentation.
1021 * ser-base.c: Fix indentation.
1022 * ser-mingw.c: Fix indentation.
1023 * ser-uds.c: Fix indentation.
1024 * ser-unix.c: Fix indentation.
1025 * serial.c: Fix indentation.
1026 * sh-linux-tdep.c: Fix indentation.
1027 * sh-nbsd-tdep.c: Fix indentation.
1028 * sh-tdep.c: Fix indentation.
1029 * skip.c: Fix indentation.
1030 * sol-thread.c: Fix indentation.
1031 * solib-aix.c: Fix indentation.
1032 * solib-darwin.c: Fix indentation.
1033 * solib-frv.c: Fix indentation.
1034 * solib-svr4.c: Fix indentation.
1035 * solib.c: Fix indentation.
1036 * source.c: Fix indentation.
1037 * sparc-linux-tdep.c: Fix indentation.
1038 * sparc-nbsd-tdep.c: Fix indentation.
1039 * sparc-obsd-tdep.c: Fix indentation.
1040 * sparc-ravenscar-thread.c: Fix indentation.
1041 * sparc-tdep.c: Fix indentation.
1042 * sparc64-linux-tdep.c: Fix indentation.
1043 * sparc64-nbsd-tdep.c: Fix indentation.
1044 * sparc64-obsd-tdep.c: Fix indentation.
1045 * sparc64-tdep.c: Fix indentation.
1046 * stabsread.c: Fix indentation.
1047 * stack.c: Fix indentation.
1048 * stap-probe.c: Fix indentation.
1049 * stubs/ia64vms-stub.c: Fix indentation.
1050 * stubs/m32r-stub.c: Fix indentation.
1051 * stubs/m68k-stub.c: Fix indentation.
1052 * stubs/sh-stub.c: Fix indentation.
1053 * stubs/sparc-stub.c: Fix indentation.
1054 * symfile-mem.c: Fix indentation.
1055 * symfile.c: Fix indentation.
1056 * symfile.h: Fix indentation.
1057 * symmisc.c: Fix indentation.
1058 * symtab.c: Fix indentation.
1059 * symtab.h: Fix indentation.
1060 * target-float.c: Fix indentation.
1061 * target.c: Fix indentation.
1062 * target.h: Fix indentation.
1063 * tic6x-tdep.c: Fix indentation.
1064 * tilegx-linux-tdep.c: Fix indentation.
1065 * tilegx-tdep.c: Fix indentation.
1066 * top.c: Fix indentation.
1067 * tracefile-tfile.c: Fix indentation.
1068 * tracepoint.c: Fix indentation.
1069 * tui/tui-disasm.c: Fix indentation.
1070 * tui/tui-io.c: Fix indentation.
1071 * tui/tui-regs.c: Fix indentation.
1072 * tui/tui-stack.c: Fix indentation.
1073 * tui/tui-win.c: Fix indentation.
1074 * tui/tui-winsource.c: Fix indentation.
1075 * tui/tui.c: Fix indentation.
1076 * typeprint.c: Fix indentation.
1077 * ui-out.h: Fix indentation.
1078 * unittests/copy_bitwise-selftests.c: Fix indentation.
1079 * unittests/memory-map-selftests.c: Fix indentation.
1080 * utils.c: Fix indentation.
1081 * v850-tdep.c: Fix indentation.
1082 * valarith.c: Fix indentation.
1083 * valops.c: Fix indentation.
1084 * valprint.c: Fix indentation.
1085 * valprint.h: Fix indentation.
1086 * value.c: Fix indentation.
1087 * value.h: Fix indentation.
1088 * varobj.c: Fix indentation.
1089 * vax-tdep.c: Fix indentation.
1090 * windows-nat.c: Fix indentation.
1091 * windows-tdep.c: Fix indentation.
1092 * xcoffread.c: Fix indentation.
1093 * xml-syscall.c: Fix indentation.
1094 * xml-tdesc.c: Fix indentation.
1095 * xstormy16-tdep.c: Fix indentation.
1096 * xtensa-config.c: Fix indentation.
1097 * xtensa-linux-nat.c: Fix indentation.
1098 * xtensa-linux-tdep.c: Fix indentation.
1099 * xtensa-tdep.c: Fix indentation.
1100
e1f57067
AB
11012020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1102 Craig Blackmore <craig.blackmore@embecosm.com>
1103
1104 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1105 as an unsigned value.
1106
ae7754b2
TT
11072020-11-01 Tom Tromey <tom@tromey.com>
1108
1109 * dbxread.c (dbx_end_psymtab): Update.
1110 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1111 (build_type_psymtabs_reader): Update.
1112 * xcoffread.c (xcoff_end_psymtab): Update.
1113 * ctfread.c (scan_partial_symbols): Update.
1114 * psymtab.c (sort_pst_symbols): Remove.
1115 (partial_symtab::end): Rename from end_psymtab_common. Inline
1116 sort_pst_symbols.
1117 * psympriv.h (struct partial_symtab) <end>: New method.
1118 (end_psymtab_common): Don't declare.
1119
0684bb51
TT
11202020-11-01 Tom Tromey <tom@tromey.com>
1121
1122 * symmisc.c (count_psyms): New function.
1123 (print_objfile_statistics): Use it.
1124 * psymtab.c (append_psymbol_to_list): Remove.
1125 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1126 * objfiles.h (struct objstats) <n_psyms>: Remove.
1127
089002bb
TT
11282020-11-01 Tom Tromey <tom@tromey.com>
1129
1130 * dbxread.c (dbx_end_psymtab): Update.
1131 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1132 (build_type_psymtabs_reader): Update.
1133 * xcoffread.c (xcoff_end_psymtab): Update.
1134 * ctfread.c (scan_partial_symbols): Update.
1135 * psympriv.h (end_psymtab_common): Update.
1136 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1137 (sort_pst_symbols): Likewise.
1138
525454d6
TT
11392020-11-01 Tom Tromey <tom@tromey.com>
1140
1141 * dbxread.c (dbx_symfile_read): Update.
1142 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1143 * xcoffread.c (xcoff_initial_scan): Update.
1144 * psympriv.h (init_psymbol_list): Don't declare.
1145 * psymtab.c (init_psymbol_list): Remove.
1146
60bd1d53
JB
11472020-11-01 Joel Brobecker <brobecker@adacore.com>
1148
1149 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1150 gnat_encoded_fixed_type_info. Update all callers.
1151
db99d0d0
JB
11522020-11-01 Joel Brobecker <brobecker@adacore.com>
1153
1154 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1155 line too long.
1156
75f24e86
JB
11572020-11-01 Joel Brobecker <brobecker@adacore.com>
1158
1159 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1160 cast_from_fixed. Update all callers.
1161 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1162 Update all callers.
1163 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1164 Update all callers.
1165 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1166 ada_scaling_factor.
1167 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1168 to print_gnat_encoded_fixed_point_type.
1169 * ada-valprint.c: Likewise.
1170
4f0469cd
AB
11712020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1174 (debug_prefixed_printf): Add check of debug_displaced flag.
1175 * linux-nat.c (linux_nat_debug_printf): Add check of
1176 debug_linux_nat flag.
1177
17417fb0
SM
11782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * infrun.c (infrun_debug_printf_1): Remove.
1181 (displaced_debug_printf_1): Remove.
1182 (stop_all_threads): Use debug_prefixed_printf.
1183 * infrun.h (infrun_debug_printf_1): Remove.
1184 (infrun_debug_printf): Use debug_prefixed_printf.
1185 (displaced_debug_printf_1): Remove.
1186 (displaced_debug_printf): Use debug_prefixed_printf.
1187 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1188 (linux_nat_debug_printf): Use debug_prefixed_printf.
1189
ad6dba1c
SM
11902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * configure: Re-generate.
1193 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1194 AC_LANG_PROGRAM.
1195
b6fb30ed
SM
11962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * configure: Re-generate.
1199
5164c117
SM
12002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * configure: Re-generate.
1203
864ca435
SM
12042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * configure: Re-generate.
1207
b9442ec1
SM
12082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * configure: Re-generate.
1211
294f2697
SM
12122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 * acinclude.m4: Modernize.
1215 * configure: Re-generate.
1216
5593a99a
SM
12172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * configure.ac: Modernize.
1220 * configure: Re-generate.
1221
e41fda1d
SM
12222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1225 * configure: Re-generate.
1226 * configure.ac: Remove AM_PROG_CC_STDC.
1227
91e1a0ed
SM
12282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1231 AC_CANONICAL_SYSTEM.
1232 * configure: Re-generate.
1233
136821d9
SM
12342020-10-30 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * infrun.h (displaced_debug_printf): New macro. Replace
1237 displaced debug prints throughout to use it.
1238 (displaced_debug_printf_1): New declaration.
1239 (displaced_step_dump_bytes): Return string, remove ui_file
1240 parameter, update all callers.
1241 * infrun.c (displaced_debug_printf_1): New function.
1242 (displaced_step_dump_bytes): Return string, remove ui_file
1243 parameter
1244
aa2045e7
SM
12452020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1248
b1ec2735
TT
12492020-10-30 Tom Tromey <tromey@adacore.com>
1250
1251 * Makefile.in (stamp-init): Depend on config.status.
1252
b78b3a29
TBA
12532020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1254
1255 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1256
d70bdd3c
PA
12572020-10-30 Pedro Alves <pedro@palves.net>
1258
1259 * thread.c (lookup_selected_frame): Move ...
1260 * frame.c (lookup_selected_frame): ... here.
1261
79952e69
PA
12622020-10-30 Pedro Alves <pedro@palves.net>
1263
1264 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1265 * frame.c
1266 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1267 Use save_selected_frame. Save language as well.
1268 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1269 Use restore_selected_frame, and restore language as well.
1270 (selected_frame_id, selected_frame_level): New.
1271 (selected_frame): Update comments.
1272 (save_selected_frame, restore_selected_frame): New.
1273 (get_selected_frame): Use lookup_selected_frame.
1274 (get_selected_frame_if_set): Delete.
1275 (select_frame): Record selected_frame_level and selected_frame_id.
1276 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1277 fields.
1278 (get_selected_frame): Make 'message' parameter optional.
1279 (get_selected_frame_if_set): Delete declaration.
1280 (select_frame): Update comments.
1281 (save_selected_frame, restore_selected_frame)
1282 (lookup_selected_frame): Declare.
1283 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1284 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1285 New field.
1286 (save_infcall_control_state): Use save_selected_frame.
1287 (restore_selected_frame): Delete.
1288 (restore_infcall_control_state): Use restore_selected_frame.
1289 * stack.c (select_frame_command_core, frame_command_core): Use
1290 get_selected_frame.
1291 * thread.c (restore_selected_frame): Rename to ...
1292 (lookup_selected_frame): ... this and make extern. Select the
1293 current frame if the frame level is -1.
1294 (scoped_restore_current_thread::restore): Also restore the
1295 language.
1296 (scoped_restore_current_thread::~scoped_restore_current_thread):
1297 Don't try/catch.
1298 (scoped_restore_current_thread::scoped_restore_current_thread):
1299 Save the language as well. Use save_selected_frame.
1300
58103c33
SM
13012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1304 documentation.
1305 * gdbarch.h: Re-generate.
1306
40a53766
SM
13072020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1310 parameter.
1311 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1312 Likewise.
1313 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1314 Likewise.
1315 * arch-utils.c (default_displaced_step_hw_singlestep):
1316 Likewise.
1317 * arch-utils.h (default_displaced_step_hw_singlestep):
1318 Likewise.
1319 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1320 Likewise.
1321 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1322 Likewise.
1323 * gdbarch.c: Re-generate.
1324 * gdbarch.h: Re-generate.
1325 * infrun.c (resume_1): Adjust.
1326
8407f91b
TT
13272020-10-29 Tom Tromey <tom@tromey.com>
1328
1329 * progspace.c (program_space::~program_space): Don't call
1330 exec_close.
1331
5008b3b2
TT
13322020-10-29 Tom Tromey <tom@tromey.com>
1333
1334 * exec.c (exec_target::close): Don't change current program
1335 space.
1336
d9eebde0
TT
13372020-10-29 Tom Tromey <tom@tromey.com>
1338
1339 * symfile.c (add_symbol_file_command): Update.
1340 * exec.c (program_space::add_target_sections): Rename.
1341 * symfile-mem.c (symbol_file_add_from_memory): Update.
1342 * progspace.h (struct program_space) <add_target_sections>:
1343 Declare new overload.
1344 * exec.h (add_target_sections_of_objfile): Don't declare.
1345
3769e227
TT
13462020-10-29 Tom Tromey <tom@tromey.com>
1347
1348 * solib.c (solib_map_sections): Update.
1349 * exec.c (program_space::add_target_sections): Now a method.
1350 (exec_file_attach): Update.
1351 * exec.h (add_target_sections): Don't declare.
1352 * progspace.h (struct program_space) <add_target_sections>:
1353 Declare.
1354
2a3f84af
TT
13552020-10-29 Tom Tromey <tom@tromey.com>
1356
1357 * progspace.h (struct program_space) <remove_target_sections>:
1358 Declare.
1359 * exec.c (program_space::remove_target_sections): Now a method.
1360 * exec.h (remove_target_sections): Don't declare.
1361
004eecfd
TT
13622020-10-29 Tom Tromey <tom@tromey.com>
1363
1364 * inferior.c (delete_inferior): Update.
1365 * progspace.c (program_space::empty): Rename from
1366 program_space_empty_p. Return bool.
1367 * progspace.h (struct program_space) <empty>: New method.
1368 (program_space_empty_p): Don't declare.
1369
e39fb971
TT
13702020-10-29 Tom Tromey <tom@tromey.com>
1371
1372 * progspace.c (program_space::~program_space): Don't call
1373 clear_program_space_solib_cache.
1374 (program_space::clear_solib_cache): Rename from
1375 clear_solib_cache.
1376 * solib.c (handle_solib_event): Update.
1377 * progspace.h (struct program_space) <clear_solib_cache>: New
1378 method.
1379 (clear_program_space_solib_cache): Don't declare.
1380
a42d7dd8
TT
13812020-10-29 Tom Tromey <tom@tromey.com>
1382
1383 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1384 * target.c (info_target_command): Update.
1385 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1386 (symbol_file_clear, reread_symbols): Update.
1387 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1388 * stabsread.c (scan_file_globals): Update.
1389 * solib.c (update_solib_list): Update.
1390 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1391 (svr4_fetch_objfile_link_map, enable_break)
1392 (svr4_relocate_main_executable)
1393 (svr4_iterate_over_objfiles_in_search_order): Update.
1394 * solib-frv.c (lm_base, enable_break)
1395 (frv_relocate_main_executable): Update.
1396 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1397 (frv_fetch_objfile_link_map): Update.
1398 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1399 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1400 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1401 * remote.c (remote_target::get_offsets): Update.
1402 (remote_target::start_remote)
1403 (extended_remote_target::post_attach): Update.
1404 * objfiles.c (entry_point_address_query): Update.
1405 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1406 * minsyms.c (get_symbol_leading_char): Update.
1407 * frame.c (inside_main_func): Update.
1408 * progspace.h (symfile_objfile): Remove macro.
1409
19f6550e
TT
14102020-10-29 Tom Tromey <tom@tromey.com>
1411
1412 * exec.c (exec_file_attach): Update.
1413 * progspace.c (program_space::exec_close): Update.
1414 * progspace.h (struct program_space) <ebfd>: Now a
1415 gdb_bfd_ref_ptr.
1416 <set_exec_bfd>: Change argument type.
1417 <exec_bfd>: Update.
1418
7e10abd1
TT
14192020-10-29 Tom Tromey <tom@tromey.com>
1420
1421 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1422 * symfile.c (reread_symbols): Update.
1423 * symfile-mem.c (add_symbol_file_from_memory_command)
1424 (add_vsyscall_page): Update.
1425 * source-cache.c (source_cache::get_plain_source_lines): Update.
1426 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1427 (svr4_current_sos_direct, svr4_exec_displacement)
1428 (svr4_relocate_main_executable): Update.
1429 (svr4_iterate_over_objfiles_in_search_order): Update.
1430 * solib-frv.c (enable_break2, enable_break): Update.
1431 * solib-dsbt.c (lm_base, enable_break): Update.
1432 * solib-darwin.c (find_program_interpreter)
1433 (darwin_solib_create_inferior_hook): Update.
1434 * sol-thread.c (rw_common, ps_pdmodel): Update.
1435 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1436 * remote.c (compare_sections_command)
1437 (remote_target::trace_set_readonly_regions): Update.
1438 * remote-sim.c (get_sim_inferior_data)
1439 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1440 (gdbsim_target_open, gdbsim_target::files_info): Update.
1441 * exec.h (exec_bfd): Remove macro.
1442 * progspace.c (initialize_progspace): Update.
1443 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1444 Update.
1445 * nto-procfs.c (nto_procfs_target::post_attach)
1446 (nto_procfs_target::create_inferior): Update.
1447 * maint.c (maintenance_info_sections): Update.
1448 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1449 Update.
1450 * infcmd.c (post_create_inferior): Update.
1451 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1452 (objfile_find_memory_regions): Update.
1453 * exec.c (validate_exec_file, exec_file_attach)
1454 (exec_read_partial_read_only, print_section_info): Update.
1455 * corelow.c (core_target_open): Update.
1456 * corefile.c (reopen_exec_file, validate_files): Update.
1457 * arm-tdep.c (gdb_print_insn_arm): Update.
1458 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1459 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1460 methods.
1461
b55221ab
TT
14622020-10-29 Tom Tromey <tom@tromey.com>
1463
1464 * progspace.h (current_target_sections): Remove macro.
1465 * solib-svr4.c (scan_dyntag): Update.
1466 * solib-dsbt.c (scan_dyntag): Update.
1467 * exec.c (exec_target::close): Update.
1468 (add_target_sections, add_target_sections_of_objfile)
1469 (remove_target_sections, exec_target::get_section_table)
1470 (exec_target::files_info, set_section_command)
1471 (exec_set_section_address, exec_target::has_memory)
1472 (exec_target::has_memory): Update.
1473
5a36e715
TT
14742020-10-29 Tom Tromey <tom@tromey.com>
1475
1476 * source-cache.c (source_cache::get_plain_source_lines): Use
1477 current_program_space.
1478 * corefile.c (reopen_exec_file): Use current_program_space.
1479 * exec.c (exec_file_attach): Use current_program_space.
1480 * exec.h (exec_bfd_mtime): Remove.
1481
784c8592
TT
14822020-10-29 Tom Tromey <tom@tromey.com>
1483
1484 * gcore.c (default_gcore_mach): Remove.
1485 (create_gcore_bfd): Update.
1486
8a4f1402
TT
14872020-10-29 Tom Tromey <tom@tromey.com>
1488
1489 * progspace.c (program_space::exec_close): New method, from
1490 exec_close in exec.c.
1491 * exec.c (exec_close): Move to progspace.c.
1492 (exec_target::close, exec_file_attach): Update.
1493 * progspace.h (struct program_space) <exec_close>: Declare
1494 method.
1495
c20cb686
TT
14962020-10-29 Tom Tromey <tom@tromey.com>
1497
1498 * progspace.h (struct program_space) <exec_filename>: Rename from
1499 pspace_exec_filename. Now a unique_xmalloc_ptr.
1500 * inferior.c (print_selected_inferior): Update.
1501 (print_inferior): Update.
1502 * mi/mi-main.c (print_one_inferior): Update.
1503 * exec.h (exec_filename): Remove macro.
1504 * corefile.c (get_exec_file): Update.
1505 * exec.c (exec_close): Update.
1506 (exec_file_attach): Update.
1507 * progspace.c (clone_program_space): Update.
1508 (print_program_space): Update.
1509
6be2a9ab
TT
15102020-10-29 Tom Tromey <tom@tromey.com>
1511
1512 * target-section.h (struct target_section): Add constructor.
1513 * exec.c (build_section_table, add_target_sections_of_objfile):
1514 Update.
1515 * corelow.c (core_target::build_file_mappings): Update.
1516
cfaa8f76
TBA
15172020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1518
1519 PR gdb/19318
1520 * inferior.c (detach_inferior_command): Restore the current thread.
1521 (kill_inferior_command): Ditto.
1522
1b00ef06
TV
15232020-10-28 Tom de Vries <tdevries@suse.de>
1524
1525 PR symtab/26772
1526 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1527 map, check it in the "best match" loop.
1528
7f40ce1a
SM
15292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1530
1531 * m32c-tdep.c: Remove unused includes.
1532
5eb9e3f5
SM
15332020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * xtensa-tdep.c: Remove includes.
1536
b1d4d8d1
TBA
15372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1538
1539 * breakpoint.c (struct condition_command_opts): New struct.
1540 (condition_command_option_defs): New static global.
1541 (make_condition_command_options_def_group): New function.
1542 (condition_completer): Update to consider the '-force' flag.
1543 (condition_command): Use gdb::option for the '-force' flag.
1544
bd24c5d6
TV
15452020-10-27 Tom de Vries <tdevries@suse.de>
1546
1547 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1548 symbols in section check.
1549
61eb46a4
TV
15502020-10-27 Tom de Vries <tdevries@suse.de>
1551
1552 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1553
733d554a
TBA
15542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555
1556 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1557 * breakpoint.c: Update the help text of the 'condition' and 'break'
1558 commands.
1559 (set_breakpoint_condition): Take a new bool parameter
1560 to control whether condition definition should be forced even when
1561 the condition expression is invalid in all of the current locations.
1562 (condition_command): Update the call to 'set_breakpoint_condition'.
1563 (find_condition_and_thread): Take the "-force-condition" flag into
1564 account.
1565 * linespec.c (linespec_keywords): Add "-force-condition" as an
1566 element.
1567 (FORCE_KEYWORD_INDEX): New #define.
1568 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1569 as a keyword.
1570 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1571 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1572 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1573 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1574
b5fa468f
TBA
15752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1576
1577 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1578 * breakpoint.c (set_breakpoint_location_condition): New function.
1579 (set_breakpoint_condition): Disable a breakpoint location if parsing
1580 the condition string gives an error.
1581 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1582 (build_target_condition_list): Ditto.
1583 (build_target_command_list): Ditto.
1584 (build_bpstat_chain): Ditto.
1585 (print_one_breakpoint_location): Ditto.
1586 (print_one_breakpoint): Ditto.
1587 (breakpoint_1): Ditto.
1588 (bp_location::bp_location): Ditto.
1589 (locations_are_equal): Ditto.
1590 (update_breakpoint_locations): Ditto.
1591 (enable_disable_bp_num_loc): Ditto.
1592 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1593 (find_condition_and_thread_for_sals): New static function.
1594 (create_breakpoint): Call find_condition_and_thread_for_sals.
1595 (location_to_sals): Call find_condition_and_thread_for_sals instead
1596 of find_condition_and_thread.
1597
1c47ec3e
TV
15982020-10-26 Tom de Vries <tdevries@suse.de>
1599
1600 * dwarf2/read.c (process_full_comp_unit): Call
1601 dwarf2_find_base_address.
1602
6390859c
TT
16032020-10-26 Tom Tromey <tromey@adacore.com>
1604
1605 * gdbtypes.c (create_range_type): Revert previous patch. Add
1606 comment.
1607
d744f0f9
PA
16082020-10-26 Pedro Alves <pedro@palves.net>
1609
1610 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1611 (my_waitpid): Use gdb::handle_eintr.
1612
006811bc
SM
16132020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * acinclude.m4: Update ptrace.m4 path.
1616 * ptrace.m4: Moved to gdbsupport.
1617
c75e31a1
SM
16182020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1621 instead of target_gdbarch.
1622
32495661
SM
16232020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * jit.c (jit_reader_load_command): Pass current inferior.
1626 (jit_inferior_init): Change parameter type to inferior, use it.
1627 (jit_inferior_created): Remove.
1628 (jit_inferior_created_hook): Pass inferior parameter down.
1629 (_initialize_jit): Use jit_inferior_created_hook instead of
1630 jit_inferior_created.
1631 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1632 * infrun.c (follow_exec): Pass inferior to
1633 jit_inferior_created_hook.
1634
3f66685e
SM
16352020-10-24 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1638 parameter and use it.
1639 (thread_db_inferior_created): Pass inferior argument.
1640
a0ff652f
SM
16412020-10-24 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * aix-thread.c (aix_thread_inferior_created): Add inferior
1644 parameter.
1645 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1646 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1647 * jit.c (jit_inferior_created): Likewise.
1648 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1649 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1650 * observable.h (inferior_created): Likewise.
1651 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1652 * symfile-mem.c (add_vsyscall_page): Likewise.
1653 * infcmd.c (post_create_inferior): Pass inferior argument.
1654
3c67532c
JB
16552020-10-24 Joel Brobecker <brobecker@adacore.com>
1656
1657 GDB 10.1 released.
1658
8747316e
JB
16592020-10-23 Joel Brobecker <brobecker@adacore.com>
1660
1661 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1662 to ada_check_typedef.
1663
1a0ea399
AB
16642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * f-exp.y (f_parse): Rename to...
1667 (f_language::parser): ...this.
1668 * f-lang.c (f_get_encoding): Rename to...
1669 (f_language::get_encoding): ...this.
1670 (f_op_print_tab): Rename to...
1671 (f_language::op_print_tab): ...this.
1672 (exp_descriptor_f): Rename to...
1673 (f_language::exp_descriptor_tab): ...this.
1674 (class f_language): Moved to f-lang.h.
1675 (f_language::language_arch_info): New function, moved out of class
1676 declaration.
1677 (f_language::search_name_hash): Likewise.
1678 (f_language::lookup_symbol_nonlocal): Likewise.
1679 (f_language::get_symbol_name_matcher_inner): Likewise.
1680 * f-lang.h: Add 'valprint.h' include.
1681 (class f_language): Moved here from f-lang.c.
1682 * f-typeprint.c (f_type_print_args): Delete commented out
1683 declaration.
1684 (f_print_typedef): Rename to...
1685 (f_language::print_typedef): ...this.
1686 (f_print_type): Rename to...
1687 (f_language::print_type): ...this.
1688 (f_type_print_varspec_prefix): Delete declaration and rename to...
1689 (f_language::f_type_print_varspec_prefix): ...this.
1690 (f_type_print_varspec_suffix): Delete declaration and rename to...
1691 (f_language::f_type_print_varspec_suffix): ...this.
1692 (f_type_print_base): Delete declaration and rename to...
1693 (f_language::f_type_print_base): ...this.
1694 * f-valprint.c (f_value_print_inner): Rename to...
1695 (f_language::value_print_inner): ...this.
1696 * parse.c: Delete 'f-lang.h' include.
1697
88cefd9b
AB
16982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * language.h (language_defn::print_type): Add variable names in
1701 declaration, and update header comment.
1702
5399db93
AB
17032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * ada-lang.c (ada_language::demangle): Rename to...
1706 (ada_language::demangle_symbol): ...this.
1707 * c-lang.c (cplus_language::demangle): Rename to...
1708 (cplus_language::demangle_symbol): ...this.
1709 * d-lang.c (d_language::demangle): Rename to...
1710 (d_language::demangle_symbol): ...this.
1711 * f-lang.c (f_language::demangle): Rename to...
1712 (f_language::demangle_symbol): ...this.
1713 * go-lang.c (go_language::demangle): Rename to...
1714 (go_language::demangle_symbol): ...this.
1715 * language.c (language_demangle): Update call to demangle_symbol.
1716 (auto_or_unknown_language::demangle): Rename to...
1717 (auto_or_unknown_language::demangle_symbol): ...this.
1718 * language.h (language_defn::demangle): Rename to...
1719 (language_defn::demangle_symbol): ...this.
1720 * objc-lang.c (objc_language::demangle): Rename to...
1721 (objc_language::demangle_symbol): ...this.
1722 * rust-lang.c (rust_language::demangle): Rename to...
1723 (rust_language::demangle_symbol): ...this.
1724
4b2f86ef
AB
17252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1728 (iterate_over_file_blocks): Replace use of macro with the macros
1729 definition.
1730
e74b39de
AB
17312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1734 * valprint.c (maybe_print_array_index): Replace use of macro with
1735 the macros definition.
1736
00c696a6
AB
17372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * ada-lang.c (ada_language::print_array_index): Call value_print
1740 directly.
1741 * language.c (language_defn::print_array_index): Likewise.
1742 * language.h (LA_VALUE_PRINT): Delete.
1743 * valprint.c (value_print): Call value_print on the
1744 current_language directly.
1745
d3b67c56
AB
17462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1747
1748 * language.h (LA_PRINT_TYPEDEF): Delete.
1749 * typeprint.c (typedef_print): Call print_typedef directly on the
1750 current_language object.
1751
790e2a12
AB
17522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * m2-exp.y (m2_parse): Rename to...
1755 (m2_language::parser): ...this. Update function signature.
1756 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1757 (m2_op_print): Rename to...
1758 (m2_language::op_print_tab): ...this, and make const.
1759 (exp_descriptor_modula2): Rename to...
1760 (m2_language::exp_descriptor_modula2): ...this.
1761 (class m2_language): Move to m2-lang.h.
1762 (m2_language::language_arch_info): New function, moved out of
1763 class declaration.
1764 (m2_language::printchar): New function, body from m2_printchar.
1765 (m2_language::printstr): New function, moved out of class
1766 declaration.
1767 (m2_language::emitchar): Likewise.
1768 * m2-lang.h (m2_parse): Delete declaration.
1769 (m2_print_typedef): Delete declaration.
1770 (m2_value_print_inner): Delete declaration.
1771 (class m2_language): Class declaration moved from m2-lang.c,
1772 larger functions are left in m2-lang.c.
1773 * m2-typeprint.c (m2_print_typedef): Rename to...
1774 (m2_language::print_typedef): ...this, and update function
1775 signature.
1776 * m2-valprint.c (m2_value_print_inner): Rename to...
1777 (m2_language::value_print_inner): ...this, replace use of
1778 LA_PRINT_STRING with a direct call to printstr member function,
1779 and update recursive call.
1780
b01175fc
AB
17812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * language.c (default_is_string_type_p): Delete, implementation
1784 moved into auto_or_unknown_language::is_string_type_p.
1785 (unk_op_print_tab): Moved into
1786 auto_or_unknown_language::opcode_print_table.
1787 (unknown_language_arch_info): Delete, implementation moved into
1788 auto_or_unknown_language::language_arch_info.
1789 (class auto_or_unknown_language): New class, member functions
1790 copied from unknown_language class, with some updates.
1791 (class unknown_language): Most member functions moved into
1792 auto_or_unknown_language class. Inherit from
1793 auto_or_unknown_language class.
1794 (class auto_language): Inherit from auto_or_unknown_language.
1795 Delete most member functions.
1796
1a97fe8c
HD
17972020-10-22 Hannes Domani <ssbssa@yahoo.de>
1798
1799 * stabsread.c (read_member_functions): Remove gdb_assert.
1800
6b9d0dfd
HD
18012020-10-22 Hannes Domani <ssbssa@yahoo.de>
1802
1803 * gdbtypes.c (init_complex_type): Check target type name.
1804
4b4bb603
SM
18052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * target-debug.h (target_debug_print_struct_target_ops_p):
1808 Remove.
1809 (target_debug_print_async_callback_ftype_p): Remove.
1810 (target_debug_print_struct_trace_state_variable_p): Remove.
1811 (target_debug_print_struct_traceframe_info_p): Remove.
1812 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1813 (target_debug_print_enum_btrace_format): Remove.
1814 (target_debug_print_enum_info_proc_what): Remove.
1815 (target_debug_print_thread_info_pp): Remove.
1816
24f5300a
SM
18172020-10-22 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * target.h (struct target_ops) <make_corefile_notes>:
1820 Change return type to unique pointer.
1821 * target.c (dummy_make_corefile_notes): Likewise.
1822 * exec.c (struct exec_target) <make_corefile_notes>:
1823 Likewise.
1824 (exec_target::make_corefile_notes): Likewise.
1825 * procfs.c (class procfs_target) <make_corefile_notes>:
1826 Likewise.
1827 (procfs_do_thread_registers): Adjust to unique pointer.
1828 (struct procfs_corefile_thread_data): Add constructor.
1829 <note_data>: Change type to unique pointer.
1830 (procfs_corefile_thread_callback): Adjust to unique pointer.
1831 (procfs_target::make_corefile_notes): Change return type to
1832 unique pointer.
1833 * target-delegates.c: Re-generate.
1834 * gcore.c (write_gcore_file_1): Adjust.
1835 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1836 New.
1837
5fb4027f
TV
18382020-10-22 Tom de Vries <tdevries@suse.de>
1839
1840 * block.c (find_block_in_blockvector): Make sure the returned block
1841 contains pc.
1842
4a636814
SM
18432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 PR gdb/26693
1846 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1847 parameter.
1848 (load_cu): Pass existing CU.
1849 (process_imported_unit_die): Likewise.
1850 (follow_die_offset): Likewise.
1851
1bd57575
LM
18522020-10-22 Luis Machado <luis.machado@linaro.org>
1853
1854 * corelow.c (core_target::xfer_partial): Also check for an empty
1855 m_core_unavailable_mappings vector.
1856
6b4c676c
AB
18572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1858
1859 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1860 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1861 * f-exp.y (arglist): Allow for a series of subranges.
1862 (subrange): Add cases for subranges with strides.
1863 * f-lang.c (value_f90_subarray): Catch use of array strides and
1864 throw an error.
1865 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1866
f2d8e4c5
AB
18672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * expprint.c (print_subexp_standard): Change enum range_type to
1870 range_flag and rename variables to match.
1871 (dump_subexp_body_standard): Likewise.
1872 * expression.h (enum range_type): Rename to...
1873 (enum range_flag): ...this.
1874 (range_types): Rename to...
1875 (range_flags): ...this.
1876 * f-lang.c (value_f90_subarray): Change enum range_type to
1877 range_flag and rename variables to match.
1878 * parse.c (operator_length_standard): Likewise.
1879 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1880 range_type to range_flag.
1881 * rust-lang.c (rust_evaluate_funcall): Likewise.
1882 (rust_range): Likewise.
1883 (rust_compute_range): Likewise.
1884 (rust_subscript): Likewise.
1885
2f1b18db
AB
18862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * expprint.c (print_subexp_standard): Update to reflect changes to
1889 enum range_type.
1890 (dump_subexp_body_standard): Likewise.
1891 * expression.h (enum range_type): Convert to a bit field enum, and
1892 make the enum unsigned.
1893 * f-exp.y (subrange): Update to reflect changes to enum
1894 range_type.
1895 * f-lang.c (value_f90_subarray): Likewise.
1896 * parse.c (operator_length_standard): Likewise.
1897 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1898 * rust-lang.c (rust_range): Likewise.
1899 (rust_compute_range): Likewise.
1900 (rust_subscript): Likewise.
1901
a46d1843
SM
19022020-10-21 Simon Marchi <simon.marchi@efficios.com>
1903
1904 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1905 (displaced_step_in_progress): Fix comment.
1906
c21f37a8
SM
19072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1910 * gdbarch.c: Re-generate.
1911 * gdbarch.h: Re-generate.
1912 * gcore.c (write_gcore_file_1): Adjust.
1913 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1914 constructor.
1915 <note_data>: Change type to unique pointer.
1916 <abort_iteration>: Change type to bool.
1917 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1918 (fbsd_collect_thread_registers): Return void, adjust.
1919 (struct fbsd_corefile_thread_data): Add construtor.
1920 <note_data>: Change type to unique pointer.
1921 (fbsd_corefile_thread): Adjust.
1922 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1923 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1924 to unique pointer, adjust.
1925 (struct linux_collect_regset_section_cb_data): Add constructor.
1926 <note_data>: Change type to unique pointer.
1927 <abort_iteration>: Change type to bool.
1928 (linux_collect_thread_registers): Return void, adjust.
1929 (struct linux_corefile_thread_data): Add constructor.
1930 <note_data>: Change type to unique pointer.
1931 (linux_corefile_thread): Adjust.
1932 (linux_make_corefile_notes): Return unique pointer, adjust.
1933
07fbbd01
SM
19342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1937 * gdbarch.c: Re-generate.
1938 * gdbarch.h: Re-generate.
1939 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1940 bool.
1941 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1942 Likewise.
1943 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1944 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1945 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1946 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1947
39535193
SM
19482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * gdbarch.sh: Make generated predicates return bool.
1951 * gdbarch.c: Re-generate.
1952 * gdbarch.h: Re-generate.
1953
ad523d01
TT
19542020-10-20 Tom Tromey <tom@tromey.com>
1955
1956 * varobj-iter.h (struct varobj_item): Remove typedef.
1957
c4464ade
SM
19582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1959
1960 * infrun.c (currently_stepping): Change int to bool
1961 (maybe_software_singlestep): Likewise.
1962 (show_stop_on_solib_events): Likewise.
1963 (stepping_past_nonsteppable_watchpoint): Likewise.
1964 (displaced_step_in_progress_any_inferior): Likewise.
1965 (displaced_step_in_progress_thread): Likewise.
1966 (keep_going_stepped_thread): Likewise.
1967 (thread_still_needs_step_over): Likewise.
1968 (start_step_over): Likewise.
1969 (do_target_resume): Likewise.
1970 (resume_1): Likewise.
1971 (clear_proceed_status): Likewise.
1972 (thread_still_needs_step_over_bp): Likewise.
1973 (proceed): Likewise.
1974 (switch_back_to_stepped_thread): Likewise.
1975 (adjust_pc_after_break): Likewise.
1976 (stepped_in_from): Likewise.
1977 (handle_stop_requested): Likewise.
1978 (handle_syscall_event): Likewise.
1979 (handle_no_resumed): Likewise.
1980 (handle_inferior_event): Likewise.
1981 (finish_step_over): Likewise.
1982 (handle_signal_stop): Likewise.
1983 (process_event_stop_test): Likewise.
1984
2eb20436
SM
19852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * infrun.c (get_displaced_stepping_state): Fix comment.
1988
e0c45ded
AS
19892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1990
1991 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1992
22cc388e
TT
19932020-10-19 Tom Tromey <tromey@adacore.com>
1994
1995 PR tui/26719
1996 * tui/tui-winsource.h (struct tui_source_window_base)
1997 <refresh_window>: Rename from refresh_pad.
1998 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1999 Rename from refresh_pad.
2000 (tui_source_window_base::show_source_content)
2001 (tui_source_window_base::do_scroll_horizontal): Update.
2002
3c6eb4d4
TBA
20032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2004
2005 * thread.c (_initialize_thread): Fine-tune the help text of
2006 'info threads'.
2007
26703721
TBA
20082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2009
2010 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2011
61c26be8
MS
20122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2013
2014 * breakpoint.c (handle_jit_event): Add an argument, change how
2015 `jit_event_handler` is called.
2016
932539d7
TT
20172020-10-17 Tom Tromey <tom@tromey.com>
2018
2019 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2020 (scan_xcoff_symtab): Update.
2021 * psymtab.h (class psymtab_storage) <global_psymbols,
2022 static_psymbols, current_global_psymbols,
2023 current_static_psymbols>: Remove.
2024 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2025 (match_partial_symbol, lookup_partial_symbol): Update.
2026 (print_partial_symbols): Change parameters.
2027 (dump_psymtab, recursively_search_psymtabs)
2028 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2029 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2030 (concat): Remove.
2031 (end_psymtab_common): Simplify.
2032 (append_psymbol_to_list): Change parameters.
2033 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2034 (init_psymbol_list): Simplify.
2035 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2036 * psympriv.h (struct partial_symtab) <empty>: New method.
2037 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2038 Remove.
2039 <global_psymbols, static_psymbols>: New members.
2040 <add_psymbol>: New methods.
2041 (add_psymbol_to_list): Don't declare.
2042 (psymbol_placement): Move earlier.
2043 * mdebugread.c (parse_partial_symbols): Update.
2044 (handle_psymbol_enumerators): Change parameters.
2045 (mdebug_expand_psymtab): Update.
2046 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2047 (add_partial_symbol): Update.
2048 * dwarf2/index-write.c (write_psymbols): Change parameters.
2049 (write_one_signatured_type): Update.
2050 (recursively_count_psymbols): Update.
2051 (recursively_write_psymbols): Update.
2052 (class debug_names) <recursively_write_psymbols>: Update.
2053 <write_psymbols>: Change parameters.
2054 <write_one_signatured_type>: Update.
2055 * dbxread.c (read_dbx_symtab): Update.
2056 (dbx_end_psymtab): Use partial_symtab::empty.
2057 * ctfread.c (struct ctf_context) <pst>: New member.
2058 (create_partial_symtab): Set it.
2059 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2060 (scan_partial_symbols): Use the psymtab's context. Update.
2061
cfabbd35
TT
20622020-10-17 Tom Tromey <tom@tromey.com>
2063
2064 * valprint.c (generic_value_print): Remove comment.
2065 * m2-valprint.c (m2_value_print_inner): Remove comment.
2066 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2067 type.
2068
520596f2
TV
20692020-10-17 Tom de Vries <tdevries@suse.de>
2070
2071 PR symtab/26317
2072 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2073 symbol main.
2074
76547ab3
TV
20752020-10-14 Tom de Vries <tdevries@suse.de>
2076
2077 PR gdb/26733
2078 * solib.c (solib_contains_address_p): Handle
2079 'solib->sections == nullptr'.
2080
d3a07122
SM
20812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 PR gdb/26642
2084 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2085 target can't do async.
2086 * target.c (target_wait): Assert that we don't pass
2087 TARGET_WNOHANG to a target that can't async.
2088
1b71cfcf
KR
20892020-10-13 Kamil Rytarowski <n54@gmx.com>
2090
2091 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2092 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2093 * alpha-bsd-nat.c: Adjust include.
2094 * alpha-bsd-tdep.h: Adjust comment.
2095 * alpha-nbsd-tdep.c: Rename to ...
2096 * alpha-netbsd-tdep.c: ... this, adjust include.
2097 * amd64-nbsd-nat.c: Rename to ...
2098 * amd64-netbsd-nat.c: ... this, adjust include.
2099 * amd64-nbsd-tdep.c: Rename to ...
2100 * amd64-netbsd-tdep.c: ... this, adjust include.
2101 * amd64-tdep.h: Adjust include.
2102 * arm-nbsd-nat.c: Rename to ...
2103 * arm-netbsd-nat.c: ... this, adjust include.
2104 * arm-nbsd-tdep.c: Rename to ...
2105 * arm-netbsd-tdep.c: ... this, adjust include.
2106 * arm-nbsd-tdep.h: Rename to ...
2107 * arm-netbsd-tdep.h: ... this, adjust include.
2108 * configure.nat: Adjust file lists.
2109 * configure.tgt: Likewise.
2110 * hppa-nbsd-nat.c: Rename to ...
2111 * hppa-netbsd-nat.c: ... this, adjust include.
2112 * hppa-nbsd-tdep.c: Rename to ...
2113 * hppa-netbsd-tdep.c: ... this, adjust include.
2114 * i386-nbsd-nat.c: Rename to ...
2115 * i386-netbsd-nat.c: ... this, adjust include.
2116 * i386-nbsd-tdep.c: Rename to ...
2117 * i386-netbsd-tdep.c: ... this, adjust include.
2118 * m68k-bsd-nat.c: Adjust include.
2119 * mips-nbsd-nat.c: Rename to ...
2120 * mips-netbsd-nat.c: ... this, adjust include.
2121 * mips-nbsd-tdep.c: Rename to ...
2122 * mips-netbsd-tdep.c: ... this, adjust include.
2123 * mips-nbsd-tdep.h: Rename to ...
2124 * mips-netbsd-tdep.h: ... this.
2125 * nbsd-nat.c: Rename to ...
2126 * netbsd-nat.c: ... this, adjust include.
2127 * nbsd-nat.h: Rename to ...
2128 * netbsd-nat.h: ... this, adjust include.
2129 * nbsd-tdep.c: Rename to ...
2130 * netbsd-tdep.c: ... this, adjust include.
2131 * nbsd-tdep.h: Rename to ...
2132 * netbsd-tdep.h: ... this.
2133 * ppc-nbsd-nat.c: Rename to ...
2134 * ppc-netbsd-nat.c: ... this, adjust include.
2135 * ppc-nbsd-tdep.c: Rename to ...
2136 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2137 * ppc-nbsd-tdep.h: Rename to ...
2138 * ppc-netbsd-tdep.h: ... this.
2139 * sh-nbsd-nat.c: Rename to ...
2140 * sh-netbsd-nat.c: ... this, adjust include.
2141 * sh-nbsd-tdep.c: Rename to ...
2142 * sh-netbsd-tdep.c: ... this, adjust include.
2143 * sparc-nbsd-nat.c: Rename to ...
2144 * sparc-netbsd-nat.c: ... this.
2145 * sparc-nbsd-tdep.c: Rename to ...
2146 * sparc-netbsd-tdep.c: ... this, adjust include.
2147 * sparc64-nbsd-nat.c: Rename to ...
2148 * sparc64-netbsd-nat.c: ... this.
2149 * sparc64-nbsd-tdep.c: Rename to ...
2150 * sparc64-netbsd-tdep.c: ... this, adjust include.
2151 * sparc64-tdep.h: Adjust comment.
2152 * vax-bsd-nat.c: Adjust include.
2153 * vax-nbsd-tdep.c: Rename to ...
2154 * vax-netbsd-tdep.c: ... this, adjust include.
2155
d7a78e5c
TT
21562020-10-12 Tom Tromey <tom@tromey.com>
2157
2158 * target.h (struct target_ops) <get_section_table>: Update.
2159 (target_get_section_table): Update.
2160 * target.c (target_get_section_table, target_section_by_addr)
2161 (memory_xfer_partial_1): Update.
2162 * target-section.h (target_section_table): Now an alias.
2163 * target-delegates.c: Rebuild.
2164 * target-debug.h (target_debug_print_target_section_table_p):
2165 Rename from target_debug_print_struct_target_section_table_p.
2166 * symfile.c (build_section_addr_info_from_section_table): Update.
2167 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2168 * solib-svr4.c (scan_dyntag): Update.
2169 * solib-dsbt.c (scan_dyntag): Update.
2170 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2171 Update.
2172 * record-full.c (record_full_core_target::xfer_partial): Update.
2173 * progspace.h (struct program_space) <target_sections>: Update.
2174 * exec.h (print_section_info): Update.
2175 * exec.c (exec_target::close, build_section_table)
2176 (add_target_sections, add_target_sections_of_objfile)
2177 (remove_target_sections, exec_on_vfork)
2178 (section_table_available_memory)
2179 (section_table_xfer_memory_partial)
2180 (exec_target::get_section_table, exec_target::xfer_partial)
2181 (print_section_info, set_section_command)
2182 (exec_set_section_address, exec_target::has_memory): Update.
2183 * corelow.c (core_target::build_file_mappings)
2184 (core_target::xfer_partial, core_target::info_proc_mappings)
2185 (core_target::info_proc_mappings): Update.
2186 * bfd-target.c (class target_bfd): Update
2187
eda214ce
TT
21882020-10-12 Tom Tromey <tom@tromey.com>
2189
2190 * progspace.c (program_space::~program_space): Don't call
2191 clear_section_table.
2192 * exec.h (clear_section_table): Don't declare.
2193 * exec.c (exec_target::close): Update.
2194 (clear_section_table): Remove.
2195
91840ee3
TT
21962020-10-12 Tom Tromey <tom@tromey.com>
2197
2198 * exec.c (add_target_sections_of_objfile): Simplify.
2199
2d128614
TT
22002020-10-12 Tom Tromey <tom@tromey.com>
2201
2202 * solib.c (solib_map_sections): Update.
2203 * record-full.c (record_full_core_open_1): Update.
2204 * exec.h (build_section_table): Return a target_section_table.
2205 * exec.c (exec_file_attach): Update.
2206 (build_section_table): Return a target_section_table.
2207 * corelow.c (core_target::core_target): Update.
2208 * bfd-target.c (target_bfd::target_bfd): Update.
2209
bb2a6777
TT
22102020-10-12 Tom Tromey <tom@tromey.com>
2211
2212 * target.c (target_section_by_addr, memory_xfer_partial_1):
2213 Update.
2214 * target-section.h (struct target_section_table): Use
2215 std::vector.
2216 * symfile.h (build_section_addr_info_from_section_table): Take a
2217 target_section_table.
2218 * symfile.c (build_section_addr_info_from_section_table): Take a
2219 target_section_table.
2220 * solist.h (struct so_list) <sections>: Change type.
2221 <sections_end>: Remove.
2222 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2223 (solib_contains_address_p): Update.
2224 * solib-svr4.c (scan_dyntag): Update.
2225 * solib-dsbt.c (scan_dyntag): Update.
2226 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2227 Update.
2228 * record-full.c (record_full_core_start, record_full_core_end):
2229 Remove.
2230 (record_full_core_sections): New global.
2231 (record_full_core_open_1, record_full_core_target::xfer_partial):
2232 Update.
2233 * exec.h (build_section_table, section_table_xfer_memory_partial)
2234 (add_target_sections): Take a target_section_table.
2235 * exec.c (exec_file_attach, clear_section_table): Update.
2236 (resize_section_table): Remove.
2237 (build_section_table, add_target_sections): Take a
2238 target_section_table.
2239 (add_target_sections_of_objfile, remove_target_sections)
2240 (exec_on_vfork): Update.
2241 (section_table_available_memory): Take a target_section_table.
2242 (section_table_read_available_memory): Update.
2243 (section_table_xfer_memory_partial): Take a target_section_table.
2244 (print_section_info, set_section_command)
2245 (exec_set_section_address, exec_target::has_memory): Update.
2246 * corelow.c (class core_target) <m_core_section_table,
2247 m_core_file_mappings>: Remove braces.
2248 <~core_target>: Remove.
2249 (core_target::core_target): Update.
2250 (core_target::~core_target): Remove.
2251 (core_target::build_file_mappings)
2252 (core_target::xfer_memory_via_mappings)
2253 (core_target::xfer_partial, core_target::info_proc_mappings):
2254 Update.
2255 * bfd-target.c (target_bfd::xfer_partial): Update.
2256 (target_bfd::target_bfd): Update.
2257 (target_bfd::~target_bfd): Remove.
2258
7b466b10
TT
22592020-10-12 Tom Tromey <tom@tromey.com>
2260
2261 * target.h (struct target_section, struct target_section_table):
2262 Move to target-section.h.
2263 * target-section.h: New file.
2264
87a37e5e
PA
22652020-10-12 Pedro Alves <pedro@palves.net>
2266
2267 PR exp/26602
2268 * valops.c (struct struct_field_searcher): New.
2269 (update_search_result): Rename to ...
2270 (struct_field_searcher::update_result): ... this. Simplify
2271 prototype. Record all found fields.
2272 (do_search_struct_field): Rename to ...
2273 (struct_field_searcher::search): ... this. Simplify prototype.
2274 Maintain stack of visited baseclass path. Call update_result for
2275 fields too. Keep searching fields in baseclasses instead of
2276 stopping at the first found field.
2277 (search_struct_field): Use struct_field_searcher. When looking
2278 for fields, report ambiguous access attempts.
2279
9370fd51
AB
22802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2281
2282 * frame.c (inside_main_func): Check full symbols as well as
2283 minimal symbols.
2284
59c8a30b
JB
22852020-10-09 Joel Brobecker <brobecker@adacore.com>
2286
2287 * ada-lang.c (advance_wild_match): Rewrite the function's
2288 description. Change the type of target0, t0 and t1 to char.
2289
7c184d33
TT
22902020-10-09 Tom Tromey <tromey@adacore.com>
2291
2292 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2293
5c4258f4
TT
22942020-10-09 Tom Tromey <tromey@adacore.com>
2295
2296 * ada-lang.h (ada_encode): Return std::string.
2297 * ada-lang.c (ada_encode_1): Return std::string.
2298 (ada_encode): Likewise.
2299 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2300 Update.
2301 * ada-exp.y (block_lookup, write_var_or_type): Update.
2302
3d87245c
HD
23032020-10-09 Hannes Domani <ssbssa@yahoo.de>
2304
2305 PR exp/26714
2306 * printcmd.c (print_formatted): Handle void results as
2307 unformatted prints.
2308
bbb826f5
AB
23092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * arch/aarch32.c (aarch32_create_target_description): Release the
2312 target_desc_up as late as possible.
2313 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2314 * arch/amd64.c (amd64_create_target_description): Likewise.
2315 * arch/arc.c (arc_create_target_description): Return a
2316 target_desc_up, don't release it.
2317 * arch/arc.h (arc_create_target_description): Update declaration.
2318 (arc_lookup_target_description): Move target_desc_up into the
2319 cache, and return a borrowed pointer.
2320 * arch/arm.c (arm_create_target_description): Release the
2321 target_desc_up as late as possible.
2322 * arch/i386.c (i386_create_target_description): Likewise.
2323 * arch/riscv.h (riscv_create_target_description): Update
2324 declaration to match definition.
2325 * arch/tic6x.c (tic6x_create_target_description): Release the
2326 target_desc_up as late as possible.
2327
361cb219
AB
23282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2331 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2332
f5c4b229
JV
23332020-10-09 Jan Vrany <jan.vrany@labware.com>
2334
2335 * source.c (directory_command): Notify observers that "directories"
2336 parameter has changed.
2337
b2701685
TT
23382020-10-08 Tom Tromey <tom@tromey.com>
2339
2340 * cli/cli-cmds.c (print_disassembly): Style function name and
2341 addresses. Add _() wrappers.
2342
ada508b6
SV
23432020-10-08 Shahab Vahedi <shahab@synopsys.com>
2344
2345 * NEWS: Mention ARC support in GDBserver.
2346
51a948fd
AB
23472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * arch/aarch32.c (aarch32_create_target_description): Release
2350 unique_ptr returned from allocate_target_description.
2351 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2352 * arch/amd64.c (amd64_create_target_description): Likewise.
2353 * arch/arc.c (arc_create_target_description): Likewise.
2354 * arch/arm.c (arm_create_target_description): Likewise.
2355 * arch/i386.c (i386_create_target_description): Likewise.
2356 * arch/riscv.c (riscv_create_target_description): Update return
2357 type. Handle allocate_target_description returning a unique_ptr.
2358 (riscv_lookup_target_description): Update to handle unique_ptr.
2359 * arch/tic6x.c (tic6x_create_target_description): Release
2360 unique_ptr returned from allocate_target_description.
2361 * features/microblaze-with-stack-protect.c: Regenerate.
2362 * features/microblaze.c: Regenerate.
2363 * features/mips-dsp-linux.c: Regenerate.
2364 * features/mips-linux.c: Regenerate.
2365 * features/mips64-dsp-linux.c: Regenerate.
2366 * features/mips64-linux.c: Regenerate.
2367 * features/nds32.c: Regenerate.
2368 * features/nios2.c: Regenerate.
2369 * features/or1k.c: Regenerate.
2370 * features/rs6000/powerpc-32.c: Regenerate.
2371 * features/rs6000/powerpc-32l.c: Regenerate.
2372 * features/rs6000/powerpc-403.c: Regenerate.
2373 * features/rs6000/powerpc-403gc.c: Regenerate.
2374 * features/rs6000/powerpc-405.c: Regenerate.
2375 * features/rs6000/powerpc-505.c: Regenerate.
2376 * features/rs6000/powerpc-601.c: Regenerate.
2377 * features/rs6000/powerpc-602.c: Regenerate.
2378 * features/rs6000/powerpc-603.c: Regenerate.
2379 * features/rs6000/powerpc-604.c: Regenerate.
2380 * features/rs6000/powerpc-64.c: Regenerate.
2381 * features/rs6000/powerpc-64l.c: Regenerate.
2382 * features/rs6000/powerpc-7400.c: Regenerate.
2383 * features/rs6000/powerpc-750.c: Regenerate.
2384 * features/rs6000/powerpc-860.c: Regenerate.
2385 * features/rs6000/powerpc-altivec32.c: Regenerate.
2386 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2387 * features/rs6000/powerpc-altivec64.c: Regenerate.
2388 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2389 * features/rs6000/powerpc-e500.c: Regenerate.
2390 * features/rs6000/powerpc-e500l.c: Regenerate.
2391 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2392 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2393 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2394 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2395 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2396 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2397 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2398 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2399 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2400 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2401 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2402 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2403 * features/rs6000/powerpc-vsx32.c: Regenerate.
2404 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2405 * features/rs6000/powerpc-vsx64.c: Regenerate.
2406 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2407 * features/rs6000/rs6000.c: Regenerate.
2408 * features/rx.c: Regenerate.
2409 * features/s390-gs-linux64.c: Regenerate.
2410 * features/s390-linux32.c: Regenerate.
2411 * features/s390-linux32v1.c: Regenerate.
2412 * features/s390-linux32v2.c: Regenerate.
2413 * features/s390-linux64.c: Regenerate.
2414 * features/s390-linux64v1.c: Regenerate.
2415 * features/s390-linux64v2.c: Regenerate.
2416 * features/s390-te-linux64.c: Regenerate.
2417 * features/s390-tevx-linux64.c: Regenerate.
2418 * features/s390-vx-linux64.c: Regenerate.
2419 * features/s390x-gs-linux64.c: Regenerate.
2420 * features/s390x-linux64.c: Regenerate.
2421 * features/s390x-linux64v1.c: Regenerate.
2422 * features/s390x-linux64v2.c: Regenerate.
2423 * features/s390x-te-linux64.c: Regenerate.
2424 * features/s390x-tevx-linux64.c: Regenerate.
2425 * features/s390x-vx-linux64.c: Regenerate.
2426 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2427 from allocate_target_description.
2428 * target-descriptions.c (allocate_target_description): Update
2429 return type.
2430 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2431 allocate_target_description.
2432
485c47e5
TT
24332020-10-07 Tom Tromey <tromey@adacore.com>
2434
2435 * unittests/search-memory-selftests.c: New file.
2436 * Makefile.in (SELFTESTS_SRCS): Add
2437 unittests/search-memory-selftests.c.
2438
3a135a91
TT
24392020-10-07 Tom Tromey <tromey@adacore.com>
2440
2441 PR gdb/16930:
2442 * findcmd.c (_initialize_mem_search): Mention that the range is
2443 inclusive.
2444
4a72de73
TT
24452020-10-07 Tom Tromey <tromey@adacore.com>
2446
2447 * target.h (simple_search_memory): Don't declare.
2448 * target.c (simple_search_memory): Move to gdbsupport.
2449 (default_search_memory): Update.
2450 * remote.c (remote_target::search_memory): Update.
2451
a038ffd8
SM
24522020-10-07 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * Makefile.in (COMPILE): Add CXXFLAGS.
2455 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2456 (check-headers): Add CXXFLAGS.
2457
cc463201
AK
24582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2459
2460 * arc-linux-tdep.h: New file.
2461 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2462 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2463 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2464 arc_linux_gregset, arc_linux_v2_regset,
2465 arc_linux_iterate_over_regset_sections,
2466 arc_linux_core_read_description): Implement.
2467 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2468 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2469 (arc_gdbarch_features_create): Add.
2470 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2471
e4bd363f
SV
24722020-10-07 Shahab Vahedi <shahab@synopsys.com>
2473
2474 * arch/arc.h: Rename "arc_gdbarch_features" to
2475 "arc_arch_features".
2476 * arc-tdep.h: Likewise.
2477 * arc-tdep.c: Likewise.
2478
b68bef99
TBA
24792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2480
2481 * infcmd.c (attach_command): Remove the redundant call to
2482 `clear_proceed_status`.
2483
4641551a
KR
24842020-10-07 Kamil Rytarowski <n54@gmx.com>
2485
2486 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2487
91e5e8db
KR
24882020-10-07 Kamil Rytarowski <n54@gmx.com>
2489
2490 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2491 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2492 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2493
64c03bdb
SM
24942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2497 (_initialize_break_catch_sig): Don't allocate array.
2498
31a8f60f
AB
24992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * symtab.c (find_pc_line): Return unmapped addresses when the
2502 requested address is also unmapped.
2503
9e6dbd8b
SM
25042020-10-05 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2507 tui/tui-out.h.
2508
a1d217e8
SM
25092020-10-05 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2512 type::is_vector instead of TYPE_VECTOR.
2513
7d144117
SM
25142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2515
2516 * auto-load.c (auto_load_objfile_script_1): Don't use
2517 debugfile_holder as temporary variable when stripping drive
2518 letter.
2519
cd096ec8
HD
25202020-10-05 Hannes Domani <ssbssa@yahoo.de>
2521
2522 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2523 Add TYPE_CODE_COMPLEX.
2524 (amd64_windows_return_value): Fix types returned via XMM0.
2525
b58e7f72
AH
25262020-10-05 Alan Hayward <alan.hayward@arm.com>
2527
2528 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2529 AArch64/ARM maintainers.
2530
8d378f27
SM
25312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * NEWS: Mention set/show debug event-loop.
2534
d5519913
TT
25352020-10-02 Tom Tromey <tromey@adacore.com>
2536
2537 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2538 REG_EXTENDED.
2539
18b67edc
SM
25402020-10-02 Simon Marchi <simon.marchi@efficios.com>
2541
2542 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2543 * procfs.c (procfs_inferior_created): Remove.
2544 (_initialize_procfs): Don't register procfs_inferior_created.
2545
6b01403b
SM
25462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2547
2548 * async-event.c (invoke_async_signal_handlers): Add debug
2549 print.
2550 (check_async_event_handlers): Likewise.
2551 * event-top.c (show_debug_event_loop): New function.
2552 (_initialize_event_top): Register "set debug event-loop"
2553 setting.
2554
ba988419
SM
25552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2558 * debug.h: Remove.
2559 * infrun.c: Include gdbsupport/common-debug.h.
2560 * linux-nat.c: Likewise.
2561
db20ebdf
SM
25622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * async-event.h (create_async_signal_handler): Add name
2565 parameter.
2566 (create_async_event_handler): Likewise.
2567 * async-event.c (struct async_signal_handler) <name>: New field.
2568 (struct async_event_handler) <name>: New field.
2569 (create_async_signal_handler): Assign name.
2570 (create_async_event_handler): Assign name.
2571 * event-top.c (async_init_signals): Pass name when creating
2572 handler.
2573 * infrun.c (_initialize_infrun): Likewise.
2574 * record-btrace.c (record_btrace_push_target): Likewise.
2575 * record-full.c (record_full_open): Likewise.
2576 * remote-notif.c (remote_notif_state_allocate): Likewise.
2577 * remote.c (remote_target::open_1): Likewise.
2578 * tui/tui-win.c (tui_initialize_win): Likewise.
2579
2554f6f5
SM
25802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * async-event.c (initialize_async_signal_handlers): Pass name to
2583 add_file_handler
2584 * event-top.c (ui_register_input_event_handler): Likewise.
2585 * linux-nat.c (linux_nat_target::async): Likewise.
2586 * run-on-main-thread.c (_initialize_run_on_main_thread):
2587 Likewise
2588 * ser-base.c (reschedule): Likewise.
2589 (ser_base_async): Likewise.
2590 * tui/tui-io.c: Likewise.
2591 * top.h (struct ui) <num>: New field.
2592 * top.c (highest_ui_num): New variable.
2593 (ui::ui): Initialize num.
2594
a7aba266
SM
25952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 * observable.h <inferior_created>: Remove parameters. Update all
2598 listeners.
2599 * inferior.h (post_create_inferior): Remove target parameter.
2600 Update all callers.
2601
048fde1e 26022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2603
2604 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2605 and DW_MACRO_undef_strx.
2606 (dwarf_decode_macros): Likewise
2607 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2608 which is the value of DW_AT_str_offsets_base.
2609 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2610 str_offsets_base.
2611
064280be
KR
26122020-10-01 Kamil Rytarowski <n54@gmx.com>
2613
2614 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2615
6ff33035
KR
26162020-10-01 Kamil Rytarowski <n54@gmx.com>
2617
2618 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2619 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2620
1eb6eb79
KR
26212020-10-01 Kamil Rytarowski <n54@gmx.com>
2622
2623 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2624
95eb9e54
TV
26252020-09-30 Tom de Vries <tdevries@suse.de>
2626
2627 PR symtab/26683
2628 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2629
cae21f8e
TT
26302020-09-30 Tom Tromey <tromey@adacore.com>
2631
2632 * dwarf2/read.c (handle_variant): Use constant_value.
2633
529908cb
TT
26342020-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2637 (read_file_scope, dwarf2_get_pc_bounds)
2638 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2639 (read_structure_type, handle_struct_member_die)
2640 (read_enumeration_type, read_array_type, read_set_type)
2641 (read_tag_pointer_type, read_tag_reference_type)
2642 (read_subroutine_type, read_base_type, read_subrange_type)
2643 (read_full_die_1, partial_die_info::read)
2644 (partial_die_info::read, by, new_symbol)
2645 (dwarf2_const_value_data, dwarf2_const_value_attr)
2646 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2647 (prepare_one_comp_unit): Update.
2648 * dwarf2/attribute.h (DW_UNSND): Remove.
2649
c45bc3f8
TT
26502020-09-29 Tom Tromey <tom@tromey.com>
2651
2652 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2653 (read_subroutine_type, partial_die_info::read)
2654 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2655 (dwarf2_add_member_fn): Update.
2656 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2657 * dwarf2/attribute.c (attribute::as_boolean): New method.
2658
23dca5c3
TT
26592020-09-29 Tom Tromey <tom@tromey.com>
2660
2661 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2662 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2663 method.
2664 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2665
52c14d11
TT
26662020-09-29 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2669 the attribute's form.
2670
e8e5c158
TT
26712020-09-29 Tom Tromey <tom@tromey.com>
2672
2673 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2674 (dwarf2_add_member_fn): Update.
2675 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2676 * dwarf2/attribute.c (attribute::defaulted): New method, from
2677 is_valid_DW_AT_defaulted.
2678
d4df075e
TT
26792020-09-29 Tom Tromey <tom@tromey.com>
2680
2681 * dwarf2/read.c (dw2_get_file_names_reader)
2682 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2683 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2684 (dwarf2_symbol_mark_computed): Use as_unsigned.
2685 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2686 method.
2687 <form_is_section_offset>: Update comment.
2688
bf23a268
TT
26892020-09-29 Tom Tromey <tom@tromey.com>
2690
2691 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2692 dwarf2_default_access_attribute. Look up attribute.
2693 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2694 Update.
2695
7a5f294d
TT
26962020-09-29 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf2/read.c (skip_one_die): Update.
2699 (read_full_die_1): Change how reprocessing is done.
2700 (partial_die_info::read): Update.
2701 (read_attribute_value): Remove need_reprocess parameter.
2702 (read_attribute): Likewise.
2703 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2704 New method.
2705
36d378cf
TT
27062020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2709 (dwarf2_const_value_attr, dump_die_shallow)
2710 (dwarf2_fetch_constant_bytes): Update.
2711 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2712 comment.
2713 <set_address>: New method.
2714 (DW_ADDR): Remove.
2715 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2716 (attribute::as_string, attribute::as_address): Add assert.
2717
fe56917a
TT
27182020-09-29 Tom Tromey <tom@tromey.com>
2719
2720 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2721 (read_attribute_reprocess, read_attribute_value): Update.
2722 (read_attribute): Clear requires_reprocessing.
2723 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2724 form_requires_reprocessing>: New methods.
2725 <string_init>: Clear requires_reprocessing.
2726 <set_unsigned_reprocess>: New method.
2727 <name>: Shrink by one bit.
2728 <requires_reprocessing>: New member.
2729 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2730 method.
2731
414ad644
TT
27322020-09-29 Tom Tromey <tom@tromey.com>
2733
2734 * dwarf2/read.c (read_attribute_value): Update.
2735 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2736 set_unsigned>: New methods.
2737 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2738
1bc397c5
TT
27392020-09-29 Tom Tromey <tom@tromey.com>
2740
2741 * dwarf2/read.c (get_alignment, read_array_order)
2742 (read_attribute_value, dwarf2_const_value_attr)
2743 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2744 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2745 New methods.
2746 (DW_SND): Remove.
2747
630ed6b9
TT
27482020-09-29 Tom Tromey <tom@tromey.com>
2749
2750 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2751 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2752 Update.
2753 * dwarf2/attribute.h (struct attribute) <as_signature,
2754 set_signature>: New methods.
2755 (DW_SIGNATURE): Remove.
2756
9d2246fc
TT
27572020-09-29 Tom Tromey <tom@tromey.com>
2758
2759 * dwarf2/read.c (read_call_site_scope)
2760 (handle_data_member_location, dwarf2_add_member_fn)
2761 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2762 (partial_die_info::read, read_attribute_value)
2763 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2764 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2765 (dwarf2_symbol_mark_computed): Update.
2766 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2767 methods.
2768 (DW_BLOCK): Remove.
2769 * dwarf2/attribute.c (attribute::form_is_block): Add
2770 DW_FORM_data16.
2771
c6481205
TT
27722020-09-29 Tom Tromey <tom@tromey.com>
2773
2774 * dwarf2/read.c (read_cutu_die_from_dwo)
2775 (read_attribute_reprocess, read_attribute_value, read_attribute)
2776 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2777 (dwarf2_fetch_constant_bytes): Update.
2778 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2779 <set_string_noncanonical, set_string_canonical>: New methods.
2780 <string_is_canonical>: Update comment.
2781 <canonical_string_p>: Add assert.
2782 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2783 * dwarf2/attribute.c (attribute::form_is_string): New method.
2784 (attribute::string): Use it.
2785
3b64bf15
TT
27862020-09-29 Tom Tromey <tom@tromey.com>
2787
2788 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2789 (dump_die_shallow): Use canonical_string_p.
2790 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2791 method.
2792
2c830f54
TT
27932020-09-29 Tom Tromey <tom@tromey.com>
2794
2795 * dwarf2/read.c (partial_die_info::read)
2796 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2797 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2798 attribute::as_string.
2799
6c412691
TT
28002020-09-29 Tom Tromey <tom@tromey.com>
2801
2802 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2803 DW_ADDR.
2804 (attribute::string): Don't use DW_STRING.
2805 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2806 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2807
95f982e5
TT
28082020-09-29 Tom Tromey <tom@tromey.com>
2809
2810 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2811 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2812 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2813 * dwarf2/attribute.h (struct attribute): Rename methods.
2814 * dwarf2/attribute.c (attribute::as_address): Rename from
2815 value_as_address.
2816 (attribute::as_string): Rename from value_as_string.
2817
f800b00e
TT
28182020-09-29 Tom Tromey <tom@tromey.com>
2819
2820 * dwarf2/read.c (partial_die_info::read) <case
2821 DW_AT_linkage_name>: Use value_as_string.
2822 (dwarf2_string_attr): Use value_as_string.
2823 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2824 method.
2825 * dwarf2/attribute.c (attribute::value_as_string): New method.
2826
de38d64a
PA
28272020-09-29 Pedro Alves <pedro@palves.net>
2828
2829 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2830 defined before using '#pragma GCC diagnostic' instead of checking
2831 __clang__.
2832
9aed480c
TT
28332020-09-28 Tom Tromey <tom@tromey.com>
2834
2835 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2836 (handle_signal_stop): Update.
2837 * procfs.c (procfs_target::insert_watchpoint): Update.
2838 * target.h (target_have_steppable_watchpoint): Now a function.
2839
8a3ecb79
TT
28402020-09-28 Tom Tromey <tom@tromey.com>
2841
2842 * infrun.c (set_schedlock_func): Update.
2843 * target.h (target_can_lock_scheduler): Now a function.
2844
55f6301a
TT
28452020-09-28 Tom Tromey <tom@tromey.com>
2846
2847 * inferior.h (class inferior) <has_execution>: Update.
2848 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2849 * valops.c (find_function_in_inferior)
2850 (value_allocate_space_in_inferior): Update.
2851 * top.c (kill_or_detach): Update.
2852 * target.c (target_preopen, set_target_permissions): Update.
2853 (target_has_execution_current): Remove.
2854 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2855 Update.
2856 * solib.c (update_solib_list, reload_shared_libraries): Update.
2857 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2858 * solib-dsbt.c (enable_break): Update.
2859 * score-tdep.c (score7_fetch_inst): Update.
2860 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2861 Update.
2862 * remote.c (remote_target::start_remote)
2863 (remote_target::remote_check_symbols, remote_target::open_1)
2864 (remote_target::remote_detach_1, remote_target::verify_memory)
2865 (remote_target::xfer_partial, remote_target::read_description)
2866 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2867 * record-full.c (record_full_open_1): Update.
2868 * record-btrace.c (record_btrace_target_open): Update.
2869 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2870 (value_nsstring): Update.
2871 * linux-thread-db.c (add_thread_db_info)
2872 (thread_db_find_new_threads_silently, check_thread_db_callback)
2873 (try_thread_db_load_1, record_thread): Update.
2874 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2875 Update.
2876 * linux-fork.c (checkpoint_command): Update.
2877 * infrun.c (set_non_stop, set_observer_mode)
2878 (check_multi_target_resumption, for_each_just_stopped_thread)
2879 (maybe_remove_breakpoints, normal_stop)
2880 (class infcall_suspend_state): Update.
2881 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2882 (info_program_command, attach_command): Update.
2883 * infcall.c (call_function_by_hand_dummy): Update.
2884 * inf-loop.c (inferior_event_handler): Update.
2885 * gcore.c (gcore_command, derive_heap_segment): Update.
2886 * exec.c (exec_file_command): Update.
2887 * eval.c (evaluate_subexp): Update.
2888 * compile/compile.c (compile_to_object): Update.
2889 * cli/cli-dump.c (restore_command): Update.
2890 * breakpoint.c (update_watchpoint)
2891 (update_inserted_breakpoint_locations)
2892 (insert_breakpoint_locations, get_bpstat_thread): Update.
2893 * target.h (target_has_execution): Remove macro.
2894 (target_has_execution_current): Don't declare.
2895 (target_has_execution): Rename from target_has_execution_1. Add
2896 argument default.
2897
05374cfd
TT
28982020-09-28 Tom Tromey <tom@tromey.com>
2899
2900 * mi/mi-main.c (exec_reverse_continue)
2901 (mi_cmd_list_target_features): Update.
2902 * infrun.c (set_exec_direction_func): Update.
2903 * target.c (default_execution_direction): Update.
2904 * reverse.c (exec_reverse_once): Update.
2905 * target.h (target_can_execute_reverse): Now a function.
2906
9dccd06e
TT
29072020-09-28 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-regs.c (tui_get_register)
2910 (tui_data_window::show_registers): Update.
2911 * thread.c (scoped_restore_current_thread::restore)
2912 (scoped_restore_current_thread::scoped_restore_current_thread):
2913 Update.
2914 * regcache-dump.c (regcache_print): Update.
2915 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2916 Update.
2917 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2918 * mep-tdep.c (current_me_module, current_options): Update.
2919 * linux-thread-db.c (thread_db_load): Update.
2920 * infcmd.c (registers_info, info_vector_command)
2921 (info_float_command): Update.
2922 * ia64-tdep.c (ia64_frame_prev_register)
2923 (ia64_sigtramp_frame_prev_register): Update.
2924 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2925 * gcore.c (derive_stack_segment): Update.
2926 * frame.c (get_current_frame, has_stack_frames): Update.
2927 * findvar.c (language_defn::read_var_value): Update.
2928 * arm-tdep.c (arm_pc_is_thumb): Update.
2929 * target.c (target_has_registers): Rename from
2930 target_has_registers_1.
2931 * target.h (target_has_registers): Remove macro.
2932 (target_has_registers): Rename from target_has_registers_1.
2933
841de120
TT
29342020-09-28 Tom Tromey <tom@tromey.com>
2935
2936 * windows-tdep.c (tlb_make_value): Update.
2937 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2938 * thread.c (scoped_restore_current_thread::restore)
2939 (scoped_restore_current_thread::scoped_restore_current_thread)
2940 (thread_command): Update.
2941 * stack.c (backtrace_command_1, frame_apply_level_command)
2942 (frame_apply_all_command, frame_apply_command): Update.
2943 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2944 Update.
2945 * gcore.c (derive_stack_segment): Update.
2946 * frame.c (get_current_frame, has_stack_frames): Update.
2947 * auxv.c (info_auxv_command): Update.
2948 * ada-tasks.c (ada_build_task_list): Update.
2949 * target.c (target_has_stack): Rename from target_has_stack_1.
2950 * target.h (target_has_stack): Remove macro.
2951 (target_has_stack): Rename from target_has_stack_1.
2952
a739972c
TT
29532020-09-28 Tom Tromey <tom@tromey.com>
2954
2955 * target.c (target_has_memory): Rename from target_has_memory_1.
2956 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2957 * thread.c (scoped_restore_current_thread::restore)
2958 (scoped_restore_current_thread::scoped_restore_current_thread):
2959 Update.
2960 * frame.c (get_current_frame, has_stack_frames): Update.
2961 * target.h (target_has_memory): Remove macro.
2962 (target_has_memory): Rename from target_has_memory_1.
2963
5b8a4776
TT
29642020-09-28 Tom Tromey <tom@tromey.com>
2965
2966 * target.c (target_has_all_memory_1): Remove.
2967 * target.h (target_has_all_memory): Remove define.
2968 (target_has_all_memory_1): Don't declare.
2969
bd356ec6
SM
29702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * ser-base.c: Adjust comments formatting.
2973
2c72d5e5
TT
29742020-09-27 Tom Tromey <tom@tromey.com>
2975
2976 PR tui/25342:
2977 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2978
35a98237
TT
29792020-09-27 Tom Tromey <tom@tromey.com>
2980
2981 PR tui/25342:
2982 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2983
9e820dec
TT
29842020-09-27 Tom Tromey <tom@tromey.com>
2985
2986 * unittests/tui-selftests.c: Update.
2987 * tui/tui-winsource.h (struct tui_source_window_base)
2988 <extra_margin, show_line_number, refresh_pad>: New methods.
2989 <m_max_length, m_pad>: New members.
2990 (tui_copy_source_line): Update.
2991 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2992 first_col, line_width, ndigits parameters. Add length.
2993 (tui_source_window_base::show_source_line): Write to pad. Line
2994 number now 0-based.
2995 (tui_source_window_base::refresh_pad): New method.
2996 (tui_source_window_base::show_source_content): Write to pad. Call
2997 refresh_pad.
2998 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2999 not refill.
3000 (tui_source_window_base::update_exec_info): Call
3001 show_line_number.
3002 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3003 method.
3004 <m_digits>: New member.
3005 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3006 and m_max_length.
3007 (tui_source_window::show_line_number): New method.
3008 * tui/tui-io.h (tui_puts): Fix comment.
3009 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3010 m_max_length.
3011
c15c15c8
TT
30122020-09-27 Tom Tromey <tom@tromey.com>
3013
3014 * tui/tui-winsource.c
3015 (tui_source_window_base::set_is_exec_point_at): Don't call
3016 show_source_line.
3017
149830c1
TT
30182020-09-27 Tom Tromey <tom@tromey.com>
3019
3020 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3021 method.
3022 <erase>: Update.
3023 <cursor_x, cursor_y>: Remove.
3024 <m_inner_window>: New member.
3025 (tui_py_window::rerender): Create inner window.
3026 (tui_py_window::output): Write to inner window.
3027
8f9929bb
GR
30282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3029
3030 PR python/26586
3031 * cli/cli-script.c (execute_control_commands): don't set
3032 instream to nullptr here as this breaks the from_tty argument
3033 to gdb.execute in Python.
3034 (execute_user_command): set instream to nullptr here instead.
3035
956bdb59
SM
30362020-09-25 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * infrun.h (infrun_debug_printf): Fix formatting.
3039 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3040
3b93626b
SJ
30412020-09-25 Saagar Jha <saagar@saagarjha.com>
3042
3043 * compile/compile-object-load.h (struct munmap_list): Add
3044 explicitly-defined move constructor.
3045
b551a89f
TT
30462020-09-24 Tom Tromey <tromey@adacore.com>
3047
3048 PR tui/26638:
3049 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3050 method.
3051 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3052 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3053 (tui_prev_win): Rewrite.
3054
99bb393f
HD
30552020-09-23 Hannes Domani <ssbssa@yahoo.de>
3056
3057 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3058 in WOW64 processes as SIGINT.
3059 * nat/windows-nat.h: Make wow64_process a shared variable.
3060 * windows-nat.c: Remove static wow64_process variable.
3061
20a5fcbd
TT
30622020-09-23 Tom Tromey <tom@tromey.com>
3063
3064 PR symtab/25470:
3065 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3066 offset and bit size.
3067 * printcmd.c (print_scalar_formatted): Handle zero-length
3068 integer.
3069 (print_scalar_formatted): Use bit_size_differs_p.
3070 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3071 constant.
3072 (union type_specific): <int_stuff>: New member.
3073 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3074 methods.
3075 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3076 TYPE_SPECIFIC_FIELD.
3077 (recursive_dump_type, copy_type_recursive): Update.
3078 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3079 DW_AT_data_bit_offset.
3080
bac51ab7
TT
30812020-09-23 Tom Tromey <tom@tromey.com>
3082
3083 * utils.h (class gdb_argv): Add move operators.
3084 <append>: New methods.
3085 * compile/compile.c (build_argc_argv): Remove.
3086 (compile_args_argc): Remove.
3087 (compile_args_argv): Change type.
3088 (set_compile_args): Simplify.
3089 (append_args): Remove.
3090 (filter_args): Remove argcp parameter.
3091 (get_args): Return gdb_argv. Simplify.
3092 (compile_to_object): Update.
3093
92677124
TT
30942020-09-23 Tom Tromey <tom@tromey.com>
3095
3096 * compile/compile-object-run.c (do_module_cleanup)
3097 <~do_module_cleanup> :Remove.
3098 (do_module_cleanup): Update.
3099 * compile/compile-object-load.h (struct munmap_list): Add move
3100 assignment operator.
3101 <source_file>: Now a std::string.
3102 <munmap_list>: Rename. No longer a pointer.
3103 * compile/compile-object-load.c (struct setup_sections_data): Add
3104 constructor.
3105 <setup_one_section>: Declare.
3106 <munmap_list>: Move earlier.
3107 <m_bfd>: New member.
3108 <m_last_size, m_last_section_first, m_last_prot,
3109 m_last_max_alignment>: Rename, add initializers where needed.
3110 (setup_sections_data::setup_one_section): Rename from
3111 setup_sections. Update.
3112 (compile_object_load): Update. Don't use bfd_map_over_sections.
3113
e616f60a
TT
31142020-09-23 Tom Tromey <tom@tromey.com>
3115
3116 * compile/compile-object-run.c (struct do_module_cleanup): Add
3117 parameters to constructor. Update destructor.
3118 <source_file, scope, scope_data, out_value_type, out_value_addr,
3119 munmap_list_head, objfile_name_string>: Remove.
3120 <module>: New member.
3121 (do_module_cleanup): Update.
3122 (compile_object_run): Update.
3123
e947a848
TT
31242020-09-23 Tom Tromey <tom@tromey.com>
3125
3126 * compile/compile.c (eval_compile_command): Update.
3127 * compile/compile-object-run.h (compile_object_run): Take a
3128 compile_module_up.
3129 * compile/compile-object-run.c (compile_object_run): Take a
3130 compile_module_up.
3131 * compile/compile-object-load.h (struct compile_module): Add
3132 constructor, destructor.
3133 (compile_module_up): New typedef.
3134 (compile_object_load): Return compile_object_up.
3135 * compile/compile-object-load.c (compile_object_load): Return
3136 compile_module_up.
3137
0dbf6ee6
TT
31382020-09-23 Tom Tromey <tom@tromey.com>
3139
3140 * compile/compile-object-run.c (struct do_module_cleanup): Add
3141 constructor, destructor.
3142 <objfile_name_string>: Don't use struct hack.
3143 (do_module_cleanup): Use delete.
3144 (compile_object_run): Use new.
3145
ebe824f5
TT
31462020-09-23 Tom Tromey <tom@tromey.com>
3147
3148 * compile/compile-cplus-types.c
3149 (compile_cplus_convert_struct_or_union): Use std::vector.
3150 (compile_cplus_convert_func): Likewise.
3151 * compile/compile-c-types.c (convert_func): Use std::vector.
3152
5dd918d9
TT
31532020-09-21 Tom Tromey <tromey@adacore.com>
3154
3155 * sparc-tdep.c (sparc32_skip_prologue): Use
3156 skip_prologue_using_sal.
3157
5486c517
TT
31582020-09-19 Tom Tromey <tom@tromey.com>
3159
3160 * symfile.c (add_section_size_callback): Remove.
3161 (load_one_section): Rename from load_section_callback. Change
3162 parameters.
3163 (generic_load): Use foreach.
3164
8a6bb1d1
TT
31652020-09-19 Tom Tromey <tom@tromey.com>
3166
3167 * exec.c (add_to_section_table): Remove.
3168 (build_section_table): Use foreach.
3169
08f93a1a
TT
31702020-09-19 Tom Tromey <tom@tromey.com>
3171
3172 * elfread.c (elf_locate_sections): Change parameters.
3173 (elf_symfile_read): Use foreach.
3174
03cd72b8
TT
31752020-09-19 Tom Tromey <tom@tromey.com>
3176
3177 * cli/cli-dump.c (struct callback_data): Remove.
3178 (restore_one_section): Rename from restore_section_callback.
3179 Change parameters.
3180 (restore_binary_file): Change parameters.
3181 (restore_command): Use foreach.
3182
f4f2b85f
TT
31832020-09-19 Tom Tromey <tom@tromey.com>
3184
3185 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3186 (gcore_copy_callback): Likewise.
3187 (gcore_memory_sections): Use foreach.
3188
b35c1d1c
TT
31892020-09-19 Tom Tromey <tom@tromey.com>
3190
3191 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3192 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3193 parameters.
3194 (generic_elf_osabi_sniffer): Use foreach.
3195 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3196 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3197
5bb6e9dd
TT
31982020-09-19 Tom Tromey <tom@tromey.com>
3199
3200 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3201 (dwarf2_get_dwz_file): Use foreach.
3202 (dwarf2_locate_dwo_sections): Change parameters.
3203 (open_and_init_dwo_file): Use foreach.
3204 (dwarf2_locate_common_dwp_sections): Change parameters.
3205 (open_and_init_dwp_file): Use foreach.
3206
ad7277da
TT
32072020-09-19 Tom Tromey <tom@tromey.com>
3208
3209 * symfile.h: (find_lowest_section): Don't declare.
3210 * symfile.c (find_lowest_section): Now static. Change
3211 parameters.
3212 (struct place_section_arg): Remove.
3213 (place_section): Change parameters.
3214 (addr_info_make_relative): Use foreach.
3215 (symfile_dummy_outputs): Remove.
3216 (default_symfile_relocate): Use foreach.
3217
cb814f2e
TT
32182020-09-19 Tom Tromey <tom@tromey.com>
3219
3220 * objfiles.c (add_to_objfile_sections): Rename from
3221 add_to_objfile_sections_full.
3222 (add_to_objfile_sections): Remove.
3223 (build_objfile_section_table): Use foreach.
3224
3cabfd26
TT
32252020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * stap-probe.c (get_stap_base_address_1): Remove.
3228 (get_stap_base_address): Use foreach.
3229
1ce51eb5
TT
32302020-09-19 Tom Tromey <tom@tromey.com>
3231
3232 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3233 parameters.
3234 (gdb_bfd_close_or_warn): Use foreach.
3235
a190fabb
TT
32362020-09-19 Tom Tromey <tom@tromey.com>
3237
3238 * corelow.c (add_to_thread_list): Change parameters.
3239 (core_target_open): Use foreach.
3240
cafb0d81
TT
32412020-09-19 Tom Tromey <tom@tromey.com>
3242
3243 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3244 existing function.
3245
c8d5abea
AB
32462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3249 for arrays.
3250
6d816919
AB
32512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * eval.c: Remove 'f-lang.h' include.
3254 (value_f90_subarray): Moved to f-lang.c.
3255 (eval_call): Renamed to...
3256 (evaluate_subexp_do_call): ...this, is no longer static, header
3257 comment moved into header file.
3258 (evaluate_funcall): Update call to eval_call.
3259 (skip_undetermined_arglist): Moved to f-lang.c.
3260 (fortran_value_subarray): Likewise.
3261 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3262 moved to evaluate_subexp_f.
3263 (calc_f77_array_dims): Moved to f-lang.c
3264 * expprint.c (print_subexp_funcall): New function.
3265 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3266 moved to print_subexp_f, OP_FUNCALL uses new function.
3267 (dump_subexp_body_funcall): New function.
3268 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3269 moved to dump_subexp_f, OP_FUNCALL uses new function.
3270 * expression.h (evaluate_subexp_do_call): Declare.
3271 * f-lang.c (value_f90_subarray): Moved from eval.c.
3272 (skip_undetermined_arglist): Likewise.
3273 (calc_f77_array_dims): Likewise.
3274 (fortran_value_subarray): Likewise.
3275 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3276 (operator_length_f): Likewise.
3277 (print_subexp_f): Likewise.
3278 (dump_subexp_body_f): Likewise.
3279 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3280 declaration of this operation to here.
3281 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3282 support moved to operator_length_f.
3283 * parser-defs.h (dump_subexp_body_funcall): Declare.
3284 (print_subexp_funcall): Declare.
3285 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3286 fortran-operator.def.
3287
8c37706a
AB
32882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * eval.c (fortran_value_subarray): New function, content is taken
3291 from...
3292 (evaluate_subexp_standard): ...here, in two places. Now arrays
3293 and strings both call the new function.
3294 (calc_f77_array_dims): Add header comment, handle strings.
3295
14f9473c
VC
32962020-09-18 Victor Collod <vcollod@nvidia.com>
3297
3298 PR gdb/26635
3299 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3300 (i386_analyze_prologue): Call i386_skip_endbr.
3301
b60cea74
TT
33022020-09-18 Tom Tromey <tromey@adacore.com>
3303
3304 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3305 (windows_nat_target::wait): Update.
3306 * target/wait.h (enum target_wait_flag): New. Use
3307 DEF_ENUM_FLAGS_TYPE.
3308 * target/target.h (target_wait): Change type of options.
3309 * target.h (target_options_to_string, default_target_wait):
3310 Update.
3311 (struct target_ops) <wait>: Change type of options.
3312 * target.c (target_wait, default_target_wait, do_option): Change
3313 type of "options".
3314 (target_options_to_string): Likewise.
3315 * target-delegates.c: Rebuild.
3316 * target-debug.h (target_debug_print_target_wait_flags): Rename
3317 from target_debug_print_options.
3318 * sol-thread.c (class sol_thread_target) <wait>: Update.
3319 (sol_thread_target::wait): Update.
3320 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3321 (rs6000_nat_target::wait): Update.
3322 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3323 Update.
3324 (remote_target::wait_ns, remote_target::wait_as): Change type of
3325 "options".
3326 (remote_target::wait): Update.
3327 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3328 (gdbsim_target::wait): Update.
3329 * record-full.c (class record_full_base_target) <wait>: Update.
3330 (record_full_wait_1): Change type of "options".
3331 (record_full_base_target::wait): Update.
3332 * record-btrace.c (class record_btrace_target) <wait>: Update.
3333 (record_btrace_target::wait): Update.
3334 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3335 Update.
3336 (ravenscar_thread_target::wait): Update.
3337 * procfs.c (class procfs_target) <wait>: Update.
3338 (procfs_target::wait): Update.
3339 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3340 * obsd-nat.c (obsd_nat_target::wait): Update.
3341 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3342 (nto_procfs_target::wait): Update.
3343 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3344 * nbsd-nat.c (nbsd_wait): Change type of "options".
3345 (nbsd_nat_target::wait): Update.
3346 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3347 (thread_db_target::wait): Update.
3348 * linux-nat.h (class linux_nat_target) <wait>: Update.
3349 * linux-nat.c (linux_nat_target::wait): Update.
3350 (linux_nat_wait_1): Update.
3351 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3352 "options".
3353 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3354 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3355 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3356 (go32_nat_target::wait): Update.
3357 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3358 * gnu-nat.c (gnu_nat_target::wait): Update.
3359 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3360 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3361 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3362 * darwin-nat.c (darwin_nat_target::wait): Update.
3363 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3364 (bsd_uthread_target::wait): Update.
3365 * aix-thread.c (class aix_thread_target) <wait>: Update.
3366 (aix_thread_target::wait): Update.
3367
0295dde6
AB
33682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * compile/compile-object-run.c (create_copied_type_recursive): New
3371 function.
3372 (compile_object_run): Use new function.
3373
d3483b43
JT
33742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3375
3376 * NEWS: Mention x86_64 Cygwin core file support.
3377
e7d612ad
JT
33782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3379
3380 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3381 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3382
aff9d387
JT
33832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3384
62a5151b
JT
3385 * windows-tdep.h: Add prototypes.
3386 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3387 (i386_windows_core_pid_to_str): Move and rename ...
3388 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3389 (windows_core_pid_to_str): ... and here.
3390 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3391
33922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3393 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3394 (amd64_windows_init_abi_common): ... and register.
3395
7d155da3
JT
33962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3397
3398 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3399 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3400
e8ef12b9
PA
34012020-09-18 Pedro Alves <pedro@palves.net>
3402
3403 PR gdb/26631
3404 * thread.c (thread_find_command): Switch inferior before calling
3405 target methods.
3406
c1e1314d
TT
34072020-09-17 Tom Tromey <tromey@adacore.com>
3408
3409 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3410 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3411 (tdesc_arch_data_up): New typedef.
3412 (tdesc_use_registers, tdesc_data_alloc): Update.
3413 (tdesc_data_cleanup): Don't declare.
3414 * target-descriptions.c (tdesc_data_alloc): Return a
3415 tdesc_arch_data_up.
3416 (tdesc_arch_data_deleter::operator()): Rename from
3417 tdesc_data_cleanup. Change argument type.
3418 (tdesc_use_registers): Change early_data to an rvalue reference.
3419 (tdesc_use_registers): Don't use delete.
3420 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3421 * s390-tdep.c (s390_gdbarch_init): Update.
3422 * rx-tdep.c (rx_gdbarch_init): Update.
3423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3424 * riscv-tdep.c (riscv_gdbarch_init): Update.
3425 * or1k-tdep.c (or1k_gdbarch_init): Update.
3426 * nios2-tdep.c (nios2_gdbarch_init): Update.
3427 * nds32-tdep.c (nds32_gdbarch_init): Update.
3428 * mips-tdep.c (mips_gdbarch_init): Update.
3429 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3430 * m68k-tdep.c (m68k_gdbarch_init): Update.
3431 * i386-tdep.c (i386_gdbarch_init): Update.
3432 * arm-tdep.c (arm_gdbarch_init): Update.
3433 * arc-tdep.c (arc_tdesc_init): Update.
3434 (arc_gdbarch_init): Update.
3435 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3436
0363df3d
HD
34372020-09-17 Hannes Domani <ssbssa@yahoo.de>
3438
3439 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3440 for WOW64 processes.
3441
280a9412
TT
34422020-09-17 Tom Tromey <tom@tromey.com>
3443
3444 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3445
6108fd18
TT
34462020-09-17 Tom Tromey <tom@tromey.com>
3447
3448 * value.c (preserve_values): Update.
3449 * python/py-type.c (save_objfile_types): Update.
3450 * guile/scm-type.c (save_objfile_types): Update.
3451 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3452 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3453 * compile/compile-object-run.c (compile_object_run): Update.
3454
fa9b1164
TT
34552020-09-17 Tom Tromey <tom@tromey.com>
3456
3457 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3458 Remove.
3459 <m_table>: Now htab_up.
3460 * typeprint.c (typedef_hash_table::recursively_update)
3461 (typedef_hash_table::add_template_parameters)
3462 (typedef_hash_table::typedef_hash_table): Update.
3463 (typedef_hash_table::~typedef_hash_table): Remove.
3464 (typedef_hash_table::typedef_hash_table)
3465 (typedef_hash_table::find_global_typedef)
3466 (typedef_hash_table::find_typedef): Update.
3467
eb53f105
TT
34682020-09-17 Tom Tromey <tom@tromey.com>
3469
3470 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3471
7a8a5d47
TT
34722020-09-17 Tom Tromey <tom@tromey.com>
3473
3474 * linespec.c (class decode_compound_collector)
3475 <~decode_compound_collector>: Remove.
3476 <m_unique_syms>: Now htab_up.
3477 (decode_compound_collector::operator ()): Update.
3478 (class symtab_collector) <~symtab_collector>: Remove.
3479 <m_symtab_table>: Now htab_up.
3480 (symtab_collector::operator ()): Update.
3481
99032cfc
TT
34822020-09-17 Tom Tromey <tom@tromey.com>
3483
3484 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3485 (filename_seen_cache::clear): Update.
3486 (~filename_seen_cache): Remove.
3487 (filename_seen_cache::seen): Update.
3488 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3489 htab_up.
3490 <~filename_seen_cache>: Remove.
3491 <traverse>: Update.
3492
32580f6d
TT
34932020-09-17 Tom Tromey <tom@tromey.com>
3494
3495 * completer.c (completion_tracker::discard_completions)
3496 (completion_tracker::~completion_tracker)
3497 (completion_tracker::maybe_add_completion)
3498 (completion_tracker::remove_completion)
3499 (completion_tracker::recompute_lowest_common_denominator)
3500 (completion_tracker::build_completion_result): Update.
3501 * completer.h (class completion_tracker) <have_completions>:
3502 Update.
3503 <m_entries_hash>: Now htab_up.
3504
c1fb9836
TT
35052020-09-17 Tom Tromey <tom@tromey.com>
3506
3507 * breakpoint.c (ambiguous_names_p): Use htab_up.
3508
88f07206
TT
35092020-09-17 Tom Tromey <tom@tromey.com>
3510
3511 * auto-load.c (struct auto_load_pspace_info)
3512 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3513 <loaded_script_files, loaded_script_texts>: Change type to
3514 htab_up.
3515 (~auto_load_pspace_info) Remove.
3516 (init_loaded_scripts_info, maybe_add_script_file)
3517 (maybe_add_script_text, auto_load_info_scripts): Update.
3518
9519b2ee
TT
35192020-09-17 Tom Tromey <tromey@adacore.com>
3520
3521 * c-exp.y (name_obstack): Now static.
3522
d2cd4113
CC
35232020-09-17 Chungyi Chi <demonic@csie.io>
3524
3525 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3526
b650a282
SM
35272020-09-16 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3530 (add_solib_catchpoint): Likewise.
3531 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3532 to bool.
3533 (add_solib_catchpoint): Change int parameter/variable to bool.
3534 (catch_load_or_unload): Likewise.
3535 (init_catchpoint): Likewise.
3536 (create_fork_vfork_event_catchpoint): Likewise.
3537 (catch_fork_command_1): Likewise.
3538 (catch_exec_command_1): Likewise.
3539
4d0bcfcf
SM
35402020-09-16 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3543 Change instance_flags to m_instance_flags.
3544
fe830662
TT
35452020-09-16 Tom Tromey <tromey@adacore.com>
3546
3547 PR gdb/26598:
3548 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3549
fe5ddfc3
JB
35502020-09-16 John Baldwin <jhb@FreeBSD.org>
3551
3552 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3553 PL_FLAG_EXEC.
3554 (fbsd_nat_target::insert_exec_catchpoint)
3555 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3556 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3557 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3558
e911c666
JB
35592020-09-16 John Baldwin <jhb@FreeBSD.org>
3560
3561 * configure.ac: Remove check for kinfo_getvmmap().
3562 * configure, config.in: Regenerate.
3563 * fbsd-nat.c (fbsd_read_mapping): Remove
3564 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3565 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3566 kinfo_get_vmmap() are always present.
3567
1f17d372
JB
35682020-09-16 John Baldwin <jhb@FreeBSD.org>
3569
3570 * fbsd-nat.c: Always include support for
3571 TARGET_OBJECT_SIGNAL_INFO.
3572
bcb1da7f
JB
35732020-09-16 John Baldwin <jhb@FreeBSD.org>
3574
3575 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3576 sysctl and remove procfs fallback.
3577
5515f729
JB
35782020-09-16 John Baldwin <jhb@FreeBSD.org>
3579
3580 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3581 * fbsd-nat.h: Likewise.
3582
da1df1db
TBA
35832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584
3585 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3586 argument.
3587
0e25e767
AB
35882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3589
3590 * ada-lang.c (ada_language_data): Delete.
3591 (ada_language): Remove references to ada_language_data.
3592 * c-lang.c (c_language_data): Delete.
3593 (c_language): Remove references to c_language_data.
3594 (cplus_language_data): Delete.
3595 (cplus_language): Remove references to cplus_language_data.
3596 (asm_language_data): Delete.
3597 (asm_language): Remove references to asm_language_data.
3598 (minimal_language_data): Delete.
3599 (minimal_language): Remove references to minimal_language_data.
3600 * d-lang.c (d_language_data): Delete.
3601 (d_language): Remove references to d_language_data.
3602 * f-lang.c (f_language_data): Delete.
3603 (f_language): Remove references to f_language_data.
3604 * go-lang.c (go_language_data): Delete.
3605 (go_language): Remove references to go_language_data.
3606 * language.c (unknown_language_data): Delete.
3607 (unknown_language): Remove references to unknown_language_data.
3608 (auto_language_data): Delete.
3609 (auto_language): Remove references to auto_language_data.
3610 * language.h (language_data): Delete struct.
3611 (language_defn): No longer inherit from language_data.
3612 * m2-lang.c (m2_language_data): Delete.
3613 (m2_language): Remove references to m2_language_data.
3614 * objc-lang.c (objc_language_data): Delete.
3615 (objc_language): Remove references to objc_language_data.
3616 * opencl-lang.c (opencl_language_data): Delete.
3617 (opencl_language): Remove references to opencl_language_data.
3618 * p-lang.c (pascal_language_data): Delete.
3619 (pascal_language): Remove references to pascal_language_data.
3620 * rust-lang.c (rust_language_data): Delete.
3621 (rust_language): Remove references to rust_language_data.
3622
b7c6e27d
AB
36232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3626 initializer.
3627 (ada_language::opcode_print_table): New member function.
3628 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3629 (c_language::opcode_print_table): New member function.
3630 (cplus_language_data): Remove la_op_print_tab initializer.
3631 (cplus_language::opcode_print_table): New member function.
3632 (asm_language_data): Remove la_op_print_tab initializer.
3633 (asm_language::opcode_print_table): New member function.
3634 (minimal_language_data): Remove la_op_print_tab initializer.
3635 (minimal_language::opcode_print_table): New member function.
3636 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3637 (d_language::opcode_print_table): New member function.
3638 * expprint.c (print_subexp_standard): Update call to
3639 opcode_print_table.
3640 (op_string): Likewise.
3641 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3642 (f_language::opcode_print_table): New member function.
3643 * go-lang.c (go_language_data): Remove la_op_print_tab
3644 initializer.
3645 (go_language::opcode_print_table): New member function.
3646 * language.c (unknown_language_data): Remove la_op_print_tab
3647 initializer.
3648 (unknown_language::opcode_print_table): New member function.
3649 (auto_language_data): Remove la_op_print_tab initializer.
3650 (auto_language::opcode_print_table): New member function.
3651 * language.h (language_data): Remove la_op_print_tab field.
3652 (language_defn::opcode_print_table): Declare new member function.
3653 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3654 initializer.
3655 (m2_language::opcode_print_table): New member function.
3656 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3657 initializer.
3658 (objc_language::opcode_print_table): New member function.
3659 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3660 initializer.
3661 (opencl_language::opcode_print_table): New member function.
3662 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3663 initializer.
3664 (pascal_language::opcode_print_table): New member function.
3665 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3666 initializer.
3667 (rust_language::opcode_print_table): New member function.
3668
5aba6ebe
AB
36692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3672 (ada_language::expression_ops): New member function.
3673 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3674 (c_language::expression_ops): New member function.
3675 (cplus_language_data): Remove la_exp_desc initializer.
3676 (cplus_language::expression_ops): New member function.
3677 (asm_language_data): Remove la_exp_desc initializer.
3678 (asm_language::expression_ops): New member function.
3679 (minimal_language_data): Remove la_exp_desc initializer.
3680 (minimal_language::expression_ops): New member function.
3681 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3682 (d_language::expression_ops): New member function.
3683 * eval.c (evaluate_subexp): Update call to expression_ops.
3684 * expprint.c (print_subexp): Likewise.
3685 (op_name): Likewise.
3686 (dump_subexp_body): Likewise.
3687 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3688 (f_language::expression_ops): New member function.
3689 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3690 (go_language::expression_ops): New member function.
3691 * language.c (language_defn::expression_ops): New function.
3692 (unknown_language_data): Remove la_exp_desc initializer.
3693 (auto_language_data): Likewise.
3694 * language.h (language_data): Remove la_exp_desc field.
3695 (language_defn::expression_ops): Declare new member function.
3696 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3697 (m2_language::expression_ops): New member function.
3698 * objc-lang.c (objc_language_data): Remove la_exp_desc
3699 initializer.
3700 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3701 initializer.
3702 (opencl_language::expression_ops): New member function.
3703 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3704 * parse.c (operator_length): Update call to expression_ops.
3705 (exp_iterate): Likewise.
3706 * rust-lang.c (rust_language_data): Remove la_exp_desc
3707 initializer.
3708 (ruse_language::expression_ops): New member function.
3709
b63a3f3f
AB
37102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3713 initializer.
3714 (ada_language::varobj_ops): New member function.
3715 * c-lang.c (c_language_data): Remove la_varobj_ops
3716 initializer.
3717 (cplus_language_data): Likewise.
3718 (cplus_language::varobj_ops): New member function.
3719 (asm_language_data): Remove la_varobj_ops initializer.
3720 (minimal_language_data): Likewise.
3721 * d-lang.c (d_language_data): Likewise.
3722 * f-lang.c (f_language_data): Likewise.
3723 * go-lang.c (go_language_data): Likewise.
3724 * language.c (language_defn::varobj_ops): New function.
3725 (unknown_language_data): Remove la_varobj_ops
3726 initializer.
3727 (auto_language_data): Likewise.
3728 * language.h (language_data): Remove la_varobj_ops field.
3729 (language_defn::varobj_ops): Declare new member function.
3730 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3731 * objc-lang.c (objc_language_data): Likewise.
3732 * opencl-lang.c (opencl_language_data): Likewise.
3733 * p-lang.c (pascal_language_data): Likewise.
3734 * rust-lang.c (rust_language_data): Likewise.
3735 * varobj.c (varobj_create): Update call to varobj_ops.
3736 * varobj.h (default_varobj_ops): Delete define.
3737
1ac14a04
AB
37382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3741 initializer.
3742 * c-lang.c (c_language_data): Likewise.
3743 (c_language::macro_expansion): New member function.
3744 (cplus_language_data): Likewise.
3745 (cplus_language::macro_expansion): New member function.
3746 (asm_language_data): Likewise.
3747 (asm_language::macro_expansion): New member function.
3748 (minimal_language_data): Likewise.
3749 (minimal_language::macro_expansion): New member function.
3750 * d-lang.c (d_language_data): Remove la_macro_expansion
3751 initializer.
3752 * f-lang.c (f_language_data): Likewise.
3753 * go-lang.c (go_language_data): Likewise.
3754 * language.c (unknown_language_data): Likewise.
3755 (auto_language_data): Likewise.
3756 * language.h (language_data): Remove la_macro_expansion field.
3757 (language_defn::macro_expansion): New member function.
3758 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3759 initializer.
3760 * objc-lang.c (objc_language_data): Likewise.
3761 (objc_language::macro_expansion): New member function.
3762 * opencl-lang.c (opencl_language_data): Likewise.
3763 (opencl_language::macro_expansion): New member function.
3764 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3765 initializer.
3766 * rust-lang.c (rust_language_data): Likewise.
3767 * symtab.c (default_collect_symbol_completion_matches_break_on):
3768 Update call to macro_expansion.
3769
3a3440fb
AB
37702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * ada-lang.c (ada_language_data): Remove la_array_ordering
3773 initializer.
3774 * c-lang.c (c_language_data): Likewise.
3775 (cplus_language_data): Likewise.
3776 (asm_language_data): Likewise.
3777 (minimal_language_data): Likewise.
3778 * d-lang.c (d_language_data): Likewise.
3779 * dwarf2/read.c (read_array_order): Update for call to
3780 array_ordering.
3781 * f-lang.c (f_language_data): Remove la_array_ordering
3782 initializer.
3783 (f_language::array_ordering): New member function.
3784 * go-lang.c (go_language_data): Remove la_array_ordering
3785 initializer.
3786 * language.c (unknown_language_data): Likewise.
3787 (auto_language_data): Likewise.
3788 * language.h (language_data): Delete la_array_ordering field.
3789 (language_defn::array_ordering): New member function.
3790 * m2-lang.c (m2_language_data): Remove la_array_ordering
3791 initializer.
3792 * objc-lang.c (objc_language_data): Likewise.
3793 * opencl-lang.c (opencl_language_data): Likewise.
3794 * p-lang.c (pascal_language_data): Likewise.
3795 * rust-lang.c (rust_language_data): Likewise.
3796
0d201fa4
AB
37972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3800 initializer.
3801 * c-lang.c (c_language_data): Likewise.
3802 (cplus_language_data): Likewise.
3803 (asm_language_data): Likewise.
3804 (minimal_language_data): Likewise.
3805 * d-lang.c (d_language_data): Likewise.
3806 * f-lang.c (f_language_data): Likewise.
3807 (f_language::case_sensitivity): New member function.
3808 * go-lang.c (go_language_data): Remove la_case_sensitivity
3809 initializer.
3810 * language.c (enum case_mode): Moved here from language.h.
3811 (case_mode): Make static.
3812 (show_case_command): Update for case_sensitivity being a method.
3813 (set_case_command): Likewise.
3814 (set_range_case): Likewise.
3815 (unknown_language_data): Remove la_case_sensitivity initializer.
3816 (auto_language_data): Likewise.
3817 * language.h (case_mode): Delete, move enum declaration to
3818 language.c.
3819 (language_data): Delete la_case_sensitivity field.
3820 (language_defn::case_sensitivity): New member function.
3821 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3822 initializer.
3823 * objc-lang.c (objc_language_data): Likewise.
3824 * opencl-lang.c (opencl_language_data): Likewise.
3825 * p-lang.c (pascal_language_data): Likewise.
3826 * rust-lang.c (rust_language_data): Likewise.
3827
efdf6a73
AB
38282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * ada-lang.c (ada_language_data): Remove la_range_check
3831 initializer.
3832 * c-lang.c (c_language_data): Likewise.
3833 (cplus_language_data): Likewise.
3834 (asm_language_data): Likewise.
3835 (minimal_language_data): Likewise.
3836 * d-lang.c (d_language_data): Likewise.
3837 * f-lang.c (f_language_data): Likewise.
3838 (f_language::range_checking_on_by_default): New member function.
3839 * go-lang.c (go_language_data): Remove la_range_check initializer.
3840 * language.c (enum range_mode): Moved here from language.h.
3841 (range_mode): Made static.
3842 (show_range_command): Update to use
3843 range_checking_on_by_default.
3844 (set_range_command): Likewise.
3845 (set_range_case): Likewise.
3846 (unknown_language_data): Remove la_range_check initializer.
3847 (auto_language_data): Likewise.
3848 * language.h (range_mode): Delete. Enum definition moved to
3849 language.c.
3850 (language_data): Remove la_range_check field.
3851 (language_defn::range_checking_on_by_default): New member
3852 function.
3853 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3854 (m2_language::range_checking_on_by_default): New member function.
3855 * objc-lang.c (objc_language_data): Remove la_range_check
3856 initializer.
3857 * opencl-lang.c (opencl_language_data): Likewise.
3858 * p-lang.c (pascal_language_data): Likewise.
3859 (pascal_language::range_checking_on_by_default): New member
3860 function.
3861 * rust-lang.c (rust_language_data): Remove la_range_check
3862 initializer.
3863 (rust_language::range_checking_on_by_default): New member
3864 function.
3865
bf92aec5
AB
38662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * dwarf2/read.c (dwarf2_physname): Remove special case for
3869 language_go.
3870 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3871 member function.
3872
d3355e4d
AB
38732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * ada-lang.c (ada_language_data): Remove
3876 la_store_sym_names_in_linkage_form_p initializer.
3877 (ada_language::store_sym_names_in_linkage_form_p): New member
3878 function.
3879 * c-lang.c (c_language_data): Remove
3880 la_store_sym_names_in_linkage_form_p initializer.
3881 (c_language::store_sym_names_in_linkage_form_p): New member
3882 function.
3883 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3884 initializer.
3885 (asm_language_data): Likewise.
3886 (asm_language::store_sym_names_in_linkage_form_p): New member
3887 function.
3888 (minimal_language_data): Remove
3889 la_store_sym_names_in_linkage_form_p initializer.
3890 (minimal_language::store_sym_names_in_linkage_form_p): New member
3891 function.
3892 * d-lang.c (d_language_data): Remove
3893 la_store_sym_names_in_linkage_form_p initializer.
3894 * dwarf2/read.c (dwarf2_physname): Update call to
3895 store_sym_names_in_linkage_form_p.
3896 * f-lang.c (f_language_data): Remove
3897 la_store_sym_names_in_linkage_form_p initializer.
3898 * go-lang.c (go_language_data): Remove
3899 la_store_sym_names_in_linkage_form_p initializer.
3900 * language.c (unknown_language_data): Remove
3901 la_store_sym_names_in_linkage_form_p initializer.
3902 (unknown_language::store_sym_names_in_linkage_form_p): New member
3903 function.
3904 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3905 initializer.
3906 (auto_language::store_sym_names_in_linkage_form_p): New member
3907 function.
3908 * language.h (language_data): Remove
3909 la_store_sym_names_in_linkage_form_p member variable.
3910 (language_defn::store_sym_names_in_linkage_form_p): New member
3911 function.
3912 * m2-lang.c (m2_language_data): Remove
3913 la_store_sym_names_in_linkage_form_p initializer.
3914 * objc-lang.c (objc_language_data): Likewise.
3915 * opencl-lang.c (opencl_language_data): Likewise.
3916 * p-lang.c (pascal_language_data): Likewise.
3917 * rust-lang.c (rust_language_data): Likewise.
3918
22c12a6c
AB
39192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 * ada-lang.c (ada_language_data): Remove string_lower_bound
3922 initializer.
3923 * c-lang.c (c_language_data): Likewise.
3924 (cplus_language_data): Likewise.
3925 (asm_language_data): Likewise.
3926 (minimal_language_data): Likewise.
3927 * d-lang.c (d_language_data): Likewise.
3928 * f-lang.c (f_language_data): Likewise.
3929 * go-lang.c (go_language_data): Likewise.
3930 * language.c (unknown_language_data): Likewise.
3931 (auto_language_data): Likewise.
3932 * language.h (language_data): Remove string_lower_bound field.
3933 (language_defn::string_lower_bound): New member function.
3934 * m2-lang.c (m2_language_data): Remove string_lower_bound
3935 initializer.
3936 (m2_language::string_lower_bound): New member function.
3937 * objc-lang.c (objc_language_data): Remove string_lower_bound
3938 initializer.
3939 * opencl-lang.c (opencl_language_data): Likewise.
3940 * p-lang.c (pascal_language_data): Likewise.
3941 * rust-lang.c (rust_language_data): Likewise.
3942 * valops.c (value_cstring): Update call to string_lower_bound.
3943 (value_string): Likewise.
3944 * value.c (allocate_repeated_value): Likewise.
3945
1c236ddd
AB
39462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3947
3948 * valops.c (value_repeat): Fix incorrect argument name in comment.
3949
67bd3fd5
AB
39502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * ada-lang.c (ada_language_data): Remove c_style_arrays
3953 initializer.
3954 (ada_language::c_style_arrays_p): New member fuction.
3955 * c-lang.c (c_language_data): Remove c_style_arrays
3956 initializer.
3957 (cplus_language_data): Likewise.
3958 (asm_language_data): Likewise.
3959 (minimal_language_data): Likewise.
3960 * d-lang.c (d_language_data): Likewise.
3961 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3962 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3963 (f_language::c_style_arrays_p): New member function.
3964 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3965 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3966 * language.c (unknown_language_data): Remove c_style_arrays
3967 initializer.
3968 (auto_language_data): Likewise.
3969 * language.h (language_data): Remove c_style_arrays field.
3970 (language_defn::c_style_arrays_p): New member function.
3971 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3972 (m2_language::c_style_arrays_p): New member function.
3973 * objc-lang.c (objc_language_data): Remove c_style_arrays
3974 initializer.
3975 * opencl-lang.c (opencl_language_data): Likewise.
3976 * p-lang.c (pascal_language_data): Likewise.
3977 * rust-lang.c (rust_language_data): Likewise.
3978 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3979 and update local variable to a bool.
3980 * valops.c (value_cast): Update call to c_style_arrays_p.
3981 (value_array): Likewise.
3982 * value.c (coerce_array): Likewise.
3983
85967615
AB
39842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (ada_language_data): Remove la_language initializer.
3987 * c-lang.c (c_language_data): Likewise.
3988 (cplus_language_data): Likewise.
3989 (asm_language_data): Likewise.
3990 (minimal_language_data): Likewise.
3991 * d-lang.c (d_language_data): Likewise.
3992 * f-lang.c (f_language_data): Likewise.
3993 * go-lang.c (go_language_data): Likewise.
3994 * language.c (unknown_language_data): Likewise.
3995 (auto_language_data): Likewise.
3996 * language.h (language_data): Remove la_language field.
3997 (language_defn::language_defn): Initialise la_language field.
3998 (language_defn::la_language): New member variable.
3999 * m2-lang.c (m2_language_data): Remove la_language field.
4000 * objc-lang.c (objc_language_data): Likewise.
4001 * opencl-lang.c (opencl_language_data): Likewise.
4002 * p-lang.c (pascal_language_data): Likewise.
4003 * rust-lang.c (rust_language_data): Likewise.
4004
e171d6f1
AB
40052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * ada-lang.c (ada_extensions): Delete, moved into
4008 ada_language::filename_extensions.
4009 (ada_language_data): Remove la_filename_extensions initializer.
4010 (ada_language::filename_extensions): New member function.
4011 * c-lang.c (c_extensions): Delete, moved into
4012 c_language::filename_extensions.
4013 (c_language_data): Remove la_filename_extensions initializer.
4014 (c_language::filename_extensions): New member function.
4015 (cplus_extensions): Delete, moved into
4016 cplus_language::filename_extensions.
4017 (cplus_language_data): Remove la_filename_extensions initializer.
4018 (cplus_language::filename_extensions): New member function.
4019 (asm_extensions): Delete, moved into
4020 asm_language::filename_extensions.
4021 (asm_language_data): Remove la_filename_extensions initializer.
4022 (asm_language::filename_extensions): New member function.
4023 (minimal_language_data): Remove la_filename_extensions
4024 initializer.
4025 * d-lang.c (d_extensions): Delete, moved into
4026 d_language::filename_extensions.
4027 (d_language_data): Remove la_filename_extensions initializer.
4028 (d_language::filename_extensions): New member function.
4029 * f-lang.c (f_extensions): Delete, moved into
4030 f_language::filename_extensions.
4031 (f_language_data): Remove la_filename_extensions initializer.
4032 (f_language::filename_extensions): New member function.
4033 * go-lang.c (go_language_data): Remove la_filename_extensions
4034 initializer.
4035 * language.c (add_set_language_command): Update now that
4036 filename_extensions returns a vector.
4037 (unknown_language_data): Remove la_filename_extensions
4038 initializer.
4039 (auto_language_data): Likewise.
4040 * language.h (language_data): Remove la_filename_extensions field.
4041 (language_defn::filename_extensions): New member function.
4042 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4043 initializer.
4044 * objc-lang.c (objc_extensions): Delete, moved into
4045 objc_language::filename_extensions.
4046 (objc_language_data): Remove la_filename_extensions initializer.
4047 (objc_language::filename_extensions): New member function.
4048 * opencl-lang.c (opencl_language_data): Remove
4049 la_filename_extensions initializer.
4050 * p-lang.c (pascal_extensions): Delete, moved into
4051 pascal_language::filename_extensions.
4052 (pascal_language_data): Remove la_filename_extensions initializer.
4053 (pascal_language::filename_extensions): New member function.
4054 * rust-lang.c (rust_extensions): Delete, moved into
4055 rust_language::filename_extensions.
4056 (rust_language_data): Remove la_filename_extensions initializer.
4057 (rust_language::filename_extensions): New member function.
4058 * symfile.c (add_filename_language): Add new assert.
4059
6f7664a9
AB
40602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * ada-lang.c (ada_language_data): Remove la_name and
4063 la_natural_name initializers.
4064 (ada_language::name): New member function.
4065 (ada_language::natural_name): New member function.
4066 * c-lang.c (c_language_data): Remove la_name and
4067 la_natural_name initializers.
4068 (c_language::name): New member function.
4069 (c_language::natural_name): New member function.
4070 (cplus_language_data): Remove la_name and
4071 la_natural_name initializers.
4072 (cplus_language::name): New member function.
4073 (cplus_language::natural_name): New member function.
4074 (asm_language_data): Remove la_name and
4075 la_natural_name initializers.
4076 (asm_language::name): New member function.
4077 (asm_language::natural_name): New member function.
4078 (minimal_language_data): Remove la_name and
4079 la_natural_name initializers.
4080 (minimal_language::name): New member function.
4081 (minimal_language::natural_name): New member function.
4082 * compile/compile.c (compile_to_object): Update call to
4083 lanugage_defn::name.
4084 * d-lang.c (d_language_data): Remove la_name and
4085 la_natural_name initializers.
4086 (d_language::name): New member function.
4087 (d_language::natural_name): New member function.
4088 * expprint.c (print_subexp_standard): Update call to
4089 language_defn::name.
4090 (dump_raw_expression): Likewise
4091 (dump_prefix_expression): Likewise.
4092 * f-lang.c (f_language_data): Remove la_name and
4093 la_natural_name initializers.
4094 (f_language::name): New member function.
4095 (f_language::natural_name): New member function.
4096 * go-lang.c (go_language_data): Remove la_name and
4097 la_natural_name initializers.
4098 (go_language::name): New member function.
4099 (go_language::natural_name): New member function.
4100 * language.c (show_language_command): Update call to
4101 language_defn::name.
4102 (set_language_command): Likewise.
4103 (language_enum): Likewise.
4104 (language_str): Likewise.
4105 (add_set_language_command): Likewise, use
4106 language_defn::natural_name in the doc string.
4107 (unknown_language_data): Remove la_name and
4108 la_natural_name initializers.
4109 (unknown_language::name): New member function.
4110 (unknown_language::natural_name): New member function.
4111 (auto_language_data): Remove la_name and
4112 la_natural_name initializers.
4113 (auto_language::name): New member function.
4114 (auto_language::natural_name): New member function.
4115 (language_lookup_primitive_type_as_symbol): Update call to
4116 language_defn::name.
4117 * language.h (language_data): Remove la_name and la_natural_name
4118 member variables.
4119 (language_defn::name): New member function.
4120 (language_defn::natural_name): New member function.
4121 * m2-lang.c (m2_language_data): Remove la_name and
4122 la_natural_name initializers.
4123 (m2_language::name): New member function.
4124 (m2_language::natural_name): New member function.
4125 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4126 language_defn::natural_name.
4127 * objc-lang.c (objc_language_data): Remove la_name and
4128 la_natural_name initializers.
4129 (objc_language::name): New member function.
4130 (objc_language::natural_name): New member function.
4131 * opencl-lang.c (opencl_language_data): Remove la_name and
4132 la_natural_name initializers.
4133 (opencl_language::name): New member function.
4134 (opencl_language::natural_name): New member function.
4135 * p-lang.c (pascal_language_data): Remove la_name and
4136 la_natural_name initializers.
4137 (pascal_language::name): New member function.
4138 (pascal_language::natural_name): New member function.
4139 * rust-lang.c (rust_language_data): Remove la_name and
4140 la_natural_name initializers.
4141 (rust_language::name): New member function.
4142 (rust_language::natural_name): New member function.
4143 * symtab.c (lookup_language_this): Update call to
4144 language_defn::name.
4145
5bae7c4e
AB
41462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4147
4148 * ada-lang.c (ada_language_data): Remove la_name_of_this
4149 initializer.
4150 * ax-gdb.c (gen_expr): Update call to name_of_this.
4151 * c-exp.y (classify_name): Likewise.
4152 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4153 (cplus_language_data): Likewise.
4154 (cplus_language::name_of_this): New member function.
4155 (asm_language_data): Remove la_name_of_this initializer.
4156 (minimal_language_data): Likewise.
4157 * d-lang.c (d_language_data): Likewise.
4158 (d_language::name_of_this): New member function.
4159 * expprint.c (print_subexp_standard): Update call to name_of_this.
4160 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4161 * go-lang.c (go_language_data): Likewise.
4162 * language.c (unknown_language_data): Likewise.
4163 (unknown_language::name_of_this): New member function.
4164 (auto_language_data): Remove la_name_of_this initializer.
4165 (auto_language::name_of_this): New member function.
4166 * language.h (language_data): Delete la_name_of_this member
4167 variable.
4168 (language_defn::name_of_this): New member function.
4169 * m2-lang.c (m2_language_data): Remove la_name_of_this
4170 initializer.
4171 * objc-lang.c (objc_language_data): Likewise.
4172 (objc_language::name_of_this): New member function.
4173 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4174 initializer.
4175 * p-lang.c (pascal_language_data): Likewise.
4176 (pascal_language::name_of_this): New member function.
4177 * rust-lang.c (rust_language_data): Remove la_name_of_this
4178 initializer.
4179 * symtab.c (lookup_language_this): Update call to name_of_this.
4180 (lookup_symbol_aux): Likewise.
4181 * valops.c (value_of_this): Likewise.
4182
22e3f3ed
AB
41832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * ada-lang.c (ada_language_data): Remove
4186 la_struct_too_deep_ellipsis initializer.
4187 (ada_language::struct_too_deep_ellipsis): New member function.
4188 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4189 initializer.
4190 (cplus_language_data): Likewise.
4191 (asm_language_data): Likewise.
4192 (minimal_language_data): Likewise.
4193 * cp-valprint.c (cp_print_value): Update call to
4194 struct_too_deep_ellipsis.
4195 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4196 initializer.
4197 * f-lang.c (f_language_data): Likewise.
4198 (f_language::struct_too_deep_ellipsis): New member function.
4199 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4200 initializer.
4201 * language.c (unknown_language_data): Likewise.
4202 (auto_language_data): Likewise.
4203 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4204 member variable.
4205 (language_defn::struct_too_deep_ellipsis): New member function.
4206 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4207 initializer.Q
4208 * objc-lang.c (objc_language_data): Likewise.
4209 * opencl-lang.c (opencl_language_data): Likewise.
4210 * p-lang.c (pascal_language_data): Likewise.
4211 * rust-lang.c (rust_language_data): Likewise.
4212 * valprint.c (val_print_check_max_depth): Update call to
4213 struct_too_deep_ellipsis.
4214
ed29e1c7
FW
42152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4216
4217 * MAINTAINERS (Write After Approval): Add myself.
4218
12d8f940
TT
42192020-09-15 Tom Tromey <tom@tromey.com>
4220
4221 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4222 Remove.
4223
6b5a7bc7
TT
42242020-09-15 Tom Tromey <tom@tromey.com>
4225
4226 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4227 and TYPE_CODE_METHODPTR cases.
4228 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4229 (c_value_print_inner): Update.
4230 * valprint.c (generic_value_print_memberptr): New function, from
4231 c_value_print_memberptr.
4232 (generic_value_print): Use it. Call cplus_print_method_ptr.
4233
47f0e2ff
TT
42342020-09-15 Tom Tromey <tromey@adacore.com>
4235
4236 * python/python-internal.h (PyInt_FromLong): Remove define.
4237 * python/py-value.c (convert_value_from_python): Use
4238 gdb_py_object_from_longest.
4239 * python/py-type.c (typy_get_code): Use
4240 gdb_py_object_from_longest.
4241 * python/py-symtab.c (salpy_get_line): Use
4242 gdb_py_object_from_longest.
4243 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4244 gdb_py_object_from_longest.
4245 * python/py-record.c (recpy_gap_reason_code): Use
4246 gdb_py_object_from_longest.
4247 * python/py-record-btrace.c (recpy_bt_insn_size)
4248 (recpy_bt_func_level, btpy_list_count): Use
4249 gdb_py_object_from_longest.
4250 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4251 gdb_py_object_from_longest. Fix error handling.
4252 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4253 gdb_py_object_from_longest.
4254 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4255 gdb_py_object_from_longest.
4256 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4257 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4258 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4259
512116ce
TT
42602020-09-15 Tom Tromey <tromey@adacore.com>
4261
4262 * python/python.c (gdbpy_parameter_value): Use
4263 gdb_py_object_from_ulongest.
4264
4ab1029c
TT
42652020-09-15 Tom Tromey <tromey@adacore.com>
4266
4267 * python/py-infevents.c (create_register_changed_event_object):
4268 Use gdb_py_object_from_longest.
4269 * python/py-exitedevent.c (create_exited_event_object): Use
4270 gdb_py_object_from_longest.
4271
062534d4
TT
42722020-09-15 Tom Tromey <tromey@adacore.com>
4273
4274 * python/python.c (gdbpy_parameter_value): Use
4275 gdb_py_object_from_longest.
4276 * python/py-type.c (convert_field, typy_range): Use
4277 gdb_py_object_from_longest.
4278 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4279 gdb_py_object_from_longest.
4280 * python/py-lazy-string.c (stpy_get_length): Use
4281 gdb_py_object_from_longest.
4282 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4283 gdb_py_object_from_longest.
4284 * python/py-infevents.c (create_memory_changed_event_object): Use
4285 gdb_py_object_from_longest.
4286 * python/py-inferior.c (infpy_get_num): Use
4287 gdb_py_object_from_longest.
4288 (infpy_get_pid): Likewise.
4289
d1cab987
TT
42902020-09-15 Tom Tromey <tromey@adacore.com>
4291
4292 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4293 defines.
4294 * python/py-value.c (valpy_long): Use
4295 gdb_py_object_from_ulongest.
4296 * python/py-symtab.c (salpy_get_pc): Use
4297 gdb_py_object_from_ulongest.
4298 (salpy_get_last): Likewise.
4299 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4300 gdb_py_object_from_ulongest.
4301 * python/py-lazy-string.c (stpy_get_address): Use
4302 gdb_py_object_from_ulongest.
4303 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4304 * python/py-arch.c (archpy_disassemble): Use
4305 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4306 error handling.
4307
4bde49dc
TT
43082020-09-15 Tom Tromey <tromey@adacore.com>
4309
4310 * python/python-internal.h (gdb_py_long_from_longest): Remove
4311 defines.
4312 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4313 * python/py-type.c (convert_field, typy_get_sizeof): Use
4314 gdb_py_object_from_longest.
4315 * python/py-record-btrace.c (btpy_list_index): Use
4316 gdb_py_object_from_longest.
4317
37431074
TT
43182020-09-15 Tom Tromey <tromey@adacore.com>
4319
4320 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4321 * python/py-record.c (recpy_element_number): Use
4322 gdb_py_object_from_longest.
4323 (recpy_gap_number): Likewise.
4324
cbe25684
TT
43252020-09-15 Tom Tromey <tromey@adacore.com>
4326
4327 * top.c (ui::ui): Update.
4328 (highest_ui_num): Remove.
4329 * top.h (struct ui) <num>: Remove.
4330
db92ac45
TT
43312020-09-15 Tom Tromey <tromey@adacore.com>
4332
4333 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4334 * ui-style.c (ansi_regex_text): Now array.
4335 * rust-exp.y (number_regex_text): Now array.
4336 * linespec.c (linespec_quote_characters): Now array.
4337 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4338 Now arrays.
4339
d2b31b67
SM
43402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4341
4342 * debuginfod-support.c (debuginfod_client_deleter): New.
4343 (debuginfod_client_up): New.
4344 (debuginfod_init): Return debuginfod_client_up.
4345 (debuginfod_source_query): Adjust.
4346 (debuginfod_debuginfo_query): Adjust.
4347
3246bd8e
SM
43482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4349
4350 * debuginfod-support.c (debuginfod_source_query): Use
4351 make_unique_xstrdup.
4352
10242f36
SM
43532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4356 with `type::instance_flags`.
4357
e1044e6a
MM
43582020-09-14 Michael Mullin <masmullin@gmail.com>
4359
4360 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4361 Remove baton parameter.
4362
04902b09
PA
43632020-09-14 Pedro Alves <pedro@palves.net>
4364
4365 * Makefile.in (SELFTESTS_SRCS): Add
4366 unittests/enum-flags-selftests.c.
4367 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4368 btrace_function_flags instead of enum btrace_function_flag.
4369 * compile/compile-c-types.c (convert_qualified): Use
4370 enum_flags::raw.
4371 * compile/compile-cplus-symbols.c (convert_one_symbol)
4372 (convert_symbol_bmsym):
4373 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4374 (compile_cplus_convert_struct_or_union_methods)
4375 (compile_cplus_instance::convert_qualified_base):
4376 * go-exp.y (parse_string_or_char): Add cast to int.
4377 * unittests/enum-flags-selftests.c: New file.
4378 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4379 type to btrace_thread_flags from btrace_thread_flag.
4380 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4381 local's type to btrace_thread_flags from btrace_thread_flag. Add
4382 cast in DEBUG call.
4383
69896a2c
PA
43842020-09-14 Pedro Alves <pedro@palves.net>
4385
4386 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4387 * gdbtypes.c (address_space_name_to_int): Rename to ...
4388 (address_space_name_to_type_instance_flags): ... this.
4389 (address_space_int_to_name): Rename to ...
4390 (address_space_type_instance_flags_to_name): ... this.
4391 * gdbtypes.h (address_space_name_to_int): Rename to ...
4392 (address_space_name_to_type_instance_flags): ... this.
4393 (address_space_int_to_name): Rename to ...
4394 (address_space_type_instance_flags_to_name): ... this.
4395 * type-stack.c (type_stack::insert): Adjust to rename.
4396 * type-stack.h (type_stack::insert): Likewise.
4397
314ad88d
PA
43982020-09-14 Pedro Alves <pedro@palves.net>
4399 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * avr-tdep.c (avr_address_class_type_flags): Return
4402 type_instance_flags.
4403 (avr_address_class_type_flags_to_name): Take a
4404 type_instance_flags.
4405 (avr_address_class_name_to_type_flags): Return bool and take a
4406 type_instance_flags.
4407 * d-lang.c (build_d_types): Use type::set_instance_flags.
4408 * ft32-tdep.c (ft32_address_class_type_flags): Return
4409 type_instance_flags.
4410 (ft32_address_class_type_flags_to_name): Take a
4411 type_instance_flags.
4412 (ft32_address_class_name_to_type_flags): Return bool and take a
4413 type_instance_flags.
4414 (ft32_gdbarch_init): Use type::set_instance_flags.
4415 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4416 * gdbarch.h, gdbarch.c: Regenerate.
4417 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4418 (address_class_name_to_type_flags): Use type_instance_flags and
4419 bool.
4420 * gdbtypes.c (address_space_name_to_int)
4421 (address_space_int_to_name, make_qualified_type): Use
4422 type_instance_flags.
4423 (make_qualified_type): Use type_instance_flags and
4424 type::set_instance_flags.
4425 (make_type_with_address_space, make_cv_type, make_vector_type)
4426 (check_typedef): Use type_instance_flags.
4427 (recursive_dump_type): Cast type_instance_flags to unsigned for
4428 printing.
4429 (copy_type_recursive): Use type::set_instance_flags.
4430 (gdbtypes_post_init): Use type::set_instance_flags.
4431 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4432 <m_instance_flags>: ... this.
4433 <instance_flags, set_instance_flags>: New methods.
4434 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4435 (SET_TYPE_INSTANCE_FLAGS): New.
4436 (address_space_name_to_int, address_space_int_to_name)
4437 (make_type_with_address_space): Pass flags using
4438 type_instance_flags instead of int.
4439 * stabsread.c (cleanup_undefined_types_noname): Use
4440 type::set_instance_flags.
4441 * s390-tdep.c (s390_address_class_type_flags): Return
4442 type_instance_flags.
4443 (s390_address_class_type_flags_to_name): Take a
4444 type_instance_flags.
4445 (s390_address_class_name_to_type_flags): Return bool and take a
4446 type_instance_flags.
4447 * type-stack.c (type_stack::follow_types): Use
4448 type_instance_flags.
4449 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4450
27087b7f
TT
44512020-09-14 Tom Tromey <tromey@adacore.com>
4452
4453 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4454 * x86-tdep.c (x86_is_thunk_register_name)
4455 (x86_in_indirect_branch_thunk): Update.
4456 * sparc64-tdep.c (sparc64_fpu_register_names)
4457 (sparc64_cp0_register_names, sparc64_register_names)
4458 (sparc64_pseudo_register_names): Now const.
4459 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4460 cp0_registers_num>: Now const.
4461 * sparc-tdep.c (sparc_core_register_names)
4462 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4463 (sparc32_pseudo_register_names): Now const.
4464 (validate_tdesc_registers): Update.
4465 * rust-lang.c (rust_extensions): Now const.
4466 * p-lang.c (p_extensions): Now const.
4467 * objc-lang.c (objc_extensions): Now const.
4468 * nto-tdep.c (nto_thread_state_str): Now const.
4469 * moxie-tdep.c (moxie_register_names): Now const.
4470 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4471 Now const.
4472 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4473 (mips_linux_reg_names): Now const.
4474 (mips_gdbarch_init): Update.
4475 * microblaze-tdep.c (microblaze_register_names): Now const.
4476 * m68k-tdep.c (m68k_register_names): Now const.
4477 * m32r-tdep.c (m32r_register_names): Now const.
4478 * ia64-tdep.c (ia64_register_names): Now const.
4479 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4480 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4481 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4482 ymm_avx512_register_names, pkeys_register_names>: Now const.
4483 * i386-tdep.c (i386_register_names, i386_zmm_names)
4484 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4485 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4486 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4487 * f-lang.c (f_extensions): Now const.
4488 * d-lang.c (d_extensions): Now const.
4489 * csky-tdep.c (csky_register_names): Now const.
4490 * charset.c (default_charset_names, charset_enum): Now const.
4491 (_initialize_charset): Update.
4492 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4493 const.
4494 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4495 (bsd_uthread_solib_loaded): Update.
4496 (bsd_uthread_state): Now const.
4497 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4498 (amd64_ymm_avx512_names, amd64_ymmh_names)
4499 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4500 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4501 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4502 (amd64_dword_names): Now const.
4503 * agent.c (can_use_agent_enum): Now const.
4504 * ada-tasks.c (task_states, long_task_states): Now const.
4505 * ada-lang.c (known_runtime_file_name_patterns)
4506 (known_auxiliary_function_name_patterns, attribute_names)
4507 (standard_exc, ada_extensions): Now const.
4508
89806626
SM
45092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4510
4511 * bcache.h (struct bcache) <bcache>: Remove constructor.
4512 <m_hash_function, m_compare_function>: Remove.
4513 <~bcache>: Make virtual.
4514 <compare>: Remove static method, introduce virtual method.
4515 <default_hash>: Remove.
4516 <hash>: New virtual method.
4517 * bcache.c (bcache::expand_hash_table): Update.
4518 (bcache::insert): Update.
4519 (bcache::hash): New.
4520 (bcache::compare): Update comment and parameter names.
4521 * gdbtypes.c (types_deeply_equal): Update.
4522 * psymtab.h (struct psymbol_bcache): New struct.
4523 (class psymtab_storage) <psymtab_storage>: Make default.
4524 <psymbol_cache>: Change type to psymbol_bcache.
4525 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4526 (psymbol_hash): Change to...
4527 (psymbol_bcache::hash): ... this.
4528 (psymbol_compare): Change to...
4529 (psymbol_bcache::compare): ... this.
4530
677c92fe
SM
45312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4532
4533 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4534 checking for initial lwp.
4535
3eba3a01
TT
45362020-09-14 Tom Tromey <tromey@adacore.com>
4537
4538 * m68k-tdep.c (m68k_extract_return_value): Use
4539 pointer_result_regnum.
4540 (m68k_store_return_value): Likewise.
4541 (m68k_reg_struct_return_p): Handle vectors and arrays.
4542 (m68k_return_value): Handle arrays.
4543 (m68k_svr4_return_value): Fix single-element aggregate handling.
4544 Handle long double. Adjust for embedded ABI.
4545 (m68k_svr4_init_abi): Set pointer_result_regnum.
4546 (m68k_embedded_init_abi): New function.
4547 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4548 (m68k_osabi_sniffer): New function.
4549 (_initialize_m68k_tdep): Register osabi sniffer.
4550 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4551 member.
4552
33f4dd48
SM
45532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4556 with gdb::unique_xmalloc_ptr<char>.
4557
8400a90d
SM
45582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * xml-support.h (xml_fetch_another): Change type to be a
4561 function_view.
4562 (xml_process_xincludes): Remove baton parameter.
4563 (xml_fetch_content_from_file): Change baton parameter to
4564 dirname.
4565 * xml-support.c (struct xinclude_parsing_data)
4566 <xinclude_parsing_data>: Remove baton parameter.
4567 <fetcher_baton>: Remove.
4568 (xinclude_start_include): Adjust.
4569 (xml_process_xincludes): Adjust.
4570 (xml_fetch_content_from_file): Replace baton parameter with
4571 dirname.
4572 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4573 (xml_init_syscalls_info): Use a lambda.
4574 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4575 (file_read_description_xml): Use a lambda.
4576 (fetch_available_features_from_target): Change baton parameter
4577 to target_ops.
4578 (target_read_description_xml): Use a lambda.
4579 (target_fetch_description_xml): Use a lambda.
4580 (string_read_description_xml): Update.
4581
04f5bab2
SM
45822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4585 uses with type::endianity_is_not_default.
4586
db558e34
SM
45872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (struct type) <endianity_is_not_default,
4590 set_endianity_is_not_default>: New methods.
4591 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4592 type::endianity_is_not_default, change all write call sites to
4593 use type::set_endianity_is_not_default.
4594
22c4c60c
SM
45952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4598 uses with type::is_fixed_instance.
4599
9cdd0d12
SM
46002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (struct type) <is_fixed_instance,
4603 set_is_fixed_instance>: New methods.
4604 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4605 write call sites to use type::set_is_fixed_instance.
4606
0becda7a
SM
46072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4610 uses with type::is_gnu_ifunc.
4611
03cc7249
SM
46122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4615 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4616 use type::set_is_gnu_ifunc.
4617
3f46044c
SM
46182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4621 uses with type::stub_is_supported.
4622
9baccff6
SM
46232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4626 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4627 use type::set_stub_is_supported.
4628
bd63c870
SM
46292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4632 uses with type::is_vector.
4633
2062087b
SM
46342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4637 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4638 use type::set_is_vector.
4639
a409645d
SM
46402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4643 uses with type::has_varargs.
4644
1d6286ed
SM
46452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4648 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4649 use type::set_has_varargs.
4650
7f9f399b
SM
46512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4654 uses with type::is_prototyped.
4655
27e69b7a
SM
46562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4659 New methods.
4660 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4661 call sites to use type::set_is_prototyped.
4662
d2183968
SM
46632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4666 uses with type::target_is_stub.
4667
8f53807e
SM
46682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4671 New methods.
4672 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4673 sites to use type::set_target_is_stub.
4674
e46d3488
SM
46752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (TYPE_STUB): Remove, replace all
4678 uses with type::is_stub.
4679
b4b73759
SM
46802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4683 (TYPE_STUB): Use type::is_stub, change all write call sites to
4684 use type::set_is_stub.
4685
20ce4123
SM
46862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4689 type::has_no_signedness.
4690
15152a54
SM
46912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (struct type) <has_no_signedness,
4694 set_has_no_signedness>: New methods.
4695 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4696 call sites to use type::set_has_no_signedness.
4697
c6d940a9
SM
46982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4701 type::is_unsigned.
4702
653223d3
SM
47032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4706 methods.
4707 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4708 sites to use type::set_is_unsigned.
4709
55ea94da 47102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4711 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4712
e851246a
SM
4713 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4714 pointer and stack frame offset when unwinding.
55ea94da 4715
6791b117
PA
47162020-09-13 Pedro Alves <pedro@palves.net>
4717
4718 * NEWS: Document "-break-insert --qualified".
4719 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4720
77f2120b
PA
47212020-09-13 Pedro Alves <pedro@palves.net>
4722
4723 * linespec.c (classify_mtype, compare_msyms): Delete.
4724 (search_minsyms_for_name): Remove classification logic. Instead
4725 filter out trampoline symbols if we also found an external
4726 function of the same name.
4727
ed6a896c
JB
47282020-09-13 Joel Brobecker <brobecker@adacore.com>
4729
4730 * NEWS: Create a new section for the next release branch.
4731 Rename the section of the current branch, now that it has
4732 been cut.
4733
32aea73e
JB
47342020-09-13 Joel Brobecker <brobecker@adacore.com>
4735
4736 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4737 * version.in: Bump version to 11.0.50.DATE-git.
4738
8087c3fa
JB
47392020-09-12 Joel Brobecker <brobecker@adacore.com>
4740
4741 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4742
2a67f09d
FW
47432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4744 Felix Willgerodt <Felix.Willgerodt@intel.com>
4745
4746 * gdbarch.sh: Added bfloat16 type.
4747 * gdbarch.c: Regenerated.
4748 * gdbarch.h: Regenerated.
4749 * gdbtypes.c (floatformats_bfloat16): New struct.
4750 (gdbtypes_post_init): Add builtin_bfloat16.
4751 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4752 (floatformats_bfloat16): New struct.
4753 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4754 (i386_ymm_type): Add field "v16_bfloat16"
4755 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4756 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4757 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4758 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4759 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4760 * features/i386/64bit-avx512.c: Regenerated.
4761 * features/i386/64bit-sse.xml: Add bfloat16 type.
4762 * features/i386/64bit-sse.c: Regenerated.
4763
1347d111
FW
47642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4765
4766 * i386-tdep.c (i386_zmm_type): Fix field names.
4767 (i386_ymm_type): Fix field names.
4768
7a4e8e7d
TBA
47692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4770
4771 * breakpoint.c: Fix typo in the help message of the
4772 "set breakpoint condition-evaluation" command.
4773
cf4ac4be
KR
47742020-09-10 Kamil Rytarowski <n54@gmx.com>
4775
4776 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4777 * (nbsd_nat_target::pid_to_exec_file)
4778 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4779 (nbsd_nat_target::post_startup_inferior)
4780 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4781 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4782 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4783 * (nbsd_thread_lister): Remove.
4784
f404573e
KR
47852020-09-10 Kamil Rytarowski <n54@gmx.com>
4786
4787 * fork-inferior.c (startup_inferior): Avoid double free.
4788
1ccb2c17
KR
47892020-09-10 Kamil Rytarowski <n54@gmx.com>
4790
4791 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4792 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4793
feedfcc7
KR
47942020-09-10 Kamil Rytarowski <n54@gmx.com>
4795
4796 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4797 * netbsd-nat.c: Include <sys/ptrace.h>.
4798 * (netbsd_nat::enable_proc_events): Add.
4799
c489f8c6
KR
48002020-09-10 Kamil Rytarowski <n54@gmx.com>
4801
4802 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4803 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4804 (netbsd_nat::for_each_thread): Add.
4805 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4806 "gdbsupport/common-debug.h".
4807 * (netbsd_nat::netbsd_thread_lister)
4808 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4809 (netbsd_nat::for_each_thread): Add.
4810
330662f6
KR
48112020-09-10 Kamil Rytarowski <n54@gmx.com>
4812
4813 * netbsd-nat.h: Include <unistd.h>.
4814 * (netbsd_nat::pid_to_exec_file): Add.
4815 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4816 * (netbsd_nat::pid_to_exec_file) Add.
4817
70b67307
KR
48182020-09-10 Kamil Rytarowski <n54@gmx.com>
4819
4820 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4821
99cf6da6
KR
48222020-09-10 Kamil Rytarowski <n54@gmx.com>
4823
4824 * netbsd-nat.h: New file.
4825 * netbsd-nat.c: Likewise.
4826
1b788fb6
TT
48272020-09-09 Tom Tromey <tromey@adacore.com>
4828
4829 * ada-lang.c (remove_extra_symbols): Do not increment when
4830 removing an element
4831
03b0a45f
TT
48322020-09-08 Tom Tromey <tromey@adacore.com>
4833
4834 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4835
3cae4447
TT
48362020-09-08 Tom Tromey <tromey@adacore.com>
4837
4838 PR win32/25302:
4839 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4840 (gdb_bfd_init_data): New function.
4841 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4842
7f08fd51
TBA
48432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4844
4845 * infrun.c (fetch_inferior_event): Use
4846 `switch_to_target_no_thread` to switch the target.
4847
3e6ff933
TT
48482020-09-06 Tom Tromey <tom@tromey.com>
4849
4850 * symfile.h (dwarf2_free_objfile): Don't declare.
4851
e56798df
AKS
48522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4853
4854 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4855 to match 16 byte real/complex type generated by Flang compiler.
4856
8f5c6526
TV
48572020-09-03 Tom de Vries <tdevries@suse.de>
4858
4859 PR breakpoint/26546
4860 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4861 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4862
c5065df0
SM
48632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * maint.c (index_digits): New function.
4866 (struct maint_print_section_data): Remove.
4867 (print_bfd_section_info): Remove print_data parameter, add arg
4868 and index_digits.
4869 (print_objfile_section_info): Likewise.
4870 (print_bfd_section_info_maybe_relocated): Likewise (plus
4871 objfile).
4872 (maintenance_info_sections): Adjust calls.
4873
02c6f3f1
TT
48742020-09-02 Tom Tromey <tromey@adacore.com>
4875
4876 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4877 for null pointers.
4878 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4879
ef5e5b0b
SM
48802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4881
4882 * bcache.h (struct bcache) <insert>: Change type of `added` to
4883 pointer to bool.
4884 * bcache.c (bcache::insert): Likewise.
4885 * gdbtypes.c (check_types_worklist): Adjust.
4886 * psymtab.c (add_psymbol_to_bcache): Adjust.
4887
973695d6
KB
48882020-08-31 Kevin Buettner <kevinb@redhat.com>
4889
4890 * corelow.c (unordered_set): Include.
4891 (class core_target): Add field 'm_core_unavailable_mappings'.
4892 (core_target::build_file_mappings): Print only one warning
4893 per inaccessible file. Add unavailable/broken mappings
4894 to m_core_unavailable_mappings.
4895 (core_target::xfer_partial): Call...
4896 (core_target::xfer_memory_via_mappings): New method.
4897
264fc0e2
SM
48982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4899
4900 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4901 type to bool.
4902
2de01bdb
SM
49032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4904
4905 * dwarf2/read.c (struct field_info): Fix indentation.
4906
f3bd50f1
SM
49072020-08-31 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4910 ordering in comment.
4911 * frame.c (frame_id_eq): Fix indentation.
4912
22b9b4b0
SL
49132020-08-31 Scott Linder <scott@scottlinder.com>
4914 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4917 inline frame ids in outer frame.
4918
84154d16
SM
49192020-08-31 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4922 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4923 (outer_frame_id): Use FID_STACK_OUTER instead of
4924 FID_STACK_INVALID.
4925 (frame_id_p): Don't check for outer_frame_id.
4926
8efaf6b3
SM
49272020-08-31 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4930 regnum/frame in value. Call allocate_value_lazy.
4931 * frame.c (frame_unwind_register_value): Use
4932 val_print_not_saved.
4933
fe1fe7ea
SM
49342020-08-31 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4937
f7c7700d
PA
49382020-08-29 Pedro Alves <pedro@palves.net>
4939
4940 * progspace.c (print_program_space): Use all_inferiors. Switch to
4941 the inferior before calling target_pid_to_str.
4942
e0814aae
TT
49432020-08-28 Tom Tromey <tom@tromey.com>
4944
4945 * xcoffread.c (xcoff_end_psymtab): Update comment.
4946 * dbxread.c (dbx_end_psymtab): Update comment.
4947
626d2320
TV
49482020-08-28 Tom de Vries <tdevries@suse.de>
4949
4950 PR breakpoint/26544
4951 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4952 event_location.
4953 (create_breakpoint): Same.
4954 (base_breakpoint_decode_location): Same.
4955 (bkpt_create_sals_from_location): Same.
4956 (bkpt_decode_location): Same.
4957 (bkpt_probe_create_sals_from_location): Same.
4958 (bkpt_probe_decode_location): Same.
4959 (tracepoint_create_sals_from_location): Same.
4960 (tracepoint_decode_location): Same.
4961 (tracepoint_probe_decode_location): Same.
4962 (strace_marker_create_sals_from_location): Same.
4963 (strace_marker_decode_location): Same.
4964 (create_sals_from_location_default): Same.
4965 (decode_location_default): Same.
4966 * breakpoint.h (struct breakpoint_ops): Same.
4967 (create_breakpoint): Same.
4968 * linespec.h (decode_line_full): Same.
4969 * linespec.c (decode_line_full): Same. Throw error if
4970 result.size () == 0.
4971
df631783
PA
49722020-08-27 Pedro Alves <pedro@palves.net>
4973
4974 PR gdb/26524
4975 * breakpoint.c (until_break_fsm) <location_breakpoint,
4976 caller_breakpoint>: Delete fields.
4977 <breakpoints>: New field.
4978 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4979 two individual breakpoints.
4980 (until_break_fsm::should_stop): Loop over breakpoints in the
4981 breakpoint vector.
4982 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4983 vector.
4984 (until_break_command): Handle location expanding into multiple
4985 sals.
4986
b2b38aa4
PA
49872020-08-27 Pedro Alves <pedro@palves.net>
4988
4989 PR gdb/26523
4990 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4991 bp_until breakpoints user-specified locations. Update intro
4992 comment.
4993
b886559f
SM
49942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4997 gdb_bfd_sections): New.
4998 * maint.c (print_bfd_section_info): Change param type to
4999 maint_print_section_data.
5000 (print_objfile_section_info): Likewise.
5001 (print_bfd_section_info_maybe_relocated): Likewise.
5002 (maintenance_info_sections): Use gdb_bfd_sections.
5003
4c6e63bf
SV
50042020-08-25 Shahab Vahedi <shahab@synopsys.com>
5005
5006 * MAINTAINERS: Add ARC target and maintainer.
5007
8d7f0635
AK
50082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5009
5010 * configure.tgt: ARC support for GNU/Linux.
5011 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5012 * arc-linux-tdep.c: New file.
5013 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5014 * arc-tdep.c (arc_write_pc): Use it.
5015
fdd8731b
SV
50162020-08-25 Shahab Vahedi <shahab@synopsys.com>
5017
5018 * arc-tdep.c (arc_check_for_hardware_loop): New.
5019 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5020
22459524
SV
50212020-08-25 Shahab Vahedi <shahab@synopsys.com>
5022
5023 * arc-tdep.h: Include "gdbarch.h".
5024
995d3a19
SV
50252020-08-25 Shahab Vahedi <shahab@synopsys.com>
5026
5027 * arch/arc.h
5028 (arc_gdbarch_features): New class to stir the selection of target XML.
5029 (arc_create_target_description): Use FEATURES to choose XML target.
5030 (arc_lookup_target_description): Use arc_create_target_description
5031 to create _new_ target descriptions or return the already created
5032 ones if the FEATURES is the same.
5033 * arch/arc.c: Implementation of prototypes described above.
5034 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5035 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5036 * arc-tdep.c (*_feature_name): Make feature names consistent.
5037 (arc_register_feature): A new struct to hold information about
5038 registers of a particular target/feature.
5039 (arc_check_tdesc_feature): Check if XML provides registers in
5040 compliance with ARC_REGISTER_FEATURE structs.
5041 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5042 (determine_*_reg_feature_set): Which feature name to look for.
5043 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5044 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5045 to expected ISA enums to be used in arc_gdbarch_features structs.
5046 * features/Makefile (FEATURE_XMLFILES): Add new files.
5047 * gdb/features/arc/v1-aux.c: New file.
5048 * gdb/features/arc/v1-aux.xml: Likewise.
5049 * gdb/features/arc/v1-core.c: Likewise.
5050 * gdb/features/arc/v1-core.xml: Likewise.
5051 * gdb/features/arc/v2-aux.c: Likewise.
5052 * gdb/features/arc/v2-aux.xml: Likewise.
5053 * gdb/features/arc/v2-core.c: Likewise.
5054 * gdb/features/arc/v2-core.xml: Likewise.
5055 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5056
3945d2d7
GM
50572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5058 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 PR m2/26372
fc5d6901 5061 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5062 an assert. Remove single element array indexing pattern as the
5063 MULTI_SUBSCRIPT support will handle this case too.
5064
2677f2d3
SM
50652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5066
5067 * value.h (valprint_check_validity): Move declaration from
5068 here...
5069 * valprint.h (valprint_check_validity): ... to here.
5070
c426fddb
SM
50712020-08-24 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * debug.h: New file.
5074 * debug.c (debug_prefixed_vprintf): New function.
5075 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5076 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5077
1eb8556f
SM
50782020-08-24 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * infrun.h (infrun_debug_printf_1): New function declaration.
5081 (infrun_debug_printf): New macro.
5082 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5083 throughout.
5084 (infrun_debug_printf): New function.
5085 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5086 (handle_jit_event): Likewise.
5087
b8fff44e
MW
50882020-08-21 Mark Wielaard <mark@klomp.org>
5089
5090 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5091
d19c3068
SM
50922020-08-22 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * frame.c (enum class frame_id_status): New.
5095 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5096 (fprintf_frame): Update.
5097 (compute_frame_id): Set frame id status to "computing" on entry.
5098 Set it back to "not_computed" on failure and to "computed" on
5099 success.
5100 (get_frame_id): Assert the frame id is not being computed.
5101 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5102 (create_new_frame): Likewise.
5103 (frame_cleanup_after_sniffer): Update assert.
5104
b70e516e
SM
51052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5106
5107 * regcache.c (pid_ptid_regcache_map): New type.
5108 (target_ptid_regcache_map): Remove.
5109 (target_pid_ptid_regcache_map): New type.
5110 (regcaches): Change type to target_pid_ptid_regcache_map.
5111 (get_thread_arch_aspace_regcache): Update.
5112 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5113 case.
5114 (regcaches_size): Update.
5115 (regcache_count): Update.
5116 (registers_changed_ptid_target_pid_test): New.
5117 (_initialize_regcache): Register new test.
5118
cdd9148a
SM
51192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5120
5121 * regcache.c (regcache_count): New.
5122 (struct regcache_test_data): New.
5123 (regcache_test_data_up): New.
5124 (populate_regcaches_for_test): New.
5125 (regcaches_test): Remove.
5126 (get_thread_arch_aspace_regcache_test): New.
5127 (registers_changed_ptid_all_test): New.
5128 (registers_changed_ptid_target_test): New.
5129 (registers_changed_ptid_target_ptid_test): New.
5130 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5131 (_initialize_regcache): Register new tests.
5132
dd125343
SM
51332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5136 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5137 gdbarch and aspace parameter. Use current inferior's aspace.
5138 Validate regcache's arch value.
5139 (regcaches_test): Update.
5140
3ee93972
SM
51412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * regcache.c (regcaches_test): Call registers_changed.
5144
33bf4c5c
TBA
51452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5146
5147 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5148
c2fd7fae
AKS
51492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5150
5151 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5152 to find the end of prologue for flang compiled binaries.
5153 * arm-tdep.c (arm_skip_prologue): Likewise.
5154 * i386-tdep.c (i386_skip_prologue): Likewise.
5155 * producer.c (producer_is_llvm): New function.
5156 (producer_parsing_tests): Added new tests for clang/flang.
5157 * producer.h (producer_is_llvm): New declaration.
5158
9327494e
SM
51592020-08-18 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * linux-nat.c (linux_nat_debug_printf): New function.
5162 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5163
d138725a
AM
51642020-08-18 Aaron Merey <amerey@redhat.com>
5165
5166 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5167 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5168 (CLIBS): Add DEBUGINFOD_LIBS.
5169
f9b11e6b
ST
51702020-08-17 Sergei Trofimovich <siarheit@google.com>
5171
5172 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5173 'gdbarch_num_regs'.
5174
3ae7ab99
TT
51752020-08-17 Tom Tromey <tromey@adacore.com>
5176
5177 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5178 ada_get_decoded_value returns NULL.
5179
b017825f
TT
51802020-08-17 Tom Tromey <tromey@adacore.com>
5181
5182 * python/py-inferior.c (infpy_search_memory): Use
5183 gdb_py_object_from_ulongest.
5184 * python/py-infevents.c (create_inferior_call_event_object)
5185 (create_memory_changed_event_object): Use
5186 gdb_py_object_from_ulongest.
5187 * python/py-linetable.c (ltpy_entry_get_pc): Use
5188 gdb_py_object_from_ulongest.
5189
7635cf79
SM
51902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5191
5192 * loc.c (class symbol_needs_eval_context): Fix indentation.
5193
f54be24b
SM
51942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5195
5196 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5197 bool.
5198
53d5a2a5
TV
51992020-08-17 Tom de Vries <tdevries@suse.de>
5200
5201 PR gdb/26393
5202 * gdbtypes.c (dump_dynamic_prop): New function.
5203 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5204
547ce8f0
TV
52052020-08-15 Tom de Vries <tdevries@suse.de>
5206
5207 PR backtrace/26390
5208 * stack.c (print_frame_args): Temporarily set the selected
5209 frame to FRAME while printing the frame's arguments.
5210
6ea815e7
PFC
52112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5212
5213 PR breakpoints/26385
5214 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5215 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5216
6e562fa3
PFC
52172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5218
5219 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5220 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5221 and >= to check return value instead of == -1 and != -1.
5222
d369b608
SM
52232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5224
5225 * utils.h (class gdb_argv) <as_array_view>: New method.
5226 * utils.c (gdb_argv_as_array_view_test): New.
5227 (_initialize_utils): Register selftest.
5228 * maint.c (maintenance_selftest): Use the new method.
5229
b31488a3
KR
52302020-08-13 Kamil Rytarowski <n54@gmx.com>
5231
5232 * target.h (supports_dumpcore, dumpcore): New
5233 function declarations.
5234 * target.c (supports_dumpcore, dumpcore): New
5235 functions.
5236 * target-delegates.c: Rebuild.
5237 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5238 and target_dumpcore ().
5239
002a3166
AM
52402020-08-13 Aaron Merey <amerey@redhat.com>
5241
5242 * debuginfod-support.c: Replace global variables with user_data.
5243
ece5bc8a
SM
52442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 * maint.c (maintenance_selftest): Split args and pass array_view
5247 to run_tests.
5248
6d8a0a5e
LM
52492020-08-12 Luis Machado <luis.machado@linaro.org>
5250
5251 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5252 type's length.
5253 Use %s and pulongest to print the length.
5254
7cf663a9
PA
52552020-08-12 Pedro Alves <palves@redhat.com>
5256
5257 * NEWS: Move "Multi-target debugging support" item to the
5258 "Changes since GDB 9" section.
5259
27c7b875
PA
52602020-08-12 Pedro Alves <palves@redhat.com>
5261
5262 PR gdb/26336
5263 * progspace.c (program_space::remove_objfile): Invalidate the
5264 frame cache.
5265
1796a2a1
TV
52662020-08-11 Tom de Vries <tdevries@suse.de>
5267
5268 * MAINTAINERS: Mark ms1 as deleted.
5269
f8e3fe0d
LM
52702020-08-10 Luis Machado <luis.machado@linaro.org>
5271
5272 PR gdb/26310
5273
5274 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5275 act accordingly.
5276 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5277 movz/str/stur/stp skipping behavior.
5278
cc308722
LM
52792020-08-10 Luis Machado <luis.machado@linaro.org>
5280
5281 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5282 struct user_sve_header instead of struct sve_context.
5283
041d9819
SM
52842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5285
5286 * read.h (dwarf2_fetch_die_loc_sect_off,
5287 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5288 `void *` parameter with function_view.
5289 * read.c (dwarf2_fetch_die_loc_sect_off,
5290 dwarf2_fetch_die_loc_cu_off): Likewise.
5291 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5292 (per_cu_dwarf_call): Adjust.
5293 (get_frame_address_in_block_wrapper): Remove.
5294 (indirect_synthetic_pointer): Adjust.
5295 (get_ax_pc): Remove.
5296 (dwarf2_compile_expr_to_ax): Adjust.
5297
38f8aa06
TV
52982020-08-08 Tom de Vries <tdevries@suse.de>
5299
5300 PR build/26344
5301 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5302 constructor.
5303 * regcache.c (get_thread_arch_aspace_regcache): Same.
5304
a52b3ae2
TT
53052020-08-07 Tom Tromey <tromey@adacore.com>
5306
5307 * ravenscar-thread.c
5308 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5309 New method.
5310 (ravenscar_thread_target::wait): Check
5311 runtime_initialized.
5312 (ravenscar_thread_target::prepare_to_store)
5313 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5314 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5315 (ravenscar_thread_target::stopped_by_watchpoint)
5316 (ravenscar_thread_target::stopped_data_address)
5317 (ravenscar_thread_target::core_of_thread): Use
5318 scoped_restore_current_thread and
5319 set_base_thread_from_ravenscar_task.
5320
0e29517d
TT
53212020-08-07 Tom Tromey <tromey@adacore.com>
5322
5323 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5324
592f9bd7
TT
53252020-08-07 Tom Tromey <tromey@adacore.com>
5326
5327 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5328 update_inferior_ptid before update_thread_list.
5329 (temporarily_change_regcache_ptid): New class.
5330 (ravenscar_thread_target::fetch_registers)
5331 (ravenscar_thread_target::store_registers)
5332 (ravenscar_thread_target::prepare_to_store): Use base thread when
5333 forwarding operation.
5334
39e2018a
TT
53352020-08-07 Tom Tromey <tromey@adacore.com>
5336
5337 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5338 "is_pid" case.
5339
2080266b
TT
53402020-08-07 Tom Tromey <tromey@adacore.com>
5341
5342 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5343 New methods.
5344 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5345 first.
5346 (ravenscar_thread_target::add_thread): Rename from
5347 ravenscar_add_thread.
5348 (ravenscar_thread_target::update_thread_list): Use a lambda.
5349 (ravenscar_thread_target::xfer_partial): New method.
5350
78c02f21
TT
53512020-08-07 Tom Tromey <tromey@adacore.com>
5352
5353 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5354 gdb::function_view.
5355 (iterate_over_live_ada_tasks): Change type of argument.
5356 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5357 of argument.
5358
d5d833af
TT
53592020-08-07 Tom Tromey <tromey@adacore.com>
5360
5361 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5362 Remove.
5363 (ravenscar_thread_target::extra_thread_info): Remove.
5364 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5365 defer to target beneath for non-Ravenscar threads.
5366
a8ac85bb
TT
53672020-08-07 Tom Tromey <tromey@adacore.com>
5368
5369 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5370 get_base_thread_from_ravenscar_task>: Now methods.
5371 <m_cpu_map>: New member.
5372 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5373 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5374 (ravenscar_thread_target::task_is_currently_active): Update.
5375 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5376 Now a method.
5377 (ravenscar_thread_target::add_active_thread): Put initial thread
5378 into the m_cpu_map.
5379
550ab58d
TT
53802020-08-07 Tom Tromey <tromey@adacore.com>
5381
5382 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5383 event_ptid.
5384
e9546579
TT
53852020-08-07 Tom Tromey <tromey@adacore.com>
5386
5387 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5388 runtime_initialized.
5389
3d4470e5
TT
53902020-08-07 Tom Tromey <tromey@adacore.com>
5391
5392 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5393 add_active_thread.
5394 (ravenscar_thread_target::add_active_thread): Now public.
5395 (ravenscar_inferior_created): Call add_active_thread after pushing
5396 the target.
5397
888bdb2b
SM
53982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 * regcache.c (ptid_regcache_map): New type.
5401 (target_ptid_regcache_map): New type.
5402 (regcaches): Change type to target_ptid_regcache_map.
5403 (get_thread_arch_aspace_regcache): Update to regcaches' new
5404 type.
5405 (regcache_thread_ptid_changed): Likewise.
5406 (registers_changed_ptid): Likewise.
5407 (regcaches_size): Likewise.
5408 (regcaches_test): Update.
5409 (regcache_thread_ptid_changed): Update.
5410 * regcache.h (regcache_up): New type.
5411 * gdbsupport/ptid.h (hash_ptid): New struct.
5412
b161a60d
SM
54132020-08-07 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * observable.h (thread_ptid_changed): Add parameter
5416 `process_stratum_target *`.
5417 * infrun.c (infrun_thread_ptid_changed): Add parameter
5418 `process_stratum_target *` and use it.
5419 (selftests): New namespace.
5420 (infrun_thread_ptid_changed): New function.
5421 (_initialize_infrun): Register selftest.
5422 * regcache.c (regcache_thread_ptid_changed): Add parameter
5423 `process_stratum_target *` and use it.
5424 (regcache_thread_ptid_changed): New function.
5425 (_initialize_regcache): Register selftest.
5426 * thread.c (thread_change_ptid): Pass target to
5427 thread_ptid_changed observable.
5428
d2854d8d
CT
54292020-08-06 Caroline Tice <cmtice@google.com>
5430
fe4c3d43
SM
5431 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5432 (struct dwp_sections): Update field comments. Add loclists and
5433 rnglists fields.
5434 (struct virtual_v2_dwo_sections): Rename struct to
5435 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5436 size & offset fields for loclists and rnglists.
5437 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5438 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5439 skipping dummy type units.
5440 (create_dwp_hash_table): Update the large comment above the function to
5441 discuss Version 5 DWP files as well, with references. Update all the
5442 version checks in the function to check for version 5 as well. Add new
5443 section at the end to create dwp hash table for version 5.
5444 (create_dwp_v2_section): Rename function to
5445 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5446 Add V5 to error message text.
5447 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5448 into calls to create_dwp_v2_or_v5_section.
5449 (create_dwo_unit_in_dwp_v5): New function.
5450 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5451 check for version2; add else clause to handle version 5.
5452 (open_and_init_dwo_file): Add code to check dwarf version & only call
5453 create_debug_types_hash_table (with sections.types) if version is not 5;
5454 else call create_debug_type_hash_table, with sections.info.
5455 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5456 version 5.
5457 (dwarf2_locate_v5_dwp_sections): New function.
5458 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5459 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5460
159ed7d9
SM
54612020-08-06 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * regcache.h (class regcache): Remove friend
5464 registers_changed_ptid.
5465 <regcache_thread_ptid_changed>: Remove.
5466 <regcaches>: Remove.
5467 * regcache.c (regcache::regcaches): Rename to...
5468 (regcaches): ... this. Make static.
5469 (get_thread_arch_aspace_regcache): Update.
5470 (regcache::regcache_thread_ptid_changed): Rename to...
5471 (regcache_thread_ptid_changed): ... this. Update.
5472 (class regcache_access): Remove.
5473 (regcaches_test): Update.
5474 (_initialize_regcache): Update.
5475 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5476 <forward_list>.
5477
174981ae
SM
54782020-08-06 Simon Marchi <simon.marchi@efficios.com>
5479
5480 * regcache.h (class regcache) <current_regcache>: Rename to...
5481 <regcaches>: ... this. Move doc here.
5482 * regcache.c (regcache::current_regcache) Rename to...
5483 (regcache::regcaches): ... this. Move doc to header.
5484 (get_thread_arch_aspace_regcache): Update.
5485 (regcache::regcache_thread_ptid_changed): Update.
5486 (registers_changed_ptid): Update.
5487 (class regcache_access) <current_regcache_size>: Rename to...
5488 <regcaches_size>: ... this.
5489 (current_regcache_test): Rename to...
5490 (regcaches_test): ... this.
5491 (_initialize_regcache): Update.
5492
ed908db6
VC
54932020-08-06 Victor Collod <vcollod@nvidia.com>
5494
5495 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5496
b5582ab7
KB
54972020-08-05 Kevin Buettner <kevinb@redhat.com>
5498
5499 * corelow.c (core_target::build_file_mappings): Don't output
5500 null pathname in warning.
5501
ea946b86
SM
55022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5505 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5506 gdb.dwarf2/dw2-single-line-discriminators.exp,
5507 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5508
57d02173
TT
55092020-08-05 Tom Tromey <tromey@adacore.com>
5510
5511 PR rust/26197:
5512 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5513 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5514 Fix off-by-one and type size errors in ordinary case.
5515
5555c86d
TV
55162020-08-05 Tom de Vries <tdevries@suse.de>
5517
5518 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5519 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5520
97916bfe
SM
55212020-08-04 Simon Marchi <simon.marchi@efficios.com>
5522
5523 * frame.h (frame_id_p): Return bool.
5524 (frame_id_artificial_p): Return bool.
5525 (frame_id_eq): Return bool.
5526 (has_stack_frames): Return bool.
5527 (get_selected_frame): Fix typo in comment.
5528 (get_frame_pc_if_available): Return bool.
5529 (get_frame_address_in_block_if_available): Return bool.
5530 (get_frame_func_if_available): Return bool.
5531 (read_frame_register_unsigned): Return bool.
5532 (get_frame_register_bytes): Return bool.
5533 (safe_frame_unwind_memory): Return bool.
5534 (deprecated_frame_register_read): Return bool.
5535 (frame_unwinder_is): Return bool.
5536 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5537 bool.
5538 <this_id::p>: Likewise.
5539 <prev_p>: Likewise.
5540 (frame_stash_add): Return bool.
5541 (get_frame_id): Use bool.
5542 (frame_id_build_special) Use bool.
5543 (frame_id_build_unavailable_stack): Use bool.
5544 (frame_id_build): Use bool.
5545 (frame_id_p): Return bool, use true/false instead of 1/0.
5546 (frame_id_artificial_p): Likewise.
5547 (frame_id_eq): Likewise.
5548 (frame_id_inner): Likewise.
5549 (get_frame_func_if_available): Likewise.
5550 (read_frame_register_unsigned): Likewise.
5551 (deprecated_frame_register_read): Likewise.
5552 (get_frame_register_bytes): Likewise.
5553 (has_stack_frames): Likewise.
5554 (inside_main_func): Likewise.
5555 (inside_entry_func): Likewise.
5556 (get_frame_pc_if_available): Likewise.
5557 (get_frame_address_in_block_if_available): Likewise.
5558 (frame_unwinder_is): Likewise.
5559 (safe_frame_unwind_memory): Likewise.
5560 (frame_unwind_arch): Likewise.
5561
fedfee88
SM
55622020-08-04 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5565 type to cached_copy_status.
5566 (fprintf_frame): Adjust.
5567 (get_frame_func_if_available): Adjust.
5568 (frame_cleanup_after_sniffer): Adjust.
5569
6cfa9b59
MW
55702020-08-04 Mark Wielaard <mark@klomp.org>
5571
5572 * MAINTAINERS (Write After Approval): Update email address.
5573
66d6346b
SM
55742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5577 dynamic_prop::const_val.
5578
8a6d5e35
SM
55792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5582 dynamic_prop::kind.
5583
51d6067d
SM
55842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5587
b26e2ae7
JM
55882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5589
5590 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5591
39791af2
JM
55922020-08-04 Weimin Pan <weimin.pan@oracle.com>
5593 Jose E. Marchesi <jose.marchesi@oracle.com>
5594
5595 * configure.tgt: Add entry for bpf-*-*.
5596 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5597 (ALLDEPFILES): Add bpf-tdep.c.
5598 * bpf-tdep.c: New file.
5599 * MAINTAINERS: Add bpf target and maintainer.
5600 * NEWS: Mention the support for the new target.
5601
521894aa
TV
56022020-08-04 Tom de Vries <tdevries@suse.de>
5603
5604 PR symtab/23270
5605 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5606 Error.
5607
5d6356e9
JB
56082020-08-03 John Baldwin <jhb@FreeBSD.org>
5609
5610 * syscalls/freebsd.xml: Regenerate.
5611
0cf82b81
JB
56122020-08-03 John Baldwin <jhb@FreeBSD.org>
5613
5614 * syscalls/update-freebsd.sh: Fix usage and year range.
5615
8f34b746
TV
56162020-08-03 Tom de Vries <tdevries@suse.de>
5617
5618 PR symtab/26333
5619 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5620 DW_LNE_lo_user/DW_LNE_hi_user range.
5621
5e500d33
SM
56222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 PR ada/26318
5625 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5626 kind.
5627
78319c15
TBA
56282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5629
5630 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5631
4c55e970
TBA
56322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5633
5634 * breakpoint.c (set_breakpoint_condition): Update the condition
5635 expressions after checking that the input condition string parses
5636 successfully and does not contain junk at the end.
5637
1e620590
TBA
56382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5639
5640 * breakpoint.c (set_breakpoint_condition): Update the
5641 condition string after parsing the new condition successfully.
5642
c8693053
RO
56432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5644
5645 * proc-api.c (_STRUCTURED_PROC): Don't define.
5646 * proc-events.c: Likewise.
5647 * proc-flags.c: Likewise.
5648 * proc-why.c: Likewise.
5649 * procfs.c: Likewise.
5650
5651 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5652 * configure, config.in: Regenerate.
5653
5a99adb8
TV
56542020-07-30 Tom de Vries <tdevries@suse.de>
5655
5656 PR build/26320
5657 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5658 m_red/m_green/m_blue in a union.
5659
8ba83e91
TV
56602020-07-29 Tom de Vries <tdevries@suse.de>
5661
5662 PR tdep/26280
5663 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5664
f75a0693
AB
56652020-07-28 Tom Tromey <tromey@adacore.com>
5666
5667 PR symtab/26270:
5668 * symtab.h (find_pc_partial_function_sym): Declare.
5669 * cli/cli-cmds.c (disassemble_command): Use
5670 find_pc_partial_function_sym. Check asm_demangle.
5671 * blockframe.c (cache_pc_function_sym): New global.
5672 (cache_pc_function_name): Remove.
5673 (clear_pc_function_cache): Update.
5674 (find_pc_partial_function_sym): New function, from
5675 find_pc_partial_function.
5676 (find_pc_partial_function): Rewrite using
5677 find_pc_partial_function_sym.
5678
16f3242c
TT
56792020-07-28 Tom Tromey <tromey@adacore.com>
5680
5681 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5682 help. Add usage.
5683
4888741a
TT
56842020-07-28 Tom Tromey <tromey@adacore.com>
5685
5686 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5687 <DW_OP_GNU_variable_value>: Cast to address type.
5688
4d46f402
KR
56892020-07-28 Kamil Rytarowski <n54@gmx.com>
5690
5691 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5692 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5693 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5694 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5695 (nbsd_get_siginfo_type): New.
5696 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5697 (_initialize_nbsd_tdep): New.
5698
d70f978b
L
56992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5700
5701 PR binutils/26301
5702 * configure: Regenerated.
5703
377170fa
L
57042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5705
5706 PR binutils/26301
5707 * configure: Regenerated.
5708
43d5901d
AB
57092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * python/py-frame.c: Remove 'user-regs.h' include.
5712 (frapy_read_register): Rewrite to make use of
5713 gdbpy_parse_register_id.
5714 * python/py-registers.c (gdbpy_parse_register_id): New function,
5715 moved here from python/py-unwind.c. Updated the return type, and
5716 also accepts register descriptor objects.
5717 * python/py-unwind.c: Remove 'user-regs.h' include.
5718 (pyuw_parse_register_id): Moved to python/py-registers.c.
5719 (unwind_infopy_add_saved_register): Update to use
5720 gdbpy_parse_register_id.
5721 (pending_framepy_read_register): Likewise.
5722 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5723
14fa8fb3
AB
57242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5725
5726 * python/py-registers.c: Add 'user-regs.h' include.
5727 (register_descriptor_iter_find): New function.
5728 (register_descriptor_iterator_object_methods): New static global
5729 methods array.
5730 (register_descriptor_iterator_object_type): Add pointer to methods
5731 array.
5732
ddce1758
JB
57332020-07-27 John Baldwin <jhb@FreeBSD.org>
5734
5735 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5736 for all architectures on FreeBSD 11.3 and later.
5737
a4089f52
TT
57382020-07-27 Tom Tromey <tromey@adacore.com>
5739
5740 * gcore.h (load_corefile): Don't declare.
5741
95420d30
TV
57422020-07-27 Tom de Vries <tdevries@suse.de>
5743
5744 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5745 * config.in: Regenerate.
5746 * configure: Regenerate.
5747
05a6b8c2
EZ
57482020-07-26 Eli Zaretskii <eliz@gnu.org>
5749
5750 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5751 ws2tcpip.h. When checking whether socklen_t type is defined, use
5752 ws2tcpip.h if it is available and sys/socket.h isn't.
5753 * configure: Regenerate.
5754 * config.in: Regenerate.
5755
e79eb02f
AB
57562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 PR fortran/23051
5759 PR fortran/26139
5760 * valops.c (value_ind): Pass address to
5761 readjust_indirect_value_type.
5762 * value.c (readjust_indirect_value_type): Make parameter
5763 non-const, and add extra address parameter. Resolve original type
5764 before using it.
5765 * value.h (readjust_indirect_value_type): Update function
5766 signature and comment.
5767
876518dd
TV
57682020-07-25 Tom de Vries <tdevries@suse.de>
5769
5770 PR symtab/26243
5771 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5772 entries.
5773
f6720b1c
AM
57742020-07-24 Aaron Merey <amerey@redhat.com>
5775
5776 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5777 * configure: Rebuild.
5778
513487e1
KB
57792020-07-23 Kevin Buettner <kevinb@redhat.com>
5780
5781 PR corefiles/26294
5782 * corelow.c (_initialize_corelow): Add period to help text
5783 for "maintenance print core-file-backed-mappings".
5784
e7bc9db8
PA
57852020-07-23 Pedro Alves <pedro@palves.net>
5786
5787 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5788 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5789 meanwhile.
5790 * frame.c (frame_cache_generation, get_frame_cache_generation):
5791 New.
5792 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5793 (get_prev_frame_if_no_cycle): On exception, don't touch
5794 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5795 * frame.h (get_frame_cache_generation): Declare.
5796
90fcc466
TV
57972020-07-23 Tom de Vries <tdevries@suse.de>
5798
5799 PR tui/26282
5800 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5801 New default constructor.
5802
78344df7
AB
58032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5804
5805 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5806 exclude non-statement entries.
5807
b089853a
KB
58082020-07-22 Kevin Buettner <kevinb@redhat.com>
5809
5810 * NEWS (New commands): Mention new command
5811 "maintenance print core-file-backed-mappings".
5812
09c2f5d4
KB
58132020-07-22 Kevin Buettner <kevinb@redhat.com>
5814
5815 * corelow.c (gdbcmd.h): Include.
5816 (core_target::info_proc_mappings): New method.
5817 (get_current_core_target): New function.
5818 (maintenance_print_core_file_backed_mappings): New function.
5819 (_initialize_corelow): Add core-file-backed-mappings to
5820 "maint print" commands.
5821
9c5ec5c2 58222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5823
9c5ec5c2
KB
5824 * linux-tdep.c (dump_note_entry_p): New function.
5825 (linux_dump_mapping_p_ftype): New typedef.
5826 (linux_find_memory_regions_full): Add new parameter,
5827 should_dump_mapping_p.
5828 (linux_find_memory_regions): Adjust call to
5829 linux_find_memory_regions_full.
5830 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5831 call to linux_find_memory_regions_full.
5832
db082f59
KB
58332020-07-22 Kevin Buettner <kevinb@redhat.com>
5834
5835 * corelow.c (solist.h, unordered_map): Include.
5836 (class core_target): Add field m_core_file_mappings and
5837 method build_file_mappings.
5838 (core_target::core_target): Call build_file_mappings.
5839 (core_target::~core_target): Free memory associated with
5840 m_core_file_mappings.
5841 (core_target::build_file_mappings): New method.
5842 (core_target::xfer_partial): Use m_core_file_mappings
5843 for memory transfers.
5844 * linux-tdep.c (linux_read_core_file_mappings): New
5845 function.
5846 (linux_core_info_proc_mappings): Rewrite to use
5847 linux_read_core_file_mappings.
5848 (linux_init_abi): Register linux_read_core_file_mappings.
5849
7e183d27
KB
58502020-07-22 Kevin Buettner <kevinb@redhat.com>
5851
5852 * arch-utils.c (default_read_core_file_mappings): New function.
5853 * arch-utils.c (default_read_core_file_mappings): Declare.
5854 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5855 * gdbarch.h, gdbarch.c: Regenerate.
5856
2735d421
KB
58572020-07-22 Kevin Buettner <kevinb@redhat.com>
5858
5859 PR corefiles/25631
5860 * corelow.c (core_target:xfer_partial): Revise
5861 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5862 case after first checking the stratum beneath the core
5863 target.
5864 (has_all_memory): Return true.
5865 * target.c (raw_memory_xfer_partial): Revise comment
5866 regarding use of has_all_memory.
5867
e56cb451
KB
58682020-07-22 Kevin Buettner <kevinb@redhat.com>
5869
5870 * exec.h (section_table_xfer_memory): Revise declaration,
5871 replacing section name parameter with an optional callback
5872 predicate.
5873 * exec.c (section_table_xfer_memory): Likewise.
5874 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5875 of section_table_xfer_memory.
5876
32fa152e
TT
58772020-07-22 Tom Tromey <tromey@adacore.com>
5878
5879 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5880 lookup_symbol_search_name.
5881
a67a1c41
AB
58822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5883
5884 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5885 redundant local variable.
5886 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5887 reference, not pointer, update code accordingly.
5888
a7b4ff4f
SM
58892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5890 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5891
5892 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5893 * jit.c (jit_breakpoint_re_set_internal): Use the
5894 `skip_jit_symbol_lookup` field.
5895
2340e834
SM
58962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5897 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5898
5899 * jit.c (jit_read_descriptor): Define the descriptor address once,
5900 use twice.
5901 (jit_breakpoint_deleted): Move the declaration of the loop variable
5902 `iter` into the loop header.
5903 (jit_breakpoint_re_set_internal): Move the declaration of the local
5904 variable `objf_data` to the first point of definition.
5905 (jit_event_handler): Move the declaration of local variables
5906 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5907 Rename `objf` to `jited`.
5908
c1072906
SM
59092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5912 Remove.
5913 * jit.c (get_jiter_objfile_data): Update.
5914
c8474dc3
TBA
59152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5916 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * jit.c (struct jit_program_space_data): Remove.
5919 (jit_program_space_key): Remove.
5920 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5921 stuff.
5922 (get_jit_program_space_data): Remove.
5923 (jit_breakpoint_deleted): Iterate on all of the program space's
5924 objfiles.
5925 (jit_inferior_init): Likewise.
5926 (jit_breakpoint_re_set_internal): Likewise. Also change return
5927 type to void.
5928 (jit_breakpoint_re_set): Pass current_program_space to
5929 jit_breakpoint_re_set_internal.
5930
77208eb7
SM
59312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * jit.h (struct jiter_objfile_data) <cached_code_address,
5934 jit_breakpoint>: Move to here from ...
5935 * jit.c (jit_program_space_data): ... here.
5936 (jiter_objfile_data::~jiter_objfile_data): Update.
5937 (jit_breakpoint_deleted): Update.
5938 (jit_breakpoint_re_set_internal): Update.
5939
8c1c720f
SM
59402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5941
5942 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5943 checks.
5944 (jit_read_descriptor): Remove NULL check.
5945 (jit_event_handler): Add an assertion.
5946
0e74a041
SM
59472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * jit.h (struct jit_objfile_data): Split into...
5950 (struct jiter_objfile_data): ... this ...
5951 (struct jited_objfile_data): ... and this.
5952 * objfiles.h (struct objfile) <jit_data>: Remove.
5953 <jiter_data, jited_data>: New fields.
5954 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5955 (jiter_objfile_data::~jiter_objfile_data): ... this.
5956 (get_jit_objfile_data): Rename to ...
5957 (get_jiter_objfile_data): ... this.
5958 (add_objfile_entry): Update.
5959 (jit_read_descriptor): Use get_jiter_objfile_data.
5960 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5961 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5962 (jit_inferior_exit_hook): Use objfile's jited_data field.
5963
238b5c9f
SM
59642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * jit.h: Forward-declare `struct minimal_symbol`.
5967 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5968 constructor, destructor, and an objfile* field.
5969 * jit.c (jit_objfile_data): Remove.
5970 (struct jit_objfile_data): Migrate from here to jit.h.
5971 (jit_objfile_data::~jit_objfile_data): New destructor
5972 implementation with code moved from free_objfile_data.
5973 (free_objfile_data): Delete.
5974 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5975 (jit_find_objf_with_entry_addr): Ditto.
5976 (jit_inferior_exit_hook): Ditto.
5977 (_initialize_jit): Remove the call to
5978 register_objfile_data_with_cleanup.
5979 * objfiles.h (struct objfile) <jit_data>: New field.
5980
fe053b9e
TBA
59812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5982
5983 * jit.h: Forward-declare `struct objfile`.
5984 (jit_event_handler): Add a second parameter, the JITer objfile.
5985 * jit.c (jit_read_descriptor): Change the signature to take the
5986 JITer objfile as an argument instead of the jit_program_space_data.
5987 (jit_inferior_init): Update the call to jit_read_descriptor.
5988 (jit_event_handler): Use the new JITer objfile argument when calling
5989 jit_read_descriptor.
5990 * breakpoint.c (handle_jit_event): Update the call to
5991 jit_event_handler to pass the JITer objfile.
5992
4cec0c66
JB
59932020-07-21 John Baldwin <jhb@FreeBSD.org>
5994
5995 * gdbarch.c: Regenerate.
5996 * gdbarch.h: Regenerate.
5997 * gdbarch.sh (handle_segmentation_fault): Remove method.
5998 * infrun.c (handle_segmentation_fault): Remove.
5999 (print_signal_received_reason): Remove call to
6000 handle_segmentation_fault.
6001
0e42f66a
JB
60022020-07-21 John Baldwin <jhb@FreeBSD.org>
6003
6004 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6005 Rename to sparc64_linux_report_signal_info and add siggnal
6006 argument.
6007 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6008 instead of sparc64_linux_handle_segmentation_fault.
6009
77bdfeb2
JB
60102020-07-21 John Baldwin <jhb@FreeBSD.org>
6011
6012 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6013 i386_linux_report_signal_info instead of
6014 i386_linux_handle_segmentation_fault.
6015 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6016 to i386_linux_report_signal_info and add siggnal argument.
6017 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6018 of i386_linux_handle_segmentation_fault.
6019 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6020 to i386_linux_report_signal_info and add siggnal argument.
6021
ad97bfc5
JB
60222020-07-21 John Baldwin <jhb@FreeBSD.org>
6023
6024 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6025 hook if present.
6026
272bb05c
JB
60272020-07-21 John Baldwin <jhb@FreeBSD.org>
6028
6029 * gdbarch.c: Regenerate.
6030 * gdbarch.h: Regenerate.
6031 * gdbarch.sh (report_signal_info): New method.
6032 * infrun.c (print_signal_received_reason): Invoke gdbarch
6033 report_signal_info hook if present.
6034
baf8791e
AB
60352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6036
6037 * python/py-registers.c : Add 'unordered_map' include.
6038 (gdbpy_new_reggroup): Renamed to...
6039 (gdbpy_get_reggroup): ...this. Update to only create register
6040 group descriptors when needed.
6041 (gdbpy_reggroup_iter_next): Update.
6042
f7306dac
AB
60432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6044
6045 * python/py-registers.c (gdbpy_register_object_data): New static
6046 global.
6047 (gdbpy_register_object_data_init): New function.
6048 (gdbpy_new_register_descriptor): Renamed to...
6049 (gdbpy_get_register_descriptor): ...this, and update to reuse
6050 existing register descriptors where possible.
6051 (gdbpy_register_descriptor_iter_next): Update.
6052 (gdbpy_initialize_registers): Register new gdbarch data.
6053
05c309a8
SM
60542020-07-21 Simon Marchi <simon.marchi@efficios.com>
6055
6056 * linux-nat.c (stopped_pids): Make static.
6057
d1fd641e
SM
60582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 PR ada/26235
6061 * gdbtypes.c (ada_discrete_type_low_bound,
6062 ada_discrete_type_high_bound): Handle undefined bounds.
6063
1de14d77
KR
60642020-07-21 Kamil Rytarowski <n54@gmx.com>
6065
6066 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6067 declaration.
6068 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6069 function.
6070
ed810cc7
JB
60712020-07-20 John Baldwin <jhb@FreeBSD.org>
6072
6073 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6074 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6075 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6076 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6077 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6078 method.
6079
ae5369e7
LC
60802020-07-20 Ludovic Courtès <ludo@gnu.org>
6081
6082 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6083 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6084 which are deprecated in Guile 3.0.
6085 * configure.ac (try_guile_versions): Add "guile-3.0".
6086 * configure (try_guile_versions): Regenerate.
6087 * NEWS: Update entry.
6088
68cf161c
LC
60892020-07-20 Ludovic Courtès <ludo@gnu.org>
6090 Doug Evans <dje@google.com>
6091
6092 PR gdb/21104
6093 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6094 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6095 USING_GUILE_BEFORE_2_2.
6096 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6097 Change type to 'scm_t_port_type *'.
6098 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6099 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6100 parameter and honor it. Update callers.
6101 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6102 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6103 functions.
6104 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6105 USING_GUILE_BEFORE_2_2.
6106 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6107 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6108 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6109 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6110 and 'SCM_PORT_TYPE'.
6111 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6112 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6113 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6114 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6115 [!USING_GUILE_BEFORE_2_2]: New functions.
6116 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6117 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6118 'gdbscm_memory_port_read'.
6119 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6120 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6121 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6122 function.
6123 (ioscm_init_memory_port): Remove.
6124 (ioscm_init_memory_port_stream): New function
6125 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6126 function.
6127 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6128 Return scm_from_uint (0).
6129 (gdbscm_set_memory_port_read_buffer_size_x)
6130 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6131 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6132 Return scm_from_uint (0).
6133 (gdbscm_set_memory_port_write_buffer_size_x)
6134 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6135 * configure.ac (try_guile_versions): Add "guile-2.2".
6136 * configure: Regenerate.
6137 * NEWS: Add entry.
6138
aee91db3
TT
61392020-07-18 Tom Tromey <tom@tromey.com>
6140
6141 * linux-nat.c (linux_multi_process): Remove.
6142 (linux_nat_target::supports_multi_process): Return true.
6143
0e267416
AB
61442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6145
6146 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6147 (riscv_lookup_target_description): Return pointer out of
6148 unique_ptr.
6149 * target-descriptions.c (allocate_target_description): Add
6150 comment.
6151 (target_desc_deleter::operator()): Likewise.
6152 * target-descriptions.h (struct target_desc_deleter): Moved to
6153 gdbsupport/tdesc.h.
6154 (target_desc_up): Likewise.
6155
f80c8ec4
TT
61562020-07-17 Tom Tromey <tromey@adacore.com>
6157
6158 * linux-nat.c (linux_nat_target::supports_non_stop)
6159 (linux_nat_target::always_non_stop_p): Use "true".
6160 (linux_nat_target::supports_disable_randomization): Use "true" and
6161 "false".
6162
d0ce17d8
CT
61632020-07-16 Caroline Tice <cmtice@google.com>
6164
6165 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6166 (RNGLIST_HEADER_SIZE64): New constant definition.
6167 (struct dwop_section_names): Add rnglists_dwo.
6168 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6169 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6170 (struct dwo_sections): Add rnglists field.
6171 (read_attribut_reprocess): Add tag parameter.
6172 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6173 (cu_debug_rnglists_section): New function (decl & definition).
6174 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6175 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6176 die whose range is being checked; get rnglist section from
6177 cu_debug_rnglists_section, to get from either objfile or dwo file as
6178 appropriate. Add cases for DW_RLE_base_addressx,
6179 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6180 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6181 test inside if-condition and updating complaint message.
6182 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6183 dwarf2_rnglists_process.
6184 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6185 dwarf2_ranges_process.
6186 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6187 need_ranges_base and update comment appropriately. Also pass die tag
6188 to dwarf2_ranges_read.
6189 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6190 need_ranges_base and update comment appropriately. Also pass die tag
6191 to dwarf2_ranges_process.
6192 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6193 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6194 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6195 need_ranges_base and update comment appropriately. Also pass die tag
6196 to read_attribute_reprocess and dwarf2_ranges_read.
6197 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6198 and update function comment appropriately.
6199 (read_loclist_index): Call read_loclists_rnglists_header instead of
6200 read_loclist_header.
6201 (read_rnglist_index): New function.
6202 (read_attribute_reprocess): Add tag parameter. Add code for
6203 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6204 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6205
3dcc261c
AB
62062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6209 being resolved.
6210
ccb9eba6
AB
62112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * arch-utils.c (show_architecture): Update formatting of messages.
6214
cf88be68
SM
62152020-07-12 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * gdbtypes.h (struct type) <bounds>: Handle array and string
6218 types.
6219 * ada-lang.c (assign_aggregate): Use type::bounds on
6220 array/string type.
6221 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6222 * c-varobj.c (c_number_of_children): Likewise.
6223 (c_describe_child): Likewise.
6224 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6225 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6226 (f_type_print_base): Likewise.
6227 * f-valprint.c (f77_array_offset_tbl): Likewise.
6228 (f77_get_upperbound): Likewise.
6229 (f77_print_array_1): Likewise.
6230 * guile/scm-type.c (gdbscm_type_range): Likewise.
6231 * m2-typeprint.c (m2_array): Likewise.
6232 (m2_is_long_set_of_type): Likewise.
6233 * m2-valprint.c (get_long_set_bounds): Likewise.
6234 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6235 * python/py-type.c (typy_range): Likewise.
6236 * rust-lang.c (rust_internal_print_type): Likewise.
6237 * type-stack.c (type_stack::follow_types): Likewise.
6238 * valarith.c (value_subscripted_rvalue): Likewise.
6239 * valops.c (value_cast): Likewise.
6240
509971ae
SM
62412020-07-12 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6244 callers to use the equivalent accessor methods.
6245
107406b7
SM
62462020-07-12 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6249 (struct type) <bit_stride>: New method.
6250 (TYPE_BIT_STRIDE): Remove.
6251 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6252
bb789949
SM
62532020-07-12 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6256 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6257 callers to use the equivalent accessor methods instead.
6258
39498edb
SM
62592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6262 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6263 callers to use the equivalent accessor methods instead.
6264
3b606f38
SM
62652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6266
6267 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6268 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6269 to use dynamic_prop::kind.
6270
064d9cb9
SM
62712020-07-12 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6274 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6275 to get the bound property's kind and check against
6276 PROP_UNDEFINED.
6277
5537ddd0
SM
62782020-07-12 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6281 all callers to use type::range_bounds followed by
6282 dynamic_prop::{low,high}.
6283
8c2e4e06
SM
62842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6285
6286 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6287 const_val, set_const_val, baton, set_locexpr, set_loclist,
6288 set_addr_offset, variant_parts, set_variant_parts,
6289 original_type, set_original_type>: New methods.
6290 <kind>: Rename to...
6291 <m_kind>: ... this. Update all users to use the new methods
6292 instead.
6293 <data>: Rename to...
6294 <m_data>: ... this. Update all users to use the new methods
6295 instead.
6296
7c6f2712
SM
62972020-07-12 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * gdbtypes.c (get_discrete_bounds): Return failure if
6300 the range type's bounds are not both defined and constant
6301 values.
6302 (get_array_bounds): Update comment. Remove undefined bound check.
6303
599088e3
SM
63042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6307 the type::bounds method directly.
6308
c4dfcb36
SM
63092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6312 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6313 are used to set the range type's bounds to use set_bounds.
6314
0a278aa7
PW
63152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6318
cce20f10
PA
63192020-07-10 Pedro Alves <pedro@palves.net>
6320
6321 * gdbthread.h (inferior_ref): Define.
6322 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6323 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6324 * thread.c
6325 (scoped_restore_current_thread::restore):
6326 Adjust to gdb::ref_ptr.
6327 (scoped_restore_current_thread::~scoped_restore_current_thread):
6328 Remove manual decref handling.
6329 (scoped_restore_current_thread::scoped_restore_current_thread):
6330 Adjust to use
6331 inferior_ref::new_reference/thread_info_ref::new_reference.
6332 Incref the thread before calling get_frame_id instead of after.
6333 Let TARGET_CLOSE_ERROR propagate.
6334
6d7aa592
PA
63352020-07-10 Pedro Alves <pedro@palves.net>
6336
6337 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6338 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6339 NOT_AVAILABLE_ERROR.
6340 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6341 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6342
b3e3a4c1
SM
63432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6344 Pedro Alves <pedro@palves.net>
6345
6346 PR gdb/26199
6347 * infrun.c (threads_are_resumed_pending_p): Delete.
6348 (do_target_wait): Remove threads_are_executing and
6349 threads_are_resumed_pending_p checks from the inferior_matches
6350 lambda. Update comments.
6351
d6cc5d98
PA
63522020-07-10 Pedro Alves <pedro@palves.net>
6353
6354 PR gdb/26199
6355 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6356 executing threads.
6357
7d3badc6
PA
63582020-07-10 Pedro Alves <pedro@palves.net>
6359
6360 PR gdb/26199
6361 * infrun.c (handle_no_resumed): Handle multiple targets.
6362
42bd97a6
PA
63632020-07-10 Pedro Alves <pedro@palves.net>
6364
6365 PR gdb/26199
6366 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6367 target_is_async_p.
6368
43667cc6
PA
63692020-07-10 Pedro Alves <pedro@palves.net>
6370
6371 PR gdb/26199
6372 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6373 threads, not all threads.
6374
96118d11
PA
63752020-07-10 Pedro Alves <pedro@palves.net>
6376
6377 PR gdb/26199
6378 * remote.c (remote_target::open_1): Pass remote target pointer as
6379 data to create_async_event_handler.
6380 (remote_async_inferior_event_handler): Mark async event handler
6381 before returning if the remote target still has either pending
6382 events or unacknowledged notifications.
6383
54904d81
JB
63842020-07-10 John Baldwin <jhb@FreeBSD.org>
6385
6386 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6387 declaration.
6388 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6389 function.
6390
f37e5866
JB
63912020-07-09 John Baldwin <jhb@FreeBSD.org>
6392
6393 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6394 inferior_ptid.
6395
fc238d4a
JB
63962020-07-09 John Baldwin <jhb@FreeBSD.org>
6397
6398 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6399 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6400 AT_FREEBSD_PS_STRINGS.
6401
6e2469ff
HD
64022020-07-08 Hannes Domani <ssbssa@yahoo.de>
6403
6404 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6405 of debugfile path on Windows.
6406
d1076c41
JB
64072020-07-08 John Baldwin <jhb@FreeBSD.org>
6408
6409 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6410 argument to 'data'.
6411
15f3b077
TT
64122020-07-08 Tom Tromey <tromey@adacore.com>
6413
6414 * ada-lang.c (ada_exception_message_1): Use read_memory.
6415
9fc501fd
AB
64162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 PR python/22748
6419 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6420 special handling for inline frames.
6421 * findvar.c (value_of_register_lazy): Skip inline frames when
6422 creating lazy register values.
6423 * frame.c (frame_id_computed_p): Delete definition.
6424 * frame.h (frame_id_computed_p): Delete declaration.
6425
64cb3757
AB
64262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6427
6428 * NEWS: Mention additions to Python API.
6429 * python/py-arch.c (archpy_register_groups): New function.
6430 (arch_object_methods): Add 'register_groups' method.
6431 * python/py-registers.c (reggroup_iterator_object): New struct.
6432 (reggroup_object): New struct.
6433 (gdbpy_new_reggroup): New function.
6434 (gdbpy_reggroup_to_string): New function.
6435 (gdbpy_reggroup_name): New function.
6436 (gdbpy_reggroup_iter): New function.
6437 (gdbpy_reggroup_iter_next): New function.
6438 (gdbpy_new_reggroup_iterator): New function
6439 (gdbpy_initialize_registers): Register new types.
6440 (reggroup_iterator_object_type): Define new Python type.
6441 (gdbpy_reggroup_getset): New static global.
6442 (reggroup_object_type): Define new Python type.
6443 * python/python-internal.h
6444
0f767f94
AB
64452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6448 * python/py-arch.c (archpy_registers): New function.
6449 (arch_object_methods): Add 'registers' method.
6450 * python/py-registers.c: New file.
6451 * python/python-internal.h
6452 (gdbpy_new_register_descriptor_iterator): Declare.
6453 (gdbpy_initialize_registers): Declare.
6454 * python/python.c (do_start_initialization): Call
6455 gdbpy_initialize_registers.
6456 * NEWS: Mention additions to the Python API.
6457
87dbc774
AB
64582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6459
6460 * NEWS: Mention new Python API method.
6461 * python/py-unwind.c (pending_framepy_architecture): New function.
6462 (pending_frame_object_methods): Add architecture method.
6463
3bc98c0c
AB
64642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * gdbarch.c: Regenerate.
6467 * gdbarch.h: Regenerate.
6468 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6469 (gdbarch_data): Use internal_error for the case where
6470 deprecated_set_gdbarch_data was originally needed.
6471 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6472 and use passed in obstack.
6473 (libunwind_frame_set_descr): Should no longer get back NULL from
6474 gdbarch_data.
6475 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6476 type.
6477 * user-regs.c (user_regs_init): Update parameters, and use passed
6478 in obstack.
6479 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6480 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6481
d8cc8af6
TV
64822020-07-06 Tom de Vries <tdevries@suse.de>
6483
6484 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6485 End-Of-Sequence in lte_is_less_than.
6486 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6487 "gdb: Don't reorder line table entries too much when sorting".
6488
947f7597
TV
64892020-07-06 Tom de Vries <tdevries@suse.de>
6490
6491 PR tui/26205
6492 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6493
1e7c1b22
TV
64942020-07-05 Tom de Vries <tdevries@suse.de>
6495
6496 PR build/26187
6497 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6498 std::uncaught_exceptions instead of deprecated
6499 std::uncaught_exception.
6500
a36158ec
SM
65012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * macroexp.h (macro_stringify): Return
6504 gdb::unique_xmalloc_ptr<char>.
6505 * macroexp.c (macro_stringify): Likewise.
6506 * macrotab.c (fixup_definition): Update.
6507
14d960c8
SM
65082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6511 (lex_one_token): Update.
6512 * macroexp.c (struct macro_buffer) <release>: Return
6513 gdb::unique_xmalloc_ptr<char>.
6514 (macro_stringify): Update.
6515 (macro_expand): Update.
6516 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6517 * macroexp.h (macro_expand_next): Likewise.
6518
211d5b1c
SM
65192020-07-02 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * macroexp.h (macro_lookup_ftype): Remove.
6522 (macro_expand, macro_expand_once, macro_expand_next): Remove
6523 lookup function parameters, add scope parameter.
6524 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6525 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6526 * macroscope.h (standard_macro_lookup): Change parameter type
6527 to macro_scope.
6528 * macroscope.c (standard_macro_lookup): Likewise.
6529 * c-exp.y (lex_one_token): Update.
6530 * macrocmd.c (macro_expand_command): Likewise.
6531 (macro_expand_once_command): Likewise.
6532
b1a35af2
SM
65332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * inf-loop.c (inferior_event_handler): Remove client_data param.
6536 * inf-loop.h (inferior_event_handler): Likewise.
6537 * infcmd.c (step_1): Adjust.
6538 * infrun.c (proceed): Adjust.
6539 (fetch_inferior_event): Remove client_data param.
6540 (infrun_async_inferior_event_handler): Adjust.
6541 * infrun.h (fetch_inferior_event): Remove `void *` param.
6542 * linux-nat.c (handle_target_event): Adjust.
6543 * record-btrace.c (record_btrace_handle_async_inferior_event):
6544 Adjust.
6545 * record-full.c (record_full_async_inferior_event_handler):
6546 Adjust.
6547 * remote.c (remote_async_inferior_event_handler): Adjust.
6548
1cdf9e33
TT
65492020-07-01 Tom Tromey <tom@tromey.com>
6550
6551 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6552 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6553
32c1e210
TT
65542020-07-01 Tom Tromey <tom@tromey.com>
6555
6556 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6557 tui_gen_win_info.
6558 (tui_win_info::make_window): Merge with
6559 tui_gen_win_info::make_window.
6560 (tui_win_info::make_visible): Move from tui_gen_win_info.
6561 * tui/tui-win.c (tui_win_info::max_width): Move from
6562 tui_gen_win_info.
6563 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6564 type.
6565 <window_factory>: Likewise.
6566 * tui/tui-layout.c (tui_win_info::resize): Move from
6567 tui_gen_win_info.
6568 (make_standard_window): Change return type.
6569 (get_locator_window, tui_get_window_by_name): Likewise.
6570 (tui_layout_window::apply): Remove a cast.
6571 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6572 (struct tui_win_info): Merge with tui_gen_win_info.
6573 (struct tui_gen_win_info): Remove.
6574
a30cb6da
TT
65752020-07-01 Tom Tromey <tom@tromey.com>
6576
6577 * tui/tui-stack.h (struct tui_locator_window): Derive from
6578 tui_win_info.
6579 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6580 <can_box>: New method.
6581
1eb2161f
TT
65822020-07-01 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6585
7134f2eb
TT
65862020-07-01 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-regs.c (tui_data_window::display_registers_from)
6589 (tui_data_window::display_registers_from)
6590 (tui_data_window::first_data_item_displayed)
6591 (tui_data_window::delete_data_content_windows): Update.
6592 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6593 Remove.
6594 (tui_data_window::check_register_values): Update.
6595 (tui_data_item_window::rerender): Add parameters. Update.
6596 (tui_data_item_window::refresh_window): Remove.
6597 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6598 virtual.
6599 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6600 tui_gen_win_info.
6601 <refresh_window, max_height, min_height>: Remove.
6602 <rerender>: Add parameters.
6603 <x, y, visible>: New members.
6604 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6605 <m_item_width>: New member.
6606
22b7b041
TT
66072020-07-01 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-regs.c (tui_data_window::show_register_group)
6610 (tui_data_window::check_register_values): Update.
6611 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6612 from item_no.
6613
c9753adb
TT
66142020-07-01 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6617 useless "if".
6618
9ab26b4a
TT
66192020-07-01 Tom Tromey <tom@tromey.com>
6620
6621 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6622 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6623
e555083f
TT
66242020-07-01 Tom Tromey <tom@tromey.com>
6625
6626 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6627 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6628 (struct tui_line_or_address): Move from tui-data.h.
6629 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6630 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6631 (tui_cmd_window, tui_source_window_base, tui_source_window)
6632 (tui_disasm_window): Don't declare.
6633 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6634 to tui-winsource.h.
6635 (SINGLE_KEY): Move to tui-stack.c.
6636
7a02bab7
TT
66372020-07-01 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6640 std::string.
6641 * tui/tui-regs.c (class tab_expansion_file): New.
6642 (tab_expansion_file::write): New method.
6643 (tui_register_format): Change return type. Use
6644 tab_expansion_file.
6645 (tui_get_register, tui_data_window::display_registers_from)
6646 (tui_data_item_window::rerender): Update.
6647 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6648 * tui/tui-io.c (tui_expand_tabs): Remove.
6649
ea68593b
TT
66502020-07-01 Tom Tromey <tom@tromey.com>
6651
6652 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6653
a8caed5d
FS
66542020-07-01 Fangrui Song <maskray@google.com>
6655
6656 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6657
9cdf9820
AKS
66582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6659
6660 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6661 forms for DW_AT_associated and DW_AT_allocated attributes,
6662 which is already checked in function attr_to_dynamic_prop.
6663
a1520ad8
TT
66642020-06-30 Tom Tromey <tromey@adacore.com>
6665
6666 * dwarf2/read.c (quirk_rust_enum): Correctly call
6667 alloc_rust_variant for default-less enum.
6668
5ac58899
TT
66692020-06-30 Tom Tromey <tromey@adacore.com>
6670
6671 PR build/26183:
6672 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6673 gdb::to_string.
6674
19b187a9
SM
66752020-06-29 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6678 * gdbarch.h: Re-generate.
6679
cd4c4c07
TT
66802020-06-28 Tom Tromey <tom@tromey.com>
6681
6682 * command.h (cmd_types): Remove.
6683 (cmd_type): Don't declare.
6684 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6685 typedef.
6686 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6687 * cli/cli-decode.c (cmd_type): Remove.
6688
05779d57
PA
66892020-06-27 Pedro Alves <palves@redhat.com>
6690
6691 * fork-child.c (prefork_hook): Adjust.
6692 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6693 Delete.
6694 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6695 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6696 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6697 Remove declarations.
6698 (struct inferior) <set_tty, tty>: New methods.
6699 (struct inferior) <terminal>: Rename to ...
6700 (struct inferior) <m_terminal>: ... this and make private.
6701 * main.c (captured_main_1): Adjust.
6702 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6703 (mi_cmd_inferior_tty_show): Adjust.
6704 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6705 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6706
1776e3e5
NA
67072020-06-26 Nick Alcock <nick.alcock@oracle.com>
6708
6709 * configure.ac: Add --enable-libctf: handle --disable-static
6710 properly.
6711 * acinclude.m4: sinclude ../config/enable.m4.
6712 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6713 (LIBCTF): Substitute in.
6714 (CTF_DEPS): New, likewise.
6715 (CLIBS): libctf needs symbols from libbfd: move earlier.
6716 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6717 flags.
6718 * ctfread.c: Surround in ENABLE_LIBCTF.
6719 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6720 * configure: Regenerate.
6721 * config.in: Likewise.
6722
58373b80
SM
67232020-06-25 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6726
277474ee
SM
67272020-06-25 Simon Marchi <simon.marchi@efficios.com>
6728
6729 * inferior.h (struct inferior) <terminal>: Change type to
6730 gdb::unique_xmalloc_ptr<char>.
6731 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6732 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6733 field, adjust to unique pointer.
6734 (get_inferior_io_terminal): Adjust to unique pointer.
6735
6d74da72
AB
67362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6739 registers, not just the known core set of registers.
6740
2e52d038
AB
67412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6744 fflags, frm, and fcsr registers.
6745 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6746 restore groups.
6747 (riscv_tdesc_unknown_reg): New function.
6748 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6749 tdesc_use_registers.
6750 * riscv-tdep.h (struct gdbarch_tdep): Add
6751 unknown_csrs_first_regnum, unknown_csrs_count,
6752 duplicate_fflags_regnum, duplicate_frm_regnum, and
6753 duplicate_fcsr_regnum fields.
6754
be64fd07
AB
67552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6758 callback, use the callback (when not null) to help number unknown
6759 registers.
6760 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6761 (tdesc_use_registers): Add extra parameter to declaration.
6762
3b9fce96
AB
67632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6766 in the file.
6767 (class riscv_pending_register_alias): Likewise.
6768 (riscv_register_feature::register_info): Change 'required_p' field
6769 to 'required', and change its type. Add 'check' member function.
6770 (riscv_register_feature::register_info::check): Define new member
6771 function.
6772 (riscv_xreg_feature): Change initialisation of 'required' field.
6773 (riscv_freg_feature): Likewise.
6774 (riscv_virtual_feature): Likewise.
6775 (riscv_csr_feature): Likewise.
6776 (riscv_check_tdesc_feature): Take extra parameter, the csr
6777 tdesc_feature, rewrite the function to use the new
6778 riscv_register_feature::register_info::check function.
6779 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6780
865bad26
AB
67812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * features/Makefile: Remove all references to the deleted files
6784 below.
6785 * features/riscv/32bit-csr.c: Deleted.
6786 * features/riscv/32bit-csr.xml: Deleted.
6787 * features/riscv/64bit-csr.c: Deleted.
6788 * features/riscv/64bit-csr.xml: Deleted.
6789 * features/riscv/rebuild-csr-xml.sh: Deleted.
6790
ed69cbc8
AB
67912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6794 whitespace error for declaration of names member variable.
6795 (struct riscv_register_feature): Add new prefer_first_name member
6796 variable, and fix whitespace error in declaration of registers.
6797 (riscv_xreg_feature): Initialize prefer_first_name field.
6798 (riscv_freg_feature): Likewise.
6799 (riscv_virtual_feature): Likewise.
6800 (riscv_csr_feature): Likewise.
6801 (riscv_register_name): Expand on comments. Remove register name
6802 modifications for CSR and virtual registers.
6803
4445e8f5
AB
68042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6807 errors.
6808
767a879e
AB
68092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6810
6811 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6812 riscv-opc.h.
6813 (class riscv_pending_register_alias): New class.
6814 (riscv_check_tdesc_feature): Take vector of pending aliases and
6815 populate it as appropriate.
6816 (riscv_setup_register_aliases): Delete.
6817 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6818 to riscv_check_tdesc_feature in all cases. Use the vector to
6819 create the register aliases.
6820
bb6e55f3
RO
68212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6822
6823 * sol2-tdep.c (sol2_static_transform_name): Remove.
6824 (sol2_init_abi): Don't register it.
6825 * gdbarch.sh (static_transform_name): Remove.
6826 * gdbarch.c, gdbarch.h: Regenerate.
6827
6828 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6829 gdbarch_static_transform_name.
6830 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6831 * stabsread.c (define_symbol) <'X'>: Remove.
6832 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6833 handling.
6834 <'V'>: Likewise.
6835 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6836 <'S'>: Remove call to gdbarch_static_transform_name.
6837
c6d36836
RO
68382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6839
6840 * procfs.c (procfs_pre_trace): New function.
6841 (procfs_target::create_inferior): Pass it to fork_inferior.
6842
a7e6196b
RO
68432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6844
6845 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6846 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6847 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6848 sol2-tdep.o, sparc-sol2-tdep.o.
6849 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6850 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6851 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6852 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6853
d412e696
RO
68542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6855
6856 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6857 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6858 Call sol2_init_abi.
6859 Remove calls to set_gdbarch_skip_solib_resolver,
6860 set_gdbarch_core_pid_to_str.
6861 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6862 (i386_sol2_static_transform_name): Remove.
6863 (i386_sol2_init_abi): Call sol2_init_abi.
6864 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6865 set_gdbarch_static_transform_name,
6866 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6867 Use sol2_sigtramp_p.
6868 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6869 (sol2_sigtramp_p): New function.
6870 (sol2_static_transform_name): New function.
6871 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6872 (sol2_init_abi): New function.
6873 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6874 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6875 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6876 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6877 (sparc_sol2_static_transform_name): Remove.
6878 (sparc32_sol2_init_abi): Call sol2_init_abi.
6879 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6880 set_gdbarch_static_transform_name,
6881 set_gdbarch_skip_solib_resolver,
6882 set_gdbarch_core_pid_to_str.
6883 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6884 (sparc_sol2_static_transform_name): Remove
6885 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6886 call sol2_sigtramp_p.
6887 (sparc64_sol2_init_abi): Call sol2_init_abi.
6888 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6889 set_gdbarch_static_transform_name,
6890 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6891
a8654e7d
PW
68922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6893
6894 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6895 * exec.c (validate_exec_file): If from_tty, set both
6896 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6897 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6898 and from_tty, unconditionally ask a confirmation.
6899
caa7fd04
AB
69002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * target-descriptions.c (tdesc_architecture_name): Protect against
6903 NULL pointer dereference.
6904 (maint_print_xml_tdesc_cmd): New function.
6905 (_initialize_target_descriptions): Register new 'maint print
6906 xml-tdesc' command and give it the filename completer.
6907 * NEWS: Mention new 'maint print xml-tdesc' command.
6908
fbf42f4e
AB
69092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 * target-descriptions.c (class tdesc_compatible_info): New class.
6912 (struct target_desc): Change type of compatible vector.
6913 (tdesc_compatible_p): Update for change in type of
6914 target_desc::compatible.
6915 (tdesc_compatible_info_list): New function.
6916 (tdesc_compatible_info_arch_name): New function.
6917 (tdesc_add_compatible): Update for change in type of
6918 target_desc::compatible.
6919 (print_c_tdesc::visit_pre): Likewise.
6920
20821f4e
AB
69212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6922
6923 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6924 whitespace to underscore.
6925 (maint_print_c_tdesc_cmd): Use fake filename for target
6926 descriptions that came from the target.
6927 (_initialize_target_descriptions): Add filename command completion
6928 for 'maint print c-tdesc'.
6929
1fb5ee62
SM
69302020-06-23 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6933 lines.
6934
fc3ecb3e
SM
69352020-06-23 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6938 lines.
6939 (dwarf2_find_location_expression): Likewise.
6940 (call_site_parameter_matches): Likewise.
6941 (dwarf2_compile_expr_to_ax): Likewise.
6942 (disassemble_dwarf_expression): Likewise.
6943 (loclist_describe_location): Likewise.
6944
236ef034
PA
69452020-06-23 Pedro Alves <palves@redhat.com>
6946
6947 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6948 progspace-and-thread.h. Include scoped-mock-context.h instead.
6949 (register_to_value_test): Use scoped_mock_context.
6950 * regcache.c: Include "scoped-mock-context.h".
6951 (cooked_read_test): Don't error out if a target is already pushed.
6952 Use scoped_mock_context. Adjust.
6953 * scoped-mock-context.h: New file.
6954
39e7ecca
AB
69552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6958 initializer.
6959 (ada_language::is_string_type_p): New member function.
6960 * c-lang.c (c_language_data): Delete la_is_string_type_p
6961 initializer.
6962 (cplus_language_data): Likewise.
6963 (asm_language_data): Likewise.
6964 (minimal_language_data): Likewise.
6965 * d-lang.c (d_language_data): Likewise.
6966 * f-lang.c (f_is_string_type_p): Delete function, implementation
6967 moved to f_language::is_string_type_p.
6968 (f_language_data): Delete la_is_string_type_p initializer.
6969 (f_language::is_string_type_p): New member function,
6970 implementation from f_is_string_type_p.
6971 * go-lang.c (go_is_string_type_p): Delete function, implementation
6972 moved to go_language::is_string_type_p.
6973 (go_language_data): Delete la_is_string_type_p initializer.
6974 (go_language::is_string_type_p): New member function,
6975 implementation from go_is_string_type_p.
6976 * language.c (language_defn::is_string_type_p): Define new member
6977 function.
6978 (default_is_string_type_p): Make static, add comment copied from
6979 header file.
6980 (unknown_language_data): Delete la_is_string_type_p initializer.
6981 (unknown_language::is_string_type_p): New member function.
6982 (auto_language_data): Delete la_is_string_type_p initializer.
6983 (auto_language::is_string_type_p): New member function.
6984 * language.h (language_data): Delete la_is_string_type_p field.
6985 (language_defn::is_string_type_p): Declare new function.
6986 (default_is_string_type_p): Delete desclaration, move comment to
6987 definition.
6988 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6989 moved to m2_language::is_string_type_p.
6990 (m2_language_data): Delete la_is_string_type_p initializer.
6991 (m2_language::is_string_type_p): New member function,
6992 implementation from m2_is_string_type_p.
6993 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6994 initializer.
6995 * opencl-lang.c (opencl_language_data): Likewise.
6996 * p-lang.c (pascal_is_string_type_p): Delete function,
6997 implementation moved to pascal_language::is_string_type_p.
6998 (pascal_language_data): Delete la_is_string_type_p initializer.
6999 (pascal_language::is_string_type_p): New member function,
7000 implementation from pascal_is_string_type_p.
7001 * rust-lang.c (rust_is_string_type_p): Delete function,
7002 implementation moved to rust_language::is_string_type_p.
7003 (rust_language_data): Delete la_is_string_type_p initializer.
7004 (rust_language::is_string_type_p): New member function,
7005 implementation from rust_is_string_type_p.
7006 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7007 is_string_type_p.
7008
4ffc13fb
AB
70092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * ada-lang.c (ada_language_data): Delete la_print_typedef
7012 initializer.
7013 (ada_language::print_typedef): New member function.
7014 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7015 (cplus_language_data): Likewise.
7016 (asm_language_data): Likewise.
7017 (minimal_language_data): Likewise.
7018 * d-lang.c (d_language_data): Likewise.
7019 * f-lang.c (f_language_data): Likewise.
7020 (f_language::print_typedef): New member function.
7021 * go-lang.c (go_language_data): Delete la_print_typedef
7022 initializer.
7023 * language.c (language_defn::print_typedef): Define member
7024 function.
7025 (unknown_language_data): Delete la_print_typedef initializer.
7026 (unknown_language::print_typedef): New member function.
7027 (auto_language_data): Delete la_print_typedef initializer.
7028 (auto_language::print_typedef): New member function.
7029 * language.h (language_data): Delete la_print_typedef field.
7030 (language_defn::print_typedef): Declare new member function.
7031 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7032 (default_print_typedef): Delete declaration.
7033 * m2-lang.c (m2_language_data): Delete la_print_typedef
7034 initializer.
7035 (m2_language::print_typedef): New member function.
7036 * objc-lang.c (objc_language_data): Delete la_print_typedef
7037 initializer.
7038 * opencl-lang.c (opencl_language_data): Likewise.
7039 * p-lang.c (pascal_language_data): Likewise.
7040 (pascal_language::print_typedef): New member function.
7041 * rust-lang.c (rust_print_typedef): Delete function,
7042 implementation moved to rust_language::print_typedef.
7043 (rust_language): Delete la_print_typedef initializer.
7044 (rust_language::print_typedef): New member function,
7045 implementation from rust_print_typedef.
7046 * typeprint.c (default_print_typedef): Delete.
7047
d711ee67
AB
70482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7051 (ada_language::printstr): New member function.
7052 * c-lang.c (c_language_data): Delete la_printstr initializer.
7053 (cplus_language_data): Likewise.
7054 (asm_language_data): Likewise.
7055 (minimal_language_data): Likewise.
7056 * d-lang.c (d_language_data): Likewise.
7057 * f-lang.c (f_printstr): Rename to f_language::printstr.
7058 (f_language_data): Delete la_printstr initializer.
7059 (f_language::printstr): New member function, implementation from
7060 f_printstr.
7061 * go-lang.c (go_language_data): Delete la_printstr initializer.
7062 * language.c (language_defn::printstr): Define new member
7063 function.
7064 (unk_lang_printstr): Delete.
7065 (unknown_language_data): Delete la_printstr initializer.
7066 (unknown_language::printstr): New member function.
7067 (auto_language_data): Delete la_printstr initializer.
7068 (auto_language::printstr): New member function.
7069 * language.h (language_data): Delete la_printstr field.
7070 (language_defn::printstr): Declare new member function.
7071 (LA_PRINT_STRING): Update call to printstr.
7072 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7073 (m2_language_data): Delete la_printstr initializer.
7074 (m2_language::printstr): New member function, implementation from
7075 m2_printstr.
7076 * objc-lang.c (objc_language_data): Delete la_printstr
7077 initializer.
7078 * opencl-lang.c (opencl_language_data): Likewise.
7079 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7080 (pascal_language_data): Delete la_printstr initializer.
7081 (pascal_language::printstr): New member function, implementation
7082 from pascal_printstr.
7083 * p-lang.h (pascal_printstr): Delete declaration.
7084 * rust-lang.c (rust_printstr): Update header comment.
7085 (rust_language_data): Delete la_printstr initializer.
7086 (rust_language::printstr): New member function.
7087
52b50f2c
AB
70882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7089
7090 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7091 (ada_language::printchar): New member function.
7092 * c-lang.c (c_language_data): Delete la_printchar initializer.
7093 (cplus_language_data): Likewise.
7094 (asm_language_data): Likewise.
7095 (minimal_language_data): Likewise.
7096 * d-lang.c (d_language_data): Likewise.
7097 * f-lang.c (f_printchar): Rename to f_language::printchar.
7098 (f_language_data): Delete la_printchar initializer.
7099 (f_language::printchar): New member function, implementation from
7100 f_printchar.
7101 * go-lang.c (go_language_data): Delete la_printchar initializer.
7102 * language.c (unk_lang_printchar): Delete.
7103 (language_defn::printchar): Define new member function.
7104 (unknown_language_data): Delete la_printchar initializer.
7105 (unknown_language::printchar): New member function.
7106 (auto_language_data): Delete la_printchar initializer.
7107 (auto_language::printchar): New member function.
7108 * language.h (language_data): Delete la_printchar field.
7109 (language_defn::printchar): Declare new member function.
7110 (LA_PRINT_CHAR): Update call to printchar.
7111 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7112 (m2_language::printchar): New member function.
7113 * objc-lang.c (objc_language_data): Delete la_printchar
7114 initializer.
7115 * opencl-lang.c (opencl_language_data): Likewise.
7116 * p-lang.c (pascal_language_data): Delete la_printchar
7117 initializer.
7118 (pascal_language::printchar): New member function.
7119 * rust-lang.c (rust_printchar): Rename to
7120 rust_language::printchar.
7121 (rust_language_data): Delete la_printchar initializer.
7122 (rust_language::printchar): New member function, implementation
7123 from rust_printchar.
7124
ec8cec5b
AB
71252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7128 (ada_language_data): Delete la_emitchar initializer.
7129 (ada_language::emitchar): New member function, implementation from
7130 emit_char.
7131 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7132 (cplus_language_data): Likewise.
7133 (asm_language_data): Likewise.
7134 (minimal_language_data): Likewise.
7135 * d-lang.c (d_language_data): Likewise.
7136 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7137 (f_language_data): Delete la_emitchar initializer.
7138 (f_language::emitchar): New member function, implementation from
7139 f_emit_char.
7140 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7141 * language.c (unk_lang_emit_char): Delete.
7142 (language_defn::emitchar): New member function definition.
7143 (unknown_language_data): Delete la_emitchar initializer.
7144 (unknown_language::emitchar): New member function.
7145 (auto_language_data): Delete la_emitchar initializer.
7146 (auto_language::emitchar): New member function.
7147 * language.h (language_data): Delete la_emitchar field.
7148 (language_defn::emitchar): New member field declaration.
7149 (LA_EMIT_CHAR): Update call to emitchar.
7150 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7151 (m2_language_data): Delete la_emitchar initializer.
7152 (m2_language::emitchar): New member function, implementation from
7153 m2_emit_char.
7154 * objc-lang.c (objc_language_data): Delete la_emitchar
7155 initializer.
7156 * opencl-lang.c (opencl_language_data): Likewise.
7157 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7158 (pascal_language_data): Delete la_emitchar initializer.
7159 (pascal_language::emitchar): New member function, implementation
7160 from pascal_emit_char.
7161 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7162 (rust_language_data): Delete la_emitchar initializer.
7163 (rust_language::emitchar): New member function, implementation
7164 from rust_emitchar.
7165
1bf9c363
AB
71662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7169 (ada_language_data): Delete la_post_parser initializer.
7170 (ada_language::post_parser): New member function.
7171 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7172 (cplus_language_data): Likewise.
7173 (asm_language_data): Likewise.
7174 (minimal_language_data): Likewise.
7175 * d-lang.c (d_language_data): Likewise.
7176 * f-lang.c (f_language_data): Likewise.
7177 * go-lang.c (go_language_data): Likewise.
7178 * language.c (unknown_language_data): Likewise.
7179 (auto_language_data): Likewise.
7180 * language.h (language_data): Delete la_post_parser field.
7181 (language_defn::post_parser): New member function.
7182 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7183 * objc-lang.c (objc_language_data): Likewise.
7184 * opencl-lang.c (opencl_language_data): Likewise.
7185 * p-lang.c (pascal_language_data): Likewise.
7186 * parse.c (parse_exp_in_context): Update call to post_parser.
7187 (null_post_parser): Delete definition.
7188 * parser-defs.h (null_post_parser): Delete declaration.
7189 * rust-lang.c (rust_language_data): Delete la_post_parser
7190 initializer.
7191
87afa652
AB
71922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * ada-lang.c (parse): Rename to ada_language::parser.
7195 (ada_language_data): Delete la_parser initializer.
7196 (ada_language::parser): New member function, implementation from
7197 parse.
7198 * c-lang.c (c_language_data): Delete la_parser initializer.
7199 (cplus_language_data): Likewise.
7200 (asm_language_data): Likewise.
7201 (minimal_language_data): Likewise.
7202 * d-lang.c (d_language_data): Likewise.
7203 (d_language::parser): New member function.
7204 * f-lang.c (f_language_data): Delete la_parser initializer.
7205 (f_language::parser): New member function.
7206 * go-lang.c (go_language_data): Delete la_parser initializer.
7207 (go_language::parser): New member function.
7208 * language.c (unk_lang_parser): Delete.
7209 (language_defn::parser): Define new member function.
7210 (unknown_language_data): Delete la_parser initializer.
7211 (unknown_language::parser): New member function.
7212 (auto_language_data): Delete la_parser initializer.
7213 (auto_language::parser): New member function.
7214 * language.h (language_data): Delete la_parser field.
7215 (language_defn::parser): Declare new member function.
7216 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7217 (m2_language::parser): New member function.
7218 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7219 * opencl-lang.c (opencl_language_data): Likewise.
7220 * p-lang.c (pascal_language_data): Likewise.
7221 (pascal_language::parser): New member function.
7222 * parse.c (parse_exp_in_context): Update call to parser.
7223 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7224 (rust_language::parser): New member function.
7225
37825800
AB
72262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7227
7228 * top.c (print_gdb_configuration): Print --with-python-libdir
7229 configuration value.
7230
5b860c93
PW
72312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7232
7233 * NEWS: Mention change to the alias command.
7234
cf00cd6f
PW
72352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7236
7237 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7238 (alias_command_completer)
7239 (make_alias_options_def_group): New functions.
7240 (alias_opts, alias_option_defs): New struct and array.
7241 (alias_usage_error): Update usage.
7242 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7243 Use option framework.
7244 (_initialize_cli_cmds): Update alias command help.
7245 Update aliases command help.
7246 (show_user):
7247 Add NULL for new default_args lookup_cmd argument.
7248 (valid_command_p): Rename to validate_aliased_command.
7249 Add NULL for new default_args lookup_cmd argument. Verify that the
7250 aliased_command has no default args.
7251 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7252 (lookup_cmd_1, lookup_cmd): New argument default_args.
7253 (add_alias_cmd):
7254 Add NULL for new default_args lookup_cmd argument.
7255 (print_help_for_command): Show default args under the layout
7256 alias some_alias = some_aliased_cmd some_alias_default_arg.
7257 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7258 xfree default_args in destructor.
7259 * cli/cli-script.c (process_next_line, do_define_command):
7260 Add NULL for new default_args lookup_cmd argument.
7261 * command.h: Declare new default_args argument in lookup_cmd
7262 and lookup_cmd_1.
7263 * completer.c (complete_line_internal_1):
7264 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7265 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7266 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7267 Likewise.
7268 * infcmd.c (_initialize_infcmd): Likewise.
7269 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7270 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7271 * python/py-param.c (add_setshow_generic): Likewise.
7272 * remote.c (_initialize_remote): Likewise.
7273 * top.c (execute_command): Prepend default_args if command has some.
7274 (set_verbose):
7275 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7276 * tracepoint.c (validate_actionline, encode_actions_1):
7277 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7278
bd920864
TBA
72792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7280
7281 * jit.c (jit_read_descriptor): Use bool as the return type.
7282 (jit_breakpoint_re_set_internal): Use bool as the return type.
7283 Invert the return value logic; return true if the jit breakpoint
7284 has been successfully initialized.
7285 (jit_inferior_init): Update the call to
7286 jit_breakpoint_re_set_internal.
7287
f8098322
PA
72882020-06-22 Pedro Alves <palves@redhat.com>
7289
7290 PR gdb/25939
7291 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7292 Use the current inferior instead. Don't return
7293 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7294 wait again.
7295 * sol-thread.c (sol_thread_target::wait): Don't reference
7296 inferior_ptid.
7297 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7298 (sol_update_thread_list_callback): Use the current inferior's pid
7299 instead of inferior_ptid.
7300
196535a6
RO
73012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7302
7303 * procfs.c: Cleanup many comments.
7304
7305 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7306 (AFTER_WATCHFLAG): Replace by value.
7307
7308 (MAIN_PROC_NAME_FORMAT): Inline ...
7309 (create_procinfo): ... here.
7310
7311 (procfs_debug_inferior): Remove SYS_exec handling.
7312 (syscall_is_exec): Likewise.
7313 (procfs_set_exec_trap): Likewise.
7314
7315 (syscall_is_lwp_exit): Inline in callers.
7316 (syscall_is_exit): Likewise.
7317 (syscall_is_exec): Likewise.
7318 (syscall_is_lwp_create): Likewise.
7319
7320 (invalidate_cache): Remove #if 0 code.
7321
7322 (make_signal_thread_runnable): Remove.
7323 (procfs_target::resume): Remove #if 0 code.
7324
cf6f3e86
RO
73252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7326
7327 PR gdb/25939
7328 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7329 call ...
7330 (procfs_target::create_inferior): ... here.
7331
48e9cc84
PW
73322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7333
7334 * exec.c (validate_exec_file): Ensure the build-id is up to
7335 date by calling reopen_exec_file (that checks file timestamp
7336 to decide to re-read the file).
7337
3922b302
PA
73382020-06-18 Pedro Alves <palves@redhat.com>
7339
7340 PR gdb/25412
7341 * gdbthread.h (delete_thread, delete_thread_silent)
7342 (find_thread_ptid): Update comments.
7343 * thread.c (current_thread_): New global.
7344 (is_current_thread): Move higher, and reimplement.
7345 (inferior_thread): Reimplement.
7346 (set_thread_exited): Use bool. Add assertions.
7347 (add_thread_silent): Simplify thread-reuse handling by always
7348 calling delete_thread.
7349 (delete_thread): Remove intro comment.
7350 (find_thread_ptid): Skip exited threads.
7351 (switch_to_thread_no_regs): Write to current_thread_.
7352 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7353 INFERIOR_PTID. Clear current_thread_.
7354
6dbdab44
PA
73552020-06-18 Pedro Alves <palves@redhat.com>
7356
7357 * aix-thread.c (pd_update): Use switch_to_thread.
7358
2da4b788
PA
73592020-06-18 Pedro Alves <palves@redhat.com>
7360
7361 * ravenscar-thread.c (ravenscar_thread_target): Update.
7362 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7363 (ravenscar_thread_target::add_active_thread): ... this. Don't
7364 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7365 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7366
50838d1b
PA
73672020-06-18 Pedro Alves <palves@redhat.com>
7368
7369 * nat/windows-nat.c (current_windows_thread): Remove.
7370 * nat/windows-nat.h (current_windows_thread): Remove.
7371 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7372 Adjust.
7373 (display_selectors): Adjust to fetch the current
7374 windows_thread_info based on inferior_ptid.
7375 (fake_create_process): No longer write to current_windows_thread.
7376 (windows_nat_target::get_windows_debug_event):
7377 Don't set inferior_ptid or current_windows_thread.
7378 (windows_nat_target::wait): Adjust to not rely on
7379 current_windows_thread.
7380 (do_initial_windows_stuff): Now a method of windows_nat_target.
7381 Switch to the last_ptid thread.
7382 (windows_nat_target::attach): Adjust.
7383 (windows_nat_target::detach): Use switch_to_no_thread instead of
7384 writing to inferior_ptid directly.
7385 (windows_nat_target::create_inferior): Adjust.
7386
31ce04e9
PA
73872020-06-18 Pedro Alves <palves@redhat.com>
7388
7389 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7390
1ee1a363
PA
73912020-06-18 Pedro Alves <palves@redhat.com>
7392
7393 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7394 after creating it, instead of writing to inferior_ptid. Don't
7395 write to inferior_ptid.
7396
6d350754
PA
73972020-06-18 Pedro Alves <palves@redhat.com>
7398
7399 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7400
5d971d48
PA
74012020-06-18 Pedro Alves <palves@redhat.com>
7402
7403 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7404 it, instead of writing to inferior_ptid.
7405
86e57d1b
PA
74062020-06-18 Pedro Alves <palves@redhat.com>
7407
7408 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7409 to inferior_ptid.
7410
f2e1c129
PA
74112020-06-18 Pedro Alves <palves@redhat.com>
7412
7413 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7414 instead of writing to inferior_ptid directly.
7415
60db1b85
PA
74162020-06-18 Pedro Alves <palves@redhat.com>
7417
7418 * corelow.c (core_target::close): Use switch_to_no_thread instead
7419 of writing to inferior_ptid directly.
7420 (add_to_thread_list, core_target_open): Use switch_to_thread
7421 instead of writing to inferior_ptid directly.
7422
fe7d6a8d
PA
74232020-06-18 Pedro Alves <palves@redhat.com>
7424
7425 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7426 inferior_ptid.
7427 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7428 inferior_ptid.
7429 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7430 inferior_ptid directly.
7431 (darwin_nat_target::init_thread_list): Switch to thread, instead
7432 of writing to inferior_ptid.
7433 (darwin_nat_target::attach): Don't write to inferior_ptid.
7434 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7435
975f8708
PA
74362020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7439 thread.
7440 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7441 Instead use switch_to_thread.
7442 (gnu_nat_target::detach): Use switch_to_no_thread
7443 instead of writing to inferior_ptid directly. Used passed-in
7444 inferior instead of looking up the inferior by pid.
7445
1a204730
PA
74462020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7449 inferior_ptid.
7450
ebe84f23
PA
74512020-06-18 Pedro Alves <palves@redhat.com>
7452
7453 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7454 inferior_ptid.
7455 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7456 thread.
7457 (nto_procfs_target::detach): Avoid referencing
7458 inferior_ptid. Use switch_to_no_thread instead of writing to
7459 inferior_ptid directly.
7460 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7461 instead of writing to inferior_ptid directly.
7462 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7463 to thread.
7464
191f02e5
PA
74652020-06-18 Pedro Alves <palves@redhat.com>
7466
7467 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7468 after creating it, instead of writing to inferior_ptid.
7469 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7470 to inferior_ptid directly.
7471 (gdbsim_target::wait): Don't write to inferior_ptid.
7472
0ac55310
PA
74732020-06-18 Pedro Alves <palves@redhat.com>
7474
7475 * remote.c (remote_target::remote_notice_new_inferior): Use
7476 switch_to_thread instead of writing to inferior_ptid directly.
7477 (remote_target::add_current_inferior_and_thread): Use
7478 switch_to_no_thread instead of writing to inferior_ptid directly.
7479 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7480 and switch_to_thread instead of using set_current_inferior or
7481 writing to inferior_ptid directly.
7482
5233f39b
PA
74832020-06-18 Pedro Alves <palves@redhat.com>
7484
7485 * tracectf.c (ctf_target_open): Switch to added thread instead of
7486 writing to inferior_ptid directly.
7487 (ctf_target::close): Use switch_to_no_thread instead of writing to
7488 inferior_ptid directly.
7489
087e161b
PA
74902020-06-18 Pedro Alves <palves@redhat.com>
7491
7492 * tracefile-tfile.c (tfile_target_open): Don't write to
7493 inferior_ptid directly, instead switch to added thread.
7494 (tfile_target::close): Use switch_to_no_thread instead of writing
7495 to inferior_ptid directly.
7496
7fb43e53
PA
74972020-06-18 Pedro Alves <palves@redhat.com>
7498
7499 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7500 (procfs_target::detach): Use switch_to_no_thread
7501 instead of writing to inferior_ptid directly.
7502 (do_attach): Change return type to void. Switch to the added
7503 thread.
7504 (procfs_target::create_inferior): Switch to the added thread.
7505 (procfs_do_thread_registers): Don't write to inferior_ptid.
7506
18493a00
PA
75072020-06-18 Pedro Alves <palves@redhat.com>
7508
7509 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7510 of writing to inferior_ptid.
7511 (scoped_restore_exited_inferior): Delete.
7512 (handle_vfork_child_exec_or_exit): Simplify using
7513 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7514 instead of writing to inferior_ptid.
7515 (THREAD_STOPPED_BY): Delete.
7516 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7517 (thread_stopped_by_hw_breakpoint): Delete.
7518 (save_waitstatus): Use
7519 scoped_restore_current_thread+switch_to_thread, and call
7520 target_stopped_by_watchpoint instead of
7521 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7522 instead of thread_stopped_by_sw_breakpoint, and
7523 target_stopped_by_hw_breakpoint instead of
7524 thread_stopped_by_hw_breakpoint.
7525 (handle_inferior_event)
7526 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7527 inferior_ptid directly, nor
7528 set_current_inferior/set_current_program_space. Use
7529 switch_to_thread / switch_to_inferior_no_thread instead.
7530
a0776b13
PA
75312020-06-18 Pedro Alves <palves@redhat.com>
7532
7533 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7534 instead of writing to inferior_ptid.
7535
6155c136
PA
75362020-06-18 Pedro Alves <palves@redhat.com>
7537
7538 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7539 added thread.
7540 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7541 to the added thread.
7542 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7543 instead of writing to inferior_ptid.
7544
c5316fc6
PA
75452020-06-18 Pedro Alves <palves@redhat.com>
7546
7547 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7548 (register_to_value_test): Mock a program_space too. Heap-allocate
7549 the address space. Don't write to inferior_ptid. Use
7550 switch_to_thread instead.
7551
8df01799
PA
75522020-06-18 Pedro Alves <palves@redhat.com>
7553
7554 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7555 Delete.
7556 (find_signalled_thread()): New, factored out from
7557 linux_make_corefile_notes and adjusted to handle exited threads.
7558 (linux_make_corefile_notes): Adjust to use the new
7559 find_signalled_thread.
7560
41792d68
PA
75612020-06-18 Pedro Alves <palves@redhat.com>
7562
7563 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7564 of saving/restoring inferior_ptid.
7565
612f258a
TT
75662020-06-17 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7569 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7570 declare.
7571 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7572
efb763a5
SM
75732020-06-15 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7576 of partial symtabs.
7577
2951f6c0
SM
75782020-06-17 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * regformats/reg-arm.dat: Remove.
7581 * regformats/reg-bfin.dat: Remove.
7582 * regformats/reg-cris.dat: Remove.
7583 * regformats/reg-crisv32.dat: Remove.
7584 * regformats/reg-m32r.dat: Remove.
7585 * regformats/reg-tilegx.dat: Remove.
7586 * regformats/reg-tilegx32.dat: Remove.
7587
7d458ea5
SM
75882020-06-17 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * features/Makefile (WHICH): Remove arm files.
7591 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7592 * regformats/arm/arm-with-neon.dat: Remove.
7593 * regformats/arm/arm-with-vfpv2.dat: Remove.
7594 * regformats/arm/arm-with-vfpv3.dat: Remove.
7595
3af96c0d
SM
75962020-06-17 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * features/Makefile (XMLTOC): Remove rx.xml.
7599
b25e22fd
PA
76002020-06-17 Pedro Alves <palves@redhat.com>
7601
7602 * gdbthread.h (thread_control_state) <trap_expected> Update
7603 comments.
7604
a78a19b1
AB
76052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7608 ada_language::lookup_symbol_nonlocal.
7609 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7610 (ada_language::lookup_symbol_nonlocal): New member function,
7611 implementation from ada_lookup_symbol_nonlocal.
7612 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7613 initializer.
7614 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7615 initializer.
7616 (cplus_language::lookup_symbol_nonlocal): New member function.
7617 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7618 (minimal_language_data) Likewise.
7619 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7620 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7621 initializer.
7622 (d_language::lookup_symbol_nonlocal): New member function.
7623 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7624 initializer.
7625 (f_language::lookup_symbol_nonlocal): New member function.
7626 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7627 initializer.
7628 * language.c (unknown_language_data): Likewise.
7629 (auto_language_data): Likewise.
7630 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7631 field.
7632 (language_defn::lookup_symbol_nonlocal): New member function.
7633 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7634 initializer.
7635 * objc-lang.c (objc_language_data): Likewise.
7636 * opencl-lang.c (opencl_language_data): Likewise.
7637 * p-lang.c (pascal_language_data): Likewise.
7638 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7639 rust_language::lookup_symbol_nonlocal.
7640 (rust_language_data): Delete la_lookup_symbol_nonlocal
7641 initializer.
7642 (rust_language::lookup_symbol_nonlocal): New member function,
7643 implementation from rust_lookup_symbol_nonlocal.
7644 * symtab.c (lookup_symbol_aux): Update call to
7645 lookup_symbol_nonlocal.
7646 (basic_lookup_symbol_nonlocal): Rename to...
7647 (language_defn::lookup_symbol_nonlocal): ...this, and update
7648 header comment. Remove language_defn parameter, and replace with
7649 uses of `this'.
7650 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7651
ebe2334e
AB
76522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7655 initializer.
7656 (ada_language::value_print_inner): New member function.
7657 * c-lang.c (c_language_data): Delete la_value_print_inner
7658 initializer.
7659 (cplus_language_data): Likewise.
7660 (asm_language_data): Likewise.
7661 (minimal_language_data): Likewise.
7662 * d-lang.c (d_language_data): Likewise.
7663 (d_language::value_print_inner): New member function.
7664 * f-lang.c (f_language_data): Delete la_value_print_inner
7665 initializer.
7666 (f_language::value_print_inner): New member function.
7667 * f-lang.h (f_value_print_innner): Rename to...
7668 (f_value_print_inner): ...this (note spelling of 'inner').
7669 * f-valprint.c (f_value_print_innner): Rename to...
7670 (f_value_print_inner): ...this (note spelling of 'inner').
7671 * go-lang.c (go_language_data): Delete la_value_print_inner
7672 initializer.
7673 (go_language::value_print_inner): New member function.
7674 * language.c (language_defn::value_print_inner): Define new member
7675 function.
7676 (unk_lang_value_print_inner): Delete.
7677 (unknown_language_data): Delete la_value_print_inner initializer.
7678 (unknown_language::value_print_inner): New member function.
7679 (auto_language_data): Delete la_value_print_inner initializer.
7680 (auto_language::value_print_inner): New member function.
7681 * language.h (language_data): Delete la_value_print_inner field.
7682 (language_defn::value_print_inner): Delcare new member function.
7683 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7684 initializer.
7685 (m2_language::value_print_inner): New member function.
7686 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7687 initializer.
7688 * opencl-lang.c (opencl_language_data): Likewise.
7689 * p-lang.c (pascal_language_data): Likewise.
7690 (pascal_language::value_print_inner): New member function.
7691 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7692 initializer.
7693 (rust_language::value_print_inner): New member function.
7694 * valprint.c (do_val_print): Update call to value_print_inner.
7695
a1d1fa3e
AB
76962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7697
7698 * ada-lang.c (ada_language_data): Delete la_value_print
7699 initializer.
7700 (ada_language::value_print): New member function.
7701 * c-lang.c (c_language_data): Delete la_value_print initializer.
7702 (cplus_language_data): Likewise.
7703 (asm_language_data): Likewise.
7704 (minimal_language_data): Likewise.
7705 * d-lang.c (d_language_data): Likewise.
7706 * f-lang.c (f_language_data): Likewise.
7707 * go-lang.c (go_language_data): Likewise.
7708 * language.c (unk_lang_value_print): Delete.
7709 (language_defn::value_print): Define new member function.
7710 (unknown_language_data): Delete la_value_print initializer.
7711 (unknown_language::value_print): New member function.
7712 (auto_language_data): Delete la_value_print initializer.
7713 (auto_language::value_print): New member function.
7714 * language.h (language_data): Delete la_value_print field.
7715 (language_defn::value_print): Declare new member function.
7716 (LA_VALUE_PRINT): Update call to value_print.
7717 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7718 * objc-lang.c (objc_language_data): Likewise.
7719 * opencl-lang.c (opencl_language_data): Likewise.
7720 * p-lang.c (pascal_language_data): Likewise.
7721 (pascal_language::value_print): New member function.
7722 * rust-lang.c (rust_language_data): Delete la_value_print
7723 initializer.
7724
f16a9f57
AB
77252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * ada-lang.c (ada_watch_location_expression): Rename to
7728 ada_language::watch_location_expression.
7729 (ada_language_data): Delete la_watch_location_expression
7730 initializer.
7731 (ada_language::watch_location_expression): New member function,
7732 implementation from ada_watch_location_expression.
7733 * breakpoint.c (watch_command_1): Update call to
7734 watch_location_expression.
7735 * c-lang.c (c_watch_location_expression): Rename to
7736 language_defn::watch_location_expression.
7737 (c_language_data): Delete la_watch_location_expression
7738 initializer.
7739 (cplus_language_data): Likewise.
7740 (asm_language_data): Likewise.
7741 (minimal_language_data): Likewise.
7742 * c-lang.h (c_watch_location_expression): Delete declaration.
7743 * d-lang.c (d_language_data): Delete la_watch_location_expression
7744 initializer.
7745 * f-lang.c (f_language_data): Likewise.
7746 * go-lang.c (go_language_data): Likewise.
7747 * language.c (language_defn::watch_location_expression): Member
7748 function implementation from c_watch_location_expression.
7749 (unknown_language_data): Delete la_watch_location_expression
7750 initializer.
7751 (auto_language_data): Likewise.
7752 * language.h (language_data): Delete la_watch_location_expression
7753 field.
7754 (language_defn::watch_location_expression): Declare new member
7755 function.
7756 * m2-lang.c (m2_language_data): Delete
7757 la_watch_location_expression initializer.
7758 * objc-lang.c (objc_language_data): Likewise.
7759 * opencl-lang.c (opencl_language_data): Likewise.
7760 * p-lang.c (pascal_language_data): Likewise.
7761 * rust-lang.c (rust_watch_location_expression): Rename to
7762 rust_language::watch_location_expression.
7763 (rust_language_data): Delete la_watch_location_expression
7764 initializer.
7765 (rust_language::watch_location_expression): New member function,
7766 implementation from rust_watch_location_expression.
7767
7e56227d
AB
77682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7771 ada_language::collect_symbol_completion_matches.
7772 (ada_language_data): Delete la_collect_symbol_completion_matches
7773 initializer.
7774 (ada_language::collect_symbol_completion_matches): New member
7775 function, implementation from
7776 ada_collect_symbol_completion_matches.
7777 * c-lang.c (c_language_data): Delete
7778 la_collect_symbol_completion_matches initializer.
7779 (cplus_language_data): Likewise.
7780 (asm_language_data): Likewise.
7781 (minimal_language_data): Likewise.
7782 * d-lang.c (d_language_data): Likewise.
7783 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7784 f_language::collect_symbol_completion_matches.
7785 (f_language_data): Delete la_collect_symbol_completion_matches
7786 initializer.
7787 (f_language::collect_symbol_completion_matches) New member
7788 function, implementation from f_collect_symbol_completion_matches.
7789 * go-lang.c (go_language_data): Delete
7790 la_collect_symbol_completion_matches initializer.
7791 * language.c (unknown_language_data): Likewise.
7792 (auto_language_data): Likewise.
7793 * language.h (language_data): Delete
7794 la_collect_symbol_completion_matches field.
7795 (language_defn::collect_symbol_completion_matches): New member
7796 function.
7797 * m2-lang.c (m2_language_data): Delete
7798 la_collect_symbol_completion_matches initializer.
7799 * objc-lang.c (objc_language_data): Likewise.
7800 * opencl-lang.c (opencl_language_data): Likewise.
7801 * p-lang.c (pascal_language_data): Likewise.
7802 * rust-lang.c (rust_language_data): Likewise.
7803 * symtab.c (default_collect_symbol_completion_matches): Delete.
7804 (collect_symbol_completion_matches): Update call to
7805 collect_symbol_completion_matches.
7806 (collect_symbol_completion_matches_type): Likewise.
7807 * symtab.h (default_collect_symbol_completion_matches): Delete
7808 declaration.
7809
53fc67f8
AB
78102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7813 (ada_language_data): Delete la_word_break_characters initializer.
7814 (ada_language::word_break_characters): New member function.
7815 * c-lang.c (c_language_data): Delete la_word_break_characters
7816 initializer.
7817 (cplus_language_data): Likewise.
7818 (asm_language_data): Likewise.
7819 (minimal_language_data): Likewise.
7820 * completer.c: Update global comment.
7821 (advance_to_expression_complete_word_point): Update call to
7822 word_break_characters.
7823 (complete_files_symbols): Likewise.
7824 (complete_line_internal_1): Likewise.
7825 (default_completer_handle_brkchars): Likewise.
7826 (skip_quoted_chars): Likewise.
7827 * d-lang.c (d_language_data): Delete la_word_break_characters
7828 initializer.
7829 * f-lang.c (f_word_break_characters): Delete.
7830 (f_language_data): Delete la_word_break_characters initializer.
7831 (f_language::word_break_characters): New member function.
7832 * go-lang.c (go_language_data): Delete la_word_break_characters
7833 initializer.
7834 * language.c (unknown_language_data): Likewise.
7835 (auto_language_data): Likewise.
7836 * language.h (default_word_break_characters): Move declaration to
7837 earlier in the file.
7838 (language_data): Delete la_word_break_characters field.
7839 (language_defn::word_break_characters): New member function.
7840 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7841 initializer.
7842 * objc-lang.c (objc_language_data): Likewise.
7843 * opencl-lang.c (opencl_language_data): Likewise.
7844 * p-lang.c (pascal_language_data): Likewise.
7845 * rust-lang.c (rust_language_data): Likewise.
7846
c9debfb9
AB
78472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7850 (ada_language_data): Delete la_get_symbol_name_matcher
7851 initializer.
7852 (language_defn::get_symbol_name_matcher_inner): New member
7853 function.
7854 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7855 initializer.
7856 (cplus_language_data): Likewise.
7857 (cplus_language::get_symbol_name_matcher_inner): New member
7858 function.
7859 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7860 (minimal_language_data): Likewise.
7861 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7862 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7863 initializer.
7864 * dictionary.c (iter_match_first_hashed): Update call to
7865 get_symbol_name_matcher.
7866 (iter_match_next_hashed): Likewise.
7867 (iter_match_next_linear): Likewise.
7868 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7869 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7870 initializer.
7871 (f_language::get_symbol_name_matcher_inner): New member function.
7872 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7873 initializer.
7874 * language.c (default_symbol_name_matcher): Update header comment,
7875 make static.
7876 (language_defn::get_symbol_name_matcher): New definition.
7877 (language_defn::get_symbol_name_matcher_inner): Likewise.
7878 (get_symbol_name_matcher): Delete.
7879 (unknown_language_data): Delete la_get_symbol_name_matcher
7880 initializer.
7881 (auto_language_data): Likewise.
7882 * language.h (language_data): Delete la_get_symbol_name_matcher
7883 field.
7884 (language_defn::get_symbol_name_matcher): New member function.
7885 (language_defn::get_symbol_name_matcher_inner): Likewise.
7886 (default_symbol_name_matcher): Delete declaration.
7887 * linespec.c (find_methods): Update call to
7888 get_symbol_name_matcher.
7889 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7890 initializer.
7891 * minsyms.c (lookup_minimal_symbol): Update call to
7892 get_symbol_name_matcher.
7893 (iterate_over_minimal_symbols): Likewise.
7894 * objc-lang.c (objc_language_data): Delete
7895 la_get_symbol_name_matcher initializer.
7896 * opencl-lang.c (opencl_language_data): Likewise.
7897 * p-lang.c (pascal_language_data): Likewise.
7898 * psymtab.c (psymbol_name_matches): Update call to
7899 get_symbol_name_matcher.
7900 * rust-lang.c (rust_language_data): Delete
7901 la_get_symbol_name_matcher initializer.
7902 * symtab.c (symbol_matches_search_name): Update call to
7903 get_symbol_name_matcher.
7904 (compare_symbol_name): Likewise.
7905
9a49ad8c
AB
79062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * ada-lang.c (ada_language_data): Delete la_compute_program
7909 initializer.
7910 * c-lang.c (c_language_data): Likewise.
7911 (c_language::compute_program): New member function.
7912 (cplus_language_data): Delete la_compute_program initializer.
7913 (cplus_language::compute_program): New member function.
7914 (asm_language_data): Delete la_compute_program initializer.
7915 (minimal_language_data): Likewise.
7916 * c-lang.h (c_compute_program): Update comment.
7917 (cplus_compute_program): Likewise.
7918 * compile/compile-c-support.c (c_compute_program): Likewise.
7919 (cplus_compute_program): Likewise.
7920 * compile/compile.c (compile_to_object): Update call to
7921 la_compute_program.
7922 * d-lang.c (d_language_data): Delete la_compute_program
7923 initializer.
7924 * f-lang.c (f_language_data): Likewise.
7925 * go-lang.c (go_language_data): Likewise.
7926 * language.c (unknown_language_data): Likewise.
7927 (auto_language_data): Likewise.
7928 * language.h (language_data): Delete la_compute_program field.
7929 (language_defn::compute_program): New member function.
7930 * m2-lang.c (m2_language_data): Delete la_compute_program
7931 initializer.
7932 * objc-lang.c (objc_language_data): Likewise.
7933 * opencl-lang.c (opencl_language_data): Likewise.
7934 * p-lang.c (pascal_language_data): Likewise.
7935 * rust-lang.c (rust_language_data): Likewise.
7936
eff93b4d
AB
79372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * ada-lang.c (ada_language_data) Delete
7940 la_class_name_from_physname initializer.
7941 * c-lang.c (c_language_data): Likewise.
7942 (cplus_language_data): Likewise.
7943 (cplus_language::class_name_from_physname): New member function.
7944 (asm_language_data): Delete la_class_name_from_physname
7945 initializer.
7946 (minimal_language_data): Likewise.
7947 * d-lang.c (d_language_data): Likewise.
7948 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7949 method on language_defn class.
7950 (guess_full_die_structure_name): Likewise.
7951 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7952 initializer.
7953 * go-lang.c (go_language_data): Likewise.
7954 * language.c (language_class_name_from_physname): Delete.
7955 (unk_lang_class_name): Delete.
7956 (unknown_language_data): Delete la_class_name_from_physname
7957 initializer.
7958 (auto_language_data): Likewise.
7959 * language.h (language_data): Delete la_class_name_from_physname
7960 field.
7961 (language_defn::class_name_from_physname): New function.
7962 (language_class_name_from_physname): Delete declaration.
7963 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7964 initializer.
7965 * objc-lang.c (objc_language_data): Likewise.
7966 * opencl-lang.c (opencl_language_data): Likewise.
7967 * p-lang.c (pascal_language_data): Likewise.
7968 * rust-lang.c (rust_language_data): Likewise.
7969
de543742
TT
79702020-06-16 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-data.h (STATUS_NAME): New macro.
7973 * tui/tui-layout.c (tui_remove_some_windows)
7974 (initialize_known_windows, tui_register_window)
7975 (tui_layout_split::remove_windows, initialize_layouts)
7976 (tui_new_layout_command): Don't use hard-coded window names.
7977
a350efd4
TT
79782020-06-16 Tom Tromey <tom@tromey.com>
7979
7980 PR tui/25348:
7981 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7982 tui_initialize_readline. Only run once. Call rl_initialize.
7983 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7984 tui_initialize_readline.
7985 * tui/tui-io.c (tui_setup_io): Call
7986 tui_ensure_readline_initialized.
7987 * tui/tui-interp.c (tui_interp::init): Update.
7988
39ec0490
TT
79892020-06-16 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7992 Also preserve the status window.
7993
d2d1ea20
TT
79942020-06-16 Tom Tromey <tom@tromey.com>
7995
7996 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7997 where m_window==nullptr.
7998
66920317
TT
79992020-06-15 Tom Tromey <tromey@adacore.com>
8000
8001 * windows-nat.c (windows_nat::handle_output_debug_string):
8002 Update.
8003 (windows_nat::handle_ms_vc_exception): Update.
8004 * target.h (target_read_string): Change API.
8005 * target.c (target_read_string): Change API.
8006 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8007 Update.
8008 * solib-frv.c (frv_current_sos): Update.
8009 * solib-dsbt.c (dsbt_current_sos): Update.
8010 * solib-darwin.c (darwin_current_sos): Update.
8011 * linux-thread-db.c (inferior_has_bug): Update.
8012 * expprint.c (print_subexp_standard): Update.
8013 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8014 (ada_exception_message_1): Update.
8015
a5d871dd
TT
80162020-06-15 Tom Tromey <tromey@adacore.com>
8017
8018 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8019
670e35fa
TT
80202020-06-15 Tom Tromey <tromey@adacore.com>
8021
8022 * valprint.c (read_string): Update comment.
8023 * target.c (MIN): Remove.
8024 (target_read_string): Rewrite.
8025
f5272a3b
TT
80262020-06-15 Tom Tromey <tromey@adacore.com>
8027
8028 * corefile.c (read_memory_string): Remove.
8029 * ada-valprint.c (ada_value_print_ptr): Update.
8030 * ada-lang.h (ada_tag_name): Change return type.
8031 * ada-lang.c (type_from_tag): Update.
8032 (ada_tag_name_from_tsd): Change return type. Use
8033 target_read_string.
8034 (ada_tag_name): Likewise.
8035 * gdbcore.h (read_memory_string): Don't declare.
8036
2c074f49
HD
80372020-06-14 Hannes Domani <ssbssa@yahoo.de>
8038
8039 * symtab.c (rbreak_command): Ignore Windows drive colon.
8040
6a17d503
SM
80412020-06-12 Simon Marchi <simon.marchi@efficios.com>
8042
8043 * NEWS: Mention removed GDBserver host support.
8044
453c733f
NC
80452020-06-12 Nelson Chu <nelson.chu@sifive.com>
8046
8047 * features/riscv/rebuild-csr-xml.sh: Updated.
8048
2b4e6a3f
TT
80492020-06-11 Tom Tromey <tom@tromey.com>
8050
8051 PR gdb/18318:
8052 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8053
4412332f
JG
80542020-06-09 Jonny Grant <jg@jguk.org>
80552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8056
8057 * main.c (captured_main_1): Don't print new line after help.
8058 (print_gdb_help): add mailing list and IRC channel information
8059 to --help. Add new lines between items in the footer. Remove
8060 quotes around bug url.
8061
2f33032a
KS
80622020-06-11 Keith Seitz <keiths@redhat.com>
8063
8064 PR gdb/21356
8065 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8066 Resolve typedefs for type length calculations.
8067
7ab96794
TV
80682020-06-10 Tom de Vries <tdevries@suse.de>
8069
8070 PR ada/24713
8071 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8072 (write_psymbols): Enable .gdb_index for ada.
8073 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8074 ada.
8075
e5f3ece2
TV
80762020-06-10 Tom de Vries <tdevries@suse.de>
8077
8078 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8079 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8080 namei" instead of "const char *name" argument.
8081 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8082 dw2_symtab_iter_init.
8083
940da03e
SM
80842020-06-08 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8087 to use type::field and field::type instead.
8088
b6cdac4b
SM
80892020-06-08 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8092 to use field::type instead.
8093
5d14b6e5
SM
80942020-06-08 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * gdbtypes.h (struct field) <type, set_type>: New methods.
8097 Rename `type` field to...
8098 <m_type>: ... this. Change references throughout to use type or
8099 set_type methods.
8100 (FIELD_TYPE): Use field::type. Change call sites that modify
8101 the field's type to use field::set_type instead.
8102
3d967001
SM
81032020-06-08 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8106 to use type::index_type instead.
8107
262abc0d
SM
81082020-06-08 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8111 methods.
8112 (TYPE_INDEX_TYPE): Use type::index_type.
8113 * gdbtypes.c (create_array_type_with_stride): Likewise.
8114
82836c92
TT
81152020-06-07 Tom Tromey <tom@tromey.com>
8116
8117 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8118 parameter.
8119 (generic_value_print): Update.
8120
940dace9
AB
81212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8122
8123 Revert commit 982a38f60b0.
8124 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8125
982a38f6
AB
81262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8129 avoid use after free.
8130
82f06518
TV
81312020-06-05 Tom de Vries <tdevries@suse.de>
8132
8133 * NEWS: Fix typos.
8134
f8c41851
SM
81352020-06-04 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8138 the per_bfd object.
8139 (dwarf2_read_debug_names): Likewise.
8140 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8141 object when re-using a per_bfd object with an index.
8142
f9b5d5ea
TV
81432020-06-03 Tom de Vries <tdevries@suse.de>
8144
8145 PR symtab/26046
8146 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8147 children for C++.
8148 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8149 DW_TAG_subprogram.
8150
f6eee2d0
AB
81512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 * ada-lang.c (ada_language_data): Delete skip_trampoline
8154 initializer.
8155 * c-lang.c (c_language_data): Likewise.
8156 (cplus_language_data): Likewise.
8157 (cplus_language::skip_trampoline): New member function.
8158 (asm_language_data): Delete skip_trampoline initializer.
8159 (minimal_language_data): Likewise.
8160 * d-lang.c (d_language_data): Likewise.
8161 * f-lang.c (f_language_data): Likewise.
8162 * go-lang.c (go_language_data): Likewise.
8163 * language.c (unk_lang_trampoline): Delete function.
8164 (skip_language_trampoline): Update.
8165 (unknown_language_data): Delete skip_trampoline initializer.
8166 (auto_language_data): Likewise.
8167 * language.h (language_data): Delete skip_trampoline field.
8168 (language_defn::skip_trampoline): New function.
8169 * m2-lang.c (m2_language_data): Delete skip_trampoline
8170 initializer.
8171 * objc-lang.c (objc_skip_trampoline): Delete function, move
8172 implementation to objc_language::skip_trampoline.
8173 (objc_language_data): Delete skip_trampoline initializer.
8174 (objc_language::skip_trampoline): New member function with
8175 implementation from objc_skip_trampoline.
8176 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8177 initializer.
8178 * p-lang.c (pascal_language_data): Likewise.
8179 * rust-lang.c (rust_language_data): Likewise.
8180
0a50df5d
AB
81812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8184 (ada_language::demangle): New member function.
8185 * c-lang.c (c_language_data): Delete la_demangle initializer.
8186 (cplus_language_data): Delete la_demangle initializer.
8187 (cplus_language::demangle): New member function.
8188 (asm_language_data): Delete la_demangle initializer.
8189 (minimal_language_data): Delete la_demangle initializer.
8190 * d-lang.c (d_language_data): Delete la_demangle initializer.
8191 (d_language::demangle): New member function.
8192 * f-lang.c (f_language_data): Delete la_demangle initializer.
8193 (f_language::demangle): New member function.
8194 * go-lang.c (go_language_data): Delete la_demangle initializer.
8195 (go_language::demangle): New member function.
8196 * language.c (language_demangle): Update.
8197 (unk_lang_demangle): Delete.
8198 (unknown_language_data): Delete la_demangle initializer.
8199 (unknown_language::demangle): New member function.
8200 (auto_language_data): Delete la_demangle initializer.
8201 (auto_language::demangle): New member function.
8202 * language.h (language_data): Delete la_demangle field.
8203 (language_defn::demangle): New function.
8204 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8205 * objc-lang.c (objc_language_data): Delete la_demangle
8206 initializer.
8207 (objc_language::demangle): New member function.
8208 * opencl-lang.c (opencl_language_data): Delete la_demangle
8209 initializer.
8210 * p-lang.c (pascal_language_data): Likewise.
8211 * rust-lang.c (rust_language_data): Likewise.
8212 (rust_language::demangle): New member function.
8213
fbfb0a46
AB
82142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * ada-lang.c (ada_language_data): Delete la_print_type
8217 initializer.
8218 (ada_language::print_type): New member function.
8219 * c-lang.c (c_language_data): Delete la_print_type initializer.
8220 (c_language::print_type): New member function.
8221 (cplus_language_data): Delete la_print_type initializer.
8222 (cplus_language::print_type): New member function.
8223 (asm_language_data): Delete la_print_type initializer.
8224 (asm_language::print_type): New member function.
8225 (minimal_language_data): Delete la_print_type initializer.
8226 (minimal_language::print_type): New member function.
8227 * d-lang.c (d_language_data): Delete la_print_type initializer.
8228 (d_language::print_type): New member function.
8229 * f-lang.c (f_language_data): Delete la_print_type initializer.
8230 (f_language::print_type): New member function.
8231 * go-lang.c (go_language_data): Delete la_print_type initializer.
8232 (go_language::print_type): New member function.
8233 * language.c (unk_lang_print_type): Delete.
8234 (unknown_language_data): Delete la_print_type initializer.
8235 (unknown_language::print_type): New member function.
8236 (auto_language_data): Delete la_print_type initializer.
8237 (auto_language::print_type): New member function.
8238 * language.h (language_data): Delete la_print_type field.
8239 (language_defn::print_type): New function.
8240 (LA_PRINT_TYPE): Update.
8241 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8242 (m2_language::print_type): New member function.
8243 * objc-lang.c (objc_language_data): Delete la_print_type
8244 initializer.
8245 (objc_language::print_type): New member function.
8246 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8247 to opencl_language::print_type.
8248 (opencl_language_data): Delete la_print_type initializer.
8249 (opencl_language::print_type): New member function, implementation
8250 from opencl_print_type.
8251 * p-lang.c (pascal_language_data): Delete la_print_type
8252 initializer.
8253 (pascal_language::print_type): New member function.
8254 * rust-lang.c (rust_print_type): Delete, implementation moved to
8255 rust_language::print_type.
8256 (rust_language_data): Delete la_print_type initializer.
8257 (rust_language::print_type): New member function, implementation
8258 from rust_print_type.
8259
6f827019
AB
82602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8261
8262 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8263 implementation moves to...
8264 (ada_language::sniff_from_mangled_name): ...here. Update return
8265 type.
8266 (ada_language_data): Delete la_sniff_from_mangled_name
8267 initializer.
8268 * c-lang.c (c_language_data): Likewise.
8269 (cplus_language_data): Likewise.
8270 (cplus_language::sniff_from_mangled_name): New member function,
8271 implementation taken from gdb_sniff_from_mangled_name.
8272 (asm_language_data): Delete la_sniff_from_mangled_name
8273 initializer.
8274 (minimal_language_data): Likewise.
8275 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8276 implementation moves to cplus_language::sniff_from_mangled_name.
8277 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8278 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8279 moves to...
8280 (d_language::sniff_from_mangled_name): ...here.
8281 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8282 * f-lang.c (f_language_data): Likewise.
8283 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8284 moves to...
8285 (go_language::sniff_from_mangled_name): ...here.
8286 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8287 * language.c (language_sniff_from_mangled_name): Delete.
8288 (unknown_language_data): Delete la_sniff_from_mangled_name
8289 initializer.
8290 (auto_language_data): Likewise.
8291 * language.h (language_data): Delete la_sniff_from_mangled_name
8292 field.
8293 (language_defn::sniff_from_mangled_name): New function.
8294 (language_sniff_from_mangled_name): Delete declaration.
8295 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8296 field.
8297 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8298 implementation moves to...
8299 (objc_language::sniff_from_mangled_name): ...here.
8300 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8301 * opencl-lang.c (opencl_language_data): Likewise.
8302 * p-lang.c (pascal_language_data): Likewise.
8303 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8304 implementation moves to...
8305 (rust_language::sniff_from_mangled_name): ...here.
8306 (rust_language_data): Delete la_sniff_from_mangled_name
8307 initializer.
8308 * symtab.c (symbol_find_demangled_name): Call
8309 sniff_from_mangled_name member function.
8310
fb8006fd
AB
83112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8312
8313 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8314 initializer.
8315 * c-lang.c (c_language_data): Likewise.
8316 (cplus_language_data): Likewise.
8317 (cplus_language::search_name_hash): New member function.
8318 (asm_language_data): Delete la_search_name_hash initializer.
8319 (minimal_language_data): Likewise.
8320 * d-lang.c (d_language_data): Likewise.
8321 * dictionary.c (default_search_name_hash): Rename to...
8322 (language_defn::search_name_hash): ...this.
8323 * f-lang.c (f_language_data): Likewise.
8324 (f_language::search_name_hash): New member function.
8325 * go-lang.c (go_language_data): Delete la_search_name_hash
8326 initializer.
8327 * language.c (unknown_language_data): Likewise.
8328 (auto_language_data): Likewise.
8329 * language.h (struct language_data): Delete la_search_name_hash
8330 field.
8331 (language_defn::search_name_hash): Declare new member function.
8332 (default_search_name_hash): Delete declaration.
8333 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8334 initializer.
8335 * objc-lang.c (objc_language_data): Likewise.
8336 * opencl-lang.c (opencl_language_data): Likewise.
8337 * p-lang.c (pascal_language_data): Likewise.
8338 * rust-lang.c (rust_language_data): Likewise.
8339 * symtab.c (search_name_hash): Update call.
8340
8e25bafe
AB
83412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8342
8343 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8344 initializer.
8345 * c-lang.c (class compile_instance): Declare.
8346 (c_language_data): Delete la_get_compile_instance initializer.
8347 (c_language::get_compile_instance): New member function.
8348 (cplus_language_data): Delete la_get_compile_instance initializer.
8349 (cplus_language::get_compile_instance): New member function.
8350 (asm_language_data): Delete la_get_compile_instance initializer.
8351 (minimal_language_data): Likewise.
8352 * c-lang.h (c_get_compile_context): Update comment.
8353 (cplus_get_compile_context): Update comment.
8354 * compile/compile.c (compile_to_object): Update calls, don't rely
8355 on function pointer being NULL.
8356 * d-lang.c (d_language_data): Delete la_get_compile_instance
8357 initializer.
8358 * f-lang.c (f_language_data): Likewise.
8359 * go-lang.c (go_language_data): Likewise.
8360 * language.c (unknown_language_data): Likewise.
8361 (auto_language_data): Likewise.
8362 * language.h (language_data): Delete la_get_compile_instance field.
8363 (language_defn::get_compile_instance): New member function.
8364 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8365 initializer.
8366 * objc-lang.c (objc_language_data): Likewise.
8367 * opencl-lang.c (opencl_language_data): Likewise.
8368 * p-lang.c (pascal_language_data): Likewise.
8369 * rust-lang.c (rust_language_data): Likewise.
8370
4009ee92
AB
83712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * ada-lang.c (ada_add_all_symbols): Update comment.
8374 (ada_iterate_over_symbols): Delete, move implementation to...
8375 (ada_language::iterate_over_symbols): ...here, a new member
8376 function, rewrite to use range based for loop.
8377 (ada_language_data): Delete la_iterate_over_symbols initializer.
8378 * c-lang.c (c_language_data): Likewise.
8379 (cplus_language_data): Likewise.
8380 (asm_language_data): Likewise.
8381 (minimal_language_data): Likewise.
8382 * d-lang.c (d_language_data): Likewise.
8383 * f-lang.c (f_language_data): Likewise.
8384 * go-lang.c (go_language_data): Likewise.
8385 * language.c (unknown_language_data): Likewise.
8386 (auto_language_data): Likewise.
8387 * language.h (language_data): Delete la_iterate_over_symbols field.
8388 (language_defn::iterate_over_symbols): New member function.
8389 (LA_ITERATE_OVER_SYMBOLS): Update.
8390 * linespec.c (iterate_over_all_matching_symtabs): Update.
8391 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8392 initializer.
8393 * objc-lang.c (objc_language_data): Likewise.
8394 * opencl-lang.c (opencl_language_data): Likewise.
8395 * p-lang.c (pascal_language_data): Likewise.
8396 * rust-lang.c (rust_language_data): Likewise.
8397
54f4ca46
AB
83982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * ada-lang.c (ada_language_data): Delete
8401 la_lookup_transparent_type initializer.
8402 * c-lang.c (c_language_data): Likewise.
8403 (cplus_language_data): Likewise.
8404 (cplus_language::lookup_transparent_type): New member function.
8405 (asm_language_data): Delete la_lookup_transparent_type
8406 initializer.
8407 (minimal_language_data): Likewise.
8408 * d-lang.c (d_language_data): Likewise.
8409 * f-lang.c (f_language_data): Likewise.
8410 * go-lang.c (go_language_data): Likewise.
8411 * language.c (unknown_language_data): Likewise.
8412 (auto_language_data): Likewise.
8413 * language.h (struct language_data): Delete
8414 la_lookup_transparent_type field.
8415 (language_defn::lookup_transparent_type): New member function.
8416 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8417 initializer.
8418 * objc-lang.c (objc_language_data): Likewise.
8419 * opencl-lang.c (opencl_language_data): Likewise.
8420 * p-lang.c (pascal_language_data): Likewise.
8421 * rust-lang.c (rust_language_data): Likewise.
8422 * symtab.c (symbol_matches_domain): Update call.
8423
1fb314aa
AB
84242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * ada-lang.c (ada_language_arch_info): Delete function, move
8427 implementation to...
8428 (ada_language::language_arch_info): ...here, a new member
8429 function.
8430 (ada_language_data): Delete la_language_arch_info.
8431 * c-lang.c (c_language_data): Likewise.
8432 (c_language::language_arch_info): New member function.
8433 (cplus_language_arch_info): Delete function, move
8434 implementation to...
8435 (cplus_language::language_arch_info): ...here, a new member
8436 function.
8437 (cplus_language_data): Delete la_language_arch_info.
8438 (asm_language_data): Likewise.
8439 (asm_language::language_arch_info): New member function.
8440 (minimal_language_data): Delete la_language_arch_info.
8441 (minimal_language::language_arch_info): New member function.
8442 * d-lang.c (d_language_arch_info): Delete function, move
8443 implementation to...
8444 (d_language::language_arch_info): ...here, a new member
8445 function.
8446 (d_language_data): Delete la_language_arch_info.
8447 * f-lang.c (f_language_arch_info): Delete function, move
8448 implementation to...
8449 (f_language::language_arch_info): ...here, a new member
8450 function.
8451 (f_language_data): Delete la_language_arch_info.
8452 * go-lang.c (go_language_arch_info): Delete function, move
8453 implementation to...
8454 (go_language::language_arch_info): ...here, a new member
8455 function.
8456 (go_language_data): Delete la_language_arch_info.
8457 * language.c (unknown_language_data): Likewise.
8458 (unknown_language::language_arch_info): New member function.
8459 (auto_language_data): Delete la_language_arch_info.
8460 (auto_language::language_arch_info): New member function.
8461 (language_gdbarch_post_init): Update call to
8462 la_language_arch_info.
8463 * language.h (language_data): Delete la_language_arch_info
8464 function pointer.
8465 (language_defn::language_arch_info): New function.
8466 * m2-lang.c (m2_language_arch_info): Delete function, move
8467 implementation to...
8468 (m2_language::language_arch_info): ...here, a new member
8469 function.
8470 (m2_language_data): Delete la_language_arch_info.
8471 * objc-lang.c (objc_language_arch_info): Delete function, move
8472 implementation to...
8473 (objc_language::language_arch_info): ...here, a new member
8474 function.
8475 (objc_language_data): Delete la_language_arch_info.
8476 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8477 implementation to...
8478 (opencl_language::language_arch_info): ...here, a new member
8479 function.
8480 (opencl_language_data): Delete la_language_arch_info.
8481 * p-lang.c (pascal_language_arch_info): Delete function, move
8482 implementation to...
8483 (pascal_language::language_arch_info): ...here, a new member
8484 function.
8485 (pascal_language_data): Delete la_language_arch_info.
8486 * rust-lang.c (rust_language_arch_info): Delete function, move
8487 implementation to...
8488 (rust_language::language_arch_info): ...here, a new member
8489 function.
8490 (rust_language_data): Delete la_language_arch_info.
8491
48448202
AB
84922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8495 initializer.
8496 * c-lang.c (c_language_data): Likewise.
8497 (cplus_language_data): Likewise.
8498 (cplus_language::pass_by_reference_info): New method.
8499 (asm_language_data): Delete la_pass_by_reference initializer.
8500 (minimal_language_data): Likewise.
8501 * cp-abi.c (cp_pass_by_reference): Remove use of
8502 default_pass_by_reference.
8503 * d-lang.c (d_language_data): Likewise.
8504 * f-lang.c (f_language_data): Likewise.
8505 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8506 default_pass_by_reference.
8507 * go-lang.c (go_language_data): Likewise.
8508 * language.c (language_pass_by_reference): Update.
8509 (default_pass_by_reference): Delete.
8510 (unknown_language_data): Delete la_pass_by_reference
8511 initializer.
8512 (auto_language_data): Likewise.
8513 * language.h (struct language_data): Delete la_pass_by_reference
8514 field.
8515 (language_defn::pass_by_reference_info): New member function.
8516 (default_pass_by_reference): Delete declaration.
8517 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8518 initializer.
8519 * objc-lang.c (objc_language_data): Likewise.
8520 * opencl-lang.c (opencl_language_data): Likewise.
8521 * p-lang.c (pascal_language_data): Likewise.
8522 * rust-lang.c (rust_language_data): Likewise.
8523
15e5fd35
AB
85242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * ada-lang.c (ada_read_var_value): Delete function, move
8527 implementation to...
8528 (ada_language::read_var_value): ...here.
8529 (ada_language_data): Delete la_read_var_value initializer.
8530 * c-lang.c (c_language_data): Likewise.
8531 (cplus_language_data): Likewise.
8532 (minimal_language_data): Likewise.
8533 * d-lang.c (d_language_data): Likewise.
8534 * f-lang.c (f_language_data): Likewise.
8535 * findvar.c (default_read_var_value): Rename to...
8536 (language_defn::read_var_value): ...this.
8537 * findvar.c (read_var_value): Update header comment, and change to
8538 call member function instead of function pointer.
8539 * go-lang.c (go_language_data): Likewise.
8540 * language.c (unknown_language_data): Delete la_read_var_value
8541 initializer.
8542 (auto_language_data): Likewise.
8543 * language.h (struct language_data): Delete la_read_var_value
8544 field.
8545 (language_defn::read_var_value): New member function.
8546 (default_read_var_value): Delete declaration.
8547 * m2-lang.c (m2_language_data): Delete la_read_var_value
8548 initializer.
8549 * objc-lang.c (objc_language_data): Likewise.
8550 * opencl-lang.c (opencl_language_data): Likewise.
8551 * p-lang.c (pascal_language_data): Likewise.
8552 * rust-lang.c (rust_language_data): Likewise.
8553 * value.h (default_read_var_value): Delete declaration.
8554
5bd40f2a
AB
85552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * ada-lang.c (ada_print_array_index): Delete function, move
8558 implementation to...
8559 (ada_language::print_array_index): ...here.
8560 (ada_language_data): Delete la_print_array_index initializer.
8561 * c-lang.c (c_language_data): Likewise.
8562 (cplus_language_data): Likewise.
8563 (minimal_language_data): Likewise.
8564 * d-lang.c (d_language_data): Likewise.
8565 * f-lang.c (f_language_data): Likewise.
8566 * go-lang.c (go_language_data): Likewise.
8567 * language.c (default_print_array_index): Delete function, move
8568 implementation to...
8569 (language_defn::print_array_index): ...here.
8570 (unknown_language_data): Delete la_print_array_index initializer.
8571 (auto_language_data): Likewise.
8572 * language.h (struct language_data): Delete la_print_array_index
8573 field.
8574 (language_defn::print_array_index): New member function.
8575 (LA_PRINT_ARRAY_INDEX): Update.
8576 (default_print_array_index): Delete declaration.
8577 * m2-lang.c (m2_language_data): Delete la_print_array_index
8578 initializer.
8579 * objc-lang.c (objc_language_data): Likewise.
8580 * opencl-lang.c (opencl_language_data): Likewise.
8581 * p-lang.c (pascal_language_data): Likewise.
8582 * rust-lang.c (rust_language_data): Likewise.
8583
0874fd07
AB
85842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8585
8586 * gdb/ada-lang.c (ada_language_defn): Convert to...
8587 (ada_language_data): ...this.
8588 (class ada_language): New class.
8589 (ada_language_defn): New static global.
8590 * gdb/c-lang.c (c_language_defn): Convert to...
8591 (c_language_data): ...this.
8592 (class c_language): New class.
8593 (c_language_defn): New static global.
8594 (cplus_language_defn): Convert to...
8595 (cplus_language_data): ...this.
8596 (class cplus_language): New class.
8597 (cplus_language_defn): New static global.
8598 (asm_language_defn): Convert to...
8599 (asm_language_data): ...this.
8600 (class asm_language): New class.
8601 (asm_language_defn): New static global.
8602 (minimal_language_defn): Convert to...
8603 (minimal_language_data): ...this.
8604 (class minimal_language): New class.
8605 (minimal_language_defn): New static global.
8606 * gdb/d-lang.c (d_language_defn): Convert to...
8607 (d_language_data): ...this.
8608 (class d_language): New class.
8609 (d_language_defn): New static global.
8610 * gdb/f-lang.c (f_language_defn): Convert to...
8611 (f_language_data): ...this.
8612 (class f_language): New class.
8613 (f_language_defn): New static global.
8614 * gdb/go-lang.c (go_language_defn): Convert to...
8615 (go_language_data): ...this.
8616 (class go_language): New class.
8617 (go_language_defn): New static global.
8618 * gdb/language.c (unknown_language_defn): Remove declaration.
8619 (current_language): Initialize to nullptr, real initialization is
8620 moved to _initialize_language.
8621 (languages): Delete global.
8622 (language_defn::languages): Define.
8623 (set_language_command): Use language_defn::languages.
8624 (set_language): Likewise.
8625 (range_error): Likewise.
8626 (language_enum): Likewise.
8627 (language_def): Likewise.
8628 (add_set_language_command): Use language_def::languages for the
8629 language list, and language_def to lookup language pointers.
8630 (skip_language_trampoline): Use language_defn::languages.
8631 (unknown_language_defn): Convert to...
8632 (unknown_language_data): ...this.
8633 (class unknown_language): New class.
8634 (unknown_language_defn): New static global.
8635 (auto_language_defn): Convert to...
8636 (auto_language_data): ...this.
8637 (class auto_language): New class.
8638 (auto_language_defn): New static global.
8639 (language_gdbarch_post_init): Use language_defn::languages.
8640 (_initialize_language): Initialize current_language.
8641 * gdb/language.h (struct language_defn): Rename to...
8642 (struct language_data): ...this.
8643 (struct language_defn): New.
8644 (auto_language_defn): Delete.
8645 (unknown_language_defn): Delete.
8646 (minimal_language_defn): Delete.
8647 (ada_language_defn): Delete.
8648 (asm_language_defn): Delete.
8649 (c_language_defn): Delete.
8650 (cplus_language_defn): Delete.
8651 (d_language_defn): Delete.
8652 (f_language_defn): Delete.
8653 (go_language_defn): Delete.
8654 (m2_language_defn): Delete.
8655 (objc_language_defn): Delete.
8656 (opencl_language_defn): Delete.
8657 (pascal_language_defn): Delete.
8658 (rust_language_defn): Delete.
8659 * gdb/m2-lang.c (m2_language_defn): Convert to...
8660 (m2_language_data): ...this.
8661 (class m2_language): New class.
8662 (m2_language_defn): New static global.
8663 * gdb/objc-lang.c (objc_language_defn): Convert to...
8664 (objc_language_data): ...this.
8665 (class objc_language): New class.
8666 (objc_language_defn): New static global.
8667 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8668 (opencl_language_data): ...this.
8669 (class opencl_language): New class.
8670 (opencl_language_defn): New static global.
8671 * gdb/p-lang.c (pascal_language_defn): Convert to...
8672 (pascal_language_data): ...this.
8673 (class pascal_language): New class.
8674 (pascal_language_defn): New static global.
8675 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8676 language pointer, update comment format.
8677 * gdb/rust-lang.c (rust_language_defn): Convert to...
8678 (rust_language_data): ...this.
8679 (class rust_language): New class.
8680 (rust_language_defn): New static global.
8681
1313c56e
AB
86822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8683
8684 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8685 member variable.
8686 <m_stmt_at_address>: New member variable.
8687 (lnp_state_machine::record_line): Don't record some lines, update
8688 tracking of is_stmt at the same address.
8689 (lnp_state_machine::lnp_state_machine): Initialise new member
8690 variables.
8691
b7ed9f3d
ST
86922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8693
8694 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8695 "-include gnu-nat-mig.h".
8696 * gnu-nat-mig.h: New file.
8697 * gnu-nat.c: Include "gnu-nat-mig.h".
8698 (exc_server, msg_reply_server, notify_server,
8699 process_reply_server): Remove declarations.
8700
14a8ad62
ST
87012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8702
8703 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8704 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8705 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8706 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8707 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8708 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8709 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8710 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8711 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8712 to gnu_nat_target class.
8713 * gnu-nat.c: Likewise.
8714 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8715 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8716 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8717 object.
8718 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8719 instead of `gnu_target'.
8720
0af5e106
ST
87212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8722
8723 * i386-gnu-tdep.c: Include "gdbcore.h"
8724 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8725 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8726 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8727 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8728 i386_gnu_sigcontext_addr): New functions
8729 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8730 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8731 tdep.
8732
078f2fc9
ST
87332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8734
8735 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8736 before fork_inferior call. Avoid calling it if target_is_pushed returns
8737 true.
8738
53dff92c
ST
87392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8740
8741 * gnu-nat.h (gnu_target): New variable declaration.
8742 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8743 gnu_target.
8744 * gnu-nat.c (gnu_target): New variable.
8745 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8746 add_thread_silent, and add_thread calls.
8747 (gnu_nat_target::create_inferior): Pass gnu_target to
8748 add_thread_silent, thread_change_ptid call.
8749 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8750 call.
8751
5a8b8627
ST
87522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8753
8754 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8755 (gnu_nat_target::find_memory_regions): Remove unused
8756 `old_address' variable.
8757
366f550a
ST
87582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8759
8760 * gnu-nat.c: Include "gdbarch.h".
8761
f14871bf
ST
87622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8763
8764 * reply_mig_hack.awk (Error return): Cast function through
8765 void *, to bypass compiler function call check.
8766
c6887cfb
ST
87672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8768
8769 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8770 $(srcdir)/reply_mig_hack.awk.
8771
6930bffe
ST
87722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8773
8774 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8775
112c22ed
JG
87762020-05-30 Jonny Grant <jg@jguk.org>
8777
8778 * configure.ac (ACX_BUGURL): change bug URL to https.
8779
f68f85b5
PA
87802020-05-30 Pedro Alves <palves@redhat.com>
8781
8782 * cp-support.c (replace_typedefs_template): New.
8783 (replace_typedefs_qualified_name): Handle
8784 DEMANGLE_COMPONENT_TEMPLATE.
8785
976ca316
SM
87862020-05-29 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8789 dwarf2/index-cache.h, dwarf2/index-write.c,
8790 dwarf2/index-write.h, dwarf2/line-header.c,
8791 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8792 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8793 variables and fields from `dwarf2_per_objfile` to just
8794 `per_objfile` throughout.
8795
989ade05
SM
87962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8797
8798 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8799 <push_dwarf_reg_entry_value>: Add comment.
8800
c47bae85
KB
88012020-05-28 Kevin Buettner <kevinb@redhat.com>
8802 Keith Seitz <keiths@redhat.com>
8803
8804 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8805 instead of PyEval_ReleaseLock.
8806 (class gdbpy_gil): Move to earlier in file.
8807 (finalize_python): Set gdb_python_initialized.
8808 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8809 when not initialized.
8810
44486dcf
SM
88112020-05-28 Simon Marchi <simon.marchi@efficios.com>
8812
8813 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8814 <push_dwarf_reg_entry_value>: Remove assert. Override
8815 per_objfile with caller_per_objfile.
8816
f030440d
TV
88172020-05-28 Tom de Vries <tdevries@suse.de>
8818
8819 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8820 PR gold/15646 workaround to symbol kind "type".
8821
f0fbb768
TT
88222020-05-27 Tom Tromey <tromey@adacore.com>
8823
8824 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8825
af0b2a3e
TT
88262020-05-27 Tom Tromey <tromey@adacore.com>
8827
8828 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8829 Use htab_find_with_hash.
8830 <add_abbrev>: Remove "abbrev_number" parameter.
8831 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8832 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8833 (hash_abbrev): Add comment.
8834 (abbrev_table::lookup_abbrev): Move to header file.
8835 (abbrev_table::read): Update.
8836
7d00ffec
TT
88372020-05-27 Tom Tromey <tromey@adacore.com>
8838
8839 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8840 method.
8841 <canonical_name>: New member.
8842 <raw_name>: Rename from "name".
8843 (partial_die_info): Initialize canonical_name.
8844 (scan_partial_symbols): Check raw_name.
8845 (partial_die_parent_scope, partial_die_full_name)
8846 (add_partial_symbol, add_partial_subprogram)
8847 (add_partial_enumeration, load_partial_dies): Use "name" method.
8848 (partial_die_info::name): New method.
8849 (partial_die_info::read, guess_partial_die_structure_name)
8850 (partial_die_info::fixup): Update.
8851
697bba18
TT
88522020-05-27 Tom Tromey <tromey@adacore.com>
8853
8854 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8855 <get_ref_die_offset>: Inline.
8856 <get_ref_die_offset_complaint>: New method.
8857 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8858 (attribute::get_ref_die_offset_complaint): Rename from
8859 get_ref_die_offset. Just issue complaint.
8860
c17ace43
HD
88612020-05-27 Hannes Domani <ssbssa@yahoo.de>
8862
8863 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8864
96445f0b
HD
88652020-05-27 Hannes Domani <ssbssa@yahoo.de>
8866
8867 * exec.c (exec_file_attach): Use errno value of first openp failure.
8868
ac637ec3
HD
88692020-05-27 Hannes Domani <ssbssa@yahoo.de>
8870
8871 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8872 Don't close thread handle.
8873
17ee85fc
TT
88742020-05-27 Tom Tromey <tom@tromey.com>
8875 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8878 shared_ptr.
8879 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8880 member.
8881 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8882 dwarf2_per_bfd_objfile_data_key>: New globals.
8883 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8884 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8885 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8886 shared.
8887 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8888 short-circuit when sharing.
8889 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8890 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8891
39b16f87
SM
88922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8893
8894 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8895 to...
8896 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8897 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8898
fcf23d5b
SM
88992020-05-27 Simon Marchi <simon.marchi@efficios.com>
8900
8901 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8902 build_name_components, find_name_components_bounds>:
8903 Add per_objfile parameter.
8904 (struct mapped_index) <symbol_name_at>: Likewise.
8905 (struct mapped_debug_names): Remove constructor.
8906 <dwarf2_per_objfile>: Remove field.
8907 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8908 (mapped_index_base::find_name_components_bounds,
8909 mapped_index_base::build_name_components,
8910 dw2_expand_symtabs_matching_symbol): Likewise.
8911 (class mock_mapped_index) <symbol_name_at>: Likewise.
8912 (check_match): Likewise.
8913 (check_find_bounds_finds): Likewise.
8914 (test_mapped_index_find_name_component_bounds): Update.
8915 (CHECK_MATCH): Update.
8916 (dw2_expand_symtabs_matching): Update.
8917 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8918 per_objfile parameter.
8919 <find_vec_in_debug_names>: Likewise.
8920 <m_per_objfile>: New field.
8921 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8922 parameter.
8923 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8924 (dw2_debug_names_iterator::next): Update.
8925 (dw2_debug_names_lookup_symbol): Update.
8926 (dw2_debug_names_expand_symtabs_for_function): Update.
8927 (dw2_debug_names_map_matching_symbols): Update.
8928 (dw2_debug_names_expand_symtabs_matching): Update.
8929 (dwarf2_read_debug_names): Update.
8930
7188ed02
SM
89312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8932
8933 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8934 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8935 move to dwarf2_per_objfile.
8936 <read_in_chain>: Remove.
8937 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8938 remove_all_cus, age_comp_units>: New methods.
8939 <m_dwarf2_cus>: New member.
8940 (struct dwarf2_per_cu_data) <cu>: Remove.
8941 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8942 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8943 moved to methods of dwarf2_per_objfile.
8944 (dwarf2_clear_marks): Remove.
8945 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8946 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8947 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8948 (dwarf2_per_objfile::remove_all_cus): New.
8949 (class free_cached_comp_units) <~free_cached_comp_units>:
8950 Update.
8951 (load_cu): Update.
8952 (dw2_do_instantiate_symtab): Adjust.
8953 (fill_in_sig_entry_from_dwo_entry): Adjust.
8954 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8955 (cutu_reader::cutu_reader): Likewise.
8956 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8957 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8958 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8959 and dwarf2_per_objfile::age_comp_units.
8960 (load_partial_comp_unit): Update.
8961 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8962 (process_queue): Likewise.
8963 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8964 backlink.
8965 (dwarf2_read_addr_index): Likewise.
8966 (follow_die_offset): Likewise.
8967 (dwarf2_fetch_die_loc_sect_off): Likewise.
8968 (dwarf2_fetch_constant_bytes): Likewise.
8969 (dwarf2_fetch_die_type_sect_off): Likewise.
8970 (follow_die_sig_1): Likewise.
8971 (load_full_type_unit): Likewise.
8972 (read_signatured_type): Likewise.
8973 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8974 (dwarf2_cu::~dwarf2_cu): Remove.
8975 (dwarf2_per_objfile::get_cu): New.
8976 (dwarf2_per_objfile::set_cu): New.
8977 (age_cached_comp_units): Rename to...
8978 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8979 to std::unordered_map.
8980 (free_one_cached_comp_unit): Rename to...
8981 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8982 to std::unordered_map.
8983 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8984 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8985 a dwarf2_per_objfile in data.
8986 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8987 (dwarf2_clear_marks): Remove.
8988
2e671100
SM
89892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8990
8991 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8992 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8993 (init_tu_and_read_dwo_dies): Likewise.
8994 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8995 (cutu_reader::cutu_reader): Likewise.
8996 (load_partial_comp_unit): Likewise.
8997 (process_psymtab_comp_unit): Update.
8998 (build_type_psymtabs_1): Update.
8999 (process_skeletonless_type_unit): Update.
9000 (load_full_comp_unit): Update.
9001 (find_partial_die): Update.
9002 (dwarf2_read_addr_index): Update.
9003 (read_signatured_type): Update.
9004
2e6a9f79
SM
90052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9006
9007 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9008 m_header_read_in>: New fields.
9009 <get_header>: New method.
9010 * dwarf2/read.c (per_cu_header_read_in): Remove.
9011 (dwarf2_per_cu_data::get_header): New.
9012 (dwarf2_per_cu_data::addr_size): Update.
9013 (dwarf2_per_cu_data::offset_size): Update.
9014 (dwarf2_per_cu_data::ref_addr_size): Update.
9015
1b555f17
SM
90162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9017
9018 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9019 (dw2_do_instantiate_symtab): Update.
9020 (queue_and_load_all_dwo_tus): Change parameter from
9021 dwarf2_per_cu_data to dwarf2_cu.
9022 (dwarf2_fetch_die_loc_sect_off): Update.
9023 (dwarf2_fetch_constant_bytes): Update.
9024 (dwarf2_fetch_die_type_sect_off): Update.
9025
8fc0b21d
SM
90262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9027
9028 * dwarf2/read.c (process_full_comp_unit,
9029 process_full_type_unit): Remove per_cu, per_objfile paramters.
9030 Add dwarf2_cu parameter.
9031 (process_queue): Update.
9032
168c9250
SM
90332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9034
9035 * dwarf2/read.c (create_cu_from_index_list): Replace
9036 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9037 (create_cus_from_index_list): Likewise.
9038 (create_cus_from_index): Likewise.
9039 (create_signatured_type_table_from_index): Likewise.
9040 (create_cus_from_debug_names_list): Likewise.
9041 (create_cus_from_debug_names): Likewise.
9042 (dwarf2_read_gdb_index): Update.
9043 (dwarf2_read_debug_names): Update.
9044
e286671b
TT
90452020-05-27 Tom Tromey <tom@tromey.com>
9046 Simon Marchi <simon.marchi@efficios.com>
9047
9048 * dwarf2/read.h (struct dwarf2_per_objfile)
9049 <get_type_for_signatured_type, set_type_for_signatured_type>:
9050 New methods.
9051 <m_type_map>: New member.
9052 (struct signatured_type) <type>: Remove.
9053 * dwarf2/read.c
9054 (dwarf2_per_objfile::get_type_for_signatured_type,
9055 dwarf2_per_objfile::set_type_for_signatured_type): New.
9056 (get_signatured_type): Use new methods.
9057
8adb8487
TT
90582020-05-27 Tom Tromey <tom@tromey.com>
9059 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9062 (struct dwarf2_per_objfile) <type_units>: New member.
9063 <get_type_unit_group_unshareable>: New method.
9064 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9065 num_symtabs, symtabs>: Remove; move to
9066 type_unit_group_unshareable.
9067 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9068 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9069 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9070
127bbf4b
SM
90712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * dwarf2/read.h (struct dwarf2_per_cu_data):
9074 <dwarf2_per_objfile>: Remove.
9075 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9076 dwarf2_per_objfile.
9077 (create_signatured_type_table_from_index): Likewise.
9078 (create_signatured_type_table_from_debug_names): Likewise.
9079 (create_debug_type_hash_table): Likewise.
9080 (fill_in_sig_entry_from_dwo_entry): Likewise.
9081 (create_type_unit_group): Likewise.
9082 (read_comp_units_from_section): Likewise.
9083 (create_cus_hash_table): Likewise.
9084
f6e649dd
SM
90852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9088 dwarf2_per_cu_data::dwarf2_per_objfile.
9089 (compute_compunit_symtab_includes): Likewise.
9090 (dwarf2_cu::start_symtab): Likewise.
9091
aa66c379
SM
90922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9093
9094 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9095 parameter.
9096 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9097 (read_namespace_alias): Update.
9098 (lookup_die_type): Update.
9099 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9100 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9101 Update.
9102 (disassemble_dwarf_expression): Update.
9103
120ce1b5
SM
91042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * dwarf2/read.h (struct dwarf2_queue_item): Add
9107 dwarf2_per_objfile parameter, assign new parameter.
9108 <per_objfile>: New field.
9109 * dwarf2/read.c (free_one_cached_comp_unit): Add
9110 dwarf2_per_objfile parameter.
9111 (queue_comp_unit): Likewise.
9112 (dw2_do_instantiate_symtab): Update.
9113 (process_psymtab_comp_unit): Update.
9114 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9115 (process_imported_unit_die): Update.
9116 (queue_and_load_dwo_tu): Update.
9117 (follow_die_offset): Update.
9118 (follow_die_sig_1): Update.
9119
9f47c707
SM
91202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9123 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9124 (read_call_site_scope): Assign per_objfile.
9125 (dwarf2_per_cu_data::objfile): Remove.
9126 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9127 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9128 dwarf2_per_objfile parameter.
9129 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9130 dwarf2_per_objfile parameter.
9131 (dwarf_expr_reg_to_entry_parameter): Add output
9132 dwarf2_per_objfile parameter.
9133 (locexpr_get_frame_base): Update.
9134 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9135 <push_dwarf_reg_entry_value>: Update.
9136 <call_site_to_target_addr>: Update.
9137 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9138 parameter.
9139 (value_of_dwarf_reg_entry): Update.
9140 (rw_pieced_value): Update.
9141 (indirect_synthetic_pointer): Update.
9142 (dwarf2_evaluate_property): Update.
9143 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9144 parameter.
9145 (locexpr_read_variable): Update.
9146 (locexpr_get_symbol_read_needs): Update.
9147 (loclist_read_variable): Update.
9148
14095eb3
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9152 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9153 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9154 parameter.
9155 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9156 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9157 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9158 parameter.
9159 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9160 sect_variable_value): Add dwarf2_per_objfile parameter.
9161 (class dwarf_evaluate_loc_desc) <dwarf_call,
9162 dwarf_variable_value>: Update.
9163 (fetch_const_value_from_synthetic_pointer): Add
9164 dwarf2_per_objfile parameter.
9165 (fetch_const_value_from_synthetic_pointer): Update.
9166 (coerced_pieced_ref): Update.
9167 (class symbol_needs_eval_context) <dwarf_call,
9168 dwarf_variable_value>: Update.
9169 (dwarf2_compile_expr_to_ax): Update.
9170
3c3cd3d4
SM
91712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9174 parameter.
9175 (dwarf2_evaluate_loc_desc_full): Update.
9176
82ca3f51
SM
91772020-05-27 Simon Marchi <simon.marchi@efficios.com>
9178
9179 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9180 parameter.
9181 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9182 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9183 dwarf2_per_objfile parameter.
9184 (decode_debug_loc_dwo_addresses): Likewise.
9185 (dwarf2_find_location_expression): Update.
9186 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9187 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9188 parameter.
9189 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9190 parameter.
9191 (locexpr_describe_location_1): Likewise.
9192 (locexpr_describe_location): Update.
9193
4b167ea1
SM
91942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9197 Remove.
9198 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9199 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9200 (dwarf2_compile_property_to_c): Update.
9201 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9202 use text offset from objfile.
9203 (locexpr_tracepoint_var_ref): Update.
9204 (locexpr_generate_c_location): Update.
9205 (loclist_describe_location): Update.
9206 (loclist_tracepoint_var_ref): Update.
9207 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9208 dwarf2_per_objfile parameter.
9209 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9210 use text offset from objfile.
9211 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9212
89b07335
SM
92132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * dwarf2/expr.h (struct dwarf_expr_context)
9216 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9217 <offset>: Remove.
9218 <per_objfile>: New member.
9219 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9220 dwarf2_per_objfile parameter. Don't set offset, set
9221 per_objfile.
9222 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9223 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9224 a dwarf2_per_objfile object instead of an offset.
9225 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9226 constructor.
9227 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9228 to dwarf2_expr_executor constructor. Don't set offset.
9229 (dwarf2_fetch_cfa_info): Update.
9230 (struct dwarf2_frame_cache) <text_offset>: Remove.
9231 <per_objfile>: New field.
9232 (dwarf2_frame_cache): Update.
9233 (dwarf2_frame_prev_register): Update.
9234 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9235 <dwarf_evaluate_loc_desc>: Add constructor.
9236 (dwarf2_evaluate_loc_desc_full): Update.
9237 (dwarf2_locexpr_baton_eval): Update.
9238 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9239 Add constructor.
9240 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9241
293e7e51
SM
92422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9245 addr_sized_int_type>: Move to dwarf2_cu.
9246 <int_type>: Move to dwarf2_per_objfile.
9247 (struct dwarf2_per_objfile) <int_type>: Move here.
9248 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9249 addr_sized_int_type>: Move here.
9250 (read_func_scope): Update.
9251 (read_array_type): Update.
9252 (read_tag_string_type): Update.
9253 (attr_to_dynamic_prop): Update.
9254 (dwarf2_per_cu_data::int_type): Rename to...
9255 (dwarf2_per_objfile::int_type): ... this.
9256 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9257 (dwarf2_cu::addr_sized_int_type): ... this.
9258 (read_subrange_type): Update.
9259 (dwarf2_per_cu_data::addr_type): Rename to...
9260 (dwarf2_cu::addr_type): ... this.
9261 (set_die_type): Update.
9262
64874a40
SM
92632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9266 data through per_cu->cu.
9267
4ab09049
SM
92682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9271 dwarf2_per_cu_data parameter fo dwarf2_cu.
9272 (lookup_dwo_type_unit): Likewise.
9273 (read_cutu_die_from_dwo): Likewise.
9274 (lookup_dwo_unit): Likewise.
9275 (open_and_init_dwo_file): Likewise.
9276 (lookup_dwo_cutu): Likewise.
9277 (lookup_dwo_comp_unit): Likewise.
9278 (lookup_dwo_type_unit): Likewise.
9279 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9280 (cutu_reader::cutu_reader): Update.
9281
47b14e86
SM
92822020-05-27 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9285 parameter.
9286 (process_full_type_unit): Likewise.
9287 (process_queue): Update.
9288
43182c09
SM
92892020-05-27 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.c (recursively_compute_inclusions): Add
9292 dwarf2_per_objfile parameter.
9293 (compute_compunit_symtab_includes): Likewise.
9294 (process_cu_includes): Update.
9295
7aa104c4
SM
92962020-05-27 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9299 parameter.
9300 (create_type_unit_group): Update.
9301 (process_psymtab_comp_unit_reader): Update.
9302 (build_type_psymtabs_reader): Update.
9303
e3beb21d
SM
93042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9307 object through m_this_cu->cu.
9308
d460f660
SM
93092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9310
9311 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9312 the info parameter.
9313 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9314
ab432490
SM
93152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9316
9317 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9318 per_objfile parameter.
9319 (load_full_type_unit): Add per_objfile parameter.
9320 (read_signatured_type): Likewise.
9321 (load_full_comp_unit): Likewise.
9322 (load_cu): Likewise.
9323 (dw2_do_instantiate_symtab): Likewise.
9324 (dw2_get_file_names): Likewise.
9325 (dw2_map_symtabs_matching_filename): Update.
9326 (dw_expand_symtabs_matching_file_matcher): Update.
9327 (dw2_map_symbol_filenames): Update.
9328 (process_psymtab_comp_unit): Add per_objfile parameter.
9329 (build_type_psymtabs_1): Update.
9330 (process_skeletonless_type_unit): Update.
9331 (dwarf2_build_psymtabs_hard): Update.
9332 (load_partial_comp_unit): Add per_objfile parameter.
9333 (scan_partial_symbols): Update.
9334 (load_full_comp_unit): Add per_objfile parameter.
9335 (process_imported_unit_die): Update.
9336 (create_cus_hash_table): Update.
9337 (find_partial_die): Update.
9338 (dwarf2_read_addr_index): Update.
9339 (follow_die_offset): Update.
9340 (dwarf2_fetch_die_loc_sect_off): Update.
9341 (dwarf2_fetch_constant_bytes): Update.
9342 (dwarf2_fetch_die_type_sect_off): Update.
9343 (follow_die_sig_1): Update.
9344 (load_full_type_unit): Add per_objfile parameter.
9345 (read_signatured_type): Likewise.
9346
313bad1b
SM
93472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9350 of objfile_name.
9351
c3699833
SM
93522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9353
9354 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9355 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9356 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9357 field.
9358 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9359 (create_cus_from_index): Update.
9360 (dwarf2_read_gdb_index): Update.
9361 (create_cus_from_debug_names): Update.
9362 (dwarf2_read_debug_names): Update.
9363 (get_abbrev_section_for_cu): Update.
9364 (create_all_comp_units): Update.
9365 (read_attribute_value): Update.
9366 (get_debug_line_section): Update.
9367 * dwarf2/index-cache.c (index_cache::store): Update.
9368 * dwarf2/index-write.c (save_gdb_index_command): Update.
9369 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9370
1859c670
SM
93712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9372
9373 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9374 member.
9375 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9376 dwarf2_per_cu_data::per_bfd.
9377 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9378 (create_type_unit_group): Likewise.
9379 (queue_comp_unit): Remove reference to
9380 per_cu->dwarf2_per_objfile.
9381 (maybe_queue_comp_unit): Likewise.
9382 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9383 (create_cus_hash_table): Assign new field.
9384
5e22e966
SM
93852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * dwarf2/read.c: Replace
9388 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9389 dwarf2_cu->per_objfile throughout.
9390
97a1449a
SM
93912020-05-27 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9394 parameter, don't use per_cu->dwarf2_per_objfile.
9395 (dw2_instantiate_symtab): Likewise.
9396 (dw2_find_last_source_symtab): Update.
9397 (dw2_map_expand_apply): Update.
9398 (dw2_lookup_symbol): Update.
9399 (dw2_expand_symtabs_for_function): Update.
9400 (dw2_expand_all_symtabs): Update.
9401 (dw2_expand_symtabs_with_fullname): Update.
9402 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9403 don't use per_cu->dwarf2_per_objfile.
9404 (dw2_expand_marked_cus): Update.
9405 (dw2_find_pc_sect_compunit_symtab): Update.
9406 (dw2_debug_names_lookup_symbol): Update.
9407 (dw2_debug_names_expand_symtabs_for_function): Update.
9408 (dw2_debug_names_map_matching_symbols): Update.
9409 (dwarf2_psymtab::expand_psymtab): Update.
9410
9e021579
SM
94112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9414 <per_objfile>: New member.
9415 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9416 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9417 call to dwarf2_cu.
9418 (cutu_reader::cutu_reader): Update.
9419 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9420
ae090bdb
SM
94212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9424 struct dwarf2_per_objfile.
9425 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9426 dwarf2_per_bfd.
9427 * dwarf2/read.c (set_die_type): Update.
9428 (get_die_type_at_offset): Update.
9429
af758d11
SM
94302020-05-27 Tom Tromey <tom@tromey.com>
9431 Simon Marchi <simon.marchi@efficios.com>
9432
9433 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9434 method.
9435 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9436 get_symtab, set_symtab>: New methods.
9437 <m_symtabs>: New field.
9438 (struct dwarf2_psymtab): Derive from partial_symtab.
9439 <readin_p, get_compunit_symtab>: Declare methods.
9440 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9441 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9442 New methods.
9443 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9444 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9445 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9446 (dw2_symtab_iter_next, dw2_print_stats)
9447 (dw2_expand_symtabs_with_fullname)
9448 (dw2_expand_symtabs_matching_one)
9449 (dw_expand_symtabs_matching_file_matcher)
9450 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9451 (dw2_debug_names_iterator::next)
9452 (dw2_debug_names_map_matching_symbols)
9453 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9454 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9455 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9456 New methods.
9457 (get_compunit_symtab, process_full_comp_unit)
9458 (process_full_type_unit): Update.
9459 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9460
5989a64e
SM
94612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9462
9463 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9464 then introduce a new dwarf2_per_objfile type.
9465 <read_line_string>: Move to the new dwarf2_per_objfile type.
9466 <objfile>: Likewise.
9467 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9468 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9469 dwarf2_per_objfile->per_bfd.
9470 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9471 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9472 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9473 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9474 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9475 (dwarf2_per_objfile::locate_sections): Rename to...
9476 (dwarf2_per_bfd::locate_sections): ... this.
9477 (dwarf2_per_objfile::get_cutu): Rename to...
9478 (dwarf2_per_bfd::get_cutu): ... this.
9479 (dwarf2_per_objfile::get_cu): Rename to...
9480 (dwarf2_per_bfd::get_cu): ... this.
9481 (dwarf2_per_objfile::get_tu): Rename to...
9482 (dwarf2_per_bfd::get_tu): ... this.
9483 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9484 (dwarf2_per_bfd::allocate_per_cu): ... this.
9485 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9486 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9487 (get_gdb_index_contents_ftype): Change parameter from
9488 dwarf2_per_objfile to dwarf2_per_bfd.
9489 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9490 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9491
a50264ba
TT
94922020-05-27 Tom Tromey <tom@tromey.com>
9493 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9496 (allocate_piece_closure): Set "per_objfile" member.
9497 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9498 (locexpr_describe_location, loclist_describe_location): Use new
9499 member.
9500 * dwarf2/read.c (read_call_site_scope)
9501 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9502 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9503 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9504 handle_data_member_location): Set per_objfile member.
9505 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9506 member.
9507 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9508
d3473f0c
TT
95092020-05-27 Tom Tromey <tom@tromey.com>
9510
9511 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9512 allocate_signatured_type>: Declare new methods.
9513 <m_num_psymtabs>: New member.
9514 (struct dwarf2_per_cu_data) <index>: New member.
9515 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9516 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9517 (create_cu_from_index_list): Use allocate_per_cu.
9518 (create_signatured_type_table_from_index)
9519 (create_signatured_type_table_from_debug_names)
9520 (create_debug_type_hash_table, add_type_unit)
9521 (read_comp_units_from_section): Use allocate_signatured_type.
9522
5717c425
TT
95232020-05-27 Tom Tromey <tom@tromey.com>
9524
9525 * psymtab.c (partial_map_expand_apply)
9526 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9527 (psym_lookup_global_symbol_language)
9528 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9529 (psym_print_stats, psym_expand_symtabs_for_function)
9530 (psym_map_symbol_filenames, psym_map_matching_symbols)
9531 (psym_expand_symtabs_matching)
9532 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9533 (maintenance_check_psymtabs): Update.
9534 * psympriv.h (struct partial_symtab) <readin_p,
9535 get_compunit_symtab>: Add objfile parameter.
9536 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9537 Likewise.
9538 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9539 get_compunit_symtab>: Likewise.
9540 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9541
45940949
TT
95422020-05-27 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9545 member.
9546 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9547 (create_cu_from_index_list)
9548 (create_signatured_type_table_from_index)
9549 (create_signatured_type_table_from_debug_names)
9550 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9551 (dwarf2_create_include_psymtab)
9552 (create_debug_type_hash_table, add_type_unit)
9553 (create_type_unit_group, read_comp_units_from_section)
9554 (dwarf2_compute_name, create_cus_hash_table)
9555 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9556 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9557 obstack.
9558 (dw2_get_real_path): Likewise. Change argument to
9559 dwarf2_per_objfile.
9560
f8c6d152
LM
95612020-05-27 Luis Machado <luis.machado@linaro.org>
9562
9563 PR tdep/26000
9564 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9565 for ldrd (immediate).
9566
e98d2e6d
PW
95672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9568
9569 * command.h: Add comment giving the name of class_tui.
9570 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9571 create the fake command for the help for class_tui.
9572
53a47a3e
TT
95732020-05-26 Tom Tromey <tromey@adacore.com>
9574
9575 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9576 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9577 (val_atr): New function.
9578 (value_val_atr): Use it.
9579 * ada-valprint.c (print_optional_low_bound): Change low bound
9580 handling for enums.
9581 (val_print_packed_array_elements): Don't call discrete_position.
9582 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9583 discrete_position for enum types.
9584 * language.c (default_print_array_index): Change type.
9585 * language.h (struct language_defn) <la_print_array_index>: Add
9586 index_type parameter, change type of index_value.
9587 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9588 (default_print_array_index): Update.
9589 * valprint.c (maybe_print_array_index): Don't call
9590 value_from_longest. Update.
9591 (value_print_array_elements): Don't call discrete_position.
9592
0bc2354b
TT
95932020-05-26 Tom Tromey <tromey@adacore.com>
9594
9595 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9596 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9597
1218a4bf
CDA
95982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9599
9600 PR gdb/13519
9601 * avr-tdep.c (avr_integer_to_address): Return data or code
9602 address accordingly to the second 'type' argument of the
9603 function.
9604
92651b1d
MW
96052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9606
9607 * infcmd.c, inferior.h: (construct_inferior_arguments):
9608 Moved function from here to gdbsupport/common-inferior.{h,cc}
9609
0a4f5f8c
TT
96102020-05-23 Tom Tromey <tom@tromey.com>
9611
9612 Revert commit eca1f90c:
9613 * NEWS: Remove entry for completion styling.
9614 * completer.c (_rl_completion_prefix_display_length): Move
9615 declaration later.
9616 (gdb_fnprint): Revert.
9617 (gdb_display_match_list_1): Likewise.
9618 * cli/cli-style.c (completion_prefix_style)
9619 (completion_difference_style, completion_suffix_style): Remove.
9620 (_initialize_cli_style): Revert.
9621 * cli/cli-style.h (completion_prefix_style)
9622 (completion_difference_style, completion_suffix_style): Don't
9623 declare.
9624
e08bd6c5
PA
96252020-05-24 Pedro Alves <palves@redhat.com>
9626
9627 * symtab.c (completion_list_add_name): Return boolean indication
9628 of whether the symbol matched.
9629 (completion_list_add_symbol): Don't try to remove C++ aliases if
9630 the symbol didn't match in the first place.
9631 * symtab.h (completion_list_add_name): Return bool.
9632
ceacbf6e
SM
96332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9634
9635 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9636 type::field.
9637
26f16254
JB
96382020-05-23 Joel Brobecker <brobecker@adacore.com>
9639
9640 GDB 9.2 released.
9641
eca1f90c
TT
96422020-05-23 Tom Tromey <tom@tromey.com>
9643
9644 * NEWS: Add entry for completion styling.
9645 * completer.c (_rl_completion_prefix_display_length): Move
9646 declaration earlier.
9647 (gdb_fnprint): Use completion_style.
9648 (gdb_display_match_list_1): Likewise.
9649 * cli/cli-style.c (completion_prefix_style)
9650 (completion_difference_style, completion_suffix_style): New
9651 globals.
9652 (_initialize_cli_style): Register new globals.
9653 * cli/cli-style.h (completion_prefix_style)
9654 (completion_difference_style, completion_suffix_style): Declare.
9655
51e2cfa2
PA
96562020-05-23 Pedro Alves <palves@redhat.com>
9657
9658 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9659 (parse_escape): Use ISDIGIT instead of isdigit.
9660 (puts_debug): Use gdb_isprint instead of isprint.
9661 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9662 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9663 ISSPACE instead of isspace.
9664 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9665 instead of isspace.
9666 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9667 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9668 instead of isxdigit and ISDIGIT instead of isdigit.
9669
80fc5e77
SM
96702020-05-22 Simon Marchi <simon.marchi@efficios.com>
9671
9672 * gdbtypes.h (struct type) <field>: New method.
9673 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9674 or type::field.
9675
3cabb6b0
SM
96762020-05-22 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9679 (TYPE_FIELDS): Use type::fields. Change all call sites that
9680 modify the propery to use type::set_fields instead.
9681
1f704f76
SM
96822020-05-22 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9685 type::num_fields instead.
9686
5e33d5f4
SM
96872020-05-22 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9690 methods.
9691 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9692 that modify the number of fields to use type::set_num_fields
9693 instead.
9694
9392ebb3
TT
96952020-05-22 Tom Tromey <tromey@adacore.com>
9696
9697 * compile/compile-object-load.h (munmap_list_free): Don't
9698 declare.
9699
7c13f4e8
AB
97002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * annotate.c (annotate_source_line): Update return type, add call
9703 to update current symtab and line.
9704 * annotate.h (annotate_source_line): Update return type, and
9705 extend header comment.
9706 * source.c (info_line_command): Check annotation_level before
9707 calling annotate_source_line.
9708 * stack.c (print_frame_info): If calling annotate_source_line
9709 returns true, then don't print any other source line information.
9710
aa370940
SM
97112020-05-21 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9714
84d53fa9
SM
97152020-05-21 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * coffread.c (patch_type): Remove NULL check before xfree.
9718 * corefile.c (set_gnutarget): Likewise.
9719 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9720 * exec.c (build_section_table): Likewise.
9721 * remote.c (remote_target::pass_signals): Likewise.
9722 * utils.c (n_spaces): Likewise.
9723 * cli/cli-script.c (document_command): Likewise.
9724 * i386-windows-tdep.c (core_process_module_section): Likewise.
9725 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9726
9d428aae
SM
97272020-05-20 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * symfile.c (reread_symbols): Clear objfile's section_offsets
9730 vector and section indices, re-compute them by calling
9731 sym_offsets.
9732
250106a7
TT
97332020-05-20 Tom Tromey <tromey@adacore.com>
9734
9735 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9736 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9737
9a0bacfb
TV
97382020-05-20 Tom de Vries <tdevries@suse.de>
9739
9740 PR symtab/25833
9741 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9742
7b958a48
AM
97432020-05-20 Alan Modra <amodra@gmail.com>
9744
9745 PR 25993
9746 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9747 bfd_set_filename.
9748 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9749 passed to bfd_set_filename.
9750 * symfile-mem.c (add_vsyscall_page): Likewise for string
9751 passed to symbol_file_add_from_memory.
9752 (symbol_file_add_from_memory): Make name param a const char* and
9753 don't strdup.
9754
c7e97679
AM
97552020-05-20 Alan Modra <amodra@gmail.com>
9756
9757 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9758 rather than accessing bfd->filename directly.
9759 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9760 and use bfd_section_name.
9761 * dwarf2/frame.c (decode_frame_entry): Likewise.
9762 * exec.c (exec_set_section_address): Likewise.
9763 * solib-aix.c (solib_aix_bfd_open): Likewise.
9764 * stap-probe.c (get_stap_base_address): Likewise.
9765 * symfile.c (reread_symbols): Likewise.
9766
563c591b
TT
97672020-05-19 Tom Tromey <tromey@adacore.com>
9768
9769 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9770
f408d82c
SM
97712020-05-19 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9774
98c59b52
PA
97752020-05-19 Pedro Alves <palves@redhat.com>
9776
9777 * NEWS (set exec-file-mismatch): Adjust entry.
9778 * exec.c: Include "build-id.h".
9779 (validate_exec_file): Try to match build IDs instead of filenames.
9780 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9781 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9782 and pass down 'warn_if_slow'.
9783 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9784 gdb_bfd_open_closure to pass it down.
9785 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9786
4111f652
PA
97872020-05-19 Pedro Alves <palves@redhat.com>
9788
9789 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9790 * target.c (target_fileio_open_1): Rename to target_fileio_open
9791 and make extern. Use bool.
9792 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9793 (target_fileio_read_alloc_1): Adjust.
9794 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9795 (target_fileio_open_warn_if_slow): Delete declaration.
9796
ad80db5b
PA
97972020-05-19 Pedro Alves <palves@redhat.com>
9798
9799 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9800 Adjust all callers.
9801
1d6ce4d3
YS
98022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9803
9804 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9805 whether disp is negative.
9806
9005fbbb
SM
98072020-05-19 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * symfile.h (struct symfile_segment_data)
9810 <~symfile_segment_data>: Remove.
9811 <segment_info>: Change to std::vector.
9812 * symfile.c (default_symfile_segments): Update.
9813 * elfread.c (elf_symfile_segments): Update.
9814
68b888ff
SM
98152020-05-19 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9818 <segments>: New.
9819 <segment_bases, segment_sizes>: Remove.
9820 * symfile.c (default_symfile_segments): Update.
9821 * elfread.c (elf_symfile_segments): Update.
9822 * remote.c (remote_target::get_offsets): Update.
9823 * solib-target.c (solib_target_relocate_section_addresses):
9824 Update.
9825
62982abd
SM
98262020-05-19 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * symfile.h (struct symfile_segment_data): Initialize fields.
9829 <~symfile_segment_data>: Add.
9830 (symfile_segment_data_up): New.
9831 (struct sym_fns) <sym_segments>: Return a
9832 symfile_segment_data_up.
9833 (default_symfile_segments): Return a symfile_segment_data_up.
9834 (free_symfile_segment_data): Remove.
9835 (get_symfile_segment_data): Return a symfile_segment_data_up.
9836 * symfile.c (default_symfile_segments): Likewise.
9837 (get_symfile_segment_data): Likewise.
9838 (free_symfile_segment_data): Remove.
9839 (symfile_find_segment_sections): Update.
9840 * elfread.c (elf_symfile_segments): Return a
9841 symfile_segment_data_up.
9842 * remote.c (remote_target::get_offsets): Update.
9843 * solib-target.c (solib_target_relocate_section_addresses):
9844 Update.
9845 * symfile-debug.c (debug_sym_segments): Return a
9846 symfile_segment_data_up.
9847
7f204339
RO
98482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9849
e52a0f1b
RO
9850 PR build/25981
9851 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9852 Hardcode register numbers.
9853
7f204339
RO
9854 PR build/25981
9855 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9856 procfs_find_LDT_entry): Remove.
9857 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9858 procfs_find_LDT_entry): Remove.
9859 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9860 Remove.
9861
7f32a4d5
PA
98622020-05-17 Pedro Alves <palves@redhat.com>
9863 Andrew Burgess <andrew.burgess@embecosm.com>
9864 Keno Fischer <keno@juliacomputing.com>
9865
9866 PR gdb/25741
9867 * breakpoint.c (build_target_condition_list): Update comments.
9868 (build_target_command_list): Update comments and skip matching
9869 locations.
9870 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9871 a separate function. Simplify "set breakpoint auto-hw off"
9872 handling.
9873 (insert_breakpoints): Update comment.
9874 (tracepoint_locations_match): New parameter. For breakpoints,
9875 compare location types too, if the caller wants to.
9876 (handle_automatic_hardware_breakpoints): New functions.
9877 (bp_location_is_less_than): Also sort by location type and
9878 hardware breakpoint length.
9879 (update_global_location_list): Handle "set breakpoint auto-hw on"
9880 here.
9881 (update_breakpoint_locations): Ask breakpoint_locations_match to
9882 ignore location types.
9883
7d93a1e0
SM
98842020-05-16 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9887 type::name instead.
9888
d0e39ea2
SM
98892020-05-16 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * gdbtypes.h (struct type) <name, set_name>: New methods.
9892 (TYPE_CODE): Use type::name. Change all call sites used to set
9893 the name to use type::set_name instead.
9894
2dab0c7b
TT
98952020-05-16 Tom Tromey <tom@tromey.com>
9896
9897 * top.c (quit_force): Update.
9898 * infrun.c (handle_no_resumed): Update.
9899 * top.h (all_uis): New function.
9900 (ALL_UIS): Remove.
9901
59f7bd8d
SM
99022020-05-16 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9905
9bf058f0
PA
99062020-05-16 Pedro Alves <palves@redhat.com>
9907
9908 * ia64-linux-nat.c
9909 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9910 Declare method.
9911 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9912
8f86ae1a
SM
99132020-05-15 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9916 (sparc64_adi_info): Likewise.
9917
d6bc0792
TT
99182020-05-15 Tom Tromey <tom@tromey.com>
9919
9920 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9921 block_objfile.
9922 (lookup_objfile_from_block): Remove.
9923 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9924 (lookup_global_symbol): Use block_objfile.
9925 * symtab.h (lookup_objfile_from_block): Don't declare.
9926 * printcmd.c (clear_dangling_display_expressions): Use
9927 block_objfile.
9928 * parse.c (operator_check_standard): Use block_objfile.
9929
8c14c3a3
TT
99302020-05-15 Tom Tromey <tom@tromey.com>
9931
9932 * language.c (language_alloc_type_symbol): Set
9933 SYMBOL_SECTION.
9934 * symtab.c (initialize_objfile_symbol): Remove.
9935 (allocate_symbol): Remove.
9936 (allocate_template_symbol): Remove.
9937 * dwarf2/read.c (fixup_go_packaging): Use "new".
9938 (new_symbol): Use "new".
9939 (read_variable): Don't call initialize_objfile_symbol. Use
9940 "new".
9941 (read_func_scope): Use "new".
9942 * xcoffread.c (process_xcoff_symbol): Don't call
9943 initialize_objfile_symbol.
9944 (SYMBOL_DUP): Remove.
9945 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9946 "new".
9947 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9948 (allocate_template_symbol): Don't declare.
9949 (struct symbol): Add copy constructor. Change defaults.
9950 * jit.c (finalize_symtab): Use "new".
9951 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9952 Use "new".
9953 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9954 (common_block_end): Use "new".
9955 * mdebugread.c (parse_symbol): Use "new".
9956 (new_symbol): Likewise.
9957
5b4a1a8d
PW
99582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9959
9960 * NEWS: Mention changes to help and apropos.
9961
57b4f16e
PW
99622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9963
9964 * command.h (enum command_class): Improve comments, document
9965 that class_alias is for user-defined aliases, give the class
9966 name for each class, remove unused class_xdb.
9967 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9968 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9969 by a precise class.
9970 * infcmd.c (_initialize_infcmd): Likewise.
9971 * reverse.c (_initialize_reverse): Likewise.
9972 * stack.c (_initialize_stack): Likewise.
9973 * symfile.c (_initialize_symfile): Likewise.
9974 * tracepoint.c (_initialize_tracepoint): Likewise.
9975
7c05caf7
PW
99762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9977
9978 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9979 when their aliased command is traversed.
9980 (help_cmd): Add fput_command_names_styled call to
9981 output command name and aliases when command has an alias.
9982
3b3aaacb
PW
99832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9984
9985 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9986 * cli/cli-decode.c (help_cmd_list): Declare as static,
9987 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9988 a command together with the command.
9989 (fput_command_name_styled, fput_command_names_styled): New functions.
9990 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9991 fput_command_name_styled.
9992 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9993 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9994
7aa1b46f
PW
99952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9996
9997 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9998 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9999 * command.h (cmd_show_list): Likewise.
10000 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10001 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10002
89bcba74
PW
100032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10004
10005 * unittests/command-def-selftests.c (traverse_command_structure):
10006 Verify all commands of a list have the same prefix command and
10007 that only the top cmdlist commands have a null prefix.
10008
3f4d92eb
PW
100092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10010
10011 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10012 as prefix, not one of its aliases.
10013 (set_cmd_prefix): Remove.
10014 (do_add_cmd): Centralize the setting of the prefix of a command, when
10015 command is defined after its full chain of prefix commands.
10016 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10017 (add_setshow_cmd_full): Likewise.
10018 (update_prefix_field_of_prefixed_commands): New function.
10019 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10020 update_prefix_field_of_prefixed_commands.
10021 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10022 addresses of remote_set_cmdlist and remote_show_cmdlist given
10023 as argument, not the address of an argument.
10024 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10025 * gdb/remote.c (_initialize_remote): Likewise.
10026
0605465f
PW
100272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10028
10029 * cli/cli-cmds.c (alias_command): Check for an existing alias
10030 using lookup_cmd_composition, as valid_command_p is too strict
10031 and forbids aliases that are the prefix of an existing alias
10032 or command.
10033 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10034 command is properly recognised as a valid command.
10035
58e6ac70
PW
100362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10037
10038 * unittests/help-doc-selftests.c: Rename to
10039 unittests/command-def-selftests.c
10040 * unittests/command-def-selftests.c (help_doc_tests): Update some
10041 comments.
10042 (command_structure_tests, traverse_command_structure): New namespace
10043 and function.
10044 (command_structure_invariants_tests): New function.
10045 (_initialize_command_def_selftests) Renamed from
10046 _initialize_help_doc_selftests, register command_structure_invariants
10047 selftest.
10048
a7b9ceb8
PW
100492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10050
10051 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10052 an alias of 'show'.
10053
b2188a06
JB
100542020-05-15 Joel Brobecker <brobecker@adacore.com>
10055
10056 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10057 ada_is_fixed_point_type. Update all callers.
10058 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10059 all callers.
10060 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10061 Update all callers.
10062 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10063 print_fixed_point_type. Update all callers.
10064 * ada-valprint.c (ada_value_print_num): Replace call to
10065 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10066
a51951c2
KB
100672020-05-14 Kevin Buettner <kevinb@redhat.com>
10068
10069 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10070 processors.
10071 (cpu_supports_bts): Add CV_AMD case.
10072
29d6859f
LM
100732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10074 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * infrun.c (stop_all_threads): Collect multiple wait events at
10077 each pass.
10078
78134374
SM
100792020-05-14 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10082 type::code instead.
10083
67607e24
SM
100842020-05-14 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * gdbtypes.h (struct type) <code, set_code>: New methods.
10087 (TYPE_CODE): Use type::code. Change all call sites used to set
10088 the code to use type::set_code instead.
10089
a05575d3
TBA
100902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10091 Tom de Vries <tdevries@suse.de>
10092 Pedro Alves <palves@redhat.com>
10093
10094 PR threads/25478
10095 * infrun.c (stop_all_threads): Do NOT ignore
10096 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10097 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10098 received.
10099 (handle_no_resumed): Remove code handling a live inferior with no
10100 threads.
10101 * remote.c (has_single_non_exited_thread): New.
10102 (remote_target::update_thread_list): Do not delete a thread if is
10103 the last thread of the process.
10104 * thread.c (thread_select): Call delete_exited_threads instead of
10105 prune_threads.
10106
6ad82919
TBA
101072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10108
10109 * infrun.c (stop_all_threads): Enable/disable thread events of all
10110 targets. Move a debug message denoting the end of the function
10111 into the SCOPED_EXIT block.
10112
d890404b
TBA
101132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10114
10115 * process-stratum-target.h: Include <set>.
10116 (all_non_exited_process_targets, switch_to_target_no_thread): New
10117 function declarations.
10118 * process-stratum-target.c (all_non_exited_process_targets)
10119 (switch_to_target_no_thread): New function implementations.
10120
293b3ebc
TBA
101212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10122
10123 * infrun.c (handle_inferior_event): Extract out a piece of code
10124 into...
10125 (mark_non_executing_threads): ...this new function.
10126
7ca9b62a
TBA
101272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10128
10129 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10130 use.
10131
fc75c28b
TBA
101322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10133
10134 * regcache.c (regcache_read_pc_protected): New function
10135 implementation that returns 0 if the PC cannot read via
10136 'regcache_read_pc'.
10137 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10138 instead of 'regcache_read_pc'.
10139 (keep_going_pass_signal): Ditto.
10140
a89febbd
TT
101412020-05-13 Tom Tromey <tromey@adacore.com>
10142
10143 * ada-lang.c (align_value): Remove.
10144 (ada_template_to_fixed_record_type_1): Use align_up.
10145
f7e23710
TBA
101462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10147
10148 * async-event.c: Update the copyright year.
10149 * async-event.h: Update the copyright year.
10150
02ff80c2
SM
101512020-05-12 Simon Marchi <simon.marchi@efficios.com>
10152
10153 * objfiles.h (is_addr_in_objfile,
10154 shared_objfile_contains_address_p): Return bool.
10155 * objfile.c (is_addr_in_objfile,
10156 shared_objfile_contains_address_p): Return bool.
10157
4fd6c7e8
TT
101582020-05-11 Tom Tromey <tromey@adacore.com>
10159
10160 * cli/cli-cmds.c (info_command): Restore.
10161 (_initialize_cli_cmds): Use add_prefix_command for "info".
10162 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10163
5eb68a39
TT
101642020-05-11 Tom Tromey <tromey@adacore.com>
10165
10166 * ada-lang.c (ada_value_primitive_field): Now public.
10167 * ada-lang.h (ada_value_primitive_field): Declare.
10168 * ada-valprint.c (print_field_values): Use
10169 ada_value_primitive_field for wrapper fields.
10170
7666722f
TV
101712020-05-11 Tom de Vries <tdevries@suse.de>
10172
10173 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10174 MODULE_DOMAIN.
10175
3ee6bb11
TV
101762020-05-11 Tom de Vries <tdevries@suse.de>
10177
10178 PR symtab/25941
10179 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10180 with length 0, if not gdb-produced.
10181 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10182
43434996
TV
101832020-05-09 Tom de Vries <tdevries@suse.de>
10184
10185 PR gdb/25955
10186 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10187 calculation.
10188
2f78cffc
TT
101892020-05-09 Tom Tromey <tom@tromey.com>
10190
10191 * top.c (server_command): Now bool.
10192 * top.h (server_command): Now bool.
10193
4f7bc5ed
TT
101942020-05-08 Tom Tromey <tromey@adacore.com>
10195
10196 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10197 already being processed.
10198
8be4b118
TT
101992020-05-08 Tom Tromey <tom@tromey.com>
10200
10201 * printcmd.c (struct display) <next>: Remove.
10202 <display>: New constructor.
10203 <exp_string>: Now a std::string.
10204 <enabled_p>: Now a bool.
10205 (display_number): Move definition earlier.
10206 (displays): Rename from display_chain. Now a std::vector.
10207 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10208 (display_command): Update.
10209 (do_one_display, disable_display)
10210 (enable_disable_display_command, do_enable_disable_display):
10211 Update.
10212 (free_display): Remove.
10213 (clear_displays): Rewrite.
10214 (delete_display): Update.
10215 (map_display_numbers): Use function_view. Remove "data"
10216 parameter. Update.
10217 (do_delete_display): Remove.
10218 (undisplay_command): Update.
10219 (do_one_display, do_displays, disable_display)
10220 (info_display_command): Update.
10221 (do_enable_disable_display): Remove.
10222 (enable_disable_display_command)
10223 (clear_dangling_display_expressions): Update.
10224
94c93c35
TT
102252020-05-08 Tom Tromey <tom@tromey.com>
10226
10227 * symtab.c (set_symbol_cache_size)
10228 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10229 (maintenance_print_symbol_cache_statistics): Update.
10230 * symmisc.c (print_symbol_bcache_statistics)
10231 (print_objfile_statistics, maintenance_print_objfiles)
10232 (maintenance_info_symtabs, maintenance_check_symtabs)
10233 (maintenance_expand_symtabs, maintenance_info_line_tables):
10234 Update.
10235 * symfile-debug.c (set_debug_symfile): Update.
10236 * source.c (forget_cached_source_info): Update.
10237 * python/python.c (gdbpy_progspaces): Update.
10238 * psymtab.c (maintenance_info_psymtabs): Update.
10239 * probe.c (parse_probes): Update.
10240 * linespec.c (iterate_over_all_matching_symtabs)
10241 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10242 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10243 * exec.c (exec_target::close): Update.
10244 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10245 * breakpoint.c (print_one_breakpoint_location)
10246 (create_longjmp_master_breakpoint)
10247 (create_std_terminate_master_breakpoint): Update.
10248 * progspace.c (program_spaces): Now a std::vector.
10249 (maybe_new_address_space): Update.
10250 (add_program_space): Remove.
10251 (program_space::program_space): Update.
10252 (remove_program_space): Update.
10253 (number_of_program_spaces): Remove.
10254 (print_program_space, update_address_spaces): Update.
10255 * progspace.h (program_spaces): Change type.
10256 (ALL_PSPACES): Remove.
10257 (number_of_program_spaces): Don't declare.
10258 (struct program_space) <next>: Remove.
10259
a1fd1ac9
TT
102602020-05-08 Tom Tromey <tom@tromey.com>
10261
10262 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10263 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10264 (enable_break): Update.
10265 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10266 (frv_fdpic_find_canonical_descriptor): Update.
10267 (frv_fetch_objfile_link_map): Update.
10268 * progspace.c (program_space::free_all_objfiles): Update.
10269 (program_space::solibs): New method.
10270 * progspace.h (struct program_space) <solibs>: New method.
10271 * solist.h (master_so_list): Don't declare.
10272 (ALL_SO_LIBS): Remove.
10273 * solib.h (so_list_head): Remove.
10274 (update_solib_list): Update comment.
10275 * solib.c (master_so_list): Remove.
10276 (solib_used, update_solib_list, solib_add)
10277 (info_sharedlibrary_command, clear_solib)
10278 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10279
38eae084
TT
102802020-05-08 Tom Tromey <tom@tromey.com>
10281
10282 * extension.c (extension_languages): Now a std::array.
10283 (ALL_EXTENSION_LANGUAGES): Remove.
10284 (get_ext_lang_defn, get_ext_lang_of_file)
10285 (eval_ext_lang_from_control_command): Update.
10286 (finish_ext_lang_initialization)
10287 (auto_load_ext_lang_scripts_for_objfile)
10288 (ext_lang_type_printers::ext_lang_type_printers)
10289 (apply_ext_lang_type_printers)
10290 (ext_lang_type_printers::~ext_lang_type_printers)
10291 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10292 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10293 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10294 (get_matching_xmethod_workers, ext_lang_colorize)
10295 (ext_lang_before_prompt): Update.
10296 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10297
596dc4ad
TT
102982020-05-08 Tom Tromey <tom@tromey.com>
10299
10300 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10301 overload.
10302 <swap_string, m_string>: Remove.
10303 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10304 Update.
10305 * stabsread.c (define_symbol, read_type): Update.
10306 * linespec.c (find_linespec_symbols): Update.
10307 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10308 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10309 * dbxread.c (read_dbx_symtab): Update.
10310 * cp-support.h (cp_canonicalize_string_full)
10311 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10312 Return unique_xmalloc_ptr.
10313 * cp-support.c (inspect_type): Update.
10314 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10315 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10316 Likewise.
10317 * c-typeprint.c (print_name_maybe_canonical): Update.
10318 * break-catch-throw.c (check_status_exception_catchpoint):
10319 Update.
10320
bf4cb9be
TV
103212020-05-08 Tom de Vries <tdevries@suse.de>
10322
10323 * infrun.c (follow_fork): Copy current_line and current_symtab to
10324 child thread.
10325
a1b68f28
SM
103262020-05-07 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * async-event.c (struct async_signal_handler, struct
10329 async_event_handler): Reformat, remove typedef.
10330
98d48915
SM
103312020-05-07 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10334 access thistype->main_type->dyn_prop_list directly.
10335
7aa91313
SM
103362020-05-07 Simon Marchi <simon.marchi@efficios.com>
10337
10338 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10339 (remove_dyn_prop): Remove. Update all users to use
10340 type::remove_dyn_prop.
10341 * gdbtypes.c (remove_dyn_prop): Rename to...
10342 (type::remove_dyn_prop): ... this.
10343
5c54719c
SM
103442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10345
10346 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10347 (add_dyn_prop): Remove. Update all users to use
10348 type::add_dyn_prop.
10349 * gdbtypes.c (add_dyn_prop): Rename to...
10350 (type::add_dyn_prop): ... this.
10351
24e99c6c
SM
103522020-05-07 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10355 (get_dyn_prop): Remove. Update all users to use
10356 type::dyn_prop.
10357 * gdbtypes.c (get_dyn_prop): Rename to...
10358 (type::dyn_prop): ... this.
10359
0d4bf016
SM
103602020-05-06 Simon Marchi <simon.marchi@efficios.com>
10361
10362 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10363
ac4a4f1c
SM
103642020-05-06 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10367 instruction, skip it if it's there.
10368
a3bbacc1
SM
103692020-05-05 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10372
c3236f84
SM
103732020-05-04 Simon Marchi <simon.marchi@efficios.com>
10374
10375 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10376 * gdbtypes.c (recursive_dump_type): Remove use of
10377 TYPE_INCOMPLETE.
10378
3b6acaee
TT
103792020-05-03 Tom Tromey <tom@tromey.com>
10380
10381 * breakpoint.c (catch_command, tcatch_command): Remove.
10382 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10383 add_show_prefix_cmd.
10384 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10385 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10386 Remove.
10387 (add_internal_problem_command): Use add_basic_prefix_cmd,
10388 add_show_prefix_cmd.
10389 * mips-tdep.c (set_mipsfpu_command): Remove.
10390 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10391 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10392 (_initialize_index_cache): Use add_basic_prefix_cmd.
10393 * memattr.c (dummy_cmd): Remove.
10394 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10395 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10396 (_initialize_tui_win): Use add_basic_prefix_cmd,
10397 add_show_prefix_cmd.
10398 * cli/cli-logging.c (set_logging_command): Remove.
10399 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10400 add_show_prefix_cmd.
10401 (show_logging_command): Remove.
10402 * target.c (target_command): Remove.
10403 (add_target): Use add_basic_prefix_cmd.
10404
a51119cd
HD
104052020-05-02 Hannes Domani <ssbssa@yahoo.de>
10406
10407 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10408
652fc23a 104092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10410
652fc23a
PW
10411 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10412 info_command.
10413
117539e6
KR
104142020-04-30 Kamil Rytarowski <n54@gmx.com>
10415
10416 * nbsd-nat.c (nbsd_enable_proc_events)
10417 (nbsd_nat_target::post_startup_inferior): Add.
10418 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10419 (nbsd_nat_target::update_thread_list): Rewrite.
10420 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10421 "PTRACE_LWP_CREATE".
10422 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10423
102e38eb 104242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10425
102e38eb
PW
10426 * stack.c (_initialize_stack): Remove duplicated creation
10427 of "frame" command and "f" alias.
10428
ee9d1e5f
HD
104292020-04-30 Hannes Domani <ssbssa@yahoo.de>
10430
10431 PR gdb/18706
10432 * gdbtypes.c (check_typedef): Calculate size of array of
10433 stubbed type.
10434
627c7fb8
HD
104352020-04-30 Hannes Domani <ssbssa@yahoo.de>
10436
10437 PR gdb/15559
10438 * i386-tdep.c (i386_push_dummy_call): Call
10439 i386_thiscall_push_dummy_call.
10440 (i386_thiscall_push_dummy_call): New function.
10441 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10442 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10443 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10444
ffc2844e
SM
104452020-04-29 Simon Marchi <simon.marchi@efficios.com>
10446
10447 * gdbarch.sh (do_read): Add shellcheck disable directive for
10448 warning SC2162.
10449
1207375d
SM
104502020-04-29 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10453 "referenced but not assigned" warning.
10454
9fdb2916
SM
104552020-04-29 Simon Marchi <simon.marchi@efficios.com>
10456
10457 * gdbarch.sh: Remove code that sets fallbackdefault.
10458
759cea5e
SM
104592020-04-29 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * gdbarch.sh: Use shell operators && and || instead of
10462 -a and -o.
10463
cb02ab24
SM
104642020-04-29 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * gdbarch.sh: Use $(...) instead of `...`.
10467
a6fc5ffc
SM
104682020-04-29 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * gdbarch.sh: Use double quotes around variables.
10471
8d113d13
SM
104722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * gdbarch.sh: Use %s with printf, instead of variables in the
10475 format string.
10476
ed6acedd
TT
104772020-04-29 Tom Tromey <tromey@adacore.com>
10478
10479 PR ada/25875:
10480 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10481 type fields here.
10482 (read_enumeration_type): Call
10483 update_enumeration_type_from_children later. Update comments.
10484 (process_enumeration_scope): Don't create type fields.
10485
b68b1b58
KR
104862020-04-29 Kamil Rytarowski <n54@gmx.com>
10487
10488 * nbsd-tdep.c: Include "xml-syscall.h".
10489 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10490
f94b2e03
KR
104912020-04-29 Kamil Rytarowski <n54@gmx.com>
10492
10493 * nbsd-nat.c: Include "sys/wait.h".
10494 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10495 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10496 (nbsd_nat_target::remove_exec_catchpoint)
10497 (nbsd_nat_target::set_syscall_catchpoint): Add.
10498 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10499 (nbsd_nat_target::insert_exec_catchpoint)
10500 (nbsd_nat_target::remove_exec_catchpoint)
10501 (nbsd_nat_target::set_syscall_catchpoint): Add.
10502 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10503 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10504 `nbsd_get_syscall_number'.
10505
fc49bc72
TT
105062020-04-29 Tom Tromey <tom@tromey.com>
10507
10508 * stack.c (print_block_frame_labels): Remove.
10509
d642b692
HD
105102020-04-29 Hannes Domani <ssbssa@yahoo.de>
10511
10512 PR gdb/17320
10513 * ada-valprint.c (val_print_packed_array_elements): Move array
10514 end bracket to new line.
10515 (ada_val_print_string): Remove extra spaces before first array
10516 element.
10517 * c-valprint.c (c_value_print_array): Likewise.
10518 * m2-valprint.c (m2_print_array_contents): Likewise.
10519 (m2_value_print_inner): Likewise.
10520 * p-valprint.c (pascal_value_print_inner): Likewise.
10521 * valprint.c (generic_val_print_array): Likewise.
10522 (value_print_array_elements): Move first array element and array
10523 end bracket to new line.
10524
ea90f227
TV
105252020-04-29 Tom de Vries <tdevries@suse.de>
10526
10527 PR symtab/25889
10528 * linespec.c (find_method): Fix ix calculation.
10529
4498ef4f
KR
105302020-04-28 Kamil Rytarowski <n54@gmx.com>
10531
10532 * syscalls/update-netbsd.sh: New file.
10533 * syscalls/netbsd.xml: Regenerate.
10534 * data-directory/Makefile.in: Register `netbsd.xml' in
10535 `SYSCALLS_FILES'.
10536
a55e30b5
SM
105372020-04-28 Simon Marchi <simon.marchi@efficios.com>
10538
10539 * syscalls/update-freebsd.sh: Add double quotes.
10540
2b2fbab8
TT
105412020-04-28 Tom Tromey <tom@tromey.com>
10542
10543 * NEWS: Update.
10544 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10545 (cmdpy_init): Allow class_tui.
10546
a65189c9
TV
105472020-04-28 Mark Williams <mark@myosotissp.com>
10548
10549 PR gdb/24480
10550 * dwarf2read.c: Add missing assingments to list_in_scope when
10551 start_symtab was already called.
10552
1b95cdb7
SM
105532020-04-28 Simon Marchi <simon.marchi@efficios.com>
10554
10555 PR gdb/25881
10556 * dwarf2/read.c (offset_map_type): Use
10557 gdb:hash_enum<sect_offset> as hash function.
10558
15cd93d0
TV
105592020-04-28 Tom de Vries <tdevries@suse.de>
10560
10561 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10562 with DW_AT_signature.
10563
1eb39914
SM
105642020-04-27 Simon Marchi <simon.marchi@efficios.com>
10565
10566 * configure.ac: Remove check for fs_base/gs_base in
10567 user_regs_struct.
10568 * configure: Re-generate.
10569 * config.in: Re-generate.
10570 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10571 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10572 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10573
991a3e2e
LM
105742020-04-27 Luis Machado <luis.machado@linaro.org>
10575
10576 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10577 problematic inline frame unwinding situation.
10578 * frame.c (frame_id_computed_p): New function.
10579 * frame.h (frame_id_computed_p): New prototype.
10580
361ba0e8
TT
105812020-04-26 Tom Tromey <tom@tromey.com>
10582
10583 * command.h (enum command_class) <class_pseudo>: Remove.
10584
bc3609fd
PW
105852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10586
10587 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10588 and whitespace.
10589
b9771db7
KR
105902020-04-25 Kamil Rytarowski <n54@gmx.com>
10591
ec16513e
SM
10592 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10593 `PT_GET_PROCESS_STATE' block.
b9771db7 10594
7151c1af
TT
105952020-04-24 Tom Tromey <tom@tromey.com>
10596
10597 * symtab.h (symbol_get_demangled_name): Don't declare.
10598 * symtab.c (symbol_get_demangled_name): Remove.
10599 (general_symbol_info::natural_name)
10600 (general_symbol_info::demangled_name): Update.
10601
906bb4c5
TT
106022020-04-24 Tom Tromey <tom@tromey.com>
10603
10604 PR rust/25025:
10605 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10606
bcfe6157
TT
106072020-04-24 Tom Tromey <tom@tromey.com>
10608
10609 PR symtab/12707:
10610 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10611 exists.
10612 (new_symbol): Likewise.
10613 * compile/compile-object-load.c (get_out_value_type): Use
10614 symbol_matches_search_name.
10615
f049a313
TT
106162020-04-24 Tom Tromey <tom@tromey.com>
10617
10618 * dwarf2/read.c (add_partial_symbol): Do not call
10619 compute_and_set_names.
10620
76e288d1
TT
106212020-04-24 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10624 overload.
10625
2467f4f6
TT
106262020-04-24 Tom Tromey <tom@tromey.com>
10627
10628 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10629 (add_psymbol_to_list): New overload. Make old overload call new
10630 one.
10631 * psympriv.h (add_psymbol_to_list): New overload.
10632
e61108c9
TT
106332020-04-24 Tom Tromey <tom@tromey.com>
10634
10635 * dwarf2/read.c (partial_die_info::read) <case
10636 DW_AT_linkage_name>: Use value_as_string.
10637 (dwarf2_string_attr): Use value_as_string.
10638 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10639 method.
10640 * dwarf2/attribute.c (attribute::value_as_string): New method.
10641
8c87a452
TT
106422020-04-24 Tom Tromey <tom@tromey.com>
10643
10644 * symtab.c (general_symbol_info::natural_name)
10645 (general_symbol_info::demangled_name): Check for language_rust.
10646
787de330
TT
106472020-04-24 Tom Tromey <tom@tromey.com>
10648
10649 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10650 (dwarf2_physname): ... from here.
10651 (partial_die_info::read): Add Rust "{" hack.
10652
ff985671
TT
106532020-04-24 Tom Tromey <tom@tromey.com>
10654
10655 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10656 method.
10657 (symbol_set_demangled_name): Don't declare.
10658 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10659 symbol_set_demangled_name.
10660 (general_symbol_info::set_language)
10661 (general_symbol_info::compute_and_set_names): Update.
10662 * minsyms.c (minimal_symbol_reader::install): Update.
10663 * dwarf2/read.c (new_symbol): Update.
10664
1acda803
TT
106652020-04-24 Tom Tromey <tromey@adacore.com>
10666
10667 PR python/23662:
10668 * python/py-type.c (convert_field): Handle
10669 FIELD_LOC_KIND_DWARF_BLOCK.
10670 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10671 (typy_get_dynamic): Nw function.
10672 (type_object_getset): Add "dynamic".
10673 * NEWS: Add entry.
10674
d656f129
TT
106752020-04-24 Tom Tromey <tromey@adacore.com>
10676
10677 * ada-typeprint.c (print_choices, print_variant_part)
10678 (print_record_field_types_dynamic): New functions.
10679 (print_record_field_types): Use print_record_field_types_dynamic.
10680
7d79de9a
TT
106812020-04-24 Tom Tromey <tromey@adacore.com>
10682
10683 * dwarf2/read.c (handle_data_member_location): New overload.
10684 (dwarf2_add_field): Use it.
10685 (decode_locdesc): Add "computed" parameter. Update comment.
10686 * gdbtypes.c (is_dynamic_type_internal): Also look for
10687 FIELD_LOC_KIND_DWARF_BLOCK.
10688 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10689 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10690 virtual base classes.
10691 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10692 FIELD_LOC_KIND_DWARF_BLOCK.
10693
f8e89861
TT
106942020-04-24 Tom Tromey <tromey@adacore.com>
10695
10696 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10697 * gdbtypes.c (is_dynamic_type_internal): Check
10698 TYPE_HAS_DYNAMIC_LENGTH.
10699 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10700 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10701 New macros.
10702 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10703 constant.
10704
9c6a1327
TT
107052020-04-24 Tom Tromey <tromey@adacore.com>
10706
10707 * dwarf2/read.c (struct variant_field): Rewrite.
10708 (struct variant_part_builder): New.
10709 (struct nextfield): Remove "variant" field. Add "offset".
10710 (struct field_info): Add "current_variant_part" and
10711 "variant_parts".
10712 (alloc_discriminant_info): Remove.
10713 (alloc_rust_variant): New function.
10714 (quirk_rust_enum): Update.
10715 (dwarf2_add_field): Set "offset" member. Don't handle
10716 DW_TAG_variant_part.
10717 (offset_map_type): New typedef.
10718 (convert_variant_range, create_one_variant)
10719 (create_one_variant_part, create_variant_parts)
10720 (add_variant_property): New functions.
10721 (dwarf2_attach_fields_to_type): Call add_variant_property.
10722 (read_structure_type): Don't handle DW_TAG_variant_part.
10723 (handle_variant_part, handle_variant): New functions.
10724 (handle_struct_member_die): Use them.
10725 (process_structure_scope): Don't handle variant parts.
10726 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10727 (struct discriminant_info): Remove.
10728 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10729 (struct main_type) <flag_discriminated_union>: Remove.
10730 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10731 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10732 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10733 Update.
10734 * valops.c (value_union_variant): Remove.
10735 * value.h (value_union_variant): Don't declare.
10736
b249d2c2
TT
107372020-04-24 Tom Tromey <tromey@adacore.com>
10738
10739 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10740 (ada_value_primitive_packed_val): Update.
10741 * ada-valprint.c (ada_value_print_1): Update.
10742 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10743 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10744 just an address. Use evaluate_for_locexpr_baton.
10745 (dwarf2_evaluate_property): Update.
10746 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10747 array_view.
10748 * findvar.c (default_read_var_value): Update.
10749 * gdbtypes.c (compute_variant_fields_inner)
10750 (resolve_dynamic_type_internal): Update.
10751 (resolve_dynamic_type): Change type of valaddr parameter.
10752 * gdbtypes.h (resolve_dynamic_type): Update.
10753 * valarith.c (value_subscripted_rvalue): Update.
10754 * value.c (value_from_contents_and_address): Update.
10755
61122aa9
TT
107562020-04-24 Tom Tromey <tromey@adacore.com>
10757
10758 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10759 "push_initial_value" parameter.
10760 (dwarf2_evaluate_property): Likewise.
10761 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10762
ef83a141
TT
107632020-04-24 Tom Tromey <tromey@adacore.com>
10764
10765 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10766 (variant::matches, compute_variant_fields_recurse)
10767 (compute_variant_fields_inner, compute_variant_fields): New
10768 functions.
10769 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10770 Use resolved_type after type is made.
10771 (operator==): Add new cases.
10772 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10773 (struct discriminant_range, struct variant, struct variant_part):
10774 New.
10775 (union dynamic_prop_data) <variant_parts, original_type>: New
10776 members.
10777 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10778 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10779 constants.
10780 * value.c (unpack_bits_as_long): Now public.
10781 * value.h (unpack_bits_as_long): Declare.
10782
675127ec
TT
107832020-04-24 Tom Tromey <tromey@adacore.com>
10784
10785 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10786 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10787
9852ceef
HD
107882020-04-24 Hannes Domani <ssbssa@yahoo.de>
10789
10790 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10791
7632c6ce
KR
107922020-04-24 Kamil Rytarowski <n54@gmx.com>
10793
10794 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10795 (remove_fork_catchpoint, post_startup_inferior)
10796 (post_attach): Move...
10797 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10798 (remove_fork_catchpoint, post_startup_inferior)
10799 (post_attach): ...here.
10800 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10801 (remove_fork_catchpoint, post_startup_inferior)
10802 (post_attach): Move...
10803 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10804 (remove_fork_catchpoint, post_startup_inferior)
10805 (post_attach): ...here.
10806
7be2bb4f
TT
108072020-04-24 Tom Tromey <tromey@adacore.com>
10808
10809 * nat/windows-nat.h (struct windows_thread_info)
10810 <pc_adjusted>: New member.
10811 * windows-nat.c (windows_fetch_one_register): Check
10812 pc_adjusted.
10813 (windows_nat_target::get_windows_debug_event)
10814 (windows_nat_target::wait): Set pc_adjusted.
10815
f80cb3b4
TV
108162020-04-24 Tom de Vries <tdevries@suse.de>
10817
10818 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10819 Run gdb-add-index inside temp dir.
10820
29514b87
TT
108212020-04-23 Tom Tromey <tromey@adacore.com>
10822
10823 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10824 in loop.
10825
5939967b
LM
108262020-04-23 Luis Machado <luis.machado@linaro.org>
10827
10828 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10829 get_frame_register instead of gdbarch_unwind_pc.
10830
70bc38f5
TV
108312020-04-23 Tom de Vries <tdevries@suse.de>
10832
10833 * symtab.c (lookup_global_symbol): Prefer def over decl.
10834
de82891c
TV
108352020-04-23 Tom de Vries <tdevries@suse.de>
10836
10837 PR symtab/25807
10838 * block.c (best_symbol, better_symbol): Promote to external.
10839 * block.h (best_symbol, better_symbol): Declare.
10840 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10841 decl.
10842
ecc6c606
TT
108432020-04-23 Tom Tromey <tromey@adacore.com>
10844
10845 PR ada/25837:
10846 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10847 "const char *", not a "const std::string &".
10848 <name_and_matcher::operator==>: Update.
10849 * unittests/lookup_name_info-selftests.c: Change type of
10850 "result".
10851
740480b8
TT
108522020-04-23 Tom Tromey <tom@tromey.com>
10853
10854 * inferior.h (iterate_over_inferiors): Don't declare.
10855 * inferior.c (iterate_over_inferiors): Remove.
10856 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10857 Remove.
10858 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10859 use iterate_over_inferiors.
10860 (darwin_resume_inferior_it)
10861 (struct resume_inferior_threads_param)
10862 (darwin_resume_inferior_threads_it): Remove.
10863 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10864
ae3ab1f0
TV
108652020-04-23 Tom de Vries <tdevries@suse.de>
10866
10867 * blockframe.c (find_pc_partial_function): Use
10868 find_pc_sect_compunit_symtab rather than
10869 objfile->sf->qf->find_pc_sect_compunit_symtab.
10870
317d2668
TV
108712020-04-22 Tom de Vries <tdevries@suse.de>
10872
10873 PR symtab/25764
10874 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10875 in psymtabs.
10876
eea9e357
TV
108772020-04-22 Tom de Vries <tdevries@suse.de>
10878
10879 PR symtab/25801
10880 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10881 symtabs.
10882
3d5afab3
TV
108832020-04-22 Tom de Vries <tdevries@suse.de>
10884
10885 PR symtab/25700
10886 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10887 CU if already created.
10888
d43b7a2d
TBA
108892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10890
10891 * infrun.c (displaced_step_fixup): Switch to the event_thread
10892 before calling displaced_step_restore, not after.
10893
d89edf9b
MM
108942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10895
10896 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10897 its inferior is not recorded by us.
10898 (record_btrace_target_open): Replace call to
10899 all_non_exited_threads () with call to current_inferior
10900 ()->non_exited_threads ().
10901 (record_btrace_target::stop_recording): Likewise.
10902 (record_btrace_target::close): Likewise.
10903 (record_btrace_target::wait): Likewise.
10904 (record_btrace_target::record_stop_replaying): Likewise.
10905
5897fd49
MM
109062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10907
10908 * btrace.c (btrace_enable): Throw an error on double enables and
10909 when enabling recording fails.
10910 (btrace_disable): Throw an error if the thread is not recorded.
10911
1a476b6d
MM
109122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10913
10914 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10915 request if we do not have a thread_info.
10916
4778a5f8
TV
109172020-04-21 Tom de Vries <tdevries@suse.de>
10918
10919 PR gdb/25471
10920 * thread.c
10921 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10922 exception in get_frame_id.
10923
0fa7617d
TT
109242020-04-20 Tom Tromey <tromey@adacore.com>
10925
10926 * python/python.c (struct gdbpy_event): Mark move constructor as
10927 noexcept.
10928 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10929 constructor as noexcept.
10930 * completer.h (struct completion_result): Mark move constructor as
10931 noexcept.
10932 * completer.c (completion_result::completion_result): Use
10933 initialization style. Don't call reset_match_list.
10934
ad23bda0
MS
109352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10936
10937 * MAINTAINERS (Write After Approval): Add myself.
10938
45e1f031
TT
109392020-04-18 Tom Tromey <tom@tromey.com>
10940
10941 * windows-tdep.c (init_w32_command_list)
10942 (w32_prefix_command_valid): Restore.
10943 (_initialize_windows_tdep): Call init_w32_command_list.
10944
08feed99
TT
109452020-04-18 Tom Tromey <tom@tromey.com>
10946
10947 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10948 * value.c (value_fn_field): Update.
10949 * valops.c (find_function_in_inferior)
10950 (value_allocate_space_in_inferior): Update.
10951 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10952 Update.
10953 * tui/tui-source.c (tui_source_window::set_contents): Update.
10954 * symtab.c (lookup_global_or_static_symbol)
10955 (find_function_start_sal_1, skip_prologue_sal)
10956 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10957 * symmisc.c (dump_msymbols, dump_symtab_1)
10958 (maintenance_print_one_line_table): Update.
10959 * symfile.c (init_entry_point_info, section_is_mapped)
10960 (list_overlays_command, simple_read_overlay_table)
10961 (simple_overlay_update_1): Update.
10962 * stap-probe.c (handle_stap_probe): Update.
10963 * stabsread.c (dbx_init_float_type, define_symbol)
10964 (read_one_struct_field, read_enum_type, read_range_type): Update.
10965 * source.c (info_line_command): Update.
10966 * python/python.c (gdbpy_source_objfile_script)
10967 (gdbpy_execute_objfile_script): Update.
10968 * python/py-type.c (save_objfile_types): Update.
10969 * python/py-objfile.c (py_free_objfile): Update.
10970 * python/py-inferior.c (python_new_objfile): Update.
10971 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10972 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10973 (maintenance_check_psymtabs): Update.
10974 * printcmd.c (info_address_command): Update.
10975 * objfiles.h (struct objfile) <arch>: New method, from
10976 get_objfile_arch.
10977 (get_objfile_arch): Don't declare.
10978 * objfiles.c (get_objfile_arch): Remove.
10979 (filter_overlapping_sections): Update.
10980 * minsyms.c (msymbol_is_function): Update.
10981 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10982 (output_nondebug_symbol): Update.
10983 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10984 (mdebug_expand_psymtab): Update.
10985 * machoread.c (macho_add_oso_symfile): Update.
10986 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10987 Update.
10988 * linux-fork.c (checkpoint_command): Update.
10989 * linespec.c (convert_linespec_to_sals): Update.
10990 * jit.c (finalize_symtab): Update.
10991 * infrun.c (insert_exception_resume_from_probe): Update.
10992 * ia64-tdep.c (ia64_find_unwind_table): Update.
10993 * hppa-tdep.c (internalize_unwinds): Update.
10994 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10995 Update.
10996 * gcore.c (call_target_sbrk): Update.
10997 * elfread.c (record_minimal_symbol, elf_symtab_read)
10998 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10999 (elf_gnu_ifunc_resolve_by_got): Update.
11000 * dwarf2/read.c (create_addrmap_from_index)
11001 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11002 (read_debug_names_from_section)
11003 (process_psymtab_comp_unit_reader, add_partial_symbol)
11004 (add_partial_subprogram, process_full_comp_unit)
11005 (read_file_scope, read_func_scope, read_lexical_block_scope)
11006 (read_call_site_scope, dwarf2_ranges_read)
11007 (dwarf2_record_block_ranges, dwarf2_add_field)
11008 (mark_common_block_symbol_computed, read_tag_pointer_type)
11009 (read_tag_string_type, dwarf2_init_float_type)
11010 (dwarf2_init_complex_target_type, read_base_type)
11011 (partial_die_info::read, partial_die_info::read)
11012 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11013 (dwarf2_fetch_die_loc_sect_off): Update.
11014 * dwarf2/loc.c (dwarf2_find_location_expression)
11015 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11016 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11017 (dwarf2_loc_desc_get_symbol_read_needs)
11018 (locexpr_describe_location_piece, locexpr_describe_location_1)
11019 (loclist_describe_location): Update.
11020 * dwarf2/index-write.c (write_debug_names): Update.
11021 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11022 * dtrace-probe.c (dtrace_process_dof): Update.
11023 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11024 (process_one_symbol): Update.
11025 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11026 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11027 (coff_read_enum_type): Update.
11028 * cli/cli-cmds.c (edit_command, list_command): Update.
11029 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11030 * breakpoint.c (create_overlay_event_breakpoint)
11031 (create_longjmp_master_breakpoint)
11032 (create_std_terminate_master_breakpoint)
11033 (create_exception_master_breakpoint, get_sal_arch): Update.
11034 * block.c (block_gdbarch): Update.
11035 * annotate.c (annotate_source_line): Update.
11036
0743fc83
TT
110372020-04-17 Tom Tromey <tromey@adacore.com>
11038
11039 * auto-load.c (show_auto_load_cmd): Remove.
11040 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11041 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11042 (maintenance_print_arc_command): Remove.
11043 * tui/tui-win.c (tui_command): Remove.
11044 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11045 * tui/tui-layout.c (tui_layout_command): Remove.
11046 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11047 * python/python.c (user_set_python, user_show_python): Remove.
11048 (_initialize_python): Use add_basic_prefix_cmd,
11049 add_show_prefix_cmd.
11050 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11051 (install_gdb_commands): Use add_basic_prefix_cmd,
11052 add_show_prefix_cmd.
11053 (info_guile_command): Remove.
11054 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11055 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11056 add_show_prefix_cmd.
11057 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11058 Remove do_set and do_show parameters.
11059 * cli/cli-style.c (set_style, show_style): Remove.
11060 (_initialize_cli_style): Use add_basic_prefix_cmd,
11061 add_show_prefix_cmd.
11062 (cli_style_option::add_setshow_commands): Remove do_set and
11063 do_show parameters.
11064 (cli_style_option::add_setshow_commands): Use
11065 add_basic_prefix_cmd, add_show_prefix_cmd.
11066 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11067 (set_style_name): Remove.
11068 * cli/cli-dump.c (dump_command, append_command): Remove.
11069 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11070 (tekhex_dump_command, binary_dump_command)
11071 (binary_append_command): Remove.
11072 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11073 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11074 (init_w32_command_list): Remove; move into ...
11075 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11076 * valprint.c (set_print, show_print, set_print_raw)
11077 (show_print_raw): Remove.
11078 (_initialize_valprint): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 * typeprint.c (set_print_type, show_print_type): Remove.
11081 (_initialize_typeprint): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 * record.c (set_record_command, show_record_command): Remove.
11084 (_initialize_record): Use add_basic_prefix_cmd,
11085 add_show_prefix_cmd.
11086 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11087 add_show_prefix_cmd.
11088 (info_command, show_command, set_debug, show_debug): Remove.
11089 * top.h (set_history, show_history): Don't declare.
11090 * top.c (set_history, show_history): Remove.
11091 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11092 (unset_tdesc_cmd): Remove.
11093 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11094 add_show_prefix_cmd.
11095 * symtab.c (info_module_command): Remove.
11096 (_initialize_symtab): Use add_basic_prefix_cmd.
11097 * symfile.c (overlay_command): Remove.
11098 (_initialize_symfile): Use add_basic_prefix_cmd.
11099 * sparc64-tdep.c (info_adi_command): Remove.
11100 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11101 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11102 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11103 add_show_prefix_cmd.
11104 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11105 (_initialize_serial): Use add_basic_prefix_cmd,
11106 add_show_prefix_cmd.
11107 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11108 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11111 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11114 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11115 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11116 add_show_prefix_cmd.
11117 * remote.c (remote_command, set_remote_cmd): Remove.
11118 (_initialize_remote): Use add_basic_prefix_cmd.
11119 * record-full.c (set_record_full_command)
11120 (show_record_full_command): Remove.
11121 (_initialize_record_full): Use add_basic_prefix_cmd,
11122 add_show_prefix_cmd.
11123 * record-btrace.c (cmd_set_record_btrace)
11124 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11125 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11126 (cmd_show_record_btrace_pt): Remove.
11127 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * ravenscar-thread.c (set_ravenscar_command)
11130 (show_ravenscar_command): Remove.
11131 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11132 add_show_prefix_cmd.
11133 * mips-tdep.c (show_mips_command, set_mips_command)
11134 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 * maint.c (maintenance_command, maintenance_info_command)
11137 (maintenance_check_command, maintenance_print_command)
11138 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11139 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11140 add_show_prefix_cmd.
11141 (show_per_command_cmd): Remove.
11142 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11143 Remove.
11144 (maintenance_show_test_settings_cmd): Remove.
11145 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11146 add_show_prefix_cmd.
11147 * maint-test-options.c (maintenance_test_options_command):
11148 Remove.
11149 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11150 * macrocmd.c (macro_command): Remove
11151 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11152 * language.c (set_check, show_check): Remove.
11153 (_initialize_language): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 * infcmd.c (unset_command): Remove.
11156 (_initialize_infcmd): Use add_basic_prefix_cmd.
11157 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11158 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11159 add_show_prefix_cmd.
11160 * go32-nat.c (go32_info_dos_command): Remove.
11161 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11162 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11163 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11164 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11165 (_initialize_frame): Use add_basic_prefix_cmd,
11166 add_show_prefix_cmd.
11167 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11168 (_initialize_dcache): Use add_basic_prefix_cmd,
11169 add_show_prefix_cmd.
11170 * cp-support.c (maint_cplus_command): Remove.
11171 (_initialize_cp_support): Use add_basic_prefix_cmd.
11172 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11173 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11174 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11175 add_basic_prefix_cmd, add_show_prefix_cmd.
11176 * breakpoint.c (save_command): Remove.
11177 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11178 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11179 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11180 add_show_prefix_cmd.
11181 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11182 (set_ada_command, show_ada_command): Remove.
11183 (_initialize_ada_language): Use add_basic_prefix_cmd,
11184 add_show_prefix_cmd.
11185 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11186
3557f442
KR
111872020-04-16 Kamil Rytarowski <n54@gmx.com>
11188
11189 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11190 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11191
16197208
SM
111922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11195 warning messages.
11196
00ac85d3
SM
111972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11198
11199 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11200 import table is not at beginning of .idata section.
11201
381ce63f
PA
112022020-04-16 Pedro Alves <palves@redhat.com>
11203
11204 * inferior.c (delete_inferior): Use delete operator directly
11205 instead of delete_program_space.
11206 * progspace.c (add_program_space): New, factored out from
11207 program_space::program_space.
11208 (remove_program_space): New, factored out from
11209 delete_program_space.
11210 (program_space::program_space): Remove intro comment. Rewrite.
11211 (program_space::~program_space): Remove intro comment. Call
11212 remove_program_space.
11213 (delete_program_space): Delete.
11214 * progspace.h (program_space::program_space): Make explicit. Move
11215 intro comment here, adjusted.
11216 (program_space::~program_space): Move intro comment here,
11217 adjusted.
11218 (delete_program_space): Remove.
11219
a010605f
TT
112202020-04-16 Tom Tromey <tromey@adacore.com>
11221
11222 * windows-nat.c (windows_nat::handle_access_violation): New
11223 function.
11224 * nat/windows-nat.h (handle_access_violation): Declare.
11225 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11226 windows-nat.c. Call handle_access_violation.
11227
efba5c23
TV
112282020-04-16 Tom de Vries <tdevries@suse.de>
11229
11230 PR symtab/25791
11231 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11232 CUs without psymtab.
11233
97ed802d
KB
112342020-04-16 Kevin Buettner <kevinb@redhat.com>
11235
11236 * python/python.c (do_start_initialization): Don't call
11237 PyEval_InitThreads for Python 3.9 and beyond.
11238
c7d64809
KR
112392020-04-15 Kamil Rytarowski <n54@gmx.com>
11240
11241 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11242 thread functions.
11243 (obsd_nat_target::wait): Likewise.
11244
ce127a96
TT
112452020-04-15 Tom Tromey <tromey@adacore.com>
11246
11247 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11248 (DEBUG_EXCEPT): Use debug_printf.
11249
99f1bc6a
AB
112502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * completer.c (class completion_tracker::completion_hash_entry)
11253 <hash_name>: New member function.
11254 (completion_tracker::discard_completions): New callback to hash a
11255 completion_hash_entry, pass this to htab_create_alloc.
11256
a0e9b532
JT
112572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11258
11259 * windows-nat.c (windows_make_so): Warn rather than stopping with
11260 an error if realpath() fails.
11261
06ca5dd4
KR
112622020-04-14 Kamil Rytarowski <n54@gmx.com>
11263
11264 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11265 (nbsd_nat_target::info_proc): Add do_status.
11266
194d088f
TV
112672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11268 Tom de Vries <tdevries@suse.de>
11269
11270 PR symtab/25718
11271 * psympriv.h (struct partial_symtab::read_symtab)
11272 (struct partial_symtab::expand_psymtab)
11273 (struct partial_symtab::read_dependencies): Update comments.
11274 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11275 read_symtab for includer.
11276 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11277 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11278 (struct dwarf2_include_psymtab::m_readin): Remove.
11279 (struct dwarf2_include_psymtab::includer): New member function.
11280 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11281
c1a66c06
TV
112822020-04-14 Tom de Vries <tdevries@suse.de>
11283
11284 PR symtab/25720
11285 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11286 with NULL symbol_matcher and lookup_name.
11287 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11288 and lookup_name.
11289 * dwarf2/read.c (dw2_expand_symtabs_matching)
11290 (dw2_debug_names_expand_symtabs_matching): Same.
11291 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11292 Make lookup_name a pointer. Update comment.
11293 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11294 lookup_name being a pointer.
11295 * symfile.c (expand_symtabs_matching): Same.
11296 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11297 * linespec.c (iterate_over_all_matching_symtabs): Same.
11298
400b5eca
TT
112992020-04-13 Tom Tromey <tom@tromey.com>
11300
11301 * run-on-main-thread.c: Update include.
11302 * unittests/main-thread-selftests.c: Update include.
11303 * tui/tui-win.c: Update include.
11304 * tui/tui-io.c: Update include.
11305 * tui/tui-interp.c: Update include.
11306 * tui/tui-hooks.c: Update include.
11307 * top.h: Update include.
11308 * top.c: Update include.
11309 * ser-base.c: Update include.
11310 * remote.c: Update include.
11311 * remote-notif.c: Update include.
11312 * remote-fileio.c: Update include.
11313 * record-full.c: Update include.
11314 * record-btrace.c: Update include.
11315 * python/python.c: Update include.
11316 * posix-hdep.c: Update include.
11317 * mingw-hdep.c: Update include.
11318 * mi/mi-main.c: Update include.
11319 * mi/mi-interp.c: Update include.
11320 * main.c: Update include.
11321 * linux-nat.c: Update include.
11322 * interps.c: Update include.
11323 * infrun.c: Update include.
11324 * inf-loop.c: Update include.
11325 * event-top.c: Update include.
11326 * event-loop.c: Move to ../gdbsupport/.
11327 * event-loop.h: Move to ../gdbsupport/.
11328 * async-event.h: Update include.
11329 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11330
93b54c8e
TT
113312020-04-13 Tom Tromey <tom@tromey.com>
11332
11333 * tui/tui-win.c: Include async-event.h.
11334 * remote.c: Include async-event.h.
11335 * remote-notif.c: Include async-event.h.
11336 * record-full.c: Include async-event.h.
11337 * record-btrace.c: Include async-event.h.
11338 * infrun.c: Include async-event.h.
11339 * event-top.c: Include async-event.h.
11340 * event-loop.h: Move some declarations to async-event.h.
11341 * event-loop.c: Don't include ser-event.h or top.h. Move some
11342 code to async-event.c.
11343 * async-event.h: New file.
11344 * async-event.c: New file.
11345 * Makefile.in (COMMON_SFILES): Add async-event.c.
11346 (HFILES_NO_SRCDIR): Add async-event.h.
11347
c1cd3163
TT
113482020-04-13 Tom Tromey <tom@tromey.com>
11349
11350 * utils.c (flush_streams): New function.
11351 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11352
29f2bf4f
TT
113532020-04-13 Tom Tromey <tom@tromey.com>
11354
11355 * event-loop.c (handle_file_event): Use warning, not
11356 printf_unfiltered.
11357
98029d02
TT
113582020-04-13 Tom Tromey <tom@tromey.com>
11359
11360 * event-loop.c: Include <chrono>.
11361
06cc9596
TT
113622020-04-13 Tom Tromey <tom@tromey.com>
11363
11364 * gdb_select.h: Move to ../gdbsupport/.
11365 * event-loop.c: Update include path.
11366 * top.c: Update include path.
11367 * ser-base.c: Update include path.
11368 * ui-file.c: Update include path.
11369 * ser-tcp.c: Update include path.
11370 * guile/scm-ports.c: Update include path.
11371 * posix-hdep.c: Update include path.
11372 * ser-unix.c: Update include path.
11373 * gdb_usleep.c: Update include path.
11374 * mingw-hdep.c: Update include path.
11375 * inflow.c: Update include path.
11376 * infrun.c: Update include path.
11377 * event-top.c: Update include path.
11378
8ae8e197
TT
113792020-04-13 Tom Tromey <tom@tromey.com>
11380
11381 * configure: Rebuild.
11382 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11383
58cf28e8
TT
113842020-04-13 Tom Tromey <tom@tromey.com>
11385
11386 * event-loop.h (start_event_loop): Don't declare.
11387 * event-loop.c (start_event_loop): Move...
11388 * main.c (start_event_loop): ...here. Now static.
11389
b7f999ae
SDJ
113902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11391
11392 * MAINTAINERS: Update my email address.
11393
1085dfd4
KR
113942020-04-12 Kamil Rytarowski <n54@gmx.com>
11395
11396 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11397 IP_ALL.
11398
49d1d1f5
KR
113992020-04-12 Kamil Rytarowski <n54@gmx.com>
11400
11401 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11402 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11403
b4848d2a
KR
114042020-04-12 Kamil Rytarowski <n54@gmx.com>
11405
11406 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11407 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11408
51c133d5
KR
114092020-04-12 Kamil Rytarowski <n54@gmx.com>
11410
11411 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11412
54b8cbd0
KR
114132020-04-11 Kamil Rytarowski <n54@gmx.com>
11414
11415 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11416 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11417 (nbsd_nat_target::info_proc): New functions.
11418 * nbsd-nat.c (kinfo_get_vmmap): New function.
11419 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11420 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11421 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11422 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11423 functions.
11424 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11425 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11426 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11427 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11428 (KINFO_VME_FLAG_GROWS_DOWN): New.
11429
cf83625d
AS
114302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11431
11432 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11433 bit shift.
11434
0c4311ab
TT
114352020-04-10 Tom Tromey <tromey@adacore.com>
11436
11437 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11438
3e65b3e9
TT
114392020-04-10 Tom Tromey <tromey@adacore.com>
11440
11441 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11442 separate debug files.
11443
13302e95
HD
114442020-04-10 Hannes Domani <ssbssa@yahoo.de>
11445
11446 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11447 Move to...
11448 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11449 ... here.
11450 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11451 Check for STATUS_WX86_BREAKPOINT.
11452 (windows_nat_target::wait): Same.
11453
bdfc1e8a
TV
114542020-04-10 Tom de Vries <tdevries@suse.de>
11455
11456 PR cli/25808
11457 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11458
f4460aec
SM
114592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11462 (Write After Approval): Remove Tom de Vries.
11463
a25198bb
BE
114642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11465
11466 revert partially:
11467 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11468
aac66a4c
SM
11469 * buildsym.c (record_line): Fix undefined behavior and preserve
11470 lines at eof.
a25198bb 11471
206c98a6
KR
114722020-04-09 Kamil Rytarowski <n54@gmx.com>
11473
11474 * auxv.h (svr4_auxv_parse): New.
11475 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11476 and generic_auxv_parse.
11477 (svr4_auxv_parse): Add.
11478 * obsd-tdep.c: Include "auxv.h".
11479 (obsd_auxv_parse): Remove.
11480 (obsd_init_abi): Remove comment.
11481 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11482 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11483 * nbsd-tdep.c: Include "auxv.h".
11484 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11485
71fbdbaf
TT
114862020-04-08 Tom Tromey <tromey@adacore.com>
11487
11488 * nat/windows-nat.h (last_wait_event): Don't declare.
11489 (wait_for_debug_event): Update comment.
11490 * nat/windows-nat.c (last_wait_event): Now static.
11491
2c1d95e8
TT
114922020-04-08 Tom Tromey <tromey@adacore.com>
11493
11494 * windows-nat.c (wait_for_debug_event): Move to
11495 nat/windows-nat.c.
11496 * nat/windows-nat.h (wait_for_debug_event): Declare.
11497 * nat/windows-nat.c (wait_for_debug_event): Move from
11498 windows-nat.c. No longer static.
11499
d2977bc4
TT
115002020-04-08 Tom Tromey <tromey@adacore.com>
11501
11502 * windows-nat.c (get_windows_debug_event): Use
11503 fetch_pending_stop.
11504 * nat/windows-nat.h (fetch_pending_stop): Declare.
11505 * nat/windows-nat.c (fetch_pending_stop): New function.
11506
e758e19c
TT
115072020-04-08 Tom Tromey <tromey@adacore.com>
11508
11509 * windows-nat.c (windows_continue): Use matching_pending_stop and
11510 continue_last_debug_event.
11511 * nat/windows-nat.h (matching_pending_stop)
11512 (continue_last_debug_event): Declare.
11513 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11514 (matching_pending_stop, continue_last_debug_event): New
11515 functions.
11516
8d30e395
TT
115172020-04-08 Tom Tromey <tromey@adacore.com>
11518
11519 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11520 (handle_exception_result): Move to nat/windows-nat.h.
11521 (DEBUG_EXCEPTION_SIMPLE): Remove.
11522 (windows_nat::handle_ms_vc_exception): New function.
11523 (handle_exception): Move to nat/windows-nat.c.
11524 (get_windows_debug_event): Update.
11525 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11526 nat/windows-nat.c.
11527 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11528 (handle_exception_result): Move from windows-nat.c.
11529 (handle_exception): Declare.
11530 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11531 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11532 windows-nat.c.
11533
29de418d
TT
115342020-04-08 Tom Tromey <tromey@adacore.com>
11535
11536 * windows-nat.c (exception_count, event_count): Remove.
11537 (handle_exception, get_windows_debug_event)
11538 (do_initial_windows_stuff): Update.
11539
a816ba18
TT
115402020-04-08 Tom Tromey <tromey@adacore.com>
11541
11542 * windows-nat.c (windows_nat::handle_load_dll)
11543 (windows_nat::handle_unload_dll): Rename. No longer static.
11544 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11545 Declare.
11546
a00caa12
TT
115472020-04-08 Tom Tromey <tromey@adacore.com>
11548
11549 * complaints.h (stop_whining): Declare at top-level.
11550 (complaint): Don't declare stop_whining.
11551
d41b524f
TT
115522020-04-08 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c (windows_nat::handle_output_debug_string):
11555 Rename. No longer static.
11556 * nat/windows-nat.h (handle_output_debug_string): Declare.
11557
3c76026d
TT
115582020-04-08 Tom Tromey <tromey@adacore.com>
11559
11560 * windows-nat.c (current_process_handle, current_process_id)
11561 (main_thread_id, last_sig, current_event, last_wait_event)
11562 (current_windows_thread, desired_stop_thread_id, pending_stops)
11563 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11564 (display_selectors, fake_create_process)
11565 (get_windows_debug_event): Update.
11566 * nat/windows-nat.h (current_process_handle, current_process_id)
11567 (main_thread_id, last_sig, current_event, last_wait_event)
11568 (current_windows_thread, desired_stop_thread_id, pending_stops)
11569 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11570 * nat/windows-nat.c (current_process_handle, current_process_id)
11571 (main_thread_id, last_sig, current_event, last_wait_event)
11572 (current_windows_thread, desired_stop_thread_id, pending_stops)
11573 (siginfo_er): New globals. Move from windows-nat.c.
11574
9d8679cc
TT
115752020-04-08 Tom Tromey <tromey@adacore.com>
11576
11577 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11578 (handle_load_dll): Update.
11579 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11580
28688adf
TT
115812020-04-08 Tom Tromey <tromey@adacore.com>
11582
11583 * windows-nat.c (enum thread_disposition_type): Move to
11584 nat/windows-nat.h.
11585 (windows_nat::thread_rec): Rename from thread_rec. No longer
11586 static.
11587 (windows_add_thread, windows_nat_target::fetch_registers)
11588 (windows_nat_target::store_registers, handle_exception)
11589 (windows_nat_target::resume, get_windows_debug_event)
11590 (windows_nat_target::get_tib_address)
11591 (windows_nat_target::thread_name)
11592 (windows_nat_target::thread_alive): Update.
11593 * nat/windows-nat.h (enum thread_disposition_type): Move from
11594 windows-nat.c.
11595 (thread_rec): Declare.
11596
4834dad0
TT
115972020-04-08 Tom Tromey <tromey@adacore.com>
11598
11599 * windows-nat.c: Add "using namespace".
11600 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11601 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11602
65bafd5b
TT
116032020-04-08 Tom Tromey <tromey@adacore.com>
11604
11605 * nat/windows-nat.h (struct windows_thread_info): Declare
11606 destructor.
11607 * nat/windows-nat.c (~windows_thread_info): New.
11608
0a4afda3
TT
116092020-04-08 Tom Tromey <tromey@adacore.com>
11610
11611 PR gdb/22992
11612 * windows-nat.c (current_event): Update comment.
11613 (last_wait_event, desired_stop_thread_id): New globals.
11614 (struct pending_stop): New.
11615 (pending_stops): New global.
11616 (windows_nat_target) <stopped_by_sw_breakpoint>
11617 <supports_stopped_by_sw_breakpoint>: New methods.
11618 (windows_fetch_one_register): Add assertions. Adjust PC.
11619 (windows_continue): Handle pending stops. Suspend other threads
11620 when stepping. Use last_wait_event
11621 (wait_for_debug_event): New function.
11622 (get_windows_debug_event): Use wait_for_debug_event. Handle
11623 pending stops. Queue spurious stops.
11624 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11625 (windows_nat_target::kill): Use wait_for_debug_event.
11626 * nat/windows-nat.h (struct windows_thread_info)
11627 <stopped_at_software_breakpoint>: New field.
11628 * nat/windows-nat.c (windows_thread_info::resume): Clear
11629 stopped_at_software_breakpoint.
11630
8e61ebec
TT
116312020-04-08 Tom Tromey <tromey@adacore.com>
11632
11633 * windows-nat.c (enum thread_disposition_type): New.
11634 (thread_rec): Replace "get_context" parameter with "disposition";
11635 change type.
11636 (windows_add_thread, windows_nat_target::fetch_registers)
11637 (windows_nat_target::store_registers, handle_exception)
11638 (windows_nat_target::resume, get_windows_debug_event)
11639 (windows_nat_target::get_tib_address)
11640 (windows_nat_target::thread_name)
11641 (windows_nat_target::thread_alive): Update.
11642
98a03287
TT
116432020-04-08 Tom Tromey <tromey@adacore.com>
11644
11645 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11646 (windows_continue): Use windows_continue::resume.
11647 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11648 resume>: Declare new methods.
11649 * nat/windows-nat.c: New file.
11650 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11651
7c7411bc
TT
116522020-04-08 Tom Tromey <tromey@adacore.com>
11653
11654 * windows-nat.c (windows_add_thread, windows_delete_thread)
11655 (windows_nat_target::fetch_registers)
11656 (windows_nat_target::store_registers, fake_create_process)
11657 (windows_nat_target::resume, windows_nat_target::resume)
11658 (get_windows_debug_event, windows_nat_target::wait)
11659 (windows_nat_target::pid_to_str)
11660 (windows_nat_target::get_tib_address)
11661 (windows_nat_target::get_ada_task_ptid)
11662 (windows_nat_target::thread_name)
11663 (windows_nat_target::thread_alive): Use lwp, not tid.
11664
2950fdf7
TT
116652020-04-08 Tom Tromey <tromey@adacore.com>
11666
11667 * windows-nat.c (handle_exception)
11668 (windows_nat_target::thread_name): Update.
11669 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11670 <name>: Now unique_xmalloc_ptr.
11671
62fe396b
TT
116722020-04-08 Tom Tromey <tromey@adacore.com>
11673
11674 * windows-nat.c (thread_rec)
11675 (windows_nat_target::fetch_registers): Update.
11676 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11677 Update comment.
11678 <debug_registers_changed, reload_context>: Now bool.
11679
e9534bd2
TT
116802020-04-08 Tom Tromey <tromey@adacore.com>
11681
11682 * windows-nat.c (windows_add_thread): Use new.
11683 (windows_init_thread_list, windows_delete_thread): Use delete.
11684 (get_windows_debug_event): Update.
11685 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11686 destructor, and initializers.
11687
ae1f8880
TT
116882020-04-08 Tom Tromey <tromey@adacore.com>
11689
11690 * windows-nat.c (struct windows_thread_info): Remove.
11691 * nat/windows-nat.h: New file.
11692
55a1e039
TT
116932020-04-08 Tom Tromey <tromey@adacore.com>
11694
11695 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11696 (thread_rec, windows_add_thread, windows_delete_thread)
11697 (windows_continue): Update.
11698
93366324
TT
116992020-04-08 Tom Tromey <tromey@adacore.com>
11700
11701 * windows-nat.c (struct windows_thread_info): Remove typedef.
11702 (thread_head): Remove.
11703 (thread_list): New global.
11704 (thread_rec, windows_add_thread, windows_init_thread_list)
11705 (windows_delete_thread, windows_continue): Update.
11706
0f2265e2
SM
117072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11708
11709 * windows-tdep.h (windows_init_abi): Add comment.
11710 (cygwin_init_abi): New declaration.
11711 * windows-tdep.c: Split signal enumeration in two, one for
11712 Windows and one for Cygwin.
11713 (windows_gdb_signal_to_target): Only deal with signal of the
11714 Windows OS ABI.
11715 (cygwin_gdb_signal_to_target): New function.
11716 (windows_init_abi): Rename to windows_init_abi_common, don't set
11717 gdb_signal_to_target gdbarch method. Add new new function with
11718 this name.
11719 (cygwin_init_abi): New function.
11720 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11721 comment. Don't call windows_init_abi.
11722 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11723 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11724 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11725 i386_windows_init_abi_common, don't call windows_init_abi. Add
11726 a new function of this name.
11727 (i386_cygwin_init_abi): New function.
11728 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11729 OS ABI Cygwin.
11730
3810f182
SM
117312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11732
11733 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11734 parameter.c.
11735 (dwarf2_read_gdb_index): Update.
11736
063f8e80
KR
117372020-04-07 Kamil Rytarowski <n54@gmx.com>
11738
11739 * nbsd-tdep.c: Include "objfiles.h".
11740 (nbsd_skip_solib_resolver): New.
11741 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11742
85a9510c 117432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11744
11745 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11746 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11747 with DW_LLE_base_addressx are being emitted in DWARFv5.
11748 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11749 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11750 unsigned integer.
11751
9fc3eaae 117522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11753
11754 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11755 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11756 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11757 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11758 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11759 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11760 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11761
11762
41144253 117632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11764
11765 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11766 (read_loclist_index): New function definition.
11767 (lookup_loclist_base): New function definition.
11768 (read_loclist_header): New function definition.
11769 (dwarf2_cu): Add loclist_base and loclist_header field.
11770 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11771 (read_full_die_1): Read the value of DW_AT_loclists_base.
11772 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11773 (read_attribute_value): Handle DW_FORM_loclistx.
11774 (skip_one_die): Handle DW_FORM_loclistx.
11775 (loclist_header): New structure declaration.
11776 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11777
9f4e76a4
SM
117782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11779
11780 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11781 constructor. Remove `addr` parameter from other constructor and
11782 add `per_cu` parameter.
11783 * dwarf2/read.c (create_partial_symtab): Update.
11784
25c11aca
TV
117852020-04-07 Tom de Vries <tdevries@suse.de>
11786
11787 PR symtab/25796
11788 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11789 (partial_die_info::fixup): Inherit has_const_value.
11790
5707e24b
TV
117912020-04-07 Tom de Vries <tdevries@suse.de>
11792
11793 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11794 symbols without address.
11795
05f00e22
KR
117962020-04-06 Kamil Rytarowski <n54@gmx.com>
11797
11798 * nbsd-nat.h (struct thread_info): Add forward declaration.
11799 (nbsd_nat_target::thread_alive): Add.
11800 (nbsd_nat_target::thread_name): Likewise.
11801 (nbsd_nat_target::update_thread_list): Likewise.
11802 (update_thread_list::post_attach): Likewise.
11803 (post_attach::pid_to_str): Likewise.
11804 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11805 (nbsd_thread_lister): Add.
11806 (nbsd_nat_target::thread_alive): Likewise.
11807 (nbsd_nat_target::thread_name): Likewise.
11808 (nbsd_add_threads): Likewise.
11809 (update_thread_list::post_attach): Likewise.
11810 (nbsd_nat_target::update_thread_list): Likewise.
11811 (post_attach::pid_to_str): Likewise.
11812
6ee448cc
TT
118132020-04-06 Tom Tromey <tromey@adacore.com>
11814
11815 * ada-valprint.c (print_variant_part): Extract the variant field.
11816 (print_field_values): Use the field as the outer value when
11817 recursing.
11818
dea34e8c
TT
118192020-04-06 Tom Tromey <tromey@adacore.com>
11820
11821 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11822 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11823 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11824 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11825 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11826
93689ce9
TT
118272020-04-06 Tom Tromey <tromey@adacore.com>
11828
11829 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11830 TYPE_CODE_ERROR.
11831
79743962
KR
118322020-04-06 Kamil Rytarowski <n54@gmx.com>
11833
11834 * nbsd-tdep.c: Include "gdbarch.h".
11835 Define enum with NetBSD signal numbers.
11836 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11837 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11838 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11839 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11840 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11841 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11842 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11843 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11844 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11845 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11846 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11847 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11848
9e7c9a03
HD
118492020-04-03 Hannes Domani <ssbssa@yahoo.de>
11850
11851 PR gdb/25325
11852 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11853
d9e49b61
TT
118542020-04-03 Tom Tromey <tromey@adacore.com>
11855
11856 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11857 Read constant block.
11858
e0fc5c3f
SM
118592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11860
11861 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11862 (gdb_bfd_get_full_section_contents): New declaration.
11863 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11864 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11865 gdb_bfd_get_full_section_contents.
11866
e2ff18a0
SM
118672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11868
11869 * exec.c (build_section_table): Replace internal_error with
11870 gdb_assert.
11871 (section_table_xfer_memory_partial): Likewise.
11872 * mdebugread.c (parse_partial_symbols): Likewise.
11873 * psymtab.c (lookup_partial_symbol): Likewise.
11874 * utils.c (wrap_here): Likewise.
11875
0830d301
TT
118762020-04-02 Tom Tromey <tromey@adacore.com>
11877
11878 * f-lang.c (build_fortran_types): Use arch_type to initialize
11879 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11880
e7da7f8f
TT
118812020-04-02 Tom Tromey <tromey@adacore.com>
11882
11883 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11884 of attributes.
11885
c90d28ac
AB
118862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11887 Bernd Edlinger <bernd.edlinger@hotmail.de>
11888 Tom Tromey <tromey@adacore.com>
11889
11890 * buildsym.c (buildsym_compunit::record_line): Remove
11891 deduplication code.
11892
1aa98955
TV
118932020-04-02 Tom de Vries <tdevries@suse.de>
11894
11895 PR ada/24671
11896 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11897
d3214198
TV
118982020-04-02 Tom de Vries <tdevries@suse.de>
11899
11900 * dwarf2/read.c (dwarf2_gdb_index_functions,
11901 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11902 NULL.
11903 * psymtab.c (psym_lookup_global_symbol_language): New function.
11904 (psym_functions): Init psym_lookup_global_symbol_language with
11905 psym_lookup_global_symbol_language.
11906 * symfile-debug.c (debug_sym_quick_functions): Init
11907 lookup_global_symbol_language with NULL.
11908 * symfile.c (set_initial_language): Remove fixme comment.
11909 * symfile.h (struct quick_symbol_functions): Add
11910 lookup_global_symbol_language.
11911 * symtab.c (find_quick_global_symbol_language): New function.
11912 (find_main_name): Use find_quick_global_symbol_language.
11913
2836752f
SM
119142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11917
64dc2d4b
BE
119182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11919
11920 * buildsym.c (record_line): Fix undefined behavior and preserve
11921 lines at eof.
11922
bbe3dc41
BE
119232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11924
11925 * buildsym.c (record_line): Fix the resizing condition.
11926
6b4a335b
TT
119272020-04-01 Tom Tromey <tom@tromey.com>
11928
11929 * value.h (value_literal_complex): Add comment.
11930 * valops.c (value_literal_complex): Refer to value.h.
11931
3638a098
TT
119322020-04-01 Tom Tromey <tom@tromey.com>
11933
11934 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11935 (scalar_type): New rule, from typebase.
11936 (typebase): Use scalar_type. Recognize complex types.
11937 (field_name): Handle FLOAT_KEYWORD.
11938 (ident_tokens): Add _Complex and __complex__.
11939
c34e8714
TT
119402020-04-01 Tom Tromey <tom@tromey.com>
11941
11942 PR exp/25299:
11943 * valarith.c (promotion_type, complex_binop): New functions.
11944 (scalar_binop): Handle complex numbers. Use promotion_type.
11945 (value_pos, value_neg, value_complement): Handle complex numbers.
11946
fa649bb7
TT
119472020-04-01 Tom Tromey <tom@tromey.com>
11948
11949 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11950 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11951 (parse_number): Handle complex numbers.
11952
981c08ce
TT
119532020-04-01 Tom Tromey <tom@tromey.com>
11954
11955 * c-valprint.c (c_decorations): Change complex suffix to "i".
11956
4c99290d
TT
119572020-04-01 Tom Tromey <tom@tromey.com>
11958
11959 * valprint.c (generic_value_print_complex): Use accessors.
11960 * value.h (value_real_part, value_imaginary_part): Declare.
11961 * valops.c (value_real_part, value_imaginary_part): New
11962 functions.
11963 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11964
5b930b45
TT
119652020-04-01 Tom Tromey <tom@tromey.com>
11966
11967 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11968 (read_range_type): Update.
11969 * mdebugread.c (basic_type): Update.
11970 * go-lang.c (build_go_types): Use init_complex_type.
11971 * gdbtypes.h (struct main_type) <complex_type>: New member.
11972 (init_complex_type): Update.
11973 (arch_complex_type): Don't declare.
11974 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11975 Make name if none given. Use alloc_type_copy. Look for cached
11976 complex type.
11977 (arch_complex_type): Remove.
11978 (gdbtypes_post_init): Use init_complex_type.
11979 * f-lang.c (build_fortran_types): Use init_complex_type.
11980 * dwarf2/read.c (read_base_type): Update.
11981 * d-lang.c (build_d_types): Use init_complex_type.
11982 * ctfread.c (read_base_type): Update.
11983
53cccef1
TBA
119842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11985
11986 * infrun.c (stop_all_threads): Update assertion, plus when
11987 stopping threads, take into account that we might be trying
11988 to stop an all-stop target.
11989 (stop_waiting): Call 'stop_all_threads' if there exists a
11990 non-stop target.
11991
a0714d30
TBA
119922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11993
11994 * target.h (exists_non_stop_target): New function declaration.
11995 * target.c (exists_non_stop_target): New function.
11996
60e22c1e
HD
119972020-04-01 Hannes Domani <ssbssa@yahoo.de>
11998
11999 PR gdb/24789
12000 * eval.c (is_integral_or_integral_reference): New function.
12001 (evaluate_subexp_standard): Allow integer references in
12002 pointer arithmetic.
12003
e139a727
TBA
120042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12005
12006 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12007 check for no ptid in the stop reply when the target is non-stop.
12008
e0802d59
TT
120092020-04-01 Tom Tromey <tromey@adacore.com>
12010
12011 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12012 "name" parameter to rvalue reference. Initialize m_name_holder.
12013 <lookup_name_info>: New overloads.
12014 <name>: Return gdb::string_view.
12015 <c_str>: New method.
12016 <make_ignore_params>: Update.
12017 <search_name_hash>: Update.
12018 <language_lookup_name>: Return const char *.
12019 <m_name>: Change type.
12020 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12021 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12022 (lookup_name_info::match_any): Update.
12023 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12024 Update.
12025 * minsyms.c (linkage_name_str): Update.
12026 * language.c (default_symbol_name_matcher): Update.
12027 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12028 Update.
12029 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12030 (ada_lookup_name_info::ada_lookup_name_info): Update.
12031 (literal_symbol_name_matcher): Update.
12032
8c072cb6
TT
120332020-04-01 Tom Tromey <tromey@adacore.com>
12034
12035 * psymtab.c (psymtab_search_name): Remove function.
12036 (psym_lookup_symbol): Create search name and lookup name here.
12037 (lookup_partial_symbol): Remove "name" parameter; add
12038 lookup_name.
12039 (psym_expand_symtabs_for_function): Update.
12040
6f29a534
TT
120412020-03-31 Joel Jones <joelkevinjones@gmail.com>
12042
12043 PR tui/25597:
12044 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12045
af62665e
TT
120462020-03-31 Tom Tromey <tromey@adacore.com>
12047
12048 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12049 memcpy.
12050
d1a89da5
NC
120512020-03-30 Nelson Chu <nelson.chu@sifive.com>
12052
12053 * features/riscv/32bit-csr.xml: Regenerated.
12054 * features/riscv/64bit-csr.xml: Regenerated.
12055
d8af9068
TT
120562020-03-30 Tom Tromey <tromey@adacore.com>
12057
12058 * ada-valprint.c (print_variant_part): Update.
12059 * ada-lang.h (ada_which_variant_applies): Update.
12060 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12061 outer_valaddr parameters; replace with "outer" value parameter.
12062 (to_fixed_variant_branch_type): Update.
12063
227c0bf4
PFC
120642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12065
12066 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12067 <list>. Remove inclusion of observable.h.
12068 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12069 (struct arch_lwp_info): New struct.
12070 (class ppc_linux_dreg_interface): New class.
12071 (struct ppc_linux_process_info): New struct.
12072 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12073 <low_new_clone, low_forget_process, low_prepare_to_resume>
12074 <copy_thread_dreg_state, mark_thread_stale>
12075 <mark_debug_registers_changed, register_hw_breakpoint>
12076 <clear_hw_breakpoint, register_wp, clear_wp>
12077 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12078 <num_memory_accesses, get_trigger_type>
12079 <create_watchpoint_request, hwdebug_point_cmp>
12080 <init_arch_lwp_info, get_arch_lwp_info>
12081 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12082 methods.
12083 <struct ptid_hash>: New inner struct.
12084 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12085 members.
12086 (saved_dabr_value, hwdebug_info, max_slots_number)
12087 (struct hw_break_tuple, struct thread_points, ppc_threads)
12088 (have_ptrace_hwdebug_interface)
12089 (hwdebug_find_thread_points_by_tid)
12090 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12091 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12092 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12093 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12094 use m_dreg_interface.
12095 (hwdebug_point_cmp): Change to...
12096 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12097 reference arguments instead of pointers.
12098 (ppc_linux_nat_target::ranged_break_num_registers): Use
12099 m_dreg_interface.
12100 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12101 m_dreg_interface. Call register_hw_breakpoint.
12102 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12103 m_dreg_interface. Call clear_hw_breakpoint.
12104 (get_trigger_type): Change to...
12105 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12106 comment.
12107 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12108 use m_dreg_interface. Call register_hw_breakpoint.
12109 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12110 use m_dreg_interface. Call clear_hw_breakpoint.
12111 (can_use_watchpoint_cond_accel): Change to...
12112 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12113 method. Update comment, use m_dreg_interface and
12114 m_process_info.
12115 (calculate_dvc): Change to...
12116 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12117 m_dreg_interface.
12118 (num_memory_accesses): Change to...
12119 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12120 (check_condition): Change to...
12121 (ppc_linux_nat_target::check_condition): ...this method.
12122 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12123 comment, use m_dreg_interface.
12124 (create_watchpoint_request): Change to...
12125 (ppc_linux_nat_target::create_watchpoint_request): ...this
12126 method. Use m_dreg_interface.
12127 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12128 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12129 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12130 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12131 (ppc_linux_nat_target::low_forget_process)
12132 (ppc_linux_nat_target::low_new_fork)
12133 (ppc_linux_nat_target::low_new_clone)
12134 (ppc_linux_nat_target::low_delete_thread)
12135 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12136 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12137 only call mark_thread_stale.
12138 (ppc_linux_thread_exit): Remove.
12139 (ppc_linux_nat_target::stopped_data_address): Change to...
12140 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12141 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12142 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12143 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12144 comment. Call low_stopped_data_address.
12145 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12146 m_dreg_interface.
12147 (ppc_linux_nat_target::masked_watch_num_registers): Use
12148 m_dreg_interface.
12149 (ppc_linux_nat_target::copy_thread_dreg_state)
12150 (ppc_linux_nat_target::mark_thread_stale)
12151 (ppc_linux_nat_target::mark_debug_registers_changed)
12152 (ppc_linux_nat_target::register_hw_breakpoint)
12153 (ppc_linux_nat_target::clear_hw_breakpoint)
12154 (ppc_linux_nat_target::register_wp)
12155 (ppc_linux_nat_target::clear_wp)
12156 (ppc_linux_nat_target::init_arch_lwp_info)
12157 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12158 (_initialize_ppc_linux_nat): Remove observer callback.
12159
4db10d8f
PFC
121602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12161
12162 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12163 (ppc_linux_nat_target::auxv_parse)
12164 (ppc_linux_nat_target::read_description)
12165 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12166 Move up.
12167
1310c1b0
PFC
121682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12169
12170 * linux-nat.h (low_new_clone): New method.
12171 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12172
69b037c3
SM
121732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12174
12175 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12176 (dbx_expand_psymtab): ... this.
12177 (start_psymtab): Update.
12178 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12179 (mdebug_expand_psymtab): ... this.
12180 (parse_partial_symbols): Update.
12181 (new_psymtab): Update.
12182 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12183 (xcoff_expand_psymtab): ... this.
12184 (xcoff_start_psymtab): Update.
12185
48993951
SM
121862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12187
12188 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12189 <expand_dependencies>: ... this.
12190 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12191 (partial_symtab::expand_dependencies): ... this.
12192 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12193 Update.
12194 (dwarf2_psymtab::expand_psymtab): Update.
12195 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12196 * mdebugread.c (psymtab_to_symtab_1): Update.
12197 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12198
3ad83046
SM
121992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12200
12201 * psympriv.h (discard_psymtab): Remove.
12202 * dbxread.c (dbx_end_psymtab): Update.
12203 * xcoffread.c (xcoff_end_psymtab): Update.
12204
4d1b9ab6
TT
122052020-03-28 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12208 comment.
12209
f1749218
TT
122102020-03-28 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12213
ebea7626
HD
122142020-03-27 Hannes Domani <ssbssa@yahoo.de>
12215
12216 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12217
a879b4d5
JB
122182020-03-26 John Baldwin <jhb@FreeBSD.org>
12219
12220 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12221
0826b30a
TT
122222020-03-26 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12225 (mark_common_block_symbol_computed, read_tag_string_type)
12226 (attr_to_dynamic_prop, read_subrange_type): Update.
12227 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12228 to be methods on struct attribute.
12229 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12230 (read_call_site_scope, partial_die_info::read)
12231 (partial_die_info::read, lookup_die_type, follow_die_ref):
12232 Update.
12233 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12234 from dwarf2_get_ref_die_offset.
12235 (attribute::constant_value): New method, from
12236 dwarf2_get_attr_constant_value.
12237 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12238 Declare method.
12239 <constant_value>: New method.
12240
2b2558bf
TT
122412020-03-26 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12244 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12245 (dwarf_type_encoding_name): Move to stringify.c.
12246 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12247 * dwarf2/stringify.c: New file.
12248 * dwarf2/stringify.h: New file.
12249
eeb64781
TT
122502020-03-26 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12253 Rewrite.
12254
a39fdb41
TT
122552020-03-26 Tom Tromey <tom@tromey.com>
12256
12257 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12258 methods.
12259 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12260 (lookup_ranges_base): Likewise.
12261 (read_cutu_die_from_dwo, read_full_die_1): Update.
12262
436c571c
TT
122632020-03-26 Tom Tromey <tom@tromey.com>
12264
12265 * dwarf2/read.c (read_import_statement, read_file_scope)
12266 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12267 (read_lexical_block_scope, read_call_site_scope)
12268 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12269 (handle_struct_member_die, process_structure_scope)
12270 (update_enumeration_type_from_children)
12271 (process_enumeration_scope, read_array_type, read_common_block)
12272 (read_namespace, read_module, read_subroutine_type): Update.
12273 (sibling_die): Remove.
12274
052c8bb8
TT
122752020-03-26 Tom Tromey <tom@tromey.com>
12276
12277 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12278 (build_type_psymtabs_reader, read_structure_type)
12279 (read_enumeration_type, read_full_die_1): Update.
12280 (dwarf2_attr_no_follow): Move to die.h.
12281 * dwarf2/die.h (struct die_info) <attr>: New method.
12282
2b24b6e4
TT
122832020-03-26 Tom Tromey <tom@tromey.com>
12284
12285 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12286 <base_address>: Now an optional.
12287 (dwarf2_find_base_address, dwarf2_rnglists_process)
12288 (dwarf2_ranges_process, fill_in_loclist_baton)
12289 (dwarf2_symbol_mark_computed): Update.
12290
c2d50fd0
TT
122912020-03-26 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/read.c (struct die_info): Move to die.h.
12294 * dwarf2/die.h: New file.
12295
0df7ad3a
TT
122962020-03-26 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12299 * dwarf2/read.c
12300 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12301 Move to line-header.c.
12302 (read_checked_initial_length_and_offset, read_formatted_entries):
12303 Likewise.
12304 (dwarf_decode_line_header): Split into two.
12305 * dwarf2/line-header.c
12306 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12307 Move from read.c.
12308 (read_checked_initial_length_and_offset, read_formatted_entries):
12309 Likewise.
12310 (dwarf_decode_line_header): New function, split from read.c.
12311
86c0bb4c
TT
123122020-03-26 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12315 Declare method.
12316 * dwarf2/read.c (read_attribute_value): Update.
12317 (dwarf2_per_objfile::read_line_string): Rename from
12318 read_indirect_line_string.
12319 (read_formatted_entries): Update.
12320
2ef46c2f
TT
123212020-03-26 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12324 variable.
12325
4f9c1eda
TT
123262020-03-26 Tom Tromey <tom@tromey.com>
12327
12328 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12329 const.
12330 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12331 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12332 parameter const.
12333
5a0e026f
TT
123342020-03-26 Tom Tromey <tom@tromey.com>
12335
12336 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12337 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12338 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12339 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12340
8844c11b
TT
123412020-03-26 Tom Tromey <tom@tromey.com>
12342
12343 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12344 file_names_size, file_full_name, file_file_name>: Use const.
12345 <file_name_at, file_names>: Add const overload.
12346 * dwarf2/line-header.c (line_header::file_file_name)
12347 (line_header::file_full_name): Update.
12348
c90ec28a
TT
123492020-03-26 Tom Tromey <tom@tromey.com>
12350
12351 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12352 (macro_start_file, consume_improper_spaces)
12353 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12354 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12355 (dwarf_decode_macros): Move to macro.c.
12356 * dwarf2/macro.c: New file.
12357 * dwarf2/macro.h: New file.
12358 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12359
4f44ae6c
TT
123602020-03-26 Tom Tromey <tom@tromey.com>
12361
12362 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12363 method.
12364 * dwarf2/section.c: New method. From
12365 read_indirect_string_at_offset_from.
12366 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12367 (read_indirect_string_at_offset_from): Move to section.c.
12368 (read_indirect_string_at_offset): Rewrite.
12369 (read_indirect_line_string_at_offset): Remove.
12370 (read_indirect_string, read_indirect_line_string)
12371 (dwarf_decode_macro_bytes): Update.
12372
a0194fa8
TT
123732020-03-26 Tom Tromey <tom@tromey.com>
12374
12375 * dwarf2/section.h (struct dwarf2_section_info)
12376 <overload_complaint>: Declare.
12377 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12378 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12379 Rename from dwarf2_section_buffer_overflow_complaint.
12380 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12381 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12382
3d27bbdb
TT
123832020-03-26 Tom Tromey <tom@tromey.com>
12384
12385 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12386 Declare.
12387 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12388 Move from read.c.
12389 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12390 to section.c.
12391
9eac9650
TT
123922020-03-26 Tom Tromey <tom@tromey.com>
12393
12394 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12395
bf80d710
TT
123962020-03-26 Tom Tromey <tom@tromey.com>
12397
12398 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12399 "builder".
12400 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12401 parameter.
12402 (dwarf_decode_macros): Update.
12403
0314b390
TT
124042020-03-26 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2/read.c (read_attribute_value): Update.
12407 (read_indirect_string_from_dwz): Move to dwz.c; change into
12408 method.
12409 (dwarf_decode_macro_bytes): Update.
12410 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12411 * dwarf2/dwz.c: New file.
12412 * Makefile.in (COMMON_SFILES): Add dwz.c.
12413
9fda78b6
TT
124142020-03-26 Tom Tromey <tom@tromey.com>
12415
12416 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12417 * dwarf2/read.c: Add include.
12418 * dwarf2/index-write.c: Add include.
12419 * dwarf2/index-cache.c: Add include.
12420 * dwarf2/dwz.h: New file.
12421
33aa3c10
TT
124222020-03-25 Tom Tromey <tom@tromey.com>
12423
12424 * compile/compile-object-load.c (get_out_value_type): Mention
12425 correct symbol name in error message.
12426
d503b685
HD
124272020-03-25 Hannes Domani <ssbssa@yahoo.de>
12428
12429 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12430
7b1eff95
TV
124312020-03-25 Tom de Vries <tdevries@suse.de>
12432
12433 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12434 * symmisc.c (dump_symtab_1): Print user and includes fields.
12435 (maintenance_info_symtabs): Same.
12436
dd895392
AB
124372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12438
12439 PR gdb/25534
12440 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12441 (riscv_regcache_cooked_write): New function.
12442 (riscv_push_dummy_call): Use new function.
12443 (riscv_return_value): Likewise.
12444
5ab2fbf1
SM
124452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12446
12447 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12448 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12449 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12450 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12451 * infrun.c (follow_fork): Likewise.
12452 (follow_fork_inferior): Likewise.
12453 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12454 * linux-nat.h (class linux_nat_target): Likewise.
12455 * remote.c (class remote_target) <follow_fork>: Likewise.
12456 (remote_target::follow_fork): Likewise.
12457 * target-delegates.c: Re-generate.
12458 * target.c (default_follow_fork): Likewise.
12459 (target_follow_fork): Likewise.
12460 * target.h (struct target_ops) <follow_fork>: Likewise.
12461 (target_follow_fork): Likewise.
12462
a64fafb5
TV
124632020-03-24 Tom de Vries <tdevries@suse.de>
12464
12465 * psymtab.c (maintenance_info_psymtabs): Print user field.
12466
fe26d3a3
TT
124672020-03-20 Tom Tromey <tromey@adacore.com>
12468
12469 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12470 const.
12471 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12472 const.
12473
c884cc46
SM
124742020-03-20 Simon Marchi <simon.marchi@efficios.com>
12475
12476 * ptrace.m4: Don't check for ptrace declaration.
12477 * config.in: Re-generate.
12478 * configure: Re-generate.
12479 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12480 not defined.
12481
1ff700c2
KR
124822020-03-20 Kamil Rytarowski <n54@gmx.com>
12483
12484 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12485 `PTRACE_TYPE_RET'.
12486 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12487 * sparc-nat.c (gdb_ptrace): Likewise.
12488 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12489
f7d4f0b1
TT
124902020-03-20 Tom Tromey <tromey@adacore.com>
12491
12492 * c-exp.y (lex_one_token): Fix assert.
12493
f67210ff
TT
124942020-03-20 Tom Tromey <tromey@adacore.com>
12495
12496 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12497 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12498 strncpy call.
12499
1773be9e
TT
125002020-03-20 Tom Tromey <tromey@adacore.com>
12501
12502 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12503
70304be9
TT
125042020-03-20 Tom Tromey <tromey@adacore.com>
12505
12506 * ada-valprint.c (print_variant_part): Remove parameters; switch
12507 to value-based API.
12508 (print_field_values): Likewise.
12509 (ada_val_print_struct_union): Likewise.
12510 (ada_value_print_1): Update.
12511
9faa006d
KR
125122020-03-20 Kamil Rytarowski <n54@gmx.com>
12513
12514 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12515 nbsd_nat_target instead of inf_ptrace_target.
12516 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12517 nbsd_nat_target.
12518
4a90f062
KR
125192020-03-20 Kamil Rytarowski <n54@gmx.com>
12520
12521 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12522 it to the ptrace call.
12523 * (store_registers): Likewise.
12524
125252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12526
12527 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12528 it to the ptrace call.
12529 * (store_registers): Likewise.
12530
2d07da27
LM
125312020-03-19 Luis Machado <luis.machado@linaro.org>
12532
12533 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12534 valid, fetch vg value from ptrace.
12535
f09db380
KR
125362020-03-19 Kamil Rytarowski <n54@gmx.com>
12537 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12538 * inf-ptrace.c: Likewise.
12539 * (gdb_ptrace): Add.
12540 * (inf_ptrace_target::resume): Update.
12541 * (inf_ptrace_target::xfer_partial): Likewise.
12542 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12543 * (inf_ptrace_peek_poke): Update.
12544
fcc7376e
KR
125452020-03-19 Kamil Rytarowski <n54@gmx.com>
12546
12547 * x86-bsd-nat.c (gdb_ptrace): New.
12548 * (x86bsd_dr_set): Add new argument `ptid'.
12549 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12550 x86bsd_dr_set_addr): Update.
12551
cada5fc9
AB
125522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12553
12554 * remote.c (remote_target::process_stop_reply): Handle events for
12555 all threads differently.
12556
19a2740f
AB
125572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12558
12559 * completer.c (completion_tracker::remove_completion): Define new
12560 function.
12561 * completer.h (completion_tracker::remove_completion): Declare new
12562 function.
12563 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12564 when adding a C++ function symbol.
12565
724fd9ba
AB
125662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12567
12568 * completer.c (completion_tracker::completion_hash_entry): Define
12569 new class.
12570 (advance_to_filename_complete_word_point): Call
12571 recompute_lowest_common_denominator.
12572 (completion_tracker::completion_tracker): Call discard_completions
12573 to setup the hash table.
12574 (completion_tracker::discard_completions): Allow for being called
12575 from the constructor, pass new equal function, and element deleter
12576 when constructing the hash table. Initialise new class member
12577 variables.
12578 (completion_tracker::maybe_add_completion): Remove use of
12579 m_entries_vec, and store more information into m_entries_hash.
12580 (completion_tracker::recompute_lcd_visitor): New function, most
12581 content taken from...
12582 (completion_tracker::recompute_lowest_common_denominator):
12583 ...here, this now just visits each item in the hash calling the
12584 above visitor.
12585 (completion_tracker::build_completion_result): Remove use of
12586 m_entries_vec, call recompute_lowest_common_denominator.
12587 * completer.h (completion_tracker::have_completions): Remove use
12588 of m_entries_vec.
12589 (completion_tracker::completion_hash_entry): Declare new class.
12590 (completion_tracker::recompute_lowest_common_denominator): Change
12591 function signature.
12592 (completion_tracker::recompute_lcd_visitor): Declare new function.
12593 (completion_tracker::m_entries_vec): Delete.
12594 (completion_tracker::m_entries_hash): Initialize to NULL.
12595 (completion_tracker::m_lowest_common_denominator_valid): New
12596 member variable.
12597 (completion_tracker::m_lowest_common_denominator_max_length): New
12598 member variable.
12599
5a82b8a1
KR
126002020-03-17 Kamil Rytarowski <n54@gmx.com>
12601
12602 * regformats/regdef.h: Put reg in gdb namespace.
12603
fb516a69
KR
126042020-03-17 Kamil Rytarowski <n54@gmx.com>
12605
12606 * i386-bsd-nat.c (gdb_ptrace): New.
12607 * (i386bsd_fetch_inferior_registers,
12608 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12609 * (i386bsd_fetch_inferior_registers,
12610 i386bsd_store_inferior_registers) Use gdb_ptrace.
12611
1c0aa1fb
KR
126122020-03-17 Kamil Rytarowski <n54@gmx.com>
12613
12614 * amd64-bsd-nat.c (gdb_ptrace): New.
12615 * (amd64bsd_fetch_inferior_registers,
12616 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12617 * (amd64bsd_fetch_inferior_registers,
12618 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12619
5ccd2fb7
KR
126202020-03-17 Kamil Rytarowski <n54@gmx.com>
12621
12622 * user-regs.c (user_reg::read): Rename to...
12623 (user_reg::xread): ...this.
12624 * (append_user_reg): Rename argument `read' to `xread'.
12625 * (user_reg_add_builtin): Likewise.
12626 * (user_reg_add): Likewise.
12627 * (value_of_user_reg): Likewise.
12628
2108a63a
KR
126292020-03-17 Kamil Rytarowski <n54@gmx.com>
12630
12631 * sparc-nat.c (gdb_ptrace): New.
12632 * sparc-nat.c (sparc_fetch_inferior_registers)
12633 (sparc_store_inferior_registers) Remove obsolete comment.
12634 * sparc-nat.c (sparc_fetch_inferior_registers)
12635 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12636 * sparc-nat.c (sparc_fetch_inferior_registers)
12637 (sparc_store_inferior_registers) Use gdb_ptrace.
12638
a225c9a8
KR
126392020-03-17 Kamil Rytarowski <n54@gmx.com>
12640
12641 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12642 it to the ptrace call.
12643 * sh-nbsd-nat.c (store_registers): Likewise.
12644
98097623
KR
126452020-03-17 Kamil Rytarowski <n54@gmx.com>
12646
12647 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12648 nbsd_nat_target instead of inf_ptrace_target.
12649 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12650 nbsd_nat_target.
12651
9e38d619
KR
126522020-03-17 Kamil Rytarowski <n54@gmx.com>
12653
12654 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12655
a2ecbe9f
KR
126562020-03-17 Kamil Rytarowski <n54@gmx.com>
12657
12658 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12659 <sys/sysctl.h>.
12660 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12661
58990295
TV
126622020-03-17 Tom de Vries <tdevries@suse.de>
12663
12664 PR gdb/23710
12665 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12666 fields.
12667 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12668 fields.
12669 (process_imported_unit_die): Skip import of c++ CUs.
12670
771dd3a8
TT
126712020-03-16 Tom Tromey <tom@tromey.com>
12672
12673 * p-valprint.c (pascal_object_print_value): Initialize
12674 base_value.
12675
817a7585
AK
126762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12677 Shahab Vahedi <shahab@synopsys.com>
12678
12679 * Makefile.in: Add arch/arc.o
12680 * configure.tgt: Likewise.
12681 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12682 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12683 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12684 * arc-tdep.h (arc_read_description): Add proto type.
12685 * arch/arc.c: New file.
12686 * arch/arc.h: Likewise.
12687 * features/Makefile: Replace old target descriptions with new.
12688 * features/arc-arcompact.c: Remove.
12689 * features/arc-arcompact.xml: Likewise.
12690 * features/arc-v2.c: Likewise
12691 * features/arc-v2.xml: Likewise
12692 * features/arc/aux-arcompact.xml: New file.
12693 * features/arc/aux-v2.xml: Likewise.
12694 * features/arc/core-arcompact.xml: Likewise.
12695 * features/arc/core-v2.xml: Likewise.
12696 * features/arc/aux-arcompact.c: Generate.
12697 * features/arc/aux-v2.c: Likewise.
12698 * features/arc/core-arcompact.c: Likewise.
12699 * features/arc/core-v2.c: Likewise.
12700 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12701
67430cd0
TT
127022020-03-16 Tom Tromey <tromey@adacore.com>
12703
12704 PR gdb/25663:
12705 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12706 putting value into bcache.
12707
30efb6c7
SM
127082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12709
12710 PR gdb/21500
12711 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12712 to...
12713 (amd64_windows_init_abi_common): ... this. Don't set size of
12714 long type.
12715 (amd64_windows_init_abi): New function.
12716 (amd64_cygwin_init_abi): New function.
12717 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12718 the Cygwin OS ABI.
12719 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12720 comment.
12721
8db52437
SM
127222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12723
12724 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12725 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12726 (pe_import_directory_entry): New struct type.
12727 (is_linked_with_cygwin_dll): New function.
12728 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12729 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12730 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12731
5982a56a
SM
127322020-03-16 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12735 i386_cygwin_core_osabi_sniffer.
12736
7a1998df
SM
127372020-03-16 Simon Marchi <simon.marchi@efficios.com>
12738
12739 * i386-cygwin-tdep.c: Rename to...
12740 * i386-windows-tdep.c: ... this.
12741 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12742 i386-windows-tdep.c.
12743 * configure.tgt: Likewise.
12744
053205cc
SM
127452020-03-16 Simon Marchi <simon.marchi@efficios.com>
12746
12747 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12748 * osabi.c (gdb_osabi_names): Add "Windows".
12749 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12750 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12751 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12752 i386_cygwin_osabi_sniffer.
12753 (_initialize_i386_cygwin_tdep): Register OS ABI
12754 GDB_OSABI_WINDOWS for i386.
12755 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12756 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12757 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12758 for x86-64.
12759 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12760 when the target matches '*-*-mingw*'.
12761
fe4b2ee6
SM
127622020-03-16 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * defs.h (enum gdb_osabi): Move to...
12765 * osabi.h (enum gdb_osabi): ... here.
12766 * gdbarch.sh: Include osabi.h in gdbarch.h.
12767 * gdbarch.h: Re-generate.
12768
cb9b645d
SM
127692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12772 function.
12773 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12774
3293bbaf
TT
127752020-03-14 Tom Tromey <tom@tromey.com>
12776
12777 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12778 for C++.
12779 (c_type_print_modifier): Likewise. Add "language" parameter.
12780 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12781 (c_type_print_base_1): Update.
12782 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12783 constants.
12784 * type-stack.c (type_stack::insert): Handle tp_atomic and
12785 tp_restrict.
12786 (type_stack::follow_type_instance_flags): Likewise.
12787 (type_stack::follow_types): Likewise. Merge type-following code.
12788 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12789 (space_identifier, cv_with_space_id)
12790 (const_or_volatile_or_space_identifier_noopt)
12791 (const_or_volatile_or_space_identifier): Remove.
12792 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12793 rules.
12794 (ptr_operator, typebase): Update.
12795 (enum token_flag) <FLAG_C>: New constant.
12796 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12797 "_Atomic".
12798 (lex_one_token): Handle FLAG_C.
12799
154151a6
KR
128002020-03-14 Kamil Rytarowski <n54@gmx.com>
12801
12802 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12803 it to the ptrace call.
12804 * m68k-bsd-nat.c (store_registers): Likewise.
12805
bc107784
KR
128062020-03-14 Kamil Rytarowski <n54@gmx.com>
12807
12808 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12809 gdb_byte *.
12810 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12811 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12812 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12813
01a80117
KR
128142020-03-14 Kamil Rytarowski <n54@gmx.com>
12815
12816 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12817 nbsd_nat_target instead of inf_ptrace_target.
12818 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12819 nbsd_nat_target.
12820
f90280ca
KR
128212020-03-14 Kamil Rytarowski <n54@gmx.com>
12822
12823 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12824 register_t.
12825
6def66f1
KR
128262020-03-14 Kamil Rytarowski <n54@gmx.com>
12827
12828 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12829 it to the ptrace call.
12830 * alpha-bsd-nat.c (store_registers): Likewise.
12831
66eaca97
KR
128322020-03-14 Kamil Rytarowski <n54@gmx.com>
12833
12834 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12835 includes.
12836 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12837 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12838 fill_fpregset): Likewise.
12839
4fed520b
KR
128402020-03-14 Kamil Rytarowski <n54@gmx.com>
12841
12842 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12843 nbsd_nat_target instead of inf_ptrace_target.
12844 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12845 nbsd_nat_target.
12846
2190cf06
KR
128472020-03-14 Kamil Rytarowski <n54@gmx.com>
12848
12849 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12850 register_t.
12851
75c56d3d
KR
128522020-03-14 Kamil Rytarowski <n54@gmx.com>
12853
12854 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12855 it to the ptrace call.
12856 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12857 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12858 * arm-nbsd-nat.c (store_register): Likewise.
12859 * arm-nbsd-nat.c (store_regs): Likewise.
12860 * arm-nbsd-nat.c (store_fp_register): Likewise.
12861 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12862
6018d381
KR
128632020-03-14 Kamil Rytarowski <n54@gmx.com>
12864
12865 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12866 nbsd_nat_target instead of inf_ptrace_target.
12867 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12868 nbsd_nat_target.
12869
013f99f0
KR
128702020-03-14 Kamil Rytarowski <n54@gmx.com>
12871
12872 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12873 it to the ptrace call.
12874 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12875
12753073
KR
128762020-03-14 Kamil Rytarowski <n54@gmx.com>
12877
6227b330
KR
12878 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12879 it to the ptrace call.
12880 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12881
128822020-03-14 Kamil Rytarowski <n54@gmx.com>
12883
12884 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12885 gdb_byte *.
12753073
KR
12886 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12887
d5be5fa4
KR
128882020-03-14 Kamil Rytarowski <n54@gmx.com>
12889
12890 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12891 instead of inf_ptrace_target.
12892 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12893 nbsd_nat_target.
12894
8110f842
KR
128952020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12898 register_t.
12899
52feded7
KR
129002020-03-14 Kamil Rytarowski <n54@gmx.com>
12901
12902 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12903 register_t.
12904
25567eee
KR
129052020-03-14 Kamil Rytarowski <n54@gmx.com>
12906
12907 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12908 register_t.
12909
426a9c18
TT
129102020-03-13 Tom Tromey <tom@tromey.com>
12911
12912 * value.h (val_print): Don't declare.
12913 * valprint.h (val_print_array_elements)
12914 (val_print_scalar_formatted, generic_val_print): Don't declare.
12915 * valprint.c (generic_val_print_array): Take a struct value.
12916 (generic_val_print_ptr, generic_val_print_memberptr)
12917 (generic_val_print_bool, generic_val_print_int)
12918 (generic_val_print_char, generic_val_print_complex)
12919 (generic_val_print): Remove.
12920 (generic_value_print): Update.
12921 (do_val_print): Remove unused parameters. Don't call
12922 la_val_print.
12923 (val_print): Remove.
12924 (common_val_print): Update. Don't call value_check_printable.
12925 (val_print_scalar_formatted, val_print_array_elements): Remove.
12926 * rust-lang.c (rust_val_print): Remove.
12927 (rust_language_defn): Update.
12928 * p-valprint.c (pascal_val_print): Remove.
12929 (pascal_value_print_inner): Update.
12930 (pascal_object_print_val_fields, pascal_object_print_val):
12931 Remove.
12932 (pascal_object_print_static_field): Update.
12933 * p-lang.h (pascal_val_print): Don't declare.
12934 * p-lang.c (pascal_language_defn): Update.
12935 * opencl-lang.c (opencl_language_defn): Update.
12936 * objc-lang.c (objc_language_defn): Update.
12937 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12938 * m2-lang.h (m2_val_print): Don't declare.
12939 * m2-lang.c (m2_language_defn): Update.
12940 * language.h (struct language_defn) <la_val_print>: Remove.
12941 * language.c (unk_lang_value_print_inner): Rename. Change
12942 argument types.
12943 (unknown_language_defn, auto_language_defn): Update.
12944 * go-valprint.c (go_val_print): Remove.
12945 * go-lang.h (go_val_print): Don't declare.
12946 * go-lang.c (go_language_defn): Update.
12947 * f-valprint.c (f_val_print): Remove.
12948 * f-lang.h (f_value_print): Don't declare.
12949 * f-lang.c (f_language_defn): Update.
12950 * d-valprint.c (d_val_print): Remove.
12951 * d-lang.h (d_value_print): Don't declare.
12952 * d-lang.c (d_language_defn): Update.
12953 * cp-valprint.c (cp_print_value_fields)
12954 (cp_print_value_fields_rtti, cp_print_value): Remove.
12955 (cp_print_static_field): Update.
12956 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12957 (c_val_print_struct, c_val_print_union, c_val_print_int)
12958 (c_val_print_memberptr, c_val_print): Remove.
12959 * c-lang.h (c_val_print_array, cp_print_value_fields)
12960 (cp_print_value_fields_rtti): Don't declare.
12961 * c-lang.c (c_language_defn, cplus_language_defn)
12962 (asm_language_defn, minimal_language_defn): Update.
12963 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12964 (ada_val_print_enum): Take a struct value.
12965 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12966 (ada_val_print): Remove.
12967 (ada_value_print_1): Update.
12968 (printable_val_type): Remove.
12969 * ada-lang.h (ada_val_print): Don't declare.
12970 * ada-lang.c (ada_language_defn): Update.
12971
42331a1e
TT
129722020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * valprint.c (do_val_print): Update.
12975 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12976 a struct value.
12977 (value_to_value_object_no_release): Declare.
12978 * python/py-value.c (value_to_value_object_no_release): New
12979 function.
12980 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12981 struct value.
12982 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12983 function.
12984 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12985 a struct value.
12986 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12987 Declare.
12988 (gdbscm_apply_val_pretty_printer): Take a struct value.
12989 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12990 value.
12991 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12992 value.
12993 * extension-priv.h (struct extension_language_ops)
12994 <apply_val_pretty_printer>: Take a struct value.
12995 * cp-valprint.c (cp_print_value): Create a struct value.
12996 (cp_print_value): Update.
12997
3a916a97
TT
129982020-03-13 Tom Tromey <tom@tromey.com>
12999
13000 * ada-valprint.c (print_field_values): Call common_val_print.
13001
b59eac37
TT
130022020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * ada-valprint.c (val_print_packed_array_elements): Remove
13005 bitoffset and val parameters. Call common_val_print.
13006 (ada_val_print_string): Remove offset, address, and original_value
13007 parameters.
13008 (ada_val_print_array): Update.
13009 (ada_value_print_array): New function.
13010 (ada_value_print_1): Call it.
13011
03371129
TT
130122020-03-13 Tom Tromey <tom@tromey.com>
13013
13014 * ada-valprint.c (ada_value_print): Use common_val_print.
13015
2e088f8b
TT
130162020-03-13 Tom Tromey <tom@tromey.com>
13017
13018 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13019
39ef85a8
TT
130202020-03-13 Tom Tromey <tom@tromey.com>
13021
13022 * ada-valprint.c (ada_value_print_num): New function.
13023 (ada_value_print_1): Use it.
13024
b9fa6e07
TT
130252020-03-13 Tom Tromey <tom@tromey.com>
13026
13027 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13028
416595d6
TT
130292020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * ada-valprint.c (ada_value_print_ptr): New function.
13032 (ada_value_print_1): Use it.
13033
5b5e15ec
TT
130342020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13037 call common_val_print.
13038 (ada_val_print_1): Update.
13039 (ada_value_print_1): New function.
13040 (ada_value_print_inner): Rewrite.
13041
fbf54e75
TT
130422020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * cp-valprint.c (cp_print_value_fields): Update.
13045 (cp_print_value): New function.
13046
64b653ca
TT
130472020-03-13 Tom Tromey <tom@tromey.com>
13048
13049 * m2-valprint.c (m2_value_print_inner): Use
13050 cp_print_value_fields.
13051 * cp-valprint.c (cp_print_value_fields): New function.
13052 * c-valprint.c (c_value_print_struct): New function.
13053 (c_value_print_inner): Use c_value_print_struct.
13054 * c-lang.h (cp_print_value_fields): Declare.
13055
6999f067
TT
130562020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * c-valprint.c (c_value_print_array): New function.
13059 (c_value_print_inner): Use it.
13060
ce80b8bd
TT
130612020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * c-valprint.c (c_value_print_memberptr): New function.
13064 (c_value_print_inner): Use it.
13065
2faac269
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * c-valprint.c (c_value_print_int): New function.
13069 (c_value_print_inner): Use it.
13070
da3e2c29
TT
130712020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * c-valprint.c (c_value_print_ptr): New function.
13074 (c_value_print_inner): Use it.
13075
50836231
TT
130762020-03-13 Tom Tromey <tom@tromey.com>
13077
13078 * c-valprint.c (c_value_print_inner): Rewrite.
13079
4f412b6e
TT
130802020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_value_print_complex): New function.
13083 (generic_value_print): Use it.
13084
f5354008
TT
130852020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * valprint.c (generic_val_print_float): Don't call
13088 val_print_scalar_formatted.
13089 (generic_val_print, generic_value_print): Update.
13090
3eec3b05
TT
130912020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * valprint.c (generic_value_print_char): New function
13094 (generic_value_print): Use it.
13095
fdddfccb
TT
130962020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.c (generic_value_print_int): New function.
13099 (generic_value_print): Use it.
13100
6dde7521
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * valprint.c (generic_value_print_bool): New function.
13104 (generic_value_print): Use it.
13105
4112d2e6
TT
131062020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.c (generic_val_print_func): Simplify.
13109 (generic_val_print, generic_value_print): Update.
13110
65786af6
TT
131112020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * valprint.c (generic_val_print_flags): Remove.
13114 (generic_val_print, generic_value_print): Update.
13115 (val_print_type_code_flags): Add original_value parameter.
13116
40f3ce18
TT
131172020-03-13 Tom Tromey <tom@tromey.com>
13118
13119 * valprint.c (generic_val_print): Update.
13120 (generic_value_print): Update.
13121 * valprint.c (generic_val_print_enum): Don't call
13122 val_print_scalar_formatted.
13123
2a5b130b
TT
131242020-03-13 Tom Tromey <tom@tromey.com>
13125
13126 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13127 * valprint.c (generic_value_print_ptr): New function.
13128
abc66ce9
TT
131292020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * valprint.c (generic_value_print): Rewrite.
13132
07a32858
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * p-valprint.c (pascal_object_print_value_fields)
13136 (pascal_object_print_value): New functions.
13137
64d64d3a
TT
131382020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * p-valprint.c (pascal_value_print_inner): Rewrite.
13141
6a95a1f5
TT
131422020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * f-valprint.c (f_value_print_innner): Rewrite.
13145
59fcdac6
TT
131462020-03-13 Tom Tromey <tom@tromey.com>
13147
13148 * m2-valprint.c (m2_print_unbounded_array): New overload.
13149 (m2_print_unbounded_array): Update.
13150 (m2_print_array_contents): Take a struct value.
13151 (m2_value_print_inner): Rewrite.
13152
d133c3e1
TT
131532020-03-13 Tom Tromey <tom@tromey.com>
13154
13155 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13156 (d_value_print_inner): New function.
13157 * d-lang.h (d_value_print_inner): Declare.
13158 * d-lang.c (d_language_defn): Use d_value_print_inner.
13159
23b0f06b
TT
131602020-03-13 Tom Tromey <tom@tromey.com>
13161
13162 * go-valprint.c (go_value_print_inner): New function.
13163 * go-lang.h (go_value_print_inner): Declare.
13164 * go-lang.c (go_language_defn): Use go_value_print_inner.
13165
5f56f7cb
TT
131662020-03-13 Tom Tromey <tom@tromey.com>
13167
13168 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13169 API.
13170 (rust_val_print): Rewrite.
13171 (rust_value_print_inner): New function, from rust_val_print.
13172 (rust_language_defn): Use rust_value_print_inner.
13173
26792ee0
TT
131742020-03-13 Tom Tromey <tom@tromey.com>
13175
13176 * ada-valprint.c (ada_value_print_inner): New function.
13177 * ada-lang.h (ada_value_print_inner): Declare.
13178 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13179
24051bbe
TT
131802020-03-13 Tom Tromey <tom@tromey.com>
13181
13182 * f-valprint.c (f_value_print_innner): New function.
13183 * f-lang.h (f_value_print_innner): Declare.
13184 * f-lang.c (f_language_defn): Use f_value_print_innner.
13185
c0941be6
TT
131862020-03-13 Tom Tromey <tom@tromey.com>
13187
13188 * p-valprint.c (pascal_value_print_inner): New function.
13189 * p-lang.h (pascal_value_print_inner): Declare.
13190 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13191
62c4663d
TT
131922020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * m2-valprint.c (m2_value_print_inner): New function.
13195 * m2-lang.h (m2_value_print_inner): Declare.
13196 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13197
62182190
TT
131982020-03-13 Tom Tromey <tom@tromey.com>
13199
13200 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13201 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13202 * c-valprint.c (c_value_print_inner): New function.
13203 * c-lang.h (c_value_print_inner): Declare.
13204 * c-lang.c (c_language_defn, cplus_language_defn)
13205 (asm_language_defn, minimal_language_defn): Use
13206 c_value_print_inner.
13207
1e592a8a
TT
132082020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * p-valprint.c (pascal_object_print_value_fields): Now static.
13211 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13212
7fe471e9
TT
132132020-03-13 Tom Tromey <tom@tromey.com>
13214
13215 * c-valprint.c (c_val_print_array): Simplify.
13216
d121c6ce
TT
132172020-03-13 Tom Tromey <tom@tromey.com>
13218
13219 * valprint.c (value_print_array_elements): New function.
13220 * valprint.h (value_print_array_elements): Declare.
13221
4dba70ee
TT
132222020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13225 * mips-tdep.c (mips_print_register): Use
13226 value_print_scalar_formatted.
13227
4f9ae810
TT
132282020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * valprint.h (value_print_scalar_formatted): Declare.
13231 * valprint.c (value_print_scalar_formatted): New function.
13232
156bfec9
TT
132332020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * valprint.h (generic_value_print): Declare.
13236 * valprint.c (generic_value_print): New function.
13237
2b4e573d
TT
132382020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * valprint.c (do_val_print): Call la_value_print_inner, if
13241 available.
13242 * rust-lang.c (rust_language_defn): Update.
13243 * p-lang.c (pascal_language_defn): Update.
13244 * opencl-lang.c (opencl_language_defn): Update.
13245 * objc-lang.c (objc_language_defn): Update.
13246 * m2-lang.c (m2_language_defn): Update.
13247 * language.h (struct language_defn) <la_value_print_inner>: New
13248 member.
13249 * language.c (unknown_language_defn, auto_language_defn): Update.
13250 * go-lang.c (go_language_defn): Update.
13251 * f-lang.c (f_language_defn): Update.
13252 * d-lang.c (d_language_defn): Update.
13253 * c-lang.c (c_language_defn, cplus_language_defn)
13254 (asm_language_defn, minimal_language_defn): Update.
13255 * ada-lang.c (ada_language_defn): Update.
13256
a1f6a07c
TT
132572020-03-13 Tom Tromey <tom@tromey.com>
13258
13259 * c-valprint.c (c_value_print): Use common_val_print.
13260
410cf315
TT
132612020-03-13 Tom Tromey <tom@tromey.com>
13262
13263 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13264
72a45c93
TT
132652020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * f-valprint.c (f77_print_array_1, f_val_print): Use
13268 common_val_print.
13269
040f66bd
TT
132702020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * riscv-tdep.c (riscv_print_one_register_info): Use
13273 common_val_print.
13274
a6e05a6c
TT
132752020-03-13 Tom Tromey <tom@tromey.com>
13276
13277 * mi/mi-main.c (output_register): Use common_val_print.
13278
3444c526
TT
132792020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * infcmd.c (default_print_one_register_info): Use
13282 common_val_print.
13283
c2a44efe
TT
132842020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * valprint.h (common_val_print_checked): Declare.
13287 * valprint.c (common_val_print_checked): New function.
13288 * stack.c (print_frame_arg): Use common_val_print_checked.
13289
b0c26e99
TT
132902020-03-13 Tom Tromey <tom@tromey.com>
13291
13292 * valprint.c (do_val_print): New function, from val_print.
13293 (val_print): Use do_val_print.
13294 (common_val_print): Use do_val_print.
13295
ce3acbe9
TT
132962020-03-13 Tom Tromey <tom@tromey.com>
13297
13298 * valprint.c (value_print): Use scoped_value_mark.
13299
96c7f873
TV
133002020-03-13 Tom de Vries <tdevries@suse.de>
13301
13302 PR symtab/25646
13303 * psymtab.c (partial_symtab::partial_symtab): Don't set
13304 globals_offset and statics_offset. Push element onto
13305 current_global_psymbols and current_static_psymbols stacks.
13306 (concat): New function.
13307 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13308 element from current_global_psymbols and current_static_psymbols
13309 stacks. Concat popped elements to global_psymbols and
13310 static_symbols.
13311 (add_psymbol_to_list): Use current_global_psymbols and
13312 current_static_psymbols stacks.
13313 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13314 current_static_psymbols fields.
13315
6ba0a321
CB
133162020-03-12 Christian Biesinger <cbiesinger@google.com>
13317
13318 * corelow.c (sniff_core_bfd): Remove.
13319 (class core_target) <m_core_vec>: Remove.
13320 (core_target::core_target): Update.
13321 (core_file_fns): Remove.
13322 (deprecated_add_core_fns): Remove.
13323 (default_core_sniffer): Remove.
13324 (sniff_core_bfd): Remove.
13325 (default_check_format): Remove.
13326 (gdb_check_format): Remove.
13327 (core_target_open): Update.
13328 (core_target::get_core_register_section): Update.
13329 (get_core_registers_cb): Update.
13330 (core_target::fetch_registers): Update.
13331 * gdbcore.h (struct core_fns): Remove.
13332 (deprecated_add_core_fns): Remove.
13333 (default_core_sniffer): Remove.
13334 (default_check_format): Remove.
13335
227031b2
TT
133362020-03-12 Tom Tromey <tom@tromey.com>
13337
13338 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13339 CORE_ADDR.
13340 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13341
53807e9f
TT
133422020-03-12 Tom Tromey <tom@tromey.com>
13343
13344 * remote.c (remote_target::download_tracepoint)
13345 (remote_target::enable_tracepoint)
13346 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13347 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13348 sprintf_vma.
13349
64f25102
TT
133502020-03-12 Tom Tromey <tom@tromey.com>
13351
13352 * symfile-mem.c: Update CORE_ADDR size assert.
13353
272cd5a3
SM
133542020-03-12 Simon Marchi <simon.marchi@efficios.com>
13355
13356 * selftest.m4: Move to gdbsupport/.
13357 * acinclude.m4: Update path to selftest.m4.
13358
74cd3f9d
SM
133592020-03-12 Simon Marchi <simon.marchi@efficios.com>
13360
13361 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13362 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13363 gdbarch-selfselftests.c and selftest-arch.c.
13364 (SUBDIR_UNITTESTS_OBS): Rename to...
13365 (SELFTESTS_OBS): ... this.
13366 (COMMON_SFILES): Remove disasm-selftests.c and
13367 gdbarch-selftests.c.
13368 * configure.ac: Don't add selftest-arch.{c,o} to
13369 CONFIG_{SRCS,OBS}.
13370 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13371 preprocessor conditions.
13372
db6878ac
SM
133732020-03-12 Simon Marchi <simon.marchi@efficios.com>
13374
13375 * configure.ac: Don't source bfd/development.sh.
13376 * selftest.m4: Modify comment.
13377 * configure: Re-generate.
13378
4d696a5c
SM
133792020-03-12 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13382 not "true" or "false".
13383 * configure: Re-generate.
13384
8dd8e1c7
CB
133852020-03-12 Christian Biesinger <cbiesinger@google.com>
13386
13387 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13388 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13389 renamed to arm_nbsd_supply_gregset.
13390 (fetch_register): Update to call arm_nbsd_supply_gregset.
13391 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13392 (arm_netbsd_nat_target::fetch_registers): Update.
13393 (fetch_elfcore_registers): Removed.
13394 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13395 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13396 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13397 not require NetBSD system headers.
13398 (arm_nbsd_regset): New struct.
13399 (arm_nbsd_iterate_over_regset_sections): New function.
13400 (arm_netbsd_init_abi_common): Updated to call
13401 set_gdbarch_iterate_over_regset_sections.
13402 * arm-nbsd-tdep.h: New file.
13403
dd69bf7a
KB
134042020-03-11 Kevin Buettner <kevinb@redhat.com>
13405
13406 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13407 recursion.
13408
a0761e34
SM
134092020-03-11 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * configure: Re-generate.
13412
e7a82140
TT
134132020-03-11 Tom Tromey <tromey@adacore.com>
13414
13415 * ada-typeprint.c (print_choices): Fix comment.
13416
dcc050c8
AB
134172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13418
13419 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13420 previous item in the list, when the list has no items.
13421
1c33af77
TV
134222020-03-11 Tom de Vries <tdevries@suse.de>
13423
13424 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13425 PROP_LOCLIST handling code.
13426
8c95582d
AB
134272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13428
13429 * buildsym-legacy.c (record_line): Pass extra parameter to
13430 record_line.
13431 * buildsym.c (buildsym_compunit::record_line): Take an extra
13432 parameter, reduce duplication in the line table, and record the
13433 is_stmt flag in the line table.
13434 * buildsym.h (buildsym_compunit::record_line): Add extra
13435 parameter.
13436 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13437 non-statement lines.
13438 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13439 this to the symtab builder.
13440 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13441 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13442 through to dwarf_record_line_1.
13443 * infrun.c (process_event_stop_test): When stepping, don't stop at
13444 a non-statement instruction, and only refresh the step info when
13445 we land in the middle of a line's range. Also add an extra
13446 comment.
13447 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13448 field.
13449 * record-btrace.c (btrace_find_line_range): Only record lines
13450 marked as is-statement.
13451 * stack.c (frame_show_address): Show the frame address if we are
13452 in a non-statement sal.
13453 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13454 (maintenance_print_one_line_table): Print a header for the is_stmt
13455 column, and include is_stmt information in the output.
13456 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13457 preference to non-statements.
13458 (find_pcs_for_symtab_line): Prefer is-statement entries.
13459 (find_line_common): Likewise.
13460 * symtab.h (struct linetable_entry): Add is_stmt field.
13461 (struct symtab_and_line): Likewise.
13462 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13463 arranging the line table.
13464
e4003a34
TV
134652020-03-07 Tom de Vries <tdevries@suse.de>
13466
13467 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13468 DIE.
13469
e8932576
TT
134702020-03-07 Tom Tromey <tom@tromey.com>
13471
13472 * valops.c (value_literal_complex): Remove obsolete comment.
13473 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13474 comment.
13475
29734269
SM
134762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13477
13478 * infrun.h: Forward-declare thread_info.
13479 (set_step_info): Add thread_info parameter, add doc.
13480 * infrun.c (set_step_info): Add thread_info parameter, move doc
13481 to header.
13482 * infrun.c (process_event_stop_test): Pass thread to
13483 set_step_info call.
13484 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13485 set_step_info.
13486 (prepare_one_step): Add thread_info parameter, pass it to
13487 set_step_frame and prepare_one_step (recursive) call.
13488 (step_1): Pass thread to prepare_one_step call.
13489 (step_command_fsm::should_stop): Pass thread to
13490 prepare_one_step.
13491 (until_next_fsm): Pass thread to set_step_frame call.
13492 (finish_command): Pass thread to set_step_info call.
13493
b7d64b29
HD
134942020-03-06 Hannes Domani <ssbssa@yahoo.de>
13495
13496 * windows-tdep.c (windows_solib_create_inferior_hook):
13497 Check if inferior is running.
13498
09f2921c
TV
134992020-03-06 Tom de Vries <tdevries@suse.de>
13500
13501 * NEWS: Fix "the the".
13502 * ctfread.c: Same.
13503
fd760e79
TV
135042020-03-06 Tom de Vries <tdevries@suse.de>
13505
13506 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13507
20ea4a60
AB
135082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13509
13510 * .dir-locals.el: Add a comment referencing the other copies of
13511 this file.
13512
0afbabf0
JB
135132020-03-05 John Baldwin <jhb@FreeBSD.org>
13514
13515 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13516 psargs.
13517
842806cb
TBA
135182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13519
13520 * .gitattributes: New file.
13521
be1e3d3e
TT
135222020-03-04 Tom Tromey <tom@tromey.com>
13523
13524 * symmisc.c (print_symbol_bcache_statistics)
13525 (print_objfile_statistics): Update.
13526 * symfile.c (allocate_symtab): Use intern.
13527 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13528 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13529 macro_cache>: Remove.
13530 <string_cache>: New member.
13531 (struct objfile) <intern>: New methods.
13532 * elfread.c (elf_symtab_read): Use intern.
13533 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13534 (dwarf2_compute_name, dwarf2_physname)
13535 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13536 names.
13537 (guess_partial_die_structure_name): Update.
13538 (partial_die_info::fixup): Intern name.
13539 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13540 name.
13541 (dwarf2_name): Intern name. Update.
13542 * buildsym.c (buildsym_compunit::get_macro_table): Use
13543 string_cache.
13544
4e7625fd
TT
135452020-03-04 Tom Tromey <tom@tromey.com>
13546
13547 * jit.c (bfd_open_from_target_memory): Make "target" const.
13548 * corefile.c (gnutarget): Now const.
13549 * gdbcore.h (gnutarget): Now const.
13550
46f9f931
HD
135512020-03-04 Hannes Domani <ssbssa@yahoo.de>
13552
13553 * NEWS: Mention support for WOW64 processes.
13554 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13555 (amd64_windows_segment_register_p): Remove static.
13556 (_initialize_amd64_windows_nat): Update.
13557 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13558 * i386-windows-nat.c (context_offset): Update.
13559 (i386_mappings): Rename and remove static.
13560 (i386_windows_segment_register_p): Remove static.
13561 (_initialize_i386_windows_nat): Update.
13562 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13563 (STATUS_WX86_SINGLE_STEP): New macro.
13564 (EnumProcessModulesEx): New macro.
13565 (Wow64SuspendThread): New macro.
13566 (Wow64GetThreadContext): New macro.
13567 (Wow64SetThreadContext): New macro.
13568 (Wow64GetThreadSelectorEntry): New macro.
13569 (windows_set_context_register_offsets): Add static.
13570 (windows_set_segment_register_p): Likewise.
13571 (windows_add_thread): Adapt for WOW64 processes.
13572 (windows_fetch_one_register): Likewise.
13573 (windows_nat_target::fetch_registers): Likewise.
13574 (windows_store_one_register): Likewise.
13575 (display_selector): Likewise.
13576 (display_selectors): Likewise.
13577 (handle_exception): Likewise.
13578 (windows_continue): Likewise.
13579 (windows_nat_target::resume): Likewise.
13580 (windows_add_all_dlls): Likewise.
13581 (do_initial_windows_stuff): Likewise.
13582 (windows_nat_target::attach): Likewise.
13583 (windows_get_exec_module_filename): Likewise.
13584 (windows_nat_target::create_inferior): Likewise.
13585 (windows_xfer_siginfo): Likewise.
13586 (_initialize_loadable): Initialize Wow64SuspendThread,
13587 Wow64GetThreadContext, Wow64SetThreadContext,
13588 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13589 * windows-nat.h (windows_set_context_register_offsets):
13590 Remove declaration.
13591 (windows_set_segment_register_p): Likewise.
13592 (i386_windows_segment_register_p): Add declaration.
13593 (amd64_windows_segment_register_p): Likewise.
13594
440cf44e
LM
135952020-03-04 Luis Machado <luis.machado@linaro.org>
13596
13597 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13598 in "info registers" for AArch64/ARM.
13599
13600 The change caused "info registers" to not print GPR's.
13601
13602 gdb/ChangeLog:
13603
13604 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13605
13606 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13607 when reg->group is empty and reggroup is not.
13608
1009d92f
TT
136092020-03-03 Tom Tromey <tromey@adacore.com>
13610
13611 * dwarf2/frame.c (struct dwarf2_frame_cache)
13612 <checked_tailcall_bottom, entry_cfa_sp_offset,
13613 entry_cfa_sp_offset_p>: Remove members.
13614 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13615 (dwarf2_frame_prev_register): Don't call
13616 dwarf2_tailcall_sniffer_first.
13617 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13618 * frame-unwind.c (add_unwinder): New fuction.
13619 (frame_unwind_init): Use it. Add tailcall unwinder.
13620
5e5d66b6
AB
136212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13622 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13623
13624 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13625 value should be printed as true.
13626
584cf46d
HD
136272020-03-03 Hannes Domani <ssbssa@yahoo.de>
13628
13629 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13630 (windows_init_abi): Set and use windows_so_ops.
13631
7b973adc
SDJ
136322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13633
13634 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13635 when verifying if dealing with a convenience variable.
13636
bb7b70ab
LM
136372020-03-03 Luis Machado <luis.machado@linaro.org>
13638
13639 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13640
9822cb57
SM
136412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13642
13643 * infrun.c (gdbarch_supports_displaced_stepping): New.
13644 (use_displaced_stepping): Break up conditions in smaller pieces.
13645 Use gdbarch_supports_displaced_stepping.
13646 (displaced_step_prepare_throw): Use
13647 gdbarch_supports_displaced_stepping.
13648
63e163f2
AB
136492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13650
13651 * NEWS: Mention new behaviour of the history filename.
13652 * top.c (write_history_p): Add comment.
13653 (show_write_history_p): Add header comment, give a different
13654 message when history writing is on, but the history filename is
13655 empty.
13656 (history_filename): Add comment.
13657 (history_filename_empty): New function.
13658 (show_history_filename): Add header comment, give a different
13659 message when the filename is empty.
13660 (init_history): Compare history_filename against nullptr, and only
13661 read history if the filename is not empty.
13662 (set_history_filename): Add header comment, and only make
13663 non-empty filenames absolute.
13664 (init_main): Make the filename argument to 'set history filename'
13665 optional.
13666
81b86b97
CB
136672020-03-02 Christian Biesinger <cbiesinger@google.com>
13668
13669 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13670 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13671 (fetch_fp_register): Update.
13672 (fetch_fp_regs): Update.
13673 (store_fp_register): Update.
13674 (store_fp_regs): Update.
13675 (arm_netbsd_nat_target::read_description): New function.
13676 (fetch_elfcore_registers): Update.
13677
24ed6739
AB
136782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13679
13680 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13681 general_thread if the stop reply is missing a thread-id.
13682 (remote_target::process_stop_reply): Use the first non-exited
13683 thread if the target didn't pass a thread-id.
13684 * infrun.c (do_target_wait): Move call to
13685 switch_to_inferior_no_thread to ....
13686 (do_target_wait_1): ... here.
13687
a84bb2a0
JT
136882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13689
13690 * debuginfod-support.c: Include defs.h first.
13691
658dadf0
TV
136922020-02-28 Tom de Vries <tdevries@suse.de>
13693
13694 * symfile.c (set_initial_language): Use default language for lookup.
13695
4ebe4877
SM
136962020-02-28 Simon Marchi <simon.marchi@efficios.com>
13697
13698 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13699 reader variable, pass `this` to read_cutu_die_from_dwo.
13700
e5da1139
AM
137012020-02-27 Aaron Merey <amerey@redhat.com>
13702
13703 * source.c (open_source_file): Check for nullptr when computing
13704 srcpath.
13705
317f7127
TT
137062020-02-27 Tom Tromey <tromey@adacore.com>
13707
13708 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13709 member.
13710 (dwarf2_add_field): Don't update nfields.
13711 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13712
3104d9ee
AB
137132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13714
13715 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13716 abs.
13717
b83470bf
TT
137182020-02-26 Tom Tromey <tom@tromey.com>
13719
13720 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13721 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13722 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13723 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13724 per_cu_data.
13725
edfe0a0c
TT
137262020-02-26 Tom Tromey <tom@tromey.com>
13727
13728 * dwarf2/index-write.c (psym_index_map): Change type.
13729 (add_address_entry_worker, write_one_signatured_type)
13730 (recursively_count_psymbols, recursively_write_psymbols)
13731 (class debug_names, psyms_seen_size, write_gdbindex)
13732 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13733
0d79cdc4
AM
137342020-02-26 Aaron Merey <amerey@redhat.com>
13735
13736 * Makefile.in: Handle optional debuginfod support.
13737 * NEWS: Update.
13738 * README: Add --with-debuginfod summary.
13739 * config.in: Regenerate.
13740 * configure: Regenerate.
13741 * configure.ac: Handle optional debuginfod support.
13742 * debuginfod-support.c: debuginfod helper functions.
13743 * debuginfod-support.h: Ditto.
13744 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13745 summary.
13746 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13747 when a dwz file cannot be found.
13748 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13749 debuginfo file cannot be found.
13750 * source.c (open_source_file): Query debuginfod servers when a
13751 source file cannot be found.
13752 * top.c (print_gdb_configuration): Include
13753 --{with,without}-debuginfod in the output.
13754
b65ce565
JG
137552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13756
13757 * thread.c (thr_try_catch_cmd): Print thread name.
13758
d4c9a4f8
SM
137592020-02-26 Simon Marchi <simon.marchi@efficios.com>
13760
13761 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13762 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13763 dwarf2_fetch_die_type_sect_off): Move to...
13764 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13765 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13766 dwarf2_fetch_die_type_sect_off): ... here.
13767 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13768 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13769 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13770
0dce4280
TV
137712020-02-26 Tom de Vries <tdevries@suse.de>
13772
13773 PR gdb/25603
13774 * symfile.c (set_initial_language): Exit-early if
13775 language_mode == language_mode_manual.
13776
450a1bfc
SM
137772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13778
13779 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13780 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13781 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13782
9e80cfa1
AB
137832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13784
13785 * gdbtypes.c (create_array_type_with_stride): Handle negative
13786 array strides.
13787 * valarith.c (value_subscripted_rvalue): Likewise.
13788
09624f1f
LM
137892020-02-25 Luis Machado <luis.machado@linaro.org>
13790
13791 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13792
8cb5117c
SM
137932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13794
13795 * loc.h (dwarf2_get_die_type): Move to...
13796 * read.h (dwarf2_get_die_type): ... here.
13797 * read.c (dwarf2_get_die_type): Move doc to header.
13798
c325c44e
JB
137992020-02-25 Joel Brobecker <brobecker@adacore.com>
13800
13801 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13802 'gnulib/Makefile.in' to the list.
13803
4ac93832
TT
138042020-02-24 Tom Tromey <tom@tromey.com>
13805
13806 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13807 Remove.
13808 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13809 XOBNEWVEC.
13810
197400e8
TT
138112020-02-24 Tom Tromey <tom@tromey.com>
13812
13813 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13814 New method.
13815 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13816 (dw2_do_instantiate_symtab, dw2_get_file_names)
13817 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13818
76935768
TT
138192020-02-24 Tom Tromey <tom@tromey.com>
13820
13821 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13822 make_scoped_restore.
13823 (dwarf2_psymtab::read_symtab): Don't clear
13824 reading_partial_symbols.
13825
a88ef40d
TV
138262020-02-24 Tom de Vries <tdevries@suse.de>
13827
13828 PR gdb/25592
13829 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13830
c9af6521
TV
138312020-02-24 Tom de Vries <tdevries@suse.de>
13832
13833 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13834 commands layout next/prev/regs.
13835
5707a07a
TT
138362020-02-22 Tom Tromey <tom@tromey.com>
13837
13838 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13839 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13840
3b0fb49e
TT
138412020-02-22 Tom Tromey <tom@tromey.com>
13842
13843 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13844
283be8bf
TT
138452020-02-22 Tom Tromey <tom@tromey.com>
13846
13847 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13848 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13849 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13850 * tui/tui.c (_initialize_tui): Add usage text.
13851
ca793b96
TT
138522020-02-22 Tom Tromey <tom@tromey.com>
13853
13854 * tui/tui-win.c (tui_set_focus_command)
13855 (tui_set_win_height_command): Use error_no_arg.
13856 (_initialize_tui_win): Update help text.
13857 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13858
432b5c40
TT
138592020-02-22 Tom Tromey <tom@tromey.com>
13860
13861 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13862 * tui/tui-disasm.h (struct tui_disasm_window)
13863 <display_start_addr>: Declare.
13864 * tui/tui-source.h (struct tui_source_window)
13865 <display_start_addr>: Declare.
13866 * tui/tui-winsource.h (struct tui_source_window_base)
13867 <show_source_line, display_start_addr>: New methods.
13868 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13869 Rename and move to protected section.
13870 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13871 (tui_source_window_base::do_erase_source_content): Update.
13872 (tui_source_window_base::show_source_line): Now a method.
13873 (tui_source_window_base::show_source_content)
13874 (tui_source_window_base::tui_source_window_base)
13875 (tui_source_window_base::rerender)
13876 (tui_source_window_base::refill)
13877 (tui_source_window_base::do_scroll_horizontal)
13878 (tui_source_window_base::set_is_exec_point_at)
13879 (tui_source_window_base::update_breakpoint_info)
13880 (tui_source_window_base::update_exec_info): Update.
13881 * tui/tui-source.c (tui_source_window::set_contents)
13882 (tui_source_window::showing_source_p)
13883 (tui_source_window::do_scroll_vertical)
13884 (tui_source_window::location_matches_p)
13885 (tui_source_window::line_is_displayed): Update.
13886 (tui_source_window::display_start_addr): New method.
13887 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13888 (tui_disasm_window::do_scroll_vertical)
13889 (tui_disasm_window::location_matches_p): Update.
13890 (tui_disasm_window::display_start_addr): New method.
13891
01b1af32
TT
138922020-02-22 Tom Tromey <tom@tromey.com>
13893
13894 * NEWS: Add entry for gdb.register_window_type.
13895 * tui/tui-layout.h (window_factory): New typedef.
13896 (tui_register_window): Declare.
13897 * tui/tui-layout.c (saved_tui_windows): New global.
13898 (tui_apply_current_layout): Use it.
13899 (tui_register_window): New function.
13900 * python/python.c (do_start_initialization): Call
13901 gdbpy_initialize_tui.
13902 (python_GdbMethods): Add "register_window_type" function.
13903 * python/python-internal.h (gdbpy_register_tui_window)
13904 (gdbpy_initialize_tui): Declare.
13905 * python/py-tui.c: New file.
13906 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13907
fc96d20b
TT
139082020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13911
935c78c0
TT
139122020-02-22 Tom Tromey <tom@tromey.com>
13913
13914 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13915 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13916 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13917 (tui_set_win_focus_to): Move from tui-win.c.
13918
0240c8f1
TT
139192020-02-22 Tom Tromey <tom@tromey.com>
13920
13921 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13922 functions.
13923 (known_window_types): New global.
13924 (tui_get_window_by_name): Reimplement.
13925 (initialize_known_windows): New function.
13926 (validate_window_name): Rewrite.
13927 (_initialize_tui_layout): Call initialize_known_windows.
13928
fdb01f0c
TT
139292020-02-22 Tom Tromey <tom@tromey.com>
13930
13931 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13932 Remove constants.
13933 * tui/tui-winsource.h (struct tui_source_window_base)
13934 <tui_source_window_base>: Remove parameter.
13935 * tui/tui-winsource.c
13936 (tui_source_window_base::tui_source_window_base): Remove
13937 parameter.
13938 (tui_source_window_base::refill): Update.
13939 * tui/tui-stack.h (struct tui_locator_window)
13940 <tui_locator_window>: Update.
13941 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13942 Default the constructor.
13943 * tui/tui-regs.h (struct tui_data_item_window)
13944 <tui_data_item_window>: Default the constructor.
13945 (struct tui_data_window) <tui_data_window>: Likewise.
13946 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13947 Default the constructor.
13948 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13949 Default the constructor.
13950 <type>: Remove.
13951 (struct tui_win_info) <tui_win_info>: Default the constructor.
13952 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13953 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13954 Default the constructor.
13955
865a5aec
TT
139562020-02-22 Tom Tromey <tom@tromey.com>
13957
13958 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13959 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13960 * tui/tui-win.c (tui_resize_all): Don't call
13961 tui_delete_invisible_windows.
13962 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13963 done.
13964 (tui_set_layout): Update.
13965 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13966 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13967 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13968
e098d18c
TT
139692020-02-22 Tom Tromey <tom@tromey.com>
13970
13971 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13972 correctly.
13973
eb9c8874
TT
139742020-02-22 Tom Tromey <tom@tromey.com>
13975
13976 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13977
7eed1a8e
TT
139782020-02-22 Tom Tromey <tom@tromey.com>
13979
13980 * tui/tui-winsource.h (struct tui_source_window_iterator)
13981 <inner_iterator>: New etytypedef.
13982 <tui_source_window_iterator>: Take "end" parameter.
13983 <tui_source_window_iterator>: Take iterator.
13984 <operator*, advance>: Update.
13985 <m_iter>: Change type.
13986 <m_end>: New field.
13987 (struct tui_source_windows) <begin, end>: Update.
13988 * tui/tui-layout.c (tui_windows): New global.
13989 (tui_apply_current_layout): Clear tui_windows.
13990 (tui_layout_window::apply): Update tui_windows.
13991 * tui/tui-data.h (tui_windows): Declare.
13992 (all_tui_windows): Now inline function.
13993 (class tui_window_iterator, struct all_tui_windows): Remove.
13994
7c043ba6
TT
139952020-02-22 Tom Tromey <tom@tromey.com>
13996
13997 PR tui/17850:
13998 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13999 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14000 "height" argument.
14001 (class tui_layout_window) <get_sizes>: Likewise.
14002 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14003 argument.
14004 <get_sizes>: Add "height" argument.
14005 <m_vertical>: New field.
14006 * tui/tui-layout.c (tui_layout_split::clone): Update.
14007 (tui_layout_split::get_sizes): Add "height" argument.
14008 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14009 (tui_new_layout_command): Parse "-horizontal".
14010 (_initialize_tui_layout): Update help string.
14011 (tui_layout_split::specification): Add "-horizontal" when needed.
14012 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14013 argument.
14014 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14015 New methods.
14016
6bc56648
TT
140172020-02-22 Tom Tromey <tom@tromey.com>
14018
14019 * tui/tui-layout.h (enum tui_adjust_result): New.
14020 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14021 (class tui_layout_window) <adjust_size>: Return
14022 tui_adjust_result. Rewrite.
14023 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14024 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14025
c22fef7e
TT
140262020-02-22 Tom Tromey <tom@tromey.com>
14027
14028 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14029 parameter and return types.
14030 (class tui_layout_base) <specification>: Add "depth".
14031 (class tui_layout_window) <specification>: Add "depth".
14032 (class tui_layout_split) <specification>: Add "depth".
14033 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14034 and return types.
14035 (tui_new_layout_command): Parse sub-layouts.
14036 (_initialize_tui_layout): Update help string.
14037 (tui_layout_window::specification): Add "depth".
14038 (add_layout_command): Update.
14039
ee325b61
TT
140402020-02-22 Tom Tromey <tom@tromey.com>
14041
14042 * NEWS: Add "tui new-layout" item.
14043 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14044 Add new-layout command to help text.
14045 (validate_window_name): New function.
14046 (tui_new_layout_command): New function.
14047 (_initialize_tui_layout): Register "new-layout".
14048 (tui_layout_window::specification): New method.
14049 (tui_layout_window::specification): New method.
14050 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14051 method.
14052 (class tui_layout_window) <specification>: New method.
14053 (class tui_layout_split) <specification>: New method.
14054
416eb92d
TT
140552020-02-22 Tom Tromey <tom@tromey.com>
14056
14057 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14058 * tui/tui-win.c (window_name_completer): Update comment.
14059 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14060 Declare method.
14061 (class tui_layout_window) <replace_window>: Likewise.
14062 (class tui_layout_split) <replace_window>: Likewise.
14063 (tui_set_layout): Don't declare.
14064 (tui_set_initial_layout): Declare function.
14065 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14066 (asm_regs_layout): New globals.
14067 (tui_current_layout, show_layout): Remove.
14068 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14069 (find_layout, tui_apply_layout): New function.
14070 (layout_completer): Remove.
14071 (tui_next_layout): Reimplement.
14072 (tui_next_layout_command): New function.
14073 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14074 (tui_regs_layout): Reimplement.
14075 (tui_regs_layout_command): New function.
14076 (extract_display_start_addr): Rewrite.
14077 (next_layout, prev_layout): Remove.
14078 (tui_layout_window::replace_window): New method.
14079 (tui_layout_split::replace_window): New method.
14080 (destroy_layout): New function.
14081 (layout_list): New global.
14082 (add_layout_command): New function.
14083 (initialize_layouts): Update.
14084 (tui_layout_command): New function.
14085 (_initialize_tui_layout): Install "layout" commands.
14086 * tui/tui-data.h (enum tui_layout_type): Remove.
14087 (tui_current_layout): Don't declare.
14088
0dbc2fc7
TT
140892020-02-22 Tom Tromey <tom@tromey.com>
14090
14091 * tui/tui-regs.c (tui_reg_layout): Remove.
14092 (tui_reg_command): Use tui_regs_layout.
14093 * tui/tui-layout.h (tui_reg_command): Declare.
14094 * tui/tui-layout.c (tui_reg_command): New function.
14095
5afe342e
TT
140962020-02-22 Tom Tromey <tom@tromey.com>
14097
14098 * tui/tui.c (tui_rl_delete_other_windows): Call
14099 tui_remove_some_windows.
14100 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14101 Declare method.
14102 (class tui_layout_window) <remove_windows>: New method.
14103 (class tui_layout_split) <remove_windows>: Declare.
14104 (tui_remove_some_windows): Declare.
14105 * tui/tui-layout.c (tui_remove_some_windows): New function.
14106 (tui_layout_split::remove_windows): New method.
14107
427326a8
TT
141082020-02-22 Tom Tromey <tom@tromey.com>
14109
14110 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14111 * tui/tui-layout.h (tui_next_layout): Declare.
14112 * tui/tui-layout.c (tui_next_layout): New function.
14113
3fe12b6d
TT
141142020-02-22 Tom Tromey <tom@tromey.com>
14115
14116 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14117 correct coordinates.
14118
59b8b5d2
TT
141192020-02-22 Tom Tromey <tom@tromey.com>
14120
14121 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14122 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14123 DATA_WIN case.
14124
2a3d458b
TT
141252020-02-22 Tom Tromey <tom@tromey.com>
14126
14127 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14128 TUI_DISASM_WIN, not tui_win_list.
14129
3f0cbb04
TT
141302020-02-22 Tom Tromey <tom@tromey.com>
14131
14132 * valprint.c (generic_val_print_enum_1)
14133 (val_print_type_code_flags): Style member names.
14134 * rust-lang.c (val_print_struct, rust_print_enum)
14135 (rust_print_struct_def, rust_internal_print_type): Style member
14136 names.
14137 * p-valprint.c (pascal_object_print_value_fields): Style member
14138 names. Only call fprintf_symbol_filtered for static members.
14139 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14140 * f-valprint.c (f_val_print): Style member names.
14141 * f-typeprint.c (f_type_print_base): Style member names.
14142 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14143 call fprintf_symbol_filtered for static members.
14144 (cp_print_class_member): Style member names.
14145 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14146 member names.
14147 * ada-valprint.c (ada_print_scalar): Style enum names.
14148 (ada_val_print_enum): Likewise.
14149 * ada-typeprint.c (print_enum_type): Style enum names.
14150
d4d947ae
TT
141512020-02-21 Tom Tromey <tom@tromey.com>
14152
14153 * psympriv.h (struct partial_symtab): Update comment.
14154
e94e944b
TT
141552020-02-21 Tom Tromey <tromey@adacore.com>
14156
14157 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14158 type is CORE_ADDR.
14159
1eb73179
TV
141602020-02-21 Tom de Vries <tdevries@suse.de>
14161
14162 PR gdb/25534
14163 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14164 if dependencies[i]->user != NULL.
14165
4f180d53
AT
141662020-02-21 Ali Tamur <tamur@google.com>
14167
14168 * dwarf2/read.c (dwarf2_name): Add null check.
14169
22b6cd70
TT
141702020-02-20 Tom Tromey <tom@tromey.com>
14171
14172 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14173 ">=", in binary search.
14174 (dwarf2_find_containing_comp_unit): New overload.
14175 (run_test): New self-test.
14176 (_initialize_dwarf2_read): Register new test.
14177
bd0cf5a6
NC
141782020-02-20 Nelson Chu <nelson.chu@sifive.com>
14179
14180 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14181 * riscv-tdep.h: Likewise.
14182 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14183 rv32-only CSR.
14184 * features/riscv/64bit-csr.xml: Regenerated.
14185
3f702acd
SDJ
141862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14187 Tom Tromey <tom@tromey.com>
14188
14189 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14190 of 'fputc_unfiltered'.
14191 (putchar_unfiltered): Call 'fputc_unfiltered'.
14192 (fputc_unfiltered): Call 'fputs_unfiltered'.
14193
d13c7322
AB
141942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14195
14196 * config.in: Regenerate.
14197 * configure: Regenerate.
14198 * configure.ac: Add --with-python-libdir option.
14199 * main.c: Use WITH_PYTHON_LIBDIR.
14200
869d8950
TT
142012020-02-19 Tom Tromey <tom@tromey.com>
14202
14203 * symtab.c (general_symbol_info::compute_and_set_names): Use
14204 obstack_strndup. Simplify call to symbol_set_demangled_name.
14205
298e9637
SM
142062020-02-19 Simon Marchi <simon.marchi@efficios.com>
14207
14208 * dwarf2/read.c (allocate_signatured_type_table,
14209 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14210 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14211 Remove objfile parameter, update all callers.
14212
08410482
DE
142132020-02-19 Doug Evans <dje@google.com>
14214
14215 PR rust/25535
14216 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14217 rust_enum_variant calculation.
14218
dfdeeca1
TT
142192020-02-19 Tom Tromey <tromey@adacore.com>
14220
14221 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14222
2ef5453b
TT
142232020-02-19 Tom Tromey <tromey@adacore.com>
14224
14225 * ada-lang.c (cache_symbol): Use obstack_strdup.
14226
9f1528a1
AB
142272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14228
14229 * configure: Regenerate.
14230
d3c22fa8
TT
142312020-02-19 Tom Tromey <tromey@adacore.com>
14232
14233 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14234 NULL check.
14235
bf84f706
MR
142362020-02-19 Maciej W. Rozycki <macro@wdc.com>
14237
14238 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14239
d1c9b20f
AB
142402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14241
14242 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14243 if GDBSERVER is not defined.
14244 (riscv_tdesc_cache): Likewise, also store const target_desc.
14245 (STATIC_IN_GDB): Define.
14246 (riscv_create_target_description): Update declaration with
14247 STATIC_IN_GDB.
14248 (riscv_lookup_target_description): New function, only define if
14249 GDBSERVER is not defined.
14250 * arch/riscv.h (riscv_create_target_description): Declare only
14251 when GDBSERVER is defined.
14252 (riscv_lookup_target_description): New declaration when GDBSERVER
14253 is not defined.
14254 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14255 (riscv_linux_read_features): ...this, and return
14256 riscv_gdbarch_features instead of target_desc.
14257 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14258 (riscv_linux_read_description): Rename to...
14259 (riscv_linux_read_features): ...this.
14260 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14261 Update to use riscv_gdbarch_features and
14262 riscv_lookup_target_description.
14263 * riscv-tdep.c (riscv_find_default_target_description): Use
14264 riscv_lookup_target_description instead of
14265 riscv_create_target_description.
14266
373d7ac0
SM
142672020-02-18 Simon Marchi <simon.marchi@efficios.com>
14268
14269 * valprint.c (generic_val_print_enum_1): When printing a flag
14270 enum with value 0 and there is no enumerator with value 0, print
14271 just "0" instead of "(unknown: 0x0)".
14272
b29a2df0
SM
142732020-02-18 Simon Marchi <simon.marchi@efficios.com>
14274
14275 * valprint.c (generic_val_print_enum_1): Print unknown part of
14276 flag enum in hex.
14277
6740f0cc
SM
142782020-02-18 Simon Marchi <simon.marchi@efficios.com>
14279
14280 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14281 flag enums to contain duplicate enumerators.
14282 * valprint.c (generic_val_print_enum_1): Update comment.
14283
edd45eb0
SM
142842020-02-18 Simon Marchi <simon.marchi@efficios.com>
14285
14286 * dwarf2/read.c: Include "count-one-bits.h".
14287 (update_enumeration_type_from_children): If an enumerator has
14288 multiple bits set, don't treat the enumeration as a "flag enum".
14289 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14290 of flag enums have 0 or 1 bit set.
14291
6d0cf446
BE
142922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14293
14294 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14295 conversion.
14296 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14297 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14298 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14299 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14300 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14301
7001c1b7
SM
143022020-02-18 Simon Marchi <simon.marchi@efficios.com>
14303
14304 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14305
fdb61c6c
SM
143062020-02-14 Simon Marchi <simon.marchi@efficios.com>
14307
14308 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14309 displaced_step_closure_up.
14310 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14311 (struct displaced_step_closure_up):
14312 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14313 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14314 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14315 Likewise.
14316 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14317 * gdbarch.c, gdbarch.h: Re-generate.
14318 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14319 displaced_step_closure_up.
14320 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14321 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14322 * infrun.h (displaced_step_closure_up): New type alias.
14323 (struct displaced_step_inferior_state) <step_closure>: Change
14324 type to displaced_step_closure_up.
14325 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14326 displaced_step_closure_up.
14327 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14328
a4a38eb4
TT
143292020-02-14 Tom Tromey <tom@tromey.com>
14330
14331 * minidebug.c (gnu_debug_key): New global.
14332 (find_separate_debug_file_in_section): Use it.
14333
e8217e61
SM
143342020-02-14 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14337 std::unique_ptr.
14338 * gdbarch.c: Re-generate.
14339 * gdbarch.h: Re-generate.
14340 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14341 change.
14342 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14343 type to std::unique_ptr.
14344 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14345 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14346 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14347 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14348 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14349 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14350 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14351 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14352 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14353
d8d83535
SM
143542020-02-14 Simon Marchi <simon.marchi@efficios.com>
14355
14356 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14357 std::unique_ptr.
14358 (displaced_step_clear): Rename to...
14359 (displaced_step_reset): ... this. Just call displaced->reset ().
14360 (displaced_step_clear_cleanup): Rename to...
14361 (displaced_step_reset_cleanup): ... this.
14362 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14363 (displaced_step_fixup): Likewise.
14364 (resume_1): Likewise.
14365 (handle_inferior_event): Restore child's memory before calling
14366 displaced_step_fixup on the parent.
14367 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14368 to std::unique_ptr.
14369 <step_closure>: Change type to std::unique_ptr.
14370
5f661e03
SM
143712020-02-14 Simon Marchi <simon.marchi@efficios.com>
14372
14373 * arm-tdep.c: Include count-one-bits.h.
14374 (cleanup_block_store_pc): Use count_one_bits.
14375 (cleanup_block_load_pc): Use count_one_bits.
14376 (arm_copy_block_xfer): Use count_one_bits.
14377 (thumb2_copy_block_xfer): Use count_one_bits.
14378 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14379 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14380 (thumb_get_next_pcs_raw): Use count_one_bits.
14381 (arm_get_next_pcs_raw): Use count_one_bits_l.
14382 * arch/arm.c (bitcount): Remove.
14383 * arch/arm.h (bitcount): Remove.
14384
8084e579
TT
143852020-02-14 Tom Tromey <tromey@adacore.com>
14386
14387 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14388 Update.
14389 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14390 * dwarf2/loc.c (call_site_find_chain_1): Return
14391 unique_xmalloc_ptr.
14392 (call_site_find_chain): Likewise.
14393
258bf0ee
RB
143942020-02-14 Richard Biener <rguenther@suse.de>
14395
14396 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14397 on expression with division operators.
14398
f98a8458
AKS
143992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14400
14401 * MAINTAINERS (Write After Approval): Adding myself.
14402
d1437c0e
TT
144032020-02-12 Tom Tromey <tom@tromey.com>
14404
14405 * event-loop.c (event_data, gdb_event, event_handler_func):
14406 Remove.
14407
3d4560f7
TT
144082020-02-12 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14411 (dwarf2_frame_objfile_data): Add comment.
14412 (find_comp_unit, set_comp_unit): New functions.
14413 (dwarf2_frame_find_fde): Use find_comp_unit.
14414 (dwarf2_build_frame_info): Use set_comp_unit.
14415
21982304
TT
144162020-02-12 Tom Tromey <tom@tromey.com>
14417
14418 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14419 (comp_unit): Don't initialize objfile.
14420 (execute_cfa_program): Add text_offset parameter.
14421 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14422 (dwarf2_frame_cache): Update.
14423 (dwarf2_build_frame_info): Don't set "objfile" member.
14424
4debb237
TT
144252020-02-12 Tom Tromey <tom@tromey.com>
14426
14427 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14428 (decode_frame_entry): Likewise.
14429 (dwarf2_build_frame_info): Update.
14430
0d404d44
TT
144312020-02-12 Tom Tromey <tom@tromey.com>
14432
14433 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14434 (decode_frame_entry_1): Use the comp_unit obstack.
14435
a7a3ae5c
TT
144362020-02-12 Tom Tromey <tom@tromey.com>
14437
14438 * dwarf2/frame.c (struct comp_unit): Add initializers and
14439 constructor.
14440 (dwarf2_frame_objfile_data): Store a comp_unit.
14441 (dwarf2_frame_find_fde): Update.
14442 (dwarf2_build_frame_info): Use "new".
14443
a9d65418
TT
144442020-02-12 Tom Tromey <tom@tromey.com>
14445
14446 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14447 (dwarf2_fde_table): Typedef for std::vector.
14448 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14449 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14450 (decode_frame_entry): Update.
14451 (dwarf2_build_frame_info): Use "new".
14452
7559c217
CB
144532020-02-12 Christian Biesinger <cbiesinger@google.com>
14454
14455 * arm-tdep.c (arm_gdbarch_init): Update.
14456 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14457 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14458 have_neon, is_m>: Change to bool.
14459
aeefc73c
CB
144602020-02-12 Christian Biesinger <cbiesinger@google.com>
14461
14462 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14463
d27b8e5f
TT
144642020-02-12 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14467
cd5900f3
HD
144682020-02-12 Hannes Domani <ssbssa@yahoo.de>
14469
14470 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14471 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14472
f056b22b
TT
144732020-02-11 Tom Tromey <tom@tromey.com>
14474
14475 * psymtab.h: Update comment.
14476
f92ff6b5
TT
144772020-02-11 Tom Tromey <tom@tromey.com>
14478
14479 * gdb_obstack.h (struct auto_obstack): Use
14480 DISABLE_COPY_AND_ASSIGN.
14481
3fd6912b
TT
144822020-02-11 Tom Tromey <tom@tromey.com>
14483
14484 * dwarf2/frame.h (struct objfile): Don't forward declare.
14485
69ed9b74
CB
144862020-02-11 Christian Biesinger <cbiesinger@google.com>
14487
14488 * cris-tdep.c (cris_supply_gregset): Change signature to match
14489 what struct regset expects.
14490 (cris_regset): New struct.
14491 (fetch_core_registers): Remove.
14492 (cris_iterate_over_regset_sections): New function.
14493 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14494 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14495
bda874f6
CB
144962020-02-11 Christian Biesinger <cbiesinger@google.com>
14497
14498 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14499 registers.
14500
754e1564
CB
145012020-02-11 Christian Biesinger <cbiesinger@google.com>
14502
14503 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14504
8ddd8e0e
SM
145052020-02-11 Simon Marchi <simon.marchi@efficios.com>
14506
14507 * configure: Re-generate.
14508
898e7f60
SM
145092020-02-11 Simon Marchi <simon.marchi@efficios.com>
14510
14511 * configure: Re-generate.
14512
58df732b
SM
145132020-02-11 Simon Marchi <simon.marchi@efficios.com>
14514
14515 * acinclude: Update warning.m4 path.
14516 * warning.m4: Move to gdbsupport.
14517
da5bd37e
TT
145182020-02-11 Tom Tromey <tromey@adacore.com>
14519
14520 * remote.c (remote_console_output): Update.
14521 * printcmd.c (printf_command): Update.
14522 * event-loop.c (gdb_wait_for_event): Update.
14523 * linux-nat.c (sigchld_handler): Update.
14524 * remote-sim.c (gdb_os_write_stdout): Update.
14525 (gdb_os_flush_stdout): Update.
14526 (gdb_os_flush_stderr): Update.
14527 (gdb_os_write_stderr): Update.
14528 * exceptions.c (print_exception): Update.
14529 * remote-fileio.c (remote_fileio_func_read): Update.
14530 (remote_fileio_func_write): Update.
14531 * tui/tui.c (tui_enable): Update.
14532 * tui/tui-interp.c (tui_interp::init): Update.
14533 * utils.c (init_page_info): Update.
14534 (putchar_unfiltered, fputc_unfiltered): Update.
14535 (gdb_flush): Update.
14536 (emit_style_escape): Update.
14537 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14538 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14539 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14540 (stderr_file::write): Update.
14541 (stderr_file::puts): Update.
14542 * ui-file.h (ui_file_isatty, ui_file_write)
14543 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14544 (ui_file_puts): Don't declare.
14545
85f0dd3c
TV
145462020-02-10 Tom de Vries <tdevries@suse.de>
14547
14548 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14549 sentinel to char *.
14550
2e927613
TV
145512020-02-09 Tom de Vries <tdevries@suse.de>
14552
14553 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14554 filename if it matches "<artificial>".
14555
6bafc845
HD
145562020-02-09 Hannes Domani <ssbssa@yahoo.de>
14557
14558 * windows-tdep.c (struct enum_value_name): New struct.
14559 (create_enum): New function.
14560 (windows_get_siginfo_type): Create and use enum types.
14561
7928d571
HD
145622020-02-09 Hannes Domani <ssbssa@yahoo.de>
14563
14564 * NEWS: Mention $_siginfo support for Windows.
14565 * windows-nat.c (handle_exception): Set siginfo_er.
14566 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14567 (windows_xfer_siginfo): New function.
14568 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14569 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14570 (init_windows_gdbarch_data): New function.
14571 (get_windows_gdbarch_data): New function.
14572 (windows_get_siginfo_type): New function.
14573 (windows_init_abi): Register windows_get_siginfo_type.
14574 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14575
6751ebae
TT
145762020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14579 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14580 <keep>: Declare method.
14581 <m_keep>: Remove member.
14582 <~cutu_reader>: Remove.
14583 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14584 (cutu_reader::cutu_reader): Update.
14585 (cutu_reader::keep): Rename from ~cutu_reader.
14586 (process_psymtab_comp_unit, build_type_psymtabs_1)
14587 (process_skeletonless_type_unit, load_partial_comp_unit)
14588 (load_full_comp_unit, dwarf2_read_addr_index)
14589 (read_signatured_type): Update.
14590
135f5437
TT
145912020-02-08 Tom Tromey <tom@tromey.com>
14592
14593 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14594 "want_partial_unit" parameter.
14595 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14596 Inline check for DW_TAG_partial_unit.
14597 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14598
9f66ff1c
TT
145992020-02-08 Tom Tromey <tom@tromey.com>
14600
14601 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14602 read.c.
14603 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14604 read.c.
14605
c8a7a66f
TT
146062020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (read_address): Move to comp-unit.c.
14609 (dwarf2_rnglists_process, dwarf2_ranges_process)
14610 (read_attribute_value, dwarf_decode_lines_1)
14611 (var_decode_location, decode_locdesc): Update.
14612 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14613 read.c. Remove "cu" parameter.
14614 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14615 method.
14616
8266302d
TT
146172020-02-08 Tom Tromey <tom@tromey.com>
14618
14619 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14620 (read_indirect_line_string): Update.
14621 * dwarf2/comp-unit.c (read_offset): Remove.
14622 (read_comp_unit_head): Update.
14623 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14624 method.
14625 (read_offset): Don't declare.
14626
4057dfde
TT
146272020-02-08 Tom Tromey <tom@tromey.com>
14628
14629 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14630 * dwarf2/read.c (struct comp_unit_head): Move to
14631 dwarf2/comp-unit.h.
14632 (enum class rcuh_kind): Move to comp-unit.h.
14633 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14634 (read_comp_unit_head, error_check_comp_unit_head)
14635 (read_and_check_comp_unit_head): Move to comp-unit.c.
14636 (read_offset, dwarf_unit_type_name): Likewise.
14637 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14638 (cutu_reader::cutu_reader, read_call_site_scope)
14639 (find_partial_die, follow_die_offset): Update.
14640 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14641
24aa364d
TT
146422020-02-08 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2/read.c (read_offset_1): Move to leb.c.
14645 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14646 (dwarf_decode_macro_bytes): Update.
14647 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14648 * dwarf2/leb.h (read_offset): Declare.
14649
2c7d5afc
TT
146502020-02-08 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2/read.c (dwarf2_section_size): Remove.
14653 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14654 Update.
14655 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14656
4075cb26
TT
146572020-02-08 Tom Tromey <tom@tromey.com>
14658
14659 * dwarf2/read.c (read_initial_length): Move to leb.c.
14660 * dwarf2/leb.h (read_initial_length): Declare.
14661 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14662 handle_nonstd parameter.
14663 * dwarf2/frame.c (read_initial_length): Remove.
14664 (decode_frame_entry_1): Update.
14665
09ba997f
TT
146662020-02-08 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2/loc.c (dwarf2_find_location_expression)
14669 (dwarf_evaluate_loc_desc::get_tls_address)
14670 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14671 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14672 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14673 (dwarf2_compile_property_to_c)
14674 (dwarf2_loc_desc_get_symbol_read_needs)
14675 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14676 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14677 (loclist_describe_location, loclist_tracepoint_var_ref)
14678 (loclist_generate_c_location): Update.
14679 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14680 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14681 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14682 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14683 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14684 (dwarf2_per_cu_data::addr_size)
14685 (dwarf2_per_cu_data::ref_addr_size)
14686 (dwarf2_per_cu_data::text_offset)
14687 (dwarf2_per_cu_data::addr_type): Now methods.
14688 (per_cu_header_read_in): Make per_cu "const".
14689 (dwarf2_version): Remove.
14690 (dwarf2_per_cu_data::int_type): Now a method.
14691 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14692 (set_die_type, read_array_type, read_subrange_index_type)
14693 (read_tag_string_type, read_subrange_type): Update.
14694 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14695 offset_size, ref_addr_size, text_offset, addr_type, version,
14696 objfile, int_type, addr_sized_int_type>: Declare methods.
14697
96c738c0
TT
146982020-02-08 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14701 Move earlier.
14702
8fdd972c
TT
147032020-02-08 Tom Tromey <tom@tromey.com>
14704
14705 * dwarf2/read.h (dwarf_line_debug): Declare.
14706 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14707 * dwarf2/read.c: Move line_header code to new files.
14708 (dwarf_line_debug): No longer static.
14709 * dwarf2/line-header.c: New file.
14710 * dwarf2/line-header.h: New file.
14711
03075812
TT
147122020-02-08 Tom Tromey <tom@tromey.com>
14713
14714 * dwarf2/read.c (struct line_header) <file_full_name,
14715 file_file_name>: Return unique_xmalloc_ptr.
14716 (line_header::file_file_name): Update.
14717 (line_header::file_full_name): Update.
14718 (dw2_get_file_names_reader): Update.
14719 (macro_start_file): Update.
14720
bb822404
TT
147212020-02-08 Tom Tromey <tom@tromey.com>
14722
14723 * dwarf2/read.c (struct line_header) <file_full_name,
14724 file_file_name>: Declare methods.
14725 (dw2_get_file_names_reader): Update.
14726 (file_file_name): Now a method.
14727 (file_full_name): Likewise.
14728 (macro_start_file): Update.
14729
009b64fc
TT
147302020-02-08 Tom Tromey <tom@tromey.com>
14731
14732 * dwarf2/read.c (dwarf_always_disassemble)
14733 (show_dwarf_always_disassemble): Move to loc.c.
14734 (_initialize_dwarf2_read): Move "always-disassemble" registration
14735 to loc.c.
14736 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14737 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14738 static.
14739 (show_dwarf_always_disassemble): Move from read.c.
14740 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14741
5895093f
TT
147422020-02-08 Tom Tromey <tom@tromey.com>
14743
14744 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14745 (create_quick_file_names_table): Return htab_up.
14746 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14747 Update.
14748 * dwarf2/read.h (struct dwarf2_per_objfile)
14749 <quick_file_names_table>: Now htab_up.
14750
b3b32279
TT
147512020-02-08 Tom Tromey <tom@tromey.com>
14752
14753 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14754
1d33d811
TT
147552020-02-08 Tom Tromey <tom@tromey.com>
14756
14757 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14758 Rewrite.
14759 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14760 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14761 (abbrev_table::abbrev_table): No longer inline.
14762 (ABBREV_HASH_SIZE): Remove.
14763 (abbrev_table::m_abbrevs): Now an htab_up.
14764
86de1d91
TT
147652020-02-08 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14768 (cutu_reader): Update.
14769 (build_type_psymtabs_1): Update.
14770 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14771 (abbrev_table::alloc_abbrev): Update.
14772 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14773 (abbrev_table::read): New static method, renamed from
14774 abbrev_table_read_table.
14775 (abbrev_table::alloc_abbrev)
14776 (abbrev_table::add_abbrev): Now private.
14777 (abbrev_table::abbrev_table): Now private.
14778 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14779
0335378b
TT
147802020-02-08 Tom Tromey <tom@tromey.com>
14781
14782 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14783 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14784 htab_up.
14785
48b490f2
TT
147862020-02-08 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14789 htab_up.
14790 (lookup_dwo_unit_in_dwp): Update.
14791 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14792 on obstack.
14793
bc68fb19
TT
147942020-02-08 Tom Tromey <tom@tromey.com>
14795
14796 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14797 obstack.
14798
d15acc42
TT
147992020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14802 line_header_hash.
14803 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14804 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14805 Change type to htab_up.
14806
eaa5fa8b
TT
148072020-02-08 Tom Tromey <tom@tromey.com>
14808
14809 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14810 htab_up. Don't allocate on obstack.
14811 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14812 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14813 Change type to htab_up.
14814
b0b6a987
TT
148152020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14818 Change type to htab_up.
14819 * dwarf2/read.c (create_signatured_type_table_from_index)
14820 (create_signatured_type_table_from_debug_names)
14821 (create_all_type_units, add_type_unit)
14822 (lookup_dwo_signatured_type, lookup_signatured_type)
14823 (process_skeletonless_type_unit): Update.
14824 (create_debug_type_hash_table, create_debug_types_hash_table):
14825 Change type of types_htab.
14826 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14827 htab_up. Don't allocate on obstack.
14828 (create_cus_hash_table): Change type of cus_htab parameter.
14829 (struct dwo_file) <cus, tus>: Now htab_up.
14830 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14831 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14832 (queue_and_load_all_dwo_tus): Update.
14833 * dwarf2/index-write.c (write_gdbindex): Update.
14834 (write_debug_names): Update.
14835
39856def
TT
148362020-02-08 Tom Tromey <tom@tromey.com>
14837
14838 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14839 dwarf2/read.c. Remove "next" member. Add constructor ntad
14840 destructor.
14841 (struct dwarf2_per_objfile) <queue>: New member.
14842 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14843 dwarf2/read.h.
14844 (dwarf2_queue, dwarf2_queue_tail): Remove.
14845 (class dwarf2_queue_guard): Add parameter to constructor. Use
14846 DISABLE_COPY_AND_ASSIGN.
14847 <m_per_objfile>: New member.
14848 <~dwarf2_queue_guard>: Rewrite.
14849 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14850 Update.
14851 (~dwarf2_queue_item): New.
14852
3e225074
TT
148532020-02-08 Tom Tromey <tom@tromey.com>
14854
14855 * dwarf2/read.c (struct die_info) <has_children>: New member.
14856 (dw2_get_file_names_reader): Remove has_children.
14857 (dw2_get_file_names): Update.
14858 (read_cutu_die_from_dwo): Remove has_children.
14859 (cutu_reader::init_tu_and_read_dwo_dies)
14860 (cutu_reader::cutu_reader): Update.
14861 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14862 Remove has_children.
14863 (build_type_psymtabs_1, process_skeletonless_type_unit)
14864 (load_partial_comp_unit, load_full_comp_unit): Update.
14865 (create_dwo_cu_reader): Remove has_children.
14866 (create_cus_hash_table, read_die_and_children): Update.
14867 (read_full_die_1,read_full_die): Remove has_children.
14868 (read_signatured_type): Update.
14869 (class cutu_reader) <has_children>: Remove.
14870
82ca8957
TT
148712020-02-08 Tom Tromey <tom@tromey.com>
14872
14873 * dwarf2/expr.c: Rename from dwarf2expr.c.
14874 * dwarf2/expr.h: Rename from dwarf2expr.h.
14875 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14876 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14877 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14878 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14879 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14880 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14881 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14882 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14883 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14884 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14885 * dwarf2/loc.c: Rename from dwarf2loc.c.
14886 * dwarf2/loc.h: Rename from dwarf2loc.h.
14887 * dwarf2/read.c: Rename from dwarf2read.c.
14888 * dwarf2/read.h: Rename from dwarf2read.h.
14889 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14890 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14891 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14892 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14893 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14894 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14895 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14896 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14897 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14898 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14899 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14900 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14901 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14902 Update.
14903 * Makefile.in (COMMON_SFILES): Update.
14904 (HFILES_NO_SRCDIR): Update.
14905
9e35d499
TT
149062020-02-08 Tom Tromey <tom@tromey.com>
14907
14908 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14909 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14910
1eba2311
TT
149112020-02-08 Tom Tromey <tom@tromey.com>
14912
14913 * dwarf2read.h (struct die_info): Don't declare.
14914
e41c2da2
TT
149152020-02-08 Tom Tromey <tom@tromey.com>
14916
14917 * dwarf2read.h (die_info_ptr): Remove typedef.
14918
4fc6c0d5
TT
149192020-02-08 Tom Tromey <tom@tromey.com>
14920
14921 * dwarf2read.c (read_call_site_scope)
14922 (handle_data_member_location, dwarf2_add_member_fn)
14923 (mark_common_block_symbol_computed, read_common_block)
14924 (attr_to_dynamic_prop, partial_die_info::read)
14925 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14926 (dwarf2_symbol_mark_computed, set_die_type): Update.
14927 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14928 method.
14929 (attr_form_is_block): Don't declare.
14930 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14931
cd6c91b4
TT
149322020-02-08 Tom Tromey <tom@tromey.com>
14933
14934 * dwarf2read.c (dwarf2_find_base_address, )
14935 (read_call_site_scope, rust_containing_type)
14936 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14937 (handle_data_member_location, dwarf2_add_member_fn)
14938 (get_alignment, read_structure_type, process_structure_scope)
14939 (mark_common_block_symbol_computed, read_common_block)
14940 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14941 (partial_die_info::read, read_attribute_value, new_symbol)
14942 (lookup_die_type, dwarf2_get_ref_die_offset)
14943 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14944 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14945 (dwarf2_symbol_mark_computed): Update.
14946 * dwarf2/attribute.h (struct attribute) <value_as_address,
14947 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14948 methods.
14949 (value_as_address, attr_form_is_section_offset)
14950 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14951 * dwarf2/attribute.c (attribute::value_as_address)
14952 (attribute::form_is_section_offset, attribute::form_is_constant)
14953 (attribute::form_is_ref): Now methods.
14954
162dce55
TT
149552020-02-08 Tom Tromey <tom@tromey.com>
14956
14957 * dwarf2read.c (struct attribute, DW_STRING)
14958 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14959 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14960 (attr_form_is_block, attr_form_is_section_offset)
14961 (attr_form_is_constant, attr_form_is_ref): Move.
14962 * dwarf2/attribute.h: New file.
14963 * dwarf2/attribute.c: New file, from dwarf2read.c.
14964 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14965
3054dd54
TT
149662020-02-08 Tom Tromey <tom@tromey.com>
14967
14968 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14969 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14970 Move.
14971 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14972 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14973 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14974 abbrev.c.
14975 * dwarf2/abbrev.h: New file.
14976 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14977 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14978
96b79293
TT
149792020-02-08 Tom Tromey <tom@tromey.com>
14980
14981 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14982 (dwarf2_section_size, dwarf2_get_section_info)
14983 (create_signatured_type_table_from_debug_names)
14984 (create_addrmap_from_aranges, read_debug_names_from_section)
14985 (get_gdb_index_contents_from_section, read_comp_unit_head)
14986 (error_check_comp_unit_head, read_abbrev_offset)
14987 (create_debug_type_hash_table, init_cu_die_reader)
14988 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14989 (read_comp_units_from_section, create_cus_hash_table)
14990 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14991 (create_dwp_v2_section, dwarf2_rnglists_process)
14992 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14993 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14994 (read_indirect_string_from_dwz, read_addr_index_1)
14995 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14996 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14997 (fill_in_loclist_baton): Update.
14998 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14999 get_containing_section, get_bfd_owner, get_bfd_section,
15000 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15001 (dwarf2_read_section, get_section_name, get_section_file_name)
15002 (get_containing_section, get_section_bfd_owner)
15003 (get_section_bfd_section, get_section_name, get_section_file_name)
15004 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15005 declare.
15006 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15007 (dwarf2_section_info::get_bfd_owner)
15008 (dwarf2_section_info::get_bfd_section)
15009 (dwarf2_section_info::get_name)
15010 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15011 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15012 (dwarf2_section_info::read): Now methods.
15013 * dwarf-index-write.c (class debug_names): Update.
15014
2c86cff9
TT
150152020-02-08 Tom Tromey <tom@tromey.com>
15016
15017 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15018 Move to dwarf2/section.h.
15019 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15020 (get_section_bfd_section, get_section_name)
15021 (get_section_file_name, get_section_id, get_section_flags)
15022 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15023 dwarf2/section.c.
15024 * dwarf2/section.h: New file.
15025 * dwarf2/section.c: New file, from dwarf2read.c.
15026 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15027
f4382c45
TT
150282020-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15031 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15032 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15033 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15034 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15035 * dwarf2/leb.h: New file, from dwarf2read.c.
15036 * dwarf2/leb.c: New file, from dwarf2read.c.
15037 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15038 Remove.
15039 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15040 (COMMON_SFILES): Add dwarf2/leb.c.
15041
01840b7a
JB
150422020-02-08 Joel Brobecker <brobecker@adacore.com>
15043
15044 GDB 9.1 released.
15045
dfcb27e4
IB
150462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15047
15048 PR gdb/25190:
aac66a4c
SM
15049 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15050 * gdb/remote.c (remote_console_output): Update.
15051 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15052 (ui_file_puts): ...this.
15053 * gdb/ui-file.h (ui_file_puts): Add declaration.
15054 * gdb/utils.c (emit_style_escape): Update.
15055 (flush_wrap_buffer): Update.
15056 (fputs_maybe_filtered): Update.
15057 (fputs_unfiltered): Add function.
dfcb27e4 15058
faa17681
IB
150592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15060
aac66a4c
SM
15061 * gdb/event-loop.c (gdb_wait_for_event): Update.
15062 * gdb/printcmd.c (printf_command): Update.
15063 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15064 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15065 (gdb_os_flush_stderr): Update.
15066 * gdb/remote.c (remote_console_output): Update.
15067 * gdb/ui-file.c (gdb_flush): Rename to...
15068 (ui_file_flush): ...this.
15069 (stderr_file::write): Update.
15070 (stderr_file::puts): Update.
15071 * gdb/ui-file.h (gdb_flush): Rename to...
15072 (ui_file_flush): ...this.
15073 * gdb/utils.c (gdb_flush): Add function.
15074 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15075
5abbbe1d
TT
150762020-02-07 Tom Tromey <tromey@adacore.com>
15077
15078 PR breakpoints/24915:
15079 * source.c (find_and_open_source): Do not check basenames_may_differ.
15080
919adfe8
TT
150812020-02-07 Tom Tromey <tom@tromey.com>
15082
15083 * README: Update gdbserver documentation.
15084 * gdbserver: Move to top level.
15085 * configure.tgt (build_gdbserver): Remove.
15086 * configure.ac: Remove --enable-gdbserver.
15087 * configure: Rebuild.
15088 * Makefile.in (distclean): Don't mention gdbserver.
15089
1d5d29e7
SV
150902020-02-06 Shahab Vahedi <shahab@synopsys.com>
15091
15092 * source-cache.c (source_cache::ensure): Surround
15093 get_plain_source_lines with a try/catch.
15094 (source_cache::get_line_charpos): Get rid of try/catch
15095 and only check for the return value of "ensure".
15096 * tui/tui-source.c (tui_source_window::set_contents):
15097 Simplify "nlines" calculation.
15098
6eb1129c
SV
150992020-02-06 Shahab Vahedi <shahab@synopsys.com>
15100
15101 * MAINTAINERS (Write After Approval): Add myself.
15102
c6a42d11
CB
151032020-02-05 Christian Biesinger <cbiesinger@google.com>
15104
15105 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15106 function call.
15107
c8ecdda6
CB
151082020-02-05 Christian Biesinger <cbiesinger@google.com>
15109
15110 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15111
f6480e70
MR
151122020-02-05 Maciej W. Rozycki <macro@wdc.com>
15113
15114 * nat/riscv-linux-tdesc.h: New file.
15115 * nat/riscv-linux-tdesc.c: New file, taking code from...
15116 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15117 ... here.
15118 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15119 NATDEPFILES.
15120
dcc9fbc6
AB
151212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15122
15123 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15124 we don't set the fake simulator ptid to the null_ptid.
15125
719546c4
SM
151262020-02-03 Simon Marchi <simon.marchi@efficios.com>
15127
15128 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15129 * gdbthread.h (class thread_info) <resumed>: Likewise.
15130 * infrun.c (resume_1): Likewise.
15131 (proceed): Likewise.
15132 (infrun_thread_stop_requested): Likewise.
15133 (stop_all_threads): Likewise.
15134 (handle_inferior_event): Likewise.
15135 (restart_threads): Likewise.
15136 (finish_step_over): Likewise.
15137 (keep_going_stepped_thread): Likewise.
15138 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15139 (linux_handle_extended_wait): Likewise.
15140 * record-btrace.c (get_thread_current_frame_id): Likewise.
15141 * record-full.c (record_full_wait_1): Likewise.
15142 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15143 * target.c (target_resume): Likewise.
15144 * thread.c (set_running_thread): Likewise.
15145
e409c542
AKS
151462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15147
15148 * f-valprint.c (f77_print_array_1): Changed datatype of index
15149 variable to LONGEST from int to enable it to contain bound
15150 values correctly.
15151
ee98c0da
MR
151522020-02-03 Maciej W. Rozycki <macro@wdc.com>
15153
15154 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15155 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15156 offsets according to FLEN determined.
15157 (riscv_linux_nat_target::read_description): Determine FLEN
15158 dynamically.
15159 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15160 according to FLEN determined.
15161 (riscv_linux_nat_target::store_registers): Likewise.
15162
aa66aac4
SV
151632020-02-01 Shahab Vahedi <shahab@synopsys.com>
15164
15165 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15166 when reg->group is empty and reggroup is not.
15167
fd9faca8
TT
151682020-01-31 Tom Tromey <tromey@adacore.com>
15169
15170 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15171 Call beneath target's mourn_inferior after unpushing.
15172
42330a68
AB
151732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15174
15175 PR tui/9765
15176 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15177 have enough lines to fill the screen, still return the lowest
15178 address we found.
15179
7a27a45b
AB
151802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15181
15182 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15183 '-', '<', and '>' commands.
15184
c47f70e2
PA
151852020-01-29 Pedro Alves <palves@redhat.com>
15186 Sergio Durigan Junior <sergiodj@redhat.com>
15187
15188 * infcmd.c (construct_inferior_arguments): Assert that
15189 'argc' is greater than 0.
15190
5133a315
LM
151912020-01-29 Luis Machado <luis.machado@linaro.org>
15192
15193 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15194 (BRK_INSN_MASK): Define to 0xd4200000.
15195 (aarch64_program_breakpoint_here_p): New function.
15196 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15197 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15198 breakpoint.c.
15199 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15200 breakpoint.h
15201 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15202 call gdbarch_program_breakpoint_here_p.
15203 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15204 default_program_breakpoint_here_p, changed return type to bool and
15205 simplified.
15206 * breakpoint.h (program_breakpoint_here): Moved prototype to
15207 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15208 return type to bool.
15209 * gdbarch.c: Regenerate.
15210 * gdbarch.h: Regenerate.
15211 * gdbarch.sh (program_breakpoint_here_p): New method.
15212 * infrun.c (handle_signal_stop): Call
15213 gdbarch_program_breakpoint_here_p.
15214
168f8c6b
TT
152152020-01-26 Tom Tromey <tom@tromey.com>
15216
15217 * ctfread.c (struct ctf_fp_info): Reindent.
15218 (_initialize_ctfread): Remove.
15219
128a391f
TT
152202020-01-26 Tom Tromey <tom@tromey.com>
15221
15222 * psymtab.c (partial_map_expand_apply)
15223 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15224 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15225 (psym_print_stats, psym_expand_symtabs_for_function)
15226 (psym_map_symbol_filenames, psym_map_matching_symbols)
15227 (psym_expand_symtabs_matching)
15228 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15229 (maintenance_check_psymtabs): Use new methods.
15230 * psympriv.h (struct partial_symtab) <readin_p,
15231 get_compunit_symtab>: New methods.
15232 <readin, compunit_symtab>: Remove members.
15233 (struct standard_psymtab): New.
15234 (struct legacy_psymtab): Derive from standard_psymtab.
15235 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15236 standard_psymtab.
15237 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15238
0494dbec
TT
152392020-01-26 Tom Tromey <tom@tromey.com>
15240
15241 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15242 read_dependencies. Add assert.
15243 * psymtab.c (partial_symtab::read_dependencies): New method.
15244 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15245 method.
15246 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15247 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15248 read_dependencies.
15249 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15250 Add assert.
15251
8566b89b
TT
152522020-01-26 Tom Tromey <tom@tromey.com>
15253
15254 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15255 Call expand_psymtab.
15256 (xcoff_read_symtab): Call expand_psymtab.
15257 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15258 legacy_expand_psymtab.
15259 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15260 method.
15261 (struct legacy_psymtab) <expand_psymtab>: Implement.
15262 <legacy_expand_psymtab>: New member.
15263 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15264 (parse_partial_symbols): Set legacy_expand_psymtab.
15265 (psymtab_to_symtab_1): Change argument order. Call
15266 expand_psymtab.
15267 (new_psymtab): Set legacy_expand_psymtab.
15268 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15269 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15270 expand_psymtab.
15271 (dwarf2_psymtab::expand_psymtab): Rename from
15272 psymtab_to_symtab_1. Call expand_psymtab.
15273 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15274 (dbx_end_psymtab): Likewise.
15275 (dbx_psymtab_to_symtab_1): Change argument order. Call
15276 expand_psymtab.
15277 (dbx_read_symtab): Call expand_psymtab.
15278 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15279 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15280 (ctf_psymtab::read_symtab): Call expand_psymtab.
15281
077cbab2
TT
152822020-01-26 Tom Tromey <tom@tromey.com>
15283
15284 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15285 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15286 messages.
15287 * mdebugread.c (mdebug_read_symtab): Remove prints.
15288 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15289 assert.
15290 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15291
891813be
TT
152922020-01-26 Tom Tromey <tom@tromey.com>
15293
15294 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15295 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15296 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15297 legacy_symtab.
15298 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15299 * psymtab.c (psymtab_to_symtab): Call method.
15300 (dump_psymtab): Update.
15301 * psympriv.h (struct partial_symtab): Add virtual destructor.
15302 <read_symtab>: New method.
15303 (struct legacy_symtab): New.
15304 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15305 (struct pst_map) <pst>: Now a legacy_psymtab.
15306 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15307 (new_psymtab): Use legacy_psymtab.
15308 * dwarf2read.h (struct dwarf2_psymtab): New.
15309 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15310 * dwarf2read.c (dwarf2_create_include_psymtab)
15311 (dwarf2_build_include_psymtabs, create_type_unit_group)
15312 (create_partial_symtab, process_psymtab_comp_unit_reader)
15313 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15314 (set_partial_user): Use dwarf2_psymtab.
15315 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15316 (psymtab_to_symtab_1, process_full_comp_unit)
15317 (process_full_type_unit, dwarf2_ranges_read)
15318 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15319 (dwarf_decode_lines): Use dwarf2_psymtab.
15320 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15321 (add_address_entry_worker, write_one_signatured_type)
15322 (recursively_count_psymbols, recursively_write_psymbols)
15323 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15324 (write_debug_names): Likewise.
15325 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15326 <pst>: Now a legacy_psymtab.
15327 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15328 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15329 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15330 * ctfread.c (struct ctf_psymtab): New.
15331 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15332 ctf_psymtab.
15333 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15334 (create_partial_symtab): Return a ctf_psymtab.
15335 (scan_partial_symbols): Update.
15336
c3693a1d
TT
153372020-01-26 Tom Tromey <tom@tromey.com>
15338
15339 * xcoffread.c (xcoff_start_psymtab): Use new.
15340 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15341 renamed from start_psymtab_common.
15342 * psympriv.h (struct partial_symtab): Add new constructor.
15343 (start_psymtab_common): Don't declare.
15344 * mdebugread.c (parse_partial_symbols): Use new.
15345 * dwarf2read.c (create_partial_symtab): Use new.
15346 * dbxread.c (start_psymtab): Use new.
15347 * ctfread.c (create_partial_symtab): Use new.
15348
32caafd0
TT
153492020-01-26 Tom Tromey <tom@tromey.com>
15350
15351 * xcoffread.c (xcoff_end_psymtab): Use new.
15352 * psymtab.c (start_psymtab_common): Use new.
15353 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15354 Update.
15355 * psympriv.h (struct partial_symtab): Add parameters to
15356 constructor. Don't inline.
15357 (allocate_psymtab): Don't declare.
15358 * mdebugread.c (new_psymtab): Use new.
15359 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15360 * dbxread.c (dbx_end_psymtab): Use new.
15361
abaa2f23
TT
153622020-01-26 Tom Tromey <tom@tromey.com>
15363
15364 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15365 allocate_psymtab. Update documentation.
15366 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15367 allocate_psymtab. Do not use new.
15368 (allocate_psymtab): Use new. Update.
15369
6d94535f
TT
153702020-01-26 Tom Tromey <tom@tromey.com>
15371
15372 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15373 * psymtab.c (psym_print_stats): Update.
15374 * psympriv.h (struct partial_symtab) <readin,
15375 psymtabs_addrmap_supported, anonymous>: Now bool.
15376 * mdebugread.c (psymtab_to_symtab_1): Update.
15377 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15378 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15379 (process_full_comp_unit, process_full_type_unit): Update.
15380 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15381 * ctfread.c (psymtab_to_symtab): Update.
15382
6f17252b
TT
153832020-01-26 Tom Tromey <tom@tromey.com>
15384
15385 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15386 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15387 * psymtab.c (psymtab_storage): Delete psymtabs.
15388 (psymtab_storage::allocate_psymtab): Use new.
15389 (psymtab_storage::discard_psymtab): Use delete.
15390 * psympriv.h (struct partial_symtab): Add constructor and
15391 initializers.
15392
f6f1cebc
TT
153932020-01-26 Tom Tromey <tom@tromey.com>
15394
15395 * machoread.c: Do not include psympriv.h.
15396
e47e48f6
PW
153972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15398
15399 * NEWS: Mention the new option and the set/show commands.
15400
a2fedca9
PW
154012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15402
15403 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15404 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15405 (validate_exec_file): New variables, enums, functions.
15406 (exec_file_locate_attach, print_section_info): Style the filenames.
15407 (_initialize_exec): Install show_exec_file_mismatch_command and
15408 set_exec_file_mismatch_command.
15409 * gdbcore.h (validate_exec_file): Declare.
15410 * infcmd.c (attach_command): Call validate_exec_file.
15411 * remote.c ( remote_target::remote_add_inferior): Likewise.
15412
7ffa82e1
AB
154132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15414
15415 * frame.c (find_frame_sal): Move call to get_next_frame into more
15416 inner scope.
15417 * inline-frame.c (inilne_state) <inline_state>: Update argument
15418 types.
15419 (inilne_state) <skipped_symbol>: Rename to...
15420 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15421 (skip_inline_frames): Build vector of skipped symbols and use this
15422 to reate the inline_state.
15423 (inline_skipped_symbol): Add a comment and some assertions, fetch
15424 skipped symbol from the list.
15425
3d92a3e3
AB
154262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15427
15428 * buildsym.c (lte_is_less_than): Delete.
15429 (buildsym_compunit::end_symtab_with_blockvector): Create local
15430 lambda function to sort line table entries, and use
15431 std::stable_sort instead of std::sort.
15432 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15433 markers when looking for a previous line.
15434
94a72be7
AB
154352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15436
15437 * dwarf2read.c (lnp_state_machine::record_line): Include
15438 end_sequence parameter in debug print out. Record the line if we
15439 are at an end_sequence marker even if it's not the start of a
15440 statement.
15441 * symmisc.c (maintenance_print_one_line_table): Print end of
15442 sequence markers with 'END' not '0'.
15443
53af73bf
PA
154442020-01-24 Pedro Alves <palves@redhat.com>
15445
15446 PR gdb/25410
15447 * thread.c (scoped_restore_current_thread::restore): Use
15448 switch_to_inferior_no_thread.
15449 * exec.c: Include "progspace-and-thread.h".
15450 (add_target_sections, remove_target_sections):
15451 scoped_restore_current_pspace_and_thread instead of
15452 scoped_restore_current_thread.
15453 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15454 and aspace to the inferior before calling clone_program_space.
15455 Remove stale comment.
15456
3050c6f4
CB
154572020-01-24 Christian Biesinger <cbiesinger@google.com>
15458
15459 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15460 (arm_netbsd_nat_target::fetch_registers): ...this.
15461 (arm_nbsd_nat_target::store_registers): Rename to...
15462 (arm_netbsd_nat_target::store_registers): ...this.
15463
73685c7e
CB
154642020-01-24 Christian Biesinger <cbiesinger@google.com>
15465
15466 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15467 register_t.
15468
89203d40
CB
154692020-01-24 Christian Biesinger <cbiesinger@google.com>
15470
15471 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15472 Update comment.
15473 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15474 Likewise.
15475 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15476 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15477 the correct replacement (iterate_over_regset_sections).
15478 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15479 Update comment.
15480
1ba1ac88
AB
154812020-01-24 Graham Markall <graham.markall@embecosm.com>
15482
15483 PR gdb/23718
15484 * gdb/python/python.c (execute_gdb_command): Call
15485 async_enable_stdin in catch block.
15486
f3364a6d
AB
154872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15488
15489 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15490 SWITCH_THRU_ALL_UIS.
15491
733d0a67
AB
154922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15493
15494 PR tui/9765
15495 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15496 comment, add extra parameter, and update to store previous symbol
15497 when appropriate.
15498 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15499 add extra parameter.
15500 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15501 remove unneeded parameter, add try/catch around gdb_print_insn,
15502 rewrite to add items to asm_lines vector.
15503 (tui_find_backward_disassembly_start_address): New function.
15504 (tui_find_disassembly_address): Updated throughout.
15505 (tui_disasm_window::set_contents): Update for changes to
15506 tui_disassemble.
15507 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15508 number of lines to scroll.
15509
b3b3bada
SM
155102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15511
15512 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15513 (SECT_OFF_DATA): Likewise.
15514 (SECT_OFF_RODATA): Likewise.
15515 (SECT_OFF_TEXT): Likewise.
15516 (SECT_OFF_BSS): Likewise.
15517 (struct objfile) <text_section_offset, data_section_offset>: New
15518 methods.
15519 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15520 objfile::text_section_offset.
15521 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15522 * coffread.c (coff_symtab_read): Likewise.
15523 (enter_linenos): Likewise.
15524 (process_coff_symbol): Likewise.
15525 * ctfread.c (get_objfile_text_range): Likewise.
15526 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15527 Use objfile::data_section_offset.
15528 * dwarf2-frame.c (execute_cfa_program): Use
15529 objfile::text_section_offset.
15530 (dwarf2_frame_find_fde): Likewise.
15531 * dwarf2read.c (create_addrmap_from_index): Likewise.
15532 (create_addrmap_from_aranges): Likewise.
15533 (dw2_find_pc_sect_compunit_symtab): Likewise.
15534 (process_psymtab_comp_unit_reader): Likewise.
15535 (add_partial_symbol): Likewise.
15536 (add_partial_subprogram): Likewise.
15537 (process_full_comp_unit): Likewise.
15538 (read_file_scope): Likewise.
15539 (read_func_scope): Likewise.
15540 (read_lexical_block_scope): Likewise.
15541 (read_call_site_scope): Likewise.
15542 (dwarf2_rnglists_process): Likewise.
15543 (dwarf2_ranges_process): Likewise.
15544 (dwarf2_ranges_read): Likewise.
15545 (dwarf_decode_lines_1): Likewise.
15546 (new_symbol): Likewise.
15547 (dwarf2_fetch_die_loc_sect_off): Likewise.
15548 (dwarf2_per_cu_text_offset): Likewise.
15549 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15550 * hppa-tdep.c (read_unwind_info): Likewise.
15551 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15552 * psympriv.h (struct partial_symtab): Likewise.
15553 * psymtab.c (find_pc_sect_psymtab): Likewise.
15554 * solib-svr4.c (enable_break): Likewise.
15555 * stap-probe.c (relocate_address): Use
15556 objfile::data_section_offset.
15557 * xcoffread.c (enter_line_range): Use
15558 objfile::text_section_offset.
15559 (read_xcoff_symtab): Likewise.
15560
ab53f382
SM
155612020-01-23 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15564 declaration to narrower scopes.
15565
e7eee665
SM
155662020-01-23 Simon Marchi <simon.marchi@efficios.com>
15567
15568 * darwin-nat.h (struct darwin_exception_msg, enum
15569 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15570 Move up.
15571 (class darwin_nat_target) <wait_1, check_new_threads,
15572 decode_exception_message, decode_message, stop_inferior,
15573 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15574 * darwin-nat.c (darwin_check_new_threads): Rename to...
15575 (darwin_nat_target::check_new_threads): ... this.
15576 (darwin_suspend_inferior_it): Remove.
15577 (darwin_decode_exception_message): Rename to...
15578 (darwin_nat_target::decode_exception_message): ... this.
15579 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15580 (darwin_decode_message): Rename to...
15581 (darwin_nat_target::decode_message): ... this.
15582 (cancel_breakpoint): Rename to...
15583 (darwin_nat_target::cancel_breakpoint): ... this.
15584 (darwin_wait): Rename to...
15585 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15586 instead of iterate_over_inferiors.
15587 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15588 (darwin_stop_inferior): Rename to...
15589 (darwin_nat_target::stop_inferior): ... this.
15590 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15591 (darwin_init_thread_list): Rename to...
15592 (darwin_nat_target::init_thread_list): ... this.
15593 (darwin_ptrace_him): Rename to...
15594 (darwin_nat_target::ptrace_him): ... this.
15595 (darwin_nat_target::create_inferior): Pass lambda function to
15596 fork_inferior.
15597 (darwin_nat_target::detach): Call stop_inferior instead of
15598 darwin_stop_inferior.
15599 * fork-inferior.h (fork_inferior): Change init_trace_fun
15600 parameter to gdb::function_view.
15601 * fork-inferior.c (fork_inferior): Likewise.
15602
c162ed3e
HD
156032020-01-23 Hannes Domani <ssbssa@yahoo.de>
15604
15605 * i386-cygwin-tdep.c (core_process_module_section): Update.
15606 * windows-nat.c (struct lm_info_windows): Add text_offset.
15607 (windows_xfer_shared_libraries): Update.
15608 * windows-tdep.c (windows_xfer_shared_library):
15609 Add text_offset_cached argument.
15610 * windows-tdep.h (windows_xfer_shared_library): Update.
15611
a1237872
SM
156122020-01-21 Simon Marchi <simon.marchi@efficios.com>
15613
15614 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15615
b3ee6dd9
SM
156162020-01-21 Simon Marchi <simon.marchi@efficios.com>
15617
15618 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15619 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15620 replace with range-based for.
15621 (gdbsim_interrupt_inferior): Remove.
15622 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15623 with a range-based for. Inline code from
15624 gdbsim_interrupt_inferior.
15625
f9fac3c8
SM
156262020-01-21 Simon Marchi <simon.marchi@efficios.com>
15627
15628 * infrun.c (proceed): Fix indentation.
15629
f6474de9
TT
156302020-01-21 Tom Tromey <tromey@adacore.com>
15631
15632 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15633 * python/python.c (python_extension_ops): Update.
15634 (gdbpy_colorize): New function.
15635 * python/lib/gdb/__init__.py (colorize): New function.
15636 * extension.h (ext_lang_colorize): Declare.
15637 * extension.c (ext_lang_colorize): New function.
15638 * extension-priv.h (struct extension_language_ops) <colorize>: New
15639 member.
15640 * cli/cli-style.c (_initialize_cli_style): Update help text.
15641
f0c702d4
LM
156422020-01-21 Luis Machado <luis.machado@linaro.org>
15643
15644 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15645 <cond>: Change type to bool.
15646 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15647 (aarch64_displaced_step_cb): Likewise.
15648 (aarch64_displaced_step_tb): Likewise.
15649
1ab139e5
LM
156502020-01-21 Luis Machado <luis.machado@linaro.org>
15651
15652 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15653 output.
15654
0c271889
LM
156552020-01-21 Luis Machado <luis.machado@linaro.org>
15656
15657 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15658 <pc_adjust>: Adjust the documentation.
15659 (aarch64_displaced_step_fixup): Check if PC really moved before
15660 adjusting it.
15661
4d89c1c7
TT
156622020-01-19 Tom Tromey <tom@tromey.com>
15663
15664 * disasm.c (~gdb_disassembler): New destructor.
15665 (gdb_buffered_insn_length): Call disassemble_free_target.
15666 * disasm.h (class gdb_disassembler): Declare destructor. Use
15667 DISABLE_COPY_AND_ASSIGN.
15668
c0ab21c2
TT
156692020-01-19 Tom Tromey <tom@tromey.com>
15670
15671 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15672 (die_reader_func_ftype): Remove.
15673 (cutu_reader): New class.
15674 (dw2_get_file_names_reader): Remove "data" parameter.
15675 (dw2_get_file_names): Use cutu_reader.
15676 (create_debug_type_hash_table): Update.
15677 (read_cutu_die_from_dwo): Update comment.
15678 (lookup_dwo_unit): Add dwo_name parameter.
15679 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15680 die_reader_func_ftype and data parameters.
15681 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15682 Remove die_reader_func_ftype and data parameters.
15683 (~cutu_reader): New; from init_cutu_and_read_dies.
15684 (cutu_reader::cutu_reader): Rename from
15685 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15686 and data parameters.
15687 (init_cutu_and_read_dies_simple): Remove.
15688 (struct process_psymtab_comp_unit_data): Remove.
15689 (process_psymtab_comp_unit_reader): Remove data parameter; add
15690 want_partial_unit and pretend_language parameters.
15691 (process_psymtab_comp_unit): Use cutu_reader.
15692 (build_type_psymtabs_reader): Remove data parameter.
15693 (build_type_psymtabs_1): Use cutu_reader.
15694 (process_skeletonless_type_unit): Likewise.
15695 (load_partial_comp_unit_reader): Remove.
15696 (load_partial_comp_unit): Use cutu_reader.
15697 (load_full_comp_unit_reader): Remove.
15698 (load_full_comp_unit): Use cutu_reader.
15699 (struct create_dwo_cu_data): Remove.
15700 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15701 dwo_unit parameters.
15702 (create_cus_hash_table): Use cutu_reader.
15703 (struct dwarf2_read_addr_index_data): Remove.
15704 (dwarf2_read_addr_index_reader): Remove.
15705 (dwarf2_read_addr_index): Use cutu_reader.
15706 (read_signatured_type_reader): Remove.
15707 (read_signatured_type): Use cutu_reader.
15708
45bbae5c
TT
157092020-01-19 Tom Tromey <tom@tromey.com>
15710
15711 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15712 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15713 (tui_wrefresh): Declare.
15714 * tui/tui-wingeneral.c (suppress_output): New global.
15715 (tui_suppress_output, ~tui_suppress_output): New constructor and
15716 destructor.
15717 (tui_wrefresh): New function.
15718 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15719 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15720 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15721 method.
15722 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15723 tui_wrefresh.
15724 (tui_data_window::no_refresh): New method.
15725 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15726 (tui_reg_command): Use tui_suppress_output
15727 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15728 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15729 method.
15730 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15731
4f13c1c0
TT
157322020-01-19 Tom Tromey <tom@tromey.com>
15733
15734 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15735 Handle case where symtab is null.
15736
fa47e446
SM
157372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15738
15739 * linux-fork.c (one_fork_p): Simplify.
15740
26f42329
SM
157412020-01-17 Simon Marchi <simon.marchi@efficios.com>
15742
15743 * top.c (struct qt_args): Remove.
15744 (kill_or_detach): Change return type to void, replace `void *`
15745 parameter with a proper one.
15746 (print_inferior_quit_action): Likewise.
15747 (quit_confirm): Use range-based for loop to iterate over inferiors.
15748 (quit_force): Likewise.
15749
a9ac81b1
SM
157502020-01-17 Simon Marchi <simon.marchi@efficios.com>
15751
15752 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15753 `void *` parameter with proper parameters.
15754 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15755 (print_one_inferior): Change return type to void, replace `void *`
15756 parameter with proper parameters.
15757 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15758 inferiors.
15759 (get_other_inferior): Remove.
15760 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15761 inferiors.
15762
788eca49
SM
157632020-01-17 Simon Marchi <simon.marchi@efficios.com>
15764
15765 * mi/mi-interp.c (report_initial_inferior): Remove.
15766 (mi_interp::init): Use range-based for to iterate over inferiors.
15767
d9bc85b6
SM
157682020-01-17 Simon Marchi <simon.marchi@efficios.com>
15769
15770 * python/py-inferior.c (build_inferior_list): Remove.
15771 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15772
40c94099
CB
157732020-01-16 Christian Biesinger <cbiesinger@google.com>
15774
15775 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15776 (btrace_stitch_trace): Likewise.
15777 * charset.c (intermediate_encoding): Likewise (vaild).
15778 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15779 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15780 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15781
e0cdfe3c
HD
157822020-01-16 Hannes Domani <ssbssa@yahoo.de>
15783
15784 * windows-tdep.c (windows_get_tlb_type):
15785 Add rtl_user_process_parameters type.
15786
790f1718 157872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15788 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15789
15790 PR build/24805
15791 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15792 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15793 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15794 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15795 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15796 (ps_plog): Redeclare exported functions with default visibility.
15797
3112ed97
NA
157982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15799
15800 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15801 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15802
8dc3273e
SM
158032020-01-15 Simon Marchi <simon.marchi@efficios.com>
15804
15805 * infcmd.c (post_create_inferior): Use get_thread_regcache
15806 instead of get_current_regcache.
15807
ff47f4f0
TT
158082020-01-14 Tom Tromey <tom@tromey.com>
15809
15810 PR symtab/12535:
15811 * python/python.c (gdbpy_decode_line): Treat empty string the same
15812 as no argument.
15813
975f45b7
TT
158142020-01-14 Tom Tromey <tom@tromey.com>
15815
15816 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15817
25e57356
TT
158182020-01-14 Tom Tromey <tom@tromey.com>
15819
15820 * nat/linux-btrace.c: Don't include <config.h>.
15821 * nat/linux-ptrace.c: Don't include <config.h>.
15822 * nat/x86-linux-dregs.c: Don't include <config.h>.
15823
05ea2a05
TT
158242020-01-14 Tom Tromey <tom@tromey.com>
15825
15826 * configure: Rebuild.
15827 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15828
01027315
TT
158292020-01-14 Tom Tromey <tom@tromey.com>
15830
15831 * nat/x86-linux-dregs.c: Include configh.h.
15832 * nat/linux-ptrace.c: Include configh.h.
15833 * nat/linux-btrace.c: Include configh.h.
15834 * defs.h: Include config.h, bfd.h.
15835 * configure.ac: Don't source common.host.
15836 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15837 * configure: Rebuild.
15838 * acinclude.m4: Update path.
15839 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15840 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15841 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15842 (CLIBS): Add LIBSUPPORT.
15843 (CDEPS): Likewise.
15844 (COMMON_SFILES): Remove gdbsupport files.
15845 (HFILES_NO_SRCDIR): Likewise.
15846 (stamp-version): Update path to create-version.sh.
15847 (ALLDEPFILES): Remove gdbsupport files.
15848
b2ceabe8
TT
158492020-01-14 Tom Tromey <tom@tromey.com>
15850
15851 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15852 USE_WIN32API when needed.
15853 * configure.ac (USE_WIN32API): Don't define.
15854 (WIN32LIBS): Use WIN32APILIBS.
15855 * configure: Rebuild.
15856
25c51f71
TT
158572020-01-14 Tom Tromey <tom@tromey.com>
15858
15859 * configure: Rebuild.
15860 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15861
717c684d
BE
158622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15863
15864 * skip.c (skip_function_command): Make skip w/o arguments use the
15865 name of the inlined function if pc is inside any inlined function.
15866
7da6a5b9
LM
158672020-01-14 Luis Machado <luis.machado@linaro.org>
15868
15869 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15870 * infrun.c (resume_1): Likewise.
15871 (handle_inferior_event): Remove stale comment.
15872 * linux-nat.c (linux_nat_target::resume): Update comments.
15873 (save_stop_reason): Likewise.
15874 (linux_nat_filter_event): Likewise.
15875 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15876
44e4c775
AB
158772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15878
15879 * elfread.c (record_minimal_symbol): Set section index to 0 for
15880 non-allocatable sections.
15881
18a8505e
AT
15882
158832020-01-13 Ali Tamur <tamur@google.com>
15884
15885 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15886 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15887 to gdb::optional. Update comments.
15888 (dwo_file): Update comments.
15889 (read_attribute): Update API to take an additional out parameter,
15890 need_reprocess. This is used to mark attributes that need other
15891 attributes (e.g. str_offsets_base) for correct computation which may not
15892 have been read yet.
15893 (read_attribute_reprocess): New function declaration.
15894 (read_addr_index): Likewise.
15895 (read_dwo_str_index): Likewise.
15896 (read_stub_str_index): Likewise.
15897 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15898 (lookup_addr_base): New function definition.
15899 (lookup_ranges_base): Likewise.
15900 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15901 lookup_ranges_base.
15902 (init_cutu_and_read_dies): Update comments.
15903 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15904 unit. This is used to inherit parent's str_offsets_base and addr_base.
15905 Update comments.
15906 (init_cutu_and_read_dies_simple): Reflect API changes.
15907 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15908 (create_cus_hash_table): Change API to take parent compile unit.
15909 Reflect API changes.
15910 (open_and_init_dwo_file): Reflect API changes.
15911 (dwarf2_get_pc_bounds): Update comments.
15912 (dwarf2_record_block_ranges): Likewise.
15913 (read_full_die_1): Change implementation to reprocess attributes that
15914 need str_offsets_base and addr_base.
15915 (partial_die_info::read): Likewise.
15916 (read_attribute_reprocess): New function definition.
15917 (read_attribute_value): Change API to take an additional out parameter,
15918 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15919 when a non-dwo compile unit has index based attributes.
15920 (read_attribute): Reflect API changes.
15921 (read_addr_index_1): Reflect API changes. Update comments.
15922 (dwarf2_read_addr_index_data): Reflect API changes.
15923 (dwarf2_read_addr_index): Likewise.
15924 (read_str_index): Change API and implementation. This becomes a helper
15925 to be used by the new string index related methods. Update error
15926 message and comments.
15927 (read_dwo_str_index): New function definition.
15928 (read_stub_str_index): Likewise.
15929 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15930 * symfile.h (dwarf2_debug_sections): Likewise.
15931 * xcoffread.c (dwarf2_debug_sections): Likewise.
15932
0cac9354
SM
159332020-01-13 Simon Marchi <simon.marchi@efficios.com>
15934
15935 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15936 core_reg_sect type to gdb_byte *.
15937 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15938 * cris-tdep.c (fetch_core_registers): Likewise.
15939 * corelow.c (core_target::get_core_register_section): Change
15940 type of `contents` to gdb::byte_vector.
15941
9a6d629c
AB
159422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15943
15944 * tui/tui-wingeneral.c (box_win): Position the title in the center
15945 of the border.
15946
d8b2f9e3
SM
159472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15948
15949 * corelow.c (core_target::get_core_register_section): Use
15950 std::vector instead of alloca.
15951
bb564c58
SM
159522020-01-13 Simon Marchi <simon.marchi@efficios.com>
15953
15954 * warning.m4: Add -Wmissing-declarations to build_warnings.
15955 * configure: Re-generate.
15956
6b366111
SM
159572020-01-13 Simon Marchi <simon.marchi@efficios.com>
15958
15959 * python/python.c (init__gdb_module): Add declaration.
15960
6c265988
SM
159612020-01-13 Simon Marchi <simon.marchi@efficios.com>
15962
15963 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15964 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15965 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15966 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15967 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15968 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15969 * ada-exp.y (_initialize_ada_exp): Add declaration.
15970 * ada-lang.c (_initialize_ada_language): Add declaration.
15971 * ada-tasks.c (_initialize_tasks): Add declaration.
15972 * agent.c (_initialize_agent): Add declaration.
15973 * aix-thread.c (_initialize_aix_thread): Add declaration.
15974 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15975 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15976 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15977 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15978 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15979 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15980 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15981 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15982 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15983 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15984 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15985 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15986 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15987 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15988 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15989 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15990 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15991 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15992 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15993 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15994 * annotate.c (_initialize_annotate): Add declaration.
15995 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15996 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15997 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15998 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15999 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16000 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16001 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16002 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16003 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16004 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16005 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16006 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16007 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16008 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16009 * auto-load.c (_initialize_auto_load): Add declaration.
16010 * auxv.c (_initialize_auxv): Add declaration.
16011 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16012 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16013 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16014 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16015 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16016 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16017 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16018 * breakpoint.c (_initialize_breakpoint): Add declaration.
16019 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16020 * btrace.c (_initialize_btrace): Add declaration.
16021 * charset.c (_initialize_charset): Add declaration.
16022 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16023 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16024 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16025 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16026 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16027 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16028 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16029 * coffread.c (_initialize_coffread): Add declaration.
16030 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16031 * compile/compile.c (_initialize_compile): Add declaration.
16032 * complaints.c (_initialize_complaints): Add declaration.
16033 * completer.c (_initialize_completer): Add declaration.
16034 * copying.c (_initialize_copying): Add declaration.
16035 * corefile.c (_initialize_core): Add declaration.
16036 * corelow.c (_initialize_corelow): Add declaration.
16037 * cp-abi.c (_initialize_cp_abi): Add declaration.
16038 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16039 * cp-support.c (_initialize_cp_support): Add declaration.
16040 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16041 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16042 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16043 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16044 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16045 * ctfread.c (_initialize_ctfread): Add declaration.
16046 * d-lang.c (_initialize_d_language): Add declaration.
16047 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16048 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16049 * dbxread.c (_initialize_dbxread): Add declaration.
16050 * dcache.c (_initialize_dcache): Add declaration.
16051 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16052 * disasm.c (_initialize_disasm): Add declaration.
16053 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16054 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16055 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16056 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16057 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16058 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16059 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16060 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16061 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16062 * elfread.c (_initialize_elfread): Add declaration.
16063 * exec.c (_initialize_exec): Add declaration.
16064 * extension.c (_initialize_extension): Add declaration.
16065 * f-lang.c (_initialize_f_language): Add declaration.
16066 * f-valprint.c (_initialize_f_valprint): Add declaration.
16067 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16068 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16069 * filesystem.c (_initialize_filesystem): Add declaration.
16070 * findcmd.c (_initialize_mem_search): Add declaration.
16071 * findvar.c (_initialize_findvar): Add declaration.
16072 * fork-child.c (_initialize_fork_child): Add declaration.
16073 * frame-base.c (_initialize_frame_base): Add declaration.
16074 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16075 * frame.c (_initialize_frame): Add declaration.
16076 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16077 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16078 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16079 * gcore.c (_initialize_gcore): Add declaration.
16080 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16081 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16082 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16083 * gdbarch.c (_initialize_gdbarch): Add declaration.
16084 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16085 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16086 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16087 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16088 * go-lang.c (_initialize_go_language): Add declaration.
16089 * go32-nat.c (_initialize_go32_nat): Add declaration.
16090 * guile/guile.c (_initialize_guile): Add declaration.
16091 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16092 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16093 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16094 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16095 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16096 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16097 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16098 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16099 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16100 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16101 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16102 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16103 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16104 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16105 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16106 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16107 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16108 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16109 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16110 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16111 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16112 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16113 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16114 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16115 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16116 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16117 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16118 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16119 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16120 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16121 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16122 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16123 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16124 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16125 * infcall.c (_initialize_infcall): Add declaration.
16126 * infcmd.c (_initialize_infcmd): Add declaration.
16127 * inflow.c (_initialize_inflow): Add declaration.
16128 * infrun.c (_initialize_infrun): Add declaration.
16129 * interps.c (_initialize_interpreter): Add declaration.
16130 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16131 * jit.c (_initialize_jit): Add declaration.
16132 * language.c (_initialize_language): Add declaration.
16133 * linux-fork.c (_initialize_linux_fork): Add declaration.
16134 * linux-nat.c (_initialize_linux_nat): Add declaration.
16135 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16136 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16137 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16138 * m2-lang.c (_initialize_m2_language): Add declaration.
16139 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16140 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16141 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16142 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16143 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16144 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16145 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16146 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16147 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16148 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16149 * machoread.c (_initialize_machoread): Add declaration.
16150 * macrocmd.c (_initialize_macrocmd): Add declaration.
16151 * macroscope.c (_initialize_macroscope): Add declaration.
16152 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16153 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16154 * maint.c (_initialize_maint_cmds): Add declaration.
16155 * mdebugread.c (_initialize_mdebugread): Add declaration.
16156 * memattr.c (_initialize_mem): Add declaration.
16157 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16158 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16159 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16160 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16161 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16162 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16163 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16164 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16165 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16166 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16167 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16168 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16169 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16170 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16171 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16172 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16173 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16174 * mipsread.c (_initialize_mipsread): Add declaration.
16175 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16176 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16177 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16178 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16179 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16180 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16181 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16182 * nto-procfs.c (_initialize_procfs): Add declaration.
16183 * objc-lang.c (_initialize_objc_language): Add declaration.
16184 * observable.c (_initialize_observer): Add declaration.
16185 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16186 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16187 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16188 * osabi.c (_initialize_gdb_osabi): Add declaration.
16189 * osdata.c (_initialize_osdata): Add declaration.
16190 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16191 * parse.c (_initialize_parse): Add declaration.
16192 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16193 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16194 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16195 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16196 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16197 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16198 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16199 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16200 * printcmd.c (_initialize_printcmd): Add declaration.
16201 * probe.c (_initialize_probe): Add declaration.
16202 * proc-api.c (_initialize_proc_api): Add declaration.
16203 * proc-events.c (_initialize_proc_events): Add declaration.
16204 * proc-service.c (_initialize_proc_service): Add declaration.
16205 * procfs.c (_initialize_procfs): Add declaration.
16206 * producer.c (_initialize_producer): Add declaration.
16207 * psymtab.c (_initialize_psymtab): Add declaration.
16208 * python/python.c (_initialize_python): Add declaration.
16209 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16210 * record-btrace.c (_initialize_record_btrace): Add declaration.
16211 * record-full.c (_initialize_record_full): Add declaration.
16212 * record.c (_initialize_record): Add declaration.
16213 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16214 * regcache.c (_initialize_regcache): Add declaration.
16215 * reggroups.c (_initialize_reggroup): Add declaration.
16216 * remote-notif.c (_initialize_notif): Add declaration.
16217 * remote-sim.c (_initialize_remote_sim): Add declaration.
16218 * remote.c (_initialize_remote): Add declaration.
16219 * reverse.c (_initialize_reverse): Add declaration.
16220 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16221 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16222 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16223 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16224 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16225 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16226 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16227 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16228 Add declaration.
16229 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16230 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16231 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16232 * rust-exp.y (_initialize_rust_exp): Add declaration.
16233 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16234 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16235 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16236 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16237 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16238 * score-tdep.c (_initialize_score_tdep): Add declaration.
16239 * ser-go32.c (_initialize_ser_dos): Add declaration.
16240 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16241 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16242 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16243 * ser-uds.c (_initialize_ser_socket): Add declaration.
16244 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16245 * serial.c (_initialize_serial): Add declaration.
16246 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16247 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16248 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16249 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16250 * skip.c (_initialize_step_skip): Add declaration.
16251 * sol-thread.c (_initialize_sol_thread): Add declaration.
16252 * solib-aix.c (_initialize_solib_aix): Add declaration.
16253 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16254 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16255 * solib-frv.c (_initialize_frv_solib): Add declaration.
16256 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16257 * solib-target.c (_initialize_solib_target): Add declaration.
16258 * solib.c (_initialize_solib): Add declaration.
16259 * source-cache.c (_initialize_source_cache): Add declaration.
16260 * source.c (_initialize_source): Add declaration.
16261 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16262 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16263 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16264 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16265 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16266 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16267 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16268 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16269 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16270 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16271 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16272 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16273 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16274 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16275 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16276 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16277 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16278 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16279 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16280 * stabsread.c (_initialize_stabsread): Add declaration.
16281 * stack.c (_initialize_stack): Add declaration.
16282 * stap-probe.c (_initialize_stap_probe): Add declaration.
16283 * std-regs.c (_initialize_frame_reg): Add declaration.
16284 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16285 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16286 * symfile.c (_initialize_symfile): Add declaration.
16287 * symmisc.c (_initialize_symmisc): Add declaration.
16288 * symtab.c (_initialize_symtab): Add declaration.
16289 * target.c (_initialize_target): Add declaration.
16290 * target-connection.c (_initialize_target_connection): Add
16291 declaration.
16292 * target-dcache.c (_initialize_target_dcache): Add declaration.
16293 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16294 * thread.c (_initialize_thread): Add declaration.
16295 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16296 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16297 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16298 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16299 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16300 * tracectf.c (_initialize_ctf): Add declaration.
16301 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16302 * tracefile.c (_initialize_tracefile): Add declaration.
16303 * tracepoint.c (_initialize_tracepoint): Add declaration.
16304 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16305 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16306 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16307 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16308 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16309 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16310 * tui/tui.c (_initialize_tui): Add declaration.
16311 * typeprint.c (_initialize_typeprint): Add declaration.
16312 * ui-style.c (_initialize_ui_style): Add declaration.
16313 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16314 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16315 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16316 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16317 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16318 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16319 * unittests/filtered_iterator-selftests.c
16320 (_initialize_filtered_iterator_selftests): Add declaration.
16321 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16322 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16323 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16324 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16325 * unittests/main-thread-selftests.c
16326 (_initialize_main_thread_selftests): Add declaration.
16327 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16328 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16329 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16330 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16331 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16332 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16333 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16334 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16335 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16336 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16337 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16338 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16339 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16340 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16341 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16342 declaration.
16343 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16344 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16345 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16346 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16347 * user-regs.c (_initialize_user_regs): Add declaration.
16348 * utils.c (_initialize_utils): Add declaration.
16349 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16350 * valops.c (_initialize_valops): Add declaration.
16351 * valprint.c (_initialize_valprint): Add declaration.
16352 * value.c (_initialize_values): Add declaration.
16353 * varobj.c (_initialize_varobj): Add declaration.
16354 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16355 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16356 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16357 * windows-nat.c (_initialize_windows_nat): Add declaration.
16358 (_initialize_check_for_gdb_ini): Add declaration.
16359 (_initialize_loadable): Add declaration.
16360 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16361 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16362 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16363 * xcoffread.c (_initialize_xcoffread): Add declaration.
16364 * xml-support.c (_initialize_xml_support): Add declaration.
16365 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16366 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16367 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16368 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16369
e2de1eec
SM
163702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16371
16372 * regformats/regdat.sh: Generate declaration for init function.
16373
e0037b4c
SM
163742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16375
16376 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16377 up.
16378 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16379 close_one_inferior>: New methods.
16380 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16381 pass down target to find_inferior_pid.
16382 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16383 Pass down target to find_inferior_ptid.
16384 (gdbsim_target::create_inferior): Pass down target to
16385 add_thread_silent.
16386 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16387 target down to find_inferior_ptid and switch_to_thread.
16388 (gdbsim_target::close): Update to call close_one_inferior.
16389 (struct resume_data): Remove.
16390 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16391 directly, rather than through a void pointer.
16392 (gdbsim_target::resume): Update to call resume_one_inferior.
16393
58920b5b
SM
163942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16395
16396 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16397
4ec89149
PA
163982020-01-12 Pedro Alves <palves@redhat.com>
16399
16400 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16401 directly for the current inferior instead of
16402 discard_all_inferiors.
16403 (discard_all_inferiors): Delete.
16404
7c392d1d
TT
164052020-01-11 Tom Tromey <tom@tromey.com>
16406
16407 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16408 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16409 deprecated_safe_get_selected_frame.
16410
d9ebdab7
TBA
164112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16412
16413 * inferior.c (print_inferior): Switch inferior before printing it.
16414
f3c469b9
PA
164152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16416 Pedro Alves <palves@redhat.com>
16417
16418 * progspace-and-thread.c (switch_to_program_space_and_thread):
16419 Assert there's an inferior for PSPACE. Use
16420 switch_to_inferior_no_thread to switch the inferior too.
16421 * progspace.c (program_space::~program_space): Call
16422 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16423 (program_space::free_all_objfiles): Don't call clear_symtab_users
16424 here.
16425 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16426
65c574f6
PA
164272020-01-10 Pedro Alves <palves@redhat.com>
16428
16429 * NEWS: Mention multi-target debugging, "info connections", and
16430 "add-inferior -no-connection".
16431
2f4fcf00
PA
164322020-01-10 Pedro Alves <palves@redhat.com>
16433
16434 * infrun.c: Include "target-connection.h".
16435 (check_multi_target_resumption): New.
16436 (proceed): Call it.
16437 * target-connection.c (make_target_connection_string): Make
16438 extern.
16439 * target-connection.h (make_target_connection_string): Declare.
16440
121b3efd
PA
164412020-01-10 Pedro Alves <palves@redhat.com>
16442
16443 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16444 * inferior.c (uiout_field_connection): New function.
16445 (print_inferior): Add new "connection-id" column.
16446 (add_inferior_command): Show connection number/string of added
16447 inferior.
16448 * process-stratum-target.h
16449 (process_stratum_target::connection_string): New virtual method.
16450 (process_stratum_target::connection_number): New field.
16451 * remote.c (remote_target::connection_string): New override.
16452 * target-connection.c: New file.
16453 * target-connection.h: New file.
16454 * target.c (decref_target): Remove process_stratum targets from
16455 the connection list.
16456 (target_stack::push): Add process_stratum targets to the
16457 connection list.
16458
4f837581
PA
164592020-01-10 Pedro Alves <palves@redhat.com>
16460
16461 Revert:
16462 2016-04-12 Pedro Alves <palves@redhat.com>
16463 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16464 Remove references to name.
16465 * serial.h (struct serial) <name>: Delete.
16466
f4ec508e
PA
164672020-01-10 Pedro Alves <palves@redhat.com>
16468
16469 * gdbarch-selftests.c (register_to_value_test): Remove "target
16470 already pushed" check.
16471
5b6d1e4f
PA
164722020-01-10 Pedro Alves <palves@redhat.com>
16473 John Baldwin <jhb@FreeBSD.org>
16474
16475 * aarch64-linux-nat.c
16476 (aarch64_linux_nat_target::thread_architecture): Adjust.
16477 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16478 (task_command_1): Likewise.
16479 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16480 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16481 (aix_thread_target::store_registers)
16482 (aix_thread_target::thread_alive): Adjust.
16483 * amd64-fbsd-tdep.c: Include "inferior.h".
16484 (amd64fbsd_get_thread_local_address): Pass down target.
16485 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16486 thread's gdbarch instead of target_gdbarch.
16487 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16488 get_last_target_status.
16489 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16490 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16491 inferiors.
16492 (update_inserted_breakpoint_locations): Skip if inferiors with no
16493 execution.
16494 (update_global_location_list): When handling moribund locations,
16495 find representative inferior for location's pspace, and use thread
16496 count of its process_stratum target.
16497 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16498 * bsd-uthread.c (bsd_uthread_target::wait): Use
16499 as_process_stratum_target and adjust thread_change_ptid and
16500 add_thread calls.
16501 (bsd_uthread_target::update_thread_list): Use
16502 as_process_stratum_target and adjust find_thread_ptid,
16503 thread_change_ptid and add_thread calls.
16504 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16505 find_thread_ptid call.
16506 * corelow.c (add_to_thread_list): Adjust add_thread call.
16507 (core_target_open): Adjust add_thread_silent and thread_count
16508 calls.
16509 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16510 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16511 * event-top.c (async_disconnect): Pop targets from all inferiors.
16512 * exec.c (add_target_sections): Push exec target on all inferiors
16513 sharing the program space.
16514 (remove_target_sections): Remove the exec target from all
16515 inferiors sharing the program space.
16516 (exec_on_vfork): New.
16517 * exec.h (exec_on_vfork): Declare.
16518 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16519 Pass it down.
16520 (fbsd_nat_target::update_thread_list): Adjust.
16521 (fbsd_nat_target::resume): Adjust.
16522 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16523 down.
16524 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16525 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16526 get_thread_arch_regcache call.
16527 * fork-child.c (gdb_startup_inferior): Pass target down to
16528 startup_inferior and set_executing.
16529 * gdbthread.h (struct process_stratum_target): Forward declare.
16530 (add_thread, add_thread_silent, add_thread_with_info)
16531 (in_thread_list): Add process_stratum_target parameter.
16532 (find_thread_ptid(inferior*, ptid_t)): New overload.
16533 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16534 parameter.
16535 (all_threads()): Delete overload.
16536 (all_threads, all_non_exited_threads): Add process_stratum_target
16537 parameter.
16538 (all_threads_safe): Use brace initialization.
16539 (thread_count): Add process_stratum_target parameter.
16540 (set_resumed, set_running, set_stop_requested, set_executing)
16541 (threads_are_executing, finish_thread_state): Add
16542 process_stratum_target parameter.
16543 (switch_to_thread): Use is_current_thread.
16544 * i386-fbsd-tdep.c: Include "inferior.h".
16545 (i386fbsd_get_thread_local_address): Pass down target.
16546 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16547 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16548 have_inferiors check.
16549 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16550 (inf_ptrace_target::attach): Adjust.
16551 * infcall.c (run_inferior_call): Adjust.
16552 * infcmd.c (run_command_1): Pass target to
16553 scoped_finish_thread_state.
16554 (proceed_thread_callback): Skip inferiors with no execution.
16555 (continue_command): Rename 'all_threads' local to avoid hiding
16556 'all_threads' function. Adjust get_last_target_status call.
16557 (prepare_one_step): Adjust set_running call.
16558 (signal_command): Use user_visible_resume_target. Compare thread
16559 pointers instead of inferior_ptid.
16560 (info_program_command): Adjust to pass down target.
16561 (attach_command): Mark target's 'thread_executing' flag.
16562 (stop_current_target_threads_ns): New, factored out from ...
16563 (interrupt_target_1): ... this. Switch inferior before making
16564 target calls.
16565 * inferior-iter.h
16566 (struct all_inferiors_iterator, struct all_inferiors_range)
16567 (struct all_inferiors_safe_range)
16568 (struct all_non_exited_inferiors_range): Filter on
16569 process_stratum_target too. Remove explicit.
16570 * inferior.c (inferior::inferior): Push dummy target on target
16571 stack.
16572 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16573 Add process_stratum_target parameter, and pass it down.
16574 (have_live_inferiors): Adjust.
16575 (switch_to_inferior_and_push_target): New.
16576 (add_inferior_command, clone_inferior_command): Handle
16577 "-no-connection" parameter. Use
16578 switch_to_inferior_and_push_target.
16579 (_initialize_inferior): Mention "-no-connection" option in
16580 the help of "add-inferior" and "clone-inferior" commands.
16581 * inferior.h: Include "process-stratum-target.h".
16582 (interrupt_target_1): Use bool.
16583 (struct inferior) <push_target, unpush_target, target_is_pushed,
16584 find_target_beneath, top_target, process_target, target_at,
16585 m_stack>: New.
16586 (discard_all_inferiors): Delete.
16587 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16588 (all_inferiors, all_non_exited_inferiors): Add
16589 process_stratum_target parameter.
16590 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16591 (target_last_proc_target): New global.
16592 (follow_fork_inferior): Push target on new inferior. Pass target
16593 to add_thread_silent. Call exec_on_vfork. Handle target's
16594 reference count.
16595 (follow_fork): Adjust get_last_target_status call. Also consider
16596 target.
16597 (follow_exec): Push target on new inferior.
16598 (struct execution_control_state) <target>: New field.
16599 (user_visible_resume_target): New.
16600 (do_target_resume): Call target_async.
16601 (resume_1): Set target's threads_executing flag. Consider resume
16602 target.
16603 (commit_resume_all_targets): New.
16604 (proceed): Also consider resume target. Skip threads of inferiors
16605 with no execution. Commit resumtion in all targets.
16606 (start_remote): Pass current inferior to wait_for_inferior.
16607 (infrun_thread_stop_requested): Consider target as well. Pass
16608 thread_info pointer to clear_inline_frame_state instead of ptid.
16609 (infrun_thread_thread_exit): Consider target as well.
16610 (random_pending_event_thread): New inferior parameter. Use it.
16611 (do_target_wait): Rename to ...
16612 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16613 down.
16614 (threads_are_resumed_pending_p, do_target_wait): New.
16615 (prepare_for_detach): Adjust calls.
16616 (wait_for_inferior): New inferior parameter. Handle it. Use
16617 do_target_wait_1 instead of do_target_wait.
16618 (fetch_inferior_event): Adjust. Switch to representative
16619 inferior. Pass target down.
16620 (set_last_target_status): Add process_stratum_target parameter.
16621 Save target in global.
16622 (get_last_target_status): Add process_stratum_target parameter and
16623 handle it.
16624 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16625 (context_switch): Check inferior_ptid == null_ptid before calling
16626 inferior_thread().
16627 (get_inferior_stop_soon): Pass down target.
16628 (wait_one): Rename to ...
16629 (poll_one_curr_target): ... this.
16630 (struct wait_one_event): New.
16631 (wait_one): New.
16632 (stop_all_threads): Adjust.
16633 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16634 event's target.
16635 (switch_back_to_stepped_thread): Also consider target.
16636 (print_stop_event): Update.
16637 (normal_stop): Update. Also consider the resume target.
16638 * infrun.h (wait_for_inferior): Remove declaration.
16639 (user_visible_resume_target): New declaration.
16640 (get_last_target_status, set_last_target_status): New
16641 process_stratum_target parameter.
16642 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16643 process_stratum_target parameter, and use it.
16644 (clear_inline_frame_state (thread_info*)): New.
16645 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16646 process_stratum_target parameter.
16647 (clear_inline_frame_state (thread_info*)): Declare.
16648 * linux-fork.c (delete_checkpoint_command): Pass target down to
16649 find_thread_ptid.
16650 (checkpoint_command): Adjust.
16651 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16652 instead of just tweaking inferior_ptid.
16653 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16654 (exit_lwp): Pass target down to find_thread_ptid.
16655 (attach_proc_task_lwp_callback): Pass target down to
16656 add_thread/set_running/set_executing.
16657 (linux_nat_target::attach): Pass target down to
16658 thread_change_ptid.
16659 (get_detach_signal): Pass target down to find_thread_ptid.
16660 Consider last target status's target.
16661 (linux_resume_one_lwp_throw, resume_lwp)
16662 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16663 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16664 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16665 (linux_nat_target::async_wait_fd): New.
16666 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16667 target down.
16668 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16669 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16670 * linux-thread-db.c (struct thread_db_info::process_target): New
16671 field.
16672 (add_thread_db_info): Save target.
16673 (get_thread_db_info): New process_stratum_target parameter. Also
16674 match target.
16675 (delete_thread_db_info): New process_stratum_target parameter.
16676 Also match target.
16677 (thread_from_lwp): Adjust to pass down target.
16678 (thread_db_notice_clone): Pass down target.
16679 (check_thread_db_callback): Pass down target.
16680 (try_thread_db_load_1): Always push the thread_db target.
16681 (try_thread_db_load, record_thread): Pass target down.
16682 (thread_db_target::detach): Pass target down. Always unpush the
16683 thread_db target.
16684 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16685 target down. Always unpush the thread_db target.
16686 (find_new_threads_callback, thread_db_find_new_threads_2)
16687 (thread_db_target::update_thread_list): Pass target down.
16688 (thread_db_target::pid_to_str): Pass current inferior down.
16689 (thread_db_target::get_thread_local_address): Pass target down.
16690 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16691 target down.
16692 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16693 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16694 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16695 (procfs_init_inferior): Rename to ...
16696 (procfs_target::procfs_init_inferior): ... this and adjust.
16697 (procfs_target::create_inferior, procfs_notice_thread)
16698 (procfs_do_thread_registers): Adjust.
16699 * ppc-fbsd-tdep.c: Include "inferior.h".
16700 (ppcfbsd_get_thread_local_address): Pass down target.
16701 * proc-service.c (ps_xfer_memory): Switch current inferior and
16702 program space as well.
16703 (get_ps_regcache): Pass target down.
16704 * process-stratum-target.c
16705 (process_stratum_target::thread_address_space)
16706 (process_stratum_target::thread_architecture): Pass target down.
16707 * process-stratum-target.h
16708 (process_stratum_target::threads_executing): New field.
16709 (as_process_stratum_target): New.
16710 * ravenscar-thread.c
16711 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16712 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16713 down.
16714 * record-btrace.c (record_btrace_target::info_record): Adjust.
16715 (record_btrace_target::record_method)
16716 (record_btrace_target::record_is_replaying)
16717 (record_btrace_target::fetch_registers)
16718 (get_thread_current_frame_id, record_btrace_target::resume)
16719 (record_btrace_target::wait, record_btrace_target::stop): Pass
16720 target down.
16721 * record-full.c (record_full_wait_1): Switch to event thread.
16722 Pass target down.
16723 * regcache.c (regcache::regcache)
16724 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16725 process_stratum_target parameter and handle it.
16726 (current_thread_target): New global.
16727 (get_thread_regcache): Add process_stratum_target parameter and
16728 handle it. Switch inferior before calling target method.
16729 (get_thread_regcache): Pass target down.
16730 (get_thread_regcache_for_ptid): Pass target down.
16731 (registers_changed_ptid): Add process_stratum_target parameter and
16732 handle it.
16733 (registers_changed_thread, registers_changed): Pass target down.
16734 (test_get_thread_arch_aspace_regcache): New.
16735 (current_regcache_test): Define a couple local test_target_ops
16736 instances and use them for testing.
16737 (readwrite_regcache): Pass process_stratum_target parameter.
16738 (cooked_read_test, cooked_write_test): Pass mock_target down.
16739 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16740 (get_thread_arch_aspace_regcache): Add process_stratum_target
16741 parameter.
16742 (regcache::target): New method.
16743 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16744 (regcache::registers_changed_ptid): Add process_stratum_target
16745 parameter.
16746 (regcache::m_target): New field.
16747 (registers_changed_ptid): Add process_stratum_target parameter.
16748 * remote.c (remote_state::supports_vCont_probed): New field.
16749 (remote_target::async_wait_fd): New method.
16750 (remote_unpush_and_throw): Add remote_target parameter.
16751 (get_current_remote_target): Adjust.
16752 (remote_target::remote_add_inferior): Push target.
16753 (remote_target::remote_add_thread)
16754 (remote_target::remote_notice_new_inferior)
16755 (get_remote_thread_info): Pass target down.
16756 (remote_target::update_thread_list): Skip threads of inferiors
16757 bound to other targets. (remote_target::close): Don't discard
16758 inferiors. (remote_target::add_current_inferior_and_thread)
16759 (remote_target::process_initial_stop_replies)
16760 (remote_target::start_remote)
16761 (remote_target::remote_serial_quit_handler): Pass down target.
16762 (remote_target::remote_unpush_target): New remote_target
16763 parameter. Unpush the target from all inferiors.
16764 (remote_target::remote_unpush_and_throw): New remote_target
16765 parameter. Pass it down.
16766 (remote_target::open_1): Check whether the current inferior has
16767 execution instead of checking whether any inferior is live. Pass
16768 target down.
16769 (remote_target::remote_detach_1): Pass down target. Use
16770 remote_unpush_target.
16771 (extended_remote_target::attach): Pass down target.
16772 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16773 (remote_target::append_resumption): Pass down target.
16774 (remote_target::append_pending_thread_resumptions)
16775 (remote_target::remote_resume_with_hc, remote_target::resume)
16776 (remote_target::commit_resume): Pass down target.
16777 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16778 (remote_target::interrupt_query)
16779 (remote_target::remove_new_fork_children)
16780 (remote_target::check_pending_events_prevent_wildcard_vcont)
16781 (remote_target::remote_parse_stop_reply)
16782 (remote_target::process_stop_reply): Pass down target.
16783 (first_remote_resumed_thread): New remote_target parameter. Pass
16784 it down.
16785 (remote_target::wait_as): Pass down target.
16786 (unpush_and_perror): New remote_target parameter. Pass it down.
16787 (remote_target::readchar, remote_target::remote_serial_write)
16788 (remote_target::getpkt_or_notif_sane_1)
16789 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16790 down target.
16791 (remote_target::mourn_inferior): Pass down target. Use
16792 remote_unpush_target.
16793 (remote_target::core_of_thread)
16794 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16795 (remote_target::pid_to_exec_file)
16796 (remote_target::thread_handle_to_thread_info): Pass down target.
16797 (remote_target::async_wait_fd): New.
16798 * riscv-fbsd-tdep.c: Include "inferior.h".
16799 (riscv_fbsd_get_thread_local_address): Pass down target.
16800 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16801 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16802 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16803 Adjust.
16804 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16805 * solib-svr4.c (enable_break): Pass down target.
16806 * spu-multiarch.c (parse_spufs_run): Pass down target.
16807 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16808 * target-delegates.c: Regenerate.
16809 * target.c (g_target_stack): Delete.
16810 (current_top_target): Return the current inferior's top target.
16811 (target_has_execution_1): Refer to the passed-in inferior's top
16812 target.
16813 (target_supports_terminal_ours): Check whether the initial
16814 inferior was already created.
16815 (decref_target): New.
16816 (target_stack::push): Incref/decref the target.
16817 (push_target, push_target, unpush_target): Adjust.
16818 (target_stack::unpush): Defref target.
16819 (target_is_pushed): Return bool. Adjust to refer to the current
16820 inferior's target stack.
16821 (dispose_inferior): Delete, and inline parts ...
16822 (target_preopen): ... here. Only dispose of the current inferior.
16823 (target_detach): Hold strong target reference while detaching.
16824 Pass target down.
16825 (target_thread_name): Add assertion.
16826 (target_resume): Pass down target.
16827 (target_ops::beneath, find_target_at): Adjust to refer to the
16828 current inferior's target stack.
16829 (get_dummy_target): New.
16830 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16831 has a thread running.
16832 (initialize_targets): Rename to ...
16833 (_initialize_target): ... this.
16834 * target.h: Include "gdbsupport/refcounted-object.h".
16835 (struct target_ops): Inherit refcounted_object.
16836 (target_ops::shortname, target_ops::longname): Make const.
16837 (target_ops::async_wait_fd): New method.
16838 (decref_target): Declare.
16839 (struct target_ops_ref_policy): New.
16840 (target_ops_ref): New typedef.
16841 (get_dummy_target): Declare function.
16842 (target_is_pushed): Return bool.
16843 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16844 (all_matching_threads_iterator::all_matching_threads_iterator):
16845 Handle filter target.
16846 * thread-iter.h (struct all_matching_threads_iterator, struct
16847 all_matching_threads_range, class all_non_exited_threads_range):
16848 Filter by target too. Remove explicit.
16849 * thread.c (threads_executing): Delete.
16850 (inferior_thread): Pass down current inferior.
16851 (clear_thread_inferior_resources): Pass down thread pointer
16852 instead of ptid_t.
16853 (add_thread_silent, add_thread_with_info, add_thread): Add
16854 process_stratum_target parameter. Use it for thread and inferior
16855 searches.
16856 (is_current_thread): New.
16857 (thread_info::deletable): Use it.
16858 (find_thread_ptid, thread_count, in_thread_list)
16859 (thread_change_ptid, set_resumed, set_running): New
16860 process_stratum_target parameter. Pass it down.
16861 (set_executing): New process_stratum_target parameter. Pass it
16862 down. Adjust reference to 'threads_executing'.
16863 (threads_are_executing): New process_stratum_target parameter.
16864 Adjust reference to 'threads_executing'.
16865 (set_stop_requested, finish_thread_state): New
16866 process_stratum_target parameter. Pass it down.
16867 (switch_to_thread): Also match inferior.
16868 (switch_to_thread): New process_stratum_target parameter. Pass it
16869 down.
16870 (update_threads_executing): Reimplement.
16871 * top.c (quit_force): Pop targets from all inferior.
16872 (gdb_init): Don't call initialize_targets.
16873 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16874 Declare.
16875 (windows_add_thread, windows_delete_thread): Adjust.
16876 (get_windows_debug_event): Rename to ...
16877 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16878 * tracefile-tfile.c (tfile_target_open): Pass down target.
16879 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16880 Forward declare.
16881 (switch_to_thread): Add process_stratum_target parameter.
16882 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16883 parameter. Use it.
16884 (mi_on_resume): Pass target down.
16885 * nat/fork-inferior.c (startup_inferior): Add
16886 process_stratum_target parameter. Pass it down.
16887 * nat/fork-inferior.h (startup_inferior): Add
16888 process_stratum_target parameter.
16889 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16890
75c6c844
PA
168912020-01-10 Pedro Alves <palves@redhat.com>
16892
16893 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16894 directly. Instead find the first thread in the thread list and
16895 use switch_to_thread.
16896
78f2c40a
PA
168972020-01-10 Pedro Alves <palves@redhat.com>
16898
16899 * remote.c (remote_target::remote_add_inferior): Don't bind a
16900 process to the current inferior if the current inferior is already
16901 bound to a process.
16902
e7af6c70
TBA
169032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16904 Pedro Alves <palves@redhat.com>
16905
16906 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16907 If no process is specified, return null_ptid instead of
16908 inferior_ptid.
16909 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16910 TARGET_WAITKIND_SIGNALLED with no pid.
16911
31ba933e
PA
169122020-01-10 Pedro Alves <palves@redhat.com>
16913
16914 * remote.c (first_remote_resumed_thread): New.
16915 (remote_target::wait_as): Use it as default event_ptid instead of
16916 inferior_ptid.
16917
735fc2ca
PA
169182020-01-10 Pedro Alves <palves@redhat.com>
16919
16920 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16921
c17e02e1
PA
169222020-01-10 Pedro Alves <palves@redhat.com>
16923
16924 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16925 not -1.
16926
ab1ddbcf
PA
169272020-01-10 Pedro Alves <palves@redhat.com>
16928
16929 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16930 ptid to get_last_target_status.
16931 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16932 ptid to get_last_target_status.
16933 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16934 get_last_target_status.
16935 (info_program_command): Don't pass a target_waitstatus to
16936 get_last_target_status.
16937 * infrun.c (init_wait_for_inferior): Use
16938 nullify_last_target_wait_ptid.
16939 (get_last_target_status): Handle nullptr arguments.
16940 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16941 (print_stop_event): Don't pass a ptid to get_last_target_status.
16942 (normal_stop): Don't pass a ptid to get_last_target_status.
16943 * infrun.h (get_last_target_status, set_last_target_status): Move
16944 comments here and update.
16945 (nullify_last_target_wait_ptid): Declare.
16946 * linux-fork.c (fork_load_infrun_state): Remove local extern
16947 declaration of nullify_last_target_wait_ptid.
16948 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16949 to get_last_target_status.
16950
f3f8ece4
PA
169512020-01-10 Pedro Alves <palves@redhat.com>
16952
16953 * gdbthread.h (scoped_restore_current_thread)
16954 <dont_restore, restore, m_dont_restore>: Declare.
16955 * thread.c (thread_alive): Add assertion. Return bool.
16956 (switch_to_thread_if_alive): New.
16957 (prune_threads): Switch inferior/thread.
16958 (print_thread_info_1): Switch thread before calling target methods.
16959 (scoped_restore_current_thread::restore): New, factored out from
16960 ...
16961 (scoped_restore_current_thread::~scoped_restore_current_thread):
16962 ... this.
16963 (scoped_restore_current_thread::scoped_restore_current_thread):
16964 Add assertion.
16965 (thread_apply_all_command, thread_select): Use
16966 switch_to_thread_if_alive.
16967 * infrun.c (proceed, restart_threads, handle_signal_stop)
16968 (switch_back_to_stepped_thread): Switch current thread before
16969 calling target methods.
16970
db2d40f7
PA
169712020-01-10 Pedro Alves <palves@redhat.com>
16972
16973 * inferior.c (switch_to_inferior_no_thread): New function,
16974 factored out from ...
16975 (inferior_command): ... here.
16976 * inferior.h (switch_to_inferior_no_thread): Declare.
16977 * mi/mi-main.c (run_one_inferior): Use
16978 switch_to_inferior_no_thread.
16979
bd420a2d
PA
169802020-01-10 Pedro Alves <palves@redhat.com>
16981
16982 * infcmd.c (kill_command): Remove dead code.
16983
ddf5db90
PA
169842020-01-10 Pedro Alves <palves@redhat.com>
16985
16986 * remote.c (remote_target::mourn_inferior): No longer check
16987 whether the target is running.
16988
5018ce90
PA
169892020-01-10 Pedro Alves <palves@redhat.com>
16990
16991 * corelow.c (core_target::has_execution): Change parameter type to
16992 inferior pointer.
16993 * inferior.c (number_of_live_inferiors): Use
16994 inferior::has_execution instead of target_has_execution_1.
16995 * inferior.h (inferior::has_execution): New.
16996 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16997 inferior::has_execution instead of target_has_execution_1.
16998 * process-stratum-target.c
16999 (process_stratum_target::has_execution): Change parameter type to
17000 inferior pointer. Check the inferior's PID instead of
17001 inferior_ptid.
17002 * process-stratum-target.h
17003 (process_stratum_target::has_execution): Change parameter type to
17004 inferior pointer.
17005 * record-full.c (record_full_core_target::has_execution): Change
17006 parameter type to inferior pointer.
17007 * target.c (target_has_execution_1): Change parameter type to
17008 inferior pointer.
17009 (target_has_execution_current): Adjust.
17010 * target.h (target_ops::has_execution): Change parameter type to
17011 inferior pointer.
17012 (target_has_execution_1): Change parameter type to inferior
17013 pointer. Change return type to bool.
17014 * tracefile.h (tracefile_target::has_execution): Change parameter
17015 type to inferior pointer.
17016
74375d18
PA
170172020-01-10 Pedro Alves <palves@redhat.com>
17018
17019 * exceptions.c (print_flush): Remove current_top_target() check.
17020
acdf84a6
PA
170212020-01-10 Pedro Alves <palves@redhat.com>
17022
17023 * remote.c (show_remote_exec_file): Show the current inferior's
17024 exec-file instead of the command variable's value.
17025
ec506636
PA
170262020-01-10 Pedro Alves <palves@redhat.com>
17027
17028 * record-full.c (record_full_resume_ptid): New global.
17029 (record_full_target::resume): Set it.
17030 (record_full_wait_1): Use record_full_resume_ptid instead of
17031 inferior_ptid.
17032
873657b9
PA
170332020-01-10 Pedro Alves <palves@redhat.com>
17034
17035 * gdbthread.h (scoped_restore_current_thread)
17036 <dont_restore, restore, m_dont_restore>: Declare.
17037 * thread.c (thread_alive): Add assertion. Return bool.
17038 (switch_to_thread_if_alive): New.
17039 (prune_threads): Switch inferior/thread.
17040 (print_thread_info_1): Switch thread before calling target methods.
17041 (scoped_restore_current_thread::restore): New, factored out from
17042 ...
17043 (scoped_restore_current_thread::~scoped_restore_current_thread):
17044 ... this.
17045 (scoped_restore_current_thread::scoped_restore_current_thread):
17046 Add assertion.
17047 (thread_apply_all_command, thread_select): Use
17048 switch_to_thread_if_alive.
17049
7f0ae84c
GB
170502020-01-10 George Barrett <bob@bob131.so>
17051
17052 * stap-probe.c (stap_modify_semaphore): Don't check for null
17053 semaphores.
17054 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17055 for null semaphores.
17056
f5a7c406
AB
170572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17058
17059 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17060 all source windows, and maintain horizontal scroll status while
17061 doing so.
17062
9ae6bf64
TT
170632020-01-09 Tom Tromey <tom@tromey.com>
17064
17065 PR tui/18932:
17066 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17067 update_source_window, not print_source_lines.
17068
b2efe70c
AB
170692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17070
17071 * tui/tui.c (tui_enable): Register tui hooks after calling
17072 tui_display_main.
17073
5f23a082
CB
170742020-01-09 Christian Biesinger <cbiesinger@google.com>
17075
17076 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17077
3061113b
SM
170782020-01-08 Simon Marchi <simon.marchi@efficios.com>
17079
17080 * thread.c (print_thread_info_1): Fix indentation.
17081
57d75002
CB
170822020-01-09 Christian Biesinger <cbiesinger@google.com>
17083
17084 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17085 unique_xmalloc_ptr outside the if to always free the demangled name.
17086
6a053cb1
TT
170872020-01-08 Tom Tromey <tromey@adacore.com>
17088
17089 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17090 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17091 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17092 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17093 Remove.
17094 (section_offsets): New typedef.
17095 * symtab.c (fixup_section, get_msymbol_address): Update.
17096 * symmisc.c (dump_msymbols): Update.
17097 * symfile.h (relative_addr_info_to_section_offsets)
17098 (symfile_map_offsets_to_segments): Update.
17099 * symfile.c (build_section_addr_info_from_objfile)
17100 (init_objfile_sect_indices): Update.
17101 (struct place_section_arg): Change type of "offsets".
17102 (place_section): Update.
17103 (relative_addr_info_to_section_offsets): Change type of
17104 "section_offsets". Remove "num_sections" parameter.
17105 (default_symfile_offsets, syms_from_objfile_1)
17106 (set_objfile_default_section_offset): Update.
17107 (reread_symbols): No need to preserve section offsets by hand.
17108 (symfile_map_offsets_to_segments): Change type of "offsets".
17109 * stap-probe.c (relocate_address): Update.
17110 * stabsread.h (process_one_symbol): Update.
17111 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17112 (solib_target_relocate_section_addresses): Update.
17113 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17114 Update.
17115 * solib-frv.c (frv_relocate_main_executable): Update.
17116 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17117 * solib-aix.c (solib_aix_get_section_offsets): Change return
17118 type.
17119 (solib_aix_solib_create_inferior_hook): Update.
17120 * remote.c (remote_target::get_offsets): Update.
17121 * psymtab.c (find_pc_sect_psymtab): Update.
17122 * psympriv.h (struct partial_symbol) <address, text_low,
17123 text_high>: Update.
17124 * objfiles.h (obj_section_offset): Update.
17125 (struct objfile) <section_offsets>: Change type.
17126 <num_sections>: Remove.
17127 (objfile_relocate): Update.
17128 * objfiles.c (entry_point_address_query): Update
17129 (relocate_one_symbol): Change type of "section_offsets".
17130 (objfile_relocate1, objfile_relocate1): Change type of
17131 "new_offsets".
17132 (objfile_rebase1): Update.
17133 * mipsread.c (mipscoff_symfile_read): Update.
17134 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17135 parameter.
17136 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17137 (parse_external, psymtab_to_symtab_1): Update.
17138 * machoread.c (macho_symfile_offsets): Update.
17139 * ia64-tdep.c (ia64_find_unwind_table): Update.
17140 * hppa-tdep.c (read_unwind_info): Update.
17141 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17142 * dwarf2read.c (create_addrmap_from_index)
17143 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17144 (process_psymtab_comp_unit_reader, add_partial_symbol)
17145 (add_partial_subprogram, process_full_comp_unit)
17146 (read_file_scope, read_func_scope, read_lexical_block_scope)
17147 (read_call_site_scope, dwarf2_rnglists_process)
17148 (dwarf2_ranges_process, dwarf2_ranges_read)
17149 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17150 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17151 Update.
17152 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17153 Update.
17154 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17155 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17156 (process_one_symbol): Change type of "section_offsets".
17157 * ctfread.c (get_objfile_text_range): Update.
17158 * coffread.c (coff_symtab_read, enter_linenos)
17159 (process_coff_symbol): Update.
17160 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17161 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17162
456e800a
TT
171632020-01-08 Tom Tromey <tromey@adacore.com>
17164
17165 * dwarf2read.c (parse_macro_definition): Use std::string.
17166 (parse_macro_definition): Likewise.
17167
6dfa2fc2
TT
171682020-01-08 Tom Tromey <tromey@adacore.com>
17169
17170 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17171 (ATTR_ALLOC_CHUNK): Remove.
17172
421d1616
TT
171732020-01-08 Tom Tromey <tromey@adacore.com>
17174
17175 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17176
43816ebc
TT
171772020-01-08 Tom Tromey <tromey@adacore.com>
17178
17179 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17180 (dwarf2_compute_name, open_dwo_file): Likewise.
17181 (process_enumeration_scope): Use std::vector.
17182 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17183 (partial_die_info::fixup, dwarf2_start_subfile)
17184 (guess_full_die_structure_name, dwarf2_name): Likewise.
17185 (determine_prefix): Update.
17186 (guess_full_die_structure_name): Make return type const.
17187 (partial_die_full_name): Return unique_xmalloc_ptr.
17188 (DW_FIELD_ALLOC_CHUNK): Remove.
17189
4212d509
TT
171902020-01-07 Tom Tromey <tromey@adacore.com>
17191
17192 PR build/24937:
17193 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17194
06a6207a
JT
171952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17196
17197 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17198
153d79c4
AB
171992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17200
17201 * stack.c (print_frame_info): Move disassemble_next_line code
17202 inside source_print block.
17203
66182876
EZ
172042020-01-06 Eli Zaretskii <eliz@gnu.org>
17205
17206 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17207 gdb/signals.h, as we are now using native signal symbols.
17208
cbfa8581
SV
172092020-01-06 Shahab Vahedi <shahab@synopsys.com>
17210
17211 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17212 overflow by an early check of content vs threshold.
aac66a4c 17213 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17214 Likewise.
17215
3f602821
EZ
172162020-01-06 Eli Zaretskii <eliz@gnu.org>
17217
17218 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17219
a08c904d
JT
172202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17221
17222 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17223 export table if no section contains it's RVA.
17224
89a65580
EZ
172252020-01-06 Eli Zaretskii <eliz@gnu.org>
17226
17227 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17228
8b7fcda2
HD
172292020-01-06 Hannes Domani <ssbssa@yahoo.de>
17230
17231 * source.c (print_source_lines_base): Set last_line_listed.
17232
a61b4f69
SV
172332020-01-06 Shahab Vahedi <shahab@synopsys.com>
17234
17235 * tui/tui-disasm.c: Remove trailing spaces.
17236
559e7e50
EZ
172372020-01-06 Eli Zaretskii <eliz@gnu.org>
17238 Pedro Alves <palves@redhat.com>
17239
17240 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17241 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17242 (windows_gdb_signal_to_target): New function, uses the above
17243 enumeration to convert GDB internal signal codes to equivalent
17244 Windows codes.
17245 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17246 * windows-nat.c: Include "gdb_wait.h".
17247 (get_windows_debug_event): Extract the fatal exception from the
17248 exit status and convert to the equivalent Posix signal number.
17249 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17250 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17251 * gdbsupport/gdb_wait.c: New file, implements
17252 windows_status_to_termsig.
17253 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17254 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17255
f2302a34
AB
172562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17257
17258 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17259 show_layout.
17260
6a5206eb
LM
172612020-01-05 Luis Machado <luis.machado@linaro.org>
17262
17263 * aarch64-linux-nat.c
17264 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17265 and bfd_mach_aarch64.
17266
6ec1d75e
PW
172672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17268
17269 * ui-file.c (stdio_file::can_emit_style_escape)
17270 (tee_file::can_emit_style_escape): Ensure style is used also on
17271 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17272 to gdb_stdout.
17273 * main.c (set_gdb_data_directory): Use file style to output the
17274 warning that the given pathname is not a directory.
17275 * top.c (show_history_filename, gdb_safe_append_history)
17276 (show_gdb_datadir): Use file style.
17277
44f81a76
HD
172782020-01-03 Hannes Domani <ssbssa@yahoo.de>
17279
17280 * solib-target.c (struct lm_info_target):
17281 Change offsets to be a unique_xmalloc_ptr.
17282 (solib_target_relocate_section_addresses): Update.
17283
25057eb0
HD
172842020-01-03 Hannes Domani <ssbssa@yahoo.de>
17285
17286 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17287
6e2118f5
BE
172882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17289
17290 * MAINTAINERS (Write After Approval): Add myself.
17291
8133c7dc
LM
172922020-01-02 Luis Machado <luis.machado@linaro.org>
17293
17294 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17295 Cell BE architecture.
17296 * target.h (struct target_ops) <thread_architecture>: Likewise.
17297
48189bec
HD
172982020-01-01 Hannes Domani <ssbssa@yahoo.de>
17299
17300 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17301
ead1063b
HD
173022020-01-01 Hannes Domani <ssbssa@yahoo.de>
17303
17304 * MAINTAINERS (Write After Approval): Add myself.
17305
e5d78223
JB
173062020-01-01 Joel Brobecker <brobecker@adacore.com>
17307
17308 * gdbarch.sh: Update copyright year range of generated files.
17309
b811d2c2
JB
173102020-01-01 Joel Brobecker <brobecker@adacore.com>
17311
17312 Update copyright year range in all GDB files.
17313
5f4def5c
JB
173142020-01-01 Joel Brobecker <brobecker@adacore.com>
17315
17316 * copyright.py: Convert to Python 3.
17317
51fd4002
JB
173182020-01-01 Joel Brobecker <brobecker@adacore.com>
17319
17320 * copyright.py: Adapt after move of gnulib directory from gdb
17321 directory to toplevel directory.
17322
5fb651f2
JB
173232020-01-01 Joel Brobecker <brobecker@adacore.com>
17324
17325 * copyright.py (main): Exit if run from the wrong directory.
17326
5dd8bf88
JB
173272020-01-01 Joel Brobecker <brobecker@adacore.com>
17328
17329 * top.c (print_gdb_version): Change copyright year to 2020.
17330
9f71dacb 173312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17332
9f71dacb 17333 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17334
9f71dacb 17335For older changes see ChangeLog-2019.
c906108c
SS
17336\f
17337Local Variables:
17338mode: change-log
17339left-margin: 8
17340fill-column: 74
17341version-control: never
57da7796 17342coding: utf-8
c906108c 17343End:
This page took 3.268391 seconds and 4 git commands to generate.